Fix build warnings in resolv/res_send.c
[glibc.git] / ChangeLog
blob3e4d87f15bc0952faf94d37bc06a02690c509c67
1 2019-07-02  Stefan Liebler  <stli@linux.ibm.com>
3         * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
4         warning.
6 2019-07-01  Florian Weimer  <fweimer@redhat.com>
8         * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
9         variant for arm-linux-gnueabi.
11 2019-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13         [BZ #24259]
14         * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
15         relocation.
16         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
17         tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
18         (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
19         tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
20         and tst-cet-legacy-mod-6c.
21         (CFLAGS-tst-cet-legacy-5a.c): New.
22         (CFLAGS-tst-cet-legacy-5b.c): Likewise.
23         (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
24         (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
25         (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
26         (CFLAGS-tst-cet-legacy-6a.c): Likewise.
27         (CFLAGS-tst-cet-legacy-6b.c): Likewise.
28         (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
29         (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
30         (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
31         ($(objpfx)tst-cet-legacy-5a): Likewise.
32         ($(objpfx)tst-cet-legacy-5a.out): Likewise.
33         ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
34         ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
35         ($(objpfx)tst-cet-legacy-5b): Likewise.
36         ($(objpfx)tst-cet-legacy-5b.out): Likewise.
37         (tst-cet-legacy-5b-ENV): Likewise.
38         ($(objpfx)tst-cet-legacy-6a): Likewise.
39         ($(objpfx)tst-cet-legacy-6a.out): Likewise.
40         ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
41         ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
42         ($(objpfx)tst-cet-legacy-6b): Likewise.
43         ($(objpfx)tst-cet-legacy-6b.out): Likewise.
44         (tst-cet-legacy-6b-ENV): Likewise.
45         * sysdeps/x86/tst-cet-legacy-5.c: New file.
46         * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
47         * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
48         * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
49         * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
50         * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
51         * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
52         * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
53         * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
54         * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
55         * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
56         * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
57         * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
58         * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
60 2019-06-30  Paul A. Clarke  <pc@us.ibm.com>
62         * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
63         __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
64         (__fegetround_ISA300) New.
65         (__fegetround_ISA2) New.
66         * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
67         (_FPU_MFFS): Move implementation...
68         (_FPU_GETCW): Here.
69         (_FPU_MFFSL): Move implementation....
70         (_FPU_GET_RC_ISA300): Here. New.
71         (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
72         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
73         (fegetenv_status): New.
74         * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
75         instead of fegetenv_register().
76         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
78 2019-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
80         * benchtests/bench-math-inlines.c: Increase iterations.
81         * benchtests/bench-memcmp.c: Likewise.
82         * benchtests/bench-rawmemchr.c: Likewise.
83         * benchtests/bench-strcmp.c: Likewise.
84         * benchtests/bench-strcpy_chk.c: Likewise.
85         * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
86         (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
87         (INNER_LOOP_ITERS_SMALL): Likewise.
88         * benchtests/bench-strncat.c: Increase iterations.
89         * benchtests/bench-strncmp.c: Increase iterations.
90         * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
91         * benchtests/bench-strrchr.c: Increase iterations.
92         * benchtests/bench-strstr.c: Keep iterations unchanged.
93         * benchtests/bench-strtod.c: Increase iterations.
95 2019-06-28  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
97         * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
98         with INNER_LOOP_ITERS_LARGE.
99         * benchtests/bench-memchr.c: Likewise.
100         * benchtests/bench-rawmemchr.c: Likewise.
101         * benchtests/bench-strcat.c: Likewise.
102         * benchtests/bench-strchr.c: Likewise.
103         * benchtests/bench-string.h: Likewise.
104         * benchtests/bench-strlen.c: Likewise.
105         * benchtests/bench-strncpy.c: Likewise.
106         * benchtests/bench-strnlen.c: Likewise.
108 2019-06-28  Florian Weimer  <fweimer@redhat.com>
110         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
111         Use mmap instead of malloc.  malloc with M_PERTURB writes to the
112         entire allocated memory range.
114 2019-06-28  Tobias Klauser  <tklauser@distanz.ch>
116         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
117         (prepare_version_base): New helper inline function.
118         (prepare_version): New macro replacing PREPARE_VERSION.
119         (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
121 2019-06-28  Florian Weimer  <fweimer@redhat.com>
123         [BZ #24741]
124         * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
125         mismatch in a versioned symbol reference.
126         (_dl_lookup_symbol_x): Do not report soname mismatch failures.
127         * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
128         tst-sonamemove-dlopen.
129         (module-names): Add tst-sonamemove-linkmod1,
130         tst-sonamemove-runmod1, tst-sonamemove-runmod2.
131         (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
132         (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
133         (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
134         (tst-sonamemove-runmod1.so): Link against
135         tst-sonamemove-runmod2.so.
136         (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
137         (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
138         tst-sonamemove-runmod2.so.
139         (tst-sonamemove-dlopen): Link with -ldl.
140         (tst-sonamemove-dlopen.out): Likewise.
141         * elf/tst-sonamemove-link.c: New file.
142         * elf/tst-sonamemove-dlopen.c: Likewise.
143         * elf/tst-sonamemove-linkmod1.c: Likewise.
144         * elf/tst-sonamemove-linkmod1.map: Likewise.
145         * elf/tst-sonamemove-runmod1.c: Likewise.
146         * elf/tst-sonamemove-runmod1.map: Likewise.
147         * elf/tst-sonamemove-runmod2.c: Likewise.
148         * elf/tst-sonamemove-runmod2.map: Likewise.
150 2019-06-28  Florian Weimer  <fweimer@redhat.com>
152         * support/xdlfcn.h (xdlvsym): Declare function.
153         * support/xdlfcn.c (xdlvsym): Define funciton.
155 2019-06-28  Florian Weimer  <fweimer@redhat.com>
157         [BZ #24744]
158         io: Remove the copy_file_range emulation.
159         * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
160         not define and call copy_file_range_compat.
161         * io/Makefile (tests-static, tests-internal): Do not add
162         tst-copy_file_range-compat.
163         * io/copy_file_range-compat.c: Remove file.
164         * io/copy_file_range.c (copy_file_range): Define as stub.
165         * io/tst-copy_file_range-compat.c: Remove file.
166         * io/tst-copy_file_range.c (xdevfile): Remove variable.
167         (typical_sizes): Update comment.  Remove 16K sizes.
168         (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
169         Remove variables.
170         (find_maximum_offset, pipe_as_source, pipe_as_destination)
171         (delayed_write_failure_beginning, delayed_write_failure_end)
172         (cross_device_failure, enospc_failure_1, enospc_failure)
173         (oappend_failure): Remove functions.
174         (tests): Adjust test case list.
175         (do_test): Remove file system search code.  Check for ENOSYS from
176         copy_file_range.  Do not free xdevfile.
177         * manual/llio.texi (Copying File Data): Document ENOSYS error from
178         copy_file_range.  Do not document the EXDEV error, which future
179         kernels may not report.  Update the wording to reflect that
180         further errors are possible.
181         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
182         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
183         not undefine.
184         * sysdeps/unix/sysv/linux/arm/kernel-features.h
185         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
186         Likewise.
187         * sysdeps/unix/sysv/linux/kernel-features.h
188         [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
189         Remove definition.
190         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
191         [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
192         not undefine.
193         * sysdeps/unix/sysv/linux/sh/kernel-features.h
194         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
195         Likewise.
197 2019-06-27  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
199         * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
200         used as a mask for the mode argument of __vfprintf_internal.
201         * stdio-common/printf-parse.h (printf_arg): New union member:
202         pa_float128.
203         * stdio-common/vfprintf-internal.c
204         (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
205         (PARSE_FLOAT_VA_ARG): Likewise.
206         (SETUP_FLOAT128_INFO): Likewise.
207         (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
208         SETUP_FLOAT128_INFO.
209         [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
210         floating-point value to the new union member, pa_float128.
211         (printf_positional): Zero-initialize args_value[cnt] with memset.
213 2019-06-27  Florian Weimer  <fweimer@redhat.com>
215         [BZ #24740]
216         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
217         buffer size if necessary.
218         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
219         Likewise.
220         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
221         New function.
222         (large_buffer_checks): Likewise.
223         (do_test): Call large_buffer_checks.
225 2019-06-26  H.J. Lu  <hongjiu.lu@intel.com>
227         * sysdeps/i386/dl-lookupcfg.h: Moved to ...
228         * sysdeps/x86/dl-lookupcfg.h: Here.
229         * sysdeps/x86_64/dl-lookupcfg.h: Removed.
231 2019-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
233         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
234         (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
235         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
236         file.
237         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
238         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
239         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
240         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
241         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
243         * sysdeps/powerpc/powerpc32/fpu/Makefile
244         [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
245         * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
246         and fctidz optimization.
247         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
248         * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
250         (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
251         CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
252         CFLAGS-s_lround-power5+.c): New rule.
253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
254         New file.
255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
256         Likewise.
257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
258         Likewise.
259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
260         Likewise.
261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
262         Likewise.
263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
264         Remove file.
265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
266         Likewise.
267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
268         Likewise.
269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
270         Likewise.
271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
272         Likewise.
273         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
274         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
275         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
276         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
277         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
278         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
279         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
281 2019-06-26  Vincent Chen  <vincentc@andestech.com>
283         * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
284         specific system calls, fp_udfiex_crtl and udftrap.
286 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
288         * nptl/tst-eintr1.c (tf1): Add return statement.
289         (do_test): Remove unused th variable.
291 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
293         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
294         Return error if get_character fails.
296 2019-06-25  Stefan Liebler  <stli@linux.ibm.com>
298         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
300 2019-06-24  Rafal Luzynski  <digitalfreak@lingonborough.com>
302         [BZ #24652]
303         * localedata/locales/szl_PL (day): Use the correct Unicode
304         sequences instead of non-ASCII characters.
306 2019-06-24  Grzegorz Kulik  <gregorykkulik@gmail.com>
308         [BZ #24652]
309         * localedata/locales/szl_PL (abday): Spelling corrections.
310         (day): Likewise.
311         (abmon): Likewise.
312         (mon): Rename to...
313         (alt_mon): This, then apply spelling corrections.
314         (mon): New entry, month names in the genitive case.
316 2019-06-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
318         [BZ #23831]
319         * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
320         * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
321         (thousands_sep): Likewise.
322         (grouping): Set to 3;3.
324 2019-06-21  Tobias Klauser  <tklauser@distanz.ch>
326         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
327         PREPARE_VERSION_KNOWN.
328         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
329         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
330         define.
331         (VDSO_HASH_LINUX_2_6_39): Likewise.
332         (VDSO_NAME_LINUX_4_9): Likewise.
333         (VDSO_HASH_LINUX_4_9): Likewise.
334         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
335         * sysdeps/unix/sysv/linux/powerpc/init-first.c
336         (_libc_vdso_platform_setup): Likewise.
337         * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
338         * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
339         Likewise.
340         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
341         Likewise.
343 2019-06-20  Mike Crowe  <mac@mcrowe.com>
345         * nptl/eintr.c: Use libsupport.
346         * nptl/tst-eintr1.c: Likewise.
347         * nptl/tst-eintr2.c: Likewise.
348         * nptl/tst-eintr3.c: Likewise.
349         * nptl/tst-eintr4.c: Likewise.
350         * nptl/tst-eintr5.c: Likewise.
351         * nptl/tst-mutex-errorcheck.c: Likewise.
352         * nptl/tst-mutex5.c: Likewise.
354         * support/test-driver.h: Add verbose_printf macro.
356         * support/xtime.h: Add xclock_now() helper function.
358 2019-06-20  Dmitry V. Levin  <ldv@altlinux.org>
359             Florian Weimer  <fweimer@redhat.com>
361         [BZ #24228]
362         * libio/genops.c (_IO_unbuffer_all)
363         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
364         buffers and access _IO_FILE_complete members of legacy libio streams.
365         * libio/tst-bz24228.c: New file.
366         * libio/tst-bz24228.map: Likewise.
367         * libio/Makefile [build-shared] (tests): Add tst-bz24228.
368         [build-shared] (generated): Add tst-bz24228.mtrace and
369         tst-bz24228.check.
370         [run-built-tests && build-shared] (tests-special): Add
371         $(objpfx)tst-bz24228-mem.out.
372         (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
373         ($(objpfx)tst-bz24228-mem.out): New rule.
375 2019-06-19  Paul A. Clarke  <pc@us.ibm.com>
377         * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
378         * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
379         (__FPU_MFFSL): Likewise.
380         (_FPU_SETCW): Likewise.
382 2019-06-19  Stan Shebs  <stanshebs@google.com>
383             Raoni Fassina Firmino  <raoni@linux.ibm.com>
385         [BZ #24640]
386         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
387         [!SHARED] (__get_timebase_freq): Fix sense of a test in the
388         static-linking version.
389         * sysdeps/unix/sysv/linux/powerpc/Makefile
390         (tests-static): Add test-gettimebasefreq-static.
391         (tests): Likewise.
392         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
393         New file.
395 2019-06-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
397         [BZ #24614]
398         * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
399         between the currency symbol and the minus sign).
400         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
402 2019-06-19  Stefan Liebler  <stli@linux.ibm.com>
404         [BZ #24556]
405         * string/test-strcasestr.c (check_result): Add NULL check.
406         * nss/tst-field.c (check_rewrite): Likewise.
407         * benchtests/bench-strstr.c (do_one_test): Likewise.
408         * string/test-strstr.c (check_result): Likewise.
409         * argp/argp-test.c (popt): Increase size of buf to 12.
410         * benchtests/bench-malloc-simple.c (bench):
411         Do not initialize tests array out of bounds.
413 2019-06-19  Florian Weimer  <fweimer@redhat.com>
415         [BZ #24166]
416         * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
417         dls_serpath field.
419 2019-06-18  Florian Weimer  <fweimer@redhat.com>
421         [BZ #24323]
422         * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
423         * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
424         fail when called from dlopen.
425         * elf/Makefile [have-fpie && build-shared] (tests): Add
426         tst-dlopen-pie.
427         (tst-dlopen-pie): Link with -ldl.
428         (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
429         * elf/tst-dlopen-pie.c (do_test): New file.
431 2019-06-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
433         [BZ #24614]
434         * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
435         * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
436         between the currency symbol and the minus sign).
437         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
438         * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
440 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
442         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
443         sysdep-rtld-routines): Remove rules.
444         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
445         Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
446         (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
447         __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
448         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
449         (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
450         vDSO path for SHARED.
451         * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
452         * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
453         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
454         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
455         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
456         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
458         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
459         (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
460         s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
461         (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
462         CFLAGS-s_llround-power5+.c): New rule.
463         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
464         New file.
465         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
466         Likewise.
467         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
468         Likewise.
469         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
470         Likewise.
471         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
472         Likewise.
473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
474         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
476         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
478         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
479         * sysdeps/powerpc/powerpc64/fpu/Makefile
480         [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
481         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
482         (libm-sysdep_routines): Remove s_llround-* objects.
483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
484         file.
485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
486         Likewise.
487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
488         Likewise.
489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
490         Likewise.
491         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
492         Likewise.
493         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
494         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
495         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
496         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
497         * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
498         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
499         * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
500         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
501         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
502         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
503         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
504         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
505         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
506         * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
508         * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
509         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
510         * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
511         * sysdeps/powerpc/powerpc32/fpu/Makefile
512         [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
513         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
514         optimization.
515         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
516         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
517         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
519         (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
520         CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
521         CFLAGS-s_lrint-ppc32.c): New rule.
522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
523         Remove file.
524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
525         Likewise.
526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
527         Likewise.
528         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
529         Likewise.
530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
531         Likewise.
532         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
533         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
534         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
535         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
537         New file.
538         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
539         Likewise.
540         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
541         Likewise.
542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
543         Likewise.
544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
545         Likewise.
547         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
548         (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
549         s_llrint-ppc64.
550         (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
551         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
552         file.
553         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
554         Likewise.
555         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
556         Likewise.
557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
558         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
560         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
562         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
563         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
564         * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
565         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
566         (libm-sysdep_routines): Remove s_llrint-* objects.
567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
568         file.
569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
570         Likewise.
571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
572         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
573         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
574         * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
575         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
576         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
577         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
578         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
579         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
580         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
582 2019-06-14  Florian Weimer  <fweimer@redhat.com>
584         * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
585         argument to __glibc_has_include to inhibit macro expansion.
587 2019-06-14  Florian Weimer  <fweimer@redhat.com>
589         * misc/sys/cdefs.h (__glibc_has_include): Do not use a
590         function-like macro, so that __has_include can inhibit expansion
591         of its argument.
593 2019-06-13  Joseph Myers  <joseph@codesourcery.com>
595         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
596         New macro.
598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
599         Allow memset in libc.so.
601 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
603         * sysdeps/aarch64/dl-dtprocnum.h: New file.
604         * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
605         (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
606         (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
607         symbols at load time.
608         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
610 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
612         * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
613         (DT_AARCH64_VARIANT_PCS): Define.
615 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
618         (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
619         objects.
620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
621         Remove file.
622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
623         Likewise.
624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
626         Likewise.
627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
628         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
629         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
630         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
631         Remove s_finite* objects.
632         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
638         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
639         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
640         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
641         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
643         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
644         * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
647         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
648         objects.
649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
650         Remove file.
651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
652         Likewise.
653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
655         Likewise.
656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
657         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
658         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
659         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
660         Remove s_isinf* and s_isinf* objects.
661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
667         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
668         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
669         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
670         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
672         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
673         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
675         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
676         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
677         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
679         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
680         s_isnanf-* objects.
681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
682         Remove file
683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
684         Likewise.
685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
686         Likewise.
687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
688         Likewise.
689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
691         Likewise.
692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
693         Likewise.
694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
695         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
696         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
697         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
698         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
699         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
700         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
701         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
702         Remove s_isnan-* and s_isnanf-* objects.
703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
706         Likewise.
707         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
709         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
710         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
712         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
713         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
714         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
715         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
716         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
717         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
718         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
719         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
721         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
722         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
724         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
725         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
726         CFLAGS-bench-isfinite.c): New rule.
727         * benchtests/isnan-input: New file.
728         * benchtests/isinf-input: New file.
729         * benchtests/isfinite-input: New file.
731         * sysdeps/powerpc/fpu/s_copysign.c: New file.
732         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
733         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
734         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
736         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
737         s_copysign-ppc32.
738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
739         Remove file.
740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
741         Likewise.
742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
743         Likewise.
744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
745         Likewise.
746         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
747         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
748         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
749         Remove s_copysign-power6 s_copysign-ppc64.
750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
751         Remove file.
752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
753         Likewise.
754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
756         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
757         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
758         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
759         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
761         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
762         round_to_integer_float, round_mode): Add RINT handling.
763         (reset_fenv_mode): New symbol.
764         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
765         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
766         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
767         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
768         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
769         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
771 2019-06-12  Florian Weimer  <fweimer@redhat.com>
773         [BZ #24632]
774         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
775         * libio/freopen.c (freopen): Use it.
777 2019-06-12  Florian Weimer  <fweimer@redhat.com>
779         Linux: Deprecate sysctl.
780         * include/sysctl.h (__sysctl): Remove declaration.
781         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
782         check.
783         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
784         (sysctl): Add deprecation attribute.
785         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
786         directly, to avoid the deprecation warning.  Do not include
787         <string.h>.
788         (__sysctl): Remove hidden alias.
790 2019-06-12  Florian Weimer  <fweimer@redhat.com>
792         Linux: Use kernel headers for statx definitions if available.
793         * include/bits/statx-generic.h: New file.
794         * include/bits/types/struct_statx.h: Likewise.
795         * include/bits/types/struct_statx_timestamp.h: Likewise.
796         * io/Makefile (headers): Add bits/statx-generic.h.
797         * io/bits/statx-generic.h: New file.  Partly copied from
798         io/bits/statx.h.
799         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
800         define original_statx.
801         * io/bits/types/struct_statx.h: Likewise.
802         * io/bits/types/struct_statx_timestamp.h: Likewise.
803         (statx_generic): Use original_statx.
804         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
805         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
807 2019-06-12  Florian Weimer  <fweimer@redhat.com>
809         * misc/sys/cdefs.h (__glibc_has_include): Define.
811 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
813         * string/memmem.c (__memmem): Rewrite to improve performance.
815 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
817         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
818         warning.
819         (two_way_long_needle): Block inlining.
820         * string/strstr.c (strstr2): Add new function.
821         (strstr3): Likewise.
822         (STRSTR): Completely rewrite strstr to improve performance.
824 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
826         * benchtests/bench-strstr.c (test_hard_needle): New function.
828 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
830         * malloc/tst-calloc.c: Include <libc-diag.h>.
831         (null_test): Ignore -Wunused-result around calls to calloc.
832         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
833         (do_test): Ignore -Wunused-result around call to malloc.
835 2019-06-07  Florian Weimer  <fweimer@redhat.com>
837         Linux: Add getdents64 system call.
838         * include/dirnent.h (getdents): Add comment and change buffer
839         argument type to void *.
840         (getdents64): Likewise.  Add hidden prototype.
841         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
842         getdents64.
843         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
844         Add tst-getdents64.
845         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
846         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
847         argument type to void *.
848         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
849         Add hidden definition and getdents64 alias.
850         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
851         Likewise.
852         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
853         * manual/filesys.texi (Accessing Directories): Add Low-level
854         Directory Access node reference.
855         (Opening a Directory): Cross-reference it.
856         (Low-level Directory Access): New node.
857         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
858         getdents64.
859         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
860         Likewise.
861         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
862         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
863         Likewise.
864         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
865         Likewise.
866         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
867         Likewise.
868         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
869         Likewise.
870         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
871         Likewise.
872         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
873         Likewise.
874         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
875         Likewise.
876         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
877         (GLIBC_2.30): Likewise.
878         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
879         (GLIBC_2.30): Likewise.
880         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
881         (GLIBC_2.30): Likewise.
882         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
883         (GLIBC_2.30): Likewise.
884         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
885         Likewise.
886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
887         (GLIBC_2.30): Likewise.
888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
889         (GLIBC_2.30): Likewise.
890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
891         (GLIBC_2.30): Likewise.
892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
893         (GLIBC_2.30): Likewise.
894         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
895         Likewise.
896         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
897         Likewise.
898         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
899         Likewise.
900         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
901         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
902         Likewise.
903         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
904         Likewise.
905         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
906         Likewise.
907         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
908         Likewise.
910 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
912         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
913         (__FPU_MFFS): New.
914         (__FPU_MFFSL): New.
915         (_FPU_GET_RC): New.
916         (_FPU_GETCW): Use __FPU_MFFS().
917         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
919 2019-06-06  Florian Weimer  <fweimer@redhat.com>
921         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
922         internal GCC preprocessor identifier __has_include__.
924 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
926         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
927         with call to equivalent function.
929 2019-06-04  Florian Weimer  <fweimer@redhat.com>
931         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
932         (do_release_shlib): Adjust for __twalk_r.
933         (__gconv_release_shlib): Call __twalk_r.
935 2019-06-04  Andreas Schwab  <schwab@suse.de>
937         [BZ #18830]
938         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
939         no irreversible characters occurred.
940         * iconv/gconv_simple.c (internal_ucs4_loop)
941         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
942         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
943         (ucs4_internal_loop_single, internal_ucs4le_loop)
944         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
945         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
946         (ucs4le_internal_loop_single): Add const to outend.
947         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
948         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
949         * iconv/Makefile (tests): Add tst-iconv7.
950         * iconv/tst-iconv7.c: New file.
952 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
954         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
956 2019-06-01  Florian Weimer  <fweimer@redhat.com>
958         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
959         * sysdeps/unix/sysv/linux/arm/Makefile
960         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
961         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
962         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
963         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
964         compatibility symbols.
966 2019-05-31  Florian Weimer  <fweimer@redhat.com>
968         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
969         system calls for the arm architecture: breakpoint, get_tls,
970         set_tls, usr26, usr32.
972 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
974         * sysdeps/powerpc/Makefile
975         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
976         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
977         Declare '.machine power7' to get support for ldbrx.
978         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
979         directive based on the directory of the file.
980         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
981         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
982         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
983         '.machine' directive.
984         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
985         (VADDUQM_V7_V8): Remove.
986         (__STRCASECMP): Replace macros with actual instructions.
987         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
988         '.machine' directive.
989         (VCLZD_V8_v7): Remove.
990         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
992 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
994         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
995         Remove file.
996         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
998 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1000         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1001         NEARBYINT handling.
1002         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
1003         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
1004         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
1005         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
1006         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
1007         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1009 2019-05-28  mansayk  <6688000@gmail.com>
1011         [BZ #24370]
1012         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
1014 2019-05-28  mansayk  <6688000@gmail.com>
1016         [BZ #24369]
1017         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
1018         (abmon): Likewise, but remove the trailing dots.
1020 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
1022         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
1024 2019-05-27  Florian Weimer  <fweimer@redhat.com>
1026         * nptl/nptl-init.c: Add comment.
1028 2019-05-24  Florian Weimer  <fweimer@redhat.com>
1030         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
1031         struct in_addr/struct in6_addr alignment.
1033 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
1035         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1036         (F_SEAL_FUTURE_WRITE): New macro.
1038 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
1040        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
1041        * elf/tst-ldconfig-bad-aux-cache.c: New file.
1042        * elf/tst-ldconfig_aux-cache.root: New directory.
1043        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
1044        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
1045        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
1047 2019-05-22  Zack Weinberg  <zackw@panix.com>
1049         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
1050         host type.
1051         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
1052         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
1054         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
1056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
1057         Delete.
1059         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
1060         Issue an #error if used with a compiler in SPE-float mode.
1061         * sysdeps/powerpc/powerpc32/__longjmp_common.S
1062         * sysdeps/powerpc/powerpc32/setjmp_common.S
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
1066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
1067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1069         Remove code to preserve SPE register state.
1071         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
1072         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1073         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
1074         Remove __SPE__ ifndefs.
1076 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
1078         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
1079         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
1080         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
1081         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
1082         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
1083         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
1084         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
1085         (INNER_LOOP_ITERS_MEDIUM): New define.
1086         (INNER_LOOP_ITERS_SMALL): New define.
1087         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
1088         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
1089         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
1090         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
1091         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
1093 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
1095         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
1096         New define.
1097         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
1098         (SEMTIMEDOP_IPC_ARGS): Likewise.
1100 2019-05-21  Florian Weimer  <fweimer@redhat.com>
1102         [BZ #24584]
1103         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
1104         before updating __counter field and release it afterwards.  Add
1105         overflow check.
1106         * iconv/gconv.h (struct __gconv_step): Mention synchronization
1107         requirement for __counter member.
1109 2019-05-21  Florian Weimer  <fweimer@redhat.com>
1111         [BZ #24583]
1112         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
1113         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
1114         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
1115         instead of __gconv_release_step.
1116         * libio/Makefile (tests): Add tst-wfile-gconv.
1117         (tests-container): Add tst-wfile-ascii.
1118         (tst-wfile-gconv-ENV): Enable mtrace.
1119         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
1120         (tests-special): Add tst-wfile-gconv-mem.out.
1121         (tst-wfile-gconv.out): Depend on locales.
1122         (tst-wfile-gconv-mem.out): Add mtrace rule.
1123         * libio/tst-wfile-ascii.c: New file.
1124         * libio/tst-wfile-gconv.c: Likewise.
1126 2019-05-20  Florian Weimer  <fweimer@redhat.com>
1128         [BZ #24588]
1129         libio: Remove codecvt vtable.
1130         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
1131         __libio_codecvt.
1132         * libio/iofgetpos.c (_IO_new_fgetpos): Call
1133         __libio_codecvt_encoding.
1134         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
1135         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1136         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
1137         * libio/iofwide.c (__libio_codecvt): Remove variable.
1138         (_IO_fwide): Do not copy __libio_codecvt.
1139         (__libio_codecvt_out): Rename from do_out and export.
1140         (do_unshift): Remove function.
1141         (__libio_codecvt_in): Rename from do_in and export.
1142         (__libio_codecvt_encoding): Rename from do_encoding and export.
1143         (do_always_noconv): Remove function.
1144         (__libio_codecvt_length): Rename from do_length and export.
1145         (do_max_length): Remove function.
1146         * libio/libio.h (enum __codecvt_result): Remove definition; moved
1147         to libioP.h.
1148         (struct _IO_codecvt): Remove fields __codecvt_destr,
1149         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
1150         __codecvt_do_encoding, __codecvt_do_always_noconv,
1151         __codecvt_do_length, __codecvt_do_max_length.
1152         * libio/libioP.h (enum __codecvt_result): Define; moved from
1153         libio.h.
1154         (__libio_codecvt_out, __libio_codecvt_in)
1155         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
1156         functions.
1157         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
1158         (_IO_wfile_underflow): Call __libio_codecvt_in.
1159         (_IO_wfile_underflow): Likewise.
1160         (_IO_wfile_underflow_mmap): Likewise.
1161         (_IO_wfile_sync): Call __libio_codecvt_encoding,
1162         __libio_codecvt_length.
1163         (adjust_wide_data): Call __libio_codecvt_encoding,
1164         __libio_codecvt_in.
1165         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
1166         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
1167         __libio_codecvt_length.
1169 2019-05-20  Florian Weimer  <fweimer@redhat.com>
1171         * support/support.h (support_sbindir_prefix): Declare.
1172         (support_install_rootsbindir): Update comment.
1173         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
1174         * support/support_paths.c (support_sbindir_prefix): Define.
1176 2019-05-20  Mike Crowe  <mac@mcrowe.com>
1178         * support/timespec.c: Add backslash to correct newline in failure
1179         message.
1181         * support/timespec.h: Correct confusing comment.
1183 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1185         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
1186         define.
1187         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
1188         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
1189         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
1190         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
1192         [BZ #24570]
1193         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
1194         usage.
1196 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
1198         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
1199         (NT_ARM_PACG_KEYS): Likewise.
1201 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
1203         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
1204         (tcache_put): Remove redundant assert.
1205         (tcache_get): Remove redundant asserts.
1206         (__libc_malloc): Check tcache count is not zero.
1207         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
1209 2019-05-17  Florian Weimer  <fweimer@redhat.com>
1211         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
1213 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
1215         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1216         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
1217         0x050100].
1218         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
1219         Likewise.
1220         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1221         (__ASSUME_STATX): Likewise.
1223 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1225         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
1226         flags argument.
1227         (LINE_PARSER): Do not map IPv4 addresses.
1228         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
1229         to parse_line.
1230         (_nss_nis_gethostent_r): Always pass AF_INET to
1231         internal_nis_gethostent_r.
1232         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
1233         to parse_line.
1234         (_nss_nis_gethostbyname2_r): Adjust call to
1235         internal_nis_gethostent_r.
1236         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
1237         call to internal_nis_gethostent_r.
1238         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
1239         from parse_line.
1240         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
1241         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1242         Remove flags argument.  Do not map IPv4 addresses.
1243         (internal_nisplus_gethostent_r): Adjust call to
1244         _nss_nisplus_parse_hostent.
1245         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
1246         to _nss_nisplus_parse_hostent.
1247         (_nss_nisplus_gethostbyname2_r): Adjust call to
1248         internal_gethostbyname2_r.
1249         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
1250         Adjust call to internal_gethostbyname2_r.
1251         (_nss_nisplus_gethostbyaddr_r): Adjust call to
1252         _nss_nisplus_parse_hostent.
1253         (_nss_nisplus_gethostbyname4_r): Adjust call to
1254         internal_gethostbyname2_r.
1256 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1258         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
1259         Remove flags.
1260         (LINE_PARSER): Remove address mapping.
1261         (EXTRA_ARGS_VALUE): Remove flags argument.
1262         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
1263         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
1264         gethostbyname3_multi.
1265         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
1266         _nss_files_gethostbyname3_r.
1267         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
1269 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1271         * support/support_test_compare_blob.c (report_blob): Report
1272         incorrect NULL blobs.
1274 2019-05-15  Mark Wielaard  <mark@klomp.org>
1276         [BZ# 24476]
1277         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
1278         __libc_once_get (once) and static_buf == NULL.
1279         (__dlerror): Check we have a valid key, set result to static_buf
1280         otherwise.
1282 2019-05-15  Andreas Schwab  <schwab@suse.de>
1284         [BZ #20568]
1285         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
1286         __codecvt_do_length.
1287         * libio/Makefile (tests): Add tst-wfile-sync.
1288         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
1289         * libio/tst-wfile-sync.c: New file.
1290         * libio/tst-wfile-sync.input: New file.
1292 2019-05-15  Florian Weimer  <fweimer@redhat.com>
1294         nss: Turn __nss_database_lookup into a compatibility symbol.
1295         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
1296         __nss_database_lookup.
1297         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
1298         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
1299         __nss_database_lookup.
1300         (__nss_next): Move to …
1301         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
1302         unconditionally.
1303         (__nss_database_lookup): New function.
1304         * nss/Versions (GLIBC_2.0): Update comment.
1305         (GLIBC_PRIVATE): Export __nss_database_lookup2.
1306         * grp/initgroups.c (internal_getgrouplist): Call
1307         __nss_database_lookup2 instead of __nss_database_lookup.
1308         * nscd/aicache.c (addhstaiX): Likewise.
1309         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1310         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1311         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1312         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1313         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1314         Likewise.
1315         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1316         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1317         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1319 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
1321         * support/support.h (support_install_rootsbindir): New variable.
1322         * support/support_paths.c: Likewise.
1323         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1325 2019-05-15  Florian Weimer  <fweimer@redhat.com>
1327         * iconv/gconv.h (__gconv_transliterate): Move declaration …
1328         * iconv/gconv_int.h (__gconv_transliterate): … here.
1329         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1330         * iconv/skeleton.c: Likewise.
1332 2019-05-14  Florian Weimer  <fweimer@redhat.com>
1334         Linux: Add the tgkill function.
1335         * bits/signal_ext.h: New file.
1336         * manual/signal.texi (Signaling Another Process): Document tgkill.
1337         * signal/Makefile (headers): Add bits/signal_ext.h.
1338         * signal/signal.h: Include <bits/signal_ext.h>.
1339         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1340         (tst-tgkill): Link with libpthread.
1341         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1342         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1343         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1344         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1345         tgkill.
1346         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1348         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1352         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1353         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1354         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1355         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1356         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1357         Likewise.
1358         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1359         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1360         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1362         Likewise.
1363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1364         Likewise.
1365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1366         Likewise.
1367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1368         Likewise.
1369         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1370         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1371         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1372         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1373         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1374         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1375         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1376         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1378 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
1380         * manual/search.texi (Tree Search Function): Adjust twalk_r
1381         documentation.
1383 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1385         [BZ #24544]
1386         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1387         pre-defined value.
1389         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1390         * support/support.h (support_bindir_prefix): New variable.
1391         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1393         * config.make.in (bindir): New variable.
1395         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1396         (lll_trylock): Call __lll_trylock.
1397         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1398         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1399         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1400         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1401         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1402         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1403         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1404         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1405         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1406         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1407         lowlevellock-futex.h.
1409         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1410         initialization for LLL_LOCK_INITIALIZER different than 0.
1411         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1412         Assume LLL_LOCK_INITIALIZER being 0.
1413         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1414         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1415         Likewise.
1416         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1417         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1419         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1420         Optimize futex call and add systemtap probe.
1422         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1423         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1424         __libc_disable_asynccancel, __librt_enable_asynccancel,
1425         __libc_disable_asynccancel, __librt_enable_asynccancel,
1426         __librt_disable_asynccancel): Move to ...
1427         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1428         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1429         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1430         * sysdeps/generic/single-thread.h: New file.
1431         * sysdeps/unix/sysdep.h: Include single-thread.h.
1432         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1433         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1435 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
1437         [BZ #24535]
1438         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1439         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1440         Unicode 12.1.0.
1441         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1442         * localedata/unicode-gen/PropList.txt: Likewise.
1443         * localedata/unicode-gen/UnicodeData.txt: Likewise.
1444         * localedata/charmaps/UTF-8: Regenerate.
1445         * localedata/locales/i18n_ctype: Likewise.
1446         * localedata/locales/tr_TR: Likewise.
1447         * localedata/locales/translit_circle: Likewise.
1448         * localedata/locales/translit_cjk_compat: Likewise.
1449         * localedata/locales/translit_combining: Likewise.
1450         * localedata/locales/translit_compat: Likewise.
1451         * localedata/locales/translit_font: Likewise.
1452         * localedata/locales/translit_fraction: Likewise.
1454 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1456         [BZ #24531]
1457         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1458         (do_set_tcache_count): Only update if count is small enough.
1459         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1461 2019-05-10  Florian Weimer  <fweimer@redhat.com>
1463         * nptl/sem_close.c (struct walk_closure): Define.
1464         (walker): Adjust for __twalk_r.
1465         (sem_close): Call __twalk_r.
1467 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1469         * support/timespec.c (test_timespec_before_impl,
1470         test_timespec_equal_or_after_impl): print timespec member as intmax_t
1471         insted of long int.
1473 2019-05-09  Mike Crowe <mac@mcrowe.com>
1475         * nptl/tst-abstime.c: Use libsupport.
1477         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1478         small bug where only tv.tv_usec was checked which could cause an
1479         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1480         than a second.
1482         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1483         libsupport.
1485         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1486         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1488         * nptl/tst-cond11.c: Use libsupport.
1490         * support/timespec.h: New file.  Provide timespec helper functions
1491         along with macros in the style of those in check.h.
1492         * support/timespec.c: New file.  Implement check functions declared
1493         in support/timespec.h.
1494         * support/timespec-add.c: New file from gnulib containing
1495         timespec_add implementation that handles overflow.
1496         * support/timespec-sub.c: New file from gnulib containing
1497         timespec_sub implementation that handles overflow.
1498         * support/README: Mention timespec.h.
1500 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1502         [BZ #24537]
1503         * nptl/Makefile: Move tst-eintr1 to xtests.
1505 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1507         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1508          TRUNC handling.
1509         (round_mode): Add definition for TRUNC.
1510         * sysdeps/powerpc/fpu/s_trunc.c: New file.
1511         * sysdeps/powerpc/fpu/s_truncf.c: New file.
1512         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1513         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1514         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1515         Likewise.
1516         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1517         Likewise.
1518         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1519         Likewise.
1520         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1521         Likewise.
1522         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1523         file.
1524         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1525         Likewise.
1526         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1527         Likewise.
1528         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1529         Likewise.
1530         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1531         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1532         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1533         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1534         s_truncf-power5+, and s_truncf-ppc64.
1535         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1536         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1537         file.
1538         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1540         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1541         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1542         file.
1543         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1544         Likewise.
1545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1546         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1547         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1548         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1549         s_truncf-power5+, and s_truncf-ppc64.
1550         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1551         file.
1552         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1553         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1554         Likewise.
1555         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1556         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1557         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1558         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1559         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1561         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1562         ROUND handling.
1563         (round_mode): Add definition for ROUND.
1564         (round_to_integer_float): Likewise.
1565         * sysdeps/powerpc/fpu/s_round.c: New file.
1566         * sysdeps/powerpc/fpu/s_roundf.c: New file.
1567         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1568         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1569         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1570         Likewise.
1571         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1572         Likewise.
1573         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1574         Likewise.
1575         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1576         Likewise.
1577         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1578         file.
1579         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1580         Likewise.
1581         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1582         Likewise.
1583         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1584         Likewise.
1585         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1586         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1587         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1588         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1589         s_roundf-power5+, and s_roundf-ppc64.
1590         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1591         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1592         file.
1593         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1595         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1596         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1597         file.
1598         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1599         Likewise.
1600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1601         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1602         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1603         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1604         s_roundf-power5+, and s_roundf-ppc64.
1605         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1606         file.
1607         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1608         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1609         Likewise.
1610         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1611         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1612         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1613         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1614         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1616         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1617         Add FLOOR option.
1618         (round_mode): Add definition for FLOOR.
1619         * sysdeps/powerpc/fpu/s_floor.c: New file.
1620         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1621         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1622         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1624         Remove file.
1625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1626         Likewise
1627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1628         Likewise.
1629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1630         Likewise.
1631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1632         New file.
1633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1634         Likewise.
1635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1636         Likewise.
1637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1638         Likewise.
1639         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1640         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1641         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1642         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1643         s_floorf-power5+, and s_floorf-ppc64.
1644         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1645         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1646         file.
1647         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1649         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1650         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1651         file.
1652         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1653         Likewise.
1654         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1655         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1656         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1657         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1658         s_floorf-power5+, and s_floorf-ppc64.
1659         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1660         file.
1661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1662         file.
1663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1664         Likewise.
1665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1666         Likewise.
1667         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1668         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1669         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1670         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1672 2019-05-08  Mike Crowe  <mac@mcrowe.com>
1674         * support/xclock_gettime.c (xclock_gettime): New file. Provide
1675         clock_gettime wrapper for use in tests that fails the test rather
1676         than returning failure.
1678         * support/xtime.h: New file to declare xclock_gettime.
1680         * support/Makefile: Add xclock_gettime.c.
1682         * support/README: Mention xtime.h.
1684 2019-05-08  Florian Weimer  <fweimer@redhat.com>
1686         malloc/tst-mallocfork2: Use process-shared barriers.
1687         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1688         (signal_count, sigusr1_sender_pid): Remove.
1689         (iterations): Define constant.
1690         (shared): New variable.
1691         (sigusr1_received): Update comment.
1692         (sigusr1_handler): Do not send SIGSTOP to the sender process.
1693         (signal_sender): Optional use barriers to avoid sending signals
1694         during irrelevant times.
1695         (do_it): Initialize variable shared.  Use xfork for error
1696         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
1697         the iteration count, independent of signal delivery.  Check for
1698         deadlocks in fork.  Introduce barriers for reducing signal
1699         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
1700         replaced by the barriers.  Count signals during fork/free/malloc
1701         and report them.
1702         * malloc/Makefile (tst-mallocfork): Link with libpthread.
1704 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
1706         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1707         version to 5.1.
1708         (clock_adjtime64) New syscall.
1709         (clock_getres_time64) Likewise.
1710         (clock_gettime64) Likewise.
1711         (clock_nanosleep_time64) Likewise.
1712         (clock_settime64) Likewise.
1713         (futex_time64) Likewise.
1714         (io_pgetevents_time64) Likewise.
1715         (io_uring_enter) Likewise.
1716         (io_uring_register) Likewise.
1717         (io_uring_setup) Likewise.
1718         (mq_timedreceive_time64) Likewise.
1719         (mq_timedsend_time64) Likewise.
1720         (pidfd_send_signal) Likewise.
1721         (ppoll_time64) Likewise.
1722         (pselect6_time64) Likewise.
1723         (recvmmsg_time64) Likewise.
1724         (rt_sigtimedwait_time64) Likewise.
1725         (sched_rr_get_interval_time64) Likewise.
1726         (semtimedop_time64) Likewise.
1727         (timer_gettime64) Likewise.
1728         (timer_settime64) Likewise.
1729         (timerfd_gettime64) Likewise.
1730         (timerfd_settime64) Likewise.
1731         (utimensat_time64) Likewise.
1733         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1734         version to 9 branch.
1736 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1738         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1739         __memmove_thunderx2 to the list of implementations
1740         * sysdeps/aarch64/multiarch/memmove.c: Likewise
1741         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1742         (__memmove_thunderx2): Rewritten using SIMD ld/st
1743         (__memcpy_thunderx2): Fixed handling overlapping cases.
1744         Used ldp/stp instead of ldr/str if possible. Made loops
1745         tails branchless.
1747 2019-05-03  Florian Weimer  <fweimer@redhat.com>
1749         * misc/tst-tsearch.c (walk_tree): Add more error checking.
1751 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1753         [BZ #24506]
1754         * elf/tst-pldd.c (in_str_list): New function.
1755         (do_test): Add default names for ld and libc as one option.
1757 2019-05-02  Florian Weimer  <fweimer@redhat.com>
1759         misc: Add twalk_r function.
1760         * include/search.h (__twalk_r): Declare.
1761         * manual/examples/twalk.c: New file.
1762         * manual/search.texi (Tree Search Function): Document twalk_r.
1763         * misc/Versions (2.30): Export twalk_r.
1764         (GLIBC_PRIVATE): Export __twalk_r.
1765         * misc/search.h [__USE_GNU] (twalk_r): Declare.
1766         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1767         (twalk_r): Add weak alias.
1768         * misc/tst-tsearch.c (struct walk_trace_element): Define.
1769         (walk_trace): New variable.
1770         (struct twalk_with_twalk_r_closure): Define.
1771         (twalk_with_twalk_r_action): New function.
1772         (twalk_with_twalk_r): Likewise.
1773         (walk_action): Call walk_trace_add.
1774         (walk_tree_with): Rename from walk_tree.  Add walk argument.
1775         (walk_tree): New function.
1776         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1777         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1778         Likewise.
1779         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1780         Likewise.
1781         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1782         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1783         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1784         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1785         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1786         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1787         Likewise.
1788         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1789         Likewise.
1790         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1791         Likewise.
1792         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1793         (GLIBC_2.30): Likewise.
1794         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1795         (GLIBC_2.30): Likewise.
1796         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1797         (GLIBC_2.30): Likewise.
1798         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1799         (GLIBC_2.30): Likewise.
1800         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1801         Likewise.
1802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1803         (GLIBC_2.30): Likewise.
1804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1805         (GLIBC_2.30): Likewise.
1806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1807         (GLIBC_2.30): Likewise.
1808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1809         (GLIBC_2.30): Likewise.
1810         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1811         Likewise.
1812         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1813         Likewise.
1814         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1815         Likewise.
1816         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1817         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1818         Likewise.
1819         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1820         Likewise.
1821         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1822         Likewise.
1823         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1824         Likewise.
1826 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1828         Make mktime etc. compatible with __time64_t
1829         Keep these functions compatible with Gnulib while adding
1830         __time64_t support.  The basic idea is to move private API
1831         declarations from include/time.h to time/mktime-internal.h, since
1832         the former file cannot easily be shared with Gnulib whereas the
1833         latter can.
1834         Also, do some other minor cleanup while in the neighborhood.
1835         * include/time.h: Include stdbool.h, time/mktime-internal.h.
1836         (__mktime_internal): Move this prototype to time/mktime-internal.h,
1837         since Gnulib needs it.
1838         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1839         Move these macros to time/mktime-internal.h, since Gnulib needs them.
1840         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1841         (in_time_t_range): New static function.
1842         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1843         so that glibc users are not tempted to use __time64_t.
1844         * time/mktime-internal.h: Rewrite so that it does both glibc
1845         and Gnulib work.  Include time.h if not _LIBC.
1846         (mktime_offset_t) [!_LIBC]: Define for gnulib.
1847         (__time64_t): New type or macro, moved here from
1848         posix/bits/types.h.
1849         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1850         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1851         from include/time.h.
1852         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1853         New macros, taken from GNulib.
1854         (__mktime_internal): New prototype, moved here from include/time.h.
1855         * time/mktime.c (mktime_min, mktime_max, convert_time)
1856         (ranged_convert, __mktime_internal, __mktime64):
1857         * time/timegm.c (__timegm64):
1858         Use __time64_t, not time_t.
1859         * time/mktime.c: Stop worrying about whether time_t is floating-point.
1860         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1861         Rename from mktime.
1862         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1863         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1864         for libc_hidden_def.
1865         Include errno.h.
1866         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1867         Rename from timegm.
1868         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1870 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
1872         [BZ #19444]
1873         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1874         from `-Wmaybe-uninitialized'.
1875         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1877 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1879         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1880         function.
1881         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1882         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1883         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1884         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1885         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1887         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1889         Remove file.
1890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1891         Likewise.
1892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1893         Likewise.
1894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1895         Likewise.
1896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1897         New file.
1898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1899         Likewise.
1900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1901         Likewise.
1902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1903         Likewise.
1904         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1905         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1906         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1907         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1908         Likewise.
1909         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1910         Likewise.
1911         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1912         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1913         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1914         file.
1915         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1916         Likewise.
1917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1918         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1919         * here.
1920         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1921         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1922         s_ceilf-power5+, and s_ceilf-ppc64.
1923         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1924         file.
1925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1928         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1929         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1930         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1931         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1933         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1934         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1935         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1937 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
1939         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1940         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1941         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1942         (sem_getvalue): Likewise.
1944 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1946         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1947         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1949 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1951         Makeconfig: Move -Wl,-rpath-link options before library references.
1952         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1953         (link-libc): Remove $(link-libc-rpath-link).
1955 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1957         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1958         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1959         (+link-static-before-libc): Remove $(CC).
1960         (+link-static, +link-static-tests): Add $(CC).
1961         (+link-before-libc): Remove $(CC).
1962         (+link, +link-pie, +link-pie-printers): Add $(CC).
1964 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1966         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1967         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1968         (+link-static-before-libc): Remove $(CC).
1969         (+link-static, +link-static-tests): Add $(CC).
1970         (+link-before-libc): Remove $(CC).
1971         (+link, +link-pie, +link-pie-printers): Add $(CC).
1973 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
1975         [BZ#24484]
1976         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1978 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1980         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1981         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1982         (bench-link-targets): New variable.
1983         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
1985 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1987         Also enable BIND_NOW for programs if --enable-bind-now.
1988         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1989         (+link-pie): Use $(link-extra-flags).
1990         (+link-static): Likewise.
1991         [! $(build-pie-default)] (+link): Likewise.
1992         * manual/install.texi (Configuring and compiling): Update
1993         --enable-bind-now description.
1994         * INSTALL: Regenerated.
1996 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
1998         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1999         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
2001 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
2003         [BZ #18465]
2004         * malloc/Makefile (others): Add memusagestat.
2005         ($(objpfx)memusagestat): Delete rule.
2006         (LDLIBS-memusagestat): New variable.
2008 2019-04-24  Florian Weimer  <fweimer@redhat.com>
2010         * locale/Makefile (tests-special): Guard setting by
2011         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
2012         to run while cross-compiling.
2014 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2016         [BZ #18035]
2017         * elf/Makefile (tests-container): Add tst-pldd.
2018         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
2019         (E(find_maps)): Avoid use alloca, use default read file operations
2020         instead of explicit LFS names, and fix infinite loop.
2021         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
2022         (get_process_info): Use _Static_assert instead of assert, use default
2023         directory operations instead of explicit LFS names, and free some
2024         leadek pointers.
2025         * elf/tst-pldd.c: New file.
2027 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2029         * malloc/arena.c (do_set_mallopt_check): Removed.
2031 2019-04-23  Florian Weimer  <fweimer@redhat.com>
2033         locale: Add LOCPATH diagnostics to the locale program.
2034         * locale/programs/locale.c (setlocale_failed): New variable.
2035         (try_setlocale): New function.
2036         (quote_string): Likewise.
2037         (setlocale_diagnostics): Likewise.
2038         (main): Call try_setlocale instead of setlocale.  Call
2039         setlocale_diagnostics.
2040         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
2041         (tst-locale-locpath.out): New target.
2042         * locale/tst-locale-locpath.sh: New file.
2044 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2046         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
2047         to 2.30 notes.
2049 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2051         [BZ #23741]
2052         * malloc/hooks.c (malloc_check, realloc_check): Use
2053         __builtin_add_overflow on overflow check and adapt to
2054         checked_request2size change.
2055         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
2056         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
2057         allocation size to PTRDIFF_MAX.
2058         (REQUEST_OUT_OF_RANGE): Remove macro.
2059         (checked_request2size): Change to inline function and limit maximum
2060         requested size to PTRDIFF_MAX.
2061         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
2062         maximum allocation size to PTRDIFF_MAX.
2063         (_mid_memalign): Use _int_memalign call for overflow check.
2064         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
2065         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
2066         limit maximum requested size to PTRDIFF_MAX.
2067         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
2068         valloc, pvalloc): Add __attribute_alloc_size__.
2069         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
2070         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
2071         larger than PTRDIFF_MAX.
2072         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
2073         around tests of malloc with negative sizes.
2074         * malloc/tst-posix_memalign.c (do_test): Likewise.
2075         * malloc/tst-pvalloc.c (do_test): Likewise.
2076         * malloc/tst-valloc.c (do_test): Likewise.
2077         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
2078         with resulting size allocation larger than PTRDIFF_MAX with
2079         reallocarray_nowarn.
2080         (reallocarray_nowarn): New function.
2081         * NEWS: Mention the malloc function semantic change.
2083 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2085         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
2086         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2088         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
2089         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
2090         * sysdeps/powerpc/fpu/s_fma.c: New file.
2091         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2093         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
2094         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
2096         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
2097         the magic flag store.
2098         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
2099         Likewise.
2100         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
2101         Likewise.
2102         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
2103         Remove rt_sigreturn call.
2105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2106         Remove rt_sigreturn call.
2107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2108         Likewise.
2109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
2110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2112         * support/Makefile (libsupport-routines): Add support_subprocess,
2113         xposix_spawn, xposix_spawn_file_actions_addclose, and
2114         xposix_spawn_file_actions_adddup2.
2115         (tst-support_capture_subprocess-ARGS): New rule.
2116         * support/capture_subprocess.h (support_capture_subprogram): New
2117         prototype.
2118         * support/support_capture_subprocess.c (support_capture_subprocess):
2119         Refactor to use support_subprocess and support_capture_poll.
2120         (support_capture_subprogram): New function.
2121         * support/tst-support_capture_subprocess.c (write_mode_to_str,
2122         str_to_write_mode, test_common, parse_int, handle_restart,
2123         do_subprocess, do_subprogram, do_multiple_tests): New functions.
2124         (do_test): Add support_capture_subprogram tests.
2125         * support/subprocess.h: New file.
2126         * support/support_subprocess.c: Likewise.
2127         * support/xposix_spawn.c: Likewise.
2128         * support/xposix_spawn_file_actions_addclose.c: Likewise.
2129         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
2130         * support/xspawn.h: Likewise.
2132 2019-04-17  Mike Gerow  <gerow@google.com>
2134         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
2135         groups limit.
2137 2019-04-11  Florian Weimer  <fweimer@redhat.com>
2139         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
2140         domain with empty string.
2141         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2143 2019-04-11  Florian Weimer  <fweimer@redhat.com>
2145         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
2146         comment.
2147         (alloc_buffer_next): Change return type to non-const.  Update
2148         comment.
2150 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2152         * manual/time.texi (Formatting Calendar Time): Add missing percent
2153         sign to conversion specifier.
2155 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
2156             Kwok Cheung Yeung  <kcy@codesourcery.com>
2158         [BZ #16573]
2159         * malloc/mtrace.c: Define prototypes for all hooks.
2160         (set_default_hooks): New function.
2161         (set_trace_hooks): Likewise.
2162         (save_default_hooks): Likewise.
2163         (tr_freehook): Use new s*_hooks functions.
2164         (tr_mallochook): Likewise.
2165         (tr_reallochook): Likewise.
2166         (tr_memalignhook): Likewise.
2167         (mtrace): Likewise.
2168         (muntrace): Likewise.
2170 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2172         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
2173         (generic_stpcpy): New function.
2174         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
2175         (generic_stpncpy): New function.
2176         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
2177         (generic_strcat): New function.
2178         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
2179         (generic_strcpy): New function.
2180         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
2181         (STUPID_STRNCAT): Remove function.
2182         (generic_strncat): New function.
2183         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
2184         (STUPID_STRNCPY): Remove function.
2185         (generic_strncpy): New function.
2186         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
2187         (generic_strnlen): New function.
2188         (memchr_strnlen): New function.
2189         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
2190         (memchr_strlen): Likewise.
2192 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2194         * benchtests/bench-strstr.c (input): Add realistic input text.
2195         (stupid_strstr): Remove function.
2196         (basic_strstr): Add function.
2197         (twoway_strstr): Add function.
2198         (do_one_test): Add result checking.
2199         (do_test): Use new input text.  Remove accidental early matches.
2200         (test_main): Improve range of tests, reduce unaligned cases.
2202 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2204         * benchtests/bench-memmem.c (simple_memmem): Remove function.
2205         (basic_memmem): Add function.
2206         (twoway_memmem): Add function.
2208 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2210         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
2211         * benchtests/bench-malloc-thread.c: Likewise.
2212         * benchtests/bench-skeleton.c: Likewise.
2213         * benchtests/bench-strtod.c: Likewise.
2214         * benchtests/bench-timing.h: Likewise.
2216 2019-04-08  Florian Weimer  <fweimer@redhat.com>
2218         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
2219         definitions.
2220         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
2221         RES_INSECURE2 security checks.
2222         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
2223         RES_INSECURE2 handling.
2225 2019-04-08  Florian Weimer  <fweimer@redhat.com>
2227         resolv: Remove support for RES_USE_INET6 and the inet6 option.
2228         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
2229         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
2230         GETHOSTBYNAME.
2231         * resolv/Makefile (tests): Remove tst-res_use_inet6.
2232         (tests-internal): Update justification for tst-resolv-res_init,
2233         tst-resolv-res_init-thread.
2234         (tst-res_use_inet6): Remove target.
2235         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
2236         * resolv/res_debug.c (p_option): Remove "inet6" support.
2237         * resolv/res_init.c (res_setoptions): Likewise.
2238         * resolv/res_use_inet6.h: Remove file.
2239         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
2240         definition.
2241         (res_use_inet6): Always return false.
2242         * resolv/resolv.h (RES_USE_INET6): Remove definition.
2243         * resolv/resolv_context.h: Adjust file comment.
2244         (struct resolv_context): Update comment on __next field.
2245         (__resolv_context_put): Update comment.
2246         * resolv/tst-res_use_inet6.c: Remove file.
2247         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
2248         "inet6" support.
2249         (test_cases): Adjust test case.
2250         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
2251         (thread_byname2_af_inet6): Use old byname_inet6 code.
2252         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
2253         (gai): Remove do_inet6 argument.
2254         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
2255         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
2256         (thread_gai_unspec_inet6): Remove functions.
2257         (do_test): Adjust thread_funcs.
2258         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
2259         RES_USE_INET6 flag.
2260         (gaih_inet): Do not disable RES_USE_INET6 flag.
2262 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
2264         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
2265         and remove redundant code.
2267 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2269         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
2270         New rule.
2271         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
2272         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
2273         Likewise.
2274         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
2275         Likewise.
2276         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
2277         Likewise.
2278         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
2279         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
2280         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
2281         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
2282         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
2283         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
2284         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2285         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
2286         wcsrchr-power7.
2287         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
2288         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2289         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2290         Remove wcsrchr optimizations.
2291         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2293         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
2294         the loop unroll.
2296         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
2297         New rule.
2298         * sysdeps/powerpc/power6/wcschr.c: Remove file.
2299         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
2300         Likewise.
2301         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
2302         Likewise.
2303         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
2304         Likewise.
2305         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2306         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2307         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2308         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2309         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2310         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2311         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2312         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2313         wcschr-power7.
2314         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2315         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2316         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2317         Remove wcschr optimizations.
2318         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2320         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2321         the loop unroll.
2323         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2324         New rule.
2325         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2326         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2327         Likewise.
2328         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2329         Likewise.
2330         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2331         Likewise.
2332         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2333         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2334         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2335         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2336         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2337         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2338         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2339         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2340         wcscpy-power7.
2341         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2342         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2343         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2344         Remove wcscpy optimizations.
2345         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2347         * include/loop_unroll.h: New file.
2348         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2349         besides generic implementation.
2351 2019-04-03  DJ Delorie  <dj@redhat.com>
2353         * time/tst-strftime3.c (tm_to_printed): Disable warning about
2354         snprintf truncating output.
2356 2019-04-02  DJ Delorie  <dj@redhat.com>
2358         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
2359         warning.
2361 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2363         [BZ #22964]
2364         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2365         era.
2366         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2367         (mkreftable): Add rules for the new Japanese era and the new dates.
2369 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2370             Rafal Luzynski  <digitalfreak@lingonborough.com>
2372         * time/tst-strftime2.c (date_t): Explicitly define the type.
2373         (dates): Use natural month and year numbers to express a date.
2374         (is_before): New function to compare dates.
2375         (mkreftable): Minor improvements to simplify maintenance.
2376         (do_test): Reflect the changes in dates array.
2378         [BZ #24293]
2379         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2380         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2381         * time/tst-strftime2.c (locales): Likewise.
2382         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2383         2010-04-01, and 2011-04-01.
2384         (mkreftable): Add rules for the new locales and the new dates.
2386 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
2388         * localedata/locales/ja_JP: Add comments to era entries.
2390 2019-04-01  DJ Delorie  <dj@redhat.com>
2392         [BZ #24394]
2393         * time/strptime_l.c (%Ey): Fix fencepost error.
2394         * time/tst-strftime3.c: New.
2395         * time/Makefile (tests): Add tst-strftime3.
2397 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
2399         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2400         conditional branch to DIVBYZERO.  Fix unwind info.
2401         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2402         excb after conditional branch to $powerof2.  Add missing unop
2403         instructions and .align directives and reorder instructions to
2404         match __divqu.
2406 2019-04-01  Richard Henderson  <rth@twiddle.net>
2408         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2409         Do not redefine.
2410         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2411         Do not redefine.
2413 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
2415         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2416         $libc_cv_riscv_float_abi in `test' invocation.
2417         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2419 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
2421         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2422         asm with builtin.
2423         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2424         Likewise.
2425         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2426         (_GET_SI_FPSCR): Likewise.
2427         (_SET_SI_FPSCR): Likewise.
2429 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2431         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2432         clang 2.8.
2433         (signbit): Use builtin for clang 3.3.
2434         (isinf): Use builtin for clang 3.7.
2436 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2438         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2440 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
2442         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2443         quote in printf.
2445 2019-03-25  Mike Crowe  <mac@mcrowe.com>
2447         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2448         pthread_rwlock_timedrdlock with calls to
2449         pthread_rwlock_timedwrlock to ensure that the latter is tested
2450         too. Use new function name in diagnostic messages too.
2452         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2453         (do_test) Use libsupport test macros rather than hand-coded
2454         conditionals and error messages. Ensure that sem_init returns zero
2455         rather than not -1. Use <support/test-driver.c> rather than
2456         test-skeleton.c.
2458         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2459         test macros rather than hand-coded conditionals and error messages.
2460         Use <support/test-driver.c> rather than test-skeleton.c.
2462 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
2464         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2466         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2467         (NT_MIPS_MSA): Likewise.
2469 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2471         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2472         * benchtests/README: Update description.
2473         * benchtests/bench-timing.h: Default to hp-timing.
2474         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2475         HP_TIMING_PRINT): Remove.
2476         (HP_TIMING_NOW): Add generic implementation.
2477         (hp_timing_t): Change to uint64_t.
2479         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2480         HP_TIMING_INLINE.
2481         * nptl/descr.h: Likewise.
2482         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2483         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2484         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2485         Abstract hp-timing usage with RTLD_* macros.
2486         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2487         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2488         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2489         HP_TIMING_NONAVAIL): Likewise.
2490         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2491         Likewise.
2492         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2493         HP_SMALL_TIMING_AVAIL): Likewise.
2494         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2495         HP_SMALL_TIMING_AVAIL): Likewise.
2496         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2497         HP_SMALL_TIMING_AVAIL): Likewise.
2498         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2499         HP_SMALL_TIMING_AVAIL): Likewise.
2500         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2501         Likewise.
2502         * sysdeps/generic/hp-timing-common.h: Update comment with
2503         HP_TIMING_AVAIL removal.
2505         * include/random-bits.h: New file.
2506         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2507         (__res_context_mkquery): Remove usage hp-timing usage and replace with
2508         random_bits.
2509         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2510         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2511         Likewise.
2513         * include/libc-internal.h (__get_clockfreq): Remove prototype.
2514         * rt/Makefile (clock-routines): Remove get_clockfreq.
2515         * rt/get_clockfreq.c: Remove file.
2516         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2517         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2518         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2519         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2520         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2522         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2523         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2524         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2525         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2526         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2528         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2529         pthread_clock_settime.
2530         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2531         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2532         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2533         * elf/rtld.c (_dl_start_final): Likewise.
2534         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2535         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2536         Remove.
2537         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2538         (_dl_cpuclock_offset): Remove.
2539         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2540         cpuclock_offset_ununsed.
2541         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2542         cpuclock_offset set.
2543         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2544         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2545         * nptl/pthread_clock_gettime.c: Remove file.
2546         * nptl/pthread_clock_settime.c: Likewise.
2547         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2548         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2549         and CLOCK_PROCESS_CPUTIME_ID support.
2550         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2551         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2552         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2553         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2554         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2555         Likewise.
2556         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2558 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2560         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2561         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2562         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2563         New defines.
2564         * sysdeps/s390/memmem-arch13.S: New file.
2565         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2566         if it is only used as fallback.
2567         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2568         * sysdeps/s390/multiarch/ifunc-impl-list.c
2569         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2571 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2573         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2574         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2575         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2576         New defines.
2577         * sysdeps/s390/multiarch/ifunc-impl-list.c
2578         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2579         * sysdeps/s390/strstr-arch13.S: New file.
2580         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2581         if it is only used as fallback.
2582         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2584 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2586         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2587         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2588         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2589         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2590         ifunc selector.
2591         * sysdeps/s390/multiarch/ifunc-impl-list.c
2592         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2593         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2594         S390_IS_ARCH13_MIE3): New defines.
2596 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2598         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2599         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2600         * sysdeps/s390/configure.ac: Add checks for arch13 support.
2601         * sysdeps/s390/configure: Regenerated.
2603 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2605         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2606         Add vxe2, vxp, dflt, sort flags.
2607         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2608         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2609         capabilities.
2610         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2611         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2612         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2613         HWCAP_S390_DFLT): Define.
2615 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2617         [BZ #24372]
2618         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2619         of compiler warning.
2620         * locale/programs/ld-collate.c (collate_output): Likewise.
2622 2019-03-21  DJ Delorie  <dj@redhat.com>
2624         [BZ #24372]
2625         * iconv/iconvconfig.c (write_output): Replace floating point math
2626         with integer math to avoid imprecise results.
2627         * locale/programs/ld-collate.c (collate_output): Likewise.
2629 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
2631         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2632         Add HWCAP_S390_VX and HWCAP_S390_VXE.
2634 2019-03-20  mansayk  <6688000@gmail.com>
2636         [BZ #24296]
2637         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2638         (abday): Likewise, but remove the trailing dots.
2640 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
2642         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2643         macro.
2644         (HWCAP_PACA): Likewise.
2645         (HWCAP_PACG): Likewise.
2646         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2647         Increase to 32.
2648         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2650 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2652         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2653         should be handled.
2655 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
2657         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2658         version to 5.0.
2659         (old_getpagesize): New syscall.
2661 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
2663         [BZ #24293]
2664         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2665         * localedata/locales/cmn_TW (era): Likewise.
2666         * localedata/locales/hak_TW (era): Likewise.
2667         * localedata/locales/lzh_TW (era): Likewise.
2668         * localedata/locales/nan_TW (era): Likewise.
2670 2019-03-14  Adam Maris  <amaris@redhat.com>
2672         * malloc/malloc.c (_int_malloc): Check for large bin list
2673         corruption when inserting unsorted chunk.
2675 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2677         Remove obsolete, never-implemented XSI STREAMS declarations.
2678         * manual/terminal.texi (Allocation): Remove portability note and
2679         adjust example.
2680         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2681         _SC_STREAMS.
2682         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2683         * sysdeps/unix/inet/Subdirs (streams): Remove.
2684         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2685         (conformtest-headers-UNIX98): Likewise.
2686         (conformtest-headers-XOPEN2K): Likewise.
2687         (conformtest-headers-POSIX2008): Likewise.
2688         * posix/compat-streams.c: New file.
2689         * posix/Makefile (routines): Add it.
2690         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2691         getpmsg, isastream, putmsg, putpmsg.
2692         (GLIBC_2.30): New section.
2693         * bits/stropts.h: Remove file.
2694         * bits/xtitypes.h: Likewise.
2695         * conform/data/stropts.h-data: Likewise.
2696         * include/stropts.h: Likewise.
2697         * include/sys/stropts.h: Likewise.
2698         * include/xtitypes.h: Likewise.
2699         * streams/Makefile: Likewise.
2700         * streams/fattach.c: Likewise.
2701         * streams/fdetach.c: Likewise.
2702         * streams/getmsg.c: Likewise.
2703         * streams/getpmsg.c: Likewise.
2704         * streams/isastream.c: Likewise.
2705         * streams/putmsg.c: Likewise.
2706         * streams/putpmsg.c: Likewise.
2707         * streams/stropts.h: Likewise.
2708         * streams/sys/stropts.h: Likewise.
2709         * sysdeps/ia64/bits/xtitypes.h: Likewise.
2710         * sysdeps/s390/bits/xtitypes.h: Likewise.
2711         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2712         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2713         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2714         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2715         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2716         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2717         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2718         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2719         * sysdeps/x86/bits/xtitypes.h: Likewise.
2721 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2723         * nss/tst-nss-files-alias-truncated.c (do_test): Load
2724         libnss_files.
2725         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2726         but not with libnss_files.
2727         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2729 2019-03-14  Zack Weinberg  <zackw@panix.com>
2731         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2732         Specify encoding="utf-8" when opening headers to check.
2734 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
2736         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2737         version to 5.0.
2738         (Context.checkout_tar): Handle variable major version for Linux
2739         kernel.
2741 2019-03-13  Florian Weimer  <fweimer@redhat.com>
2743         [BZ #24047]
2744         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2746 2019-03-13  Zack Weinberg  <zackw@panix.com>
2748         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2749         Move to stdlib.
2750         * include/inttypes.h: Adjust to match.
2751         * include/stdint.h: New wrapper.
2753 2019-03-13  Zack Weinberg  <zackw@panix.com>
2755         * scripts/check-obsolete-constructs.py: New test script.
2756         * scripts/check-installed-headers.sh: Remove tests for
2757         obsolete typedefs, superseded by check-obsolete-constructs.py.
2758         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2759         as a special test.  Update commentary.
2760         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2761         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2762         Update commentary.
2763         * posix/sys/types.h (__u_intN_t): Remove.
2764         (u_int8_t): Typedef using __uint8_t.
2765         (u_int16_t): Typedef using __uint16_t.
2766         (u_int32_t): Typedef using __uint32_t.
2767         (u_int64_t): Typedef using __uint64_t.
2769 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
2771         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2772         call _dl_procinfo.
2773         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2774         Ignore types other than AT_HWCAP.
2775         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2776         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2777         Likewise.
2778         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2779         in the case of falling back to generic output mechanism.
2780         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2781         Likewise.
2783 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2785         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2787 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2789         [BZ #24047]
2790         resolv: Enable full ICMP errors for UDP DNS sockets
2791         * resolv/res_enable_icmp.c: New file.
2792         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2793         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2794         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2795         socket.
2797 2019-03-11  Mao Han  <han_mao@c-sky.com>
2799         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2800         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2802 2019-03-11  Mao Han  <han_mao@c-sky.com>
2804         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2805         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2806         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2808 2019-03-11  Mao Han  <han_mao@c-sky.com>
2810         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2811         directly.
2812         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2813         definition.
2815 2019-03-11  Mao Han  <han_mao@c-sky.com>
2817         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2818         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2819         in mcontext_t
2821 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
2823         [BZ #24307]
2824         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2825         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2826         Unicode 12.0.0.
2827         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2828         * localedata/unicode-gen/PropList.txt: Likewise.
2829         * localedata/unicode-gen/UnicodeData.txt: Likewise.
2830         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2831         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2832         * localedata/charmaps/UTF-8: Regenerate.
2833         * localedata/locales/i18n_ctype: Likewise.
2834         * localedata/locales/tr_TR: Likewise.
2835         * localedata/locales/translit_circle: Likewise.
2836         * localedata/locales/translit_cjk_compat: Likewise.
2837         * localedata/locales/translit_combining: Likewise.
2838         * localedata/locales/translit_compat: Likewise.
2839         * localedata/locales/translit_font: Likewise.
2840         * localedata/locales/translit_fraction: Likewise.
2842 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
2844         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2845         than after operators.
2846         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2847         (setitimer_locked): Likewise.
2848         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2849         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2850         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2851         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2852         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2853         (PPC_CPU_SUPPORTED): Likewise.
2854         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2855         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2856         (stat_overflow): Likewise.
2857         (statfs_overflow): Likewise.
2858         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2859         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2860         (eq_ttyname_r): Likewise.
2861         (run_chroot_tests): Likewise.
2863 2019-03-07  Florian Weimer  <fweimer@redhat.com>
2865         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2866         header check.
2868 2019-03-07  Martin Liska  <mliska@suse.cz>
2870         * math/Makefile: Change location where math-vector-fortran.h is
2871         installed.
2872         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2873         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2874         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2875         * scripts/check-installed-headers.sh: Skip Fortran header files.
2876         * scripts/check-wrapper-headers.py: Likewise.
2878 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2880         * nptl/nptl-init.c (__have_futex_clock_realtime,
2881         __have_futex_clock_realtime): Remove definition.
2882         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2883         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2884         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2885         __ASSUME_FUTEX_CLOCK_REALTIME support.
2886         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2887         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2888         * sysdeps/unix/sysv/linux/kernel-features.h
2889         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2890         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2891         Adjust comment.
2893 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2895         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2896         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2897         __GI___wcscpy and wcscpy.
2899 2019-03-04  Florian Weimer  <fweimer@redhat.com>
2901         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2902         declaration.
2903         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2904         defined.
2906 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
2908         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2909         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2911 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2913         [BZ #24162]
2914         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2915         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
2917 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2919         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2920         tests.
2921         (do_test): Likewise.
2922         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2923         (do_test_call_varg): Likewise.
2924         (do_test_call_rarg): Likewise.
2925         * sysdeps/ieee754/ldbl-opt/Makefile
2926         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2927         tst-nldbl-error.
2928         ($(objpfx)tst-nldbl-warn.c): New rule.
2929         ($(objpfx)tst-nldbl-error.c): Likewise.
2930         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2931         New variables.
2933 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2935         [BZ #23984]
2936         * include/bits/error-ldbl.h: New file.
2937         * include/error.h: Include stdarg.h.  Declare internal functions
2938         __error_internal and __error_at_line_internal.
2939         * misc/Makefile (headers): Add bits/error-ldbl.h.
2940         * misc/bits/error-ldbl.h: New file.
2941         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2942         avoid the inclusion of bits/error.h.
2943         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2944         and __nldbl_error_at_line.
2945         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2946         (__nldbl_error, __ndlbl_error_at_line): New functions.
2947         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2948         Redirect error and error_at_line.
2949         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2951         Likewise.
2952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2953         Likewise.
2954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2955         Likewise.
2956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2957         Likewise.
2958         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2959         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2960         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2962 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2964         [BZ #23984]
2965         * include/bits/err-ldbl.h: New file.
2966         * include/err.h: Add prototypes for the internal functions:
2967         __vwarnx_internal and __vwarn_internal.
2968         * misc/Makefile (headers): Add bits/err-ldbl.h.
2969         * misc/bits/err-ldbl.h: New file.
2970         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2971         defined, i.e.: when -mlong-double-64 is in use.
2972         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2973         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2974         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2975         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2976         (VA_CALL): New macro.
2977         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2978         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2979         functions.
2980         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2981         declare prototypes for the new functions.
2982         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2984         Likewise.
2985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2986         Likewise.
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2988         Likewise.
2989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2990         Likewise.
2991         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2992         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2993         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2995 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2997         * sysdeps/ieee754/ldbl-opt/Makefile
2998         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2999         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
3000         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
3002 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3004         [BZ #23983]
3005         * argp/Makefile (headers): Add bits/argp-ldbl.h.
3006         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
3007         * argp/bits/argp-ldbl.h: New file.
3008         * include/argp.h: Include stdarg.h.  Add prototypes for internal
3009         functions: __argp_error_internal and __argp_failure_internal.
3010         * include/bits/argp-ldbl.h: New file.
3011         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
3012         __nldbl_argp_error and __nldbl_argp_failure.
3013         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
3014         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
3015         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
3016         Redirect argp_error and argp_failure calls.
3017         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3019         Likewise.
3020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3021         Likewise.
3022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3023         Likewise.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3025         Likewise.
3026         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3027         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3028         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3030 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3032         [BZ #20419]
3033         * elf/tst-big-note-lib.S: Create a syntactically valid note.
3034         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
3035         code, to avoid creating an ABI tag note.
3036         (modules-names-nobuild): Add tst-big-note-lib.
3038 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
3040         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
3041         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
3043 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3045         [BZ #20271]
3046         * sysdeps/unix/sysv/linux/netlink_assert_response.c
3047         (__netlink_assert_response): Add additional missing newlines.
3049 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
3051         * sysdeps/powerpc/powerpc32/dl-machine.c
3052         (__elf_machine_fixup_plt): Use space before '('.
3053         (__process_machine_rela): Likewise.
3054         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
3055         Likewise.
3056         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
3057         Likewise.
3058         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
3059         Likewise.
3060         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
3061         (pattern): Likewise.
3062         (delta): Likewise.
3063         (check_result): Likewise.
3064         (check_excepts): Likewise.
3065         (check_op): Likewise.
3066         (fail_xr): Likewise.
3067         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
3068         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
3069         (SCNHSZ): Likewise.
3070         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
3071         Likewise.
3072         (ARGS): Likewise.
3073         (__makecontext): Likewise.
3074         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
3075         Likewise.
3077 2019-02-28  Florian Weimer  <fweimer@redhat.com>
3079         [BZ #23937]
3080         elf: Add test with a local IFUNC resolver.
3081         * elf/ifuncmain9.c: New file.
3082         * elf/ifuncmain9pic.c: Likewise.
3083         * elf/ifuncmain9picstatic.c: Likewise.
3084         * elf/ifuncmain9pie.c: Likewise.
3085         * elf/ifuncmain9static.c: Likewise.
3086         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
3087         ifuncmain9static, ifuncmain9picstatic.
3088         * elf/Makefile [multi-arch && build-shared] (tests-internal):
3089         Add ifuncmain9, ifuncmain9pic.
3090         * elf/Makefile [multi-arch && build-shared && have-fpie]
3091         (ifunc-pie-tests): Add ifuncmain9pie.
3092         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
3093         (CFLAGS-ifuncmain9picstatic.c): Likewise.
3094         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
3096 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3098         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
3099         * configure: Regenerated.
3100         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
3102 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3104         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
3105         symbol as __wcspcy instead of wcscpy.
3107 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3109         * include/stdio.h (__renameat2): New hidden prototype.
3110         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
3111         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
3112         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
3113         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
3115 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
3117         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
3118         if statement.
3120         * benchtests/bench-strcpy.c (do_test): Use space before '('.
3121         * benchtests/bench-string.h (cmdline_process_function): Likewise.
3122         * benchtests/bench-strlen.c (do_test): Likewise.
3123         (test_main): Likewise.
3124         * catgets/gencat.c (read_old): Likewise.
3125         * elf/cache.c (load_aux_cache): Likewise.
3126         * iconvdata/bug-iconv8.c (do_test): Likewise.
3127         * math/test-tgmath-ret.c (do_test): Likewise.
3128         * nis/nis_call.c (rec_dirsearch): Likewise.
3129         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3130         * nptl/tst-audit-threads.c (do_test): Likewise.
3131         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
3132         * nss/nss_test1.c (init): Likewise.
3133         * nss/test-netdb.c (test_hosts): Likewise.
3134         * posix/execvpe.c (maybe_script_execute): Likewise.
3135         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
3136         * stdio-common/tst-printf.c (do_test): Likewise.
3137         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
3138         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
3139         * stdlib/qsort.c (STACK_SIZE): Likewise.
3140         * stdlib/test-canon.c (do_test): Likewise.
3141         * stdlib/tst-swapcontext1.c (do_test): Likewise.
3142         * string/memcmp.c (OPSIZ): Likewise.
3143         * string/test-strcpy.c (do_test): Likewise.
3144         (do_random_tests): Likewise.
3145         * string/test-strlen.c (do_test): Likewise.
3146         (test_main): Likewise.
3147         * string/test-strrchr.c (do_test): Likewise.
3148         (do_random_tests): Likewise.
3149         * string/tester.c (test_memrchr): Likewise.
3150         (test_memchr): Likewise.
3151         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
3152         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
3153         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
3154         (read_encoded_value_with_base): Likewise.
3155         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
3156         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
3157         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
3158         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3159         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
3160         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
3161         Likewise.
3162         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
3163         Likewise.
3164         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
3165         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
3166         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
3167         Likewise.
3168         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
3169         Likewise.
3170         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
3171         Likewise.
3172         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3173         Likewise.
3174         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
3175         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
3176         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3177         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
3178         * time/test_time.c (main): Likewise.
3180 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3182         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
3184         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
3185         wmemcpy.
3187         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
3188         wmemcpy.
3190         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3192         * include/wchar.h (__wcscpy): New prototype.
3193         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
3194         (__wcscpy): Route internal symbol to generic implementation.
3195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
3196         Add internal __wcscpy alias.
3197         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
3198         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
3199         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
3200         * wcsmbs/wcscpy.c (wcscpy): Add
3201         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
3202         use generic implementation.
3203         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
3205         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
3206         wmemset.
3208         * sysdeps/m68k/wcpcpy.c: Remove file.
3209         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3211 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
3213         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
3214         than after operators.
3215         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3216         * sysdeps/mach/hurd/getcwd.c
3217         (__hurd_canonicalize_directory_name_internal): Likewise.
3218         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
3219         (pthread_mutex_consistent): Likewise.
3220         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
3221         Likewise.
3222         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
3223         (__pthread_mutex_transfer_np): Likewise.
3224         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
3225         (__pthread_mutex_unlock): Likewise.
3226         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
3227         (mtx_owned_p): Likewise.
3228         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
3229         (pthread_mutexattr_getrobust): Likewise.
3230         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
3231         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3232         Likewise.
3233         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3234         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
3235         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3236         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
3237         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3238         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3239         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
3240         Likewise.
3241         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
3242         Likewise.
3243         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
3244         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
3245         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
3246         (____longjmp_chk): Likewise.
3247         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
3248         Likewise.
3249         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3250         (INTERNAL_SYSCALL): Likewise.
3251         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3252         (INTERNAL_SYSCALL): Likewise.
3253         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3254         (__get_clockfreq_via_cpuinfo): Likewise.
3256         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
3257         comments.
3258         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
3259         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
3260         (WORD_COPY_BWD): Likewise.
3261         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3262         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3263         Likewise.
3264         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
3265         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
3266         comment.
3267         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
3269 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
3271         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
3272         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
3273         rather than after operators.
3274         * elf/cache.c (print_cache): Likewise.
3275         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
3276         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
3277         * hurd/hurdinit.c (_hurd_setproc): Likewise.
3278         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3279         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
3280         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
3281         (reauth_proc): Likewise.
3282         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
3283         (__file_name_split_at): Likewise.
3284         (__directory_name_split_at): Likewise.
3285         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3286         * hurd/port2fd.c (_hurd_port2fd): Likewise.
3287         * iconv/gconv_dl.c (do_print): Likewise.
3288         * inet/netinet/in.h (struct sockaddr_in): Likewise.
3289         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
3290         * locale/setlocale.c (new_composite_name): Likewise.
3291         * malloc/memusagestat.c (main): Likewise.
3292         * misc/fstab.c (fstab_convert): Likewise.
3293         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3294         Likewise.
3295         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
3296         (getgrent_next_file): Likewise.
3297         (internal_getgrnam_r): Likewise.
3298         (internal_getgrgid_r): Likewise.
3299         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
3300         Likewise.
3301         (internal_getgrent_r): Likewise.
3302         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3303         (getpwent_next_nss): Likewise.
3304         (getpwent_next_file): Likewise.
3305         (internal_getpwnam_r): Likewise.
3306         (internal_getpwuid_r): Likewise.
3307         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3308         Likewise.
3309         (getspent_next_nss): Likewise.
3310         (internal_getspnam_r): Likewise.
3311         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3312         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3313         * string/strchr.c (STRCHR): Likewise.
3314         * string/strchrnul.c (STRCHRNUL): Likewise.
3315         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3316         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3317         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3318         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3319         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3320         Likewise.
3321         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3322         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3323         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3324         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3325         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3326         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3327         (open_file): Likewise.
3328         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3329         (pthread_mutexattr_setprotocol): Likewise.
3330         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3331         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3332         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3333         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3334         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3335         Likewise.
3336         (elf_machine_rela): Likewise.
3337         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3338         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3339         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3340         * sysdeps/posix/rename.c (rename): Likewise.
3341         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3342         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3343         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3344         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3345         * sysdeps/unix/grantpt.c (grantpt): Likewise.
3346         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3347         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3348         Likewise.
3349         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3350         Likewise.
3351         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3352         * time/tzfile.c (__tzfile_compute): Likewise.
3354 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
3356         * benchtests/bench-memmem.c (simple_memmem): Break lines before
3357         rather than after operators.
3358         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3359         * crypt/md5.c (md5_finish_ctx): Likewise.
3360         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3361         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3362         * elf/cache.c (load_aux_cache): Likewise.
3363         * elf/dl-load.c (open_verify): Likewise.
3364         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3365         * elf/readelflib.c (process_elf_file): Likewise.
3366         * elf/rtld.c (dl_main): Likewise.
3367         * elf/sprof.c (generate_call_graph): Likewise.
3368         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3369         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3370         * hurd/dtable.c (reauth_dtable): Likewise.
3371         * hurd/getdport.c (__getdport): Likewise.
3372         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3373         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3374         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3375         Likewise.
3376         * hurd/hurdioctl.c (fioctl): Likewise.
3377         * hurd/hurdselect.c (_hurd_select): Likewise.
3378         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3379         (STOPSIGS): Likewise.
3380         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3381         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3382         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3383         * hurd/msgportdemux.c (msgport_server): Likewise.
3384         * hurd/setauth.c (_hurd_setauth): Likewise.
3385         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3386         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3387         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3388         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3389         * login/tst-utmp.c (do_check): Likewise.
3390         (simulate_login): Likewise.
3391         * mach/lowlevellock.h (lll_lock): Likewise.
3392         (lll_trylock): Likewise.
3393         * math/test-fenv.c (ALL_EXC): Likewise.
3394         * math/test-fenvinline.c (ALL_EXC): Likewise.
3395         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3396         * nis/nis_call.c (__do_niscall3): Likewise.
3397         * nis/nis_callback.c (cb_prog_1): Likewise.
3398         * nis/nis_defaults.c (searchaccess): Likewise.
3399         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3400         * nis/nis_ismember.c (internal_ismember): Likewise.
3401         * nis/nis_local_names.c (nis_local_principal): Likewise.
3402         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3403         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3404         Likewise.
3405         * nis/ypclnt.c (yp_match): Likewise.
3406         (yp_first): Likewise.
3407         (yp_next): Likewise.
3408         (yp_master): Likewise.
3409         (yp_order): Likewise.
3410         * nscd/hstcache.c (cache_addhst): Likewise.
3411         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3412         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3413         (internal_getpwuid_r): Likewise.
3414         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3415         * posix/glob.h (__GLOB_FLAGS): Likewise.
3416         * posix/regcomp.c (peek_token): Likewise.
3417         (peek_token_bracket): Likewise.
3418         (parse_expression): Likewise.
3419         * posix/regexec.c (sift_states_iter_mb): Likewise.
3420         (check_node_accept_bytes): Likewise.
3421         * posix/tst-spawn3.c (do_test): Likewise.
3422         * posix/wordexp-test.c (testit): Likewise.
3423         * posix/wordexp.c (parse_tilde): Likewise.
3424         (exec_comm): Likewise.
3425         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3426         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3427         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3428         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3429         * stdio-common/tst-fileno.c (do_test): Likewise.
3430         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3431         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3432         * stdlib/strtod_l.c (round_and_return): Likewise.
3433         (____STRTOF_INTERNAL): Likewise.
3434         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3435         * string/strcspn.c (STRCSPN): Likewise.
3436         * string/test-memmem.c (simple_memmem): Likewise.
3437         * termios/tcsetattr.c (tcsetattr): Likewise.
3438         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3439         * time/asctime.c (asctime_internal): Likewise.
3440         * time/strptime_l.c (__strptime_internal): Likewise.
3441         * time/sys/time.h (timercmp): Likewise.
3442         * time/tzfile.c (__tzfile_compute): Likewise.
3444 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
3446         [BZ #21915]
3447         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3449 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3451         * argp/argp-help.c (__argp_error_internal): New function,
3452         renamed from __argp_error, but that takes a 'mode_flags'
3453         parameter to control the format of long double parameters.
3454         (__argp_error): Converted into a call __argp_error_internal.
3455         (__argp_failure_internal): New function, renamed from
3456         __argp_failure, but that takes a 'mode_flags' parameter.
3457         (__argp_failure): Converted into a call __argp_failure_internal.
3458         * misc/err.c (__vwarnx_internal): New function, renamed from
3459         vwarnx, but that takes a 'mode_flags' parameter.
3460         (vwarnx): Converted into a call to __vwarnx_internal.
3461         (__vwarn_internal): New function, renamed from vwarn, but that
3462         takes a 'mode_flags' parameter.
3463         (vwarn): Converted into a call to __vwarn_internal.
3464         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3465         call to __vfxprintf with 'mode_flags'.
3466         (__error_internal): New function, renamed from error, but that
3467         takes a 'mode_flags' parameter.
3468         (error): Converted into a call to __error_internal.
3469         (__error_at_line_internal): New function, renamed from
3470         error_at_line, but that takes a 'mode_flags' parameter.
3471         (error_at_line): Converted into a call to
3472         __error_at_line_internal.
3473         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3474         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3475         Likewise.
3477 2019-02-20  Martin Liska  <mliska@suse.cz>
3479         * math/Makefile: Install math-vector-fortran.h.
3480         * bits/math-vector-fortran.h: New file.
3481         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3483 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3485         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3486         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3488 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
3490         * nptl/pthread_mutex_trylock.c: Fix comment.
3492 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
3494         * nptl/pthread_tryjoin.c: Fix comment.
3496 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
3498         [BZ #24231]
3499         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3500         after R_SPARC_H34 case.
3502 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3504         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3505         (getanswer): Do not call Dprintf.
3506         (res_gethostbyname2_context): Likewise.
3507         (res_gethostbyaddr_context): Likewise.
3509 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3511         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3512         declaration.
3513         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3514         Remove definitions.
3515         * libio/stdfiles.c: Update comment.
3516         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
3517         set _IO_stdin, _IO_stdout, _IO_stderr.
3518         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3519         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3520         inline function.
3521         (_IO_deallocate_file): New inline function.
3522         * libio/iolibio.h (_IO_vprintf): Remove definition.
3523         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3524         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3525         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3526         _IO_legacy_file.
3527         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3528         __builtin_expect.  Use _IO_legacy_file.
3530 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
3532         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3533         Initialize ctid with a known value and remove update of ctid
3534         after clone.
3535         (wait_tid): Adjust arguments and call futex_wait with ctid_val
3536         as assumed current value of ctid_ptr.
3538 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3540         Check that non-sysdeps headers have wrapper headers.
3541         * scripts/check-wrapper-headers.py: New file.
3542         * Makefile (tests-special): Add check-wrapper-headers.out.
3543         (check-wrapper-headers.out): New target.
3544         * Rules (tests-special): Add check-wrapper-headers.out.
3545         (check-wrapper-headers.out): New target.
3547 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3549         Add missing header wrappers under include/.
3550         * include/ar.h: New file.
3551         * include/bits/mqueue2.h: Likewise.
3552         * include/bits/stdio.h: Likewise.
3553         * include/bits/stdio2.h: Likewise.
3554         * include/fstab.h: Likewise.
3555         * include/fts.h: Likewise.
3556         * include/lastlog.h: Likewise.
3557         * include/netinet/icmp6.h: Likewise.
3558         * include/netinet/igmp.h: Likewise.
3559         * include/netinet/ip6.h: Likewise.
3560         * include/re_comp.h: Likewise.
3561         * include/regexp.h: Likewise.
3562         * include/rpcsvc/bootparam.h: Likewise.
3563         * include/rpcsvc/yp_prot.h: Likewise.
3564         * include/sys/random.h: Likewise.
3565         * include/sys/stropts.h: Likewise.
3566         * include/sys/ttychars.h: Likewise.
3567         * include/sys/vfs.h: Likewise.
3568         * include/wait.h: Likewise.
3570 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3572         * nptl_db/proc_service.h: Move to ...
3573         * sysdeps/nptl/proc_service.h: ... here.
3574         * nptl_db/thread_db.h: Move to ...
3575         * sysdeps/nptl/thread_db.h: ... here.
3576         * nptl/descr.h: Include <thread_db.h>.
3578 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3580         * io/Makefile (tests): Add tst-lockf.
3581         * io/lockf.c (lockf): Use __fcntl and only define for
3582         !__OFF_T_MATCHES_OFF64_T.
3583         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3584         __OFF_T_MATCHES_OFF64_T case.
3585         * io/tst-lockf.c: New file.
3586         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3587         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3588         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3589         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3590         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3592         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3593         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3594         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3596 2019-02-15  Florian Weimer  <fweimer@redhat.com>
3598         [BZ #24211]
3599         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3600         pd->result after the thread descriptor has been freed.
3602 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
3604         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3605         from function return type.
3607         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3609 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3611         * scripts/test_printers_common.py: Set TERM to a known harmless
3612         value.
3614 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
3616         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3617         (xdr_u_int): Likewise.
3618         (xdr_enum): Likewise.
3619         (xdr_bytes): Reword fall-through comment.
3620         (xdr_string): Likewise.
3622 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3624         [BZ #2421]
3625         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3626         (tests): Add tst-join8 tst-join9.
3627         * nptl/lll_timedwait_tid.c: Remove file.
3628         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3629         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3630         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3631         * nptl/pthread_join_common.c (timedwait_tid): New function.
3632         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3633         is set.
3634         * nptl/tst-join5.c (thread_join): New function.
3635         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3636         check.
3637         * nptl/tst-join8.c: New file.
3638         * nptl/tst-join9.c: Likewise.
3639         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3640         lll_futex_timed_wait_cancel): Add generic macros.
3641         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3642         Remove definitions.
3643         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3644         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3645         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3646         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3647         Remove function.
3648         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3649         Likewise.
3650         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3651         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3652         (lll_futex_timed_wait_cancel): New macro.
3654 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
3656         * benchtests/Makefile: Add malloc-simple benchmark.
3657         * benchtests/bench-malloc-simple.c: New benchmark.
3659 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3661         * benchtests/bench-memmove.c (do_one_test): Remove unused
3662         ORIG_SRC.
3663         (do_test): Adjust.
3664         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3665         ORIG_SRC.
3666         (do_test): Adjust.
3668 2019-01-13  Jim Wilson  <jimw@sifive.com>
3670         [BZ #24040]
3671         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3672         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3673         (func): New.
3674         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
3675         call func directly.
3676         * nptl/Makefile (tests): Add tst-unwind-thread.
3677         (CFLAGS-tst-unwind-thread.c): Define.
3678         * nptl/tst-unwind-thread.c: New file.
3679         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3680         as undefined.
3682 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
3684         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3685         comment wording.
3686         * nis/nis_call.c (__do_niscall3): Likewise.
3688         * catgets/gencat.c (normalize_line): Use braces around empty
3689         'else' body.
3690         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3691         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3692         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3693         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3694         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3695         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3696         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3697         definition.
3699         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3700         execlp returns.
3702 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
3704         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3705         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3706         * benchtests/bench-strchr.c (stupid_strchr): Remove.
3707         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3708         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3709         * benchtests/bench-strlen.c (builtin_strlen): Remove.
3710         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3711         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3712         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3713         * benchtests/bench-strspn.c (stupid_strspn): Remove.
3714         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3715         * benchtests/bench-bcopy.c: Delete file.
3716         * benchtests/bench-bzero.c: Likewise.
3717         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3718         (simple_memccpy): Remove.
3719         (generic_memccpy): Add function.
3720         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3721         * benchtests/bench-memmove.c (simple_bcopy): Remove.
3722         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3723         (generic_mempcpy): Add new function.
3724         * benchtests/bench-memset.c (simple_bzero): Remove.
3725         (builtin_bzero): Remove.
3726         (builtin_memset): Remove.
3727         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3728         (generic_rawmemchr): Add new function.
3730 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3732         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3734 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3736         [BZ #24122]
3737         * elf/Makefile (tests): Add tst-audit13.
3738         (modules-names): Add tst-audit13mod1.
3739         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3740         rule.
3741         * elf/tst-audit13.c: New file.
3742         * elf/tst-audit13mod1.c: Likewise.
3744 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3746         [BZ #24122]
3747         * elf/rtld.c (unload_audit_module): New function.
3748         (report_audit_module_load_error): Likewise.
3749         (load_audit_module): Likewise.  Extracted from dl_main.  Call
3750         _dl_close if the laversion symbol cannot be found.  Use early
3751         returns for error handling.  Add malloc error check.  Check for a
3752         zero return value from la_version.  Remove spurious comment about
3753         static TLS initialization.  Remove useless casts.
3754         (notify_audit_modules_of_loaded_object): New function.  Extracted
3755         from dl_main.
3756         (load_audit_module): Likewise.
3757         (dl_main): Call load_audit_modules.
3759 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
3761         * elf/dl-exception.c (_dl_exception_create_format): Add
3762         fall-through comments.
3763         * elf/ldconfig.c (parse_conf_include): Likewise.
3764         * elf/rtld.c (print_statistics): Likewise.
3765         * locale/programs/charmap.c (parse_charmap): Likewise.
3766         * misc/mntent_r.c (__getmntent_r): Likewise.
3767         * posix/wordexp.c (parse_arith): Likewise.
3768         (parse_backtick): Likewise.
3769         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3770         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3771         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3773 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
3775         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3776         Use float instead of double.
3778 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3780         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3782 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
3784         * sysdeps/powerpc/bits/mathinline.h: Remove.
3786 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3788         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3789         * math/bits/math-finite.h: Move to ...
3790         * bits/math-finite.h: ... here.
3792 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3794         * sysdeps/generic/bits/unistd_ext.h: Move to ...
3795         * bits/unistd_ext.h: here.
3797 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
3799         [BZ #21915]
3800         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3801         * nss/tst-nss-files-hosts-long.c: New file.
3802         * nss/tst-nss-files-hosts-long.root: New directory.
3803         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3804         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3806 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3808         * include/bits/unistd_ext.h: Remove file.
3809         * posix/bits/unistd_ext.h: Move to ...
3810         * sysdeps/generic/bits/unistd_ext.h: ... here.
3812 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3814         * include/bits/unistd_ext.h: New file.
3816 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3818         * time/tst-strftime2.c: Use array_length macros instead of magic
3819         numbers.
3821 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3823         [BZ #24161]
3824         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3825         argument.
3826         * nptl/register-atfork.c (__run_fork_handlers): Only perform
3827         locking if the new do_locking argument is true.
3828         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3829         __run_fork_handlers.
3831 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3833         [BZ #6399]
3834         Linux: Add gettid system call wrapper.
3835         * posix/Makefile (headers): Add bits/unistd_ext.h.
3836         * posix/bits/unistd_ext.h: New file.
3837         * posix/unistd.h: Include it.
3838         * manual/process.texi (Process Identification): Document gettid.
3839         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3840         tst-gettid, tst-gettid-kill.
3841         (tst-gettid): Link with $(shared-thread-library).
3842         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3843         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3844         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3845         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3846         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3847         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3848         Add gettid.
3849         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3850         Likewise.
3851         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3852         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3853         Likewise.
3854         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3855         Likewise.
3856         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3857         Likewise.
3858         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3859         Likewise.
3860         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3861         Likewise.
3862         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3863         Likewise.
3864         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3865         Likewise.
3866         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3867         (GLIBC_2.30): Likewise.
3868         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3869         (GLIBC_2.30): Likewise.
3870         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3871         (GLIBC_2.30): Likewise.
3872         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3873         (GLIBC_2.30): Likewise.
3874         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3875         Likewise.
3876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3877         (GLIBC_2.30): Likewise.
3878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3879         (GLIBC_2.30): Likewise.
3880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3881         (GLIBC_2.30): Likewise.
3882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3883         (GLIBC_2.30): Likewise.
3884         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3885         Likewise.
3886         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3887         Likewise.
3888         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3889         Likewise.
3890         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3891         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3892         Likewise.
3893         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3894         Likewise.
3895         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3896         Likewise.
3897         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3898         Likewise.
3899         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3901 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3903         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3904         compatibility symbols.
3906 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
3908         [BZ #24180]
3909         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3910         Add compiler barriers and comments.
3912 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3914         * include/array_length.h (array_length): Do not use a statement
3915         expression and _Static_assert, so that array_length can be used at
3916         file scope and as a constant expression.
3918 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3920         * support/xdlfcn.h (xdlmopen): Declare.
3921         * support/xdlmopen.c: New file.
3922         * support/Makefile (libsupport-routines): Add xdlmopen.
3924 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
3926         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3927         before return type, without separate inline.
3928         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3929         * elf/dl-tunables.h (tunable_is_name): Likewise.
3930         * malloc/malloc.c (do_set_trim_threshold): Likewise.
3931         (do_set_top_pad): Likewise.
3932         (do_set_mmap_threshold): Likewise.
3933         (do_set_mmaps_max): Likewise.
3934         (do_set_mallopt_check): Likewise.
3935         (do_set_perturb_byte): Likewise.
3936         (do_set_arena_test): Likewise.
3937         (do_set_arena_max): Likewise.
3938         (do_set_tcache_max): Likewise.
3939         (do_set_tcache_count): Likewise.
3940         (do_set_tcache_unsorted_limit): Likewise.
3941         * nis/nis_subr.c (count_dots): Likewise.
3942         * nptl/allocatestack.c (advise_stack_range): Likewise.
3943         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3944         (do_sin): Likewise.
3945         (reduce_sincos): Likewise.
3946         (do_sincos): Likewise.
3947         * sysdeps/unix/sysv/linux/x86/elision-conf.c
3948         (do_set_elision_enable): Likewise.
3949         (TUNABLE_CALLBACK_FNDECL): Likewise.
3951 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3953         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3954         (xdlsym): Use dlerror to detect a NULL symbol.
3956 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3958         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3959         <stap-probe.h>.
3960         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3962 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3964         * libio/tst-bz24153.c (wide): Use wide char format specifier.
3966 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3968         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3969         __wmemcmp and weak alias to wmemcmp.
3971 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3973         [BZ #23403]
3974         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3975         TLS_TCB_AT_TP tls variant.
3976         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3977         Add alignment checks.
3978         * support/Makefile (libsupport-routines): Add xposix_memalign and
3979         xpthread_setstack.
3980         * support/support.h: Add xposix_memalign.
3981         * support/xthread.h: Add xpthread_attr_setstack.
3982         * support/xposix_memalign.c: New File.
3983         * support/xpthread_attr_setstack.c: Likewise.
3985 2019-02-05  Florian Weimer  <fweimer@redhat.com>
3987         [BZ #24164]
3988         arm: Use "nr" constraint for Systemtap probes, to avoid the
3989         compiler using memory operands for constants, due to the "o"
3990         alternative in the default "nor" constraint.
3991         * include/stap-probe.h [USE_STAP_PROBE]: Include
3992         <stap-probe-machine.h>
3993         * sysdeps/generic/stap-probe-machine.h: New file.
3994         * sysdeps/arm/stap-probe-machine.h: Likewise.
3996 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
3998         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3999         with 0, not tcache->entries[tc_idx].
4001         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
4002         once.
4004 2019-02-04  Andreas Schwab  <schwab@suse.de>
4006         [BZ #16976]
4007         [BZ #17396]
4008         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
4009         looking up collating elements match against (wide) character
4010         sequence instead of name.  Correct alignment adjustment.
4011         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
4012         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
4013         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
4014         (LOCALES): Add cs_CZ.ISO-8859-2.
4015         * posix/tst-fnmatch4.c: New file.
4016         * posix/tst-fnmatch5.c: New file.
4017         * include/wchar.h (__wmemcmp): Declare.
4018         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
4019         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
4020         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
4021         * sysdeps/s390/wmemcmp.c: Likewise.
4023 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4025         [BZ #24155]
4026         CVE-2019-7309
4027         * NEWS: Updated for CVE-2019-7309.
4028         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
4029         upper 32 bits of RDX register for x32.  Use unsigned Jcc
4030         instructions, instead of signed.
4031         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
4032         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
4034 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4036         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
4037         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
4038         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
4039         Likewise.
4040         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
4041         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
4042         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
4043         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
4044         Likewise.
4045         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
4046         Likewise.
4047         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
4048         Likewise.
4049         (posix_spawn_file_actions_addopen): Likewise.
4050         (posix_spawn_file_actions_addclose): Likewise.
4051         (posix_spawn_file_actions_adddup2): Likewise.
4052         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
4053         qualifiers.
4054         (posix_spawn_file_actions_addfchdir_np): Likewise.
4056 2019-02-04  David Newall  <glibc@davidnewall.com>
4058         elf: Implement --preload option for the dynamic linker.
4059         * elf/rtld.c (preloadarg): New variable.
4060         (handle_preload_list): Pass through “where” argument to
4061         do_preload.
4062         (dl_main): Handle "--preload" and add second call to
4063         handle_preload_list.
4064         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
4065         (tst-rtld-preload-OBJS): Set variable.
4066         (tst-rtld-preload.out): New target.
4067         * elf/tst-rtld-preload.sh: New file.
4069 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
4071         * Makefile (testrun.sh): Exit in case of incorrect argument.
4073 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4075         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
4076         alignment gaps.
4078 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4080         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
4081         implicit overflow checks.
4083 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
4085         * stdlib/isomac.c: Include <unistd.h>.
4087 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4089         * include/time.h (__tzfile_default): Use int, not long int, for
4090         the GMT offsets.
4091         * time/tzfile.c (struct ttinfo): Change type of the offset member
4092         to int.
4093         (__tzfile_read): Remove useless cast.
4094         (__tzfile_default): Adjust prototype.
4095         * time/tzset.c (tz_rule): Change type of the offset member to int.
4096         (parse_offset): Change the type of the sign variable to int.
4098 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4100         [BZ #24153]
4101         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
4102         * libio/getchar.c (getchar): Likewise.
4103         * libio/getchar_u.c (getchar_unlocked): Likewise.
4104         * libio/getwchar.c (getwchar): Likewise.
4105         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
4106         * libio/iogets.c (_IO_gets): Likewise.
4107         * libio/vscanf.c (_IO_vscanf): Likewise.
4108         * libio/vwscanf.c (__vwscanf): Likewise.
4109         * libio/tst-bz24153.c: New file.
4110         * libio/Makefile (tests): Add it.
4112 2019-02-02  Florian Weimer  <fweimer@redhat.com>
4114         [BZ #14829]
4115         * manual/resource.texi (Basic Scheduling Functions): Add
4116         portability note.  Change process to task throughout the section.
4117         Remove incorrect comment about sched_yield as it affects
4118         tasks/threads, not entire processes.
4119         * sysdeps/unix/sysv/linux/bits/posix_opt.h
4120         (_POSIX_PRIORITY_SCHEDULING): Update comment.
4122 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
4124         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
4125         * configure: Regenerated.
4126         * manual/install.texi (Tools for Compilation): Update minimum GCC
4127         version.
4128         * INSTALL: Regenerated.
4130 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4132         * support/support_test_compare_string.c
4133         (support_test_compare_string): Use "string" in error message.
4134         * support/tst-test_compare_string.c (do_test): Adjust.
4136 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4138         * support/support_format_address_family.c
4139         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
4141 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4143         * manual/socket.texi (Internet Address Formats): Clarify the byte
4144         order of struct sockaddr_in, struct sockaddr_in6.  Document
4145         sin6_flowinfo and sin6_scope_id.
4147 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
4149         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
4150         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
4151         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
4152         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
4153         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
4154         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
4156 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4158         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
4159         [!MEMCHR](MEMCHR): Set to __memchr.
4160         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4161         Add memchr_generic and memchr_nosimd.
4162         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4163         (__libc_ifunc_impl_list): Add memchr ifuncs.
4164         * sysdeps/aarch64/multiarch/memchr.c: New file.
4165         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
4166         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
4168 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4170         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4171         Add memset_emag.
4172         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4173         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
4174         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
4175         Add IS_EMAG check for ifunc dispatch.
4176         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
4177         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
4179 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4181         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
4182         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4183         Add emag.
4184         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
4185         New macro.
4187 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
4189         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
4191 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
4193         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
4194         syscall-template file.
4196 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
4197             Torvald Riegel  <triegel@redhat.com>
4198             Rik Prohaska  <prohaska7@gmail.com>
4200         [BZ# 23844]
4201         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
4202         tst-rwlock-trywrlock-stall.
4203         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
4204         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
4205         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
4206         Set __wrphase_fute to 1 only if we started the write phase.
4207         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
4208         * nptl/tst-rwlock-trywrlock-stall.c: New file.
4209         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
4210         * support/xpthread_rwlock_destroy.c: New file.
4211         * support/xthread.h: Declare xpthread_rwlock_destroy.
4213 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
4215         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4216         version to 4.0.2.
4218 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
4220         [BZ #24051]
4221         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
4222         * libio/fileops.c (_IO_new_file_underflow): Likewise
4223         * libio/wfileops.c (_IO_wfile_underflow): Likewise
4224         * libio/putchar.c (putchar): Likewise.
4225         * libio/putchar_u.c (putchar_unlocked): Likewise.
4226         * libio/putwchar.c (putchar): Likewise.
4227         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
4228         * libio/tst-bz24051.c: New test.
4229         * libio/Makefile (tests): Add tst-bz24051
4231 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
4233         CVE-2019-9169
4234         regex: fix read overrun [BZ #24114]
4235         Problem found by AddressSanitizer, reported by Hongxu Chen in:
4236         https://debbugs.gnu.org/34140
4237         * posix/regexec.c (proceed_next_node):
4238         Do not read past end of input buffer.
4240 2019-01-31  Florian Weimer  <fweimer@redhat.com>
4242         [BZ #24059]
4243         * nss/nss_files/files-alias.c (get_next_alias): Handle
4244         continuation line without newline at the end.
4245         * nss/tst-nss-files-alias-truncated.c: New file.
4246         * nss/Makefile [$(build-shared)] (tests): Add
4247         tst-nss-files-alias-truncated.
4248         (tst-nss-files-alias-truncated): Link with libnss_files.so.
4249         * support/namespace.h (struct support_chroot_configuration): Add
4250         aliases member.
4251         (struct support_chroot): Add path_aliases member.
4252         * support/support_chroot.c (support_chroot_create): Handle
4253         aliases.
4254         (support_chroot_free): Free path_aliases.
4256 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4258         * version.h (RELEASE): Set to "development".
4259         (VERSION): Set to "2.29.9000".
4260         * NEWS: Add section for 2.30.
4262         * version.h (RELEASE): Set to "stable".
4263         (VERSION): Set to "2.29".
4264         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
4266         * NEWS: Add the list of bugs fixed in 2.29.
4267         * manual/contrib.texi: Update contributors list with some more
4268         names.
4269         * manual/install.texi: Update latest versions of packages
4270         tested.
4271         * INSTALL: Regenerated.
4273 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4275         * po/be.po: Update translations.
4276         * po/bg.po: Likewise.
4277         * po/ca.po: Likewise.
4278         * po/cs.po: Likewise.
4279         * po/da.po: Likewise.
4280         * po/de.po: Likewise.
4281         * po/el.po: Likewise.
4282         * po/eo.po: Likewise.
4283         * po/es.po: Likewise.
4284         * po/fi.po: Likewise.
4285         * po/fr.po: Likewise.
4286         * po/gl.po: Likewise.
4287         * po/hr.po: Likewise.
4288         * po/hu.po: Likewise.
4289         * po/ia.po: Likewise.
4290         * po/id.po: Likewise.
4291         * po/it.po: Likewise.
4292         * po/ja.po: Likewise.
4293         * po/ko.po: Likewise.
4294         * po/lt.po: Likewise.
4295         * po/nb.po: Likewise.
4296         * po/nl.po: Likewise.
4297         * po/pl.po: Likewise.
4298         * po/pt_BR.po: Likewise.
4299         * po/ru.po: Likewise.
4300         * po/rw.po: Likewise.
4301         * po/sk.po: Likewise.
4302         * po/sl.po: Likewise.
4303         * po/sv.po: Likewise.
4304         * po/tr.po: Likewise.
4305         * po/uk.po: Likewise.
4306         * po/vi.po: Likewise.
4307         * po/zh_CN.po: Likewise.
4308         * po/zh_TW.po: Likewise.
4310 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
4312         [BZ #24130]
4313         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4314         of $f3 register on $y_is_neg path.
4316 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4318         [BZ #24110]
4319         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4320         sigaltstack.ss_flags.
4322 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4324         [BZ #23758]
4325         * manual/time.texi (strftime): Document "%Ey".
4326         * time/strftime_l.c (__strftime_internal): Set the default width
4327         padding with zero of "%Ey" to 2.
4329         [BZ #24096]
4330         * manual/time.texi (strftime): Document "%EC" and "%EY".
4331         * time/Makefile (tests): Add tst-strftime2.
4332         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4333         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4334         override padding for "%Ey".
4335         If an optional flag ('_' or '-') is specified to "%EY", interpret the
4336         "%Ey" in the subformat as if decorated with that flag.
4337         * time/tst-strftime2.c: New file.
4339 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4341         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4342         are not defined.
4344         [BZ #24122]
4345         * elf/Makefile (tests): Add tst-audit13.
4346         (modules-names): Add tst-audit13mod1.
4347         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4348         rule.
4349         * elf/rtld.c (dl_main): Handle invalid audit module version.
4350         * elf/tst-audit13.c: New file.
4351         * elf/tst-audit13mod1.c: Likewise.
4353 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4355         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4356         returned by __hurd_at_flags.
4357         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4358         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4359         directly instead of __hurd_file_name_lookup.
4361 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
4363         * scripts/build-many-glibcs.py (Context.checkout): Default
4364         binutils version to 2.32 branch.
4366 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4368         [BZ #20018]
4369         CVE-2016-10739
4370         resolv: Reject trailing characters in host names
4371         * include/arpa/inet.h (__inet_aton_exact): Declare.
4372         (inet_aton): Remove hidden prototype.  No longer used internally.
4373         * nscd/gai.c (__inet_aton): Do not define.
4374         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4375         * nss/digits_dots.c (__inet_aton): Likewise.
4376         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4377         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4378         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4379         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4380         (tst-resolv-trailing): Likewise.
4381         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4382         libc.
4383         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4384         Make static.  Add endp parameter.
4385         (__inet_aton_exact): New function.
4386         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4387         (__inet_addr): Call inet_aton_end.
4388         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4389         not just IPv6.  Call __inet_aton_exact.
4390         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4391         (tests): Make const.  Add additional test cases with trailing
4392         characters.
4393         (do_test): Use array_length.
4394         * resolv/tst-inet_aton_exact.c: New file.
4395         * resolv/tst-resolv-trailing.c: Likewise.
4396         * resolv/tst-resolv-nondecimal.c: Likewise.
4397         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4399 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4401         [BZ# 24097]
4402         CVE-2019-6488
4403         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4404         Clear the upper 32 bits of RSI register.
4405         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4406         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4407         and tst-size_t-wcsnlen.
4408         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4409         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4411 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4413         [BZ# 24097]
4414         CVE-2019-6488
4415         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4416         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4417         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4418         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4419         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4421 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4423         [BZ# 24097]
4424         CVE-2019-6488
4425         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4426         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4427         * sysdeps/x86_64/strcmp.S: Likewise.
4428         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4429         tst-size_t-strncmp and tst-size_t-wcsncmp.
4430         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4431         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4432         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4434 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4436         [BZ# 24097]
4437         CVE-2019-6488
4438         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4439         RDX_LP for length.  Clear the upper 32 bits of RDX register.
4440         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4441         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4442         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4443         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4445 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4447         [BZ# 24097]
4448         CVE-2019-6488
4449         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4450         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4451         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4452         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4454 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4456         [BZ# 24097]
4457         CVE-2019-6488
4458         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4459         length.  Clear the upper 32 bits of RDX register.
4460         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4461         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4462         Likewise.
4463         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4464         Likewise.
4465         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4466         tst-size_t-wmemchr.
4467         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4469 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4471         [BZ# 24097]
4472         CVE-2019-6488
4473         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4474         length.  Clear the upper 32 bits of RDX register.
4475         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4476         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4477         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4478         tst-size_t-wmemcmp.
4479         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4480         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4482 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4484         [BZ# 24097]
4485         CVE-2019-6488
4486         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
4487         upper 32 bits of RDX register.
4488         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4489         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4490         tst-size_t-wmemchr.
4491         * sysdeps/x86_64/x32/test-size_t.h: New file.
4492         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4493         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4495 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4497         [BZ #24112]
4498         resolv: Do not send queries for non-host-names in nss_dns.
4499         * resolv/nss_dns/dns-host.c (check_name): New function.
4500         (_nss_dns_gethostbyname2_r): Use it.
4501         (_nss_dns_gethostbyname_r): Likewise.
4502         (_nss_dns_gethostbyname4_r): Likewise.
4504 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4506         * resolv/inet_addr.c: Reformat to GNU style.
4507         (__inet_addr, __inet_aton): Update comment.
4509 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4511         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4512         ("malloc: Use current (C11-style) atomics for fastbin access").
4513         This commit introduces a substantial performance regression on
4514         POWER and Aarch64.
4515         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4516         (REMOVE_FB): Define.
4517         (_int_malloc): Use it and reindent.
4518         (_int_free): Use CAS loop with
4519         catomic_compare_and_exchange_val_rel.
4520         (malloc_consolidate): Use atomic_exchange_acq.
4523 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4525         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
4526         -Wl,-z,now.
4527         (LDFLAGS-tst-minsigstksz-2): Likewise.
4528         (LDFLAGS-tst-minsigstksz-3): Likewise.
4529         (LDFLAGS-tst-minsigstksz-3a): Likewise.
4530         (LDFLAGS-tst-minsigstksz-4): Likewise.
4532 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4534         * manual/time.texi (strftime): Fix the wording to "alternative" rather
4535         than "alternate".
4537 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
4539         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4541 2019-01-16  Zack Weinberg  <zackw@panix.com>
4543         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4544         (xget_sigstack_location): New test support functions.
4545         * support/xsigstack.c: New file, implementing them.
4546         * support/tst-xsigstack.c: New test for them.
4547         * support/Makefile: Update.
4549         * signal/tst-minsigstksz-1.c
4550         * signal/tst-minsigstksz-2.c
4551         * signal/tst-minsigstksz-3.c
4552         * signal/tst-minsigstksz-3a.c
4553         * signal/tst-minsigstksz-4.c: New tests.
4554         * signal/Makefile: Run them.
4556 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4558         * po/libc.pot: Regenerate.
4560 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4562         * math/libm-test-fma.inc (fma_test_data): Set
4563         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4565 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4567         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4568         (do_test): Changed __vector __int128_t to __vector unsigned int.
4570 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4572         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4573         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4574         stpcpy-avx2 and stpncpy-avx2.
4575         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4576         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4577         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4578         and __stpncpy_avx2.
4579         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4580         ifunc-strcpy.h}: rename header for a more generic name.
4581         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4582         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4583         AVX unaligned load is fast and vzeroupper is preferred.
4584         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4585         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4586         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4587         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4588         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4589         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4591 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
4593         * argp/argp-help.c: Fix typo in comment.
4594         * misc/sys/cdefs.h: Likewise.
4595         * posix/regexec.c (sift_states_iter_mb): Likewise.
4596         * socket/sockatmark.c: Likewise.
4597         * socket/sys/socket.h: Likewise.
4598         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4599         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4600         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4601         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4602         * sysdeps/unix/sockatmark.c: Likewise.
4603         * time/strptime_l.c: Likewise.
4605 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4607         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4608         missing space after the cast of "_NL_CURRENT".
4610 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4612         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4613         ifdef to fix read of VSCR.
4614         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4615         tst-ucontext-ppc64-vscr.c to test list.
4616         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4618 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
4620         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4621         fall-through.
4623 2019-01-09  Jim Wilson  <jimw@sifive.com>
4625         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4627 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
4629         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4630         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4631         __memcpy_falkor for ares.
4632         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4633         Add new define.
4634         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4635         Add ares cpu.
4637 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
4639         [BZ #24066]
4640         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4641         4_FP_W_TYPEs are used for IEEE quad precision.
4642         * soft-fp/extendhftf2.c: Likewise.
4643         * soft-fp/extendsftf2.c: Likewise.
4644         * soft-fp/extendxftf2.c: Likewise.
4645         * soft-fp/trunctfdf2.c: Likewise.
4646         * soft-fp/trunctfhf2.c: Likewise.
4647         * soft-fp/trunctfsf2.c: Likewise.
4648         * soft-fp/trunctfxf2.c: Likewise.
4649         * sysdeps/alpha/ots_cvttx.c: Likewise.
4650         * sysdeps/alpha/ots_cvtxt.c: Likewise.
4651         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4652         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4653         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4654         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4655         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4656         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4657         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4658         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4659         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4660         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4661         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4662         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4663         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4664         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4665         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4666         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4668 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4670         [BZ #24024]
4671         * Makeconfig: Build libm with -fno-math-errno but build the remaining
4672         code with -fmath-errno.
4673         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4674         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4675         * string/test-strerror-errno.c: New file.
4677 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4679         [BZ #24046]
4680         * localedata/locales/en_US (date_fmt): Add, set to
4681         "%a %d %b %Y %r %Z".
4683 2019-01-07  Florian Weimer  <fweimer@redhat.com>
4685         [BZ #24063]
4686         * manual/arith.texi (Math Error Reporting): Use @code{errno}
4687         instead of @var{errno}.
4688         (Parsing of Integers): Likewise.
4689         (Parsing of Floats): Likewise.
4690         * manual/filesys.texi (Working with Directory Trees): Likewise.
4691         (Temporary Files): Likewise.
4692         * manual/job.texi (Terminal Access Functions): Likewise.
4693         * manual/llio.texi (Synchronizing I/O): Likewise.
4694         * manual/math.texi (SVID Random): Likewise.
4695         * manual/message.texi (The catgets Functions): Likewise.
4696         (Translation with gettext): Likewise.
4697         (Locating gettext catalog): Likewise.
4698         (Charset conversion in gettext): Likewise.
4699         * manual/nss.texi (NSS Module Function Internals): Likewise.
4700         * manual/search.texi (Hash Search Function): Likewise.
4701         * manual/setjmp.texi (System V contexts): Likewise.
4702         * manual/time.texi (Sleeping): Likewise.
4703         * manual/users.texi (Lookup User): Likewise.
4704         (Lookup Group): Likewise.
4706 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4708         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4709         fix typo.
4711 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
4713         [BZ #19444]
4714         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4715         __builtin_unreachable for default case in switch.
4716         (__ieee754_yn): Likewise.
4717         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4718         (__ieee754_ynl): Likewise.
4719         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4720         (__ieee754_ynl): Likewise.
4721         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4722         (__ieee754_ynl): Likewise.
4724 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4726         * manual/maint.texi: Use @{ and @}.
4728 2019-01-04  Florian Weimer  <fweimer@redhat.com>
4730         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4731         function.
4732         (do_in_chroot_1): Call it.
4733         (run_chroot_tests):
4734         Improve error reporting in case it is not possible to create a
4735         collision for the PTY name required by the test.
4737 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4739         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4740         lll_wait_tid with timeout.
4741         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4742         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4743         futex_reltimed_wait_cancelable for cancelabla mode.
4744         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4745         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4746         macros.
4747         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4748         * sysdeps/posix/waitid.c (__sigwait): Likewise.
4749         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4750         SYSCALL_CANCEL_NCS): New macro.
4751         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4752         (lll_timedwait_tid): Remove macro.
4753         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4754         Likewise.
4755         (lll_timedwait_tid): Likewise.
4756         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4757         Likewise.
4758         (lll_timedwait_tid): Likewise.
4759         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4760         Likewise.
4761         (lll_timedwait_tid): Likewise.
4762         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4763         Use INTERNAL_SYSCALL_CANCEL.
4764         * sysdeps/unix/sysv/linux/futex-internal.h
4765         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4766         instead of __pthread_{enable,disable}_asynccancel.
4767         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4768         (lll_futex_wait_cancel): New macro.
4770         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4771         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4773         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4774         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4776         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4777         in backtrace analysis.
4778         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4779         side-effects.
4780         (tf_send): Likewise.
4782         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4783         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4784         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4785         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4786         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4787         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4788         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4789         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4790         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4791         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4792         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4793         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4794         Likewise.
4795         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4796         tst-cancel-wrappers.sh.
4797         (generated): Remove tst-cancel-wrappers.out.
4798         (tst-cancel-wrappers.out): Remove rule.
4799         * nptl/tst-cancel-wrappers.sh: Remove file.
4801 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4803         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4804         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4805         Update.
4807 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4809         [BZ #23640]
4810         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4811         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4812         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4813         close-on-exec reset for adddup2 file action.
4814         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4816 2019-01-03  Zack Weinberg  <zackw@panix.com>
4818         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4819         parameter.  Only use deprecated scanf when __USE_GNU is defined
4820         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4821         than 201103L, whichever is relevant for the language being compiled.
4823         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4824         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4825         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4826         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4827         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4829         * libio/iovsscanf.c
4830         * libio/fwscanf.c
4831         * libio/iovswscanf.c
4832         * libio/swscanf.c
4833         * libio/vscanf.c
4834         * libio/vwscanf.c
4835         * libio/wscanf.c
4836         * stdio-common/fscanf.c
4837         * stdio-common/scanf.c
4838         * stdio-common/vfscanf.c
4839         * stdio-common/vfwscanf.c
4840         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4841         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4842         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4843         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4844         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4845         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4846         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4847         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4848         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4849         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4850         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4851         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4852         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4853         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4854         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4856         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
4857         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4858         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4859         not sscanf.
4860         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4861         with a preprocessor macro.
4863         * stdio-common/bug21.c, stdio-common/scanf14.c:
4864         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4865         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4866         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
4867         to xscanf, xfscanf, xsscanf.
4869         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4870         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4871         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4872         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
4873         xfscanf, xsscanf.
4874         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4875         override feature selection macros or provide definitions of u_char etc.
4876         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4877         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4878         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
4879         with -std=gnu89.
4881 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4883         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4884         bits/termios-misc.h.
4885         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4886         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4887         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4888         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4889         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4890         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4892         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4893         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4894         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4895         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4896         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4897         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4898         termios-misc.h.
4899         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4900         (sysdep_headers): Add termios-misc.h.
4902         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4903         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4904         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4906         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4907         termios-tcflow.h.
4908         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4909         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4910         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4911         TCSAFLUSH): Move to termios-tcflow.h.
4912         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4913         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4914         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4915         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4917         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4918         termios-c_lflag.h.
4919         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4920         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4921         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4922         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4923         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4924         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4925         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4926         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4927         Likewise.
4928         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4929         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4930         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4931         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4933         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4934         termios-c_cflag.h.
4935         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4936         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4937         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4938         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4939         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4940         termios-c_cflag.h.
4941         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4942         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4943         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4944         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4946         [BZ #23783]
4947         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4948         termios-baud.h.
4949         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4950         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4951         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4952         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4953         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4954         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4955         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4956         __MAX_BAUD): Move to termios-baud.h.
4957         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4958         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4959         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4960         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4961         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4963         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4964         termios-c_oflag.h.
4965         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4966         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4967         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4968         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4969         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4970         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
4971         termios-c_oflag.h.
4972         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4973         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4974         FFR1): Likewise.
4975         [USE_MISC] (XTABS): Likewise.
4976         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4977         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4978         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4979         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4981         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4982         termios-c_iflag.h.
4983         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4984         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4985         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4986         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4987         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4988         IUTF8): Move to termios-c_iflag.h.
4989         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4990         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4991         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4992         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4994         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4995         termios-cc.h.
4996         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4997         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4998         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4999         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
5000         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
5001         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
5002         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
5003         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
5004         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5005         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5006         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5007         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5009         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
5010         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
5011         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
5012         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
5013         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5014         termios-struct.h.
5015         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
5016         termios-struct.h.
5017         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
5018         Likewise.
5019         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
5020         Likewise.
5021         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
5022         Likewise.
5023         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
5024         Likewise.
5025         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
5026         _HAVE_C_OSPEED): Define.
5027         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
5028         _HAVE_C_OSPEED): Likewise.
5029         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
5030         _HAVE_C_OSPEED): Likewise.
5031         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
5032         (cfsetospeed): Check for define value instead of existence.
5033         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
5034         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5035         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
5036         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5037         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
5039         [BZ #17783]
5040         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
5041         Define.
5042         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5043         (TIOCSER_TEMT): Likewise.
5044         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
5045         (TEOCSER_TEMT): Likewise.
5047 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
5049         [BZ #24011]
5050         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
5052 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5054         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5056 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5058         * sysdeps/htl/pt-barrierattr-setpshared.c
5059         (pthread_barrierattr_setpshared): Add stub warning.
5060         * sysdeps/htl/pt-condattr-setpshared.c
5061         (pthread_condattr_setpshared): Likewise.
5062         * sysdeps/htl/pt-mutexattr-setpshared.c
5063         (pthread_mutexattr_setpshared): Likewise.
5064         * sysdeps/htl/pt-rwlockattr-setpshared.c
5065         (pthread_rwlockattr_setpshared): Likewise.
5066         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
5067         (pthread_mutexattr_setpshared): Likewise.
5069 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5071         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
5072         constants to match with Linux 4.20.
5074         * sysdeps/mips/mips32/libm-test-ulps: Update.
5075         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5077 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
5079         [BZ #24034]
5080         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
5081         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
5082         than __typeof (...) for the a_ptr variable.
5084 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5086         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
5087         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
5088         * libio/Makefile (tests): Add tst-sprintf-ub and
5089         tst-sprintf-chk-ub.
5090         (CFLAGS-tst-sprintf-ub.c): New variable.
5091         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
5092         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
5093         destination buffer and check for overflows in fortified mode.
5094         * libio/libioP.h (PRINTF_CHK): New macro.
5095         * libio/tst-sprintf-chk-ub.c: New file.
5096         * libio/tst-sprintf-ub.c: Likewise.
5098 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5100         [BZ #24018]
5101         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
5102         failure.
5104 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5106         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
5108 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
5110         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
5111         macro.
5113         * sysdeps/unix/sysv/linux/netpacket/packet.h
5114         (PACKET_IGNORE_OUTGOING): New macro.
5116         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
5117         macro.
5119         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5120         version to 4.20.
5121         (riscv_flush_icache): New syscall.
5123         * manual/texinfo.tex: Update to version 2018-12-28.17 with
5124         trailing whitespace removed.
5125         * scripts/config.guess: Update to version 2019-01-01.
5126         * scripts/config.sub: Update to version 2019-01-01.
5127         * scripts/move-if-change: Update from gnulib.
5129         * NEWS: Update copyright dates.
5130         * catgets/gencat.c (print_version): Likewise.
5131         * csu/version.c (banner): Likewise.
5132         * debug/catchsegv.sh: Likewise.
5133         * debug/pcprofiledump.c (print_version): Likewise.
5134         * debug/xtrace.sh (do_version): Likewise.
5135         * elf/ldconfig.c (print_version): Likewise.
5136         * elf/ldd.bash.in: Likewise.
5137         * elf/pldd.c (print_version): Likewise.
5138         * elf/sotruss.sh: Likewise.
5139         * elf/sprof.c (print_version): Likewise.
5140         * iconv/iconv_prog.c (print_version): Likewise.
5141         * iconv/iconvconfig.c (print_version): Likewise.
5142         * locale/programs/locale.c (print_version): Likewise.
5143         * locale/programs/localedef.c (print_version): Likewise.
5144         * login/programs/pt_chown.c (print_version): Likewise.
5145         * malloc/memusage.sh (do_version): Likewise.
5146         * malloc/memusagestat.c (print_version): Likewise.
5147         * malloc/mtrace.pl: Likewise.
5148         * manual/libc.texinfo: Likewise.
5149         * nptl/version.c (banner): Likewise.
5150         * nscd/nscd.c (print_version): Likewise.
5151         * nss/getent.c (print_version): Likewise.
5152         * nss/makedb.c (print_version): Likewise.
5153         * posix/getconf.c (main): Likewise.
5154         * scripts/test-installation.pl: Likewise.
5155         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5157         * All files with FSF copyright notices: Update copyright dates
5158         using scripts/update-copyrights.
5159         * locale/programs/charmap-kw.h: Regenerated.
5160         * locale/programs/locfile-kw.h: Likewise.
5162 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
5164         * timezone/zdump.c: Update from tzcode 2018i.
5165         * timezone/zic.c: Likewise.
5167 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5169         regex: improve Gnulib port to AIX
5170         From the glibc point of view, this removes duplicate macro
5171         definitions and is obviously safe.
5172         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
5173         * posix/regex_internal.h:
5174         (__attribute__, __attribute_warn_unused_result__):
5175         Remove; already defined elsewhere.
5177 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
5179         [BZ #24027]
5180         * malloc/malloc.c (_int_realloc): Always call memcpy for the
5181         copying operation.  (ncopies had the wrong type, resulting in an
5182         integer wraparound and too few elements being copied.)
5184 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
5186         [BZ #24022]
5187         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
5188         <asm/syscalls.h> exists with __has_include__ before including it.
5190 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
5192         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5193         version to 4.20.
5195 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
5197         * hurd/lookup-retry: Include <unistd.h>.
5198         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
5199         Release it on return.  Handle "pid" magical lookup retry.
5201 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
5203         [BZ #10496]
5204         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
5205         (t_fmt_ampm): Likewise.
5206         * localedata/locales/aa_ER (t_fmt): Likewise.
5207         (t_fmt_ampm): Likewise.
5208         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
5209         (t_fmt_ampm): Likewise.
5210         * localedata/locales/aa_ET (t_fmt): Likewise.
5211         (t_fmt_ampm): Likewise.
5212         * localedata/locales/am_ET (t_fmt): Likewise.
5213         (t_fmt_ampm): Likewise.
5214         * localedata/locales/byn_ER (t_fmt): Likewise.
5215         (t_fmt_ampm): Likewise.
5216         * localedata/locales/om_ET (t_fmt): Likewise.
5217         (t_fmt_ampm): Likewise.
5218         * localedata/locales/sid_ET (t_fmt): Likewise.
5219         (t_fmt_ampm): Likewise.
5220         * localedata/locales/so_DJ (t_fmt): Likewise.
5221         (t_fmt_ampm): Likewise.
5222         * localedata/locales/so_ET (t_fmt): Likewise.
5223         (t_fmt_ampm): Likewise.
5224         * localedata/locales/so_SO (t_fmt): Likewise.
5225         (t_fmt_ampm): Likewise.
5226         * localedata/locales/ti_ER (t_fmt): Likewise.
5227         (t_fmt_ampm): Likewise.
5228         * localedata/locales/ti_ET (t_fmt): Likewise.
5229         (t_fmt_ampm): Likewise.
5230         * localedata/locales/tig_ER (t_fmt): Likewise.
5231         (t_fmt_ampm): Likewise.
5232         * localedata/locales/wal_ET (t_fmt): Likewise.
5233         (t_fmt_ampm): Likewise.
5235         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
5236         * localedata/locales/ar_IN (t_fmt): Likewise.
5237         * localedata/locales/bhb_IN (t_fmt): Likewise.
5238         * localedata/locales/bho_IN (t_fmt): Likewise.
5239         * localedata/locales/bi_VU (t_fmt): Likewise.
5240         * localedata/locales/bn_BD (t_fmt): Likewise.
5241         * localedata/locales/bn_IN (t_fmt): Likewise.
5242         * localedata/locales/brx_IN (t_fmt): Likewise.
5243         * localedata/locales/doi_IN (t_fmt): Likewise.
5244         * localedata/locales/en_HK (t_fmt): Likewise.
5245         (t_fmt_ampm): Likewise.
5246         * localedata/locales/en_IN (t_fmt): Likewise.
5247         * localedata/locales/en_PH (t_fmt): Likewise.
5248         * localedata/locales/gu_IN (t_fmt): Likewise.
5249         * localedata/locales/hi_IN (t_fmt): Likewise.
5250         * localedata/locales/hif_FJ (t_fmt): Likewise.
5251         * localedata/locales/hne_IN (t_fmt): Likewise.
5252         * localedata/locales/kn_IN (t_fmt): Likewise.
5253         * localedata/locales/kok_IN (t_fmt): Likewise.
5254         * localedata/locales/ks_IN (t_fmt): Likewise.
5255         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
5256         * localedata/locales/mag_IN (t_fmt): Likewise.
5257         * localedata/locales/mai_IN (t_fmt): Likewise.
5258         * localedata/locales/mjw_IN (t_fmt): Likewise.
5259         * localedata/locales/ml_IN (t_fmt): Likewise.
5260         * localedata/locales/mni_IN (t_fmt): Likewise.
5261         * localedata/locales/mr_IN (t_fmt): Likewise.
5262         * localedata/locales/ms_MY (t_fmt): Likewise.
5263         * localedata/locales/pa_IN (t_fmt): Likewise.
5264         * localedata/locales/raj_IN (t_fmt): Likewise.
5265         * localedata/locales/sa_IN (t_fmt): Likewise.
5266         * localedata/locales/sat_IN (t_fmt): Likewise.
5267         * localedata/locales/sd_IN (t_fmt): Likewise.
5268         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
5269         * localedata/locales/tcy_IN (t_fmt): Likewise.
5270         * localedata/locales/the_NP (t_fmt): Likewise.
5271         * localedata/locales/to_TO (t_fmt): Likewise.
5272         * localedata/locales/ur_IN (t_fmt): Likewise.
5274         * localedata/locales/hif_FJ (d_t_fmt): Set to
5275         "%A %d %b %Y %I:%M:%S %p".
5276         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
5278         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
5279         * localedata/locales/ar_BH (t_fmt): Likewise.
5280         * localedata/locales/ar_DZ (t_fmt): Likewise.
5281         * localedata/locales/ar_EG (t_fmt): Likewise.
5282         * localedata/locales/ar_IQ (t_fmt): Likewise.
5283         * localedata/locales/ar_JO (t_fmt): Likewise.
5284         * localedata/locales/ar_KW (t_fmt): Likewise.
5285         * localedata/locales/ar_LB (t_fmt): Likewise.
5286         * localedata/locales/ar_LY (t_fmt): Likewise.
5287         * localedata/locales/ar_OM (t_fmt): Likewise.
5288         * localedata/locales/ar_QA (t_fmt): Likewise.
5289         * localedata/locales/ar_SD (t_fmt): Likewise.
5290         * localedata/locales/ar_SS (t_fmt): Likewise.
5291         * localedata/locales/ar_SY (t_fmt): Likewise.
5292         * localedata/locales/ar_TN (t_fmt): Likewise.
5293         * localedata/locales/ar_YE (t_fmt): Likewise.
5295         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
5296         (t_fmt_ampm): Likewise.
5297         * localedata/locales/gez_ET (t_fmt): Likewise.
5298         (t_fmt_ampm): Likewise.
5300         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
5301         (t_fmt_ampm): Likewise.
5302         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
5304         * localedata/locales/zh_HK (t_fmt):
5305         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5307         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5308         because this locale does not use the 12-hour clock.
5309         (t_fmt): Set to "%Z %H:%M:%S".
5310         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5312         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5313         because this locale does not use the 12-hour clock.
5314         (t_fmt): Set to "%H:%M:%S %Z".
5315         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5317         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5318         because this locale does not use the 12-hour clock.
5319         (t_fmt): Set to "%T".
5320         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5321         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5323         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5324         because this locale does not use the 12-hour clock.
5325         (t_fmt): Set to "%H:%M:%S %Z".
5326         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5328         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5329         because this locale does not use the 12-hour clock.
5330         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5331         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5333 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
5335         [BZ #10496]
5336         [BZ #23724]
5337         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5338         (t_fmt_ampm): Likewise.
5339         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5340         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5341         (d_fmt): Set to "%-d.%-m.%y".
5343 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5345         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5346         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5347         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5348         Likewise.
5349         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5350         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5351         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5352         function.
5353         * support/blob_repeat.c (check_mul_overflow_size_t,
5354         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5356 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
5358         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5360 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5362         regex: simplify Gnulib port
5363         This simplifies the code, by removing stuff intended for porting
5364         to Gnulib but no longer needed there.
5365         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5366         uses of libc_hidden_def, weak_alias.
5367         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5368         _Restrict_ except for public-facing headers.
5369         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5370         Remove; already defined elsewhere.
5371         * posix/regex.c, posix/regex_internal.h:
5372         Use __GNUC_PREREQ instead of rolling our own.
5373         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5375 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
5377         * benchtests/bench-strlen.c (generic_strlen): New function.
5378         (memchr_strlen): New function.
5380 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5382         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5383         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5384         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5386 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5388         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5390 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5392         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5393         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5394         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
5395         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5396         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5397         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5398         <sysdeps/ieee754/flt-32/s_sincosf.c>.
5400 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5402         [BZ #24023]
5403         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5404         PLT reference in libc.so.
5405         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5406         _Q_lltoq and _Q_qtod PLT references in libc.so.
5408 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
5410         * benchtests/bench-memchr.c: Cleanup defines.
5411         * benchtests/bench-memcmp.c: Likewise.
5412         * benchtests/bench-memset.c: Likewise.
5413         * benchtests/bench-memset-large.c: Likewise.
5414         * benchtests/bench-memset-walk.c: Likewise.
5415         * benchtests/bench-stpcpy.c: Likewise.
5416         * benchtests/bench-stpncpy.c: Likewise.
5417         * benchtests/bench-strcat.c: Likewise.
5418         * benchtests/bench-strchr.c: Likewise.
5419         * benchtests/bench-strcmp.c: Likewise.
5420         * benchtests/bench-strcpy.c: Likewise.
5421         * benchtests/bench-strcspn.c: Likewise.
5422         * benchtests/bench-string.h: Likewise.
5423         * benchtests/bench-strlen.c: Likewise.
5424         * benchtests/bench-strncat.c: Likewise.
5425         * benchtests/bench-strncmp.c: Likewise.
5426         * benchtests/bench-strncpy.c: Likewise.
5427         * benchtests/bench-strnlen.c: Likewise.
5428         * benchtests/bench-strpbrk.c: Likewise.
5429         * benchtests/bench-strrchr.c: Likewise.
5430         * benchtests/bench-strspn.c: Likewise.
5432 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5434         * stdlib/longlong.h: Update from GCC.
5436         [BZ #23993]
5437         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5438         * configure: Regenerated.
5439         * manual/install.texi (Tools for Compilation): Update minimum GCC
5440         version.
5441         * INSTALL: Regenerated.
5443 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
5445         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5447 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
5449         * malloc/malloc.c (mremap_chunk): Additional checks.
5451 2018-12-21  Mao Han  <han_mao@c-sky.com>
5453         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5454         * scripts/build-many-glibcs.py: Add C-SKY targets.
5455         * sysdeps/csky/Implies: New file.
5456         * sysdeps/csky/Makefile: Likewise.
5457         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5458         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5459         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5460         * sysdeps/csky/abiv2/memcmp.S: Likewise.
5461         * sysdeps/csky/abiv2/memcpy.S: Likewise.
5462         * sysdeps/csky/abiv2/memmove.S: Likewise.
5463         * sysdeps/csky/abiv2/memset.S: Likewise.
5464         * sysdeps/csky/abiv2/setjmp.S: Likewise.
5465         * sysdeps/csky/abiv2/start.S: Likewise.
5466         * sysdeps/csky/abiv2/strcmp.S: Likewise.
5467         * sysdeps/csky/abiv2/strcpy.S: Likewise.
5468         * sysdeps/csky/abiv2/strlen.S: Likewise.
5469         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5470         * sysdeps/csky/abort-instr.h: Likewise.
5471         * sysdeps/csky/atomic-machine.h: Likewise.
5472         * sysdeps/csky/bits/endian.h: Likewise.
5473         * sysdeps/csky/bits/fenv.h: Likewise.
5474         * sysdeps/csky/bits/link.h: Likewise.
5475         * sysdeps/csky/bits/setjmp.h: Likewise.
5476         * sysdeps/csky/bsd-_setjmp.S: Likewise.
5477         * sysdeps/csky/bsd-setjmp.S: Likewise.
5478         * sysdeps/csky/configure: Likewise.
5479         * sysdeps/csky/configure.ac: Likewise.
5480         * sysdeps/csky/dl-machine.h: Likewise.
5481         * sysdeps/csky/dl-procinfo.c: Likewise.
5482         * sysdeps/csky/dl-procinfo.h: Likewise.
5483         * sysdeps/csky/dl-sysdep.h: Likewise.
5484         * sysdeps/csky/dl-tls.h: Likewise.
5485         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5486         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5487         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5488         * sysdeps/csky/fpu/fegetenv.c: Likewise.
5489         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5490         * sysdeps/csky/fpu/fegetmode.c: Likewise.
5491         * sysdeps/csky/fpu/fegetround.c: Likewise.
5492         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5493         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5494         * sysdeps/csky/fpu/fenv_private.h: Likewise.
5495         * sysdeps/csky/fpu/fesetenv.c: Likewise.
5496         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5497         * sysdeps/csky/fpu/fesetmode.c: Likewise.
5498         * sysdeps/csky/fpu/fesetround.c: Likewise.
5499         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5500         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5501         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5502         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5503         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5504         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5505         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5506         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5507         * sysdeps/csky/fpu_control.h: Likewise.
5508         * sysdeps/csky/gccframe.h: Likewise.
5509         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5510         * sysdeps/csky/ldsodefs.h: Likewise.
5511         * sysdeps/csky/libc-tls.c: Likewise.
5512         * sysdeps/csky/linkmap.h: Likewise.
5513         * sysdeps/csky/machine-gmon.h: Likewise.
5514         * sysdeps/csky/memusage.h: Likewise.
5515         * sysdeps/csky/nofpu/Implies: Likewise.
5516         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5517         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5518         * sysdeps/csky/nptl/Makefile: Likewise.
5519         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5520         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5521         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5522         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5523         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5524         * sysdeps/csky/nptl/tls.h: Likewise.
5525         * sysdeps/csky/preconfigure: Likewise.
5526         * sysdeps/csky/sfp-machine.h: Likewise.
5527         * sysdeps/csky/sotruss-lib.c: Likewise.
5528         * sysdeps/csky/stackinfo.h: Likewise.
5529         * sysdeps/csky/sysdep.h: Likewise.
5530         * sysdeps/csky/tininess.h: Likewise.
5531         * sysdeps/csky/tst-audit.h: Likewise.
5532         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5533         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5534         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5535         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5536         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5537         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5538         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5539         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5540         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5541         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5542         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5543         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5544         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5545         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5546         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5547         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5548         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5549         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5550         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5551         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5552         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5553         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5554         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5555         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5556         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5557         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5558         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5559         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5560         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5561         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5562         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5563         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5564         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5565         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5566         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5567         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5568         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5569         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5570         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5571         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5572         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5573         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5574         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5575         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5577 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5579         * include/time.h (__difftime64): Add.
5580         * time/difftime.c (subtract): convert to 64-bit time.
5581         * time/difftime.c (__difftime64): Add.
5582         * time/difftime.c (__difftime): Wrap around __difftime64.
5584 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
5586         * manual/examples/add.c: Remove redundant "if not".
5587         * manual/examples/argp-ex1.c: Likewise.
5588         * manual/examples/argp-ex2.c: Likewise.
5589         * manual/examples/argp-ex3.c: Likewise.
5590         * manual/examples/argp-ex4.c: Likewise.
5591         * manual/examples/atexit.c: Likewise.
5592         * manual/examples/db.c: Likewise.
5593         * manual/examples/dir.c: Likewise.
5594         * manual/examples/dir2.c: Likewise.
5595         * manual/examples/execinfo.c: Likewise.
5596         * manual/examples/filecli.c: Likewise.
5597         * manual/examples/filesrv.c: Likewise.
5598         * manual/examples/fmtmsgexpl.c: Likewise.
5599         * manual/examples/genpass.c: Likewise.
5600         * manual/examples/inetcli.c: Likewise.
5601         * manual/examples/inetsrv.c: Likewise.
5602         * manual/examples/isockad.c: Likewise.
5603         * manual/examples/longopt.c: Likewise.
5604         * manual/examples/memopen.c: Likewise.
5605         * manual/examples/memstrm.c: Likewise.
5606         * manual/examples/mkdirent.c: Likewise.
5607         * manual/examples/mkfsock.c: Likewise.
5608         * manual/examples/mkisock.c: Likewise.
5609         * manual/examples/mygetpass.c: Likewise.
5610         * manual/examples/pipe.c: Likewise.
5611         * manual/examples/popen.c: Likewise.
5612         * manual/examples/rprintf.c: Likewise.
5613         * manual/examples/search.c: Likewise.
5614         * manual/examples/select.c: Likewise.
5615         * manual/examples/setjmp.c: Likewise.
5616         * manual/examples/sigh1.c: Likewise.
5617         * manual/examples/sigusr.c: Likewise.
5618         * manual/examples/stpcpy.c: Likewise.
5619         * manual/examples/strdupa.c: Likewise.
5620         * manual/examples/strftim.c: Likewise.
5621         * manual/examples/subopt.c: Likewise.
5622         * manual/examples/swapcontext.c: Likewise.
5623         * manual/examples/termios.c: Likewise.
5624         * manual/examples/testopt.c: Likewise.
5625         * manual/examples/testpass.c: Likewise.
5626         * manual/examples/timeval_subtract.c: Likewise.
5628 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
5630         * sysdeps/x86/fpu/math_private.h: New file.
5631         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5633         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5634         definition.
5635         (cosh): Likewise.
5636         (tanh): Likewise.
5638 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5640         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5641         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5642         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5643         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
5644         fields.
5645         (_dl_show_auxv): Give a special treatment to
5646         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5647         and AT_L3_CACHEGEOMETRY.
5648         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5649         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5650         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
5651         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5653 2018-12-19  Andreas Schwab  <schwab@suse.de>
5655         * nscd/connections.c (check_use): Don't abort on invalid len.
5657 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5659         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5660         values in the 64bit value cases.
5662 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5664         * include/time.h
5665         (__ctime64_r): Add.
5666         * time/ctime_r.c
5667         (__ctime64_r): Add.
5668         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5670         * include/time.h
5671         (__ctime64): Add.
5672         * time/gmtime.c
5673         (__ctime64): Add.
5674         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5676         * include/time.h
5677         (__gmtime64_r): Add.
5678         * time/gmtime.c
5679         (__gmtime64_r): Add.
5680         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5682         * include/time.h
5683         (__gmtime64): Add.
5684         * time/gmtime.c
5685         (__gmtime64): Add.
5686         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5688         * include/time.h
5689         (__localtime64_r): Add.
5690         * time/localtime.c
5691         (__localtime64_r): Add.
5692         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5694 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5696         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5697         kernel_sigction definition.
5699         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5701         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5703         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5704         __syscall_rt_sigaction.
5705         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5706         (kernel_sigaction): Use Linux generic defintion.
5707         (STUB): Define.
5708         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5709         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5710         (__syscall_rt_sigaction): Remove implementation.
5711         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5712         hidden.
5713         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5714         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5715         INTERNAL_SYSCALL): Remove definitions.
5716         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5717         action and signal set size.
5718         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5719         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5721 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5722             James Clarke  <jrtc27@jrtc27.com>
5724         [BZ #23967]
5725         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5726         Define if SA_RESTORER is defined.
5727         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5728         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5729         already defined.
5730         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5731         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5732         definitions.
5733         (HAS_SA_RESTORER): Define.
5734         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5735         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5736         (HAS_SA_RESTORER): Define.
5737         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5738         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5739         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5740         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5741         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5743 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
5745         * sysdeps/unix/sysv/linux/kernel-features.h
5746         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5747         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5748         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5749         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5750         (__ASSUME_ST_INO_64_BIT): Likewise.
5751         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5752         <kernel-features.h>.
5753         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5754         Remove conditional code.
5755         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5756         <kernel-features.h>.
5757         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5758         Remove conditional code.
5759         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5760         <kernel-features.h>.
5761         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5762         Remove conditional code.
5763         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5764         <kernel-features.h>.
5765         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5766         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5768 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5770         * sysdeps/s390/multiarch/ifunc-resolve.h
5771         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5772         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5773         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5774         Delete macro definition.
5775         (s390_libc_ifunc_init): Rename to
5776         s390_libc_ifunc_expr_stfle_init.
5777         * sysdeps/s390/bzero: Use
5778         s390_libc_ifunc_expr_stfle_init instead of
5779         s390_libc_ifunc_init.
5780         * sysdeps/s390/memcmp.c: Likewise.
5781         * sysdeps/s390/memcpy.c: Likewise.
5782         * sysdeps/s390/mempcpy.c: Likewise.
5783         * sysdeps/s390/memset.c: Likewise.
5785 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5787         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5788         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5790 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5792         * sysdeps/s390/multiarch/Makefile
5793         (sysdep_routines): Remove wmemcmp variants.
5794         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5795         * sysdeps/s390/multiarch/ifunc-impl-list.c
5796         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5797         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5798         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5799         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5800         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5801         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5802         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5803         * sysdeps/s390/ifunc-wmemcmp.h: New file.
5805 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5807         * sysdeps/s390/multiarch/Makefile
5808         (sysdep_routines): Remove wmemset variants.
5809         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5810         * sysdeps/s390/multiarch/ifunc-impl-list.c
5811         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5812         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5813         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5814         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5815         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5816         * sysdeps/s390/multiarch/wmemset.c: Move to ...
5817         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5818         * sysdeps/s390/ifunc-wmemset.h: New file.
5820 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5822         * sysdeps/s390/multiarch/Makefile
5823         (sysdep_routines): Remove wmemchr variants.
5824         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5825         * sysdeps/s390/multiarch/ifunc-impl-list.c
5826         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5827         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5828         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5829         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5830         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5831         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5832         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5833         * sysdeps/s390/ifunc-wmemchr.h: New file.
5835 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5837         * sysdeps/s390/multiarch/Makefile
5838         (sysdep_routines): Remove wcscspn variants.
5839         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5840         * sysdeps/s390/multiarch/ifunc-impl-list.c
5841         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5842         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5843         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5844         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5845         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5846         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5847         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5848         * sysdeps/s390/ifunc-wcscspn.h: New file.
5850 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5852         * sysdeps/s390/multiarch/Makefile
5853         (sysdep_routines): Remove wcspbrk variants.
5854         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5855         * sysdeps/s390/multiarch/ifunc-impl-list.c
5856         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5857         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5858         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5859         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5860         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5861         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5862         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5863         * sysdeps/s390/ifunc-wcspbrk.h: New file.
5865 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5867         * sysdeps/s390/multiarch/Makefile
5868         (sysdep_routines): Remove wcsspn variants.
5869         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5870         * sysdeps/s390/multiarch/ifunc-impl-list.c
5871         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5872         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5873         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5874         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5875         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5876         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5877         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5878         * sysdeps/s390/ifunc-wcsspn.h: New file.
5880 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5882         * sysdeps/s390/multiarch/Makefile
5883         (sysdep_routines): Remove wcsrchr variants.
5884         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5885         * sysdeps/s390/multiarch/ifunc-impl-list.c
5886         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5887         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5888         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5889         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5890         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5891         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5892         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5893         * sysdeps/s390/ifunc-wcsrchr.h: New file.
5895 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5897         * sysdeps/s390/multiarch/Makefile
5898         (sysdep_routines): Remove wcschrnul variants.
5899         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5900         * sysdeps/s390/multiarch/ifunc-impl-list.c
5901         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5902         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5903         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5904         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5905         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5906         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5907         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5908         * sysdeps/s390/ifunc-wcschrnul.h: New file.
5910 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5912         * sysdeps/s390/multiarch/Makefile
5913         (sysdep_routines): Remove wcschr variants.
5914         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5915         * sysdeps/s390/multiarch/ifunc-impl-list.c
5916         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5917         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5918         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5919         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5920         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5921         * sysdeps/s390/multiarch/wcschr.c: Move to ...
5922         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5923         * sysdeps/s390/ifunc-wcschr.h: New file.
5925 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5927         * sysdeps/s390/multiarch/Makefile
5928         (sysdep_routines): Remove wcsncmp variants.
5929         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5930         * sysdeps/s390/multiarch/ifunc-impl-list.c
5931         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5932         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5933         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5934         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5935         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5936         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5937         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5938         * sysdeps/s390/ifunc-wcsncmp.h: New file.
5940 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5942         * sysdeps/s390/multiarch/Makefile
5943         (sysdep_routines): Remove wcscmp variants.
5944         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5945         * sysdeps/s390/multiarch/ifunc-impl-list.c
5946         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5947         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5948         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5949         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5950         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5951         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5952         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5953         * sysdeps/s390/ifunc-wcscmp.h: New file.
5955 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5957         * sysdeps/s390/multiarch/Makefile
5958         (sysdep_routines): Remove wcsncat variants.
5959         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5960         * sysdeps/s390/multiarch/ifunc-impl-list.c
5961         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5962         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5963         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5964         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5965         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5966         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5967         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5968         * sysdeps/s390/ifunc-wcsncat.h: New file.
5970 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5972         * sysdeps/s390/multiarch/Makefile
5973         (sysdep_routines): Remove wcscat variants.
5974         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5975         * sysdeps/s390/multiarch/ifunc-impl-list.c
5976         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5977         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5978         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5979         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5980         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5981         * sysdeps/s390/multiarch/wcscat.c: Move to ...
5982         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5983         * sysdeps/s390/ifunc-wcscat.h: New file.
5985 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5987         * sysdeps/s390/multiarch/Makefile
5988         (sysdep_routines): Remove wcpncpy variants.
5989         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5990         * sysdeps/s390/multiarch/ifunc-impl-list.c
5991         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5992         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5993         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5994         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5995         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5996         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5997         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5998         * sysdeps/s390/ifunc-wcpncpy.h: New file.
6000 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6002         * sysdeps/s390/multiarch/Makefile
6003         (sysdep_routines): Remove wcsncpy variants.
6004         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
6005         * sysdeps/s390/multiarch/ifunc-impl-list.c
6006         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
6007         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
6008         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
6009         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
6010         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
6011         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
6012         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
6013         * sysdeps/s390/ifunc-wcsncpy.h: New file.
6015 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6017         * sysdeps/s390/multiarch/Makefile
6018         (sysdep_routines): Remove wcpcpy variants.
6019         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
6020         * sysdeps/s390/multiarch/ifunc-impl-list.c
6021         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
6022         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
6023         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
6024         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
6025         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
6026         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
6027         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
6028         * sysdeps/s390/ifunc-wcpcpy.h: New file.
6030 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6032         * sysdeps/s390/multiarch/Makefile
6033         (sysdep_routines): Remove wcscpy variants.
6034         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
6035         * sysdeps/s390/multiarch/ifunc-impl-list.c
6036         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
6037         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
6038         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
6039         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
6040         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
6041         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
6042         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
6043         * sysdeps/s390/ifunc-wcscpy.h: New file.
6045 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6047         * sysdeps/s390/multiarch/Makefile
6048         (sysdep_routines): Remove wcsnlen variants.
6049         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
6050         * sysdeps/s390/multiarch/ifunc-impl-list.c
6051         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
6052         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
6053         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
6054         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
6055         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
6056         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
6057         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
6058         * sysdeps/s390/ifunc-wcsnlen.h: New file.
6060 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6062         * sysdeps/s390/multiarch/Makefile
6063         (sysdep_routines): Remove wcslen variants.
6064         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
6065         * sysdeps/s390/multiarch/ifunc-impl-list.c
6066         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
6067         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
6068         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
6069         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
6070         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
6071         * sysdeps/s390/multiarch/wcslen.c: Move to ...
6072         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
6073         * sysdeps/s390/ifunc-wcslen.h: New file.
6075 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6077         * sysdeps/s390/multiarch/Makefile
6078         (sysdep_routines): Remove memrchr variants.
6079         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
6080         * sysdeps/s390/multiarch/ifunc-impl-list.c
6081         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
6082         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
6083         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
6084         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
6085         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
6086         * sysdeps/s390/multiarch/memrchr.c: Move to ...
6087         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
6088         * sysdeps/s390/ifunc-memrchr.h: New file.
6090 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6092         * sysdeps/s390/multiarch/Makefile
6093         (sysdep_routines): Remove memccpy variants.
6094         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
6095         * sysdeps/s390/multiarch/ifunc-impl-list.c
6096         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
6097         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
6098         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
6099         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
6100         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
6101         * sysdeps/s390/multiarch/memccpy.c: Move to ...
6102         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
6103         * sysdeps/s390/ifunc-memccpy.h: New file.
6105 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6107         * sysdeps/s390/multiarch/Makefile
6108         (sysdep_routines): Remove rawmemchr variants.
6109         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
6110         * sysdeps/s390/multiarch/ifunc-impl-list.c
6111         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
6112         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
6113         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
6114         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
6115         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
6116         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
6117         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
6118         * sysdeps/s390/ifunc-rawmemchr.h: New file.
6120 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6122         * sysdeps/s390/multiarch/Makefile
6123         (sysdep_routines): Remove memchr variants.
6124         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
6125         * sysdeps/s390/multiarch/ifunc-impl-list.c
6126         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
6127         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
6128         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
6129         * sysdeps/s390/multiarch/memchr.c: Move to ...
6130         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
6131         * sysdeps/s390/ifunc-memchr.h: New file.
6132         * sysdeps/s390/s390-64/memchr.S: Move to ...
6133         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
6134         for 31/64bit and ifunc handling.
6135         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
6136         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
6137         * sysdeps/s390/s390-32/memchr.S: Likewise.
6139 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6141         * sysdeps/s390/multiarch/Makefile
6142         (sysdep_routines): Remove strcspn variants.
6143         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
6144         * sysdeps/s390/multiarch/ifunc-impl-list.c
6145         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
6146         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
6147         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
6148         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
6149         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
6150         * sysdeps/s390/multiarch/strcspn.c: Move to ...
6151         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
6152         * sysdeps/s390/ifunc-strcspn.h: New file.
6154 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6156         * sysdeps/s390/multiarch/Makefile
6157         (sysdep_routines): Remove strpbrk variants.
6158         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
6159         * sysdeps/s390/multiarch/ifunc-impl-list.c
6160         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
6161         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
6162         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
6163         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
6164         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
6165         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
6166         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
6167         * sysdeps/s390/ifunc-strpbrk.h: New file.
6169 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6171         * sysdeps/s390/multiarch/Makefile
6172         (sysdep_routines): Remove strspn variants.
6173         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
6174         * sysdeps/s390/multiarch/ifunc-impl-list.c
6175         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
6176         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
6177         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
6178         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
6179         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
6180         * sysdeps/s390/multiarch/strspn.c: Move to ...
6181         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
6182         * sysdeps/s390/ifunc-strspn.h: New file.
6184 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6186         * sysdeps/s390/multiarch/Makefile
6187         (sysdep_routines): Remove strrchr variants.
6188         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
6189         * sysdeps/s390/multiarch/ifunc-impl-list.c
6190         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
6191         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
6192         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
6193         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
6194         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
6195         * sysdeps/s390/multiarch/strrchr.c: Move to ...
6196         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
6197         * sysdeps/s390/ifunc-strrchr.h: New file.
6199 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6201         * sysdeps/s390/multiarch/Makefile
6202         (sysdep_routines): Remove strchrnul variants.
6203         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
6204         * sysdeps/s390/multiarch/ifunc-impl-list.c
6205         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
6206         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
6207         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
6208         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
6209         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
6210         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
6211         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
6212         * sysdeps/s390/ifunc-strchrnul.h: New file.
6214 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6216         * sysdeps/s390/multiarch/Makefile
6217         (sysdep_routines): Remove strchr variants.
6218         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
6219         * sysdeps/s390/multiarch/ifunc-impl-list.c
6220         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
6221         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
6222         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
6223         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
6224         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
6225         * sysdeps/s390/multiarch/strchr.c: Move to ...
6226         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
6227         * sysdeps/s390/ifunc-strchr.h: New file.
6229 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6231         * sysdeps/s390/multiarch/Makefile
6232         (sysdep_routines): Remove strncmp variants.
6233         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
6234         * sysdeps/s390/multiarch/ifunc-impl-list.c
6235         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
6236         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
6237         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
6238         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
6239         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
6240         * sysdeps/s390/multiarch/strncmp.c: Move to ...
6241         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
6242         * sysdeps/s390/ifunc-strncmp.h: New file.
6244 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6246         * sysdeps/s390/multiarch/Makefile
6247         (sysdep_routines): Remove strcmp variants.
6248         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
6249         * sysdeps/s390/multiarch/ifunc-impl-list.c
6250         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
6251         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
6252         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
6253         * sysdeps/s390/multiarch/strcmp.c: Move to ...
6254         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
6255         * sysdeps/s390/ifunc-strcmp.h: New file.
6256         * sysdeps/s390/s390-64/strcmp.S: Move to ...
6257         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
6258         for 31/64bit and ifunc handling.
6259         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
6260         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
6261         * sysdeps/s390/s390-32/strcmp.S: Likewise.
6263 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6265         * sysdeps/s390/multiarch/Makefile
6266         (sysdep_routines): Remove strncat variants.
6267         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
6268         * sysdeps/s390/multiarch/ifunc-impl-list.c
6269         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
6270         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
6271         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
6272         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
6273         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
6274         * sysdeps/s390/multiarch/strncat.c: Move to ...
6275         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
6276         * sysdeps/s390/ifunc-strncat.h: New file.
6278 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6280         * sysdeps/s390/multiarch/Makefile
6281         (sysdep_routines): Remove strcat variants.
6282         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
6283         * sysdeps/s390/multiarch/ifunc-impl-list.c
6284         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
6285         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
6286         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
6287         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
6288         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
6289         * sysdeps/s390/multiarch/strcat.c: Move to ...
6290         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
6291         * sysdeps/s390/ifunc-strcat.h: New file.
6293 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6295         * sysdeps/s390/multiarch/Makefile
6296         (sysdep_routines): Remove stpncpy variants.
6297         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
6298         * sysdeps/s390/multiarch/ifunc-impl-list.c
6299         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
6300         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
6301         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
6302         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
6303         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
6304         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6305         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6306         * sysdeps/s390/ifunc-stpncpy.h: New file.
6308 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6310         * sysdeps/s390/multiarch/Makefile
6311         (sysdep_routines): Remove strncpy variants.
6312         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6313         * sysdeps/s390/multiarch/ifunc-impl-list.c
6314         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6315         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6316         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6317         * sysdeps/s390/multiarch/strncpy.c: Move to ...
6318         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6319         * sysdeps/s390/ifunc-strncpy.h: New file.
6320         * sysdeps/s390/s390-64/strncpy.S: Move to ...
6321         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6322         and adjust ifunc handling.
6323         * sysdeps/s390/s390-32/strncpy.S: Move to ...
6324         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6325         and adjust ifunc handling.
6326         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6327         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6329 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6331         * sysdeps/s390/multiarch/Makefile
6332         (sysdep_routines): Remove stpcpy variants.
6333         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6334         * sysdeps/s390/multiarch/ifunc-impl-list.c
6335         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6336         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6337         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6338         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6339         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6340         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6341         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6342         * sysdeps/s390/ifunc-stpcpy.h: New file.
6344 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6346         * sysdeps/s390/multiarch/Makefile
6347         (sysdep_routines): Remove strcpy variants.
6348         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6349         * sysdeps/s390/multiarch/ifunc-impl-list.c
6350         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6351         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6352         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6353         * sysdeps/s390/multiarch/strcpy.c: Move to ...
6354         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6355         * sysdeps/s390/ifunc-strcpy.h: New file.
6356         * sysdeps/s390/s390-64/strcpy.S: Move to ...
6357         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6358         for 31/64bit and ifunc handling.
6359         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6360         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6361         * sysdeps/s390/s390-32/strcpy.S: Likewise.
6363 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6365         * sysdeps/s390/multiarch/Makefile
6366         (sysdep_routines): Remove strnlen variants.
6367         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6368         * sysdeps/s390/multiarch/ifunc-impl-list.c
6369         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6370         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6371         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6372         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6373         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6374         * sysdeps/s390/multiarch/strnlen.c: Move to ...
6375         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6376         * sysdeps/s390/ifunc-strnlen.h: New file.
6378 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6380         * sysdeps/s390/multiarch/Makefile
6381         (sysdep_routines): Remove strlen variants.
6382         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6383         * sysdeps/s390/multiarch/ifunc-impl-list.c
6384         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6385         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6386         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6387         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6388         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6389         * sysdeps/s390/multiarch/strlen.c: Move to ...
6390         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6391         * sysdeps/s390/ifunc-strlen.h: New file.
6393 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6395         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6396         * sysdeps/s390/multiarch/ifunc-impl-list.c
6397         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6398         * sysdeps/s390/ifunc-memmem.h: New file.
6399         * sysdeps/s390/memmem.c: Likewise.
6400         * sysdeps/s390/memmem-c.c: Likewise.
6401         * sysdeps/s390/memmem-vx.c: Likewise.
6403 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6405         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6406         * sysdeps/s390/multiarch/ifunc-impl-list.c
6407         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6408         * sysdeps/s390/ifunc-strstr.h: New file.
6409         * sysdeps/s390/strstr.c: Likewise.
6410         * sysdeps/s390/strstr-c.c: Likewise.
6411         * sysdeps/s390/strstr-vx.c: Likewise.
6413 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6415         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6416         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6417         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6418         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6419         New defines.
6420         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6421         * sysdeps/s390/memmove-c.c: New file.
6422         * sysdeps/s390/memmove.c: Likewise.
6423         * sysdeps/s390/multiarch/ifunc-impl-list.c
6424         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6426 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6428         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6429         * sysdeps/s390/configure.ac: Add check for z13 support.
6430         * sysdeps/s390/configure: Regenerated.
6432 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6434         * sysdeps/s390/memcopy.h: New file.
6436 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6438         * sysdeps/s390/s390-32/bcopy.S: Remove.
6439         * sysdeps/s390/s390-64/bcopy.S: Likewise.
6441 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6443         * sysdeps/s390/ifunc-memcpy.h: New File.
6444         * sysdeps/s390/memcpy.S: Move to ...
6445         * sysdeps/s390/memcpy-z900.S ... here.
6446         Move implementations from memcpy-s390x.s to here.
6447         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6448         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6449         Remove memcpy/mempcpy variants.
6450         * sysdeps/s390/Makefile (sysdep_routines):
6451         Add memcpy/mempcpy variants.
6452         * sysdeps/s390/multiarch/ifunc-impl-list.c
6453         (__libc_ifunc_impl_list): Adjust ifunc variants for
6454         memcpy and mempcpy.
6455         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6456         to ...
6457         * sysdeps/s390/memcpy.c: ... here.
6458         Adjust ifunc variants for memcpy.
6459         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6460         * sysdeps/s390/mempcpy.c: ... here.
6461         Adjust ifunc variants for mempcpy.
6462         * sysdeps/s390/mempcpy.S: Delete file.
6464 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6466         * sysdeps/s390/s390-64/memcpy.S: Move to ...
6467         * sysdeps/s390/memcpy.S: ... here.
6468         Adjust to be usable for 31/64bit.
6469         * sysdeps/s390/s390-32/memcpy.S: Delete File.
6470         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6471         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6472         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6473         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6474         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6475         Adjust to be usable for 31/64bit.
6476         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6477         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6478         * sysdeps/s390/multiarch/memcpy.c: ... here.
6479         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6481 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6483         * sysdeps/s390/ifunc-memcmp.h: New File.
6484         * sysdeps/s390/memcmp.S: Move to ...
6485         * sysdeps/s390/memcmp-z900.S ... here.
6486         Move implementations from memcmp-s390x.s to here.
6487         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6488         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6489         Remove memcmp variants.
6490         * sysdeps/s390/Makefile (sysdep_routines):
6491         Add memcmp variants.
6492         * sysdeps/s390/multiarch/ifunc-impl-list.c
6493         (__libc_ifunc_impl_list): Adjust ifunc variants for
6494         memcmp.
6495         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6496         to ...
6497         * sysdeps/s390/memcmp.c: ... here.
6498         Adjust ifunc variants for memcmp.
6500 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6502         * sysdeps/s390/s390-64/memcmp.S: Move to ...
6503         * sysdeps/s390/memcmp.S: ... here.
6504         Adjust to be usable for 31/64bit.
6505         * sysdeps/s390/s390-32/memcmp.S: Delete File.
6506         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6507         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6508         Remove memcmp.
6509         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6510         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6511         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6512         Adjust to be usable for 31/64bit.
6513         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6514         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6515         * sysdeps/s390/multiarch/memcmp.c: ... here.
6516         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6518 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6520         * sysdeps/s390/s390-32/bzero.S: Delete file.
6521         * sysdeps/s390/s390-64/bzero.S: Likewise.
6522         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6523         * sysdeps/s390/bzero.c: New file.
6524         * sysdeps/s390/memset-z900.S: Add bzero entry points.
6525         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6526         * sysdeps/s390/multiarch/ifunc-impl-list.c
6527         (__libc_ifunc_impl_list): Add bzero ifunc variants.
6529 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6531         * sysdeps/s390/ifunc-memset.h: New File.
6532         * sysdeps/s390/memset.S: Move to ...
6533         * sysdeps/s390/memset-z900.S ... here.
6534         Move implementations from memset-s390x.s to here.
6535         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6536         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6537         Remove memset variants.
6538         * sysdeps/s390/Makefile (sysdep_routines):
6539         Add memset variants.
6540         * sysdeps/s390/multiarch/ifunc-impl-list.c
6541         (__libc_ifunc_impl_list): Adjust ifunc variants for
6542         memset.
6543         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6544         to ...
6545         * sysdeps/s390/memset.c: ... here.
6546         Adjust ifunc variants for memset.
6548 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6550         * sysdeps/s390/s390-64/memset.S: Move to ...
6551         * sysdeps/s390/memset.S: ... here.
6552         Adjust to be usable for 31/64bit.
6553         * sysdeps/s390/s390-32/memset.S: Delete File.
6554         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6555         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6556         Remove memset.
6557         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6558         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6559         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6560         Adjust to be usable for 31/64bit.
6561         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6562         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6563         * sysdeps/s390/multiarch/memset.c: ... here.
6564         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6566 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6568         * sysdeps/s390/multiarch/ifunc-resolve.h
6569         (s390_libc_ifunc_init, s390_libc_ifunc,
6570         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6572 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6574         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6575         * sysdeps/s390/configure.ac: Add check for z10 support.
6576         * sysdeps/s390/configure: Regenerated.
6578 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
6580         * sysdeps/i386/atomic-machine.h: Merged with ...
6581         * sysdeps/x86_64/atomic-machine.h: To ...
6582         * sysdeps/x86/atomic-machine.h: This.  New file.
6584 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6586         Rewrite locale/gen-translit.pl in Python.
6587         * locale/Makefile (generated): Add C-translit.h.
6588         (before-compile): Add $(objpfx)C-translit.h.
6589         (C-translit.h): Move to $(objpfx).  Create target directory.
6590         Build using Python script.
6591         * locale/gen-translit.py: New file.
6592         * locale/gen-translit.pl: Remove file.
6593         * locale/C-translit.h.in: Change comment character to '#' for
6594         easier parsing without a C preprocessor.
6595         * locale/C-translit.h: Remove generated file.
6596         * manual/install.texi (Tools for Compilation): Do not mention
6597         C-translit.h.
6598         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6599         Remove locale/C-translit.h.
6600         * scripts/update-copyrights: Likewise.
6601         * INSTALL: Regenerate.
6603 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6605         [BZ #23995]
6606         * localedata/locales/bi_VU: Remove executable bit from file.
6608 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6610         * include/time.h
6611         (__localtime64): Add.
6612         * manual/maint.texi: Document Y2038 symbol handling.
6613         * time/localtime.c
6614         (__localtime64): Add.
6615         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6617 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
6619         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6620         Do not clobber r12.
6622         * scripts/glibcextract.py (compare_macro_consts): Take parameters
6623         to allow extra macros from first or second sources.
6624         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6625         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6626         (tests-special): Add $(objpfx)tst-mman-consts.out.
6627         ($(objpfx)tst-mman-consts.out): New makefile target.
6629 2018-12-17  Mao Han  <han_mao@c-sky.com>
6631         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6632         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6633         without stat64 system call support.
6634         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6635         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6636         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6637         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6638         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6639         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6640         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6641         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6642         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6643         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6644         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6646 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6648         regex: fix storage-exhaustion error
6649         [BZ #18040]
6650         * posix/regexec.c (get_subexp):
6651         Do not continue if storage is exhausted.
6653 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
6655         regex: fix heap-use-after-free error
6656         [BZ #18040]
6657         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6658         https://debbugs.gnu.org/32592
6659         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6660         call extend_buffers which reallocates the re_string_t internal buffer.
6661         Local variable 'buf' was not updated in such case, resulting in
6662         use-after-free.
6663         * posix/regexec.c (get_subexp): Update 'buf' after call to
6664         get_subexp_sub.
6666 2018-12-15  Florian Weimer  <fweimer@redhat.com>
6668         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6669         (minimum_stride_size): Use it.
6670         (support_blob_repeat_allocate): Likewise.
6672 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
6674         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6675         definition.
6676         (acosh): Likewise.
6677         (atanh): Likewise.
6679 2018-12-14  Florian Weimer  <fweimer@redhat.com>
6681         * manual/process.texi (Process Creation Concepts): Remove
6682         documentation of process (ID) lifetime.  List more process
6683         creation functions.  Reference Process Identification section.
6684         (Process Identification): Add information about process ID
6685         lifetime.  Describe Linux thread/task IDs.
6686         * manual/signal.texi (Signaling Another Process): Mention that the
6687         signal is always sent to the process.
6689 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6691         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
6692         and tst-ldbl-efgcvt.
6693         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6694         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6695         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6696         (fcvt_tests, output_error, output_r_error, do_test): Use the
6697         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6698         select the type of floating-point variables and arguments; to
6699         produce extra tests for double and conversion specifiers for
6700         printf; and to set the names of called functions.
6701         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6702         in tst-efgcvt-template.c.
6703         * misc/tst-ldbl-efgcvt.c: Likewise.
6705 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
6707         * nss/Makefile (tst-nss-test3.out): New rule.
6709 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
6711         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6712         clobber sp.
6714 2018-12-13  fanjinke  <fanjinke@hygon.cn>
6716         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6717         "HygonGenuine".
6719 2018-12-13  Andreas Schwab  <schwab@suse.de>
6721         [BZ #23861]
6722         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
6723         (__pthread_rwlock_rdlock_full): Update expected value for
6724         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6725         * nptl/tst-rwlock-pwn.c: New file.
6726         * nptl/Makefile (tests): Add tst-rwlock-pwn.
6728 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
6730         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6731         definition.
6733 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6735         * benchtests/scripts/compare_bench.py (do_compare): write to
6736         stderr in casestat is not present.
6737         * benchtests/scripts/compare_bench.py (plot_graphs): write to
6738         stderr in case timings field is not present. Also string showing
6739         the output filename goes into the stderr.
6741 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6743         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6744         and ZeroDivisorError exceptions.
6745         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6746         argument to loop through user provided statistics.
6747         * benchtests/scripts/compare_bench.py (main): Include the --stats
6748         argument.
6750 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6752         * benchtests/scripts/compare_bench.py (compare_runs): Continue
6753         instead of return.
6755 2018-12-12  Florian Weimer  <fweimer@redhat.com>
6757         * sysdeps/posix/timespec_get.c: Add missing “any later version”
6758         clause to copyright header.
6760 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6762         [BZ #23614]
6763         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6764         registers saved in the stack frame.
6765         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6766         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6768 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6770         * include/bits/monetary-ldbl.h: New file.
6771         * include/bits/printf-ldbl.h: Likewise.
6772         * include/bits/stdio-ldbl.h: Likewise.
6773         * include/bits/stdlib-ldbl.h: Likewise.
6774         * include/bits/syslog-ldbl.h: Likewise.
6775         * include/bits/wchar-ldbl.h: Likewise.
6777 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6779         * libio/libio.h: Remove redirection for _IO_vfprintf.
6781 2018-12-11  Andreas Schwab  <schwab@suse.de>
6783         * Makerules: Remove all references to abilist-pattern.
6784         (update-all-abi): Simplify find expression.
6786 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6788         [BZ #23961]
6789         * math/auto-libm-test-in: Add new test case.
6790         * math/auto-libm-test-out-pow: Regenerated.
6791         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6793 2018-12-10  DJ Delorie  <dj@redhat.com>
6795         [BZ #23948]
6796         * support/test-container.c: Move postclean step to before we
6797         change namespaces.
6799 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6801         * scripts/gen-as-const.py (main): Handle --python option.
6802         * scripts/gen-py-const.awk: Remove.
6803         * Makerules (py-const-script): Use gen-as-const.py.
6804         ($(py-const)): Likewise.
6805         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6806         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6807         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6808         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6809         ~PTHREAD_MUTEX_NO_ELISION_NP.
6810         * manual/README.pretty-printers: Update reference to
6811         gen-py-const.awk.
6813         * scripts/glibcextract.py: New file.
6814         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6815         or tempfile.  Import glibcexctract.
6816         (compute_c_consts): Remove.  Moved to glibcextract.py.
6817         (gen_test): Update reference to compute_c_consts.
6818         (main): Likewise.
6819         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6820         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6821         * sysdeps/unix/sysv/linux/Makefile
6822         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6823         Redirect stderr as well as stdout.
6825 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
6827         [BZ #19767]
6828         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6829         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6830         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6831         ALWAYS_USE_VSYSCALL.
6832         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6833         ALWAYS_USE_VSYSCALL.
6834         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6835         ALWAYS_USE_VSYSCALL.
6837 2018-12-10  Florian Weimer  <fweimer@redhat.com>
6839         [BZ #23972]
6840         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6841         offset instead of count for clarity.  Fix typo in comment.
6842         (__old_getdents64): Keep track of previous offset.  Use it to call
6843         handle_overflow.
6844         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6845         that d_off is never zero.
6847 2018-12-10  Andreas Schwab  <schwab@suse.de>
6849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6850         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6852         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6853         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6855 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6857         * timezone/private.h: Update from tzcode 2018g.
6858         * timezone/tzfile.h: Likewise.
6859         * timezone/tzselect.ksh: Likewise.
6860         * timezone/zdump.c: Likewise.
6861         * timezone/zic.c: Likewise.
6863 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
6865         [BZ #23490]
6866         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6867         (do_test): Adjust buffer size and fix format.
6869 2018-12-07  DJ Delorie  <dj@redhat.com>
6871         [BZ #23907]
6872         * malloc/tst-tcfree3.c: New.
6873         * malloc/Makefile: Add it.
6875 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6877         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6879 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6881         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6882         used as a mask for the mode argument of __vfscanf_internal and
6883         __vfwscanf_internal.
6884         * stdio-common/vfscanf-internal.c
6885         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6886         (__strtof128_internal): Define to __wcstof128_internal.
6887         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6888         __strtof128_internal or __wcstof128_internal when the format of
6889         long double is the same as _Float128.
6891 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6893         * include/unistd.h (__confstr): Add prototype and hidden prototype.
6894         * posix/confstr.c (confstr): Rename to __confstr.
6895         (__confstr): Add hidden def.
6896         (confstr): Add weak alias for __confstr.
6897         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6898         confstr.
6900 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6902         * NEWS: Mention getcpu.
6903         * include/sched.h (__getcpu): New libc_hidden_proto.
6904         * manual/resource.texi: Document getcpu.
6905         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6906         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6907         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6908         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6909         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6910         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6911         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6912         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6913         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6914         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6915         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6916         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6917         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6918         Likewise.
6919         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6920         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6921         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6923         Likewise.
6924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6925         Likewise.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6927         Likewise.
6928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6929         Likewise.
6930         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6934         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6935         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6936         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6939         * sysdeps/unix/sysv/linux/getcpu.c: New file.
6940         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6941         Also check getcpu.
6943 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6945         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6946         functions.
6947         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6949 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6951         [BZ #17405]
6952         * posix/Makefile (routines): Add spawn_faction_addfchdir.
6953         * posix/Versions (GLIBC_2.29): Export
6954         posix_spawn_file_actions_addfchdir_np.
6955         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6956         * posix/spawn_faction_destroy.c
6957         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6958         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6959         and the field action.fchdir_action.
6960         * posix/tst-spawn-chdir.c (add_chdir): New function.
6961         (do_test): Add do_fchdir loop.  Call add_chdir.
6962         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6963         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6964         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6965         posix_spawn_file_actions_addfchdir_np.
6966         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6967         Likewise.
6968         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6969         Likewise.
6970         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6971         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6972         Likewise.
6973         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6974         Likewise.
6975         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6976         Likewise.
6977         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6978         Likewise.
6979         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6980         Likewise.
6981         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6982         Likewise.
6983         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6984         (GLIBC_2.29): Likewise.
6985         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6986         (GLIBC_2.29): Likewise.
6987         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6988         (GLIBC_2.29): Likewise.
6989         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6990         (GLIBC_2.29): Likewise.
6991         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6992         Likewise.
6993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6994         (GLIBC_2.29): Likewise.
6995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6996         (GLIBC_2.29): Likewise.
6997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6998         (GLIBC_2.29): Likewise.
6999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7000         (GLIBC_2.29): Likewise.
7001         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7002         Likewise.
7003         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7004         Likewise.
7005         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7006         Likewise.
7007         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7008         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7009         Likewise.
7010         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7011         Likewise.
7012         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7013         Likewise.
7014         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7015         Likewise.
7017 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
7019         * manual/texinfo.tex: Update to version 2018-09-21.20 with
7020         trailing whitespace removed.
7021         * scripts/config.guess: Update to version 2018-11-28.
7022         * scripts/config.sub: Update to version 2018-11-28.
7023         * scripts/install-sh: Update to version 2018-03-11.20.
7024         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
7025         * scripts/move-if-change: Update to version 2018-03-07 03:47.
7027 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7029         [BZ #23927]
7030         CVE-2018-19591
7031         * inet/tst-if_index-long.c: New file.
7032         * inet/Makefile (tests): Add tst-if_index-long.
7034 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7036         * support/check.h (support_record_failure_is_failed): Declare.
7037         * support/descriptors.h: New file.
7038         * support/support_descriptors.c: Likewise.
7039         * support/tst-support_descriptors.c: Likewise.
7040         * support/support_record_failure.c
7041         (support_record_failure_is_failed): New function.
7042         * support/Makefile (libsupport-routines): Add support_descriptors.
7043         (tests): Add tst-support_descriptors.
7045 2018-12-05  Zack Weinberg  <zackw@panix.com>
7046             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7048         * stdio-common/vfprintf-internal.c
7049         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
7050         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
7051         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
7052         and __no_long_double.
7053         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
7054         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
7055         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
7056         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
7057         and __nldbl_*syslog* functions.
7058         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
7059         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
7060         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
7061         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
7062         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
7063         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
7064         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
7065         (__nldbl_vwprintf, __nldbl_wprintf):
7066         Directly call the appropriate __v*printf_internal routine, passing
7067         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
7068         variable names.
7069         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
7070         (__nldbl___printf_chk, __nldbl___snprintf_chk)
7071         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
7072         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
7073         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
7074         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7075         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
7076         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
7077         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
7078         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
7079         Likewise, and also pass PRINTF_FORTIFY when appropriate.
7080         (__nldbl_syslog, __nldbl_vsyslog):
7081         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
7082         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7083         appropriate.
7084         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7085         appropriate.
7087 2018-12-05  Zack Weinberg  <zackw@panix.com>
7088             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7090         [BZ #11319]
7091         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
7092         Moved here from debug/vsprintf_chk.c.
7093         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
7094         and completion logic for the strfile to match exactly what
7095         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
7096         _IO_str_init_static_internal instead of maxlen-1.
7097         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7098         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
7099         __vsprintf_internal.
7101         * debug/vsprintf_chk.c (__vsprintf_chk)
7102         * debug/sprintf_chk.c (__sprintf_chk):
7103         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
7104         'flags' argument is positive, and slen as maxlen.  No need to lock
7105         the FILE and/or construct a temporary FILE.  Minimize and normalize
7106         header inclusions and variable names.  Do not libc_hidden_def anything.
7108         * debug/asprintf_chk.c (__asprintf_chk)
7109         * debug/dprintf_chk.c (__dprintf_chk)
7110         * debug/fprintf_chk.c (__fprintf_chk)
7111         * debug/fwprintf_chk.c (__fwprintf_chk)
7112         * debug/printf_chk.c (__printf_chk)
7113         * debug/snprintf_chk.c (__snprintf_chk)
7114         * debug/swprintf_chk.c (__swprintf_chk)
7115         * debug/vasprintf_chk.c (__vasprintf_chk)
7116         * debug/vdprintf_chk.c (__vdprintf_chk)
7117         * debug/vfprintf_chk.c (__vfprintf_chk)
7118         * debug/vfwprintf_chk.c (__vfwprintf_chk)
7119         * debug/vprintf_chk.c (__vprintf_chk)
7120         * debug/vsnprintf_chk.c (__vsnprintf_chk)
7121         * debug/vswprintf_chk.c (__vswprintf_chk)
7122         * debug/vwprintf_chk.c (__vwprintf_chk)
7123         * debug/wprintf_chk.c (__wprintf_chk):
7124         Directly call the corresponding vxxprintf_internal function, passing
7125         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
7126         the FILE and/or construct a temporary FILE.  Minimize and normalize
7127         header inclusions and variable names.  Do not libc_hidden_def anything.
7129         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
7130         __obstack_vprintf_internal.
7131         (__obstack_vprintf_chk): Convert into a wrapper that calls
7132         __obstack_vprintf_internal (these two functions already had the
7133         same code) and move to new file...
7134         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
7135         file.
7136         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
7137         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
7138         * debug/Makefile (routines): Add vobprintf_chk.
7140         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7141         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7142         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
7143         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7144         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
7145         (__nldbl___obstack_vfprintf_chk):
7146         Directly call the corresponding vxxprintf_internal function,
7147         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
7148         duplicate comparison of slen with 0 or maxlen from the corresponding
7149         non-__nldbl function.
7151         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
7152         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
7153         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
7154         Remove libc_hidden_proto.
7156         * stdio-common/vfprintf-internal.c
7157         (__vfprintf_internal, __vfwprintf_internal):
7158         Do not check _IO_FLAGS2_FORTIFY.
7159         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
7160         * libio/libioP.h: Update prototype of __vsprintf_internal and add
7161         a comment explaining why it has the maxlen argument.
7162         (_IO_acquire_lock_clear_flags2_fct): Remove.
7163         (_IO_acquire_lock_clear_flags2): Remove.
7164         (_IO_release_lock): Remove conditional statement which will
7165         now never execute.
7166         (_IO_acquire_lock): Remove variable which is now unused.
7167         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7168         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7170         * stdio-common/Makefile (tests): Add tst-bz11319 and
7171         tst-bz11319-fortify2.
7172         (CFLAGS-tst-bz11319-fortify2.c): New macro.
7173         * stdio-common/tst-bz11319-fortify2.c: New file.
7174         * stdio-common/tst-bz11319.c: Likewise.
7176 2018-12-05  Zack Weinberg  <zackw@panix.com>
7177             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7179         * misc/syslog.c: Include libioP.h, not iolibio.h.
7180         (__vsyslog_internal): New function with the former body of
7181         __vsyslog_chk; takes mode_flags argument same as
7182         __v*printf_internal.  Call __vfprintf_internal directly.
7184         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
7185         Remove libc_hidden_def.
7186         (__syslog, __syslog_chk): Use __vsyslog_internal.
7187         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
7189         * include/sys/syslog.h: Add multiple inclusion guard.
7190         Add prototype for __vsyslog_internal.
7191         Remove declaration and libc_hidden_proto for __vsyslog_chk.
7193         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
7194         Use __vsyslog_internal.
7196 2018-12-05  Zack Weinberg  <zackw@panix.com>
7197             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7199         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
7200         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
7201         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
7202         New functions.
7203         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
7204         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
7206         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
7207         Include wctype.h here if COMPILE_WPRINTF is defined.
7208         Define __vfprintf_internal or __vfwprintf_internal, depending
7209         on COMPILE_WPRINTF.
7210         Temporarily, on entry to this function, update mode_flags
7211         according to the environmental settings corresponding to
7212         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
7213         Throughout, check mode_flags instead of __ldbl_is_dbl and
7214         _IO_FLAGS2_FORTIFY on the destination FILE.
7215         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
7216         Include vfprintf-internal.c.  Don't include wctype.h.
7217         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
7218         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
7219         and vfprintf.
7220         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
7221         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
7222         and vfwprintf.
7223         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
7225         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
7226         and add mode_flags argument; use __vfprintf_internal.
7227         (__vdprintf): New function.  Alias vdprintf to this.
7228         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
7229         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
7230         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
7231         (__obstack_printf): Use __obstack_printf_internal.
7232         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
7233         public aliases __vsnprintf and vsnprintf.
7234         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
7235         called internally.
7236         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
7237         public aliases _IO_vsprintf and vsprintf.
7238         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
7239         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
7240         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
7241         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
7242         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
7244         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
7245         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
7246         * stdio-common/fprintf.c, stdio-common/fxprintf.c
7247         * stdio-common/printf.c: Use __vfprintf_internal.
7249         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
7250         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
7251         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
7253         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
7254         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
7255         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
7256         __vfwprintf_internal.
7258         * libio/libio.h: Remove libc_hidden_proto and declaration for
7259         _IO_vfprintf.
7260         Remove declaration of _IO_vfwprintf.
7261         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
7262         _IO_vsprintf.
7263         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
7264         _IO_obstack_printf.
7265         * include/stdio.h: Add prototype for __vasprintf.
7266         (__vsnprintf): Remove declaration, because there are no more
7267         internal calls.
7268         * include/wchar.h (__vfwprintf, __vswprintf): Remove
7269         declaration, because there are no more internal calls.
7271         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
7272         __vsnprintf_internal, instead of _IO_vsnprintf.
7273         * argp/argp-help.c (__argp_error, __argp_failure): Use
7274         __vasprintf_internal, instead of _IO_vasprintf.
7275         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
7276         redefine, because there are no more internal calls.
7278 2018-12-05  Zack Weinberg  <zackw@panix.com>
7279             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7281         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
7282         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
7283         Include libio/strfile.h instead of libioP.h.
7284         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
7285         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
7286         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
7287         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
7288         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
7289         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
7290         necessary.  Do not set __no_long_double.  Normalize variable names.
7291         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
7292         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
7293         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
7294         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
7295         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
7296         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
7297         Call __vfscanf_internal / __vfwscanf_internal directly, passing
7298         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
7299         Do not set __no_long_double.  Normalize variable names.
7301 2018-12-05  Zack Weinberg  <zackw@panix.com>
7302             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7304         * stdio-common/isoc99_scanf.c
7305         * stdio-common/isoc99_fscanf.c
7306         * stdio-common/isoc99_sscanf.c
7307         * stdio-common/isoc99_vscanf.c
7308         * stdio-common/isoc99_vfscanf.c
7309         * stdio-common/isoc99_vsscanf.c
7310         * wcsmbs/isoc99_wscanf.c
7311         * wcsmbs/isoc99_fwscanf.c
7312         * wcsmbs/isoc99_swscanf.c
7313         * wcsmbs/isoc99_vwscanf.c
7314         * wcsmbs/isoc99_vfwscanf.c
7315         * wcsmbs/isoc99_vswscanf.c:
7316         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7317         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7318         No need to lock and unlock the FILE passed to that function.
7320         * stdio-common/vfscanf-internal.c
7321         (__vfscanf_internal, __vfwscanf_internal):
7322         Don't look at _IO_FLAGS2_SCANF_STD.
7323         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7324         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7325         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7327 2018-12-05  Zack Weinberg  <zackw@panix.com>
7328             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7330         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7331         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7332         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7333         * libio/strfile.h: Add multiple inclusion guard.
7334         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7336         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7337         consistency with the other version of this file.
7338         (ldbl_compat_symbol): New macro.
7339         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7340         New macro.
7342         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7343         Define __vfscanf_internal or __vfwscanf_internal, depending on
7344         COMPILE_WSCANF; don't define any other public symbols.
7345         Remove errval and code to set errp.
7346         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7347         as the mode_flags argument.
7348         (encode_error, conv_error, input_error): Don't set errval.
7349         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7350         Include vfscanf-internal.c.
7351         * stdio-common/vfscanf.c: New file defining the public entry
7352         point vfscanf, which calls __vfscanf_internal.
7353         * stdio-common/vfwscanf.c: New file defining the public entry
7354         point vfwscanf, which calls __vfwscanf_internal.
7356         * stdio-common/iovfscanf.c: New file.
7357         * stdio-common/iovfwscanf.c: Likewise.
7359         * stdio-common/Makefile (routines): Add vfscanf-internal,
7360         vfwscanf-internal, iovfscanf, iovfwscanf.
7361         * stdio-common/Versions: Mention GLIBC_2.29, so that
7362         it can be used in SHLIB_COMPAT expressions.
7363         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7364         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7365         Call __vfscanf_internal, instead of _IO_vfscanf.
7366         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7367         _IO_vfscanf.
7368         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7369         _IO_vfwscanf.
7371         * libio/iovsscanf.c: Clean up includes, when possible.  Use
7372         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
7373         __vfscanf_internal or __vfwscanf_internal directly.
7374         * libio/iovswscanf.c: Likewise.
7375         * libio/swscanf.c: Likewise.
7376         * libio/vscanf.c: Likewise.
7377         * libio/vwscanf.c: Likewise.
7378         * libio/wscanf.c: Likewise.
7379         * stdio-common/isoc99_fscanf.c: Likewise.
7380         * stdio-common/isoc99_scanf.c: Likewise.
7381         * stdio-common/isoc99_sscanf.c: Likewise.
7382         * stdio-common/isoc99_vfscanf.c: Likewise.
7383         * stdio-common/isoc99_vscanf.c: Likewise.
7384         * stdio-common/isoc99_vsscanf.c: Likewise.
7385         * stdio-common/scanf.c: Likewise.
7386         * stdio-common/sscanf.c: Likewise.
7387         * wcsmbs/isoc99_fwscanf.c: Likewise.
7388         * wcsmbs/isoc99_swscanf.c: Likewise.
7389         * wcsmbs/isoc99_vfwscanf.c: Likewise.
7390         * wcsmbs/isoc99_vswscanf.c: Likewise.
7391         * wcsmbs/isoc99_vwscanf.c: Likewise.
7392         * wcsmbs/isoc99_wscanf.c: Likewise.
7394 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7396         * include/time.h
7397         (__tz_compute): Replace time_t with __time64_t.
7398         (__tz_convert): Replace time_t* with __time64_t.
7399         (__offtime): Replace time_t* with __time64_t.
7400         * time/gmtime.c
7401         (__gmtime_r): Adjust call to __tz_convert.
7402         (gmtime): Likewise.
7403         * time/localtime.c
7404         (__localtime_r): Likewise.
7405         (localtime): Likewise.
7406         * time/offtime.c: Replace time_t with __time64_t.
7407         * time/tzset.c: Likewise.
7409 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
7411         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7412         dynamic linker unless [$(run-built-tests) = yes].
7414 2018-12-03  DJ Delorie  <dj@delorie.com>
7416         * support/test-container.c (check_for_unshare_hints): New.
7417         (main): Call it if unshare fails.  Add support for "su" scriptlet
7418         command.
7420 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
7422         * scripts/gen-as-const.py (compute_c_consts): Take an argument
7423         'START' to indicate that start text should be output.
7424         (gen_test): Likewise.
7425         (main): Generate 'START' for first symbol or '--' line, or at end
7426         of input if not previously generated.
7428 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
7430         [BZ #19767]
7431         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7432         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7433         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7434         ALWAYS_USE_VSYSCALL.
7436 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7438         [BZ #23913]
7439         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7440         new_argv by one.
7442 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
7444         [BZ #23923]
7445         * locale/programs/localedef.c: Declare boolean hard_links default true.
7446         (options): Add --no-hard-links option.
7447         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7448         * locale/programs/localedef.h: Declare prototype for hard_links.
7449         * locale/programs/locfile.c (write_locale_data): Don't use hard
7450         links if hard_links is false.
7452 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
7454         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7455         cpu_features_basic.
7456         (__cache_sysconf): Likewise.
7457         (init_cacheinfo): Likewise.
7458         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7459         populate COMMON_CPUID_INDEX_80000007 and
7460         COMMON_CPUID_INDEX_80000008.
7461         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7462         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7463         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
7464         (init_cpu_features): Use _Static_assert on
7465         index_arch_Fast_Unaligned_Load.
7466         __get_cpuid_registers and __get_arch_feature.  Updated for
7467         cpu_features_basic.  Set stepping in cpu_features.
7468         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7469         (FEATURE_INDEX_2): New.
7470         (FEATURE_INDEX_MAX): Changed to enum.
7471         (COMMON_CPUID_INDEX_D_ECX_1): New.
7472         (COMMON_CPUID_INDEX_80000007): Likewise.
7473         (COMMON_CPUID_INDEX_80000008): Likewise.
7474         (cpuid_registers): Likewise.
7475         (cpu_features_basic): Likewise.
7476         (CPU_FEATURE_USABLE): Likewise.
7477         (bit_arch_XXX_Usable): Likewise.
7478         (cpu_features): Use cpuid_registers and cpu_features_basic.
7479         (bit_arch_XXX): Reweritten.
7480         (bit_cpu_XXX): Likewise.
7481         (index_cpu_XXX): Likewise.
7482         (reg_XXX): Likewise.
7483         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7484         <support/check.h>.
7485         (CHECK_CPU_FEATURE): New.
7486         (CHECK_CPU_FEATURE_USABLE): Likewise.
7487         (cpu_kinds): Likewise.
7488         (do_test): Print vendor, family, model and stepping.  Check
7489         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7490         (TEST_FUNCTION): Removed.
7491         Include <support/test-driver.c> instead of
7492         "../../test-skeleton.c".
7493         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7494         Check POPCNT instead of POPCOUNT.
7495         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7497 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7499         * scripts/gen-as-const.py (main): Avoid emitting empty line when
7500         there is no element in `consts'.
7502 2018-12-01  Florian Weimer  <fweimer@redhat.com>
7504         * support/support_capture_subprocess.c
7505         (support_capture_subprocess): Check that pipe descriptors have
7506         expected values.  Close original pipe descriptors in subprocess.
7508 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7510         [BZ #23032]
7511         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7512         attr with __pthread_default_barrierattr.
7513         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7514         attr with __pthread_default_condattr.
7515         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7516         attr with __pthread_default_mutexattr.
7517         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7518         attr with __pthread_default_rwlockattr.
7520 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
7522         * manual/tunables.texi (POSIX Thread Tunables): New node.
7523         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7524         * nptl/nptl-init.c: Include pthread_mutex_conf.h
7525         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7526         __pthread_tunables_init.
7527         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7528         (max_adaptive_count): Define.
7529         * nptl/pthread_mutex_conf.c: New file.
7530         * nptl/pthread_mutex_conf.h: New file.
7531         * sysdeps/generic/adaptive_spin_count.h: New file.
7532         * sysdeps/nptl/dl-tunables.list: New file.
7533         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7534         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7535         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7536         Likewise.
7538 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7540         [BZ #20544]
7541         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7542         * stdlib/on_exit.c (__on_exit): Likewise.
7543         * stdlib/Makefile (tests): Add tst-bz20544.
7544         * stdlib/tst-bz20544.c: New test.
7546 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
7548         [BZ #19767]
7549         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7550         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7551         New.
7553 2018-11-30  Florian Weimer  <fweimer@redhat.com>
7555         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7556         Extend error logging.
7557         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7558         symbol.
7560 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7562         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7563         __sigismember instead of sigismember.
7564         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7565         cancel_handler): New definitions.
7566         (do_system): Use posix_spawn instead of fork and execl and remove
7567         reentracy code.
7568         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7569         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7570         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7571         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7572         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7573         * sysdeps/unix/sysv/linux/system.c: Likewise.
7575         [BZ #22834]
7576         [BZ #17490]
7577         * NEWS: Add new semantic for atfork with popen and system.
7578         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7579         fork and execl.
7581 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7583         [BZ #23690]
7584         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7585         modification order when accessing reloc_result->addr.
7586         * include/link.h (reloc_result): Add field init.
7587         * nptl/Makefile (tests): Add tst-audit-threads.
7588         (modules-names): Add tst-audit-threads-mod1 and
7589         tst-audit-threads-mod2.
7590         Add rules to build tst-audit-threads.
7591         * nptl/tst-audit-threads-mod1.c: New file.
7592         * nptl/tst-audit-threads-mod2.c: Likewise.
7593         * nptl/tst-audit-threads.c: Likewise.
7594         * nptl/tst-audit-threads.h: Likewise.
7596 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
7598         * scripts/gen-as-const.py: New file.
7599         * scripts/gen-as-const.awk: Remove.
7600         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7601         gen-as-const.py.
7602         ($(objpfx)test-as-const-%.c): Likewise.
7604 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7606         * elf/dl-exception.c: Include <_itoa.h>.
7608 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7610         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7611         returned by __f_setlk.
7613 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7614             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7616         * elf/Makefile (tests-internal): Add tst-create_format1.
7617         * elf/dl-exception.c (_dl_exception_create_format): Support
7618         %x, %lx and %zx.
7619         * elf/tst-create_format1.c: New file.
7621 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
7623         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7624         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
7625         gnulib.)
7626         * argp/argp-help.c (__argp_failure): Likewise.
7628 2018-11-29  Mao Han  <han_mao@c-sky.com>
7630         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7631         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7632         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7633         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7634         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7635         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7636         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7637         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7638         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7639         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7640         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7641         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7642         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7643         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7644         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7645         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7646         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7647         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7648         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7649         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7650         (R_CKCORE_TLS_TPOFF32): New defines.
7652 2018-11-29  Florian Weimer  <fweimer@redhat.com>
7654         * posix/Makefile (before-compile): Remove testcases.h and
7655         ptestcases.h.
7656         (generated): Add testcases.h and ptestcases.h.
7657         (testcases.h, ptestcases.h): Move to $(objpfx).
7658         (runtests.o): Add dependency on testcases.h.
7659         (runptests.o): Add dependency on ptestcases.h.
7660         * posix/testcases.h, posix/ptestcases.h: Remove files.
7661         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7662         not touch posix/testcases.h and posix/ptestcases.h.
7664 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7666         support: Add signal support to support_capture_subprocess_check.
7667         * support/capture_subprocess.h (support_capture_subprocess_check):
7668         Adjust comment and rename parameter.
7669         * support/support_capture_subprocess_check.c
7670         (print_actual_status): New function.
7671         (support_capture_subprocess_check): Support negative
7672         status_or_signal.  Call print_actual_status.
7673         * support/tst-support_capture_subprocess.c (do_test): Call
7674         support_capture_subprocess_check.
7675         * libio/tst-vtables-common.c (termination_status)
7676         (init_termination_status): Remove.
7677         (check_for_termination): Adjust support_capture_subprocess_check
7678         call.
7679         (do_test): Remove call to init_termination_status.
7681 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
7683         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7684         source directory instead of a copy.
7685         (CommandList.create_copy_dir): Remove.
7687 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
7689         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7691 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7693         * support/support.h (support_quote_string): Do not use str
7694         parameter name.
7696 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
7698         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7699         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7701 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7703         * support/support.h (support_quote_string): Declare.
7704         * support/support_quote_string.c: New file.
7705         * support/tst-support_quote_string.c: Likewise.
7706         * support/Makefile (libsupport-routines): Add
7707         support_quote_string.
7708         (tests): Add tst-support_quote_string.
7710 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7712         [BZ #23927]
7713         CVE-2018-19591
7714         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7715         descriptor leak in case of ENODEV error.
7717 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
7719         [BZ #19767]
7720         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7721         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7722         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7724 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
7726         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7727         Error for unknown lines.
7729 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
7731         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7732         Touch additional files.
7734 2018-11-26  Florian Weimer  <fweimer@redhat.com>
7736         [BZ #23907]
7737         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7738         double-frees.
7740 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
7742         [BZ #19767]
7743         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7744         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7745         SHARED.  Include sysdep.h.
7746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7747         ALWAYS_USE_VSYSCALL.
7748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7749         ALWAYS_USE_VSYSCALL.
7751 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
7753         [BZ #19767]
7754         * nptl/Makefile (tests-static): Add tst-cond11-static.
7755         (tests): Likewise.
7756         * nptl/tst-cond11-static.c: New File.
7757         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7758         tst-affinity-static.
7759         (tests): Likewise.
7760         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7761         instead of SHARED.
7762         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7763         (USE_VSYSCALL): Likewise.
7764         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7765         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7766         instead of SHARED.
7767         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7768         SHARED.
7769         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7770         New.
7772 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
7774         [BZ #23915]
7775         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7776         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7777         Undefine.
7779 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
7781         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7782         (tst-cet-legacy-1a-ARGS): New.
7783         ($(objpfx)tst-cet-legacy-1a): New target.
7784         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7786 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
7788         * conform/conformtest.py (CompileSubTest.__init__): Set
7789         self.run_early to False.
7790         (ExecuteSubTest.__init__): Likewise.
7791         (HeaderTests.run): Try running all non-optional, non-XFAILed
7792         compilation tests in a single execution of the compiler.
7794         * conform/conformtest.py (CompileSubTest): New class.
7795         (ExecuteSubTest): Likewise.
7796         (ElementTest.run): Rename to gen_subtests.  Append tests to
7797         self.subtests instead of running them.
7798         (ConstantTest.run): Likewise.
7799         (SymbolTest.run): Likewise.
7800         (TypeTest.run): Likewise.
7801         (TagTest.run): Likewise.
7802         (FunctionTest.run): Likewise.
7803         (VariableTest.run): Likewise.
7804         (MacroFunctionTest.run): Likewise.
7805         (MacroStrTest.run): Likewise.
7806         (HeaderTests.handle_test_line): Generate subtests for tests.
7807         (HeaderTests.run): Run subtests for tests.
7809 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7811         * math/Versions (GLIBC_2.29): Add pow.
7812         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7813         symbol.
7814         * math/w_pow.c: New file.
7815         * sysdeps/i386/fpu/w_pow.c: New file.
7816         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7817         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7818         and add necessary aliases.
7819         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7820         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7821         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7822         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7823         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7824         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7825         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7826         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7827         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7828         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7829         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7830         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7831         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7832         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7833         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7838         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7839         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7840         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7841         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7842         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7843         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7844         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7845         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7846         __pow.
7847         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7848         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7849         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7851 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7853         * math/Versions (GLIBC_2.29): Add log2.
7854         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7855         symbol.
7856         * math/w_log2.c: New file.
7857         * sysdeps/i386/fpu/w_log2.c: New file.
7858         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7859         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7860         and add necessary aliases.
7861         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7862         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7863         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7864         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7865         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7866         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7867         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7868         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7869         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7870         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7871         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7872         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7873         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7874         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7875         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7880         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7881         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7882         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7883         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7884         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7885         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7886         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7888 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7890         * math/Versions (GLIBC_2.29): Add log.
7891         * math/w_log_compat.c (__log_compat): Change to versioned compat
7892         symbol.
7893         * math/w_log.c: New file.
7894         * sysdeps/i386/fpu/w_log.c: New file.
7895         * sysdeps/ia64/fpu/e_log.S: Update.
7896         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7897         and add necessary aliases.
7898         * sysdeps/ieee754/dbl-64/w_log.c: New file.
7899         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7900         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7901         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7902         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7903         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7904         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7905         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7906         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7907         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7908         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7909         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7910         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7911         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7912         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7917         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7918         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7919         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7920         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7921         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7922         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7923         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7924         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7925         __log.
7926         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7927         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7928         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7929         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7931 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7933         * math/Versions (GLIBC_2.29): Add exp and exp2.
7934         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7935         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7936         * math/w_exp_compat.c (__exp_compat): Likewise.
7937         * math/w_exp.c: New file.
7938         * math/w_exp2.c: New file.
7939         * sysdeps/i386/fpu/w_exp.c: New file.
7940         * sysdeps/i386/fpu/w_exp2.c: New file.
7941         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7942         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7943         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7944         and add necessary aliases.
7945         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7946         and add necessary aliases.
7947         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7948         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7949         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7950         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7951         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7952         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7953         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7954         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7955         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7956         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7957         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7958         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7959         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7960         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7961         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7962         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7963         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7968         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7969         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7970         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7971         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7972         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7973         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7974         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7975         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7976         (__ieee754_exp): Rename to __exp.
7977         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7978         (__ieee754_exp): Rename to __exp.
7979         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7980         (__ieee754_exp): Rename to __exp.
7981         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7982         __exp.
7983         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7985 2018-11-20  DJ Delorie  <dj@redhat.com>
7987         * malloc/malloc.c (tcache_entry): Add key field.
7988         (tcache_put): Set it.
7989         (tcache_get): Likewise.
7990         (_int_free): Check for double free in tcache.
7991         * malloc/tst-tcfree1.c: New.
7992         * malloc/tst-tcfree2.c: New.
7993         * malloc/Makefile: Run the new tests.
7994         * manual/probes.texi: Document memory_tcache_double_free probe.
7996         * dlfcn/dlerror.c (check_free): Prevent double frees.
7998 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
8000         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
8002 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
8004         * conform/conformtest.py (ElementTest.run): Use unique identifiers
8005         in tests.  Use names for format arguments.
8006         (ConstantTest.run): Likewise.
8007         (SymbolTest.run): Likewise.
8008         (TypeTest.run): Likewise.
8009         (TagTest.run): Likewise.
8010         (FunctionTest.run): Likewise.
8011         (VariableTest.run): Likewise.
8012         (MacroFunctionTest.run): Likewise.
8013         (MacroStrTest.run): Likewise.
8014         (HeaderTests.__init__): Set self.num_tests.
8015         (HeaderTests.handle_test_line): Set test.num.  Increment
8016         self.num_tests.
8018 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8020         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
8021         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
8022         SEEK_SET.
8024 2018-11-19  Mao Han  <han_mao@c-sky.com>
8026         * scripts/config.guess: Update to version 2018-08-29.
8027         * scripts/config.sub: Update to version 2018-08-29.
8029 2018-11-19  Florian Weimer  <fweimer@redhat.com>
8031         support: Print timestamps in timeout handler.
8032         * support/support_test_main.c (print_timestamp): New function.
8033         (signal_handler): Use it to print the termination time and the
8034         time of the last write to standard output.
8036 2018-11-16  Zack Weinberg  <zackw@panix.com>
8037             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8039         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
8040         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
8041         argument.
8042         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
8043         and add flags argument.  Check flags instead of __ldbl_is_dbl when
8044         deciding whether to set is_long_double.
8045         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
8046         passing zero for flags argument.
8047         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
8049         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8050         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
8051         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
8052         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
8053         variable names.  Remove libc_hidden_def/libc_hidden_proto from
8054         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
8055         longer called from within the library.
8056         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
8057         for __nldbl___vstrfmon_l, declare it explicitly.
8059         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
8061 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8063         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
8064         macros
8065         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
8066         F_SETLK64, F_SETLKW64, respectively.
8067         * sysdeps/mach/hurd/f_setlk.c: New file.
8068         * sysdeps/mach/hurd/f_setlk.h: New file.
8069         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
8070         f_setlk.
8071         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
8072         (__libc_fcntl): Move non-flock operations to...
8073         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
8074         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
8076 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8078         mktime: DEBUG_MKTIME cleanup
8079         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
8080         And it’s no longer needed now that glibc and Gnulib both have
8081         their own testing mechanisms for mktime.
8082         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
8084         mktime: fix non-EOVERFLOW errno handling
8085         [BZ#23789]
8086         mktime was not properly reporting failures when the underlying
8087         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
8088         them like EOVERFLOW failures, and set errno to EOVERFLOW.
8089         The problem could happen on non-glibc platforms, with Gnulib.
8090         * time/mktime.c (guess_time_tm): Remove, replacing with ...
8091         (tm_diff): ... this simpler function, which does not change errno.
8092         All callers changed to deal with errno themselves.
8093         (ranged_convert, __mktime_internal): Return failure immediately if
8094         the underlying function reports any failure other than EOVERFLOW.
8095         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
8096         gap code fails.
8098         mktime: fix bug with Y2038 DST transition
8099         [BZ#23789]
8100         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
8101         mishandle a DST transition that jumps over the Y2038 boundary.
8102         No such DST transitions are known so this is only a theoretical
8103         bug, but we might as well do things right.
8105         mktime: make more room for overflow
8106         [BZ#23789]
8107         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
8108         This is so that we can add tm_diff results to a previous guess,
8109         which will be useful in a later patch.
8111         mktime: simplify offset guess
8112         [BZ#23789]
8113         * time/mktime.c (__mktime_internal): Omit excess precision.
8115         mktime: new test for mktime failure
8116         [BZ#23789]
8117         Based on a test suggested by Albert Aribaud in:
8118         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
8119         * time/Makefile (tests): Add bug-mktime4.
8120         * time/bug-mktime4.c: New file.
8122         mktime: fix EOVERFLOW bug
8123         [BZ#23789]
8124         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
8125         Include libc-config.h, not config.h, for __set_errno.
8126         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
8128 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8130         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
8131         __attribute_copy__ to copy attributes from name. Drop static qualifier
8132         to avoid warnings about leaf attribute not having effect on static
8133         functions.
8135 2018-11-13  Florian Weimer  <fweimer@redhat.com>
8137         * malloc/malloc.c (fastbin_push_entry): New function.
8138         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
8139         (REMOVE_FB): Remove macro.
8140         (_int_malloc): Use fastbin_pop_entry and reindent.
8141         (_int_free): Use fastbin_push_entry.
8142         (malloc_consolidate): Use atomic_exchange_acquire.
8144 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
8146         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
8147         alias attribute, not with strong_alias.
8149         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
8150         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
8151         with additional parameter thread.
8152         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
8153         in terms of __hidden_ver2.
8154         (hidden_tls_def): New macro.
8155         (libc_hidden_tls_def): Likewise.
8156         (rtld_hidden_tls_def): Likewise.
8157         (libm_hidden_tls_def): Likewise.
8158         (libmvec_hidden_tls_def): Likewise.
8159         (libresolv_hidden_tls_def): Likewise.
8160         (librt_hidden_tls_def): Likewise.
8161         (libdl_hidden_tls_def): Likewise.
8162         (libnss_files_hidden_tls_def): Likewise.
8163         (libnsl_hidden_tls_def): Likewise.
8164         (libnss_nisplus_hidden_tls_def): Likewise.
8165         (libutil_hidden_tls_def): Likewise.
8166         (libutil_hidden_tls_def): Likweise.
8167         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
8168         libc_hidden_tls_def.
8169         (__sim_disabled_exceptions_thread): Likewise.
8170         (__sim_round_mode_thread): Likewise.
8172         * sysdeps/sparc/sparc-ifunc.h [SHARED]
8173         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
8174         copy attributes from name.
8176 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
8178         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
8179         Use __attribute_copy__ to copy attributes from name.
8181         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
8182         with __hidden_ver1 call.
8183         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
8184         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
8185         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
8186         (__cosf): Do not declare here.
8187         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
8188         (__sincosf): Do not declare here.
8189         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
8190         (__sinf): Do not declare here.
8192         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
8193         (__BIG_ENDIAN): Likewise.
8194         (__BYTE_ORDER): Likewise.
8195         (strong_alias): Likewise.
8196         (_strong_alias): Likewise.
8198 2018-11-12  Florian Weimer  <fweimer@redhat.com>
8200         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
8201         function.  Move after the definition of in_smallbin_range.  Do not
8202         use __builtin_expect for paths that lead to a noreturn function.
8203         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
8204         because it is unclear whether this is in fact an unlikely
8205         condition.
8206         (_int_malloc, _int_free): Adjust.
8207         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
8208         variables.
8209         * malloc/arena.c (heap_trim): Likewise.
8211 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8213         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
8214         it, free it if needed.
8215         (reauthenticate): Test and use ccwdir.
8216         (child_init_port): In non-resetids case, test and use ccwdir.
8217         (child_chdir): New nested function to set ccwdir.
8218         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
8219         * hurd/hurd/port.h (_hurd_port_move): New function.
8220         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
8221         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
8222         * hurd/Versions (_hurd_port_move): Export function.
8223         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
8224         symbol.
8225         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
8226         of dtablesize for allocating dtable_cloexec.
8228 2018-11-09  Martin Sebor  <msebor@redhat.com>
8230         * include/libc-symbols.h (__attribute_copy__): Define macro unless
8231         it's already defined.
8232         (_strong_alias): Use __attribute_copy__.
8233         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
8234         * misc/sys/cdefs.h (__attribute_copy__): New macro.
8235         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
8236         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
8237         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
8238         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
8239         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
8240         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
8241         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
8242         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
8243         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
8244         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
8245         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
8246         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
8247         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
8248         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
8249         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
8250         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
8251         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
8253 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8255         * misc/tst-efgcvt.c: Include support/check.h and
8256         support/test-driver.c.  Do not include test-skeleton.c.
8257         (error_count): Remove.
8258         (output_error): Replace increments to error_count with calls to
8259         support_record_failure.
8260         (output_r_error): Likewise.
8261         (special): Likewise.
8262         (do_test): Unconditionally return zero.
8263         (TEST_FUNCTION): Remove.
8265 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
8267         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
8268         not $(@D)/scratch.
8269         ($(linknamespace-header-tests)): Likewise.
8271         * conform/conformtest.py: New file.
8272         * conform/conformtest.pl: Remove.
8273         * conform/GlibcConform.pm: Likewise.
8274         * conform/glibcconform.py (KEYWORDS_C90): New constant.
8275         (KEYWORDS_C99): Likewise.
8276         (KEYWORDS): Likewise.
8277         * conform/Makefile ($(conformtest-header-tests)): Use
8278         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
8279         option.  Use --header instead of --headers.
8280         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
8281         function entries.
8282         * conform/data/spawn.h-data: Likewise.
8283         * conform/data/fcntl.h-data (openat): Add space after function
8284         name.
8285         * conform/data/wchar.h-data (wcscasecmp): Likewise.
8286         (wcscasecmp_l): Likewise.
8287         * conform/data/termios.h-data (c_cc): Add space after element
8288         name.
8290 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8292         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
8293         instead of manually comparing and reporting mismatching strings.
8294         * misc/tst-ldbl-error.c (do_one_test): Likewise.
8295         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
8297 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
8299         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
8300         __ASSUME_SOCKETCALL.
8301         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8302         (__ASSUME_SOCKETCALL): Remove.
8303         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8304         (__ASSUME_SOCKETCALL): Likewise.
8305         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8306         (__ASSUME_SOCKETCALL): Likewise.
8307         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8308         (__ASSUME_SOCKETCALL): Likewise.
8309         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8310         (__ASSUME_SOCKETCALL): Likewise.
8311         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8312         (__ASSUME_SOCKETCALL): Likewise.
8313         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8314         (__ASSUME_SOCKETCALL): Likewise.
8316 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
8318         [BZ #23509]
8319         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8320         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8321         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8322         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8323         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
8324         lc_unknown.
8326 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
8328         [BZ #17630]
8329         * resolv/tst-resolv-network.c: Add test for getnetbyname.
8331 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
8333         [BZ #23867]
8334         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8335         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8336         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8337         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8339 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8341         * support/support_test_compare_string.c
8342         (support_test_compare_string): Fix printf format.
8344 2018-11-07  Florian Weimer  <fweimer@redhat.com>
8346         Implement TEST_COMPARE_STRING.
8347         * support/check.h (TEST_COMPARE_STRING): Define.
8348         (support_test_compare_string): Declare.
8349         * support/Makefile (libsupport-routines): Add
8350         support_test_compare_string.
8351         (tests): Add tst-test_compare_string.
8352         * support/support_test_compare_string.c: New file.
8353         * support/tst-test_compare_string.c: Likewise.
8355 2018-11-07  Andreas Schwab  <schwab@suse.de>
8357         [BZ #23864]
8358         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8359         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8360         Undef.
8362 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
8364         [BZ #23862]
8365         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8366         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8367         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8368         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8369         Likewise.
8371 2018-11-06  Florian Weimer  <fweimer@redhat.com>
8373         [BZ #17405]
8374         * posix/Makefile (routines): Add spawn_faction_addchdir.
8375         (tests): Add tst-spawn-chdir.
8376         * posix/Versions (GLIBC_2.29): Add
8377         posix_spawn_file_actions_addchdir_np.
8378         * posix/spawn_faction_addchdir.c: New file.
8379         * posix/spawn_faction_destroy.c
8380         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8381         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8382         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8383         chdir_action.
8384         * posix/tst-spawn-chdir.c: New file.
8385         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8386         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8387         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8388         posix_spawn_file_actions_addchdir_np.
8389         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8390         Likewise.
8391         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8392         Likewise.
8393         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8394         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8395         Likewise.
8396         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8397         Likewise.
8398         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8399         Likewise.
8400         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8401         Likewise.
8402         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8403         Likewise.
8404         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8405         Likewise.
8406         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8407         (GLIBC_2.29): Likewise.
8408         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8409         (GLIBC_2.29): Likewise.
8410         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8411         (GLIBC_2.29): Likewise.
8412         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8413         (GLIBC_2.29): Likewise.
8414         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8415         Likewise.
8416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8417         (GLIBC_2.29): Likewise.
8418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8419         (GLIBC_2.29): Likewise.
8420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8421         (GLIBC_2.29): Likewise.
8422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8423         (GLIBC_2.29): Likewise.
8424         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8425         Likewise.
8426         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8427         Likewise.
8428         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8429         Likewise.
8430         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8431         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8432         Likewise.
8433         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8434         Likewise.
8435         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8436         Likewise.
8437         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8438         Likewise.
8440 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8442         * misc/Makefile (tests): Add tst-ldbl-error.
8443         * misc/tst-ldbl-error.c: New file.
8445 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8447         * misc/Makefile (tests): Add tst-ldbl-warn.
8448         * misc/tst-ldbl-warn.c: New file.
8450 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8452         * argp/Makefile (tests): Add tst-ldbl-argp.
8453         * argp/tst-ldbl-argp.c: New file.
8455 2018-11-05  Arjun Shankar  <arjun@redhat.com>
8457         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8458         __gconv_path_elem and call __gconv_get_path unconditionally.
8460 2018-11-05  Andreas Schwab  <schwab@suse.de>
8462         [BZ #22927]
8463         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8464         creating the first helper thread failed.
8466 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8468         * sysdeps/mach/hurd/msync.c: New file.
8470 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8472         * support/shell-container.c (copy_func): Call
8473         support_copy_file_range instead of copy_file_range to support
8474         cross-device copies.
8476 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8478         * support/test-container.c: Include <libc-pointer-arith.h> for
8479         ALIGN_UP.
8481 2018-11-01  Zong Li  <zong@andestech.com>
8483         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8484         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8485         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8486         (__FP_FRAC_SET_8): Add implementation for RV32 use.
8488         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8489         variable to avoid overlap arguments.
8491 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
8493         * posix/bug-regex22.c (main): Use puts with distinct error
8494         messages for unexpected success of re_compile_pattern, not printf
8495         with NULL argument to %s.
8497         * stdio-common/bug22.c: Include <libc-diag.h>.
8498         (do_test): Disable -Wformat-overflow= warnings around fprintf
8499         calls outputting more than INT_MAX characters.
8500         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8501         around printf call with NULL %s argument.
8503         [BZ #23848]
8504         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8505         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8506         Undefine.
8507         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8508         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8509         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8510         (__ASSUME_SENDTO_SYSCALL): Likewise.
8511         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8512         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8513         [!__arch64__].
8514         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8515         (__ASSUME_CONNECT_SYSCALL): Likewise.
8516         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8517         (__ASSUME_RECVFROM_SYSCALL): Likewise.
8518         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8519         Define.
8520         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8521         Likewise.
8522         [__LINUX_KERNEL_VERSION >= 0x040400]
8523         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8524         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8525         Remove.
8526         (listen): Likewise.
8527         (setsockopt): Likewise.
8529 2018-11-01  Fredrik Noring  <noring@nocrew.org>
8531         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8532         with the ISA override.
8534 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
8536         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8537         #endif.
8539 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8541         * manual/errno.texi (EIEIO): Document how translators should
8542         translate the error message.
8543         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
8544         printing trailing whitespaces refused by git.
8545         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8546         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8547         * hurd/Makefile (user-interfaces): Add pci.
8549 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
8551         * conform/linknamespace.py: New file.
8552         * conform/linknamespace.pl: Remove file.
8553         * conform/Makefile ($(linknamespace-header-tests)): Use
8554         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
8555         option.
8557 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8559         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8560         memory leaks.
8562 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8564         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8566 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8568         * stdlib/tst-strtod-overflow.c (do_test): Switch to
8569         support_blob_repeat.
8571 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8573         Avoid spurious test failures in stdlib/test-bz22786.
8574         * support/Makefile (libsupport-routines): Add blob_repeat.
8575         (tests): Add tst-support_blob_repeat.
8576         * support/blob_repeat.h: New file.
8577         * support/blob_repeat.c: Likewise.
8578         * support/tst-support_blob_repeat.c: Likewise.
8579         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8580         support_blob_repeat_allocate.
8582 2018-10-30  Andreas Schwab  <schwab@suse.de>
8584         [BZ #23125]
8585         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8586         Don't use tail call.
8587         * elf/tst-unwind-main.c: New file.
8588         * elf/Makefile (tests): Add tst-unwind-main.
8589         (CFLAGS-tst-unwind-main.c): Define.
8591 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
8593         [BZ #23791]
8594         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8595         n_cs_precedes to 0.
8596         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8598 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
8600         * conform/glibcconform.py: Do not import shutil.
8601         (list_exported_functions): Use tempfile.TemporaryDirectory instead
8602         of mkdtemp.
8604         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
8605         critic_missing for versions before 3.4.
8606         * configure: Regenerated.
8607         * manual/install.texi (Tools for Compilation): Document
8608         requirement for Python to build glibc.
8609         * INSTALL: Regenerated.
8610         * Rules [PYTHON]: Make code unconditional.
8611         * benchtests/Makefile [PYTHON]: Likewise.
8612         * conform/Makefile [PYTHON]: Likewise.
8613         * manual/Makefile [PYTHON]: Likewise.
8614         * math/Makefile [PYTHON]: Likewise.
8616 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8618         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8619         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8620         answer to interrupt_operation, return EIEIO instead of EINTR.
8621         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8622         _hurd_intr_rpc_msg_about_to global point to start of controlled
8623         assembly snippet. Make it check canceled flag.
8624         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8625         the _hurd_intr_rpc_msg_about_to point.
8626         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8627         issue, remove cancel flag check.
8629 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
8631         * scripts/build-many-glibcs.py: Remove compatibility for missing
8632         os.cpu_count and re.fullmatch.
8634 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8636         [BZ #23822]
8637         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8638         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8639         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8641 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8643         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8644         macro.
8646 2018-10-25  Florian Weimer  <fweimer@redhat.com>
8648         [BZ #23562]
8649         [BZ #23821]
8650         XFAIL siginfo_t si_band conform test on sparc64.
8651         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8652         (__SI_BAND_TYPE): Only override long int default type on sparc64.
8653         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8654         (conformtest-xfail-conds): Add sparc64-linux.
8655         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8656         sparc64.
8657         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8659 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8661         * elf/elf.h (NT_MIPS_DSP): New macro.
8662         (NT_MIPS_FP_MODE): Likewise.
8664 2018-10-25  Zong Li  <zong@andestech.com>
8666         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8667         name by adding the file extension (.so).
8669 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8671         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8672         (test-xfail-ISO11/threads.h/linknamespace,
8673         test-xfail-ISO11/threads.h/conform): Add.
8675 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
8677         * math/gen-libm-test.py: Import os.
8678         (ALL_FLOATS_MANUAL): New constant.
8679         (ALL_FLOATS_SUFFIX): Likewise.
8680         (Ulps.all_functions): New function.
8681         (real_all_ulps): Likewise.
8682         (generate_err_table_sub): Likewise.
8683         (generate_err_table): Likewise.
8684         (main): Handle -s and -m options.
8685         * manual/libm-err-tab.pl: Remove.
8686         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8687         instead of libm-err-tab.pl.
8688         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8689         != no].
8690         * manual/install.texi (Tools for Compilation): Document
8691         requirement for Python to build manual.
8692         * INSTALL: Regenerated.
8694 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8696         * bits/time64.h: New file.
8697         * include/time.h: Replace internal_time_t with __time64_t.
8698         * posix/bits/types (__time64_t): Add.
8699         * stdlib/Makefile: Add bits/time64.h to includes.
8700         * time/tzfile.c: Replace internal_time_t with __time64_t.
8702 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8704         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8705         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8706         __posix_spawn_file_actions_init, __posix_spawnattr_init,
8707         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8708         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8709         prototype.
8710         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8711         * posix/spawn_faction_addclose.c
8712         (__posix_spawn_file_actions_addclose): Add hidden definition.
8713         * posix/spawn_faction_adddup2.c
8714         (__posix_spawn_file_actions_adddup2): Likewise.
8715         * posix/spawn_faction_destroy.c
8716         (__posix_spawn_file_actions_destroy): Likewise.
8717         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8718         Likewise.
8719         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8720         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8721         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8722         Likewise.
8723         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8724         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8725         Likewise.
8727 2018-10-24  Andreas Schwab  <schwab@suse.de>
8729         [BZ #18093]
8730         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8731         format cache.
8732         * elf/cache.c (print_cache): Likewise.
8734 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8736         * bits/timesize.h: New file.
8737         * stdlib/Makefile (headers): Add bits/timesize.h.
8738         * sysdeps/unix/sysv/linux/bits/msq-pad.h
8739         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8740         * sysdeps/unix/sysv/linux/bits/sem-pad.h
8741         (__SEM_PAD_AFTER_TIME): Likewise.
8742         * sysdeps/unix/sysv/linux/bits/shm-pad.h
8743         (__SHM_PAD_AFTER_TIME): Likewise.
8744         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8745         (__MSQ_PAD_BEFORE_TIME): Likewise.
8746         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8747         (__SEM_PAD_BEFORE_TIME): Likewise.
8748         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8749         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8750         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8751         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8752         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8753         (__MSQ_PAD_BEFORE_TIME): Likewise.
8754         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8755         (__SEM_PAD_BEFORE_TIME): Likewise.
8756         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8757         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8758         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8759         (__MSQ_PAD_BEFORE_TIME): Likewise.
8760         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8761         (__SEM_PAD_BEFORE_TIME): Likewise.
8762         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8763         (__SHM_PAD_BEFORE_TIME): Likewise.
8764         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8765         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8766         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8768 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
8770         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8771         USE_RDTSCP is defined.
8772         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8773         USE_RDTSCP is defined.
8775 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8777         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8778         defined.
8780         [BZ #23709]
8781         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8782         independently of other flags.
8784 2018-10-23  Florian Weimer  <fweimer@redhat.com>
8786         * time/tst-mktime2.c (N_STRINGS): Remove.
8787         (set_timezone): New function.
8788         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
8789         (mktime_test1): Report localtime failure and check errno value.
8790         Use TEST_COMPARE.
8791         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8792         (do_test): Remove alarm call. Use set_timezone and array_length.
8794 2018-10-23  Andreas Schwab  <schwab@suse.de>
8796         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8797         (__start_context): Use END instead of PSEUDO_END.
8799 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
8801         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8802         version to 4.19.
8804         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8805         version to 4.19.
8807         [BZ #23793]
8808         * wcsmbs/c32rtomb.c: New file.
8809         * wcsmbs/mbrtoc32.c: Likewise.
8810         * wcsmbs/tst-c32-state.c: Likewise.
8811         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8812         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8813         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8814         (tests): Add tst-c32-state.
8815         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8816         $(gen-locales).
8818 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8820         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8821         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8823 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
8825         [BZ #23794]
8826         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8827         pair and return 0 in that case, and use saved character to
8828         interpret following character.
8829         * wcsmbs/tst-c16-surrogate.c: New file.
8830         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8831         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8832         Depend on $(gen-locales)
8834 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
8836         [BZ #23562]
8837         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8838         (struct siginfo_t): Use correct type for si_band.
8840 2018-10-19  Florian Weimer  <fweimer@redhat.com>
8842         [BZ #23689]
8843         * resource/bits/types/struct_rusage.h (struct rusage): Update
8844         comment on struct.  Remove extraneous field comment.
8846 2018-10-18  David S. Miller  <davem@davemloft.net>
8848         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8849         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8850         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8851         sysdep_routines in subdir elf.
8852         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8853         version for __vdso_clock_gettime.
8854         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8855         Define.
8856         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8857         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8859         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8861 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8863         * sysdeps/i386/init-arch.h: Removed.
8864         * sysdeps/i386/i586/init-arch.h: Likewise.
8865         * sysdeps/i386/i686/init-arch.h: Likewise.
8866         * sysdeps/i386/i686/hp-timing.h: Likewise.
8867         * sysdeps/x86_64/hp-timing.h: Likewise.
8868         * sysdeps/i386/isa.h: New file.
8869         * sysdeps/i386/i586/isa.h: Likewise.
8870         * sysdeps/i386/i686/isa.h: Likewise.
8871         * sysdeps/x86_64/isa.h: Likewise.
8872         * sysdeps/x86/hp-timing.h: New file.
8873         * sysdeps/x86/init-arch.h: Include <isa.h>.
8875 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8877         * math/libm-test-pow.inc (pow_test_data): Do not allow
8878         divide-by-zero exception for pow(+/- 0, -Inf).
8880 2018-10-17  Zack Weinberg  <zackw@panix.com>
8882         * manual/job.texi (Job Control is Optional): Remove node, as
8883         job control has not been optional in quite some time.
8884         (Job Control): Mention briefly that systems older than
8885         POSIX.1-2001 might not support job control.
8886         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8887         defined on systems conforming to POSIX.1-2001.
8889 2018-10-17  Arjun Shankar  <arjun@redhat.com>
8891         [BZ #22062]
8892         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8893         indentation.
8894         * (__gconv_read_conf): Mark function static.
8895         * (once): New static variable.
8896         * (__gconv_load_conf): New function.
8897         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8898         * iconv/gconv_db.c (once): Remove static variable.
8899         * (__gconv_compare_alias): Use __gconv_load_conf instead of
8900         __gconv_read_conf.
8901         * (__gconv_find_transform): Likewise.
8902         * iconv/tst-iconv-mt.c: New test.
8903         * iconv/Makefile: Add tst-iconv_mt.
8905 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8907         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8908         bits/shm-pad.h.
8909         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8910         (shmatt_t): Define as __syscall_ulong_t.
8911         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8912         and [__SHM_PAD_AFTER_TIME].
8913         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8914         Define shm_segsz and associated padding based on
8915         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8916         Use __syscall_ulong_t instead of unsigned long int.
8917         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8918         unsigned long int.
8919         [__USE_MISC] (struct shm_info): Likewise.
8920         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8921         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8922         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8923         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8924         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8925         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8926         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8927         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8928         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8929         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8930         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8933         bits/shmlba.h.
8934         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8935         (SHMLBA): Remove macro.
8936         (__getpagesize): Remove function declaration.
8937         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8938         <bits/shmlba.h>.
8939         (SHMLBA): Remove macro.
8940         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8941         <bits/shmlba.h>.
8942         (SHMLBA): Remove macro.
8943         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8944         <bits/shmlba.h>.
8945         (SHMLBA): Remove macro.
8946         (__getpagesize): Remove function declaration.
8947         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8948         <bits/shmlba.h>.
8949         (SHMLBA): Remove macro.
8950         (__getshmlba): Remove function declaration.
8951         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8952         (SHMLBA): Remove macro.
8953         (__getpagesize): Remove function declaration.
8954         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8955         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8956         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8957         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8958         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8959         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8960         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8961         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8962         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8963         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8965 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
8967         [BZ #23275]
8968         * nptl/tst-mutex10.c: New File.
8969         * nptl/Makefile (tests): Add tst-mutex10.
8970         (tst-mutex10-ENV): New variable.
8971         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8972         Ensure that elision path is used if elision is available.
8973         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8974         Likewise.
8975         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8976         Likewise.
8977         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8978         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8979         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8980         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8981         Likewise.
8982         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8983         (__pthread_mutex_cond_lock_adjust): Likewise.
8984         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8985         Likewise.
8986         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8987         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8988         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8989         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8990         Add comments.
8991         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8992         Use atomic_load_relaxed and atomic_store_relaxed.
8993         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8994         Use atomic_store_relaxed.
8996 2018-10-17  Andreas Schwab  <schwab@suse.de>
8998         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8999         * crypt/badsalttest.c (TIMEOUT): Likewise.
9000         * crypt/sha256c-test.c (TIMEOUT): Likewise.
9001         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
9002         * io/test-lfs.c (TIMEOUT): Likewise.
9003         * libio/tst-atime.c (TIMEOUT): Likewise.
9004         * localedata/tst-leaks.c (TIMEOUT): Likewise.
9005         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
9006         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
9007         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
9008         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
9009         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
9010         * nptl/tst-cond11.c (TIMEOUT): Likewise.
9011         * nptl/tst-cond14.c (TIMEOUT): Likewise.
9012         * nptl/tst-cond15.c (TIMEOUT): Likewise.
9013         * nptl/tst-cond24.c (TIMEOUT): Likewise.
9014         * nptl/tst-cond25.c (TIMEOUT): Likewise.
9015         * nptl/tst-kill2.c (TIMEOUT): Likewise.
9016         * nptl/tst-kill3.c (TIMEOUT): Likewise.
9017         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
9018         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
9019         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
9020         * nptl/tst-once2.c (TIMEOUT): Likewise.
9021         * nptl/tst-once3.c (TIMEOUT): Likewise.
9022         * nptl/tst-once4.c (TIMEOUT): Likewise.
9023         * nptl/tst-robust8.c (TIMEOUT): Likewise.
9024         * nptl/tst-robust9.c (TIMEOUT): Likewise.
9025         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
9026         * nptl/tst-sem14.c (TIMEOUT): Likewise.
9027         * nptl/tst-sem6.c (TIMEOUT): Likewise.
9028         * nptl/tst-signal3.c (TIMEOUT): Likewise.
9029         * nptl/tst-spin4.c (TIMEOUT): Likewise.
9030         * nptl/tst-tls3.c (TIMEOUT): Likewise.
9031         * nptl/tst-tls4.c (TIMEOUT): Likewise.
9032         * posix/tst-chmod.c (TIMEOUT): Likewise.
9033         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
9034         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
9035         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
9036         * posix/tst-regex2.c (TIMEOUT): Likewise.
9037         * posix/tst-waitid.c (TIMEOUT): Likewise.
9038         * rt/tst-aio.c (TIMEOUT): Likewise.
9039         * rt/tst-aio10.c (TIMEOUT): Likewise.
9040         * rt/tst-aio4.c (TIMEOUT): Likewise.
9041         * rt/tst-aio5.c (TIMEOUT): Likewise.
9042         * rt/tst-aio6.c (TIMEOUT): Likewise.
9043         * rt/tst-aio64.c (TIMEOUT): Likewise.
9044         * rt/tst-aio7.c (TIMEOUT): Likewise.
9045         * rt/tst-aio9.c (TIMEOUT): Likewise.
9046         * rt/tst-clock.c (TIMEOUT): Likewise.
9047         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
9048         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
9049         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
9050         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
9051         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
9052         * rt/tst-timer4.c (TIMEOUT): Likewise.
9053         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
9054         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
9055         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
9056         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
9057         * time/tst-ftime.c (TIMEOUT): Likewise.
9058         * timezone/tst-tzset.c (TIMEOUT): Likewise.
9060 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
9062         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
9063         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
9064         for thunderX2.
9066 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
9068         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9069         bits/sem-pad.h.
9070         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
9071         instead of <bits/wordsize.h>.
9072         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
9073         and [__SEM_PAD_AFTER_TIME].
9074         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
9075         __syscall_ulong_t instead of unsigned long int.
9076         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
9077         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
9078         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
9079         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
9080         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
9081         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
9082         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
9083         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
9084         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9085         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9086         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9088 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9090         regex: simplify by using intprops.h
9091         [BZ#23744]
9092         * posix/regex_internal.h [_LIBC]: Include intprops.h.
9093         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
9094         intprops.h defines them.
9096         regex: __builtin_expect → __glibc_unlikely
9097         [BZ#23744]
9098         This refactoring was prompted by a problem when the regex code is
9099         used as part of Gnulib and when the builder’s compiler does not grok
9100         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
9101         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
9102         Although this refactoring does not fix the problem directly,
9103         we might as well have Gawk use the now-preferred glibc style for when
9104         __builtin_expect is unavailable.
9105         * posix/regex_internal.h (BE): Remove.
9106         All uses replaced by __glibc_unlikely or __glibc_likely.
9108 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
9110         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9111         bits/msq-pad.h.
9112         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
9113         instead of <bits/wordsize.h>.
9114         (msgqnum_t): Define as __syscall_ulong_t.
9115         (msglen_t): Likewise.
9116         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
9117         and [__MSQ_PAD_AFTER_TIME].
9118         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
9119         __syscall_ulong_t instead of unsigned long int.
9120         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
9121         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
9122         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
9123         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
9124         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
9125         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
9126         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
9127         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
9128         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9129         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9130         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
9132 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
9134         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
9135         (struct shmid_ds): Condition padding after time fields on
9136         [__WORDSIZE == 32].
9137         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
9138         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
9139         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9141         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
9142         (struct semid_ds): Condition padding after time fields on
9143         [__WORDSIZE == 32].
9144         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
9145         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
9146         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
9147         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9149         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
9150         (struct msqid_ds): Condition padding after time fields on
9151         [__WORDSIZE == 32].
9152         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
9153         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
9154         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
9155         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9157 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9159         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
9161 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9163         * libio/tst-readline.c (TIMEOUT): Define.
9165 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9167         mktime fix for Gnulib + coreutils
9168         [BZ#23745]
9169         This fix affects only Gnulib.  Problem discovered when
9170         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
9171         * time/mktime.c:
9172         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
9173         Do not define since it is not used.  Defining an unused static
9174         function prompts a warning from GCC when Coreutils is configured
9175         with --enable-gcc-warnings.
9177 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
9179         * benchtests/scripts/compare_bench.py (main): set float type on
9180         threshold argument.
9182 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
9184         [BZ #23740]
9185         * localedata/locales/kl_GL (mon): Update, the relative case.
9186         (alt_mon): Add, fill with month names in the nominative case.
9187         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
9188         (d_fmt): Set to "%b %d %Y".
9190 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
9192         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
9193         <bits/mman-linux.h>.
9194         (PROT_READ): Don't define here.
9195         (PROT_WRITE): Likewise.
9196         (PROT_EXEC): Likewise.
9197         (PROT_NONE): Likewise.
9198         (PROT_GROWSDOWN): Likewise.
9199         (PROT_GROWSUP): Likewise.
9200         (MAP_SHARED): Likewise.
9201         (MAP_PRIVATE): Likewise.
9202         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
9203         [__USE_MISC] (MAP_FILE): Likewise.
9204         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
9205         [__USE_MISC] (MAP_ANON): Likewise.
9206         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
9207         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
9208         (MCL_CURRENT): Likewise.
9209         (MCL_FUTURE): Likewise.
9210         (MCL_ONFAULT): Likewise.
9211         [__USE_MISC] (MADV_NORMAL): Likewise.
9212         [__USE_MISC] (MADV_RANDOM): Likewise.
9213         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
9214         [__USE_MISC] (MADV_WILLNEED): Likewise.
9215         [__USE_MISC] (MADV_DONTNEED): Likewise.
9216         [__USE_MISC] (MADV_FREE): Likewise.
9217         [__USE_MISC] (MADV_REMOVE): Likewise.
9218         [__USE_MISC] (MADV_DONTFORK): Likewise.
9219         [__USE_MISC] (MADV_DOFORK): Likewise.
9220         [__USE_MISC] (MADV_HWPOISON): Likewise.
9221         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
9222         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
9223         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
9224         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
9225         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
9226         (__MAP_ANONYMOUS): New macro.
9227         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
9228         <bits/mman-linux.h> inclusion.
9229         (MAP_FIXED): Likewise.
9230         (MS_SYNC): Likewise.
9231         (MS_ASYNC): Likewise.
9232         (MS_INVALIDATE): Likewise.
9233         [__USE_MISC] (MADV_MERGEABLE): Likewise.
9234         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
9235         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
9236         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
9237         [__USE_MISC] (MADV_DONTDUMP): Likewise.
9238         [__USE_MISC] (MADV_DODUMP): Likewise.
9239         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
9240         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
9242         [BZ #23735]
9243         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
9244         Define.
9245         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
9246         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
9247         Add test-nldbl-redirect.
9248         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
9249         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
9250         $(objpfx)libnldbl_nonshared.a.
9252 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
9254         * support/support.h (support_objdir_elf_ldso): New variable.
9255         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
9256         * support/Makefile (CFLAGS-support_paths.c): Add definition
9257         for OBJDIR_ELF_LDSO_PATH.
9258         * support/test-container.c (main): Search for the ld.so
9259         which is also used by the testsuite.
9261 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
9263         [BZ #20209]
9264         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
9265         should be "sap" rather than "sab".
9266         (day): Fix spelling of Sunday, should be "sapaat" rather than
9267         "sabaat".
9269 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
9271         * math/libm-test-fma.inc (fma_test_data): Add more tests.
9273 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
9275         [BZ #19444]
9276         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
9277         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
9278         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
9280 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9282         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
9284 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9286         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
9287         Add -mrtm.
9288         (CFLAGS-elision-unlock.c): Likewise.
9289         (CFLAGS-elision-timed.c): Likewise.
9290         (CFLAGS-elision-trylock.c): Likewise.
9291         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
9293 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9295         [BZ #21037]
9296         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
9297         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
9298         new fd_to_filename interface.
9299         * libio/freopen64.c (freopen64): Likewise.
9300         * libio/tst-memstream.h: New file.
9301         * libio/tst-memstream4.c: Likewise.
9302         * libio/tst-wmemstream4.c: Likewise.
9303         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
9304         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9305         and remove internal dynamic allocation.
9307 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
9309         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9310         (MREMAP_MAYMOVE): Do not define here.
9311         [__USE_GNU] (MREMAP_FIXED): Likewise.
9312         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9313         (MREMAP_MAYMOVE): Define here instead.
9314         [__USE_GNU] (MREMAP_FIXED): Likewise.
9315         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9316         (MREMAP_MAYMOVE): Remove.
9317         [__USE_GNU] (MREMAP_FIXED): Likewise.
9319 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
9321         * math/fromfp.h: Do not include <math_private.h>.
9322         * math/s_cacosh_template.c: Likewise.
9323         * math/s_casin_template.c: Likewise.
9324         * math/s_casinh_template.c: Likewise.
9325         * math/s_ccos_template.c: Likewise.
9326         * math/s_cproj_template.c: Likewise.
9327         * math/s_fdim_template.c: Likewise.
9328         * math/s_fmaxmag_template.c: Likewise.
9329         * math/s_fminmag_template.c: Likewise.
9330         * math/s_iseqsig_template.c: Likewise.
9331         * math/s_ldexp_template.c: Likewise.
9332         * math/s_nextdown_template.c: Likewise.
9333         * math/w_log1p_template.c: Likewise.
9334         * math/w_scalbln_template.c: Likewise.
9335         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9336         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9337         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9338         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9339         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9340         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9341         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9342         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9343         * sysdeps/i386/fpu/s_atanl.c: Likewise.
9344         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9345         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9346         * sysdeps/i386/fpu/s_fdim.c: Likewise.
9347         * sysdeps/i386/fpu/s_logbl.c: Likewise.
9348         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9349         * sysdeps/i386/fpu/s_significandl.c: Likewise.
9350         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9351         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9352         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9353         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9354         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9356         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9357         * sysdeps/ieee754/k_standardf.c: Likewise.
9358         * sysdeps/ieee754/k_standardl.c: Likewise.
9359         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9360         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9361         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9362         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9363         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9364         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9365         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9366         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9367         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9368         * sysdeps/ieee754/s_signgam.c: Likewise.
9369         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9370         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9371         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9372         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9373         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9374         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9375         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9376         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9377         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9378         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9379         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9380         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9381         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9382         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9383         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9384         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9385         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9386         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9387         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9388         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9389         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9390         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9391         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9392         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9393         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9394         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9395         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9396         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9397         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9398         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9399         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9400         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9401         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9402         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9403         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9404         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9405         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9406         <math_private.h>.
9407         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9409 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9411         [BZ #23716]
9412         * sysdeps/i386/dl-cet.c: Removed.
9413         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9414         prototype.
9415         (_dl_runtime_profile_shstk): Likewise.
9416         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9417         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9419 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9421         [BZ #23579]
9422         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9423         do_test_with_invalid_iov): New tests.
9424         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9425         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9426         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9427         errno is ENOSYS.
9428         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9429         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9430         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9432 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
9434         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9435         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9436         (MATH_REDIRECT_BINARY_ARGS): New macro.
9437         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9438         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9439         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9440         header inclusion.
9441         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9442         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9443         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9444         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9445         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9446         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9447         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9449         Likewise.
9450         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9451         Likewise.
9452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9454         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9455         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9457         Likewise.
9458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9459         Likewise.
9460         * sysdeps/generic/math_private_calls.h
9461         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9462         Do not declare and define as an inline function.
9463         * math/divtc3.c (__divtc3): Use copysign functions instead of
9464         __copysign variants.
9465         * math/multc3.c (__multc3): Likewise.
9466         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9467         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9468         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9469         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9470         Likewise.
9471         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9472         (__ieee754_yn): Likewise.
9473         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9474         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9475         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9476         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9477         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9478         (__sin): Likewise.
9479         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9480         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9481         Likewise.
9482         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9483         Likewise.
9484         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9485         Likewise.
9486         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9487         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9488         Likewise.
9489         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9490         (__ieee754_ynf): Likewise.
9491         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9492         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9493         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9494         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9495         Likewise.
9496         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9497         (__ieee754_ynl): Likewise.
9498         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9499         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9500         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9501         Likewise.
9502         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9503         (__ieee754_ynl): Likewise.
9504         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9505         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9506         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9507         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9508         Likewise.
9509         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9510         (__ieee754_ynl)
9511         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9512         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9513         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9514         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9515         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9517         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9518         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9519         using MATH_REDIRECT.
9520         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9521         header inclusion.
9522         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9523         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9524         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9525         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9526         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9527         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9528         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9533         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9534         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9535         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9536         (round): Redirect to __round.
9537         (__roundl): Call round instead of __round.
9538         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9539         Remove macro.
9540         [_ARCH_PWR5X] (__roundf): Likewise.
9541         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9542         functions instead of __round variants.
9543         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9544         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9545         Likewise.
9546         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9547         Likewise.
9548         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9549         Likewise.
9550         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9551         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9552         __lroundl.
9553         (__ieee754_expl): Call roundl instead of __roundl.
9555 2018-09-27  Andreas Schwab  <schwab@suse.de>
9557         [BZ #23717]
9558         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9559         (do_test): Make st1 static.
9561 2018-09-26  Andreas Schwab  <schwab@suse.de>
9563         [BZ #23707]
9564         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9565         * elf/Makefile (tests): Add tst-unwind-ctor.
9566         (modules-names): Add tst-unwind-ctor-lib.
9567         ($(objpfx)tst-unwind-ctor): Depend on
9568         $(objpfx)tst-unwind-ctor-lib.so.
9570 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
9572         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9573         file.  Most contents moved from ....
9574         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
9575         and include <bits/mman-map-flags-generic.h>.
9576         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9577         (sysdep_headers): Add bits/mman-map-flags-generic.h.
9578         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9579         <bits/mman-map-flags-generic.h>.
9580         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9581         macros defined in <bits/mman-map-flags-generic.h>.
9582         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9583         <bits/mman-map-flags-generic.h>.
9584         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9585         defined in <bits/mman-map-flags-generic.h>.
9587 2018-09-26  Andreas Schwab  <schwab@suse.de>
9589         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9590         output.
9592 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
9593             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9594             Fangrui Song  <maskray@google.com>
9596         [BZ #20480]
9597         * config.make.in (have-textrel_ifunc): New define.
9598         * configure.ac: Add check if linker supports textrel relocation with
9599         ifunc.
9600         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9601         tst-ifunc-textrel.
9602         (CFLAGS-tst-ifunc-textrel.c): New rule.
9603         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9604         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9605         * elf/tst-ifunc-textrel.c: New file.
9607 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
9609         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9610         <bits/procfs-prregset.h>.
9611         (prgregset_t): Define using __prgregset_t.
9612         (prfpregset_t): Define using __prfpregset_t.
9613         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9614         (sysdep_headers): Add bits/procfs-prregset.h.
9615         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9616         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9617         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9618         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9620         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9621         <bits/procfs-id.h> and <bits/procfs-extra.h>.
9622         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9623         pr_uid and pr_gid.
9624         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9625         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9626         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9627         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9628         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9629         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9630         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9631         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9632         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9633         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9634         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9635         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9636         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9637         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9638         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9639         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9640         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9641         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9642         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9643         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9644         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9645         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9646         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9647         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9649         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9650         AArch64 version.  Include <bits/procfs.h>.
9651         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9652         (sysdep_headers): Add bits/procfs.h.
9653         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9654         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9655         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9656         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9657         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9658         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9659         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9660         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9661         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9662         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9663         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9664         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9665         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9666         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9667         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9668         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9669         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9671 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9673         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9674         Use libsupport.
9676 2018-09-25  Arjun Shankar  <arjun@redhat.com>
9678         * iconv/gconv_int.h (__gconv_path_elem): Remove.
9679         (__gconv_max_path_elem_len): Likewise.
9680         (__gconv_nmodules): Likewise.
9681         (__gconv_get_path): Likewise.
9682         (path_elem): Move to ...
9683         * iconv/gconv_conf.c: ... here.
9684         (__gconv_get_path): Mark function static.
9685         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9686         * iconv/gconv_open.c: ... here.
9688 2018-09-24  Andreas Schwab  <schwab@suse.de>
9690         * scripts/haveversions.awk: New file.
9691         * Makerules ($(common-objpfx)Versions.def)
9692         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9693         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9694         Move rules ...
9695         * Makeconfig ($(common-objpfx)Versions.def)
9696         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9697         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9698         ... here.
9699         ($(common-objpfx)Versions.mk): New rule.  Include it.
9700         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9701         Emit error if build-obsolete-nsl = yes.
9702         * manual/install.texi (Configuring and compiling): Describe
9703         --enable-obsolete-nsl as unavaiable after version 2.28.
9704         * INSTALL: Regenerate.
9706 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9708         * NEWS: Add note about new TLE support on powerpc64le.
9709         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9710         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9711         __ununsed1.
9712         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9713         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9714         * sysdeps/powerpc/powerpc32/sysdep.h,
9715         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9716         ABORT_TRANSACTION): Remove macros.
9717         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9718         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9719         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9721         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9722         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9723         usage.
9724         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9726 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
9728         [BZ #10425]
9729         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9730         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9731         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9732         which is the same as in it_IT.
9733         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9734         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9736 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
9738         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9739         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9740         using MATH_REDIRECT.
9741         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9742         header inclusion.
9743         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9744         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9745         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9746         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9747         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9748         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9751         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9753         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9754         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9755         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9756         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9757         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9758         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9759         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9760         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9761         (ceil): Redirect to __ceil.
9762         (floor): Redirect to __floor.
9763         (trunc): Redirect to __trunc.
9764         (__truncl): Call trunc instead of __trunc.
9765         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9766         Remove macro.
9767         [_ARCH_PWR5X] (__truncf): Likewise.
9768         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9769         trunc functions instead of __trunc variants.
9770         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9771         Likewise.
9772         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9773         Likewise.
9774         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9775         Likewise.
9776         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9777         Likewise.
9779         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9780         [__i586__ || __pentium__].
9781         [__i486__]: Handle explicitly.
9782         (HAS_CPUID): Define to 1 if above macros are undefined.
9783         (HAS_I586): Likewise.
9784         (HAS_I686): Likewise.
9786 2018-09-20  Florian Weimer  <fweimer@redhat.com>
9788         * misc/tst-gethostid.c: New file.
9789         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9790         (tst-gethostid): Link with -ldl.
9792 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
9794         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9795         value from gethostbyname_r.
9797 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
9799         * stdlib/tst-setcontext9.c (f1): Rename to...
9800         (f1a): ... this.
9801         (f1b): New function implementing lower half of f1 in alternate stack.
9803 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9805         Fix mktime localtime offset confusion
9806         [BZ #23603]
9807         * include/time.h (__mktime_internal): The localtime offset is now
9808         of type long int instead of time_t.  This is the longstanding type
9809         in glibc, and it is more than enough to represent difference
9810         between localtime and gmtime even if it is 32 bits and time_t is
9811         64.  Changing it now will let us avoid an unnecessary change when
9812         time_t is widened to 64 bits on 32-bit platforms.
9813         * time/mktime-internal.h (mktime_offset_t): Now long int.
9815         Merge mktime, timegm from upstream Gnulib
9816         [BZ #23603][BZ #16346]
9817         This fixes some obscure problems with integer overflow.
9818         Although it looks scary, it is almost all a byte-for-byte copy
9819         from Gnulib, and the Gnulib code has been tested reasonably well.
9820         * include/intprops.h: New file, copied from Gnulib.
9821         * include/verify.h, time/mktime-internal.h:
9822         New tiny files, simplified from Gnulib.
9823         * time/mktime.c: Copy from Gnulib.  This has the following changes:
9824         Do not include config.h if DEBUG_MKTIME is nonzero.
9825         Include stdbool.h, intprops.h, verify.h.
9826         Include string.h only if needed.
9827         Include stdlib.h on MS-Windows.
9828         Include mktime-internal.h.
9829         (DEBUG_MKTIME): Default to 0, and simplify later uses.
9830         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9831         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9832         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9833         simplify later conditionals; default the others to zero.  Use
9834         these conditionals to express only the code needed on the current
9835         platform.  In uses of these conditionals, explicitly spell out how
9836         _LIBC affects things, so it’s easier to review from a glibc
9837         viewpoint.
9838         (WRAPV): Remove; no longer needed now that we have
9839         systematic overflow checking.
9840         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9841         compartmentalize tzset issues.  Move system-dependent tzsettish
9842         code here from mktime.
9843         (verify): Remove; now done by verify.h.  All uses changed.
9844         (long_int): Use a more-conservative definition, to avoid
9845         integer overflow.
9846         (SHR): Remove, replacing with ...
9847         (shr): New function, which means we needn’t worry about side
9848         effects in args, and conversion analysis is simpler.
9849         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9850         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9851         (time_t_avg, time_t_add_ok): Remove.
9852         (mktime_min, mktime_max): New constants.
9853         (leapyear, isdst_differ): Use bool for booleans.
9854         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9855         Use long_int, not time_t, for mktime differences.
9856         (long_int_avg): New function, replacing time_t_avg.
9857         INT_ADD_WRAPV replaces time_t_add_ok.
9858         (guess_time_tm): 6th arg is now long_int, not time_t const *.
9859         All uses changed.
9860         (convert_time): New function.
9861         (ranged_convert): Use it.
9862         (__mktime_internal): Last arg now points to mktime_offset_t, not
9863         time_t.  All uses changed.  This is a no-op on glibc, where
9864         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
9865         offset guess.  Directly check for integer overflow instead of
9866         using a heuristic that works only 99.9...% of the time.
9867         Access *OFFSET only once, to avoid an unlikely race if the
9868         compiler delays a load and if this cascades into a signed integer
9869         overflow.
9870         (mktime): Move tzsettish code to my_tzset, and move
9871         localtime_offset to within mktime so that it doesn’t
9872         need a separate ifdef.
9873         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9874         instead of localtime.
9875         * time/timegm.c: Copy from Gnulib.  This has the following changes:
9876         Include mktime-internal.h.
9877         [!_LIBC]: Include config.h and time.h.  Do not include
9878         timegm.h or time_r.h.  Make __mktime_internal a macro,
9879         and include mktime-internal.h to get its declaration.
9880         (timegm): Temporary is now mktime_offset_t, not time_t.
9881         This affects only Gnulib.
9883 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9885         [BZ #23637]
9886         * string/test-strstr.c (pr23637): New function.
9887         (test_main): Add tests with longer needles.
9888         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9889         * string/strstr.c (AVAILABLE): Likewise.
9891 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9893         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9895 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9897         * NEWS: Mention pow improvements.
9898         * math/Makefile (type-double-routines): Add e_pow_log_data.
9899         * sysdeps/generic/math_private.h (__exp1): Remove.
9900         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9901         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9902         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9903         contraction.
9904         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9905         (exp_inline): Remove.
9906         (__ieee754_exp): Only single double input is handled.
9907         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9908         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9909         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9910         (__pow_log_data): Define.
9911         * sysdeps/ieee754/dbl-64/upow.h: Remove.
9912         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9913         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9914         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9915         contraction.
9916         (CFLAGS-e_pow-fma4.c): Likewise.
9918 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9920         Simplify tzfile fstat failure code
9921         [BZ #21716]
9922         * time/tzfile.c (__tzfile_read): Simplify slightly.
9924         Fix tzfile low-memory assertion failure
9925         [BZ #21716]
9926         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9927         when registering time zone abbreviations.
9929 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
9931         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9932         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9933         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9934         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9935         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9936         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9937         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9938         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9939         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9941         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9942         __ceil.
9943         (__ceill): Call ceil instead of __ceil.
9944         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9945         __floor.
9946         (__floorl): Call floor instead of __floor.
9948 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
9950         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9951         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9952         using MATH_REDIRECT.
9953         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9954         header inclusion.
9955         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9956         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9957         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9958         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9959         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9960         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9961         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9962         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9967         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9968         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9969         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9970         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9971         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9972         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9973         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9974         Remove macro.
9975         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9976         functions instead of __ceil variants.
9977         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9978         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9979         Likewise.
9980         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9981         Likewise.
9982         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9983         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9984         Likewise.
9985         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9986         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9988         [BZ #21286]
9989         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9990         constant.
9991         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9992         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9993         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9994         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9995         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9996         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9997         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9998         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9999         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
10000         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
10001         (ILL_BADIADDR): Remove constant.
10002         (TRAP_BRANCH): Likewise.
10003         (TRAP_HWBKPT): Likewise.
10005 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
10007         [BZ #23656]
10008         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
10009         Remove [_MIPS_SIM = _ABIN32] conditional case.
10010         (struct elf_prpsinfo): Likewise.
10012         [BZ #23649]
10013         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
10014         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
10015         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
10016         Likewise.
10017         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
10018         elf_prpsinfo): Likewise.
10019         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
10020         elf_prpsinfo): Likewise.
10021         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
10022         Likewise.
10024         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10025         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
10026         using MATH_REDIRECT.
10027         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
10028         header inclusion.
10029         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
10030         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10031         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10032         * sysdeps/i386/fpu/s_rintl.c: Likewise.
10033         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10034         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10035         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
10036         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10037         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10038         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10039         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
10040         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
10041         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
10042         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
10043         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
10044         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10045         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10046         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
10047         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
10048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
10049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
10050         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
10051         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
10052         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10053         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10054         * sysdeps/x86_64/fpu/math_private.h: Remove file.
10055         * math/e_scalb.c (invalid_fn): Use rint functions instead of
10056         __rint variants.
10057         * math/e_scalbf.c (invalid_fn): Likewise.
10058         * math/e_scalbl.c (invalid_fn): Likewise.
10059         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10060         Likewise.
10061         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10062         Likewise.
10063         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
10064         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
10065         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10066         Likewise.
10067         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10068         Likewise.
10069         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10070         Likewise.
10071         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
10072         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
10074         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10075         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
10076         New macro.
10077         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10078         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
10079         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10080         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
10081         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10082         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
10083         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10084         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
10085         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10086         && !NO_MATH_REDIRECT] (floor): Likewise.
10087         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
10088         header inclusion.
10089         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
10090         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10091         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10092         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
10093         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10094         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10095         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10096         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
10097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
10098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
10099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
10100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
10101         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10102         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10103         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
10104         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
10105         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10106         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10107         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
10108         Remove macro.
10109         [_ARCH_PWR5X] (__floorf): Likewise.
10110         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
10111         inline function.
10112         [__SSE4_1__] (__floorf): Likewise.
10113         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
10114         instead of __floor variants.
10115         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
10116         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
10117         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
10118         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
10119         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
10120         * math/w_tgamma_compat.c (__tgamma): Likewise.
10121         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
10122         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
10123         * math/w_tgammal_compat.c (__tgammal): Likewise.
10124         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
10125         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10126         Likewise.
10127         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10128         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
10129         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10130         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10131         Likewise.
10132         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10133         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
10134         Likewise.
10135         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10136         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
10137         Likewise.
10138         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10139         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
10140         Likewise.
10141         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
10142         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
10143         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10144         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
10145         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10146         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10148 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
10150         * elf/Makefile (modules-names-tests): New variable.
10152 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10154         * NEWS: Mention log2 improvements.
10155         * math/Makefile (type-double-routines): Add e_log2_data.
10156         * sysdeps/i386/fpu/e_log2_data.c: New file.
10157         * sysdeps/ia64/fpu/e_log2_data.c: New file.
10158         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
10159         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
10160         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
10161         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
10162         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
10164 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10166         * NEWS: Mention log improvement.
10167         * math/Makefile (type-double-routines): Add e_log_data.
10168         * sysdeps/i386/fpu/e_log_data.c: New file.
10169         * sysdeps/ia64/fpu/e_log_data.c: New file.
10170         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
10171         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
10172         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
10173         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
10174         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
10175         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
10177 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
10178             Xuepeng Guo  <xuepeng.guo@intel.com>
10180         [BZ #23606]
10181         * sysdeps/i386/start.S: Include <sysdep.h>
10182         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
10183         enabled.  Add cfi_undefined (eip).
10185 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
10187         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
10188         (MOVQ): Likewise.
10189         (EXTRACT_WORDS64): Likewise.
10190         (INSERT_WORDS64): Likewise.
10191         (GET_FLOAT_WORD): Likewise.
10192         (SET_FLOAT_WORD): Likewise.
10194         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
10195         argument.
10196         (Config.build_gcc): Use --disable-libsanitizer for first GCC
10197         build, but not for second build if --full-gcc.  Use
10198         --enable-languages=all for second build if --full-gcc.
10199         (get_parser): Add --full-gcc option.
10200         (main): Update call to Context.
10202 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
10204         [BZ #10797]
10205         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
10206         Single Quotation Mark).
10207         (thousands_sep): Likewise.
10208         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
10209         * localedata/locales/it_IT (thousands_sep): Use ".".
10210         (grouping): Use "3;3".
10212 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
10214         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10215         x86_64 and i686 configs using --enable-obsolete-rpc
10216         --enable-obsolete-nsl.
10218 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
10220         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10222 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
10224         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
10225         Increment size of new_argv by one.
10227 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
10229         [BZ #17426]
10230         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
10231         * localedata/locales/ar_IN (d_fmt): Likewise.
10232         * localedata/locales/bhb_IN (d_fmt): Likewise.
10233         * localedata/locales/bho_IN (d_fmt): Likewise.
10234         * localedata/locales/bn_BD (d_fmt): Likewise.
10235         * localedata/locales/bn_IN (d_fmt): Likewise.
10236         * localedata/locales/doi_IN (d_fmt): Likewise.
10237         * localedata/locales/gu_IN (d_fmt): Likewise.
10238         * localedata/locales/hi_IN (d_fmt): Likewise.
10239         * localedata/locales/hne_IN (d_fmt): Likewise.
10240         * localedata/locales/kn_IN (d_fmt): Likewise.
10241         * localedata/locales/mag_IN (d_fmt): Likewise.
10242         * localedata/locales/mai_IN (d_fmt): Likewise.
10243         * localedata/locales/mjw_IN (d_fmt): Likewise.
10244         * localedata/locales/ml_IN (d_fmt): Likewise.
10245         * localedata/locales/mni_IN (d_fmt): Likewise.
10246         * localedata/locales/mr_IN (d_fmt): Likewise.
10247         * localedata/locales/pa_IN (d_fmt): Likewise.
10248         * localedata/locales/raj_IN (d_fmt): Likewise.
10249         * localedata/locales/sat_IN (d_fmt): Likewise.
10250         * localedata/locales/sd_IN (d_fmt): Likewise.
10251         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
10252         * localedata/locales/ta_IN (d_fmt): Likewise.
10253         * localedata/locales/ta_LK (d_fmt): Likewise.
10254         * localedata/locales/tcy_IN (d_fmt): Likewise.
10255         * localedata/locales/ur_IN (d_fmt): Likewise.
10257         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
10258         * localedata/locales/ks_IN (d_fmt): Likewise.
10259         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
10261         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
10262         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
10263         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
10264         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
10266 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10268         * NEWS: Mention exp and exp2 improvements.
10269         * math/Makefile (libm-support): Remove t_exp.
10270         (type-double-routines): Add math_err and e_exp_data.
10271         * sysdeps/aarch64/libm-test-ulps: Update.
10272         * sysdeps/arm/libm-test-ulps: Update.
10273         * sysdeps/i386/fpu/e_exp_data.c: New file.
10274         * sysdeps/i386/fpu/math_err.c: New file.
10275         * sysdeps/i386/fpu/t_exp.c: Remove.
10276         * sysdeps/ia64/fpu/e_exp_data.c: New file.
10277         * sysdeps/ia64/fpu/math_err.c: New file.
10278         * sysdeps/ia64/fpu/t_exp.c: Remove.
10279         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
10280         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
10281         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
10282         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
10283         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
10284         * sysdeps/ieee754/dbl-64/math_config.h: New file.
10285         * sysdeps/ieee754/dbl-64/math_err.c: New file.
10286         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
10287         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
10288         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
10289         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
10290         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
10291         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
10292         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
10293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10296 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
10298         * sysdeps/alpha/fpu/math_private.h: Remove.
10300         * sysdeps/generic/math_private.h
10301         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
10302         Move this inline function ....
10303         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
10304         * include/math.h [!_ISOMAC]: To here....
10306 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
10308         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10309         code ....
10310         [!FE_HAVE_ROUNDING_MODES]: And this code ....
10311         * include/fenv.h [!_ISOMAC]: ... to here.
10312         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10313         (feraiseexcept): Likewise.
10314         * math/fromfp.h: Do not include <fenv_private.h>.
10315         * math/s_cexp_template.c: Likewise.
10316         * math/s_csin_template.c: Likewise.
10317         * math/s_csinh_template.c: Likewise.
10318         * math/s_ctan_template.c: Likewise.
10319         * math/s_ctanh_template.c: Likewise.
10320         * math/s_iseqsig_template.c: Likewise.
10321         * math/w_acos_compat.c: Likewise.
10322         * math/w_acosf_compat.c: Likewise.
10323         * math/w_acosl_compat.c: Likewise.
10324         * math/w_asin_compat.c: Likewise.
10325         * math/w_asinf_compat.c: Likewise.
10326         * math/w_asinl_compat.c: Likewise.
10327         * math/w_j0_compat.c: Likewise.
10328         * math/w_j0f_compat.c: Likewise.
10329         * math/w_j0l_compat.c: Likewise.
10330         * math/w_j1_compat.c: Likewise.
10331         * math/w_j1f_compat.c: Likewise.
10332         * math/w_j1l_compat.c: Likewise.
10333         * math/w_jn_compat.c: Likewise.
10334         * math/w_jnf_compat.c: Likewise.
10335         * math/w_log10_compat.c: Likewise.
10336         * math/w_log10f_compat.c: Likewise.
10337         * math/w_log10l_compat.c: Likewise.
10338         * math/w_log2_compat.c: Likewise.
10339         * math/w_log2f_compat.c: Likewise.
10340         * math/w_log2l_compat.c: Likewise.
10341         * math/w_log_compat.c: Likewise.
10342         * math/w_logf_compat.c: Likewise.
10343         * math/w_logl_compat.c: Likewise.
10344         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10345         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10346         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10347         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10348         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10349         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10350         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10351         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10352         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10353         * sysdeps/ieee754/k_standardl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10360         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10361         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10366         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10367         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10368         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10369         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10370         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10371         * math/w_ilogb_template.c: Include <fenv.h> instead of
10372         <fenv_private.h>.
10373         * math/w_llogb_template.c: Likewise.
10374         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10375         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10377 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
10379         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10380         * math/fromfp.h: Include <fenv_private.h>.
10381         * math/math-narrow.h: Likewise.
10382         * math/s_cexp_template.c: Likewise.
10383         * math/s_csin_template.c: Likewise.
10384         * math/s_csinh_template.c: Likewise.
10385         * math/s_ctan_template.c: Likewise.
10386         * math/s_ctanh_template.c: Likewise.
10387         * math/s_iseqsig_template.c: Likewise.
10388         * math/w_acos_compat.c: Likewise.
10389         * math/w_acosf_compat.c: Likewise.
10390         * math/w_acosl_compat.c: Likewise.
10391         * math/w_asin_compat.c: Likewise.
10392         * math/w_asinf_compat.c: Likewise.
10393         * math/w_asinl_compat.c: Likewise.
10394         * math/w_ilogb_template.c: Likewise.
10395         * math/w_j0_compat.c: Likewise.
10396         * math/w_j0f_compat.c: Likewise.
10397         * math/w_j0l_compat.c: Likewise.
10398         * math/w_j1_compat.c: Likewise.
10399         * math/w_j1f_compat.c: Likewise.
10400         * math/w_j1l_compat.c: Likewise.
10401         * math/w_jn_compat.c: Likewise.
10402         * math/w_jnf_compat.c: Likewise.
10403         * math/w_llogb_template.c: Likewise.
10404         * math/w_log10_compat.c: Likewise.
10405         * math/w_log10f_compat.c: Likewise.
10406         * math/w_log10l_compat.c: Likewise.
10407         * math/w_log2_compat.c: Likewise.
10408         * math/w_log2f_compat.c: Likewise.
10409         * math/w_log2l_compat.c: Likewise.
10410         * math/w_log_compat.c: Likewise.
10411         * math/w_logf_compat.c: Likewise.
10412         * math/w_logl_compat.c: Likewise.
10413         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10414         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10415         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10416         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10417         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10418         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10419         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10420         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10421         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10422         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10423         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10424         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10425         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10426         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10427         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10428         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10429         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10430         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10431         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10432         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10433         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10434         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10435         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10436         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10437         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10438         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10439         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10440         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10441         * sysdeps/ieee754/float128/float128_private.h: Likewise.
10442         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10443         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10444         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10445         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10446         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10447         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10448         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10449         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10450         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10451         * sysdeps/ieee754/k_standardl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10455         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10458         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10459         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10460         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10462         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10465         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10466         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10467         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10468         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10469         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10470         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10471         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10472         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10473         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10477         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10478         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10482         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10483         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10484         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10485         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10486         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10487         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10488         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10489         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10490         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10491         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10492         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10493         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10494         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10495         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10496         * sysdeps/riscv/rvd/s_finite.c: Likewise.
10497         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10498         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10499         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10500         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10501         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10502         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10503         * sysdeps/riscv/rvf/fegetround.c: Likewise.
10504         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10505         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10506         * sysdeps/riscv/rvf/fesetround.c: Likewise.
10507         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10508         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10509         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10510         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10511         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10512         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10513         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10514         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10515         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10516         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10517         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10518         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10519         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10520         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10521         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10522         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10524 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10526         [BZ #20271]
10527         * include/stdio.h (__libc_fatal): Mention newline in comment.
10528         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10529         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10530         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10531         * nss/nsswitch.c (__nss_next2): Likewise.
10532         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10533         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10534         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10535         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10536         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10537         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10538         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10539         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10540         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10541         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10542         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10543         * sysdeps/unix/sysv/linux/netlink_assert_response.c
10544         (__netlink_assert_response): Likewise.
10546 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
10548         * conform/glibcconform.py: New file.
10549         * conform/list-header-symbols.py: Likewise.
10550         * conform/list-header-symbols.pl: Remove.
10551         * conform/Makefile (tests-special): Only add linknamespace tests
10552         if [PYTHON].
10553         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10555 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
10557         [BZ #23597]
10558         * support/Makefile (libsupport-routines): Add
10559         support_copy_file_range and xcopy_file_range.
10560         * support/support.h: Include <sys/types.h>.
10561         (support_copy_file_range): New prototype.
10562         * support/support_copy_file_range.c: New file.  Copied and
10563         modified from io/copy_file_range-compat.c.
10564         * support/test-container.c (copy_one_file): Call xcopy_file_rang
10565         instead of copy_file_range.
10566         * support/xcopy_file_range.c: New file.
10567         * support/xunistd.h (xcopy_file_range): New prototype.
10569 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
10571         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10572         xpthread_create and xpthread_join.
10574 2018-08-30  Florian Weimer  <fweimer@redhat.com>
10576         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10578 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
10580         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10581         if malloc fails.
10583 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
10585         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10586         and minus_oflow as non-finite.
10588 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
10590         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
10591         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
10592         moved to fenv_private.h except for ...
10593         (TOINT_INTRINSICS): Kept in math_private.h.
10594         (roundtoint): Likewise.
10595         (converttoint): Likewise.
10596         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10597         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10598         * sysdeps/arm/math_private.h: Remove.
10599         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
10600         ....
10601         * sysdeps/generic/math_private.h: ... this file.  Include
10602         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
10603         Include <fenv_private.h>.  Remove functions and macros moved to
10604         fenv_private.h.
10605         * sysdeps/i386/fpu/math_private.h: Remove.
10606         * sysdeps/mips/math_private.h: Move to ....
10607         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
10608         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
10609         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
10610         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10611         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10612         * sysdeps/powerpc/fpu/math_private.h: Do not include
10613         <fenv_private.h>.
10614         * sysdeps/riscv/rvf/math_private.h: Move to ....
10615         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
10616         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
10617         <fenv_private.h>.
10618         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10619         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10620         * sysdeps/sparc/fpu/math_private.h: Remove.
10621         * sysdeps/i386/fpu/fenv_private.h: Move to ....
10622         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
10623         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
10624         <fenv_private.h>.
10625         * sysdeps/x86_64/fpu/math_private.h: Do not include
10626         <sysdeps/i386/fpu/fenv_private.h>.
10628 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10630         [BZ #23578]
10631         * posix/tst-regcomp-truncated.c: New file.
10632         * posix/Makefile (tests): Add it.
10633         (tst-regcomp-truncated.out): Depend on generated locales.
10635 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10637         * support/test-container.c (main): Treat unshare failure with
10638         EPERM as an unsupported test.
10640 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10642         [BZ #23520]
10643         nscd: Fix use-after-free in addgetnetgrentX and its callers.
10644         * nscd/netgroupcache.c
10645         (addgetnetgrentX): Add tofreep parameter.  Do not free
10646         heap-allocated buffer.
10647         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10648         (addgetnetgrentX_ignore): New function.
10649         (addgetnetgrent): Call it.
10650         (readdgetnetgrent): Likewise.
10652 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10654         * string/memmem.c: Use memcmp for first match.
10656 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
10658         [BZ #17426]
10659         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10661 2018-08-27  DJ Delorie  <dj@redhat.com>
10663         * support/Makefile (others): Don't list programs explicitly as a
10664         dependency of "others".
10666 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10668         * sysdeps/generic/math-tests-trap-force.h: New file.
10669         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10670         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10671         * sysdeps/powerpc/math-tests.h: Remove file.
10672         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10674 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
10675             Torvald Riegel  <triegel@redhat.com>
10677         [BZ #23538]
10678         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10679         Update r to include the set wake-request flag if waiters are
10680         remaining after spinning.
10682 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10684         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10686 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10688         [BZ #23578]
10689         regex: fix uninitialized memory access
10690         I introduced this bug into gnulib in commit
10691         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10692         eventually it was merged into glibc.  The bug was found by
10693         project-repo <bugs@feusi.co> and reported here:
10694         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10695         Diagnosis and draft fix reported by Assaf Gordon here:
10696         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10697         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10698         * posix/regex_internal.c (build_wcs_upper_buffer):
10699         Fix bug when mbrtowc returns 0.
10701 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
10703         * po/be.po: Update translation.
10705 2018-08-24  DJ Delorie  <dj@delorie.com>
10707         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10708         $(libunwind).
10710 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
10712         [BZ #23400]
10713         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10714         create temporary files in source tree.
10716 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
10718         * sysdeps/generic/math-tests-trap.h: New file.
10719         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10720         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10721         * sysdeps/aarch64/math-tests.h: Remove file.
10722         * sysdeps/arm/math-tests.h: Likewise.
10723         * sysdeps/riscv/math-tests.h: Likewise.
10724         * sysdeps/aarch64/math-tests-trap.h: New file.
10725         * sysdeps/arm/math-tests-trap.h: Likewise.
10726         * sysdeps/riscv/math-tests-trap.h: Likewise.
10728 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
10730         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10731         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10732         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10733         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10734         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10735         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10736         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10737         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10738         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10739         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10740         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10741         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10742         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10743         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10744         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10745         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10746         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10747         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10749 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
10751         * sysdeps/generic/math-tests-exceptions.h: New file.
10752         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10753         (EXCEPTION_TESTS_float): Do not define here.
10754         (EXCEPTION_TESTS_double): Likewise.
10755         (EXCEPTION_TESTS_long_double): Likewise.
10756         (EXCEPTION_TESTS_float128): Likewise.
10757         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10758         Likewise.
10759         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10760         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10761         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10762         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10763         * sysdeps/mips/math-tests.h: Likewise.
10764         * sysdeps/nios2/math-tests.h: Likewise.
10765         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10766         (EXCEPTION_TESTS_float): Do not define here.
10767         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10768         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10769         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10771 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10773         * NEWS: Move optimized sinf entry to 2.29.
10775 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10777         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10779 2018-08-22  DJ Delorie  <dj@redhat.com>
10781         * Makefile (testroot.pristine): New rules to initialize the
10782         test-in-container "testroot".
10783         * Makerules (all-testsuite): Add tests-container.
10784         * Rules (tests-expected): Add tests-container.
10785         (binaries-all-tests): Likewise.
10786         (tests-container): New, run these tests in the testroot container.
10787         * support/Makefile (others): Add *-container, support_paths.c,
10788         xmkdirp, and links-dso-program.
10789         * support/links-dso-program-c.c: New.
10790         * support/links-dso-program.cc: New.
10791         * support/test-container.c: New.
10792         * support/shell-container.c: New.
10793         * support/echo-container.c: New.
10794         * support/true-container.c: New.
10795         * support/xmkdirp.c: New.
10796         * support/xsymlink.c: New.
10797         * support/support_paths.c: New.
10798         * support/support.h: Add support paths prototypes.
10799         * support/xunistd.h: Add xmkdirp () and xsymlink ().
10801         * nss/tst-nss-test3.c: Convert to test-in-container.
10802         * nss/tst-nss-test3.root/: New.
10804 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10806         regex: port Gnulib code to z/OS POSIX environment
10807         Problem reported by Arnold Robbins in:
10808         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10809         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10810         Undef.
10812 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
10814         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10815         (ROUNDING_TESTS_double): Remove.
10816         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10817         (ROUNDING_TESTS_double): Remove.
10818         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10819         (ROUNDING_TESTS_double): Remove.
10820         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10821         (ROUNDING_TESTS_float): Remove.
10822         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10823         (ROUNDING_TESTS_float): Remove.
10824         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10825         (ROUNDING_TESTS_float): Remove.
10826         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10827         !TEST_MATHVEC here.
10828         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10829         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10831         * sysdeps/generic/math-tests-rounding.h: New file.
10832         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10833         (ROUNDING_TESTS_float): Do not define here.
10834         (ROUNDING_TESTS_double): Likewise.
10835         (ROUNDING_TESTS_long_double): Likewise.
10836         (ROUNDING_TESTS_float128): Likewise.
10837         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10838         (ROUNDING_TESTS_double): Undefine before defining.
10839         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10840         (ROUNDING_TESTS_double): Undefine before defining.
10841         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10842         (ROUNDING_TESTS_double): Undefine before defining.
10843         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10844         (ROUNDING_TESTS_float): Undefine before defining.
10845         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10846         (ROUNDING_TESTS_float): Undefine before defining.
10847         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10848         (ROUNDING_TESTS_float): Undefine before defining.
10849         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10850         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10851         not define here.
10852         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10853         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10854         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10855         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10856         (ROUNDING_TESTS_float): Do not define here.
10857         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10858         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10859         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10860         (ROUNDING_TESTS_float): Likewise.
10861         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10862         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10863         * sysdeps/mips/math-tests.h [__mips_soft_float]
10864         (ROUNDING_TESTS_float): Likewise.
10865         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10866         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10867         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10868         (ROUNDING_TESTS_double): Likewise.
10869         (ROUNDING_TESTS_long_double): Likewise.
10871 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
10873         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10874         (PF_XDP): New macro.
10875         (AF_XDP): New macro.
10876         (SOL_XDP): New macro.
10878 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
10880         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10881         (TCP_INQ): Likewise.
10882         (TCP_CM_INQ): Likewise.
10883         (TCP_REPAIR_ON): Likewise.
10884         (TCP_REPAIR_OFF): Likewise.
10885         (TCP_REPAIR_OFF_NO_WP): Likewise.
10886         (struct tcp_zerocopy_receive): New type.
10888 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10890         * support/support.h (support_descriptor_supports_holes): Declare.
10891         * support/Makefile (libsupport-routines): Add
10892         support_descriptor_supports_holes.
10893         * support/support_descriptor_supports_holes.c: New file.
10894         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10895         and stop testing if holes are not supported.
10896         * io/test-lfs.c (do_prepare): Likewise.
10897         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10898         Likewise.
10899         * timezone/tst-tzset.c (create_tz_file): Likewise.
10900         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10901         variable.
10902         (do_prepare): Set it.
10903         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10905 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10907         [BZ #17248]
10908         * Makeconfig (+cflags): Do not sort (and deduplicate).
10910 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10912         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10913         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10915 2018-08-20  Florian Weimer  <fweimer@redhat.com>
10917         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10918         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
10920 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
10922         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10923         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10924         and ssi_arch members.
10926         * elf/elf.c (NT_VMCOREDD): New macro.
10927         (AT_MINSIGSTKSZ): Likewise.
10929 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10931         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10932         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10933         s_cosf-ppc64 and s_cosf-power8.
10934         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10935         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10936         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10937         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10939         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10944         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10945         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10947 2018-08-17  Florian Weimer  <fweimer@redhat.com>
10949         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10951 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
10953         * malloc/malloc.c (_int_malloc): Additional binning code checks.
10955 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10957         * configure.ac: Add --with-nonshared-cflags option.
10958         * config.make.in (extra-nonshared-cflags): Set variable.
10959         * Makeconfig (CFLAGS-.oS): Use it.
10960         * manual/install.texi (Configuring and compiling): Document
10961         --with-nonshared-cflags.
10962         * configure: Regenerate.
10963         * INSTALL: Likewise.
10965 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10967         * Makeconfig (ASFLAGS): Always append required assembler flags.
10969 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
10971         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10972         (malloc_consolidate): Likewise.
10974 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
10976         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10978 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10980         * benchtests/bench-strlen.c (do_test): Allocate buffers before
10981         every strlen call.
10983         * benchtests/bench-strlen.c: Print performance numbers in json.
10985 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10987         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10988         (sysdep_routines): Build strcmp-power9 and strncmp-power9
10989         only for little endian.
10990         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10991         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10992         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10993         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10994         Add check for little endian.
10995         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10996         (__strcmp_power9): Add check for little endian.
10997         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10998         Add check for little endian.
10999         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
11000         (__strncmp_power9): Add check for little endian.
11001         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
11002         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
11003         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
11004         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
11005         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
11007 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11009         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
11010         [!STRLEN](STRLEN): Set to __strlen.
11011         * sysdeps/aarch64/multiarch/strlen.c: New file.
11012         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
11013         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
11014         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11015         (__libc_ifunc_impl_list): Add strlen.
11016         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11017         strlen_generic and strlen_asimd.
11019 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11021         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
11022         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
11023         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11025 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11027         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
11029 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11031         [BZ #23519]
11032         * include/stdio.h (__vfxprintf): Declare.
11033         * stdio-common/fxprintf.c (__vfxprintf): New function.
11034         (__fxprintf): Call it.
11035         * misc/err.c (convert_and_print): Remove function.
11036         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
11037         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
11038         * misc/Makefile (tests): Add tst-warn-wide.
11039         * misc/tst-warn-wide.c: New file.
11041 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
11042             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11044         * NEWS: Mention sinf, cosf, sincosf.
11045         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
11046         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
11047         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
11048         constants rather than including generic sincosf.h.
11049         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
11050         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
11051         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
11052         (reduced_cos): Remove.
11053         (sinf_poly): New function.
11054         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
11056 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11058         [BZ #23521]
11059         [BZ #23522]
11060         * nss/nss_files/files-alias.c (get_next_alias): During :include:
11061         processing, bail out if no room, and close the stream before
11062         returning ERANGE.
11063         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
11064         (tst-nss-files-alias-leak): Link with libdl.
11065         (tst-nss-files-alias-leak.out): Depend on nss_files.
11067         * nss/tst-nss-files-alias-leak.c: New file.
11069 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11071         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
11072         server_user, stat_user.
11074 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
11076         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11077         version to 4.18.
11078         (io_pgetevents): New syscall.
11079         (rseq): Likewise.
11081         * manual/install.texi (Configuring and compiling): Do not list
11082         tools used for testing pretty printers here.
11083         (Tools for Compilation): List Python, PExpect and GDB here.
11084         Update descriptions of uses of Perl and Python.
11085         * INSTALL: Regenerate.
11087         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11088         version to 4.18.
11090 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11092         * misc/error.c (error): Add missing va_end call.
11093         (error_at_line): Likewise.
11095 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11097         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
11099 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11101         * benchtests/scripts/benchout.schema.json (properties): Add
11102         new properties.
11104         * benchtests/bench-skeleton.c (main): Add duration and
11105         iterations attributes.
11107 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11109         regex: Gnulib unibyte RRI uses bytes not chars
11110         Adjust the non-glibc code to agree with what Gawk needs for
11111         rational range interpretation (RRI) for regular expression ranges.
11112         In unibyte locales, Gawk wants ranges to use the underlying byte
11113         rather than the character code point.  This change does not affect
11114         glibc proper.
11115         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
11116         In unibyte locales, use the byte value rather than
11117         running it through btowc.
11119 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
11121         * sysdeps/generic/math-tests-snan.h: New file.
11122         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
11123         (SNAN_TESTS_float): Do not define here.
11124         (SNAN_TESTS_double): Likewise.
11125         (SNAN_TESTS_long_double): Likewise.
11126         (SNAN_TESTS_float128): Likewise.
11127         * sysdeps/i386/fpu/math-tests-snan.h: New file.
11128         * sysdeps/i386/fpu/math-tests.h: Remove file.
11129         * sysdeps/ia64/math-tests-snan.h: New file.
11130         * sysdeps/ia64/math-tests.h: Remove file.
11131         * sysdeps/x86/math-tests.h: Likewise.
11132         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
11134 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
11135             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11137         * math/Makefile: Add s_sincosf_data.c.
11138         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
11139         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
11140         (sincosf_poly): Likewise.
11141         (reduce_small): Likewise.
11142         (reduce_large): Likewise.
11143         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
11144         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
11145         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
11146         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
11148 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
11149             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11151         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
11152         (converttoint): Use lround.
11153         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
11154         document the semantics when TOINT_INTRINSICS is set.
11155         (converttoint): Likewise.
11156         (TOINT_RINT): Remove.
11157         (TOINT_SHIFT): Remove.
11158         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
11159         path.
11161 2018-08-10  Florian Weimer  <fweimer@redhat.com>
11163         [BZ #23497]
11164         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
11165         function.
11166         (__old_getdents64): Use getdents64.  Convert entries without
11167         moving them.
11168         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
11169         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
11170         tst-readdir64-compat.
11172 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11174         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
11175         Fix unwind.
11177 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11179         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
11180         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
11181         code to s390x-mcount.h and #include it.
11182         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
11183         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
11184         (__fentry__): Add.
11186 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11188         * stdlib/Versions: Remove __fentry__.
11189         * sysdeps/i386/Versions: Add __fentry__.
11190         * sysdeps/x86_64/Versions: Add __fentry__.
11192 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11194         * sysdeps/s390/Makefile: Register the new tests.
11195         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
11196         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
11197         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
11198         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
11199         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
11200         * sysdeps/s390/tst-dl-runtime.c: New file.
11202 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11204         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11205         Do not clobber R0.
11207 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11209         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11210         Do not clobber R0.
11212 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11214         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11215         Do not clobber R0.
11217 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11219         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11220         Do not clobber R0.
11222 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11224         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11225         Use symbolic offsets for stack variables.
11227 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11229         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11230         Use symbolic offsets for stack variables.
11232 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11234         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11235         Use symbolic offsets for stack variables.
11237 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11239         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11240         Use symbolic offsets for stack variables.
11242 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
11244         * math/gen-libm-test.py: New file.
11245         * math/gen-libm-test.pl: Remove.
11246         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
11247         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
11248         gen-libm-test.pl.
11249         ($(libm-test-c-noauto-obj)): Likewise.
11250         ($(libm-test-c-auto-obj)): Likewise.
11251         ($(libm-test-c-narrow-obj)): Likewise.
11252         (regen-ulps): Likewise.
11253         * math/README.libm-test: Update references to gen-libm-test.pl.
11254         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
11255         referencing gen-libm-test.pl.
11256         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
11257         * math/libm-test-support.c: Likewise.
11258         * math/libm-test-support.h: Likewise.
11259         * sysdeps/generic/libm-test-ulps: Likewise.
11261 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11263         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
11264         Fix value.
11266 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
11268         * math/libm-test-nextdown.inc (do_test): Move comment to ....
11269         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
11271 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11273         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
11274         symbols.
11275         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
11276         __pthread_setspecific): Add hidden proto.
11277         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
11278         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
11280 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11282         * benchtests/bench-string.h (buf1_size, buf2_size): New
11283         variables.
11284         (init_sizes): New function.
11285         (test_init): Use it.
11286         (alloc_buf, exit_error): New functions.
11287         (alloc_bufs): Use ALLOC_BUF.
11288         (realloc_bufs): Remove.
11289         * benchtests/bench-memcmp.c (do_test): Adjust.
11290         * benchtests/bench-memset-large.c (do_test): Likewise.
11291         * benchtests/bench-memset-walk.c (do_test): Likewise.
11292         * benchtests/bench-memset.c (do_test): Likewise.
11293         * benchtests/bench-strncmp.c (do_test): Likewise.
11295 2018-08-06  Andreas Schwab  <schwab@suse.de>
11297         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
11298         of CONST_THREAD_AREA.
11300 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11302         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
11303         (STATE_SAVE_MASK): Likewise.
11304         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11305         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11306         (STATE_SAVE_MASK): Likewise.
11307         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11308         instead of <cpu-features.h>.
11310 2018-08-03  DJ Delorie  <dj@redhat.com>
11312         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11313         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11315         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11317 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
11319         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11320         after TEST_* calls.
11321         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11322         * math/libm-test-logb.inc (logb_test_data): Likewise.
11324 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
11326         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11327         * string/strstr.c (AVAILABLE): Likewise.
11329 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11331         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11332         <init-arch.h>.
11333         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11334         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11335         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11337 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
11339         * po/be.po: Update translation.
11341         * po/be.po: Update translation.
11343 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11345         * sysdeps/x86/cpu-features-offsets.sym
11346         (rtld_global_ro_offsetof): Removed.
11347         (CPU_FEATURES_SIZE): Likewise.
11348         (CPUID_OFFSET): Likewise.
11349         (CPUID_SIZE): Likewise.
11350         (CPUID_EAX_OFFSET): Likewise.
11351         (CPUID_EBX_OFFSET): Likewise.
11352         (CPUID_ECX_OFFSET): Likewise.
11353         (CPUID_EDX_OFFSET): Likewise.
11354         (FAMILY_OFFSET): Likewise.
11355         (MODEL_OFFSET): Likewise.
11356         (FEATURE_OFFSET): Likewise.
11357         (FEATURE_SIZ): Likewise.
11358         (COMMON_CPUID_INDEX_1): Likewise.
11359         (COMMON_CPUID_INDEX_7): Likewise.
11360         (FEATURE_INDEX_1): Likewise.
11361         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11363 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
11365         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11366         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11367         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11368         (install-locales): Depend on install-locale-archive.
11369         (install-locale-archive): Define.
11370         (install-locale-files): Define.
11371         (build-one-locale): Define macro.
11372         * manual/install.texi (Running make install): Document.
11373         * manual/INSTALL: Regenerate.
11375 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11377         * benchtests/scripts/compare_strings.py: Import traceback.
11378         (parse_file): Pretty-print error.
11380         * NEWS: Mention the change.
11381         * elf/dl-tunables.list: Rename tune namespace to cpu.
11382         * sysdeps/powerpc/dl-tunables.list: Likewise.
11383         * sysdeps/x86/dl-tunables.list: Likewise.
11384         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11385         cpu.name.
11386         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11387         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11388         * manual/README.tunables: Likewise.
11389         * manual/tunables.texi: Likewise.
11390         * sysdeps/powerpc/cpu-features.c: Likewise.
11391         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11392         (init_cpu_features): Likewise.
11393         * sysdeps/x86/cpu-features.c: Likewise.
11394         * sysdeps/x86/cpu-features.h: Likewise.
11395         * sysdeps/x86/cpu-tunables.c: Likewise.
11396         * sysdeps/x86_64/Makefile: Likewise.
11397         * sysdeps/x86/dl-cet.c: Likewise.
11399 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
11401         [BZ #23479]
11402         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11403         [__mips_hard_float].
11404         (FE_UNDERFLOW): Likewise.
11405         (FE_OVERFLOW): Likewise.
11406         (FE_DIVBYZERO): Likewise.
11407         (FE_INVALID): Likewise.
11408         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11409         (FE_TOWARDZERO): Define only if [__mips_hard_float].
11410         (FE_UPWARD): Likewise.
11411         (FE_DOWNWARD): Likewise.
11412         (__FE_UNDEFINED): Define if [!__mips_hard_float]
11413         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11414         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11415         [__mips_hard_float].
11416         (FP_ROUNDMODE): Likewise.
11417         (FP_RND_NEAREST): Likewise.
11418         (FP_RND_ZERO): Likewise.
11419         (FP_RND_PINF): Likewise.
11420         (FP_RND_MINF): Likewise.
11421         (FP_EX_INVALID): Likewise.
11422         (FP_EX_OVERFLOW): Likewise.
11423         (FP_EX_UNDERFLOW): Likewise.
11424         (FP_EX_DIVZERO): Likewise.
11425         (FP_EX_INEXACT): Likewise.
11426         (FP_INIT_ROUNDMODE): Likewise.
11427         * sysdeps/mips/nofpu/fesetenv.c: New file.
11428         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11430 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11432         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11433         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11434         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11435         conditional on [FE_UPWARD].
11437 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11439         regex: fix memory leak in Gnulib
11440         Problem and fix reported by Assaf Gordon in:
11441         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11442         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11443         range_ends members too, as they are defined in 'struct
11444         re_charset_t' even if not _LIBC.  This affects only Gnulib.
11446 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11448         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11449         ...
11450         (get_common_indices): This.
11451         (init_cpu_features): Updated.
11453 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11455         * sysdeps/generic/math-tests-snan-payload.h: New file.
11456         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11457         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11458         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11459         * sysdeps/generic/math-tests.h: Include
11460         <math-tests-snan-payload.h>.
11461         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11462         * sysdeps/hppa/math-tests.h: Remove file.
11463         * sysdeps/mips/math-tests.h [!__mips_nan2008]
11464         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11465         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11466         Likewise.
11468         * sysdeps/generic/math-tests-snan-cast.h: New file.
11469         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11470         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11471         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11472         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11474 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
11476         * version.h (RELEASE): Set to "development".
11477         (VERSION): Set to "2.28.9000".
11478         * NEWS (2.29): New section.
11480         * version.h (RELEASE): Set to "stable".
11481         (VERSION): Set to "2.28".
11482         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11483         * NEWS: Add the list of bugs fixed in 2.28.
11485         * po/ca.po: Update to latest version.
11486         * po/cs.po: Likewise
11487         * po/da.po: Likewise
11488         * po/el.po: Likewise
11489         * po/eo.po: Likewise
11490         * po/es.po: Likewise
11491         * po/fi.po: Likewise
11492         * po/fr.po: Likewise
11493         * po/gl.po: Likewise
11494         * po/hu.po: Likewise
11495         * po/ia.po: Likewise
11496         * po/id.po: Likewise
11497         * po/it.po: Likewise
11498         * po/ja.po: Likewise
11499         * po/ko.po: Likewise
11500         * po/lt.po: Likewise
11501         * po/nb.po: Likewise
11502         * po/nl.po: Likewise
11503         * po/pt_BR.po: Likewise
11504         * po/ru.po: Likewise
11505         * po/rw.po: Likewise
11506         * po/sk.po: Likewise
11507         * po/sl.po: Likewise
11508         * po/tr.po: Likewise
11509         * po/zh_CN.po: Likewise
11510         * po/zh_TW.po: Likewise
11512 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11514         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11515         initialization...
11516         (init): ... before initializing libpthread.
11518         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11519         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11520         (__mach_setup_tls): ... new function.
11521         (mach_setup_tls): New alias.
11522         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11523         __mach_setup_thread.
11524         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11525         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11526         * mach/Versions [libc] (mach_setup_tls): Add symbol.
11527         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11529 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11531         * manual/install.texi: Update versions.
11532         * INSTALL: Regenerate.
11534         * manual/contrib.texi (Contributors): Update contributions.
11536 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11538         * po/be.po: Update translations.
11540 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11542         * sysdeps/sh/libm-test-ulps: Update.
11544 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
11546         * po/bg.po: Update translations.
11547         * po/de.po: Likewise.
11548         * po/hr.po: Likewise.
11549         * po/pt_BR.po: Likewise.
11550         * po/sv.po: Likewise.
11551         * po/vi.po: Likewise.
11553 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11555         [BZ #23467]
11556         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11557         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11558         (CFLAGS-tst-cet-property-1.o): New.
11559         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11560         ($(objpfx)tst-cet-property-2): Likewise.
11561         ($(objpfx)tst-cet-property-2.out): Likewise.
11562         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11563         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11564         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11565         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11566         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11568 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11570         [BZ #23458]
11571         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11573 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11575         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11576         __sbrk): Do not set attribute_hidden.
11577         * sysdeps/mach/hurd/not-errno.h: New file.
11578         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11579         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11581 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
11583         * po/uk.po: Update translations.
11584         * po/cs.po: Likewise.
11585         * po/pl.po: Likewise.
11587 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
11589         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11590         parse beyond the note end.
11592 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11594         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11595         kernel does not support OFD locks.
11596         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11598 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11600         * sysdeps/mach/hurd/Versions (libc): Make __access and
11601         __access_noerrno external so they can override the ld symbols.
11602         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11603         __writev, __open64, __access_noerrno extern so they can be overrided.
11604         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11605         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11607 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
11609         * po/libc.pot: Regenerate.
11611 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
11613         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11615 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11617         [BZ #23459]
11618         * sysdeps/x86/cpu-features.c (get_extended_indices): New
11619         function.
11620         (init_cpu_features): Call get_extended_indices for both Intel
11621         and AMD CPUs.
11622         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11623         Remove "for AMD" comment.
11625 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11627         [BZ # 23456]
11628         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11629         COMMON_CPUID_INDEX_80000001.
11631 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
11633         * string/tst-xbzero-opt.c (use_test_buffer): New function.
11634         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11636 2018-07-26  Florian Weimer  <fweimer@redhat.com>
11638         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11639         aliases for symbols not in the implementation namespace.
11641 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
11643         [BZ #23393]
11644         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11645         lowercase in LATIN script.
11646         * localedata/Makefile (test-input): Add en_US.UTF-8.
11647         * localedata/en_US.UTF-8.in: New file.
11648         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11649         and restore old tests.
11650         * posix/tst-regexloc.c (do_test): Add back range expression test.
11652 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11654         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11656 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11658         * nptl/threads.h: Move to ...
11659         * sysdeps/nptl/threads.h: ... here.
11660         * sysdeps/hurd/stdc-predef.h: New file.
11662 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11664         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11665         tst-cet-setcontext-1 if CET is enabled.
11666         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11667         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11669 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11671         * include/threads.h: Move to ...
11672         * sysdeps/nptl/threads.h: ... here.
11673         * sysdeps/htl/threads.h: New file.
11674         * conform/Makefile (linknamespace-libs-ISO11): Use
11675         static-thread-library instead of linking libpthread.
11676         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11678 2018-07-25  Florian Weimer  <fweimer@redhat.com>
11680         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11681         nanoseconds into seconds.
11682         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11683         (do_test): Likewise.
11684         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11685         (do_test): Likewise.  Avoid nanosecond overflow and spurious
11686         timeouts due to system load.
11687         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11688         (child_wait): Increment it.
11689         (do_test): Wait as long as necessary until all expected threads
11690         have arrived.
11692 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
11693             H.J. Lu  <hongjiu.lu@intel.com>
11695         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11696         __ssp.
11697         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11698         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11699         (__push___start_context): New.
11700         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11701         <asm/prctl.h>.
11702         (__getcontext): Record the current shadow stack base.  Save the
11703         caller's shadow stack pointer and base.
11704         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11705         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11706         (__push___start_context): New prototype.
11707         (__makecontext): Call __push___start_context to allocate a new
11708         shadow stack, push __start_context onto the new stack as well
11709         as the new shadow stack.
11710         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11711         <asm/prctl.h>.
11712         (__setcontext): Restore the target shadow stack.
11713         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11714         <asm/prctl.h>.
11715         (__swapcontext): Record the current shadow stack base.  Save
11716         the caller's shadow stack pointer and base. Restore the target
11717         shadow stack.
11718         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11719         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11720         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11722 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11724         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11725         tst-setcontext8 and tst-setcontext9.
11726         * stdlib/tst-setcontext6.c: New file.
11727         * stdlib/tst-setcontext7.c: Likewise.
11728         * stdlib/tst-setcontext8.c: Likewise.
11729         * stdlib/tst-setcontext9.c: Likewise.
11731 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11733         * stdlib/Makefile ((tests): Add tst-setcontext5.
11734         * stdlib/tst-setcontext5.c: New file.
11736 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11738         * stdlib/Makefile (tests): Add tst-setcontext4.
11739         * stdlib/tst-setcontext4.c: New file.
11741 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11743         * stdlib/Makefile (tests): Add tst-swapcontext1.
11744         * stdlib/tst-swapcontext1.c: New test.
11746 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11748         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11749         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11750         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11751         and tst-cet-legacy-4c.
11752         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11753         and tst-cet-legacy-mod-4.
11754         (CFLAGS-tst-cet-legacy-2.c): New.
11755         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11756         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11757         (CFLAGS-tst-cet-legacy-3.c): Likewise.
11758         (CFLAGS-tst-cet-legacy-4.c): Likewise.
11759         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11760         ($(objpfx)tst-cet-legacy-1): Likewise.
11761         ($(objpfx)tst-cet-legacy-2): Likewise.
11762         ($(objpfx)tst-cet-legacy-2.out): Likewise.
11763         ($(objpfx)tst-cet-legacy-2a): Likewise.
11764         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11765         ($(objpfx)tst-cet-legacy-4): Likewise.
11766         ($(objpfx)tst-cet-legacy-4.out): Likewise.
11767         ($(objpfx)tst-cet-legacy-4a): Likewise.
11768         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11769         (tst-cet-legacy-4a-ENV): Likewise.
11770         ($(objpfx)tst-cet-legacy-4b): Likewise.
11771         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11772         (tst-cet-legacy-4b-ENV): Likewise.
11773         ($(objpfx)tst-cet-legacy-4c): Likewise.
11774         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11775         (tst-cet-legacy-4c-ENV): Likewise.
11776         * sysdeps/x86/tst-cet-legacy-1.c: New file.
11777         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11778         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11779         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11780         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11781         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11782         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11783         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11784         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11785         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11786         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11788 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11790         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11791         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11792         with ssp_base.
11793         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11794         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11795         with ssp_base.
11797 2018-07-25  Andreas Schwab  <schwab@suse.de>
11799         [BZ #23442]
11800         * locale/weightwc.h (findidx): Handle the case where usrc is a
11801         prefix of cp but one character too short.
11803 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11805         * NEWS: Add ISO C threads addition.
11807 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11809         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11810         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11811         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
11812         4.13.
11814 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11816         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11817         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11818         <sys/prctl.h> and <asm/prctl.h>.
11819         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11820         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11821         and <asm/prctl.h>.
11822         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11823         ARCH_CET_LEGACY_BITMAP.
11824         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11825         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11826         * sysdeps/x86/libc-start.c: Include <startup.h>.
11828 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11830         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11831         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
11833 2018-07-24  Rical Jasan  <rj@2c3t.io>
11834             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11835             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11837         [BZ #14092]
11838         * manual/debug.texi: Update adjacent chapter name.
11839         * manual/probes.texi: Likewise.
11840         * manual/threads.texi (ISO C Threads): New section.
11841         (POSIX Threads): Convert to a section.
11843 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11844             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11846         [BZ# 14092]
11847         * nptl/Makefile (tests): Add new test files.
11848         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11849         * nptl/tst-cnd-basic.c: Likewise.
11850         * nptl/tst-cnd-broadcast.c: Likewise.
11851         * nptl/tst-cnd-timedwait.c: Likewise.
11852         * nptl/tst-mtx-basic.c: Likewise.
11853         * nptl/tst-mtx-recursive.c: Likewise.
11854         * nptl/tst-mtx-timedlock.c: Likewise.
11855         * nptl/tst-mtx-trylock.c: Likewise.
11856         * nptl/tst-thrd-basic.c: Likewise.
11857         * nptl/tst-thrd-detach.c: Likewise.
11858         * nptl/tst-thrd-sleep.c: Likewise.
11859         * nptl/tst-tss-basic.c: Likewise.
11861 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11863         [BZ #14092]
11864         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11865         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11866         symbols.
11867         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11868         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11869         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11870         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11871         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11872         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11873         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11874         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11875         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11876         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11877         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11878         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11880         Likewise.
11881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11882         Likewise.
11883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11884         Likewise.
11885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11886         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11887         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11888         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11889         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11890         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11891         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11892         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11893         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11894         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11895         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11896         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11897         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11898         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11899         Likewise.
11900         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11901         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11902         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11903         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11904         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11905         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11906         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11907         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11908         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11909         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11910         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11911         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11912         ikewise.
11913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11915         Likewise.
11916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11917         Likewise.
11918         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11919         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11920         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11921         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11922         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11923         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11924         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11925         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11927         [BZ #14092]
11928         * conform/data/threads.h-data (thread_local): New macro.
11929         (TSS_DTOR_ITERATIONS): Likewise.
11930         (tss_t): New type.
11931         (tss_dtor_t): Likewise.
11932         (tss_create): New function.
11933         (tss_get): Likewise.
11934         (tss_set): Likewise.
11935         (tss_delete): Likewise.
11936         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11937         tss_get, and tss_set objects.
11938         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11939         * nptl/tss_create.c: New file.
11940         * nptl/tss_delete.c: Likewise.
11941         * nptl/tss_get.c: Likewise.
11942         * nptl/tss_set.c: Likewise.
11943         * sysdeps/nptl/threads.h (thread_local): New define.
11944         (TSS_DTOR_ITERATIONS): Likewise.
11945         (tss_t): New typedef.
11946         (tss_dtor_t): Likewise.
11947         (tss_create): New prototype.
11948         (tss_get): Likewise.
11949         (tss_set): Likewise.
11950         (tss_delete): Likewise.
11952         [BZ #14092]
11953         * conform/data/threads.h-data (cnd_t): New type.
11954         (cnd_init): New function.
11955         (cnd_signal): Likewise.
11956         (cnd_broadcast): Likewise.
11957         (cnd_wait): Likewise.
11958         (cnd_timedwait): Likewise.
11959         (cnd_destroy): Likewise.
11960         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11961         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11962         object.
11963         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11964         * nptl/cnd_broadcast.c: New file.
11965         * nptl/cnd_destroy.c: Likewise.
11966         * nptl/cnd_init.c: Likewise.
11967         * nptl/cnd_signal.c: Likewise.
11968         * nptl/cnd_timedwait.c: Likewise.
11969         * nptl/cnd_wait.c: Likewise.
11970         * sysdeps/nptl/threads.h (cnd_t): New type.
11971         (cnd_init): New prototype.
11972         (cnd_signa): Likewise.
11973         (cnd_broadcast): Likewise.
11974         (cnd_wait): Likewise.
11975         (cnd_timedwait): Likewise.
11976         (cnd_destroy): Likewise.
11978         [BZ #14092]
11979         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11980         (once_flag): New type.
11981         (call_once): New function.
11982         * nptl/Makefile (libpthread-routines): Add call_once object.
11983         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11984         * nptl/call_once.c: New file.
11985         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11986         (once_flag): New type.
11987         (call_once): New prototype.
11989         [BZ #14092]
11990         * conform/data/threads.h-data (mtx_plain): New constant.
11991         (mtx_recursive): Likewise.
11992         (mtx_timed): Likewise.
11993         (mtx_t): New type.
11994         (mtx_init): New function.
11995         (mtx_lock): Likewise.
11996         (mtx_timedlock): Likewise.
11997         (mtx_trylock): Likewise.
11998         (mtx_unlock): Likewise.
11999         (mtx_destroy): Likewise.
12000         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
12001         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
12002         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
12003         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
12004         * nptl/mtx_destroy.c: New file.
12005         * nptl/mtx_init.c: Likewise.
12006         * nptl/mtx_lock.c: Likewise.
12007         * nptl/mtx_timedlock.c: Likewise.
12008         * nptl/mtx_trylock.c: Likewise.
12009         * nptl/mtx_unlock.c: Likewise.
12010         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
12011         (mtx_recursive): Likewise.
12012         (mtx_timed): Likewise.
12013         (mtx_t): New type.
12014         (mtx_init): New prototype.
12015         (mtx_lock): Likewise.
12016         (mtx_timedlock): Likewise.
12017         (mtx_trylock): Likewise.
12018         (mtx_unlock): Likewise.
12019         (mtx_destroy): Likewise.
12021         [BZ #14092]
12022         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
12023         (linknamespace-libs-ISO11): Add libpthread.a.
12024         * conform/data/threads.h-data: New file: add C11 thrd_* types and
12025         functions.
12026         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
12027         * nptl/Makefile (headers): Add threads.h.
12028         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
12029         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
12030         thrd_yield.
12031         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
12032         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
12033         thrd_join, thrd_sleep, and thrd_yield symbols.
12034         * nptl/descr.h (struct pthread): Add c11 field.
12035         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
12036         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
12037         routine with expected function prototype.
12038         (__pthread_create_2_1): Add C11 threads check based on attribute
12039         value.
12040         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
12041         * nptl/thrd_create.c: New file.
12042         * nptl/thrd_current.c: Likewise.
12043         * nptl/thrd_detach.c: Likewise.
12044         * nptl/thrd_equal.c: Likewise.
12045         * nptl/thrd_exit.c: Likewise.
12046         * nptl/thrd_join.c: Likewise.
12047         * nptl/thrd_priv.h: Likewise.
12048         * nptl/thrd_sleep.c: Likewise.
12049         * nptl/thrd_yield.c: Likewise.
12050         * include/threads.h: Likewise.
12052 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12054         * bits/indirect-return.h: New file.
12055         * misc/sys/cdefs.h (__glibc_has_attribute): New.
12056         * sysdeps/x86/bits/indirect-return.h: Likewise.
12057         * stdlib/Makefile (headers): Add bits/indirect-return.h.
12058         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
12059         (swapcontext): Add __INDIRECT_RETURN.
12060         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
12061         (prepare_test_buffer): Use it.
12063 2018-07-24  Andreas Schwab  <schwab@suse.de>
12065         [BZ #23448]
12066         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
12067         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
12069 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12071         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
12072         Redefine if shadow stack is enabled.
12073         (SYSCALL_ERROR_LABEL): Likewise.
12074         (__vfork): Pop shadow stack and jump back to to caller directly
12075         when shadow stack is in use.
12076         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
12077         Redefine if shadow stack is enabled.
12078         (SYSCALL_ERROR_LABEL): Likewise.
12079         (__vfork): Pop shadow stack and jump back to to caller directly
12080         when shadow stack is in use.
12082 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12084         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
12085         enabled.
12086         (foo): Likewise.
12087         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
12088         (foo): Likewise.
12090 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
12092         * scripts/build-many-glibcs.py (Context.checkout): Default
12093         binutils version to 2.31 branch.
12095 2018-07-20  Zong Li  <zong@andestech.com>
12097         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
12098         URL of gcc's tarball.
12100 2018-07-20  Florian Weimer  <fweimer@redhat.com>
12102         [BZ #23396]
12103         * posix/regcomp.c (build_equiv_class): When comparing weights, do
12104         not compare an extra byte after the end of the weights.
12106 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12108         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
12109         to 1.
12110         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
12111         hidden prototypes.
12112         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
12113         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
12114         * scripts/check-execstack.awk: Consider `xfail' variable containing a
12115         list of libraries whose stack executability is expected.
12116         * elf/Makefile ($(objpfx)check-execstack.out): Pass
12117         $(check-execstack-xfail) to check-execstack.awk through `xfail'
12118         variable.
12119         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
12120         libc.so libpthread.so.
12122 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
12124         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
12125         SOCK_NONBLOCK.
12126         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
12127         and SOCK_NONBLOCK.
12128         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
12129         implement __pipe2.
12130         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
12132 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
12134         * benchtests/scripts/compare_bench.py (__main__): use the argparse
12135         library to improve command line parsing.
12136         (__main__): make schema file as optional parameter (--schema),
12137         defaulting to benchtests/scripts/benchout.schema.json.
12138         (main): move out of the parsing stuff to __main_  and leave it
12139         only as caller of main comparison functions.
12141 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
12143         * NEWS: Add a note for Intel CET status.
12144         * manual/install.texi: Likewise.
12145         * INSTALL: Regenerated.
12147 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
12149         [BZ #23140]
12150         * localedata/locales/oc_FR (mon): Rename to...
12151         (alt_mon): This, then update October (typo fix).
12152         (mon): New content (genitive case, month names preceded by
12153         "de" or "d’").
12155         [BZ #23422]
12156         * localedata/locales/oc_FR (abday): Update all items.
12157         (day): Update Wednesday and Saturday (typo fixes).
12158         (abmon): Update all items, except May.
12159         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
12160         (LC_IDENTIFICATION): Bump the revision number and date.
12161         Keep the "category" entries in alphabetic order.
12162         (LC_ADDRESS): Remove no longer needed comment.
12163         (LC_COLLATE): Use “copy "ca_ES"”.
12164         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
12165         "name_mrs".
12167 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
12169         * grp/tst_fgetgrent.c: Include <unistd.h>.
12170         (main): Use mkstemp instead of tmpnam.
12171         * io/test-utime.c (main): Likewise.
12172         * posix/annexc.c (macrofile): Change to modifiable array.
12173         (main): Remove macrofile here.
12174         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
12175         macrofile here.
12176         (check_header): Do not remove macrofile here.
12177         * posix/bug-getopt1.c: Include <stdlib.h>.
12178         (do_test): Use mkstemp instead of tmpnam.
12179         * posix/bug-getopt2.c: Include <stdlib.h>.
12180         (do_test): Use mkstemp instead of tmpnam.
12181         * posix/bug-getopt3.c: Include <stdlib.h>.
12182         (do_test): Use mkstemp instead of tmpnam.
12183         * posix/bug-getopt4.c: Include <stdlib.h>.
12184         (do_test): Use mkstemp instead of tmpnam.
12185         * posix/bug-getopt5.c: Include <stdlib.h>.
12186         (do_test): Use mkstemp instead of tmpnam.
12187         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
12188         (main): Use mkstemp instead of tmpnam.
12189         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
12190         (main): Use mkstemp instead of tmpnam.
12191         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
12192         (main): use mkstemp instead of tmpnam.
12193         * stdlib/isomac.c (macrofile): Change to modifiable array.
12194         (main): Remove macrofile here.
12195         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
12196         macrofile here.
12197         (check_header): Do not remove macrofile here.
12199 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12201         * manual/tunables.texi: Document glibc.tune.x86_ibt and
12202         glibc.tune.x86_shstk.
12204 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12206         * NEWS: Mention --enable-cet.
12207         * manual/install.texi: Document --enable-cet.
12208         * INSTALL: Regenerated.
12210 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12212         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
12213         Add _CET_NOTRACK before indirect jump to jump table.
12215 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12217         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
12218         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12219         to jump table.
12221 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12223         * sysdeps/i386/i686/multiarch/strcat-sse2.S
12224         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12225         to jump table.
12227 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12229         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
12230         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12231         to jump table.
12233 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12235         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
12236         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12237         to jump table.
12239 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12241         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
12242         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12243         to jump table.
12244         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
12246 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12248         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
12249         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12250         to jump table.
12252 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12254         * sysdeps/i386/i686/multiarch/memset-sse2.S
12255         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12256         to jump table.
12258 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12260         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
12261         indirect jump to jump table.
12263 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12265         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
12266         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12267         to jump table.
12268         (MEMCPY): Likewise.
12270 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12272         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
12273         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12274         to jump table.
12275         (MEMCPY): Likewise.
12277 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12279         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12280         _CET_NOTRACK before indirect jump to jump table.
12282 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12284         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
12285         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12286         to jump table.
12288 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12290         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
12291         indirect jump to jump table.
12293 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
12295         [BZ #22241]
12296         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
12297         (LOCALES): Likewise.
12298         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
12299         * localedata/locales/sah_RU: New file.
12300         * localedata/sah_RU.UTF-8.in: New file.
12302 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12304         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12305         "sysdep.h".
12306         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
12307         _CET_ENDBR to indirect jump targets and adjust jump destination
12308         for _CET_ENDBR.
12309         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
12310         "sysdep.h".
12311         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
12312         _CET_ENDBR to indirect jump targets and adjust jump destination
12313         for _CET_ENDBR.
12314         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
12315         "sysdep.h".
12316         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
12317         _CET_ENDBR to indirect jump targets and adjust jump destination
12318         for _CET_ENDBR.
12320 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12322         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12323         _CET_ENDBR.
12325 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12327         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12328         _CET_ENDBR.
12329         (_dl_tlsdesc_undefweak): Likewise.
12330         (_dl_tlsdesc_dynamic): Likewise.
12331         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12332         (_dl_tlsdesc_resolve_rel): Likewise.
12333         (_dl_tlsdesc_resolve_rela): Likewise.
12334         (_dl_tlsdesc_resolve_hold): Likewise.
12335         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12336         (_dl_tlsdesc_undefweak): Likewise.
12337         (_dl_tlsdesc_dynamic): Likewise.
12338         (_dl_tlsdesc_resolve_rela): Likewise.
12339         (_dl_tlsdesc_resolve_hold): Likewise.
12341 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12343         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12344         (_fini): Likewise.
12345         * sysdeps/x86_64/crti.S (_init): Likewise.
12346         (_fini): Likewise.
12348 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
12350         [BZ #23140]
12351         * localedata/locales/os_RU (mon): Rename to...
12352         (alt_mon): This.
12353         (mon): Import from CLDR (genitive case).
12355 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12357         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12358         cet-tunables.h> when CET is enabled.
12360 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12362         [BZ #21598]
12363         * configure.ac: Add --enable-cet.
12364         * configure: Regenerated.
12365         * elf/Makefille (all-built-dso): Add a comment.
12366         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12367         Include <dl-prop.h>.
12368         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12369         segment.
12370         * elf/dl-open.c: Include <dl-prop.h>.
12371         (dl_open_worker): Call _dl_open_check.
12372         * elf/rtld.c: Include <dl-prop.h>.
12373         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
12374         _rtld_main_check.
12375         * sysdeps/generic/dl-prop.h: New file.
12376         * sysdeps/i386/dl-cet.c: Likewise.
12377         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12378         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12379         * sysdeps/x86/cet-tunables.h: Likewise.
12380         * sysdeps/x86/check-cet.awk: Likewise.
12381         * sysdeps/x86/configure: Likewise.
12382         * sysdeps/x86/configure.ac: Likewise.
12383         * sysdeps/x86/dl-cet.c: Likewise.
12384         * sysdeps/x86/dl-procruntime.c: Likewise.
12385         * sysdeps/x86/dl-prop.h: Likewise.
12386         * sysdeps/x86/libc-start.h: Likewise.
12387         * sysdeps/x86/link_map.h: Likewise.
12388         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12389         _CET_ENDBR.
12390         (_dl_runtime_profile): Likewise.
12391         (_dl_runtime_resolve_shstk): New.
12392         (_dl_runtime_profile_shstk): Likewise.
12393         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12394         if CET is enabled.
12395         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12396         (CFLAGS-.os): Likewise.
12397         (CFLAGS-.op): Likewise.
12398         (CFLAGS-.oS): Likewise.
12399         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12400         is enabled.
12401         (tests-special): Add $(objpfx)check-cet.out.
12402         (cet-built-dso): New.
12403         (+$(cet-built-dso:=.note)): Likewise.
12404         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12405         ($(objpfx)check-cet.out): New.
12406         (generated): Add check-cet.out.
12407         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12408         <cet-tunables.h>.
12409         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12410         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12411         (init_cpu_features): Call get_cet_status to check CET status
12412         and update dl_x86_feature_1 with CET status.  Call
12413         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12414         (set_x86_shstk).  Disable and lock CET in libc.a.
12415         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12416         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12417         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12418         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12419         (_CET_ENDBR): Define if not defined.
12420         (ENTRY): Add _CET_ENDBR.
12421         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12422         x86_shstk.
12423         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12424         _CET_ENDBR.
12425         (_dl_runtime_profile): Likewise.
12427 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
12429         [BZ #21895]
12430         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12431         restore r2 on longjmp.
12432         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12433         test list.
12434         Added rules to build test tst-setjmp-bug21895-static.
12435         Added module setjmp-bug21895 and rules to build a shared object from it.
12436         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12437         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12439 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
12441         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12442         * benchtests/bench-strstr.c: Likewise.
12443         * string/memmem.c (FASTSEARCH): Define.
12444         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12445         Add support for FASTSEARCH.
12446         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12447         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12448         (FASTSEARCH): Define.
12449         * string/test-strcasestr.c: Rename __strnlen to strnlen.
12450         * string/test-strstr.c: Likewise.
12452 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
12454         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12455         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12457 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12458             H.J. Lu  <hongjiu.lu@intel.com>
12460         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12461         (__longjmp): Restore shadow stack pointer if shadow stack is
12462         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12463         isn't defined for __longjmp_cancel.
12464         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12465         (_setjmp): Save shadow stack pointer if shadow stack is enabled
12466         and SHADOW_STACK_POINTER_OFFSET is defined.
12467         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12468         (setjmp): Save shadow stack pointer if shadow stack is enabled
12469         and SHADOW_STACK_POINTER_OFFSET is defined.
12470         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12471         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12472         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12473         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12474         <jmp_buf-ssp.h>.
12475         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12476         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12477         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12478         Remove jmp_buf-ssp.sym.
12479         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12480         <jmp_buf-ssp.h>.
12481         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12482         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12483         * sysdeps/x86/Makefile (gen-as-const-headers): Add
12484         jmp_buf-ssp.sym.
12485         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12486         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12487         (__longjmp): Restore shadow stack pointer if shadow stack is
12488         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12489         isn't defined for __longjmp_cancel.
12490         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12491         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12492         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12494 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12496         [BZ #22563]
12497         * nptl/pthread_create.c: Include <tls-setup.h>.
12498         (__pthread_create_2_1): Call tls_setup_tcbhead.
12499         * sysdeps/generic/tls-setup.h: New file.
12500         * sysdeps/x86/nptl/tls-setup.h: Likewise.
12501         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12502         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12503         Likewise.
12504         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12505         to feature_1.
12506         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12507         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12508         (X86_FEATURE_1_SHSTK): Likewise.
12509         (CET_ENABLED): Likewise.
12510         (IBT_ENABLED): Likewise.
12511         (SHSTK_ENABLED): Likewise.
12513 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
12515         [BZ #23208]
12516         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12517         (LOCALES): Likewise.
12518         * localedata/dsb_DE.UTF-8.in: New file.
12519         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12521 2018-07-12  Florian Weimer  <fweimer@redhat.com>
12523         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12524         __mprotect, not mprotect.
12526 2018-07-11  Florian Weimer  <fweimer@redhat.com>
12528         * io/Makefile (headers): Add bits/statx.h.
12530 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
12532         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12533         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12534         and headers.
12535         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12536         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12537         for utf8_gen.py
12539 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12541         * io/Makefile (routines): Add statx.
12542         (tests-internal): Add tst-statx.
12543         * io/Versions (GLIBC_2.28): Export statx.
12544         * io/bits/statx.h: New file.
12545         * io/sys/stat.h [__USE_GNU]: Include it.
12546         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12547         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12548         Define.
12549         * io/statx.c: New file.
12550         * io/statx_generic.: Likewise.
12551         * io/tst-statx.: Likewise.
12552         * include/bits/statx.h: Likewise.
12553         * sysdeps/unix/sysv/linux/kernel-features.h
12554         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12555         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12556         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12557         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12558         Undefine.
12559         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12560         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12561         * sysdeps/unix/sysv/linux/statx.c: New file.
12562         * manual/filesys.texi: Note that statx is undocumented.
12563         * sysdeps/**/libc*.abilist: Update.
12565 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12567         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12568         a kernel issue which lead to test failure in some cases.
12570 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12572         [BZ #23036]
12573         * posix/regexec.c (check_node_accept_bytes): When comparing
12574         weights, do not compare an extra byte after the end of the
12575         weights.
12577 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12579         * libio/readline.c: Fix copyright year.
12580         * libio/tst-readline.c Likewise.
12581         * nss/tst-nss-files-hosts-getent.c: Likewise.
12583 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12585         [BZ #18991]
12586         * nss/nss_files/files-XXX.c (internal_getent): Use
12587         __libc_readline_unlocked.  Seek back to the start of the line if
12588         parsing failes with ERANGE.
12589         (get_contents_ret, get_contents): Remove.
12590         * nss/tst-nss-files-hosts-getent.c: New file.
12591         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12592         (tst-nss-files-hosts-getent): Link with -ldl.
12594 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12596         * include/stdio.h (__libc_readline_unlocked): Declare.
12597         (__ftello64, __fseeko64): Declare aliases.
12598         * libio/readline.c: New file.
12599         * libio/tst-readline.c: Likewise.
12600         (routines): Add readline.
12601         (tests-internal): Add tst-readlime.
12602         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12603         __libc_readline_unlocked.
12604         * libio/fseeko.c (__fseeko): Rename from fseeko.
12605         (fseeko): Add alias.
12606         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12607         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12608         (fseeko64): Add alias.
12609         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12610         * libio/ftello64.c (__ftello64): Rename from ftello64.
12611         (ftello64): Add alias.
12613 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12615         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12616         HWCAP_ATOMICS.
12618 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12620         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12621         Use dl_hwcap without masking.
12622         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12623         Remove HWCAP_CPUID.
12625 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12627         * conform/conformtest.pl (checknamespace): Escape literal braces
12628         in regular expressions.
12630 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
12632         * sysdeps/x86/cpu-features.c (get_common_indeces):
12633         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12634         * sysdeps/x86/cpu-features.c (init_cpu_features):
12635         AVX_Fast_Unaligned_Load is disabled for Excavator core.
12637 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12639         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12640         protector.
12641         (CFLAGS-elf-init.oS): Likewise.
12643 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12644             Carlos O'Donell  <carlos@redhat.com>
12646         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12647         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
12648         with stack protector enabled because there is no risk of infinite
12649         recursion.
12651 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
12653         [BZ #19818]
12654         [BZ #23307]
12655         * libc-abis (ABSOLUTE): New ABI.
12656         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12657         * NEWS: Mention the new ABI.
12659 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12661         [BZ # 17662]
12662         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12663         (RENAME_WHITEOUT): Define.
12664         [__USE_GNU] (renameat2): Declare.
12665         * stdio-common/Makefile (routines): Add renameat2.
12666         (tests): Add tst-renameat2.
12667         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12668         * stdio-common/renameat2.c: New file.
12669         * stdio-common/tst-renameat2.c: Likewise.
12670         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12671         * manual/filesys.texi (Temporary Files): Note that renameat2 is
12672         undocumented.
12673         * sysdeps/unix/sysv/linux/kernel-features.h
12674         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12675         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12676         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12677         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12678         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12679         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12680         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12681         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12682         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12683         * include/stdio.h (__renameat): Add alias for renameat.
12684         * stdio-common/renameat.c (__renameat): Rename from renameat.
12685         Add hidden definition and alias.
12686         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12687         * sysdeps/mach/hurd/renameat.c: Likewise.
12688         * sysdeps/**/libc*.abilist: Add renameat2.
12690 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12692         * posix/bug-regex33.c: Fix build after regex sync.
12694 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
12696         [BZ #23164]
12697         * localedata/tst-langinfo-setlocale.c: New file.
12698         * localedata/tst-langinfo-setlocale-static.c: New file.
12699         * localedata/tst-langinfo-newlocale.c: New file.
12700         * localedata/tst-langinfo-newlocale-static.c: New file.
12701         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12702         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12703         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12704         (tests-static): Remove tst-langinfo-static. Add
12705         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12706         (tests-special): Remove $(objpfx)tst-langinfo.out,
12707         $(objpfx)tst-langinfo-static.out. Add
12708         $(objpfx)tst-langinfo-setlocale.out,
12709         $(objpfx)tst-langinfo-newlocale.out,
12710         $(objpfx)tst-langinfo-setlocale-static.out,
12711         $(objpfx)tst-langinfo-newlocale-static.out.
12712         ($(objpfx)tst-langinfo.out): Remove.
12713         ($(objpfx)tst-langinfo-static.out): Remove.
12714         ($(objpfx)tst-langinfo-newlocale.out): New target.
12715         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12716         (test-xfail-tst-langinfo-newlocale-static): Add.
12717         ($(objpfx)tst-langinfo-setlocale.out): New target.
12718         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12719         * localedata/tst-langinfo.c: Call test_locale.
12720         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12721         data.
12723 2018-07-04  Florian Weimer  <fweimer@redhat.com>
12725         testrun.sh: Implement --tool=strace, --tool=valgrind
12726         * Makefile (testrun-script): Define variable.
12727         (testrun.sh): Use variable.
12728         * manual/install.texi (Tools for Compilation): make 4.0 or later
12729         is required.
12730         * configure.ac: Check for make 4.0 or later.
12731         * INSTALL: Regenerate.
12732         * configure: Likewise.
12734 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12736         [BZ #23233]
12737         [BZ #21163]
12738         [BZ #18986]
12739         [BZ #13762]
12740         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12741         * posix/PCRE.tests: Remove invalid test.
12742         * posix/bug-regex28.c: Fix expected values for used syntax.
12743         * posix/bug-regex37.c: New file.
12744         * posix/bug-regex38.c: Likewise.
12745         * posix/regcomp.c: Sync with gnulib.
12746         * posix/regex.c: Likewise.
12747         * posix/regex.h: Likewise.
12748         * posix/regex_internal.c: Likewise.
12749         * posix/regex_internal.h: Likewise.
12750         * posix/regexec.c: Likewise.
12752 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
12754         [BZ #23308]
12755         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12756         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12757         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12758         * localedata/unicode-gen/PropList.txt: likewise.
12759         * localedata/unicode-gen/UnicodeData.txt: likewise.
12760         * localedata/charmaps/UTF-8: Regenerate.
12761         * localedata/locales/i18n_ctype: likewise.
12762         * localedata/locales/tr_TR: likewise.
12763         * localedata/locales/translit_circle: likewise.
12764         * localedata/locales/translit_cjk_compat: likewise.
12765         * localedata/locales/translit_combining: likewise.
12766         * localedata/locales/translit_compat: likewise.
12767         * localedata/locales/translit_font: likewise.
12768         * localedata/locales/translit_fraction: likewise.
12770 2018-07-03  Florian Weimer  <fweimer@redhat.com>
12772         [BZ #23363]
12773         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12774         * stdio-common/tst-printf.sh: Adjust expected output.
12775         * LICENSES: Update.
12777 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12779         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12780         symbol.
12782 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12784         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12785         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12786         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12787         * stdio-common/tst-printfsz-islongdouble.c: New file.
12788         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12789         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12790         [subdir == stdio-common] (routines): Add ieee128-printf_size.
12791         [subdir == stdio-common] (tests-internal): Add
12792         test-printf-size-ieee128, and test-printf-size-ibm128.
12793         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12794         (CFLAGS-test-printf-size-ibm128.c): New variables.
12795         [subdir == stdio-common] (tests-special): Add
12796         $(objpfx)test-printf-size-ieee128.out and
12797         $(objpfx)test-printf-size-ibm128.out.
12798         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12799         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12800         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12801         __printf_sizeieee128.
12802         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12803         New file.
12804         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12805         Likewise.
12806         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12807         Likewise.
12809 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12811         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12812         (exp2f_inline): Likewise.
12813         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12814         (__math_uflowf): Likewise.
12815         (__math_may_uflowf): Likewise.
12816         (__math_divzerof): Likewise.
12817         (__math_invalidf): Likewise.
12818         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12819         (__math_oflowf): Likewise.
12820         (__math_uflowf): Likewise.
12821         (__math_may_uflowf): Likewise.
12822         (__math_divzerof): Likewise.
12823         (__math_invalidf): Likewise.
12825 2018-06-29  DJ Delorie  <dj@redhat.com>
12826             Carlos O'Donell  <carlos@redhat.com>
12828         [BZ #23329]
12829         * include/libc-symbols.h: Comment the freeres framework.
12830         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
12831         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12832         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12833         * dlfcn/dlerror.c: Include libc-symbols.h
12834         (__dlerror_main_freeres): New function.
12835         * dlfcn/dlfreeres.c: New file.
12836         * dlfcn/sdlfreeres.c: New file.
12837         * include/dlfcn.h: Declare __dlerror_main_freeres.
12838         * malloc/set-freeres.c: Declare __libdl_freeres, and
12839         __libpthread_freeres.
12840         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12841         the releavant libraries are loaded.
12842         * malloc/thread-freeres.c: Add comments.
12843         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12844         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12845         * nptl/allocatestack.c (__nptl_free_stacks): New function.
12846         (__free_stacks): Rename to...
12847         (free_stacks): ...this. Mark static.
12848         (queue_stack): Call free_stacks.
12849         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12850         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12851         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12852         ptr_freeres element from struct.
12853         (pthread_functions): Remove .ptr_freeres from struct initializer.
12854         [SHARED] (nptl_freeres): Remove.
12855         * nptl/nptlfreeres.c: New file.
12856         * nptl/pthreadP.h
12857         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12858         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
12859         attribute_hidden.
12860         (__free_stacks): Rename to...
12861         (__nptl_stacks_freeres): ...this.
12862         (__shm_directory_freeres): Declare.
12863         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12864         (__nptl_unwind_freeres): ...this.
12865         * resolv/res-close.c: Add comment.
12866         * resolv/resolv_conf.c: Include libc-symbols.h.
12867         * string/strerror_l.c: Include libc-symbols.h.
12868         * sunrpc/rpc_thread.c: Include libc-symbols.h.
12869         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12870         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12871         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12873 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12875         * stdlib/tst-strfmon_l.c: Add tests for long double.
12877 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
12879         [BZ #23208]
12880         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12881         * localedata/locales/dsb_DE: New file.
12883 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12885         [BZ #23140]
12886         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12887         genitive case).
12888         (alt_mon): New entry, import from CLDR (nominative case).
12890 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
12892         [BZ #22996]
12893         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12895 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12897         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12898         Use vector registers.
12900         * sysdeps/aarch64/multiarch/memmove_falkor.S
12901         (__memcpy_falkor): Use vector registers.
12903 2018-06-29  Martin Sebor  <msebor@redhat.com>
12905         * manual/stdio.texi (Customizing Printf): Mention interaction
12906         with GCC built-ins.
12908 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
12910         [BZ #23307]
12911         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12912         `st_value' is 0 if `st_shndx' is SHN_ABS.
12913         * elf/tst-absolute-zero.c: New file.
12914         * elf/tst-absolute-zero-lib.c: New file.
12915         * elf/tst-absolute-zero-lib.lds: New file.
12916         * elf/Makefile (tests): Add `tst-absolute-zero'.
12917         (modules-names): Add `tst-absolute-zero-lib'.
12918         (LDLIBS-tst-absolute-zero-lib.so): New variable.
12919         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12920         ($(objpfx)tst-absolute-zero: New dependency.
12922 2018-06-29  Zack Weinberg  <zackw@panix.com>
12924         * configure.ac: New command-line option --disable-crypt.
12925         Force --disable-nss-crypt when --disable-crypt is given, with a
12926         warning if it was explicitly enabled.
12927         * configure: Regenerate.
12928         * config.make.in: New boolean substitution variable $(build-crypt).
12929         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12930         when $(build-crypt).
12931         * manual/install.texi: Document --disable-crypt.
12932         * INSTALL: Regenerate.
12934         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12935         which is never set.
12936         * conform/Makefile: Only include libcrypt.a in
12937         linknamespace-libs-xsi and linknamespace-libs-XPG4
12938         when $(build-crypt).
12939         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12940         USE_CRYPT to 1 when $(build-crypt).
12941         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12942         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12943         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12945 2018-06-29  Zack Weinberg  <zackw@panix.com>
12947         * crypt/crypt.h, posix/unistd.h: Update comments and
12948         prototypes for crypt and crypt_r.
12950         * manual/crypt.texi (Cryptographic Functions): New initial
12951         exposition.
12952         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
12953         (Unpredictable Bytes): Improve initial exposition.  Clarify error
12954         behavior of getentropy and getrandom.
12955         * manual/examples/genpass.c: Generate a salt using getentropy
12956         instead of the current time. Use hash $5$ (SHA-2-256).
12957         * manual/examples/testpass.c: Demonstrate validation against
12958         hashes generated with three different one-way functions.
12960         * manual/intro.texi: crypt.texi does not need an overview
12961         anymore.
12963         * manual/nss.texi, manual/memory.texi, manual/socket.texi
12964         * manual/terminal.texi: Consistently refer to "passphrases"
12965         * instead of "passwords", and to the "user database" instead
12966         * of the "password database".
12967         * manual/users.texi: Similarly.  Add notes about how actual
12968         passphrase hashes are now stored in the shadow database.
12969         Remove 20-year-old junk todo note.
12971 2018-06-29  Zack Weinberg  <zackw@panix.com>
12973         * manual/crypt.texi: Use a normal top-level @node declaration.
12974         Move most of the introductory text to the 'crypt' section.
12975         Move the example programs below the @deftypefun for 'crypt_r'.
12976         Move the 'getpass' section...
12977         * manual/terminal.texi: ...here.
12979 2018-06-29  Zack Weinberg  <zackw@panix.com>
12980             Florian Weimer <fweimer@redhat.com>
12982         * posix/unistd.h: Do not declare encrypt.
12983         (_XOPEN_CRYPT): Remove macro definition.
12984         (crypt): Declare only for _USE_MISC.
12985         * stdlib/stdlib.h: Do not declare setkey.
12986         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12987         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12989         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12990         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12991         into compat symbols.  Don't define initial_perm if it's not
12992         going to be used.
12993         * crypt/cert.c: Link explicitly with the expected versions for
12994         setkey and encrypt.  If they are not available at all, mark
12995         the test as unsupported.
12997         * sunrpc/des_crypt.c: Unconditionally block linkage with
12998         cbc_crypt and ecb_crypt for new binaries.
12999         * sunrpc/des_soft.c: Unconditionally block linkage with
13000         des_setparity for new binaries.
13002         * manual/crypt.texi: Remove the entire "DES Encryption"
13003         section.  Also remove the paragraph talking about FIPS 140-2
13004         from the introduction.
13005         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
13006         of libgcrypt for "real" encryption, not DES.
13007         * manual/conf.texi (Constants for Sysconf): Mention that
13008         _XOPEN_CRYPT is no longer impelemented.
13010         * conform/data/unistd.h-data: Remove crypt function declaration.
13012 2018-06-29  Florian Weimer  <fweimer@redhat.com>
13014         [BZ #23351]
13015         * malloc/hooks.c: Update comments on restoring of dumped heaps.
13016         (disallow_malloc_check): Remove variable.
13017         (__malloc_check_init): Adjust.
13018         (malloc_set_state): Update comment.
13019         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
13020         declarations.
13022 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
13024         [BZ #23140]
13025         * localedata/locales/ast_ES (mon): Rename to...
13026         (alt_mon): This.
13027         (mon): Import from CLDR (genitive case).
13029 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
13030             Jakub Sitnicki  <jkbs@redhat.com>
13032         [BZ #21812]
13033         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
13034         on NLM_F_DUMP_INTR.
13036 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13038         * manual/llio.texi: Remove spurious space.
13040 2018-06-28  Florian Weimer  <fweimer@redhat.com>
13042         [BZ #23349]
13043         * time/bits/types/struct_timespec.h: Change header inclusion guard to
13044         _STRUCT_TIMESPEC.
13046 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13048         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
13049         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
13050         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
13051         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
13052         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
13053         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
13054         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
13056 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
13058         [BZ #23266]
13059         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
13060         Copy and null-terminate entries that are not terminated, in
13061         addition to empty ones.
13063 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13065         [BZ #18023]
13066         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
13067         (extend_alloca_account): Remove.
13068         * manual/stdio.texi (Variable Arguments Output): Update comment.
13070 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
13072         * nptl/sockperf.c: Remove file.
13074 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13076         [BZ #18023]
13077         * elf/dl-deps.c (_dl_map_object_deps): Use struct
13078         scratch_buffer instead of extend_alloca.
13080 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13082         [BZ #18023]
13083         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
13084         scratch_buffer instead of extend_alloca.  Update comments.
13086 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13088         [BZ #18023]
13089         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
13090         instead of extend_alloca.
13092 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
13094         [BZ #13888]
13095         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
13096         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
13097         /tmp.
13098         * scripts/test-installation.pl: Put temporary files in build
13099         directory, not /tmp.
13100         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
13101         (CFLAGS-bug4.c): Likewise.
13102         (CFLAGS-bug5.c): Likewise.
13103         (CFLAGS-test-fseek.c): Likewise.
13104         (CFLAGS-test-popen.c): Likewise.
13105         (CFLAGS-test_rdwr.c): Likewise.
13106         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
13107         /tmp.
13108         * stdio-common/bug4.c (main): Likewise.
13109         * stdio-common/bug5.c (main): Likewise.
13110         * stdio-common/test-fseek.c (TESTFILE): Likewise.
13111         * stdio-common/test-popen.c (do_test): Likewise.
13112         * stdio-common/test_rdwr.c (main): Likewise.
13114 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
13116         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
13117         (sem_open): Set sem.newsem.pad to zero for valgrind.
13119 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13121         [BZ #20251]
13122         * NEWS: Mention fcntl64 addition.
13123         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
13124         * login/utmp_file.c: Likewise.
13125         * sysdeps/posix/fdopendir.c: Likewise.
13126         * sysdeps/posix/opendir.c: Likewise.
13127         * sysdeps/unix/pt-fcntl.c: Likewise.
13128         * include/fcntl.h (__libc_fcntl64, __fcntl64,
13129         __fcntl64_nocancel_adjusted): New prototype.
13130         (__fcntl_nocancel_adjusted): Remove prototype.
13131         * io/Makefile (routines): Add fcntl64.
13132         (CFLAGS-fcntl64.c): New rule.
13133         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
13134         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
13135         * io/fcntl.h (fcntl64): Add prototype and redirect if
13136         __USE_FILE_OFFSET64 is defined.
13137         * io/fcntl64.c: New file.
13138         * manual/llio.text: Add a note for which commands fcntl acts a
13139         cancellation point.
13140         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
13141         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
13142         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
13143         New symbols.
13144         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
13145         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
13146         non-LFS case.
13147         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
13148         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
13149         to __fcntl64_nocancel.
13150         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
13151         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
13152         to __fcntl64_nocancel.
13153         * sysdeps/generic/not-cancel.h: Likewise.
13154         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
13155         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
13156         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
13157         (fcntl64): New symbol.
13158         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13159         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13160         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13163         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13164         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13165         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13166         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13167         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13168         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
13169         fcntl64): Likewise.
13170         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13171         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
13172         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13173         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13174         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13175         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13176         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13177         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13178         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13180         Likewise.
13181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13182         Likewise.
13183         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13184         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13185         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13187 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13189         Run thread shutdown functions in an explicit order.
13190         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
13191         definition.
13192         (__libc_thread_freeres): Call thread shutdown functions
13193         explicitly.
13194         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
13195         * include/string.h (__strerror_thread_freeres): Declare.
13196         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
13197         arena_thread_freeres.  No longer static.  Remove thread shutdown
13198         hook registration.
13199         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
13200         Declare.
13201         * resolv/res-close.c (__res_thread_freeres): Renamed from
13202         res_thread_freeres.  No longer static.  Remove thread shutdown
13203         hook registration.
13204         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
13205         * resolv/resolv_conf.c (freeres): Remove incorrect section
13206         attribute and use libc_freeres_fn.
13207         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
13208         strerror_thread_freeres.  No longer static.  Remove thread
13209         shutdown hook registration.
13210         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
13211         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
13212         shutdown hook registration.
13213         * Makerules (shlib.lds): Do not provide section boundary symbols
13214         for __libc_thread_subfreeres.
13215         * manual/memory.texi (Basic Allocation): Update comment.
13217 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13219         Remove always-defined _RPC_THREAD_SAFE_ macro.
13220         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
13221         Do not define _RPC_THREAD_SAFE_.
13222         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
13223         conditional.
13224         * sunrpc/clnt_perr.c: Likewise.
13225         * sunrpc/clnt_raw.c: Likewise.
13226         * sunrpc/clnt_simp.c: Likewise.
13227         * sunrpc/key_call.c: Likewise.
13228         * sunrpc/rpc_common.c: Likewise.
13229         * sunrpc/rpc_main.c: Likewise.
13230         * sunrpc/rpc_thread.c: Likewise.
13231         * sunrpc/svc.c: Likewise.
13232         * sunrpc/svc_raw.c: Likewise.
13233         * sunrpc/svc_simple.c: Likewise.
13234         * sumrpc/svcauth_des.c: Likewise.
13236 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13238         * libio/Makefile (tests-internal): Add tst-vtables,
13239         tst-vtables-interposed.
13240         * libio/tst-vtables.c: New file.
13241         * libio/tst-vtables-common.c: Likewise.
13242         * libio/tst-vtables-interposed.c: Likewise.
13244 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13246         * support/support_test_main.c (support_test_main): Only call
13247         setvbuf if not disables.
13248         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
13249         * support/test-driver.h (struct test_config): Add no_setvbuf member.
13251 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13253         [BZ #23313]
13254         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
13256 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13258         [BZ #18023]
13259         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13260         Use struct scratch_buffer instead of extend_alloca.
13262 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13264         [BZ #18023]
13265         * nss/getent.c (initgroups_keys): Use dynarray instead of
13266         extend_alloca.
13268 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13270         [BZ #18023]
13271         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
13272         Use struct scratch_buffer instead of extend_alloca.
13274 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13276         [BZ #18023]
13277         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
13278         back to malloc directly, without stack allocations.
13280 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13282         [BZ #18023]
13283         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
13284         of extend_alloca.
13286 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13288         [BZ #18023]
13289         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
13290         of extend_alloca.
13291         * nscd/hstcache.c (addhstbyX): Likewise.
13292         * nscd/pwdcache.c (addpwbyX): Likewise.
13293         * nscd/servicescache.c (addservbyX): Likewise.
13295 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13297         [BZ #18023]
13298         * nscd/connections.c (read_cmdline): New function.
13299         (restart): Use it.  Update comment.
13301 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
13303         [BZ #23140]
13304         * localedata/locales/csb_PL (mon): Rename to...
13305         (alt_mon): This.
13306         (abmon): Rename to...
13307         (ab_alt_mon): This.
13308         (mon): Add with proper genitive forms, copy from Wikipedia.
13309         (abmon): Likewise.
13311 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
13313         [BZ #19485]
13314         * localedata/locales/csb_PL (mon): Fix typos:
13315         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13316         (yesstr): Add, value is "jo".
13317         (nostr): Add, value is "nié".
13319 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13321         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13322         all log1p and significand functions on m680x0.
13323         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13324         of s_significand.c..
13325         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13326         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13327         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13328         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13329         s_log1p.c and include it..
13331 2018-06-21  Vincent Chen  <vincentc@andestech.com>
13333         * elf/elf.h (R_NDS32_NONE): New define.
13334         (R_NDS32_32_RELA): Likewise.
13335         (R_NDS32_COPY): Likewise.
13336         (R_NDS32_GLOB_DAT): Likewise.
13337         (R_NDS32_JUMP_SLOT): Likewise.
13338         (R_NDS32_RELATIVE): Likewise.
13339         (R_NDS32_TLS_TPOFF): Likewise.
13340         (R_NDS32_TLS_DESC): Likewise.
13342 2018-06-21  Mark Wielaard  <mark@klomp.org>
13344         * elf/elf.h (R_BPF_MAP_FD): Removed.
13345         (R_BPF_64_64, R_BPF_64_32): New.
13347 2018-06-21  Florian Weimer  <fweimer@redhat.com>
13349         [BZ #23253]
13350         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13351         Renamed from libc_feholdsetround_ctx.
13352         (default_libc_feresetround_ctx): Renamed from
13353         libc_feresetround_ctx.
13354         (default_libc_feholdsetround_noex_ctx): Renamed from
13355         libc_feholdsetround_noex_ctx.
13356         (default_libc_feresetround_noex_ctx): Renamed from
13357         libc_feresetround_noex_ctx.
13358         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13359         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13360         forwardning to the old implementations under the new names.
13361         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13362         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13363         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13364         (libc_feresetround_ctx): Forward to default implements for i386
13365         and MATH_SET_BOTH_ROUNDING_MODES.
13366         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13367         Add -DMATH_SET_BOTH_ROUNDING_MODES.
13369 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
13371         * string/tst-cmp.c: Include <libc-diag.h>.
13372         (strncmp_max): Disable -Wstringop-overflow= around call to
13373         strncmp.
13374         (strncasecmp_max): Disable -Wstringop-overflow= around call to
13375         strncasecmp.
13377         * string/bug-strpbrk1.c: Include <libc-diag.h>.
13378         (main): Disable -Wunused-value around call to strpbrk.
13379         * string/bug-strspn1.c: Include <libc-diag.h>.
13380         (main): Disable -Wunused-value around call to strspn.
13382 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13383             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13385         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13386         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13388 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13390         * math/Makefile (libm-calls): Move s_significandF to...
13391         (gen-libm-calls): ... here.
13392         * math/s_significand_template.c: New file.
13393         * math/s_significand.c: Removed.
13394         * math/s_significandf.c: Removed.
13395         * math/s_significandl.c: Removed.
13396         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13397         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13399         * math/e_exp2_template.c (declare_mgen_finite_alias,
13400         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13401         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13402         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13404 2018-06-20  Florian Weimer  <fweimer@redhat.com>
13406         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13408 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
13410         [BZ #23280]
13411         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13412         floating-point number to strtod functions rather than possibly
13413         negating result of those functions.
13414         * stdio-common/tst-scanf-round.c: New file.
13415         * stdio-common/Makefile (tests): Add tst-scanf-round.
13416         ($(objpfx)tst-scanf-round): Depend on $(libm).
13418 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13420         * sysdeps/mach/hurd/localplt.data: Move to...
13421         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13422         R_386_GLOB_DAT like on Linux i386.
13424 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13426         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13427         (SHM_STAT_ANY): New macro.
13428         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13429         (SHM_STAT_ANY): Likewise.
13430         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13431         (SHM_STAT_ANY): Likewise.
13432         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13433         (SHM_STAT_ANY): Likewise.
13434         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13435         (SHM_STAT_ANY): Likewise.
13436         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13437         (SHM_STAT_ANY): Likewise.
13438         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13439         (SHM_STAT_ANY): Likewise.
13440         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13441         (SHM_STAT_ANY): Likewise.
13442         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13443         (SHM_STAT_ANY): Likewise.
13444         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13445         (SHM_STAT_ANY): Likewise.
13446         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13447         (SHM_STAT_ANY): Likewise.
13448         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13449         (SHM_STAT_ANY): Likewise.
13451         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13452         (SEM_STAT_ANY): New macro.
13453         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13454         (SEM_STAT_ANY): Likewise.
13455         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13456         (SEM_STAT_ANY): Likewise.
13457         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13458         (SEM_STAT_ANY): Likewise.
13459         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13460         (SEM_STAT_ANY): Likewise.
13461         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13462         (SEM_STAT_ANY): Likewise.
13463         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13464         (SEM_STAT_ANY): Likewise.
13465         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13466         (SEM_STAT_ANY): Likewise.
13467         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13468         (SEM_STAT_ANY): Likewise.
13469         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13470         (SEM_STAT_ANY): Likewise.
13472         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13473         (MSG_STAT_ANY): New macro.
13474         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13475         (MSG_STAT_ANY): Likewise.
13476         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13477         (MSG_STAT_ANY): Likewise.
13478         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13479         (MSG_STAT_ANY): Likewise.
13480         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13481         (MSG_STAT_ANY): Likewise.
13482         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13483         (MSG_STAT_ANY): Likewise.
13484         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13485         (MSG_STAT_ANY): Likewise.
13486         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13487         (MSG_STAT_ANY): Likewise.
13488         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13489         (MSG_STAT_ANY): Likewise.
13490         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13491         (MSG_STAT_ANY): Likewise.
13493         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13494         (MAP_TYPE): Change value to 0x2b.
13496 2018-06-18  Florian Weimer  <fweimer@redhat.com>
13498         [BZ #15722]
13499         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13500         socket with SOCK_CLOEXEC.
13502 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13504         [BZ #23303]
13505         * sysdeps/powerpc/powerpc64/le/Makefile
13506         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13507         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13508         (gnulib-tests): Also add $(f128-loader-link) for
13509         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13511 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13513         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13514         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13515         of sendfile.
13516         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13517         (sendfile64): New strong alias.
13518         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13519         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13520         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13521         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13522         attribute.
13523         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13524         ___pthread_get_cleanup_stack.
13525         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13526         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13527         * mach/shortcut.awk: Make syscall stubs include
13528         <mach-shortcuts-hidden.h> and add hidden definition.
13529         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13530         (__mach_msg): Add hidden prototype.
13531         * mach/msg.c: Include <mach.h>.
13532         (__mach_msg): Add hidden definition.
13533         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13534         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13535         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13536         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13537         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13538         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13539         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13540         prototype and definition.
13541         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13542         hidden target for _hurd_self_sigstate.
13544 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
13546         [BZ #23007]
13547         * stdlib/tst-strtod-nan-sign-main.c: New file.
13548         * stdlib/tst-strtod-nan-sign.c: Likewise.
13549         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13550         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13551         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13552         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13553         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13555 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
13557         [BZ #23007]
13558         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13559         appropriate sign.
13561 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13563         [BZ #23290]
13564         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13565         that the result stays within the ISO-8859-1 range.
13566         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13567         characters are defined in IBM273.
13569 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13571         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13572         __mach_task_self): Remove attribute_hidden.
13574 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
13576         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13577         ignore -Wrestrict for one test.
13579 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
13580             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13582         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13584 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13586         * scripts/update-abilist.sh: Accept empty list of files to patch.
13588 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13590         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13591         test-xfail-check-abi-libmachuser): Add.
13592         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13593         __libc_read and __libc_write to __read and __write.
13594         * sysdeps/hurd/include/hurd/port.h: New file.
13595         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13596         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13597         __thread_switch, __evc_wait): Move declarations to...
13598         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13599         attribute_hidden.
13600         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13601         use PLT to call _hurd_self_sigstate.
13603 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
13605         [BZ #23279]
13606         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13607         MAX_EXP as overflowing.
13608         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13609         overflow flag.
13610         (round_str): Output also whether result overflows in each rounding
13611         mode.
13612         * stdlib/tst-strtod-round-data: Add more tests.
13613         * stdlib/tst-strtod-round-data.h: Regenerated.
13614         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13615         (TEST): Handle extra arguments for overflow flags.
13616         (struct test_overflow): New type.
13617         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13618         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
13619         (test_in_one_mode): Take argument with overflow information.
13620         (do_test): Update calls to test_in_one_mode.
13622 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13624         * elf/dl-load (_dl_dst_substitute): Correct comment.
13625         (_dl_dst_count): Likewise.
13627         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13628         lll_futex_timed_wait.
13630 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
13632         [BZ #23277]
13633         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13634         attribute.
13635         * math/test-nan-const.c: New file.
13636         * math/Makefile (tests): Add test-nan-const.
13637         (CFLAGS-test-nan-const.c): New variable.
13639 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13641         * benchtests/scripts/compare_strings.py (process_results): Add
13642         funcs argument.  Compare only functions which are selected.
13643         (main): Check if base function is among selected functions.
13644         Pass selected functions to process_results.
13645         (__main__): Add -f/--functions argument.
13647 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
13648             Hongbo Zhang  <hongbo.zhang@linaro.org>
13650         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13651         __memcpy_falkor for phecda core.
13652         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13653         __memmove_falkor for phecda core.
13654         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13655         __memset_falkor for phecda core.
13656         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13657         for phecda core.
13658         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13659         macro to identify phecda core.
13661 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13662             Andreas Schwab  <schwab@suse.de>
13663             Dmitry V. Levin  <ldv@altlinux.org>
13664             Florian Weimer  <fweimer@redhat.com>
13666         [BZ #23102]
13667         [BZ #21942]
13668         [BZ #18018]
13669         [BZ #23259]
13670         CVE-2011-0536
13671         * elf/dl-dst.h: Remove DL_DST_COUNT.
13672         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13673         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13674         (is_dst): Comment.  Support ELF gABI.
13675         (_dl_dst_count): Comment.  Simplify and count DSTs.
13676         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
13677         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13678         locals.
13680 2018-06-12  Zack Weinberg  <zackw@panix.com>
13682         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13683         * sysdeps/unix/sysv/linux/dl-sysdep.c
13684         Include not-cancel.h.  Use __close_nocancel instead of __close,
13685         __open64_nocancel instead of __open, __read_nocancel instead of
13686         __libc_read, and __write_nocancel instead of __libc_write.
13688         * csu/check_fds.c (check_one_fd)
13689         * sysdeps/posix/fdopendir.c (__fdopendir)
13690         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13691         instead of __fcntl and/or __libc_fcntl.
13693         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13694         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13695         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13696         Use __open64_nocancel instead of __open_nocancel.
13698         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13699         hidden_proto declarations to the end and issue them if either
13700         IS_IN(libc) or IS_IN(rtld).
13701         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13702         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13703         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13704         read_nocancel, waitpid_nocancel, write_nocancel.
13706         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13707         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13708         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13710         * nptl/pt-fcntl.c: New file.
13711         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13712         (libpthread-routines): Add pt-fcntl.
13713         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13714         (__libc_fcntl): Remove attribute_hidden.
13715         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13716         __fcntl_nocancel_adjusted, not fcntl_common.
13717         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13718         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13719         to fcntl_nocancel.c.
13720         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13723         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13725         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13726         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13727         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13728         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13729         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13730         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13731         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13732         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13733         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13734         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13735         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13736         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13737         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13738         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13739         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13740         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13741         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13742         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13743         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13744         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13746         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13747         libpthread-routines.
13748         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13749         defines nothing.
13751         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13752         __libc_read, and __write instead of __libc_write.  Define
13753         __open64 in addition to __open.
13755 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13757         [BZ #23250]
13758         [BZ #10686]
13759         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13760         to _private_tm[3] and add __glibc_reserved2.
13761         Add _Static_assert of offset of __private_ss == 0x30.
13762         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13763         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13765 2018-06-12  Florian Weimer  <fweimer@redhat.com>
13767         x86: Make strncmp usable from rtld.
13768         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13769         __strncmp_ia32 if in libc (and not in rtld).
13770         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13771         strncmp if not in libc (and not to __strncmp_sse2).
13773 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
13775         [BZ #23140]
13776         * localedata/locales/gd_GB (mon): Rename to...
13777         (alt_mon): This.
13778         (mon): Import from CLDR (genitive case).
13779         * localedata/locales/hsb_DE (mon): Rename to...
13780         (alt_mon): This.
13781         (mon): Import from CLDR (genitive case).
13782         * localedata/locales/wa_BE (mon): Rename to...
13783         (alt_mon): This.
13784         (mon): Add, fill with the proper genitive forms, but CLDR data
13785         is incomplete; completed according to the comments in this file.
13786         (d_t_fmt): Do not use "di" before the month name, no longer needed.
13788         * localedata/locales/wa_BE (country_name): Reword
13789         "Beljike" -> "Beldjike".
13791 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
13793         [BZ #23272]
13794         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13795         cases of non-finite arguments.
13796         * math/libm-test-fma.inc (fma_test_data): Add more tests.
13798 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
13800         [BZ #23174]
13801         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13803 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13805         [BZ #23264]
13806         * include/unistd.h (__execvpex): New prototype.
13807         * posix/Makefile (tests): Add tst-spawn4.
13808         (tests-internal): Add tst-spawn4-compat.
13809         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13810         * posix/tst-spawn4-compat.c: New file.
13811         * posix/tst-spawn4.c: Likewise.
13812         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13813         binaries as shell scripts.
13814         * sysdeps/posix/spawni.c (__spawni): Likewise.
13816 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13818         [BZ #23145]
13819         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13820         ($(all-built-dso:=.dynsym): New target.
13821         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13822         ($(objpfx)check-initfini.out): New target.
13823         (generated): Add check-initfini.out.
13824         * scripts/check-initfini.awk: New file.
13825         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13826         (_fini): Likewise.
13827         * sysdeps/alpha/crti.S (_init): Mark as hidden.
13828         (_fini): Likewise.
13829         * sysdeps/arm/crti.S (_init): Mark as hidden.
13830         (_fini): Likewise.
13831         * sysdeps/hppa/crti.S (_init): Mark as hidden.
13832         (_fini): Likewise.
13833         * sysdeps/i386/crti.S (_init): Mark as hidden.
13834         (_fini): Likewise.
13835         * sysdeps/ia64/crti.S (_init): Mark as hidden.
13836         (_fini): Likewise.
13837         * sysdeps/m68k/crti.S (_init): Mark as hidden.
13838         (_fini): Likewise.
13839         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13840         (_fini): Likewise.
13841         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13842         (_fini): Likewise.
13843         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13844         (_fini): Likewise.
13845         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13846         (_fini): Likewise.
13847         * sysdeps/nios2/crti.S (_init): Mark as hidden.
13848         (_fini): Likewise.
13849         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13850         (_fini): Likewise.
13851         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13852         (_fini): Likewise.
13853         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13854         (_fini): Likewise.
13855         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13856         (_fini): Likewise.
13857         * sysdeps/sh/crti.S (_init): Mark as hidden.
13858         (_fini): Likewise.
13859         * sysdeps/sparc/crti.S (_init): Mark as hidden.
13860         (_fini): Likewise.
13861         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13862         (_fini): Likewise.
13864 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13866         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13867         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13868         and TF redirection to KFtype and KF only when the default
13869         long double type is not the IEEE 128-bit floating point type.
13871 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
13873         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13874         macro.
13875         (HWCAP_USCAT): Likewise.
13876         (HWCAP_ILRCPC): Likewise.
13877         (HWCAP_FLAGM): Likewise.
13878         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13879         Increase to 28.
13880         (_dl_aarch64_cap_flags): Add new flag names.
13882         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13883         (MAP_FIXED_NOREPLACE): New macro.
13884         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13885         (MAP_FIXED_NOREPLACE): Likewise.
13886         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13887         (MAP_FIXED_NOREPLACE): Likewise.
13888         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13889         (MAP_FIXED_NOREPLACE): Likewise.
13890         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13891         (MAP_FIXED_NOREPLACE): Likewise.
13892         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13893         (MAP_FIXED_NOREPLACE): Likewise.
13894         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13895         (MAP_FIXED_NOREPLACE): Likewise.
13896         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13897         (MAP_FIXED_NOREPLACE): Likewise.
13898         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13899         (MAP_FIXED_NOREPLACE): Likewise.
13900         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13901         (MAP_FIXED_NOREPLACE): Likewise.
13902         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13903         (MAP_FIXED_NOREPLACE): Likewise.
13904         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13905         (MAP_FIXED_NOREPLACE): Likewise.
13906         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13907         (MAP_FIXED_NOREPLACE): Likewise.
13908         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13909         (MAP_FIXED_NOREPLACE): Likewise.
13910         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13911         (MAP_FIXED_NOREPLACE): Likewise.
13913         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13914         version to 4.17.
13916 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
13918         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13919         version to 4.17
13921 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13923         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13924         int.
13925         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13927 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13929         * benchtests/scripts/compare_string.py: (process_results) Catch
13930         exception in non-existent base_func and catch exception in
13931         non-existent attribute.
13932         (parse_file) Catch exception if input file does not exist.
13934 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13936         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13937         options to avoid diff calculation and omit header, respectively.
13938         (main): process --no-diff and --no-header
13940 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13941             H.J. Lu  <hongjiu.lu@intel.com>
13943         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13944         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13945         wcsncmp-sse2.
13946         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13947         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13948         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13949         and __wcsncmp_sse2.
13950         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13951         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13952         AVX unaligned load is fast and vzeroupper is preferred.
13953         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13954         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13955         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13956         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13957         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13958         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13959         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13960         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13961         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13962         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13963         is undefined.
13965 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13967         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13968         configuring with --disable-multi-arch, building with
13969         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13970         Haswell-era CPU.
13972 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13974         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13975         results from building with “-march=x86-64 -mtune=generic
13976         -mfpmath=sse” and running on a Haswell-era CPU.
13978 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
13980         [BZ #18473]
13981         * soft-fp/sqrttf2.c: Remove file.
13982         * soft-fp/sqrtdf2.c: Move to ....
13983         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
13984         <shlib-compat.h>.
13985         (__sqrtdf2): Make conditional on
13986         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13987         symbol.
13988         * soft-fp/sqrtsf2.c: Move to ....
13989         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
13990         <shlib-compat.h>.
13991         (__sqrtsf2): Make conditional on
13992         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13993         symbol.
13994         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13995         (gcc-double-routines): Remove sqrtdf2.
13996         (gcc-quad-routines): Remove sqrttf2.
13997         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13998         Do not filter out sqrtsf2 and sqrtdf2.
13999         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
14000         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
14002 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14004         * sysdeps/generic/libcidn.abilist: Remove file.
14006 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14008         [BZ #23236]
14009         * libio/strfile.h (struct _IO_str_fields): Rename members to
14010         discourage their use and add comment.
14011         (_IO_STR_DYNAMIC): Remove unused macro.
14012         * libio/strops.c (_IO_str_init_static_internal): Do not use
14013         callback pointers.  Call malloc and free.
14014         (_IO_str_overflow): Do not use callback pointers.  Call malloc
14015         and free.
14016         (enlarge_userbuf): Likewise.
14017         (_IO_str_finish): Call free.
14018         * libio/wstrops.c (_IO_wstr_init_static): Initialize
14019         _allocate_buffer_unused.
14020         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
14021         and free.
14022         (enlarge_userbuf): Likewise.
14023         (_IO_wstr_finish): Call free.
14024         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
14025         _allocate_buffer_unused, _free_buffer_unused.
14026         * libio/memstream.c (__open_memstream): Likewise.
14027         * libio/vasprintf.c (_IO_vasprintf): Likewise.
14028         * libio/wmemstream.c (open_wmemstream): Likewise.
14030 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14032         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
14033         AMD Ryzen 7 1800X.
14035 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14037         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
14038         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
14039         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
14040         New file.
14041         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
14042         Likewise.
14043         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
14045 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14047         * support/Makefile (libsupport-routines): Add
14048         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
14049         xpthread_barrierattr_setpshared.
14050         * support/xpthread_barrierattr_destroy.c: New file.
14051         * support/xpthread_barrierattr_init.c: Likewise.
14052         * support/xpthread_barrierattr_setpshared.c: Likewise.
14054 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14056         [BZ #23206]
14057         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
14058         _r_debug and update DT_DEBUG for debugger.
14060 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14062         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
14063         (tst-strtod5i.out): Likewise.
14065 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
14067         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
14068         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
14069         (sparc64-quad-routines): New variable.  Moved from ....
14070         [$(subdir) = soft-fp] (sysdep_routines): Add
14071         $(sparc64-quad-routines).  Moved from ....
14072         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
14073         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
14074         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
14075         moved from ....
14076         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
14077         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
14078         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
14079         * sysdeps/sparc/sparc64/qp_add.c: ... here.
14080         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
14081         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
14082         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
14083         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
14084         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
14085         * sysdeps/sparc/sparc64/qp_div.c: ... here.
14086         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
14087         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
14088         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
14089         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
14090         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
14091         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
14092         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
14093         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
14094         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
14095         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
14096         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
14097         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
14098         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
14099         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
14100         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
14101         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
14102         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
14103         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
14104         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
14105         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
14106         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
14107         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
14108         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
14109         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
14110         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
14111         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
14112         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
14113         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
14114         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
14115         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
14116         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
14117         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
14118         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
14119         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
14120         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
14121         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
14122         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
14123         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
14124         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
14125         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
14126         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
14127         * sysdeps/sparc/sparc64/qp_util.c: ... here.
14128         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
14129         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
14130         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
14131         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
14132         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
14133         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
14135         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
14136         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
14137         (sparc32-quad-routines): New variable.  Moved from ....
14138         [$(subdir) = soft-fp] (sysdep_routines): Add
14139         $(sparc32-quad-routines).  Moved from ....
14140         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
14141         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
14142         moved from ....
14143         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
14144         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
14145         * sysdeps/sparc/sparc32/q_add.c: ... here.
14146         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
14147         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
14148         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
14149         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
14150         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
14151         * sysdeps/sparc/sparc32/q_div.c: ... here.
14152         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
14153         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
14154         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
14155         * sysdeps/sparc/sparc32/q_feq.c: ... here.
14156         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
14157         * sysdeps/sparc/sparc32/q_fge.c: ... here.
14158         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
14159         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
14160         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
14161         * sysdeps/sparc/sparc32/q_fle.c: ... here.
14162         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
14163         * sysdeps/sparc/sparc32/q_flt.c: ... here.
14164         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
14165         * sysdeps/sparc/sparc32/q_fne.c: ... here.
14166         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
14167         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
14168         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
14169         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
14170         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
14171         * sysdeps/sparc/sparc32/q_mul.c: ... here.
14172         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
14173         * sysdeps/sparc/sparc32/q_neg.c: ... here.
14174         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
14175         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
14176         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
14177         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
14178         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
14179         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
14180         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
14181         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
14182         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
14183         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
14184         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
14185         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
14186         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
14187         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
14188         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
14189         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
14190         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
14191         * sysdeps/sparc/sparc32/q_sub.c: ... here.
14192         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
14193         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
14194         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
14195         * sysdeps/sparc/sparc32/q_util.c: ... here.
14196         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
14197         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
14198         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
14199         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
14201 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14202             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14204         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
14205         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
14206         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
14207         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
14209 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
14211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
14212         powerpc/soft-fp.
14213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
14214         Likewise.
14215         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
14216         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
14218 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14220         [BZ #23171]
14221         * math/math.h [C++] (iseqsig): Fix parameter type for the long
14222         double version.
14224 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
14226         * sysdeps/sh/Implies: Remove sh/soft-fp.
14227         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
14228         * sysdeps/sh/sfp-machine.h: ... here.
14230 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14232         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14233         (__mempcpy_erms): Skip zero length.
14234         (__memmove_erms): Likewise.
14235         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14236         (__memset_erms): Likewise.
14238 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
14240         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
14241         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14242         Add functions moved from ....
14243         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
14244         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
14245         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
14246         from ....
14247         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
14248         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
14249         * sysdeps/alpha/e_sqrtl.c: ... here.
14250         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
14251         * sysdeps/alpha/local-soft-fp.h: ... here.
14252         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
14253         * sysdeps/alpha/ots_add.c: ... here.
14254         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
14255         * sysdeps/alpha/ots_cmp.c: ... here.
14256         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
14257         * sysdeps/alpha/ots_cmpe.c: ... here.
14258         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
14259         * sysdeps/alpha/ots_cvtqux.c: ... here.
14260         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
14261         * sysdeps/alpha/ots_cvtqx.c: ... here.
14262         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
14263         * sysdeps/alpha/ots_cvttx.c: ... here.
14264         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
14265         * sysdeps/alpha/ots_cvtxq.c: ... here.
14266         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
14267         * sysdeps/alpha/ots_cvtxt.c: ... here.
14268         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
14269         * sysdeps/alpha/ots_div.c: ... here.
14270         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
14271         * sysdeps/alpha/ots_mul.c: ... here.
14272         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
14273         * sysdeps/alpha/ots_nintxq.c: ... here.
14274         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
14275         * sysdeps/alpha/ots_sub.c: ... here.
14276         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
14277         * sysdeps/alpha/sfp-machine.h: ... here.
14279 2018-05-23  Florian Weimer  <fweimer@redhat.com>
14281         [BZ #19728]
14282         [BZ #19729]
14283         [BZ #22247]
14284         CVE-2016-6261
14285         CVE-2016-6263
14286         CVE-2017-14062
14287         Switch to extern IDNA implementation (libidn2).
14288         * libidn: Remove subdirectory.
14289         * LICENSES: Do not mention licensing conditions for the removed
14290         libidn code.
14291         * config.h.in (HAVE_LIBIDN): Remove.
14292         * include/dlfcn.h (__libc_dlopen): Update comment.
14293         * include/idna.h: Remove file.
14294         * inet/Makefile (routines): Add idna.
14295         (tests-static, tests-internal): Add tst-idna_name_classify.
14296         (LOCALES): Generate locales for tests.
14297         (tst-idna_name_classify.out): Depend on generated locales.
14298         * inet/idna_name_classify.c: New file.
14299         * inet/tst-idna_name_classify.c: Likewise.
14300         * inet/net-internal.h (__idna_to_dns_encoding)
14301         (__idna_from_dns_encoding): Declare.
14302         * inet/net-internal.h (enum idna_name_classification): Define.
14303         (__idna_name_classify): Declare.
14304         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14305         __idna_from_dns_encoding.
14306         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14307         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
14308         name as a fallback in case of encoding errors.
14309         (getnameinfo): Use DEPRECATED_NI_IDN.
14310         * inet/idna.c: New file.
14311         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14312         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14313         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14314         (modules-names): Add tst-no-libidn2.
14315         (extra-test-objs): Add tst-no-libidn2.os.
14316         (LDFLAGS-tst-no-libidn2.so): Set soname.
14317         (LOCALES): Set, and generate locales.
14318         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14319         (tst-resolv-ai_idn-latin1): Likewise.
14320         (tst-resolv-ai_idn-nolibidn2): Likewise.
14321         (tst-resolv-ai_idn.out): Depend on locales.
14322         (tst-resolv-ai_idn-latin1.out): Depend on locales.
14323         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14324         tst-no-libidn2.so.
14325         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14326         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14327         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14328         * resolv/tst-resolv-ai_idn.c: New file.
14329         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14330         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14331         * resolv/tst-no-libidn2.c: Likewise.
14332         * support/support_format_addrinfo.c (format_ai_flags): Do not
14333         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14334         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14335         (gaih_inet): Call __idna_to_dns_encoding and
14336         __idna_from_dns_encoding, and use the original (punycode) name if
14337         __idna_from_dns_encoding fails due to an encoding error.
14338         (getaddrinfo): Use DEPRECATED_AI_IDN.
14339         * sysdeps/unix/inet/Subdirs (libidn): Remove.
14340         * sysdeps/unix/inet/configure: Remove file.
14341         * sysdeps/unix/inet/configure.ac: Likewise.
14343 2018-05-23  Florian Weimer  <fweimer@redhat.com>
14345         Implement allocate_once.
14346         * include/allocate_once.h: New file.
14347         * misc/allocate_once.c: Likewise.
14348         * misc/tst-allocate_once.c: Likewise.
14349         * misc/Makefile (routines): Add allocate_once.
14350         (tests-internal): Add tst-allocate_once.
14351         (generated): Add tst-allocate_once.mtrace,
14352         tst-allocate_once-mem.out.
14353         (tests-special): Add tst-allocate_once-mem.out.
14354         (tst-allocate_once-ENV): Set MALLOC_TRACE.
14355         (tst-allocate_once-mem.out): Call mtrace.
14356         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14358 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14360         [BZ #23196]
14361         * string/test-memcpy.c (do_test1): New function.
14362         (test_main): Call it.
14364 2018-05-23  Andreas Schwab  <schwab@suse.de>
14366         [BZ #23196]
14367         CVE-2018-11237
14368         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14369         (L(preloop_large)): Save initial destination pointer in %r11 and
14370         use it instead of %rax after the loop.
14371         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14373 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
14375         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14376         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14377         -I../soft-fp.  Moved from ....
14378         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
14379         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14380         * sysdeps/aarch64/e_sqrtl.c: ... here.
14381         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14382         * sysdeps/aarch64/sfp-machine.h: ... here.
14384         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14385         -Wmaybe-uninitialized around access to fq[0].
14386         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14387         Likewise.
14389         [BZ #18471]
14390         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14391         aliases for non-libc case of versioned symbols.
14392         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14393         (llseek): Define as compat symbol if
14394         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14395         with link warning.
14396         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14397         Make into a compat symbol, disabled for minimum symbol version
14398         GLIBC_2.28 and later.
14399         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14401 2018-05-22  Florian Weimer  <fweimer@redhat.com>
14403         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14404         not add -mpreferred-stack-boundary=4.
14405         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14406         (stack-align-test-flags): Likewise.
14407         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14408         Likewise.
14409         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14410         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14411         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14412         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14413         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14414         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14415         (CFLAGS-tst-align2.c): Likewise.
14417 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14419         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14420         (index_arch_Prefer_FSRM): Likewise.
14421         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14422         Also check Prefer_FSRM.
14423         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14424         Also return OPTIMIZE (erms) for Prefer_FSRM.
14426 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14428         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14429         (index_cpu_FSRM): Likewise.
14430         (reg_FSRM): Likewise.
14432 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
14434         * math/gen-tgmath-tests.py: Import sys.
14435         (Tests.__init__): Initialize macros_seen.
14436         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
14437         if requested to do so for this macro.
14438         (Tests.add_all_tests): Take argument for macro for which to
14439         generate tests.
14440         (Tests.check_macro_list): New function.
14441         (main): Handle check-list argument and argument specifying macro
14442         for which to generate tests.
14443         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14444         [PYTHON] (tgmath3-macro-tests): Likewise.
14445         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14446         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14447         not test-tgmath3.c.
14448         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14449         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14450         to CFLAGS.
14451         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14452         [PYTHON] ($(foreach
14453         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
14454         rule.
14455         [PYTHON] (tests-special): Add
14456         $(objpfx)test-tgmath3-macro-list.out.
14457         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14459         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14460         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14461         later.
14463         [BZ #22639]
14464         * time/tzset.c (SECSPERDAY): Cast to time_t.
14465         * time/tst-y2039.c: New file.
14466         * time/Makefile (tests): Add tst-y2039.
14468 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14470         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14471         (PREFETCH_ONE_SET): Remove duplicate line.
14473 2018-05-17  Florian Weimer  <fweimer@redhat.com>
14475         * sysdeps/generic/math-type-macros-double.h: Include
14476         <math-nan-payload-double.h> after <libm-alias-double.h>.
14477         * sysdeps/generic/math-type-macros-float.h: Include
14478         <math-nan-payload-float.h> after <libm-alias-float.h>.
14479         * sysdeps/generic/math-type-macros-float128.h: Include
14480         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14481         * sysdeps/generic/math-type-macros-ldouble.h: Include
14482         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14484 2018-05-17  Andreas Schwab  <schwab@suse.de>
14486         * resolv/res_send.c (__res_context_send): Don't set errno when
14487         returing error after malloc failure.
14489 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14491         * nptl/allocatestack.c (allocate_stack): Remove the
14492         !__ASSUME_PRIVATE_FUTEX paths.
14493         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14494         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14495         Likewise.
14496         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14497         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14498         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14499         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14500         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14501         !__ASSUME_PRIVATE_FUTEX path.
14502         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14503         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14504         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14505         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14506         !__ASSUME_PRIVATE_FUTEX macros.
14507         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14508         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14509         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14510         * sysdeps/unix/sysv/linux/kernel-features.h
14511         (__ASSUME_PRIVATE_FUTEX): Removed.
14513 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
14515         * math/Makefile (libm-narrow-fns): Add div.
14516         (libm-test-funcs-narrow): Likewise.
14517         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14518         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14519         * math/gen-auto-libm-tests.c (test_functions): Add div.
14520         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14521         (NARROW_DIV_ROUND_TO_ODD): Likewise.
14522         (NARROW_DIV_TRIVIAL): Likewise.
14523         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14524         macro.
14525         (__ddivl): Likewise.
14526         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14527         ddiv.
14528         (CFLAGS-nldbl-ddiv.c): New variable.
14529         (CFLAGS-nldbl-fdiv.c): Likewise.
14530         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14531         __nldbl_ddivl.
14532         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14533         prototype.
14534         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14535         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14536         * math/auto-libm-test-in: Add tests of div.
14537         * math/auto-libm-test-out-narrow-div: New generated file.
14538         * math/libm-test-narrow-div.inc: New file.
14539         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14540         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14541         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14542         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14543         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14544         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14545         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14546         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14547         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14548         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14549         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14550         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14551         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14552         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14553         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14554         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14555         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14556         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14558         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14559         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14560         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14561         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14562         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14563         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14564         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14565         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14566         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14567         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14568         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14569         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14570         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14575         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14576         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14577         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14578         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14579         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14580         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14581         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14582         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14584 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14586         [BZ #23178]
14587         * nscd/nscd-client.h (sendfileall): Remove prototype.
14588         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14589         (handle_request): Use writeall instead of sendfileall.
14590         * nscd/aicache.c (addhstaiX): Likewise.
14591         * nscd/grpcache.c (cache_addgr): Likewise.
14592         * nscd/hstcache.c (cache_addhst): Likewise.
14593         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14594         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14595         * nscd/pwdcache.c (cache_addpw): Likewise.
14596         * nscd/servicescache.c (cache_addserv): Likewise.
14597         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14598         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14599         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14600         Remove define.
14602 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14604         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14605         Include <string/strncat.c>.
14606         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14607         alias.
14608         (__GI___strncat): New hidden alias.
14610 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14612         * sysdeps/mips/mips32/libm-test-ulps: Update.
14613         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14615 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14617         * support/Makefile (libsupport-routines): Add support_quote_blob,
14618         support_test_compare_blob.
14619         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14620         * support/check.h (TEST_COMPARE_BLOB): Define.
14621         (support_test_compare_blob): Declare.
14622         * support/support.h (support_quote_blob): Declare.
14623         * support/support_quote_blob.c: New file.
14624         * support/support_test_compare_blob.c: Likewise.
14625         * support/tst-support_quote_blob.c: Likewise.
14626         * support/tst-test_compare_blob.c: Likewise.
14628 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14630         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14631         of <strtod_nan_double.h>.
14632         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14633         instead of SET_MANTISSA.
14634         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14635         of include <strtod_nan_float.h>.
14636         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14637         instead of <strtod_nan_ldouble.h>.
14638         * stdlib/strtod_nan_double.h: Move to ...
14639         * sysdeps/generic/math-nan-payload-double.h: ... here.
14640         (FLOAT): Remove definition.
14641         (SET_MANTISSA): Rename to ...
14642         (SET_NAN_PAYLOAD): ... this.
14643         * stdlib/strtod_nan_float.h: Move to ...
14644         * sysdeps/generic/math-nan-payload-float.h: ... here.
14645         (FLOAT): Remove definition.
14646         (SET_MANTISSA): Rename to ...
14647         (SET_NAN_PAYLOAD): ... this.
14648         * sysdeps/generic/math-type-macros-double.h: Include
14649         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
14650         instead of <math-svid-compat.h>.
14651         * sysdeps/generic/math-type-macros-float.h: Include
14652         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
14653         instead of <math-svid-compat.h>.
14654         * sysdeps/generic/math-type-macros-float128.h: Include
14655         <math-nan-payload-float128.h>.
14656         * sysdeps/generic/math-type-macros-ldouble.h: Include
14657         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
14658         instead of <math-svid-compat.h>.
14659         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14660         check for definition.
14661         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14662         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14663         Include <ieee754_float128.h>.
14664         (FLOAT): Remove definition.
14665         (SET_MANTISSA): Rename to ...
14666         (SET_NAN_PAYLOAD): ... this.
14667         * sysdeps/ieee754/float128/strtof128_nan.c: Include
14668         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14669         Do not include <float128_private.h>.
14670         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14672         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14673         (FLOAT): Remove definition.
14674         (SET_MANTISSA): Rename to ...
14675         (SET_NAN_PAYLOAD): ... this.
14676         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14677         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14678         (FLOAT): Remove definition.
14679         (SET_MANTISSA): Rename to ...
14680         (SET_NAN_PAYLOAD): ... this.
14681         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14682         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14683         (FLOAT): Remove definition.
14684         (SET_MANTISSA): Rename to ...
14685         (SET_NAN_PAYLOAD): ... this.
14686         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14687         of "../stdlib/strtod_nan_double.h".
14688         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14689         of "../stdlib/strtod_nan_float.h".
14690         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14691         instead of "../stdlib/strtod_nan_ldouble.h".
14692         * manual/arith.texi (Parsing of Floats): Adjust comment.
14694 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14696         * math/Makefile (libm-narrow-fns): Add mul.
14697         (libm-test-funcs-narrow): Likewise.
14698         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14699         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14700         * math/gen-auto-libm-tests.c (test_functions): Add mul.
14701         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14702         (NARROW_MUL_ROUND_TO_ODD): Likewise.
14703         (NARROW_MUL_TRIVIAL): Likewise.
14704         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14705         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14706         macro.
14707         (__dmull): Likewise.
14708         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14709         dmul.
14710         (CFLAGS-nldbl-dmul.c): New variable.
14711         (CFLAGS-nldbl-fmul.c): Likewise.
14712         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14713         __nldbl_dmull.
14714         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14715         prototype.
14716         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14717         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14718         * math/auto-libm-test-in: Add tests of mul.
14719         * math/auto-libm-test-out-narrow-mul: New generated file.
14720         * math/libm-test-narrow-mul.inc: New file.
14721         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14722         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14723         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14724         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14725         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14726         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14727         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14728         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14729         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14730         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14731         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14732         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14733         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14734         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14735         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14736         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14737         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14738         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14740         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14741         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14742         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14743         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14744         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14745         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14746         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14747         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14748         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14749         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14750         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14751         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14752         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14757         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14758         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14759         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14760         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14761         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14762         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14763         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14764         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14766 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14768         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14769         with *%eax in call.
14771 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14773         * sysdeps/i386/ldsodefs.h: Removed.
14774         * sysdeps/x86_64/ldsodefs.h: Moved to ...
14775         * sysdeps/x86/ldsodefs.h: This.
14776         (La_i86_regs): New.
14777         (La_i86_retval): Likewise.
14778         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14779         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14781 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14783         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14784         unnecessary testl.
14786 2018-05-13  Alan Modra  <amodra@gmail.com>
14788         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14789         R_PARISC_TLS_DTPOFF32 reloc addend.
14791 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14793         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14794         * math/math.h: Restrict the prototype definition for the functions
14795         issignaling(_Float128) and iszero(_Float128); and template
14796         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14797         __HAVE_FLOAT128_UNLIKE_LDBL.
14798         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14799         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14800         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14801         __f128() constants; define the type _Float128 as long double;
14802         and reuse long double in __CFLOAT128.
14804 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
14806         * sysdeps/generic/math_private.h: Do not include
14807         <math-barriers.h>.
14808         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14809         <math_private.h>.
14810         * math/fromfp.h: Include <math-barriers.h>.
14811         * math/math-narrow.h: Likewise.
14812         * math/s_nextafter.c: Likewise.
14813         * math/s_nexttowardf.c: Likewise.
14814         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14815         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14816         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14817         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14818         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14819         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14820         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14821         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14822         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14823         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14824         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14825         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14826         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14827         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14828         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14829         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14830         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14831         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14832         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14833         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14834         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14836         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14837         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14838         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14839         * sysdeps/ieee754/k_standardl.c: Likewise.
14840         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14841         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14842         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14843         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14844         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14845         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14846         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14847         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14848         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14849         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14850         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14851         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14852         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14853         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14854         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14855         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14856         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14857         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14858         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14859         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14860         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14861         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14863 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14865         Use 64-bit epoch values in the time zone file parser.
14866         * include/time.h (internal_time_t): Define.
14867         (__tzfile_compute): Use it.
14868         * time/tzfile.c (struct leap): Use internal_time_t for epoch
14869         member.
14870         (transitions): Switch to internal_time_t.
14871         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
14872         types.
14873         (__tzfile_compute): Use internal_time_t for timer argument.  Check
14874         for truncation before calling __offtime.
14876 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14878         [BZ #23166]
14879         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14880         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14881         Likewise.
14882         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14883         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
14884         export without --enable-obsolete-rpc.
14885         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14886         symbol.  This should not have been exported, ever.
14888 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
14890         [BZ #23152]
14891         * localedata/locales/gd_GB (abmon): Fix typo in May:
14892         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
14894 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14896         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14897         Use multiple registers to copy data in loop tail.
14899         * sysdeps/aarch64/multiarch/memmove_falkor.S
14900         (__memmove_falkor): Use multiple registers to move data in
14901         loop tail.
14903 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
14905         * math/math-underflow.h: New file.
14906         * sysdeps/generic/math_private.h: Do not include <float.h>.
14907         (fabs_tg): Remove macro.  Moved to math-underflow.h.
14908         (min_of_type_f): Likewise.
14909         (min_of_type_): Likewise.
14910         (min_of_type_l): Likewise.
14911         (min_of_type_f128): Likewise.
14912         (min_of_type): Likewise.
14913         (math_check_force_underflow): Likewise.
14914         (math_check_force_underflow_nonneg): Likewise.
14915         (math_check_force_underflow_complex): Likewise.
14916         * math/e_exp2_template.c: Include <math-underflow.h>.
14917         * math/k_casinh_template.c: Likewise.
14918         * math/s_catan_template.c: Likewise.
14919         * math/s_catanh_template.c: Likewise.
14920         * math/s_ccosh_template.c: Likewise.
14921         * math/s_cexp_template.c: Likewise.
14922         * math/s_clog10_template.c: Likewise.
14923         * math/s_clog_template.c: Likewise.
14924         * math/s_csin_template.c: Likewise.
14925         * math/s_csinh_template.c: Likewise.
14926         * math/s_csqrt_template.c: Likewise.
14927         * math/s_ctan_template.c: Likewise.
14928         * math/s_ctanh_template.c: Likewise.
14929         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14930         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14931         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14932         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14933         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14934         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14939         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14942         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14943         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14944         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14945         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14946         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14947         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14948         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14949         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14950         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14951         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14952         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14953         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14954         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14955         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14956         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14957         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14958         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14959         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14960         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14965         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14966         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14989         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14993         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14997         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14999         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
15002         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
15003         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15004         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15005         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15006         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15007         * sysdeps/x86/fpu/powl_helper.c: Likewise.
15008         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
15009         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
15010         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
15011         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
15014 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15016         * sysdeps/generic/math-barriers.h: New file.
15017         * sysdeps/generic/math_private.h [!math_opt_barrier]
15018         (math_opt_barrier): Move to math-barriers.h.
15019         [!math_opt_barrier] (math_force_eval): Likewise.
15020         * sysdeps/aarch64/fpu/math-barriers.h: New file.
15021         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
15022         math-barriers.h.
15023         (math_force_eval): Likewise.
15024         * sysdeps/alpha/fpu/math-barriers.h: New file.
15025         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
15026         math-barriers.h.
15027         (math_force_eval): Likewise.
15028         * sysdeps/x86/fpu/math-barriers.h: New file.
15029         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
15030         math-barriers.h.
15031         (math_force_eval): Likewise.
15032         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
15033         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
15034         multiple-include guard for rename.
15035         * sysdeps/powerpc/fpu/math-barriers.h: New file.
15036         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
15037         math-barriers.h.
15038         (math_force_eval): Likewise.
15040 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
15042         [BZ #22786]
15043         CVE-2018-11236
15044         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
15045         computation.
15046         * stdlib/Makefile (test-bz22786): New test.
15047         * stdlib/test-bz22786.c: New test.
15049 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15051         * include/math-narrow-eval.h: New file.  Contents moved from ....
15052         * sysdeps/generic/math_private.h: ... here.
15053         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
15054         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
15055         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
15056         * stdlib/strtod_l.c: Likewise.
15057         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15058         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15059         * sysdeps/i386/fpu/s_fdim.c: Likewise.
15060         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15061         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15062         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15063         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15064         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15065         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15066         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
15067         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15068         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
15069         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15070         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
15071         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
15072         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15073         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15074         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15075         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15076         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15077         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15078         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15079         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15080         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15081         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15082         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15083         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15084         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15085         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
15087 2018-05-08  Andreas Schwab  <schwab@suse.de>
15089         * sysdeps/nptl/internaltypes.h: Fix comment.
15091 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
15093         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15094         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
15095         hidden.
15097 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15099         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
15100         of I into loop header.
15101         * benchtests/bench-memmove-walk.c
15102         (test_main): Likewise.
15104 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
15106         Revert:
15107         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
15108         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15110 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15112         [BZ #20419]
15113         * elf/dl-load.c (open_verify): Fix stack overflow.
15114         * elf/Makefile (tst-big-note): New test.
15115         * elf/tst-big-note-lib.S: New.
15116         * elf/tst-big-note.c: New.
15118 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
15120         * scripts/abilist.awk: Ignore absolute symbols.
15121         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
15122         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
15123         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
15124         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
15125         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
15126         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
15127         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15128         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
15129         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
15130         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
15131         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
15132         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
15133         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
15134         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
15135         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
15136         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
15137         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
15138         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
15139         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15140         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
15141         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15142         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
15143         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
15144         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
15145         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
15146         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
15147         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
15148         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
15149         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15150         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
15151         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
15152         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15153         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
15154         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15155         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
15156         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
15157         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
15158         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
15159         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
15160         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
15161         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
15162         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15163         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
15164         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
15165         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15166         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
15167         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15168         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
15169         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
15170         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
15171         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
15172         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
15173         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
15174         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
15175         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15176         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
15177         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
15178         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15179         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
15180         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15181         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
15182         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
15183         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
15184         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
15185         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
15186         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
15187         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
15188         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15189         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
15190         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
15191         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15192         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
15193         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15194         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
15195         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
15196         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
15197         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
15198         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
15199         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
15200         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
15201         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15202         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
15203         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
15204         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15205         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
15206         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15207         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
15208         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
15209         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
15210         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
15211         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
15212         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
15213         Likewise.
15214         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
15215         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15216         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
15217         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
15218         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15219         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
15220         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15221         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
15222         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
15223         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
15224         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
15225         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
15226         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
15227         Likewise.
15228         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
15229         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15230         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
15231         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
15232         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15233         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
15234         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15235         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
15236         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
15237         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
15238         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
15239         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
15240         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
15241         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
15242         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15243         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
15244         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
15245         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15246         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
15247         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15248         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
15249         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
15250         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
15251         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
15252         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15253         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
15254         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
15255         Likewise.
15256         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
15257         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
15258         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
15259         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
15260         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15261         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
15262         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
15263         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
15264         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
15265         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
15266         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
15267         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
15268         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
15269         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15270         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
15271         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
15272         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
15273         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
15274         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15275         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
15276         Likewise.
15277         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
15278         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
15279         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
15280         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15281         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
15282         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15283         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
15284         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
15285         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
15286         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
15287         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15288         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
15289         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
15290         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15291         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
15292         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
15293         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
15294         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
15295         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15296         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
15297         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
15298         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15299         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
15300         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15301         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
15302         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
15303         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
15304         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15309         Likewise.
15310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15315         Likewise.
15316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15317         Likewise.
15318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15320         Likewise.
15321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15323         Likewise.
15324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15325         Likewise.
15326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15329         Likewise.
15330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15331         Likewise.
15332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15333         Likewise.
15334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15338         Likewise.
15339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15345         Likewise.
15346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15348         Likewise.
15349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15350         Likewise.
15351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15352         Likewise.
15353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15354         Likewise.
15355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15358         Likewise.
15359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15360         Likewise.
15361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15362         Likewise.
15363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15364         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15365         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15366         Likewise.
15367         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15368         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15369         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15370         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15371         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15372         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15373         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15374         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15375         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15376         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15377         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15378         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15379         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15380         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15381         Likewise.
15382         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15383         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15384         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15385         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15386         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15387         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15388         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15389         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15390         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15391         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15392         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15393         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15394         Likewise.
15395         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15396         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15397         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15398         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15399         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15400         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15401         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15402         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15403         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15404         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15405         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15406         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15407         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15408         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15409         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15410         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15411         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15412         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15413         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15414         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15415         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15416         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15417         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15418         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15419         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15420         Likewise.
15421         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15422         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15423         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15424         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15425         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15426         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15427         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15428         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15429         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15430         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15431         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15432         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15433         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15434         Likewise.
15435         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15436         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15437         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15438         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15439         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15440         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15441         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15442         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15443         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15444         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15445         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15446         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15447         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15448         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15449         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15450         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15451         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15452         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15453         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15454         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15455         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15456         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15457         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15458         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15459         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15460         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15461         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15462         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15463         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15464         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15465         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15466         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15467         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15468         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15469         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15470         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15471         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15472         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15474 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
15476         [BZ #23137]
15477         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15478         Use atomic_load_acquire to load __tid.
15480 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15482         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15483         Restore the pointer into %rdx, after syscall and use %rdx,
15484         instead of %rsi, to restore context.
15486 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15488         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15489         Pop the pointer into %rdx after syscall and use %rdx, instead
15490         of %rsi, to restore context.
15492 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15494         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15495         handlers after setjmp.
15496         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15497         defined.
15498         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15499         <libc-pointer-arith.h>.
15500         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15501         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15502         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15503         _JUMP_BUF_SIGSET_BITS_PER_WORD.
15504         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15505         * sysdeps/x86/__longjmp_cancel.S: New file.
15506         * sysdeps/x86/longjmp.c: Likewise.
15507         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15509 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15511         * NEWS: Add ustat.h deprecation entry.
15512         * bits/ustat.h: Remove file.
15513         * misc/sys/ustat.h: Likewise.
15514         * misc/ustat.h: Likewise.
15515         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15516         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15517         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15518         compatibility mode.
15519         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15520         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15521         generic Linux implementation.
15523 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15525         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15526         * math/w_expl_compat.c: Likewise.
15527         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
15529 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
15531         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15533 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15535         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15536         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15537         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15538         Remove.
15539         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15541         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15542         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15543         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15544         and SYSCALL_LL64.
15546 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15548         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15550         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15551         * math/w_asin_template.c: Likewise.
15552         * math/w_atanh_template.c: Likewise.
15554 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15556         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15557         to powerpc/powerpc64/be for big-endian.
15558         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15559         little-endian.
15561         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15562         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15563         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15564         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15565         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15566         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15567         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15568         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15569         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15570         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15571         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15572         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15573         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15574         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15575         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15576         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15577         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15578         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15579         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15580         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15581         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15582         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15583         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15584         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15585         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15586         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15587         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15588         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15589         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15590         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15591         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15592         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15594         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15595         adjusted to imply powerpc64 and older processors on powerpc64/be.
15596         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15597         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15598         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15599         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15600         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15601         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15602         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15603         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15604         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15605         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15606         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15607         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15608         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15609         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15610         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15611         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15612         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15613         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15614         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15615         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15616         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15617         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15618         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15619         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15620         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15621         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15622         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15623         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15624         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15625         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15626         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15628         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15629         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15630         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15631         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15633         * sysdeps/powerpc/powerpc64/be/Implies: New file.
15634         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15635         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15636         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15638         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15639         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15640         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15641         * sysdeps/powerpc/powerpc64le/configure: Likewise.
15642         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15643         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15644         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15645         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15646         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15647         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15648         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15650         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15651         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15652         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15653         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15654         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15655         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15656         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15657         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15658         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15659         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15660         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15662         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15663         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15664         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15665         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15666         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15667         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15668         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15669         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15670         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15671         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15672         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15673         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15675         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15676         and adjusted to imply olders processors.
15677         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15678         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15679         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15680         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15681         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15682         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15683         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15684         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15685         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15686         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15687         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15689         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15690         powerpc64/le.
15691         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15692         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15695         powerpc64le.
15696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15700         powerpc64/be.
15701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15706         powerpc64 and adjusted.
15707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15710         Likewise.
15712 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
15714         * sysdeps/tile: Remove.
15715         * sysdeps/unix/sysv/linux/tile: Likewise.
15716         * README (tilegx-*-linux-gnu): Remove from list of supported
15717         configurations.
15718         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15719         contribution of support for generic Linux kernel syscall
15720         interface.
15721         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15722         tilegx configurations.
15723         (Config.install_linux_headers): Do not handle tile.
15724         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15725         in comment.
15726         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15727         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15728         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15729         conditional undefine and redefine.
15730         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15731         in comment.
15732         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15733         conditional undefine and redefine.
15735 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
15737         * signal/tst-sigaction.c: New file to test BZ #23069.
15738         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15740 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15742         [BZ #22766]
15743         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15744         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15745         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15746         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15748 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15750         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15751         _DIRENT_MATCHES_DIRENT64 is not defined.
15752         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15753         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15754         is defined.
15755         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15756         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15758 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
15760         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15761         version to GCC 8 branch.
15763 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
15765         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15766         (check_no_hidden): Use type of original function when declaring
15767         alias.
15769         * sysdeps/unix/sysv/linux/sys/ptrace.h
15770         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15771         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15772         (struct __ptrace_seccomp_metadata): New type.
15773         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15774         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15775         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15776         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15777         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15778         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15779         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15780         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15781         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15782         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15783         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15784         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15785         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15786         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15787         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15788         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15790 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15792         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15793         defined.
15794         * dirent/versionsort.c (versionsort): Likewise.
15795         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15796         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15797         * dirent/versionsort64.c (versionsort64): Likewise.
15798         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15799         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15800         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15801         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15802         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15803         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15804         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15805         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15806         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15807         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15810         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15811         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15813 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
15815         * elf/elf.h (NT_PPC_PKEY): New macro.
15817 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
15819         [BZ #23094]
15820         * localedata/locales/hr_HR: fix thousands_sep and
15821         mon_thousands_sep
15823 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15825         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15826         (XTABS): Define to TAB3.
15828 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15830         * sysdeps/hppa/fpu/libm-test-ulps: Update.
15832         * dirent/scandir-tail-common.c: New file.
15833         * dirent/scandir-tail.c: Use scandir-tail-common.c.
15834         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15835         * dirent/scandir.c: Use scandir-tail-common.c.
15836         * dirent/scandirat.c: Likewise.
15837         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15838         * dirent/scandir64.c (scandir64): Always build and alias to scandir
15839         if _DIRENT_MATCHES_DIRENT64 is defined.
15840         * dirent/scandirat64.c (scandirat64): Likewise.
15841         * include/dirent.h (__scandir_tail): Only define iff
15842         _DIRENT_MATCHES_DIRENT64 is not defined.
15843         (__scandir64_tail): Define regardless.
15844         (__scandirat, scandirat64): Remove libc_hidden_proto.
15845         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15846         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15848         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15849         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15850         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15851         * sysdeps/unix/sysv/linux/scandir64.c: New file.
15853 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15855         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15856         New macro.
15857         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15858         Increase to 24.
15859         (_dl_aarch64_cap_flags): Add asimdfhm.
15861 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
15863         * sysdeps/nios2/libm-test-ulps: Update.
15865 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15867         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15868         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15870         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15871         requirements.
15872         (_DIRENT_MATCHES_DIRENT64): Undef
15873         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15874         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15875         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15876         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15877         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15878         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15879         use getdents64 syscalls as base.
15880         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15881         symbol if required.
15882         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15883         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15884         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15885         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15886         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15887         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15888         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15889         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15890         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15891         (__get_clockfreq_via_proc_openprom): Use __getdents64.
15892         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15894 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15896         * scripts/test_printers_common.py (init_test): Disable lock elision.
15898 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15900         * math/test-tgmath.c (count_double, count_float,
15901         count_ldouble, count_cdouble, count_cfloat,
15902         count_cldouble): Use volatile int.
15904 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15906         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15907         (conformtest-xfail-conds): Add i386-gnu.
15908         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15909         i386-gnu.
15910         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15911         ipc_perm.cuid, ipc_perm.cgid): Likewise.
15912         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15913         msqid_ds.msg_lrpid): Likewise.
15914         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15915         Likewise.
15916         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15917         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15918         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15919         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15920         unsigned int.
15921         (struct statvfs64): Likewise.
15922         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15923         Likewise.
15924         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15925         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15926         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15927         instead of wait_queue.
15928         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15929         instead of vm_area_struct.
15930         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15931         struct sched_param definition to it.
15932         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15933         * bits/types/struct_sched_param.h: New file.
15934         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15935         <bits/types/struct_sched_param.h> instead of <sched.h>.
15936         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15937         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15938         generic version but include <bits/pthreadtypes.h> to make struct
15939         sigevent's sigev_notify_attributes field a pthread_attr_t*.
15940         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15941         non-compliant.
15942         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15943         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15944         [__USE_XOPEN] (OFDEL): New macro.
15945         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15946         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15947         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15948         prototypes.
15949         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15950         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15951         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15952         non-compliant.
15953         * sysdeps/i386/sys/ucontext.h: Likewise.
15954         * sysdeps/m68k/sys/ucontext.h: Likewise.
15955         * sysdeps/mips/sys/ucontext.h: Likewise.
15956         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15957         * sysdeps/mach/hurd/i386/Makefile
15958         (test-xfail-POSIX/fcntl.h/conform): Add.
15959         (test-xfail-POSIX/signal.h/conform): Add.
15960         (test-xfail-POSIX/semaphore.h/conform): Add.
15961         (test-xfail-POSIX/regex.h/conform): Add.
15962         (test-xfail-POSIX/aio.h/conform): Add.
15963         (test-xfail-POSIX/mqueue.h/conform): Add.
15964         (test-xfail-POSIX/sys/types.h/conform): Add.
15965         (test-xfail-UNIX98/fcntl.h/conform): Add.
15966         (test-xfail-UNIX98/netdb.h/conform): Add.
15967         (test-xfail-UNIX98/signal.h/conform): Add.
15968         (test-xfail-UNIX98/semaphore.h/conform): Add.
15969         (test-xfail-UNIX98/regex.h/conform): Add.
15970         (test-xfail-UNIX98/aio.h/conform): Add.
15971         (test-xfail-UNIX98/ftw.h/conform): Add.
15972         (test-xfail-UNIX98/mqueue.h/conform): Add.
15973         (test-xfail-UNIX98/netinet/in.h/conform): Add.
15974         (test-xfail-UNIX98/sys/wait.h/conform): Add.
15975         (test-xfail-UNIX98/sys/sem.h/conform): Add.
15976         (test-xfail-UNIX98/sys/uio.h/conform): Add.
15977         (test-xfail-UNIX98/sys/socket.h/conform): Add.
15978         (test-xfail-UNIX98/sys/types.h/conform): Add.
15979         (test-xfail-UNIX98/stdlib.h/conform): Add.
15980         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15981         (test-xfail-POSIX2008/fcntl.h/conform): Add.
15982         (test-xfail-POSIX2008/netdb.h/conform): Add.
15983         (test-xfail-POSIX2008/signal.h/conform): Add.
15984         (test-xfail-POSIX2008/semaphore.h/conform): Add.
15985         (test-xfail-POSIX2008/regex.h/conform): Add.
15986         (test-xfail-POSIX2008/aio.h/conform): Add.
15987         (test-xfail-POSIX2008/mqueue.h/conform): Add.
15988         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15989         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15990         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15991         (test-xfail-POSIX2008/sys/types.h/conform): Add.
15992         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15993         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15994         (test-xfail-XOPEN2K/netdb.h/conform): Add.
15995         (test-xfail-XOPEN2K/signal.h/conform): Add.
15996         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15997         (test-xfail-XOPEN2K/regex.h/conform): Add.
15998         (test-xfail-XOPEN2K/aio.h/conform): Add.
15999         (test-xfail-XOPEN2K/ftw.h/conform): Add.
16000         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
16001         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
16002         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
16003         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
16004         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
16005         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
16006         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
16007         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
16008         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
16009         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
16010         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
16011         (test-xfail-XOPEN2K8/signal.h/conform): Add.
16012         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
16013         (test-xfail-XOPEN2K8/regex.h/conform): Add.
16014         (test-xfail-XOPEN2K8/aio.h/conform): Add.
16015         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
16016         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
16017         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
16018         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
16019         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
16020         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
16021         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
16022         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
16023         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
16024         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
16025         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
16026         i386-gnu.
16027         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
16028         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
16030 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
16032         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
16033         --enable-obsolete for powerpc-linux-gnuspe.
16035 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16037         * conform/data/sys/un.h-data: Allow sun_ prefix.
16038         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
16039         prototypes.
16040         * sysdeps/mach/include/mach.h: Likewise.
16041         * sysdeps/mach/include/mach/mig_support.h: Likewise.
16042         * sysdeps/mach/include/mach_error.h: Likewise.
16044 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16046         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
16047         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
16048         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
16049         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
16051 2018-04-16  Andreas Schwab  <schwab@suse.de>
16053         [BZ #19527]
16054         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
16056 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
16058         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
16059         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
16061 2018-04-12  DJ Delorie  <dj@redhat.com>
16063         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16064         version to 4.16.
16066 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
16068         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
16069         (struct kernel_sigaction): Use the same definition on 31bit as is used
16070         on 64bit.
16072 2018-04-09  Florian Weimer  <fweimer@redhat.com>
16074         [BZ #23037]
16075         * resolv/res_send.c (send_dg): Use designated initializers instead
16076         of assignment to zero-initialize other fields of struct mmsghdr.
16078 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16080         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
16081         __READDIR_ALIAS): Undefine after usage.
16082         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
16083         __READDIR_R_ALIAS): Likewise.
16084         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
16085         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
16086         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
16087         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
16088         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
16089         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
16090         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16091         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16092         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
16093         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
16094         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
16095         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
16096         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16097         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
16098         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
16099         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
16100         * sysdeps/unix/sysv/linux/readdir.c: New file.
16101         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
16102         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
16103         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
16105         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
16107 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
16109         * manual/charset.texi (Converting a Character): Fix typo.
16111 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16113         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16115         * sysdeps/arm/libm-test-ulps: Update.
16117         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
16118         as base implementation.
16119         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
16120         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
16121         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
16122         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
16123         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
16124         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
16125         remove unrequired definitions and update comments.
16126         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
16127         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
16128         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
16129         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
16130         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
16131         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
16132         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
16133         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
16134         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
16135         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
16136         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
16137         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
16138         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
16139         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
16140         and RESET_SA_RESTORER hooks.
16142 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
16144         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16146 2018-04-05  Florian Weimer  <fweimer@redhat.com>
16148         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
16149         integer overflow, memory leak on error, and indeterminate errno
16150         value.  Add a null wide character to terminate the result string.
16151         * manual/charset.texi (Converting a Character): Mention embedded
16152         null bytes in the mbrtowc input string.  Explain what happens in
16153         the -2 result case.  Do not claim that mbrtowc is simple or
16154         obvious to use.  Adjust the description of the code example.  Use
16155         @code, not @var, for concrete variables.
16157 2018-04-05  Florian Weimer  <fweimer@redhat.com>
16159         * manual/examples/mbstouwcs.c: New file.
16160         * manual/charset.texi (Converting a Character): Include it.
16162 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16164         * include/dirent.h (dirfd): Add hidden proto.
16165         * dirent/dirfd.c (dirfd): Add hidden def.
16166         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
16167         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
16169 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16171         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
16172         sin, cos and sincos to 1 ULP.
16174 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
16176         [BZ #19818]
16177         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
16178         symbols.
16179         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
16180         * elf/tst-absolute-sym.c: New file.
16181         * elf/tst-absolute-sym-lib.c: New file.
16182         * elf/tst-absolute-sym-lib.lds: New file.
16183         * elf/Makefile (tests): Add `tst-absolute-sym'.
16184         (modules-names): Add `tst-absolute-sym-lib'.
16185         (LDLIBS-tst-absolute-sym-lib.so): New variable.
16186         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
16187         ($(objpfx)tst-absolute-sym): New dependency.
16189         [BZ #19818]
16190         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
16191         parameter.
16192         (SYMBOL_ADDRESS): New macro.
16193         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
16194         SYMBOL_ADDRESS for symbol address calculation.
16195         * elf/dl-runtime.c (_dl_fixup): Likewise.
16196         (_dl_profile_fixup): Likewise.
16197         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
16198         * elf/rtld.c (dl_main): Likewise.
16199         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
16200         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
16201         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
16202         (elf_machine_rela): Likewise.
16203         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
16204         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
16205         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16206         (elf_machine_rela): Likewise.
16207         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16208         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
16209         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
16210         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
16211         Likewise.
16212         (elf_machine_reloc): Likewise.
16213         (elf_machine_got_rel): Likewise.
16214         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
16215         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
16216         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16217         Likewise.
16218         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16219         Likewise.
16220         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
16221         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16222         Likewise.
16223         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16224         Likewise.
16225         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16226         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16227         Likewise.
16228         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16229         Likewise.
16230         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
16231         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16233 2018-04-04  Zack Weinberg  <zackw@panix.com>
16235         * sysdeps/generic/internal-signals.h: Include signal.h,
16236         sigsetops.h, and stdbool.h.
16237         (__libc_signal_block_all): Actually block all signals.
16238         (__libc_signal_block_app): Likewise.
16239         (__libc_signal_restore_set): Actually restore the signal mask.
16241 2018-04-04  Florian Weimer  <fweimer@redhat.com>
16243         inet: Actually build and run tst-deadline.
16244         * inet/Makefile (tests-internal): Add tst-deadline and do not
16245         overwrite the variable.
16246         (tests-static-internal): Remove variable.
16248 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16250         [BZ #22947]
16251         * bits/uio-ext.h (RWF_APPEND): New.
16252         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
16253         * manual/llio.texi: Document RWF_APPEND.
16254         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
16255         (RWF_SUPPORTED): Add RWF_APPEND.
16257 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16259         [BZ #22391]
16260         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
16261         check for internal nptl signals.
16262         * nptl/sigaction.c (__sigaction): Likewise.
16263         * signal/sigaddset.c (sigaddset): Likewise.
16264         * signal/sigdelset.c (sigdelset): Likewise.
16265         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
16266         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
16267         value.
16268         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
16269         to filter out internal nptl signals.
16270         * signal/tst-sigset.c (do_test): Check ech signal indidually and
16271         also check realtime signals using standard macros.
16272         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
16273         __is_internal_signal, __libc_signal_block_all,
16274         __libc_signal_block_app, __libc_signal_restore_set): New functions.
16275         * sysdeps/nptl/sigfillset.c: Remove file.
16276         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
16277         Change return to bool.
16278         (__clear_internal_signals): Remove SIGTIMER clean since it is
16279         equal to SIGCANEL on Linux.
16280         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
16281         signal set was constructed using standard functions.
16283 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16285         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
16286         ifname is too long.
16287         * hurd/hurdsig.c (interrupted_reply_port_location): Use
16288         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
16289         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
16290         hidden def.
16291         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
16292         * signal/sigaddset.c: Include <sigsetopts.h>.
16293         * signal/sigdelset.c: Likewise.
16295 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16297         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
16298         (__cos): Likewise.
16299         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
16300         logic as sin and cos.
16302 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16304         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16305         inputs.  Return correct sign.
16306         (do_sincos): Remove small input check before do_sin, let do_sin set
16307         the sign.
16308         (__sin): Likewise.
16309         (__cos): Likewise.
16311 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16313         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16314         (do_cos_slow): Likewise.
16315         (do_sin_slow): Likewise.
16316         (reduce_and_compute): Likewise.
16317         (slow): Likewise.
16318         (slow1): Likewise.
16319         (slow2): Likewise.
16320         (sloww): Likewise.
16321         (sloww1): Likewise.
16322         (sloww2): Likewise.
16323         (bslow): Likewise.
16324         (bslow1): Likewise.
16325         (bslow2): Likewise.
16326         (cslow2): Likewise.
16328 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16330         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16331         (do_cos): Remove corp parameter and calculations.
16332         (do_sin): Likewise.
16333         (do_sincos): Remove cor variable.
16334         (__sin): Use do_sincos for huge inputs.
16335         (__cos): Likewise.
16336         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16337         (reduce_and_compute_sincos): Remove unused function.
16339 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16341         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16342         reduce_sincos, improve accuracy to 136 bits.
16343         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16344         (__sin): Use improved reduction and simplified do_sincos calculation.
16345         (__cos): Likewise.
16346         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16348 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16350         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16351         (do_sincos_2): Likewise.
16352         (__sin): Remove middle range reduction case.
16353         (__cos): Likewise.
16354         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16355         reduction case.
16357 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16359         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16360         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16361         inputs.
16362         (__cos): Likewise.
16363         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16365 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
16367         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16368         version to 4.16
16370 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16372         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16373         Remove definitions.
16374         (opendir_oflags): Use O_DIRECTORY regardless.
16375         (__opendir, __opendirat): Remove need_isdir_precheck usage.
16376         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16378 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16380         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16381         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16382         macros.
16383         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16384         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16385         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16386         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16387         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16388         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16390         * htl/Makefile: Bump licence to LGPL 2.1+.
16391         * htl/alloca_cutoff.c: Likewise.
16392         * htl/cthreads-compat.c: Likewise.
16393         * htl/lockfile.c: Likewise.
16394         * htl/pt-alloc.c: Likewise.
16395         * htl/pt-cancel.c: Likewise.
16396         * htl/pt-cleanup.c: Likewise.
16397         * htl/pt-create.c: Likewise.
16398         * htl/pt-dealloc.c: Likewise.
16399         * htl/pt-detach.c: Likewise.
16400         * htl/pt-exit.c: Likewise.
16401         * htl/pt-getattr.c: Likewise.
16402         * htl/pt-initialize.c: Likewise.
16403         * htl/pt-internal.h: Likewise.
16404         * htl/pt-join.c: Likewise.
16405         * htl/pt-self.c: Likewise.
16406         * htl/pt-setcancelstate.c: Likewise.
16407         * htl/pt-setcanceltype.c: Likewise.
16408         * htl/pt-sigmask.c: Likewise.
16409         * htl/pt-spin-inlines.c: Likewise.
16410         * htl/pt-testcancel.c: Likewise.
16411         * htl/pt-yield.c: Likewise.
16412         * htl/tests/test-1.c: Likewise.
16413         * htl/tests/test-10.c: Likewise.
16414         * htl/tests/test-11.c: Likewise.
16415         * htl/tests/test-12.c: Likewise.
16416         * htl/tests/test-13.c: Likewise.
16417         * htl/tests/test-14.c: Likewise.
16418         * htl/tests/test-15.c: Likewise.
16419         * htl/tests/test-16.c: Likewise.
16420         * htl/tests/test-17.c: Likewise.
16421         * htl/tests/test-2.c: Likewise.
16422         * htl/tests/test-3.c: Likewise.
16423         * htl/tests/test-4.c: Likewise.
16424         * htl/tests/test-5.c: Likewise.
16425         * htl/tests/test-6.c: Likewise.
16426         * htl/tests/test-7.c: Likewise.
16427         * htl/tests/test-8.c: Likewise.
16428         * htl/tests/test-9.c: Likewise.
16429         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16430         * sysdeps/htl/bits/cancelation.h: Likewise.
16431         * sysdeps/htl/bits/pthread-np.h: Likewise.
16432         * sysdeps/htl/bits/pthread.h: Likewise.
16433         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16434         * sysdeps/htl/bits/semaphore.h: Likewise.
16435         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16436         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16437         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16438         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16439         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16440         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16441         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16442         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16443         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16444         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16445         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16446         * sysdeps/htl/old_pt-atfork.c: Likewise.
16447         * sysdeps/htl/pt-atfork.c: Likewise.
16448         * sysdeps/htl/pt-attr-destroy.c: Likewise.
16449         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16450         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16451         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16452         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16453         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16454         * sysdeps/htl/pt-attr-getscope.c: Likewise.
16455         * sysdeps/htl/pt-attr-getstack.c: Likewise.
16456         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16457         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16458         * sysdeps/htl/pt-attr-init.c: Likewise.
16459         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16460         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16461         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16462         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16463         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16464         * sysdeps/htl/pt-attr-setscope.c: Likewise.
16465         * sysdeps/htl/pt-attr-setstack.c: Likewise.
16466         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16467         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16468         * sysdeps/htl/pt-attr.c: Likewise.
16469         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16470         * sysdeps/htl/pt-barrier-init.c: Likewise.
16471         * sysdeps/htl/pt-barrier-wait.c: Likewise.
16472         * sysdeps/htl/pt-barrier.c: Likewise.
16473         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16474         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16475         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16476         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16477         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16478         * sysdeps/htl/pt-cond-destroy.c: Likewise.
16479         * sysdeps/htl/pt-cond-init.c: Likewise.
16480         * sysdeps/htl/pt-cond-signal.c: Likewise.
16481         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16482         * sysdeps/htl/pt-cond-wait.c: Likewise.
16483         * sysdeps/htl/pt-cond.c: Likewise.
16484         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16485         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16486         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16487         * sysdeps/htl/pt-condattr-init.c: Likewise.
16488         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16489         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16490         * sysdeps/htl/pt-destroy-specific.c: Likewise.
16491         * sysdeps/htl/pt-equal.c: Likewise.
16492         * sysdeps/htl/pt-getconcurrency.c: Likewise.
16493         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16494         * sysdeps/htl/pt-getschedparam.c: Likewise.
16495         * sysdeps/htl/pt-getspecific.c: Likewise.
16496         * sysdeps/htl/pt-init-specific.c: Likewise.
16497         * sysdeps/htl/pt-key-create.c: Likewise.
16498         * sysdeps/htl/pt-key-delete.c: Likewise.
16499         * sysdeps/htl/pt-key.h: Likewise.
16500         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16501         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16502         * sysdeps/htl/pt-mutex-init.c: Likewise.
16503         * sysdeps/htl/pt-mutex-lock.c: Likewise.
16504         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16505         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16506         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16507         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16508         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16509         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16510         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16511         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16512         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16513         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16514         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16515         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16516         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16517         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16518         * sysdeps/htl/pt-mutexattr.c: Likewise.
16519         * sysdeps/htl/pt-once.c: Likewise.
16520         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16521         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16522         * sysdeps/htl/pt-rwlock-init.c: Likewise.
16523         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16524         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16525         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16526         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16527         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16528         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16529         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16530         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16531         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16532         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16533         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16534         * sysdeps/htl/pt-setconcurrency.c: Likewise.
16535         * sysdeps/htl/pt-setschedparam.c: Likewise.
16536         * sysdeps/htl/pt-setschedprio.c: Likewise.
16537         * sysdeps/htl/pt-setspecific.c: Likewise.
16538         * sysdeps/htl/pt-spin.c: Likewise.
16539         * sysdeps/htl/pt-startup.c: Likewise.
16540         * sysdeps/htl/pthread.h: Likewise.
16541         * sysdeps/htl/sem-close.c: Likewise.
16542         * sysdeps/htl/sem-destroy.c: Likewise.
16543         * sysdeps/htl/sem-getvalue.c: Likewise.
16544         * sysdeps/htl/sem-init.c: Likewise.
16545         * sysdeps/htl/sem-open.c: Likewise.
16546         * sysdeps/htl/sem-post.c: Likewise.
16547         * sysdeps/htl/sem-timedwait.c: Likewise.
16548         * sysdeps/htl/sem-trywait.c: Likewise.
16549         * sysdeps/htl/sem-unlink.c: Likewise.
16550         * sysdeps/htl/sem-wait.c: Likewise.
16551         * sysdeps/hurd/htl/pt-kill.c: Likewise.
16552         * sysdeps/i386/htl/pt-machdep.h: Likewise.
16553         * sysdeps/mach/htl/pt-block.c: Likewise.
16554         * sysdeps/mach/htl/pt-spin.c: Likewise.
16555         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16556         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16557         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16558         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16559         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16560         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16561         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16562         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16563         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16564         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16565         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16566         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16567         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16568         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16569         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16570         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16571         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16572         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16573         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16574         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16575         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16576         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16577         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16578         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16579         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16580         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16581         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16582         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16583         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16584         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16585         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16586         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16587         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16588         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16589         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16590         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16591         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16592         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16593         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16594         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16595         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16596         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16597         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16599         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16600         * README: Remove the mention of out-of-tree patches needed for
16601         GNU/Hurd.
16603         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16604         (UTIME_NOW, UTIME_OMIT): Define macros.
16606         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16607         instead of pthread_detach.
16608         (__cthread_fork): Call __pthread_create instead of pthread_create.
16609         (__cthread_keycreate): Call __pthread_key_create instead of
16610         pthread_key_create.
16611         (__cthread_getspecific): Call __pthread_getspecific instead of
16612         pthread_getspecific.
16613         (__cthread_setspecific): Call __pthread_setspecific instead of
16614         pthread_setspecific.
16615         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16616         __pthread_mutex_unlock instead of pthread_mutex_lock and
16617         pthread_mutex_unlock.
16618         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16619         ___pthread_get_cleanup_stack.
16620         (__pthread_get_cleanup_stack): New strong alias.
16621         * htl/pt-create.c: Include <pthreadP.h>.
16622         (entry_point): Call __pthread_exit instead of pthread_exit.
16623         (pthread_create): Rename to __pthread_create.
16624         (pthread_create): New strong alias.
16625         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16626         (pthread_detach): New strong alias.
16627         (__pthread_detach): Call __pthread_cond_broadcast instead of
16628         pthread_cond_broadcast.
16629         * htl/pt-exit.c: Include <pthreadP.h>.
16630         (__pthread_exit): Call __pthread_setcancelstate and
16631         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16632         __pthread_get_cleanup_stack.
16633         * htl/pt-testcancel.c: Include <pthreadP.h>.
16634         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16635         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16636         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16637         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16638         pthread_attr_getstacksize.
16639         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16640         Rename to __pthread_attr_getstackaddr.
16641         (pthread_attr_getstackaddr): New strong alias.
16642         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16643         Rename to __pthread_attr_getstacksize.
16644         (pthread_attr_getstacksize): New strong alias.
16645         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16646         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16647         (pthread_attr_setstack): New strong alias.
16648         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16649         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16650         pthread_attr_getstacksize, pthread_attr_setstacksize and
16651         pthread_attr_setstackaddr.
16652         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16653         Rename to __pthread_attr_setstackaddr.
16654         (pthread_attr_setstackaddr): New strong alias.
16655         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16656         Rename to __pthread_attr_setstacksize.
16657         (pthread_attr_setstacksize): New strong alias.
16658         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16659         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16660         pthread_exit.
16661         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16662         (__pthread_key_create): New hidden def.
16663         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16664         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16665         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16666         __pthread_exit, __pthread_key_create, __pthread_getspecific,
16667         __pthread_setspecific, __pthread_setcancelstate,
16668         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16669         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16670         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16671         declarations.
16672         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16673         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16674         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16675         (pthread_attr_setstackaddr): New strong alias.
16676         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16677         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16678         (pthread_attr_setstacksize): New strong alias.
16679         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16680         (call_exit): Call __pthread_exit instead of pthread_exit.
16681         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16682         (_pthread_mutex_init): New hidden definition.
16683         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16684         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16685         instead of pthread_attr_init and pthread_attr_setstack.
16687         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16688         __vm_deallocate instead of vm_allocate and vm_deallocate.
16689         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16690         setenv.
16691         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16692         of geteuid.
16693         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16694         strdup.
16695         * hurd/siginfo.c: Include <libioP.h>.
16696         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16697         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16698         munmap.
16699         * mach/devstream.c: Include <libioP.h>.
16700         (dealloc_ref): Call __mach_port_deallocate instead of
16701         mach_port_deallocate.
16702         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16703         Call __mach_port_deallocate instead of mach_port_deallocate.
16704         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16705         pathconf.
16706         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16707         munmap.
16708         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16709         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16710         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16711         of munmap.
16712         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16713         of close.
16714         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16715         instead of sysconf.
16716         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16717         __clock_gettime instead of clock_gettime.
16718         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16719         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16720         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16721         * sysdeps/unix/bsd/stty.c (stty): Likewise.
16722         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16723         tcgetattr.
16724         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16725         __clock_gettime and __nanosleep instead of clock_gettime and
16726         nanosleep.
16727         * hurd/catch-signal.c (hurd_catch_signal): Rename to
16728         __hurd_catch_signal.
16729         (hurd_catch_signal): New strong alias.
16730         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16731         __hurd_catch_signal instead of hurd_catch_signal.
16732         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16733         * hurd/hurdexec.c (_hurd_init): Add hidden def.
16734         * hurd/hurdinit.c (_hurd_init): Add hidden def.
16735         * hurd/hurdsig.c: Include <mach/mig_support.h>.
16736         (_hurd_thread_sigstate): Add hidden def.
16737         (_hurd_internal_post_signal): Use __mutex_unlock instead of
16738         mutex_unlock.
16739         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16740         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16741         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16742         __hurd_file_name_path_lookup.
16743         (hurd_file_name_path_lookup): New strong alias.
16744         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16745         hurd_file_name_path_lookup.
16746         * mach/errstring.c (mach_error_type): Add hidden def.
16747         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16748         * mach/mutex-init.c (__mutex_init): Add hidden def.
16749         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16750         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16751         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16752         * sysdeps/mach/hurd/getcwd.c
16753         (_hurd_canonicalize_directory_name_internal): Rename to
16754         __hurd_canonicalize_directory_name_internal.
16755         (_hurd_canonicalize_directory_name_internal): New strong alias.
16756         (__canonicalize_directory_name_internal, __getcwd): Call
16757         __hurd_canonicalize_directory_name_internal instead of
16758         _hurd_canonicalize_directory_name_internal.
16759         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16760         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16761         hidden defs.
16762         * sysdeps/hurd/include/hurd.h: New file.
16763         * sysdeps/hurd/include/hurd/fd.h: New file.
16764         * sysdeps/hurd/include/hurd/signal.h: New file.
16765         * sysdeps/mach/include/lock-intern.h: New file.
16766         * sysdeps/mach/include/mach.h: New file.
16767         * sysdeps/mach/include/mach/mig_support.h: New file.
16768         * sysdeps/mach/include/mach_error.h: New file.
16769         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16770         prototype.
16771         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16772         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16773         _HEADER_H_HIDDEN_DEF macro.
16774         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16775         _hurd_fd_error_signal): Add hidden prototype.
16776         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16777         hidden def.
16778         * libio/iolibio.h (_IO_puts): New hidden prototype.
16779         * libio/ioputs.c (_IO_puts): New hidden def.
16780         * sysdeps/mach/hurd/localplt.data: New file.
16782 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
16783             Amos Jeffries  <squid3@treenet.co.nz>
16784             David Michael  <fedora.dm0@gmail.com>
16785             Marco Gerards  <marco@gnu.org>
16786             Marcus Brinkmann  <marcus@gnu.org>
16787             Neal H. Walfield  <neal@gnu.org>
16788             Pino Toscano  <toscano.pino@tiscali.it>
16789             Richard Braun  <rbraun@sceen.net>
16790             Roland McGrath  <roland@gnu.org>
16791             Samuel Thibault  <samuel.thibault@ens-lyon.org>
16792             Thomas DiModica  <ricinwich@yahoo.com>
16793             Thomas Schwinge  <tschwinge@gnu.org>
16795         * htl: New directory.
16796         * sysdeps/htl: New directory.
16797         * sysdeps/hurd/htl: New directory.
16798         * sysdeps/i386/htl: New directory.
16799         * sysdeps/mach/htl: New directory.
16800         * sysdeps/mach/hurd/htl: New directory.
16801         * sysdeps/mach/hurd/i386/htl: New directory.
16802         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16803         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16804         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16806 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16808         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16809         signals in thread created for runing timers.
16811 2018-04-01  Florian Weimer  <fweimer@redhat.com>
16813         * support/support_format_addrinfo.c (support_format_addrinfo):
16814         Include unknown error number in formatted result.
16816 2018-03-29  Florian Weimer  <fweimer@redhat.com>
16818         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16819         capture SIGBUS.
16821 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16823         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16824         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16825         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16826         (__ASSUME_CLONE_BACKWARDS): Define.
16828 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
16830         [BZ #23024]
16831         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16832         early when linux sentinel value is set.
16834 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16836         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16838 2018-03-27  Andreas Schwab  <schwab@suse.de>
16840         [BZ #23005]
16841         * resolv/res_send.c (__res_context_send): Return ENOMEM if
16842         allocation of private copy of nsaddr_list fails.
16844 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
16846         [BZ #16552]
16847         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16848         * sysdeps/unix/sysv/linux/umount.c: ... here.
16849         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16850         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16851         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16852         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16854         * sysdeps/unix/sysv/linux/umount.S: Likewise.
16855         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16857 2018-03-26  Andreas Schwab  <schwab@suse.de>
16859         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16860         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16861         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16862         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16863         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16864         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16865         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16866         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16867         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16868         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16869         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16870         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16871         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16872         (R_RISCV_NUM): Define.
16874 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16876         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16877         TLS declaration of errno.
16878         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16879         __libc_setup_tls.
16880         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16881         (ARCH_SETUP_TLS): Likewise.
16882         * sysdeps/mach/hurd/libc-start.h: New file copied from
16883         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16884         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16885         instead of __libc_setup_tls.
16886         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16887         __libc_setup_tls before initializing libpthread and running _hurd_init
16888         which starts the signal thread.
16889         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16890         Declare function.
16891         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16893 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
16895         [BZ #22998]
16896         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16897         after it is defined.
16899 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16900             Max Horn  <max@quendi.de>
16902         [BZ #22644]
16903         CVE-2017-18269
16904         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16905         branch conditions.
16906         * string/test-memmove.c (do_test2): New testcase.
16908 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
16910         * sysdeps/generic/frame.h: Remove file.
16911         * sysdeps/arm/frame.h: Likewise.
16912         * sysdeps/hppa/frame.h: Likewise.
16913         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16914         macro.
16915         (GET_FRAME): Likewise.
16916         (GET_STACK): Likewise.
16917         (CALL_SIGHANDLER): Likewise.
16918         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16919         Likewise.
16920         (GET_FRAME): Likewise.
16921         (GET_STACK): Likewise.
16922         (CALL_SIGHANDLER): Likewise.
16923         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16924         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16925         (GET_FRAME): Likewise.
16926         (GET_STACK): Likewise.
16927         (CALL_SIGHANDLER): Likewise.
16928         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16929         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16930         (GET_FRAME): Likewise.
16931         (GET_STACK): Likewise.
16932         (ADVANCE_STACK_FRAME): Likewise.
16933         (CALL_SIGHANDLER): Likewise.
16934         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16935         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16936         (GET_FRAME): Likewise.
16937         (GET_STACK): Likewise.
16938         (CALL_SIGHANDLER): Likewise.
16939         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16940         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16941         (GET_FRAME): Likewise.
16942         (GET_STACK): Likewise.
16943         (CALL_SIGHANDLER): Likewise.
16944         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16945         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16946         (GET_FRAME): Likewise.
16947         (GET_STACK): Likewise.
16948         (CALL_SIGHANDLER): Likewise.
16949         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16950         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16951         (GET_FRAME): Likewise.
16952         (GET_STACK): Likewise.
16953         (CALL_SIGHANDLER): Likewise.
16954         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16955         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16956         (GET_FRAME): Likewise.
16957         (GET_STACK): Likewise.
16958         (CALL_SIGHANDLER): Likewise.
16959         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16960         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16961         (GET_FRAME): Likewise.
16962         (GET_STACK): Likewise.
16963         (CALL_SIGHANDLER): Likewise.
16964         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16965         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16966         (GET_FRAME): Likewise.
16967         (GET_STACK): Likewise.
16968         (CALL_SIGHANDLER): Likewise.
16969         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16970         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16971         (GET_FRAME): Likewise.
16972         (GET_STACK): Likewise.
16973         (CALL_SIGHANDLER): Likewise.
16974         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16975         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16976         (GET_FRAME): Likewise.
16977         (GET_STACK): Likewise.
16978         (CALL_SIGHANDLER): Likewise.
16979         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16980         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16981         (FIRST_FRAME_POINTER): Likewise.
16982         (ADVANCE_STACK_FRAME): Likewise.
16983         (GET_STACK): Likewise.
16984         (GET_FRAME): Likewise.
16985         (CALL_SIGHANDLER): Likewise.
16986         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16987         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16988         (ADVANCE_STACK_FRAME): Likewise.
16989         (GET_STACK): Likewise.
16990         (GET_FRAME): Likewise.
16991         (CALL_SIGHANDLER): Likewise.
16992         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16993         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16994         (GET_FRAME): Likewise.
16995         (GET_STACK): Likewise.
16996         (CALL_SIGHANDLER): Likewise.
16997         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16998         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16999         (GET_FRAME): Likewise.
17000         (GET_STACK): Likewise.
17001         (CALL_SIGHANDLER): Likewise.
17003 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
17005         * sysdeps/x86_64/backtrace.c: Move to ....
17006         * debug/backtrace.c: ... here.
17007         * sysdeps/aarch64/backtrace.c: Remove file.
17008         * sysdeps/alpha/backtrace.c: Likewise.
17009         * sysdeps/hppa/backtrace.c: Likewise.
17010         * sysdeps/ia64/backtrace.c: Likewise.
17011         * sysdeps/mips/backtrace.c: Likewise.
17012         * sysdeps/nios2/backtrace.c: Likewise.
17013         * sysdeps/riscv/backtrace.c: Likewise.
17014         * sysdeps/sh/backtrace.c: Likewise.
17015         * sysdeps/tile/backtrace.c: Likewise.
17017 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17019         [BZ #22987]
17020         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
17021         function.
17022         (fdimf): Likewise.
17023         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
17025         [BZ #17343]
17026         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
17027         possibly overflowing computations.
17029 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17031         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
17032         values from Linux-specific section now that it is in the GNU section.
17033         * sysdeps/gnu/errlist.c: Regenerate.
17035 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17037         * math/Makefile (libm-narrow-fns): Add sub.
17038         (libm-test-funcs-narrow): Likewise.
17039         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
17040         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
17041         * math/gen-auto-libm-tests.c (test_functions): Add sub.
17042         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
17043         (NARROW_SUB_ROUND_TO_ODD): Likewise.
17044         (NARROW_SUB_TRIVIAL): Likewise.
17045         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
17046         macro.
17047         (__dsubl): Likewise.
17048         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
17049         dsub.
17050         (CFLAGS-nldbl-dsub.c): New variable.
17051         (CFLAGS-nldbl-fsub.c): Likewise.
17052         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17053         __nldbl_dsubl.
17054         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
17055         prototype.
17056         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
17057         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
17058         * math/auto-libm-test-in: Add tests of sub.
17059         * math/auto-libm-test-out-narrow-sub: New generated file.
17060         * math/libm-test-narrow-sub.inc: New file.
17061         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17062         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
17063         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
17064         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
17065         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
17066         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
17067         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
17068         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
17069         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
17070         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
17071         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
17072         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
17073         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
17074         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
17075         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
17076         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
17077         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
17078         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
17079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17080         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17081         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17082         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17083         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17084         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17085         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17086         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17087         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17088         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17089         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17090         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17091         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17092         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17097         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17098         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17099         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17100         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17101         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17102         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17103         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17104         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17105         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17106         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17108 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
17110         [BZ #20079]
17111         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
17113 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
17115         * benchtests/bench-timing.h (attribute_hidden): Undefine.
17117 2018-03-18  Richard Braun  <rbraun@sceen.net>
17119         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
17120         thread reference.
17122 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
17124         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
17125         (__libc_cleanup_fct): Define function.
17126         (__libc_cleanup_region_start, __libc_cleanup_region_end,
17127         __libc_cleanup_end): Rewrite implementation using
17128         __attribute__ ((__cleanup__)).
17129         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
17130         * hurd/Makefile (routines): Add hurdlock.
17131         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
17132         interface.
17133         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
17134         * hurd/hurdpid.c: Include <lowlevellock.h>
17135         (_S_msg_proc_newids): Use lll_wait to synchronize.
17136         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
17137         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
17138         * mach/Makefile (lock-headers): Remove machine-lock.h.
17139         * mach/lock-intern.h: Include <lowlevellock.h> instead of
17140         <machine-lock.h>.
17141         (__spin_lock_t): New type.
17142         (__SPIN_LOCK_INITIALIZER): New macro.
17143         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
17144         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
17145         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
17146         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
17147         (__mutex_init): Initialize with lll.
17148         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
17149         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
17150         needing lll.
17151         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
17152         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
17153         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
17154         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
17155         (__setpgid): Use lll for synchronization.
17156         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
17157         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
17158         instead of <cthreads.h>.
17159         (_IO_lock_inexpensive): New macro
17160         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
17161         (__libc_lock_self0): New declaration.
17162         (__libc_lock_owner_self): New macro.
17163         (__libc_key_t): Remove type.
17164         (_LIBC_LOCK_INITIALIZER): New macro.
17165         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
17166         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
17167         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
17168         __libc_lock_define_initialized_recursive,
17169         __rtld_lock_define_initialized_recursive,
17170         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
17171         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
17172         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
17173         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
17174         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
17175         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
17176         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
17177         New macros.
17178         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
17179         * hurd/hurdlock.c: New file.
17180         * hurd/hurdlock.h: New file.
17181         * mach/lowlevellock.h: New file
17183 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17185         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
17186         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
17187         when opening a symlink with O_NOFOLLOW.
17188         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
17189         path when flags contains O_NOFOLLOW.
17190         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
17191         if flags contains O_DIRECTORY and the result is a directory.
17192         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
17193         oneself when the pointer given in D is nul (as set by ext2fs).
17194         * sysdeps/mach/hurd/mlockall.c: New file.
17195         * sysdeps/mach/hurd/munlockall.c: New file.
17197 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17199         * hurd/hurdsig.c: Include <pthread.h>.
17200         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
17201         get the signal thread stack layout.
17202         * hurd/Makefile (headers): Remove threadvar.h.
17203         (inline-headers): Remove threadvar.h.
17204         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
17205         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
17206         __hurd_threadvar_max, __hurd_errno_location.
17207         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
17208         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
17209         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
17210         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
17211         unless TLS is not initialized yet, in which case we do not need a
17212         critical section yet anyway.
17213         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
17214         <machine-sp.h>.
17215         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
17216         declarations.
17217         (__hurd_threadvar_index): Remove enum.
17218         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
17219         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
17220         inlines.
17221         (__hurd_reply_port0): New variable declaration.
17222         (__hurd_local_reply_port): New macro.
17223         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
17224         (interrupted_reply_port_location): Add thread_t parameter.  Use it
17225         with THREAD_TCB to access thread-local variables.
17226         (_hurdsig_abort_rpcs): Pass ss->thread to
17227         interrupted_reply_port_location.
17228         (_hurd_internal_post_signal): Likewise.
17229         (_hurdsig_init): Use presence of cthread_fork instead of
17230         __hurd_threadvar_stack_mask to start signal thread by hand.
17231         Remove signal thread threadvar initialization.
17232         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
17233         * hurd/sigunwind.c: Include <hurd/threadvar.h>
17234         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
17235         of threadvar.
17236         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
17237         __libc_lock_self0.
17238         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
17239         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
17240         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
17241         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
17242         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
17243         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
17244         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
17245         define variables.
17246         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
17247         <hurd/threadvar.h>.
17248         [IS_IN(rtld)] (rtld_errno): New variable.
17249         [IS_IN(rtld)] (__errno_location): New weak function.
17250         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
17251         * sysdeps/mach/hurd/errno.c: Remove file.
17252         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
17253         (__fork): Remove THREADVAR_SPACE macro and its use.
17254         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
17255         variable.
17256         (init): Do not initialize threadvar.
17257         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
17258         symbol.
17259         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
17260         __hurd_local_reply_port instead of threadvar.
17261         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
17262         _hurd_sigstate fields.
17263         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
17264         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
17265         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
17266         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
17267         instead of threadvar.
17268         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
17269         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
17270         (use_threadvar, global_reply_port): Remove variables.
17271         (__hurd_reply_port0): New variable.
17272         (__mig_get_reply_port): Use __hurd_local_reply_port and
17273         __hurd_reply_port0 instead of threadvar.
17274         (__mig_dealloc_reply_port): Likewise.
17275         (__mig_init): Do not initialize threadvar.
17276         * sysdeps/mach/hurd/profil.c: Fix comment.
17277         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
17278         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
17279         cthread_keycreate, cthread_getspecific, cthread_setspecific to
17280         __cthread_fork, __cthread_detach, __pthread_getattr_np,
17281         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
17282         __cthread_setspecific.
17283         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
17284         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
17285         __cthread_t instead of cthread_fork, cthread_detach,
17286         pthread_getattr_np, pthread_attr_getstack.
17287         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
17288         __cthread_keycreate.
17289         (cthread_getspecific): Rename to __cthread_getspecific.
17290         (cthread_setspecific): Rename to __cthread_setspecific.
17291         (__libc_getspecific): Use __cthread_getspecific instead of
17292         cthread_getspecific.
17293         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
17294         __cthread_keycreate instead of cthread_keycreate.
17295         (__libc_setspecific): Use __cthread_setspecific instead of
17296         cthread_setspecific.
17297         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
17298         Likewise.
17299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
17300         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
17301         testing whether it is defined.
17303 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17305         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17306         Define macro.
17307         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17308         * sysdeps/mach/i386/thread_state.h
17309         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17310         i386_THREAD_STATE.
17311         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17312         i386_THREAD_STATE.
17313         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17315         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17316         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17318         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17319         macros.
17320         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17321         descriptor instead of creating a new one.
17322         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17324         * mach/setup-thread.c: Include <ldsodefs.h>.
17325         (__mach_setup_thread): Call _dl_allocate_tls, pass
17326         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17327         MACHINE_THREAD_STATE_FLAVOR, before getting
17328         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17329         MACHINE_THREAD_STATE_FLAVOR with the result.
17330         * hurd/hurdfault.c (_hurdsig_fault_init): Call
17331         MACHINE_THREAD_STATE_FIX_NEW.
17332         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17333         too.  Add original thread parameter.
17335 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
17337         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17338         Remove inline function.
17340         * sysdeps/i386/fpu/libm-test-ulps: Update.
17341         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17343 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
17345         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17346         commit.
17348 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
17350         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17351         (__sincos_code): Remove define and undefine.
17352         [__FAST_MATH__] (__sincos): Remove inline function.
17353         [__FAST_MATH__] (__sincosf): Remove inline function.
17354         [__FAST_MATH__] (__sincosl): Remove inline function.
17355         (__atan2l): Remove inline functions.
17356         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17357         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17358         function.
17359         (floor): Remove inline function.
17360         (ceil): Likewise.
17361         [__FAST_MATH__] (__ldexp_code): Remove macro.
17362         [__FAST_MATH__] (ldexp): Remove inline function.
17363         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17364         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17365         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17366         [__USE_ISOC99] (__lrint_code): Remove macro.
17367         [__USE_ISOC99] (__llrint_code): Likewise.
17368         [__USE_ISOC99] (lrintf): Remove inline function.
17369         [__USE_ISOC99] (lrint): Likewise.
17370         [__USE_ISOC99] (lrintl): Likewise.
17371         [__USE_ISOC99] (llrint): Likewise.
17372         [__USE_ISOC99] (llrintf): Likewise.
17373         [__USE_ISOC99] (llrintl): Likewise.
17375 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17377         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17378         (__ieee754_sqrtf): Remove.
17379         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17380         (__ieee754_sqrtf): Remove.
17381         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17382         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17383         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17384         (__ieee754_sqrtf): Remove.
17385         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17386         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17387         (sqrtf): Remove.
17388         (sqrtl): Remove.
17389         (__ieee754_sqrt): Remove.
17390         (__ieee754_sqrtf): Remove.
17391         (__ieee754_sqrtl): Remove.
17392         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17393         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17394         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17395         (__ieee754_sqrtf): Remove.
17396         (__ieee754_sqrtl): Remove.
17398 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17400         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17401         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17402         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17403         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17404         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17405         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17406         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17407         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17408         Likewise.
17409         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17410         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17411         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17412         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17413         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17414         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17415         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17416         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17417         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17418         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17419         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17420         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17421         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17422         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17423         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17424         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17425         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17426         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17427         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17429         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17430         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17431         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17432         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17433         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17434         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17435         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17436         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17437         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17438         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17439         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17440         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17441         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17442         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17443         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17444         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17445         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17446         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17447         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17448         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17450 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17452         * include/math.h (sqrt): Declare with asm redirect.
17453         (sqrtf): Likewise.
17454         (sqrtl): Likewise.
17455         (sqrtf128): Likewise.
17456         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17457         nonlib and libnldbl with -fmath-errno.
17458         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17459         * math/w_sqrt_template.c: Likewise.
17460         * math/w_sqrtf_compat.c: Likewise.
17461         * math/w_sqrtl_compat.c: Likewise.
17462         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17463         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17464         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17465         complex.h.
17467 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17469         * benchtests/Makefile: Define _ISOMAC.
17470         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17471         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17472         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17473         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17474         * benchtests/bench-timing.h: Define attribute_hidden.
17476 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17478         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17479         mov + lsr.
17481 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17483         [BZ #22963]
17484         * localedata/locales/cs_CZ (mon): Rename to...
17485         (alt_mon): This.
17486         (mon): Import from CLDR (genitive case).
17488 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17490         [BZ #22937]
17491         * localedata/locales/el_CY (abmon): Rename to...
17492         (ab_alt_mon): This.
17493         (abmon): Import from CLDR (abbreviated genitive case).
17494         * localedata/locales/el_GR (abmon): Rename to...
17495         (ab_alt_mon): This.
17496         (abmon): Import from CLDR (abbreviated genitive case).
17498 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17500         [BZ #22932]
17501         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17503 2018-03-15  Robert Buj  <robert.buj@gmail.com>
17505         [BZ #22848]
17506         * localedata/locales/ca_ES (abmon): Rename to...
17507         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17508         (mon): Rename to...
17509         (alt_mon): This.
17510         (abmon): Import from CLDR (genitive case, month names preceded by
17511         "de" or "d’").
17512         (mon): Likewise.
17513         (abday): Synchronize with CLDR.
17514         (d_t_fmt): Likewise.
17515         (d_fmt): Likewise.
17516         (am_pm): Likewise.
17518         (LC_TIME): Improve indentation.
17519         (LC_TELEPHONE): Likewise.
17520         (LC_NAME): Likewise.
17521         (LC_ADDRESS): Likewise.
17523 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
17525         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17526         (lrintf): Remove definitions used only with old GCC.
17527         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17528         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17529         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17530         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17531         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17532         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17533         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17534         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17535         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17536         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17537         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17538         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17539         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17540         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17541         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17542         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17543         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17544         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17545         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17546         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17547         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17548         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17549         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17550         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17551         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17552         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17553         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17554         [__FAST_MATH__] (__M_SQRT2): Remove macro.
17556 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17558         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17559         instruction to unbreak builds with binutils 2.26 and older.
17561 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17563         * sysdeps/aarch64/strncmp.S (count): New macro.
17564         (strncmp): Store misaligned length in SRC1 in COUNT.
17565         (mutual_align): Adjust.
17566         (misaligned8): Load dword at a time when it is safe.
17568 2018-03-12  Zack Weinberg  <zackw@panix.com>
17570         [BZ #1190]
17571         [BZ #19476]
17572         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17573         if the _IO_EOF_SEEN bit is already set; update commentary.
17574         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17575         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17577         * support/support_openpty.c, support/tty.h: New files.
17578         * support/Makefile (libsupport-routines): Add support_openpty.
17580         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17581         New test cases.
17582         * libio/Makefile (tests): Add tst-fgetc-after-eof.
17583         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17585 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
17587         * po/pt_BR.po: Update translations.
17589 2018-03-12  David Michael  <fedora.dm0@gmail.com>
17591         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17592         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17593         get a port to the startup server.
17595 2018-03-11  Zack Weinberg  <zackw@panix.com>
17597         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17598         before nldbl-compat.h.
17600 2018-03-10  Zack Weinberg  <zackw@panix.com>
17602         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17603         math.h or math_private.h.
17605         * sysdeps/alpha/fpu/s_isnan.c
17606         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17607         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17608         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17609         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17610         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17611         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17612         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17613         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17614         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17617         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17618         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17619         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17620         Include math_private.h.
17622         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17623         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17624         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17625         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17626         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17627         * sysdeps/powerpc/power7/fpu/s_logb.c:
17628         Include math.h and math_private.h.
17630         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17631         uses of $at in .set noat / .set at.
17633 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
17635         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17636         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17637         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17638         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17639         Likewise.
17641 2018-03-09  Florian Weimer  <fweimer@redhat.com>
17643         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17644         in comment.
17646 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17648         [BZ #22919]
17649         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17650         Add nop before __startcontext, add explaining comments.
17652 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17654         [BZ #22926]
17655         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17656         empty for __SPE__.
17657         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17658         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17659         Do not build hardware transactional code for __SPE__.
17660         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17661         (__lll_trylock_elision): Likewise.
17662         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17663         (__lll_unlock_elision): Likewise.
17665         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17666         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17667         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17668         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17669         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17670         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17671         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17672         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17673         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17674         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17675         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17676         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17677         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17678         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17679         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17680         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17681         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17682         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17683         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17684         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17685         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17686         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17687         (__ASSUME_CLONE_BACKWARDS): Define.
17688         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17689         __clone2 if __NR_clone2 is defined.
17690         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17691         (__ASSUME_CLONE_BACKWARDS): Likewise.
17692         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17693         (__ASSUME_CLONE_BACKWARDS): Likewise.
17694         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17695         (__ASSUME_CLONE2): Likewise.
17696         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17697         (__ASSUME_CLONE_BACKWARDS3): Likewise.
17698         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17699         variants and the define architecture can use.
17700         (__ASSUME_CLONE_DEFAULT): Define as default.
17701         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17702         (__ASSUME_CLONE_BACKWARDS): Likewise.
17703         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17704         (__ASSUME_CLONE_BACKWARDS): Likewise.
17705         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17706         (__ASSUME_CLONE_BACKWARDS2): Likewise.
17708 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17710         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17712         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17713         time.
17715         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17716         (do_test_limit): Likewise.
17718         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17719         for every implementation.
17720         (do_test): Likewise.
17722         * benchtests/bench-strncmp.c: Convert output to json.
17724 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17726         * io/futimens.c: Add missing start-of-file descriptive comment.
17727         * io/utime.c: Likewise.
17728         * misc/futimesat.c: Likewise.
17729         * misc/utimes.c: Likewise.
17730         * sysdeps/mach/hurd/futimesat.c: Likewise.
17731         * sysdeps/mach/hurd/utimes.c: Likewise.
17732         * sysdeps/posix/utime.c: Likewise.
17733         * sysdeps/posix/utimes.c: Likewise.
17734         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17735         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17736         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17737         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17739 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17741         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17742         hurd_futimes.
17743         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17744         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17745         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17746         (__futimens): Move implementation to...
17747         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17748         utime_tvalue_from_tspec): ... new helper functions.
17749         (hurd_futimens): New function.
17750         * sysdeps/mach/hurd/futimesat.c: New file.
17751         * sysdeps/mach/hurd/utimensat.c: New file.
17753 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
17755         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17756         UTIME_OMIT): New macros.
17757         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17758         before reverting to converting time spec to time value and calling
17759         __file_utimes.
17760         * sysdeps/mach/hurd/utime-helper.c: New file.
17761         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17762         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17763         reverting to utime_tvalue_from_tval and __file_utimes.
17764         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17765         (__lutimes): Just call hurd_futimens after lookup.
17766         * sysdeps/mach/hurd/utimes.c: Likewise.
17768 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17770         * bits/sigaction.h: Add include guard.
17771         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17772         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17773         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17774         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17775         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17776         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17777         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17778         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17779         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17781 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
17783         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17784         -Wmaybe-uninitialized for -Os.
17785         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17786         this disabling.
17788 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17790         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17791         __INO_T_MATCHES_INO64_T is defined.
17792         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17793         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17794         of definition.
17795         * dirent/alphasort64.c: Likewise.
17796         * dirent/scandir.c: Likewise.
17797         * dirent/scandir64-tail.c: Likewise.
17798         * dirent/scandir64.c: Likewise.
17799         * dirent/scandirat.c: Likewise.
17800         * dirent/scandirat64.c: Likewise.
17801         * dirent/versionsort.c: Likewise.
17802         * dirent/versionsort64.c: Likewise.
17803         * include/dirent.h: Likewise.
17805         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17806         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17807         for socketpair endpoint.
17808         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17809         WRITE_BUFFER_SIZE as buffer size for sending socket.
17810         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17811         issue on system where send is implemented with sendto syscall.
17812         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17813         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17814         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17815         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17817         [BZ #21269]
17818         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17819         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17820         sa_restorer for vDSO case.
17821         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17823 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17825         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17826         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17827         * hurd/hurd/ioctl.h: Include <mach/port.h>
17828         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17829         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17830         <mach/mach_types.h> and <mach/message.h>.
17831         (headers): Move mach/param.h to bits/mach/param.h.
17832         * sysdeps/mach/i386/mach/param.h: Move file to ...
17833         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
17834         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17835         of <mach/param.h>.
17836         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17837         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17838         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17839         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17840         trivial, for C++ conformity.
17841         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17842         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17843         Process mig output through $(migheadersed).
17844         * hurd/Makefile (migheadersed): Define variable.
17845         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17846         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17847         headers.
17848         * hurd/hurd.h: Include <bits/types/sigset_t.h>
17849         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17850         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17851         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17852         <bits/types/sigset_t.h>.
17853         [!defined __USE_GNU]: Do not #error out.
17854         (struct hurd_sigstate): Use _NSIG instead of NSIG.
17855         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17856         Include <stddef.h> and <bits/types/sigset_t.h>
17857         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17858         instead of sighandler_t.
17859         * stdlib/errno.h (error_t): Move definition to...
17860         * bits/types/error_t.h: ... new header.
17861         * stdlib/Makefile (headers): Add bits/types/error_t.h.
17862         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17863         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17864         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17865         * hurd/hurd.h: Include <bits/types/error_t.h>
17866         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17867         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17868         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17869         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17870         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17871         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17872         * sysdeps/mach/hurd/futimens.c: New file.
17874 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17876         [BZ #22918]
17877         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17878         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17879         * nscd/gai.c (__nss_hosts_database): Readd definition.
17880         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17881         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17882         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17884 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
17886         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17887         (ifunc_one): Likewise.
17889 2018-03-01  DJ Delorie  <dj@delorie.com>
17891         [BZ #22342]
17892         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17893         key value.
17895 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
17897         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17898         `match_pid' parameter.
17899         (td_ta_thr_iter): Update accordingly.
17901 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17903         * nptl/Makefile (install-lib-ldscripts): Remove.
17904         (install): Remove rule.
17905         ($(inst_libdir)/libpthread.so): Likewise.
17907 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17909         [BZ #22896]
17910         * localedata/locales/an_ES: update month and day names,
17911         improve d_fmt, improve postal_fmt, add country_post,
17912         add country_isbn
17914 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17916         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17917         Ukrainian instead of Bulgarian.
17919 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17921         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17922         reference.
17924 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17926         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
17927         * nptl/Makefile (routines): Add pthread_atfork.
17928         (static-only-routines): Set to pthread_atfork.
17929         (libpthread-routines): Remove pthread_atfork.
17930         (libpthread-static-only-routines): Remove.
17931         (install): Update comment.
17932         (libpthread.so): Do not install libpthread_nonshared.a.
17933         (tests): Do not link with libpthread_nonshared.a.
17934         (generated): Remove libpthread_nonshared.a.
17935         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17936         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17937         with libpthread_nonshared.a.
17939 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
17941         [BZ #22902]
17942         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17943         (libc_feholdexcept_setroundf128): New macro.
17944         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17946         [BZ #15105]
17947         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17948         libc_hidden_def.
17949         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17950         * include/inttypes.h: New file.
17952 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
17954         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17955         -Os in two more places.
17957 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17959         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17960         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17961         be sorted correctly at the moment because of a bug.
17963 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17965         [BZ #22550] - es_ES locale (and other es_* locales): collation should
17966         treat ñ as a primary different character, sync the collation
17967         for Spanish with CLDR.
17968         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17969         * localedata/Makefile: Add new test files.
17970         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17971         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17972         collation order.
17973         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17974         * localedata/am_ET.UTF-8.in: New test file.
17975         * localedata/az_AZ.UTF-8.in: Likewise.
17976         * localedata/be_BY.UTF-8.in: Likewise.
17977         * localedata/ber_DZ.UTF-8.in: Likewise.
17978         * localedata/ber_MA.UTF-8.in: Likewise.
17979         * localedata/bg_BG.UTF-8.in: Likewise.
17980         * localedata/br_FR.UTF-8.in: Likewise.
17981         * localedata/cmn_TW.UTF-8.in: Likewise.
17982         * localedata/crh_UA.UTF-8.in: Likewise.
17983         * localedata/csb_PL.UTF-8.in: Likewise.
17984         * localedata/cv_RU.UTF-8.in: Likewise.
17985         * localedata/cy_GB.UTF-8.in: Likewise.
17986         * localedata/dz_BT.UTF-8.in: Likewise.
17987         * localedata/eo.UTF-8.in: Likewise.
17988         * localedata/es_ES.UTF-8.in: Likewise.
17989         * localedata/fa_IR.UTF-8.in: Likewise.
17990         * localedata/fi_FI.UTF-8.in: Likewise.
17991         * localedata/fil_PH.UTF-8.in: Likewise.
17992         * localedata/fur_IT.UTF-8.in: Likewise.
17993         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17994         * localedata/ha_NG.UTF-8.in: Likewise.
17995         * localedata/ig_NG.UTF-8.in: Likewise.
17996         * localedata/ik_CA.UTF-8.in: Likewise.
17997         * localedata/kk_KZ.UTF-8.in: Likewise.
17998         * localedata/ku_TR.UTF-8.in: Likewise.
17999         * localedata/ky_KG.UTF-8.in: Likewise.
18000         * localedata/ln_CD.UTF-8.in: Likewise.
18001         * localedata/mi_NZ.UTF-8.in: Likewise.
18002         * localedata/ml_IN.UTF-8.in: Likewise.
18003         * localedata/mn_MN.UTF-8.in: Likewise.
18004         * localedata/mr_IN.UTF-8.in: Likewise.
18005         * localedata/mt_MT.UTF-8.in: Likewise.
18006         * localedata/nb_NO.UTF-8.in: Likewise.
18007         * localedata/om_KE.UTF-8.in: Likewise.
18008         * localedata/os_RU.UTF-8.in: Likewise.
18009         * localedata/ps_AF.UTF-8.in: Likewise.
18010         * localedata/ro_RO.UTF-8.in: Likewise.
18011         * localedata/ru_RU.UTF-8.in: Likewise.
18012         * localedata/sc_IT.UTF-8.in: Likewise.
18013         * localedata/se_NO.UTF-8.in: Likewise.
18014         * localedata/sq_AL.UTF-8.in: Likewise.
18015         * localedata/sv_SE.UTF-8.in: Likewise.
18016         * localedata/szl_PL.UTF-8.in: Likewise.
18017         * localedata/tg_TJ.UTF-8.in: Likewise.
18018         * localedata/tk_TM.UTF-8.in: Likewise.
18019         * localedata/tt_RU.UTF-8.in: Likewise.
18020         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
18021         * localedata/ug_CN.UTF-8.in: Likewise.
18022         * localedata/uz_UZ.UTF-8.in: Likewise.
18023         * localedata/vi_VN.UTF-8.in: Likewise.
18024         * localedata/yi_US.UTF-8.in: Likewise.
18025         * localedata/yo_NG.UTF-8.in: Likewise.
18026         * localedata/zh_CN.UTF-8.in: Likewise.
18027         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
18028         file and fix bugs in the collation.
18029         * localedata/locales/az_AZ: Likewise.
18030         * localedata/locales/be_BY: Likewise.
18031         * localedata/locales/ber_DZ: Likewise.
18032         * localedata/locales/ber_MA: Likewise.
18033         * localedata/locales/bg_BG: Likewise.
18034         * localedata/locales/br_FR: Likewise.
18035         * localedata/locales/br_FR@euro: Likewise.
18036         * localedata/locales/ca_ES: Likewise.
18037         * localedata/locales/cns11643_stroke: Likewise.
18038         * localedata/locales/crh_UA: Likewise.
18039         * localedata/locales/cs_CZ: Likewise.
18040         * localedata/locales/csb_PL: Likewise.
18041         * localedata/locales/cv_RU: Likewise.
18042         * localedata/locales/cy_GB: Likewise.
18043         * localedata/locales/da_DK: Likewise.
18044         * localedata/locales/dz_BT: Likewise.
18045         * localedata/locales/en_CA: Likewise.
18046         * localedata/locales/eo: Likewise.
18047         * localedata/locales/es_CU: Likewise.
18048         * localedata/locales/es_EC: Likewise.
18049         * localedata/locales/es_ES: Likewise.
18050         * localedata/locales/es_US: Likewise.
18051         * localedata/locales/et_EE: Likewise.
18052         * localedata/locales/fa_IR: Likewise.
18053         * localedata/locales/fi_FI: Likewise.
18054         * localedata/locales/fil_PH: Likewise.
18055         * localedata/locales/fur_IT: Likewise.
18056         * localedata/locales/gez_ER@abegede: Likewise.
18057         * localedata/locales/ha_NG: Likewise.
18058         * localedata/locales/hr_HR: Likewise.
18059         * localedata/locales/hsb_DE: Likewise.
18060         * localedata/locales/hu_HU: Likewise.
18061         * localedata/locales/ig_NG: Likewise.
18062         * localedata/locales/ik_CA: Likewise.
18063         * localedata/locales/is_IS: Likewise.
18064         * localedata/locales/iso14651_t1_pinyin: Likewise.
18065         * localedata/locales/kk_KZ: Likewise.
18066         * localedata/locales/ku_TR: Likewise.
18067         * localedata/locales/ky_KG: Likewise.
18068         * localedata/locales/ln_CD: Likewise.
18069         * localedata/locales/lt_LT: Likewise.
18070         * localedata/locales/lv_LV: Likewise.
18071         * localedata/locales/mi_NZ: Likewise.
18072         * localedata/locales/ml_IN: Likewise.
18073         * localedata/locales/mn_MN: Likewise.
18074         * localedata/locales/mr_IN: Likewise.
18075         * localedata/locales/mt_MT: Likewise.
18076         * localedata/locales/nb_NO: Likewise.
18077         * localedata/locales/om_KE: Likewise.
18078         * localedata/locales/os_RU: Likewise.
18079         * localedata/locales/pl_PL: Likewise.
18080         * localedata/locales/ps_AF: Likewise.
18081         * localedata/locales/ro_RO: Likewise.
18082         * localedata/locales/ru_RU: Likewise.
18083         * localedata/locales/ru_UA: Likewise.
18084         * localedata/locales/sc_IT: Likewise.
18085         * localedata/locales/se_NO: Likewise.
18086         * localedata/locales/si_LK: Likewise.
18087         * localedata/locales/sq_AL: Likewise.
18088         * localedata/locales/sv_FI: Likewise.
18089         * localedata/locales/sv_FI@euro: Likewise.
18090         * localedata/locales/sv_SE: Likewise.
18091         * localedata/locales/szl_PL: Likewise.
18092         * localedata/locales/tg_TJ: Likewise.
18093         * localedata/locales/ti_ER: Likewise.
18094         * localedata/locales/tk_TM: Likewise.
18095         * localedata/locales/tl_PH: Likewise.
18096         * localedata/locales/tr_TR: Likewise.
18097         * localedata/locales/tt_RU: Likewise.
18098         * localedata/locales/tt_RU@iqtelif: Likewise.
18099         * localedata/locales/ug_CN: Likewise.
18100         * localedata/locales/uk_UA: Likewise.
18101         * localedata/locales/uz_UZ: Likewise.
18102         * localedata/locales/uz_UZ@cyrillic: Likewise.
18103         * localedata/locales/vi_VN: Likewise.
18104         * localedata/locales/yi_US: Likewise.
18105         * localedata/locales/yo_NG: Likewise.
18107 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18109         * gen-locales.mk: Make test files which contain @ modifiers in their
18110         name work.
18111         * localedata/gen-locale.sh: Likewise.
18113 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18115         * posix/tst-fnmatch.input: Fix results for range expressions
18116         for non C locales.
18117         * posix/tst-regexloc.c: Do not use a range expression for
18118         de_DE.ISO-8859-1 locale.
18120 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18122         * posix/bug-regex5.c: Fix test case because with the new
18123         iso14651_t1_common file, the da_DK locale now has 6 collating elements
18124         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
18125         file.
18127 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18129         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
18130         downloaded from ISO, the collation order of @-. and space has changed.
18131         Therefore, this test file needed to be adapted.
18132         * localedata/fr_CA.UTF-8.in: Likewise.
18133         * localedata/fr_FR.UTF-8.in: Likewise.
18134         * localedata/uk_UA.UTF-8.in: Likewise.
18136 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18138         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
18139         order of ȥ in the new iso14651_t1_common file.
18140         * localedata/pl_PL.UTF-8.in: Likewise.
18142 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18144         * localedata/locales/iso14651_t1_common: Add sections for various
18145         scripts to the iso14651_t1_common file.
18147 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18149         * localedata/locales/iso14651_t1_common: Use the code point of a
18150         character in the fourth collation level instead of IGNORE for all
18151         entries which have IGNORE on all 4 levels.
18153 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18155         * localedata/locales/iso14651_t1_common: Add some convenient collation
18156         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
18157         rules similar to those in CLDR.
18159 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18161         * localedata/locales/iso14651_t1_common: The new version of this
18162         file downloaded from ISO contained several syntax errors which
18163         are fixed by this patch.
18165 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18167         * localedata/locales/iso14651_t1_common: replace all <U.....>
18168         with <U000.....> because glibc understands only 4 digit or 8 digit
18170 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18172         * localedata/locales/iso14651_t1_common: Necessary changes
18173         to make the file downloaded from ISO usable by glibc.
18175 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18177         [BZ #14095]
18178         * localedata/locales/iso14651_t1_common: Update file to
18179         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
18181 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18183         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
18184         of <nptl/pthreadP.h>
18185         (thread_attr_compare): Move function to...
18186         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
18187         * sysdeps/nptl/timer_routines.h: ... new header.
18188         * sysdeps/mach/hurd/gai_misc.h: New file.
18190 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
18192         * string/strcoll_l.c: Include <libc-diag.h>.
18193         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
18194         declarations of seq1 and seq2.
18196         [BZ #15105]
18197         * stdlib/atoi.c (atoi): Use libc_hidden_def.
18198         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
18200 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
18202         [BZ #22433]
18203         [BZ #22807]
18204         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
18205         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
18206         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
18207         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
18208         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
18209         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
18211 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18213         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
18214         macros used in __ptrace_request.
18216 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
18218         [BZ #22792]
18219         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
18220         to $(CC).
18221         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
18222         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
18223         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
18224         <tcb-offsets.h>.
18226 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
18228         [BZ #15105]
18229         * ctype/ctype.c (tolower): Use libc_hidden_def.
18230         (toupper): Likewise.
18231         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
18232         [!_ISOMAC] (toupper): Likewise.
18234 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18236         * localedata/Makefile: Remove --quiet argument when
18237         installing locales
18239 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18241         [BZ #17438]
18242         * localedata/locales/pt_BR (LC_TIME): use / instead of -
18243         in d_fmt.
18244         * localedata/locales/pt_PT (LC_TIME): likewise
18246 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18248         [BZ #22646]
18249         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
18250         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
18251         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
18253 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18255         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18257         * nptl/Makefile (routines): Remove unregister-atfork.
18258         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
18259         (fork_handler_alloc): Remove function.
18260         (fork_handlers, fork_handler_init): New variables.
18261         (__fork_lock): Rename to atfork_lock.
18262         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
18263         to use a dynamic array to add/remove atfork handlers.
18264         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18265         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
18266         Remove declaration.
18267         (fork_handler): Remove next, refcntr, and need_signal member.
18268         (__run_fork_handler_type): New enum.
18269         (__run_fork_handlers): New prototype.
18270         * nptl/register-atfork.c: Remove file.
18271         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
18273         * sysdeps/nptl/nptl-signals.h: Move to ...
18274         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
18275         comments.
18276         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
18277         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
18278         unnecessary check for SIGTIMER.
18279         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
18280         remove unnecessary removal of SIGTIMER.
18281         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
18282         include-signals.h rename.
18283         * nptl/pthreadP.h: Likewise.
18284         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
18285         __is_internal_signal instead of __nptl_is_internal_signal.
18287 2018-02-22  Andrew Waterman  <andrew@sifive.com>
18289         [BZ # 22884]
18290         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
18291         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
18292         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
18293         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
18295 2018-02-22  DJ Delorie  <dj@delorie.com>
18297         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
18299 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18301         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
18302         do_misaligned, not misaligned8.
18304 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
18306         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18307         Add memcpy_thunderx2.
18308         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18309         Increment to 4.
18310         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18311         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18312         and IS_THUNDERX2PA checks.
18313         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18314         Use macro to set name appropriately.
18315         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18316         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18317         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18318         New macro.
18319         (IS_THUNDERX2): New macro.
18321 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18323         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18325 2018-02-21  Zack Weinberg  <zackw@panix.com>
18327         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18328         Define here, unconditionally.
18329         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18330         * libio/libioP.h: Remove #if 0 blocks.
18331         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18332         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18333         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
18335         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18336         Assume weak_alias is always defined.
18338         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18339         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18340         Remove #if 0 and #ifdef TODO blocks.
18341         Assume text_set_element is always defined.
18343         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18344         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18345         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18347         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18348         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18349         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18350         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18351         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18352         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18353         Reformat bit flags for _flags field to make occupancy clearer.
18354         Update commentary.
18355         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18356         Keep definitions consistent with those in libio/libio.h.
18358         * libio/libio.h (_IO_file_flags): Remove macro.
18359         All uses changed to _flags.
18361         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18362         (__HAVE_COLUMN, _IO_BE): Don't define.
18363         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18364         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18365         * libio/libioP.h (EOF): Don't define.
18366         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18367         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18368         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18369         testing _IO_UNIFIED_JUMPTABLES.
18371         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18372         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18373         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18374         (_IO_size_t): Delete; all uses changed to size_t.
18375         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18376         (_IO_off_t): Delete; all uses changed to off_t.
18377         (_IO_off64_t): Delete; all uses changed to off64_t.
18378         (_IO_pid_t): Delete; all uses changed to pid_t.
18379         (_IO_uid_t): Delete; all uses changed to uid_t.
18380         (_IO_wint_t): Delete; all uses changed to wint_t.
18381         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18382         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18383         (_IO_cookie_io_functions_t): Delete; all uses changed to
18384         cookie_io_functions_t.
18385         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18386         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18387         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18388         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18390         * libio/iofopncook.c: Remove unnecessary forward declarations.
18391         * libio/iolibio.h: Correct outdated commentary.
18392         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18393         * stdio-common/fxprintf.c (__fxprintf_nocancel):
18394         Remove unnecessary casts.
18395         * stdio-common/getline.c: Use _IO_getdelim directly.
18396         Don't redefine ssize_t.
18397         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18398         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18399         Remove outdated comments.
18400         * stdio-common/vfscanf.c: Don't redefine va_list.
18402         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18403         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18404         Remove preprocessor conditionals on _LIBC and __USE_GNU,
18405         which are always true, and __cplusplus, which is always false.
18407 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
18409         [BZ #15105]
18410         [BZ #19463]
18411         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18412         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18413         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
18414         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18415         libc_hidden_proto.
18416         [!_ISOMAC] (putc_unlocked): Likewise.
18417         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18418         define inline if [__USE_EXTERN_INLINES].
18419         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18420         putc_unlocked.
18422         [BZ #15105]
18423         [BZ #19463]
18424         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18425         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18426         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18427         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18428         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18429         getc_unlocked.
18430         * time/tzfile.c (__tzfile_read): Likewise.
18432 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
18434         [BZ #22517]
18435         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18437 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18439         * io/fcntl.h: Fix a typo in a comment.
18441 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18443         [BZ #22862]
18444         * include/features.h: Add _ISOC11_SOURCE to test for whether to
18445         define _DEFAULT_SOURCE.
18446         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18448 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18450         [BZ #20890]
18451         * elf/cache.c (save_cache): Call fsync on temporary file before
18452         renaming it.
18453         (save_aux_cache): Call fdatasync on temporary file before renaming
18454         it.
18456 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18458         [BZ #22787]
18459         * include/caller.h: Remove file.
18460         * elf/dl-caller.c: Likewise.
18461         * elf/Makefile (dl-routines): Remove dl-caller.
18462         (shared-only-routines): Do not add dl-caller.
18463         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18464         __check_caller.
18465         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18466         member.
18467         (dl_open_worker): Do not call __check_caller.
18468         (_dl_open): Do not set caller_dl_open member.
18469         * elf/rtld.c (_rtld_global_ro): Do not initialize
18470         _dl_check_caller member.
18471         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18472         _dl_check_caller member.
18473         (_dl_check_caller): Remove declaration.
18474         * sysdeps/unix/sysv/linux/dl-execstack.c
18475         (_dl_make_stack_executable): Do not call __check_caller.
18477 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18479         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18480         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18482 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18484         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18485         description.
18487 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18489         [BZ #16335]
18490         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18491         of 199606L, 200112L, and 200809L.
18492         (_XOPEN_SOURCE): Document special values of 600 and 700.
18493         (_ISOC11_SOURCE): Document macro.
18494         (_ATFILE_SOURCE): Likewise.
18495         (_FORTIFY_SOURCE): Likewise.
18497 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
18499         [BZ #15105]
18500         [BZ #19463]
18501         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18502         and define as weak alias of __ferror_unlocked.  Use
18503         libc_hidden_weak.
18504         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18505         libc_hidden_proto.
18506         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18507         function if [__USE_EXTERN_INLINES].
18508         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18509         ferror_unlocked.
18511 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
18513         [BZ #6889]
18514         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18516 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18518         [BZ #22818]
18519         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18520         the GLIBC_2.1 version.
18522 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18524         [BZ #21508]
18525         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18526         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18527         intl/tst-gettext-de.po from po/de.po by removing the
18528         POT-Creation-Date line.
18529         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18530         ../po/de.po.
18531         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18532         ../po/de.po.
18534 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18536         * mach/Makefile (headers): Add mach/param.h.
18537         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18538         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18539         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18540         (__ptsname_r): Move implementation to...
18541         (__ptsname_internal): ... new function.  Add filling the STP
18542         structure.
18544 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
18546         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18547         idouble to 1 ULP.
18549 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
18551         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18552         syntax.
18554 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
18556         * nptl/Makefile (tst-mutex8-ENV): Delete.
18557         * nptl/tst-mutex8.c (check_type):
18558         Add runtime check if mutex will be elided.
18560 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
18562         [BZ #20980]
18563         [BZ #21234]
18564         * manual/install.texi (Configuring and compiling): Describe
18565         passing CC and CFLAGS on configure command line, not as
18566         environment variables.  Use @code markup on those variables.
18567         Specify what options go in CC and what go in CFLAGS.  Note the
18568         requirement to compile with optimization.
18569         * INSTALL: Regenerated.
18571         [BZ #18124]
18572         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18573         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18574         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18575         __sigprocmask instead of sigprocmask.
18576         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18577         Likewise.
18578         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18579         __sigsetjmp and sigprocmask.
18581         [BZ #15105]
18582         * include/argz.h (argz_next): Use libc_hidden_proto.
18583         (__argz_next): Likewise.
18584         * string-argz-next.c (__argz_next): Use libc_hidden_def.
18585         (argz_next): Use libc_hidden_weak.
18587         [BZ #15105]
18588         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18589         libc_hidden_proto.
18590         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18591         libc_hidden_def.
18593         [BZ #15105]
18594         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18595         libc_hidden_proto.
18596         * libio/iofputs.c (fputs): Use libc_hidden_weak.
18598         [BZ #15105]
18599         [BZ #19463]
18600         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18601         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
18602         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18603         (__feof_unlocked): New declaration, and inline function if
18604         [__USE_EXTERN_INLINES].
18605         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18606         instead of feof_unlocked.
18607         * intl/localealias.c [_LIBC] (FEOF): Likewise.
18608         * nss/nsswitch.c (nss_parse_file): Likewise.
18609         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18610         Likewise.
18611         * time/getdate.c (__getdate_r): Likewise.
18612         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18613         Define as macro to call __feof_unlocked.
18615 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18617         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18619 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18621         * math/Makefile: Remove mpexp.c and mplog.c
18622         * sysdeps/i386/fpu/mpexp.c: Delete file.
18623         * sysdeps/i386/fpu/mplog.c: Likewise.
18624         * sysdeps/ia64/fpu/mpexp.c: Likewise.
18625         * sysdeps/ia64/fpu/mplog.c: Likewise.
18626         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18627         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18628         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18629         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18630         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18631         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18632         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18633         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18634         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18635         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18636         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18637         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18638         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18639         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18640         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18641         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18643 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18645         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18647 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18649         * sysdeps/sh/libm-test-ulps: Update.
18651 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18653         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18654         idouble to 1 ULP.
18656 2018-02-12  Zack Weinberg  <zackw@panix.com>
18658         [BZ #19239]
18659         * posix/sys/types.h: Don't include sys/sysmacros.h.
18660         * misc/sys/sysmacros.h: Remove the conditional deprecation
18661         warnings for the macros defined by this header.
18663 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18665         * manual/probes.texi: Remove slowexp probes.
18666         * math/Makefile: Remove slowexp.
18667         * sysdeps/generic/math_private.h (__slowexp): Remove.
18668         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18669         document error bounds.
18670         * sysdeps/i386/fpu/slowexp.c: Remove.
18671         * sysdeps/ia64/fpu/slowexp.c: Remove.
18672         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18673         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18674         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18675         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18676         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18677         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18678         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18679         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18680         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18681         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18682         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18684 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
18686         [BZ #13932]
18687         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18688         * benchtests/pow-inputs: Update comment for slow path cases.
18689         * manual/probes.texi (slowpow_p10): Delete removed probe.
18690         (slowpow_p10): Likewise.
18691         * math/Makefile: Remove halfulp.c and slowpow.c.
18692         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18693         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18694         (__halfulp): Remove.
18695         (__slowpow): Remove.
18696         * sysdeps/i386/fpu/halfulp.c: Delete file.
18697         * sysdeps/i386/fpu/slowpow.c: Likewise.
18698         * sysdeps/ia64/fpu/halfulp.c: Likewise.
18699         * sysdeps/ia64/fpu/slowpow.c: Likewise.
18700         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18701         improve comments and add error analysis.
18702         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18703         (power1): Remove function:
18704         (log1): Remove error argument, add error analysis.
18705         (my_log2): Remove function.
18706         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18707         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18708         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18709         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18710         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18711         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18712         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18713         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18714         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18715         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18716         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18717         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18718         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18719         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18721 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18723         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18724         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18726 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
18728         [BZ #22433]
18729         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18730         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18731         and PTRACE_SETHBPREGS.
18733 2018-02-10  Zack Weinberg  <zackw@panix.com>
18735         [BZ #22830]
18736         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18737         correctly.
18738         * malloc/tst-malloc-stats-cancellation.c: New test case.
18739         * malloc/Makefile: Add new test case.
18741 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18743         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18745 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
18747         * math/Makefile (libm-narrow-fns): Add add.
18748         (libm-test-funcs-narrow): Likewise.
18749         * math/Versions (GLIBC_2.28): Add narrowing add functions.
18750         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18751         * math/gen-auto-libm-tests.c (test_functions): Add add.
18752         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18753         (NARROW_ADD_ROUND_TO_ODD): Likewise.
18754         (NARROW_ADD_TRIVIAL): Likewise.
18755         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18756         macro.
18757         (__daddl): Likewise.
18758         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18759         dadd.
18760         (CFLAGS-nldbl-dadd.c): New variable.
18761         (CFLAGS-nldbl-fadd.c): Likewise.
18762         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18763         __nldbl_daddl.
18764         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18765         prototype.
18766         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18767         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18768         * math/auto-libm-test-in: Add tests of add.
18769         * math/auto-libm-test-out-narrow-add: New generated file.
18770         * math/libm-test-narrow-add.inc: New file.
18771         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18772         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18773         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18774         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18775         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18776         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18777         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18778         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18779         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18780         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18781         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18782         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18783         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18784         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18785         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18786         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18787         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18788         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18790         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18791         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18792         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18793         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18794         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18795         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18796         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18797         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18798         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18799         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18800         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18801         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18802         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18807         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18808         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18809         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18810         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18811         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18812         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18813         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18814         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18815         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18816         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18818         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18819         (f128-pairs): New variable.
18820         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18821         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18822         to CFLAGS.
18823         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18824         Also make tests add $(f128-loader-link) to gnulib-tests.
18826 2018-02-09  DJ Delorie  <dj@redhat.com>
18828         [BZ #22827]
18829         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18830         64-bit ELF type for 64-bit ELF objects.
18832 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
18834         * math/libm-test-driver.c (snan_tests_arg): New variable.
18835         * math/libm-test-support.h (snan_tests_arg): New declaration.
18836         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18838         * math/Makefile (test-type-pairs): New variable.
18839         (test-type-pairs-f64xf128-yes): Likewise.
18840         (tests): Add test-narrow-macros.
18841         (libm-test-funcs-narrow): New variable.
18842         (libm-test-c-narrow): Likewise.
18843         (generated): Add $(libm-test-c-narrow).
18844         (libm-tests-base-narrow): New variable.
18845         (libm-tests-narrow): Likewise.
18846         (libm-tests): Add $(libm-tests-narrow).
18847         (libm-tests-for-type): Handle $(libm-tests-narrow).
18848         (libm-test-c-narrow-obj): New variable.
18849         ($(libm-test-c-narrow-obj)): New rule.
18850         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18851         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18852         $(o-iterator) to set dependencies and CFLAGS.
18853         * math/gen-auto-libm-tests.c: Document use for narrowing
18854         functions.
18855         (output_for_one_input_case): Take argument NARROW.
18856         (generate_output): Likewise.  Update call to
18857         output_for_one_input_case.
18858         (main): Take --narrow option.  Update call to generate_output.
18859         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18860         (apply_lit): Update call to _apply_lit.
18861         (apply_arglit): New function.
18862         (parse_args): Handle "a" arguments.
18863         (parse_auto_input): Handle format names using ":".
18864         * math/README.libm-test: Document "a" parameter type.
18865         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18866         (ARG_TYPE_TRUE_MIN): Likewise.
18867         (ARG_TYPE_MAX): Likwise.
18868         (ARG_MIN_EXP): Likewise.
18869         (ARG_MAX_EXP): Likewise.
18870         (ARG_MANT_DIG): Likewise.
18871         (TEST_COND_arg_ibm128): Likewise.
18872         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18873         (TEST_COND_arg_fmt): New macro.
18874         (init_max_error): Update prototype.
18875         * math/libm-test-support.c (test_ibm128): New variable.
18876         (init_max_error): Take argument testing_ibm128 and set test_ibm128
18877         instead of using [TEST_COND_ibm128] conditional.
18878         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18879         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18880         [TEST_NARROW] (TEST_MSG): New definition.
18881         (arg_plus_zero): New macro.
18882         (arg_minus_zero): Likewise.
18883         (arg_plus_infty): Likewise.
18884         (arg_minus_infty): Likewise.
18885         (arg_qnan_value_pl): Likewise.
18886         (arg_qnan_value): Likewise.
18887         (arg_snan_value_pl): Likewise.
18888         (arg_snan_value): Likewise.
18889         (arg_max_value): Likewise.
18890         (arg_min_value): Likewise.
18891         (arg_min_subnorm_value): Likewise.
18892         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18893         (RUN_TEST_LOOP_aa_f): New macro.
18894         (TEST_SUFF): New macro.
18895         (TEST_SUFF_STR): Likewise.
18896         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18897         (TEST_COND_any_ibm128): New macro.
18898         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18899         this_func.  Update call to init_max_error.
18900         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18901         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18902         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18903         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18904         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18905         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18906         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18907         * math/test-math-scalar.h (TEST_NARROW): Likewise.
18908         * math/test-math-vector.h (TEST_NARROW): Likewise.
18909         * math/test-arg-double.h: New file.
18910         * math/test-arg-float128.h: Likewise.
18911         * math/test-arg-float32x.h: Likewise.
18912         * math/test-arg-float64.h: Likewise.
18913         * math/test-arg-float64x.h: Likewise.
18914         * math/test-arg-ldouble.h: Likewise.
18915         * math/test-math-narrow.h: Likewise.
18916         * math/test-narrow-macros.c: Likewise.
18917         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18918         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18919         test-narrow-macros-ldbl-64.
18920         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18922         * math/bits/mathcalls-narrow.h: New file.
18923         * include/bits/mathcalls-narrow.h: Likewise.
18924         * math/math-narrow.h: Likewise.
18925         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18926         (__MATHCALL_NARROW_ARGS_2): Likewise.
18927         (__MATHCALL_NARROW_ARGS_3): Likewise.
18928         (__MATHCALL_NARROW_NORMAL): Likewise.
18929         (__MATHCALL_NARROW_REDIR): Likewise.
18930         (__MATHCALL_NARROW): Likewise.
18931         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18932         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18933         defined.
18934         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18935         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18936         (libm-narrow-fns): New variable.
18937         (libm-narrow-types-basic): Likewise.
18938         (libm-narrow-types-ldouble-yes): Likewise.
18939         (libm-narrow-types-float128-yes): Likewise.
18940         (libm-narrow-types-float128-alias-yes): Likewise.
18941         (libm-narrow-types): Likewise.
18942         (libm-routines): Add narrowing functions.
18943         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18944         (libc_feholdexcept_setroundf128): New macro.
18945         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18946         * sysdeps/ieee754/float128/float128_private.h: Include
18947         <math/math-narrow.h>.
18948         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18949         Undefine and redefine.
18950         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18951         (libm_alias_float_ldouble): Undefine and redefine.
18952         (libm_alias_double_ldouble): Likewise.
18954         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18956 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
18958         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18959         FPCR/FPSR.
18961 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
18963         * manual/creature.texi: Convert references to gcc.info to gcc.
18964         * manual/stdio.texi: Likewise.
18965         * manual/string.texi: Likewise.
18967 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18969         [BZ #17979]
18970         * posix/bits/types.h (__int_least8_t): New typedef.
18971         (__uint_least8_t): Likewise.
18972         (__int_least16_t): Likewise.
18973         (__uint_least16_t): Likewise.
18974         (__int_least32_t): Likewise.
18975         (__uint_least32_t): Likewise.
18976         (__int_least64_t): Likewise.
18977         (__uint_least64_t): Likewise.
18978         * sysdeps/generic/stdint.h (int_least8_t): Define using
18979         __int_least8_t.
18980         (int_least16_t): Define using __int_least16_t.
18981         (int_least32_t): Define using __int_least32_t.
18982         (int_least64_t): Define using __int_least64_t.
18983         (uint_least8_t): Define using __uint_least8_t.
18984         (uint_least16_t): Define using __uint_least16_t.
18985         (uint_least32_t): Define using __uint_least32_t.
18986         (uint_least64_t): Define using __uint_least64_t.
18987         * wcsmbs/uchar.h: Include <bits/types.h>.
18988         (char16_t): Define using __uint_least16_t conditional only on
18989         [!__USE_ISOCXX11].
18990         (char32_t): Define using __uint_least32_t conditional only on
18991         [!__USE_ISOCXX11].
18992         * wcsmbs/test-char-types.c: New file.
18993         * wcsmbs/Makefile (tests): Add test-char-types.
18995         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18996         version to 4.0.1.
18998 2018-02-07  Zack Weinberg  <zackw@panix.com>
19000         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
19001         Delete all contents except for definitions of _G_HAVE_MMAP and
19002         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
19003         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
19004         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
19005         change as above.
19007         * libio/libio.h: Don't include bits/_G_config.h here.
19008         Include stddef.h with __need_wchar_t defined.  Include
19009         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
19010         Define _IO_iconv_t here, directly.
19011         Don't define _IO_HAVE_ST_BLKSIZE.
19012         * libio/libioP.h: Include _G_config.h here.  Move include of
19013         shlib-compat.h up with rest of includes.  Simplify conditionals
19014         controlling definition of _IO_JUMPS_OFFSET.
19016         * csu/init.c: Remove always-true #if around entire file.
19017         Don't include stdio.h.  Set _IO_stdin_used to hardwired
19018         constant 0x20001, and update commentary.
19019         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
19020         Replace all uses of _G_va_list with __gnuc_va_list.
19021         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
19022         instead of #if _IO_HAVE_ST_BLKSIZE.
19023         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
19024         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
19025         not #ifdef.
19027         * libio/bits/libio.h: Move back to libio/libio.h and adjust
19028         multiple-include guard to match.
19029         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
19030         into this file.
19031         Remove preprocessor conditionals that are always true and/or
19032         redundant to other preprocessor conditionals in the same nest.
19033         Include shlib-compat.h unconditionally.
19034         Error out if _LIBC is not defined, or if _ISOMAC is defined,
19035         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
19036         defined after including stdio.h.
19037         Use __BEGIN_DECLS/__END_DECLS.
19039         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
19040         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
19041         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
19043 2018-02-07  Zack Weinberg  <zackw@panix.com>
19045         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
19046         New single-type headers split from _G_config.h.
19047         * libio/bits/types/cookie_io_functions_t.h
19048         * libio/bits/types/struct_FILE.h
19049         New single-type headers split from libio.h.
19051         * libio/Makefile: Install the above new headers.  Don't install
19052         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
19053         bits/libio-ldbl.h.
19054         * libio/_G_config.h, libio/libio.h: Delete file.
19056         * libio/bits/libio.h: Remove improper-inclusion guard.
19057         Include stdio.h and don't repeat anything that it does.
19058         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
19059         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
19060         __io_read_fn as cookie_read_function_t,
19061         __io_write_fn as cookie_write_function_t,
19062         __io_seek_fn as cookie_seek_function_t,
19063         __io_close_fn as cookie_close_function_t,
19064         and _IO_cookie_io_functions_t as cookie_io_functions_t.
19065         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
19066         here, in the "compatibility defines" section.  Remove an #if 0
19067         block.  Use the "body" macros from bits/types/struct_FILE.h to
19068         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
19069         and _IO_ferror_unlocked.
19070         Move prototypes of __uflow and __overflow...
19072         * libio/stdio.h: ...here.  Don't include bits/libio.h.
19073         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
19074         directly from stdarg.h.  Include bits/types/__fpos_t.h,
19075         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
19076         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
19077         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
19078         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
19079         cookie_io_functions_t, not _IO_cookie_io_functions_t;
19080         __ssize_t, not _IO_ssize_t.  Unconditionally define
19081         BUFSIZ as 8192 and EOF as (-1).
19083         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
19084         macros from bits/types/struct_FILE.h instead of _IO_* macros
19085         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
19086         instead of _IO_ssize_t.
19087         * libio/bits/stdio2.h: Similarly.
19089         * libio/iolibio.h: Add multiple-include guard.
19090         Include bits/libio.h after stdio.h.
19091         * libio/libioP.h: Add multiple-include guard.
19092         Include stdio.h and bits/libio.h before iolibio.h.
19094         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
19095         * include/bits/types/cookie_io_functions_t.h
19096         * include/bits/types/struct_FILE.h: New wrappers.
19098         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
19099         Get definitions of _G_fpos_t and _G_fpos64_t from
19100         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
19101         respectively.  Remove improper-inclusion guards.
19103         * conform/data/stdio.h-data: Update expectations of va_list.
19104         * scripts/check-installed-headers.sh: Remove special case for
19105         libio.h and _G_config.h.
19107 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
19109         [BZ #15105]
19110         [BZ #19463]
19111         * include/sys/sysmacros.h [!_ISOMAC]
19112         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
19113         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
19114         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
19115         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
19116         libc_hidden_proto.
19117         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
19118         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
19119         Likewise.
19120         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
19121         Undefine and redefine to add use __gnu_dev_ prefix.
19122         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
19123         Likewise.
19124         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
19125         and define as hidden inline function.
19126         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
19127         Likewise.
19128         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
19129         Likewise.
19130         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
19131         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
19132         (gnu_dev_minor): Likewise.
19133         (gnu_dev_makedev): Likewise.
19134         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
19135         makedev.
19136         * posix/wordexp.c (exec_comm_child): Likewise.
19137         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
19138         instead of minor and __gnu_dev_major instead of major.
19139         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
19140         __gnu_dev_major instead of major.
19141         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
19142         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
19143         instead of gnu_dev_minor.
19144         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
19145         (SLAVE_P): Likewise.
19146         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
19147         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
19148         instead of major.
19150         [BZ #21313]
19151         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
19152         in another place.
19153         * locale/weightwc.h (findidx): Likewise.
19155 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
19157         * manual/probes.texi (slowlog): Delete documentation of removed probe.
19158         (slowlog_inexact): Likewise
19159         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
19160         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
19162 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
19164         [BZ #22797]
19165         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
19166         missing second underscore to parameter name.
19168 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
19170         [BZ #14508]
19171         [BZ #15512]
19172         [BZ #17082]
19173         [BZ #20530]
19174         * bits/byteswap.h: Update file comment.  Do not include
19175         <bits/byteswap-16.h>.
19176         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
19177         constant.
19178         (__bswap_16): Define as inline function.
19179         (__bswap_constant_32): Reformat definition.
19180         (__bswap_32): Always define as inline function, not macro, using
19181         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
19182         otherwise __bswap_constant_32.
19183         (__bswap_constant_64): Reformat definition.  Do not use
19184         __extension__ here.
19185         (__bswap_64): Always define as inline function, not macro.  Use
19186         __extension__ on function definition.  Use __builtin_bswap64 if
19187         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
19188         * string/test-endian-file-scope.c: New file.
19189         * string/test-endian-sign-conversion.c: Likewise.
19190         * string/Makefile (headers): Remove bits/byteswap-16.h.
19191         (tests): Add test-endian-file-scope and
19192         test-endian-sign-conversion.
19193         (CFLAGS-test-endian-sign-conversion.c): New variable.
19194         * bits/byteswap-16.h: Remove file.
19195         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
19196         * sysdeps/ia64/bits/byteswap.h: Likewise.
19197         * sysdeps/m68k/bits/byteswap.h: Likewise.
19198         * sysdeps/s390/bits/byteswap-16.h: Likewise.
19199         * sysdeps/s390/bits/byteswap.h: Likewise.
19200         * sysdeps/tile/bits/byteswap.h: Likewise.
19201         * sysdeps/x86/bits/byteswap-16.h: Likewise.
19202         * sysdeps/x86/bits/byteswap.h: Likewise.
19204         [BZ #17721]
19205         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
19206         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
19207         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
19208         199901L] (__restrict): Define to restrict.
19210         [BZ #19667]
19211         * string/testcopy.c: Include <support/support.h>.  Do not include
19212         <malloc.h>.  Use <support/test-driver.c>.
19213         (main): Rename to do_test.  Make static.  Use xmalloc instead of
19214         malloc.
19216         [BZ #13575]
19217         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
19218         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
19219         (SSIZE_MAX): Define to INT_MAX.
19220         * posix/test-ssize-max.c: New file.
19221         * posix/Makefile (tests): Add test-ssize-max.
19223         [BZ #19668]
19224         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
19225         <support/support.h>.  Do not include <malloc.h>.
19226         (query_auxv): Use xmalloc instead of malloc.
19228         [BZ #14553]
19229         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
19230         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
19231         instead of loff_t.
19233 2018-02-06  Florian Weimer  <fweimer@redhat.com>
19235         [BZ #18023]
19236         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19237         Use scratch_buffer instead of extend_alloca.
19239 2018-02-06  Zack Weinberg  <zackw@panix.com>
19241         * libio/stdio.h: Don't define getc or putc as macros.
19242         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
19243         not _IO_getc and _IO_putc.
19245         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
19246         * stdio-common/tstgetln.c: Don't redefine ssize_t.
19248 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
19250         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
19251         (TCP_FASTOPEN_NO_COOKIE): Likewise.
19253         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
19255         [BZ #14890]
19256         * elf/elf.h (NT_PRFPREG): New macro.
19257         (NT_S390_VXRS_LOW): Likewise.
19258         (NT_S390_VXRS_HIGH): Likewise.
19259         (NT_S390_GS_CB): Likewise.
19260         (NT_S390_GS_BC): Likewise.
19261         (NT_S390_RI_CB): Likewise.
19263         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
19264         (MAP_SYNC): New macro.
19265         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
19266         Likewise.
19267         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
19268         (MAP_SYNC): Likewise.
19269         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
19270         (MAP_SYNC): Likewise.
19271         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
19272         (MAP_SYNC): Likewise.
19273         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
19274         (MAP_SYNC): Likewise.
19275         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
19276         (MAP_SYNC): Likewise.
19277         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
19278         (MAP_SYNC): Likewise.
19279         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
19280         Likewise.
19281         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
19282         Likewise.
19284         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
19285         (MAP_SHARED_VALIDATE): New macro.
19286         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
19287         (MAP_SHARED_VALIDATE): Likewise.
19289 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19291         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
19292         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
19293         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19295 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19297         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
19298         (DT_NUM): Updated to 35.
19300 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19302         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
19303         __builtin_expect with __glibc_likely and __glibc_unlikely.
19304         (elf_machine_rela): Likewise.
19305         (elf_machine_lazy_rel): Likewise.
19307 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19309         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19310         __builtin_expect with __glibc_likely and __glibc_unlikely.
19311         (elf_machine_lazy_rel): Likewise.
19313 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19315         [BZ #22638]
19316         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19317         SHARED.
19318         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19320 2018-02-05  Andreas Schwab  <schwab@suse.de>
19322         [BZ #22761]
19323         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19324         string.
19326 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19328         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19329         not check against PTHREAD_STACK_MIN.
19331 2018-02-02  Sean McKean  <smckean83@gmail.com>
19333         [BZ #22735]
19334         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19336 2018-02-02  Florian Weimer  <fweimer@redhat.com>
19338         [BZ #22753]
19339         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19340         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19341         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19342         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19343         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19344         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19345         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19346         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19347         * manual/llio.texi (Scatter-Gather): Mention offset -1.
19348         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19349         * misc/tst-preadvwritev2.c (do_test): Call it.
19350         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19352 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19354         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19356         * benchtests/bench-memcmp.c: Print json instead of plain text.
19358         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19359         every test run.
19361 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
19363         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19364         version to 4.15.
19365         (s390_sthyi): New syscall.
19367         * sysdeps/generic/ldbl-classify-compat.h: New file.
19368         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19369         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19370         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19371         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19372         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19373         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19374         * sysdeps/ieee754/dbl-64/s_finite.c: Include
19375         <ldbl-classify-compat.h>.
19376         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19377         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19378         <ldbl-classify-compat.h>.
19379         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19380         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19381         <ldbl-classify-compat.h>.
19382         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19383         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19384         <ldbl-classify-compat.h>.
19385         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19386         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19387         <ldbl-classify-compat.h>.
19388         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19389         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19390         <ldbl-classify-compat.h>.
19391         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19392         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19393         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19394         * sysdeps/m68k/coldfire/math_private.h: Remove file.
19395         * sysdeps/microblaze/math_private.h: Likewise.
19396         * sysdeps/nios2/math_private.h: Likewise.
19397         * sysdeps/sh/math_private.h: Likewise.
19399         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19400         * sysdeps/m68k/coldfire/math_private.h: ... here.
19401         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19402         * sysdeps/tile/math_private.h: Likewise.
19403         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19404         Remove macro.
19405         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19406         Likewise.
19408         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19409         Remove macro.
19410         (libc_fetestexcept): Likewise.
19411         (libc_feupdateenv_test): Likewise.
19412         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19413         (libc_fetestexcept): Likewise.
19414         (libc_feupdateenv_test): Likewise.
19415         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19416         (libc_fetestexcept): Likewise.
19417         (libc_feupdateenv_test): Likewise.
19418         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19419         (libc_fetestexcept): Likewise.
19420         (libc_feupdateenv_test): Likewise.
19422         * sysdeps/generic/math_private.h
19423         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19424         New inline function.
19425         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19426         Likewise.
19428         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19429         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19430         * sysdeps/generic/math_private.h
19431         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19432         inline function.
19433         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19434         Likewise.
19435         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19436         Likewise.
19437         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19438         Likewise.
19439         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19440         Likewise.
19441         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19442         Likewise.
19443         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19444         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19445         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19446         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19447         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19448         (__fegetenv): Likewise.
19449         (fesetenv): Likewise.
19450         (__fesetenv): Likewise.
19451         (feupdateenv): Likewise.
19452         (__feupdateenv): Likewise.
19453         (fegetround): Likewise.
19454         (__fegetround): Likewise.
19455         (fesetround): Likewise.
19456         (__fesetround): Likewise.
19458         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19459         (feraiseexcept): New macro.
19460         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19461         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19462         Remove macro.
19463         (__feraiseexcept): Likewise.
19464         (feclearexcept): Likewise.
19465         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19466         (__feraiseexcept): Likewise.
19467         (feclearexcept): Likewise.
19468         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19469         (__feraiseexcept): Likewise.
19470         (feclearexcept): Likewise.
19471         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19472         (__feraiseexcept): Likewise.
19473         (feclearexcept): Likewise.
19474         (fetestexcept): Likewise.
19476         * sysdeps/m68k/coldfire/math-tests.h: New file.
19478         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19479         * sysdeps/m68k/bits/fenv.h: ... here.
19480         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19481         not define.
19482         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19483         Likewise.
19484         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19485         Likewise.
19486         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19487         Likewise.
19488         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19489         Likewise.
19490         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19491         Define to 0.
19492         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19493         (__FE_UNDEFINED): New enum constant.
19494         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19495         Do not define.
19496         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19497         Likewise.
19498         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19499         Likewise.
19500         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19501         to match generic bits/fenv.h.
19502         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19503         Do not define.
19505         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19506         packed on bits.
19507         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19508         * soft-fp/half.h (union _FP_UNION_H): Likewise.
19509         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19510         * soft-fp/single.h (union _FP_UNION_S): Likewise.
19512 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
19513             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
19514             Joseph Myers  <joseph@codesourcery.com>
19516         [BZ #21314]
19517         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19518         (__log1p): Disable -Wmaybe-uninitialized for -Os around
19519         computation using c.
19520         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19521         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19522         computation using c.
19524 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19526         * version.h (RELEASE): Set to "development".
19527         (VERSION): Set to "2.27.9000".
19528         * NEWS (2.28): New section.
19530         * version.h (RELEASE): Set to "stable".
19531         (VERSION): Set to "2.27".
19532         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19534         * NEWS: Add the list of bugs fixed in 2.27.
19536 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19538         * stdlib/test-atexit-race-common.c (do_test): Check stack size
19539         against PTHREAD_STACK_MIN.
19541 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19543         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19544         New entries.
19545         (Rafal Luzynski, Andreas Schwab): Update.
19547 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
19549         [BZ #10871]
19550         * NEWS: List the languages which actually use the alternative
19551         months feature in this release.  Also explain that "alt_mon" and
19552         "ab_alt_mon" are optional.
19554 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
19556         [BZ #22765]
19557         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19559 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
19561         * manual/install.texi (Tools for Compilation): Update the newest
19562         versions of gcc, binutils, texinfo, gawk, bison, and sed.
19563         * INSTALL: Regenerated.
19565 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19567         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19568         instead of __builtin_expect.
19570 2018-01-30  Florian Weimer  <fweimer@redhat.com>
19572         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19573         data.
19574         * nss/tst-nss-getpwent.c (do_test): Likewise.
19576 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
19578         [BZ #10871]
19579         * localedata/locales/hr_HR (mon): Rename to...
19580         (alt_mon): This.
19581         (mon): Import from CLDR (genitive case).
19582         (d_t_fmt): Update the comment.
19584 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
19586         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19587         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19588         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19590 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19592         * mach/Versions: Fix version when __mach_host_self_ was added.
19593         * hurd/Versions: Fix version when _hurd_exec_paths was added.
19594         * sysdeps/mach/hurd/i386/ld.abilist: New file.
19595         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19596         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19597         * sysdeps/mach/hurd/i386/libc.abilist: New file.
19598         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19599         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19600         * sysdeps/mach/hurd/i386/libm.abilist: New file.
19601         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19602         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19603         * sysdeps/mach/hurd/i386/librt.abilist: New file.
19604         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19605         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19606         || to respect codestyle.
19607         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19608         (do_test_bz20181): Rename accordingly.
19609         * malloc/malloc.c: Include <assert.h>.
19610         (assert): Do not define.
19611         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19612         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19613         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19614         * sysdeps/mach/hurd/hp-timing.h: New file.
19615         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19617 2018-01-29  Darius Rad  <darius@bluespec.com>
19619         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19621 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
19623         * sysdeps/init_array/crti.S (.section .init_array): Add
19624         PREINIT_FUNCTION when defined.
19625         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19626         * config.h.in: Regenerate.
19627         * manual/platform.texi: Add RISC-V documenation for
19628         __riscv_flush_icache.
19629         * sysdeps/riscv/__longjmp.S: New file.
19630         * sysdeps/riscv/backtrace.c: Likewise.
19631         * sysdeps/riscv/bits/endian.h: Likewise.
19632         * sysdeps/riscv/bits/setjmp.h: Likewise.
19633         * sysdeps/riscv/bits/wordsize.h: Likewise.
19634         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19635         * sysdeps/riscv/bsd-setjmp.c: Likewise.
19636         * sysdeps/riscv/dl-trampoline.S: Likewise.
19637         * sysdeps/riscv/gccframe.h: Likewise.
19638         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19639         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19640         * sysdeps/riscv/machine-gmon.h: Likewise.
19641         * sysdeps/riscv/memusage.h: Likewise.
19642         * sysdeps/riscv/setjmp.S: Likewise.
19643         * sysdeps/riscv/sys/asm.h: Likewise.
19644         * sysdeps/riscv/tls-macros.h: Likewise.
19645         * sysdeps/riscv/dl-tls.h: New file.
19646         * sysdeps/riscv/libc-tls.c: Likewise.
19647         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19648         * sysdeps/riscv/nptl/tls.h: Likewise.
19649         * sysdeps/riscv/stackinfo.h: Likewise.
19650         * sysdeps/riscv/bits/fenv.h: New file.
19651         * sysdeps/riscv/e_sqrtl.c: Likewise.
19652         * sysdeps/riscv/fpu_control.h: Likewise.
19653         * sysdeps/riscv/math-tests.h: Likewise.
19654         * sysdeps/riscv/nofpu/Implies: Likewise.
19655         * sysdeps/riscv/sfp-machine.h: Likewise.
19656         * sysdeps/riscv/tininess.h: Likewise.
19657         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19658         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19659         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19660         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19661         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19662         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19663         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19664         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19665         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19666         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19667         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19668         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19669         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19670         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19671         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19672         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19673         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19674         * sysdeps/riscv/rvd/s_finite.c: Likewise.
19675         * sysdeps/riscv/rvd/s_fma.c: Likewise.
19676         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19677         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19678         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19679         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19680         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19681         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19682         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19683         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19684         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19685         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19686         * sysdeps/riscv/rvf/fegetround.c: Likewise.
19687         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19688         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19689         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19690         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19691         * sysdeps/riscv/rvf/fesetround.c: Likewise.
19692         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19693         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19694         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19695         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19696         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19697         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19698         * sysdeps/riscv/rvf/math_private.h: Likewise.
19699         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19700         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19701         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19702         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19703         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19704         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19705         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19706         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19707         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19708         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19709         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19710         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19711         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19712         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19713         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19714         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19715         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19716         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19717         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19718         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19719         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19720         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19721         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19722         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19723         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19724         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19725         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19726         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19727         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19728         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19729         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19730         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19731         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19732         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19733         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19734         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19735         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19736         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19737         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19738         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19739         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19740         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19741         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19742         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19743         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19744         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19745         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19746         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19747         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19748         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19749         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19750         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19751         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19752         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19753         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19754         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19755         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19756         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19757         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19758         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19759         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19760         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19761         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19762         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19763         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19764         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19765         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19766         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19767         * sysdeps/riscv/Implies: New file.
19768         * sysdeps/riscv/Makefile: Likewise.
19769         * sysdeps/riscv/configure: Likewise.
19770         * sysdeps/riscv/configure.ac: Likewise.
19771         * sysdeps/riscv/nptl/Makefile: Likewise.
19772         * sysdeps/riscv/preconfigure: Likewise.
19773         * sysdeps/riscv/rv64/Implies-after: Likewise.
19774         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19775         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19776         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19777         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19778         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19779         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19780         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19781         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19782         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19783         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19784         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19785         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19786         (Config): Likewise.
19788 2018-01-29  Florian Weimer  <fweimer@redhat.com>
19790         [BZ #22701]
19791         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19792         libnsl_hidden_proto.
19793         * include/rpcsvc/yp.h (yp_xdrall): Declare with
19794         libnsl_hidden_proto.
19795         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19796         * nis/Makefile (libnsl-routines): Add nss-default only for
19797         build-obsolete-nsl.
19798         * nis/nis_defaults.c (__nis_default_ttl): Add
19799         libnsl_hidden_nolink_def.
19800         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19801         declaration.
19802         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19803         * nis/ypclnt.c (yp_maplist): Likewise.
19805 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
19807         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19808         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19810 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
19812         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19813         clean -dxfq for git updates when replacing sources.
19815         * scripts/build-many-glibcs.py (Config.build_gcc): Use
19816         --disable-libcilkrts unconditionally, not just for the final GCC
19817         build for Hurd.
19819         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19820         version to 4.15.
19822 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19824         [BZ #10871]
19825         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19826         case).
19828 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19830         [BZ #10871]
19831         * localedata/locales/be_BY (mon): Rename to...
19832         (alt_mon): This, then synchronize with CLDR (nominative case).
19833         (abmon): Rename to...
19834         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19835         (mon): Import from CLDR (genitive case).
19836         (abmon): Likewise.
19837         * localedata/locales/be_BY@latin (mon): Rename to...
19838         (alt_mon): This.
19839         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19841         * localedata/locales/be_BY@latin (lang_name): Reworded to
19842         "biełaruskaja mova".
19844 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19846         [BZ #10871]
19847         * localedata/locales/el_CY (mon): Renamed to...
19848         (alt_mon): This.
19849         (mon): Import from CLDR (genitive case).
19850         * localedata/locales/el_GR: Likewise.
19852 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19854         [BZ #10871]
19855         * localedata/locales/ru_RU (mon): Rename to...
19856         (alt_mon): This.
19857         (abmon): Rename to...
19858         (ab_alt_mon): This.
19859         (mon): Import from CLDR (genitive case).
19860         (abmon): Copy from the old content except the 5th month which is
19861         now in the genitive case, even when abbreviated.
19862         * localedata/locales/ru_UA: Likewise.
19863         * time/tst-strptime.c (day_tests): Add an actual example of
19864         a difference between %b and %Ob in Russian.
19866 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19868         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19869         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19870         a `c' variable.
19871         * resolv/res-close.c: Include <stdlib.h>.
19872         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19873         <sys/wait.h>, <time.h>, <sys/uio.h>.
19874         (NOT_CANCEL_H): Add inclusion guard.
19875         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19876         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19877         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19878         return 0.
19879         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19880         vm_address_t * to ElfW(Addr) * for dl_main parameter.
19881         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19882         instead of void *.
19883         * sysdeps/pthread/timer_create.c (timer_create): Do not use
19884         timer_ptr2id to cast struct timer_node * to void *.
19885         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19886         --disable-libcilkrts to gcc configure.
19887         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19888         and make them the default for now.
19889         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19890         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19891         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19892         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19893         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19894         MACH_IPC_COMPAT.
19895         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19896         __task_terminate would ever return successfully.
19897         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19898         to global scope.
19899         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19900         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19901         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19902         critical section to make code simpler and avoid warning.
19903         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19904         critical section to make code simpler and avoid warning.
19905         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19906         const char * instead of char *.
19907         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19908         __hurd_file_name_split, hurd_file_name_split,
19909         __hurd_directory_name_split, hurd_directory_name_split,
19910         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19911         hurd_file_name_path_lookup): Make lookup function parameter take a
19912         const char *name instead of char *name.
19913         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19914         __hurd_directory_name_split): Likewise.
19915         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19916         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19917         * sysdeps/mach/hurd/check_native.c: New file.
19918         * sysdeps/mach/hurd/check_pf.c: New file.
19919         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19920         (__freeifaddrs): Define macro to freeifaddrs.
19921         * sysdeps/mach/hurd/libhurduser.abilist: New file.
19922         * sysdeps/mach/libmachuser.abilist: New file.
19923         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19924         (do_test_bz20181): Rename accordingly.
19925         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19926         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19927         <sys/mount.h>.
19928         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19929         version only if __USE_EXTERN_INLINES is defined.
19930         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19931         __hurd_sockfail): Likewise.
19932         (_hurd_fd_get): Always declare functions, and provide inline versions
19933         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19934         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19935         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19936         _hurd_port_set): Always declare functions, and provide inline versions
19937         only if __USE_EXTERN_INLINES and _LIBC are defined and
19938         IS_IN(libc).
19939         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19940         _hurd_critical_section_unlock): Likewise.
19941         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19942         * __hurd_threadvar_location): Likewise.
19943         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19944         _hurd_userlink_clear): Likewise.
19945         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19946         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19947         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19948         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19949         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19950         __spin_lock_locked): Likewise.
19951         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19952         __spin_lock_locked): Likewise.
19953         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19954         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19955         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19956         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19957         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19958         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19959         _POSIX_NO_TRUNC): Define to 0.
19960         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19961         check size against PTHREAD_STACK_MIN.
19962         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19963         IS_IN(libpthread)]: Include <sigsetops.h>.
19964         * mach/Makefile (user-interfaces): Add mach/gnumach.
19965         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19966         * sysdeps/mach/configure (mach_interface_list): Regenerate.
19967         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19968         instead of invalid -1.
19969         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19970         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19971         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19972         <net/ppp_defs.h>.
19974 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
19976         * hurd/fcntl-internal.h: New file.
19978 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
19980         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19982         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19984 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
19986         [BZ #22701]
19987         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19988         Build only shared objects.
19990 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19992         * README: Update for hppa.
19994 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19996         * sysdeps/sparc/fpu/libm-test-ulps: Update
19997         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19999 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
20001         Revert:
20003         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20005         [BZ #22563]
20006         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20007         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20008         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20009         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20010         to feature_1.
20012         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20014         [BZ #22563]
20015         * bits/types/__cancel_jmp_buf_tag.h: New file.
20016         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20017         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20018         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20019         * nptl/Makefile (headers): Add
20020         bits/types/__cancel_jmp_buf_tag.h.
20021         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20022         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20023         * sysdeps/nptl/pthread.h: Include
20024         <bits/types/__cancel_jmp_buf_tag.h>.
20025         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20026         __cancel_jmp_buf.
20027         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20029 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
20031         [BZ #10871]
20032         * localedata/locales/uk_UA (mon): Renamed to...
20033         (alt_mon): This.
20034         (alt_digits): "0" removed and then renamed to...
20035         (mon): This.
20036         (date_fmt): Definition changed not to use the alternative
20037         digits hack.
20039 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
20041         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
20042         FLAG_RISCV_FLOAT_ABI_DOUBLE.
20043         * elf/elf.h (EF_RISCV_RVC): New define.
20044         (EF_RISCV_FLOAT_ABI): Likewise.
20045         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
20046         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
20047         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20048         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
20049         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
20050         define.
20051         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20053 2018-01-25  Andreas Schwab  <schwab@suse.de>
20055         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
20056         single quotes.
20057         * sysdeps/gnu/configure: Regenerate.
20058         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20059         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20061         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20062         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20063         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
20064         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20065         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20067 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20069         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
20070         URL, and run autoconf, make it the default for now.
20072 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20074         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20075         soft-float ColdFire configuration.
20077         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
20078         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
20079         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
20081         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
20082         MicroBlaze file.
20084         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
20085         ....
20086         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
20087         ... here.
20088         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
20089         New file.
20091         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
20092         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
20093         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
20094         file.
20096 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20098         [BZ #22742]
20099         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
20100         Rename to __reserved and add comment.
20101         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
20102         Rename to __reserved.
20104 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20106         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20107         i686-gnu configurations.
20108         (Context.run_builds): Include mig, gnumach and hurd in components
20109         considered.
20110         (Context.checkout): Add mig, gnumach and hurd to components.
20111         (Context.checkout_tar): Add URL mappings for mig, gnumach and
20112         hurd.
20113         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
20114         (Config.build): Install gnumach headers, build mig and install
20115         hurd headers for 'gnu' OS.
20116         (Config.install_gnumach_headers): New function.
20117         (Config.install_hurd_headers): Likewise.
20118         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
20119         when building for 'gnu' OS.
20121 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
20123         * manual/tunables.texi (Hardware Capability Tunables): Fix
20124         spelling.
20126 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
20128         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
20129         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
20130         (ALTMON_11, ALTMON_12): Improve documentation.
20131         * manual/time.texi (strftime): Likewise.
20133 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20135         [BZ #10871]
20136         * localedata/locales/pl_PL: Alternative month names added,
20137         primary month names are genitive now.
20138         * time/tst-strptime.c (day_tests): Actually use a genitive case
20139         of a month name in Polish language.
20141 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20143         [BZ #10871]
20144         * manual/locale.texi: Document ALTMON_1..12 constants for
20145         nl_langinfo.  Specify when to use ALTMON instead of MON.
20146         * manual/time.texi (strftime, strptime): Document GNU extension
20147         permitting O modifier with %B and %b.  Specify when to use
20148         %OB instead of %B.
20150 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20152         [BZ #10871]
20153         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
20154         names, define them as the same as abbreviated month names explicitly.
20155         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
20156         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
20157         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
20158         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
20159         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
20160         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
20161         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
20162         _NL_WABALTMON_12): New enum constants.
20163         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
20164         wab_alt_mon, and ab_alt_mon_defined members.
20165         (time_output): Output ab_alt_mon and wab_alt_mon members.
20166         (time_read): Read them, initialize them as copies of abmon and wabmon
20167         respectively if they are missing, initialize ab_alt_mon_defined.
20168         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
20169         * locale/programs/locfile-kw.h: Regenerate.
20170         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
20171         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
20172         and ru_RU.UTF-8.
20173         * time/strftime_l.c (a_altmonth, aam_len): New macros.
20174         [!COMPILE_WIDE] (ABALTMON_1): New macro.
20175         (__strftime_internal): Handle %Ob and %Oh formats.
20176         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
20177         (__strptime_internal): Handle %Ob and %Oh formats.
20178         * time/tst-strptime.c (day_tests): Add more tests to parse different
20179         forms of month names including the new %Ob format specifier.
20181 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20183         [BZ #10871]
20184         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
20185         define them as the same as primary full month names explicitly.
20186         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
20187         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
20188         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
20189         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
20190         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
20191         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
20192         _NL_WALTMON_12): New enum constants.
20193         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
20194         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
20195         macros.
20196         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
20197         walt_mon, and alt_mon_defined members.
20198         (time_output): Output alt_mon and walt_mon members.
20199         (time_read): Read them, initialize them as copies of mon and wmon
20200         respectively if they are missing, initialize alt_mon_defined.
20201         * locale/programs/locfile-kw.gperf (alt_mon): Define.
20202         * locale/programs/locfile-kw.h: Regenerate.
20203         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
20204         * localedata/tst-langinfo.c (map): Add tests for the new constants
20205         ALTMON_1 .. ALTMON_12.
20206         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
20207         and pl_PL.UTF-8.
20208         * time/strftime_l.c (f_altmonth): New macro.
20209         (__strftime_internal): Handle %OB format.
20210         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
20211         (__strptime_internal): Handle %OB format.
20212         * time/tst-strptime.c (day_tests): Add tests to parse different forms
20213         of month names including the new %OB format specifier.
20215 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20217         [BZ #22685]
20218         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
20219         from ABORT_TRANSACTION.
20220         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
20221         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
20222         ABORT_TRANSACTION_IMPL): Likewise.
20223         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
20224         Linux code, but remove the code that aborts transactions.
20226 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20228         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
20230 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
20232         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
20233         in date: "2004-14-09" should be "2004-09-14".
20234         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
20235         "2003-15-09" should be "2003-09-15".
20237 2018-01-18  Arjun Shankar  <arjun@redhat.com>
20239         [BZ #22343]
20240         [BZ #22774]
20241         CVE-2018-6485
20242         CVE-2018-6551
20243         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
20244         after padding.
20245         (_int_memalign): check for integer overflow before calling
20246         _int_malloc.
20247         * malloc/tst-malloc-too-large.c: New test.
20248         * malloc/Makefile: Add tst-malloc-too-large.
20250 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
20252         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
20253         in date: "2017-24-07" should be "2017-07-24".
20254         * localedata/locales/mai_IN: Likewise.
20255         * localedata/locales/mai_NP: Likewise.
20257 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
20259         * po/ru.po: Update translations.
20261 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
20263         [BZ #22719]
20264         * sysdeps/hppa/backtrace.c: New file.
20266 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
20268         [BZ #22715]
20269         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
20270         align La_x86_64_retval to VEC_SIZE.
20272 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
20274         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
20275         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
20277 2018-01-16  Florian Weimer  <fweimer@redhat.com>
20279         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
20280         Move tst-thread-exit-clobber ...
20281         [$(CXX)] (tests-unsupported): ... to here.
20283 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20285         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
20286         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
20287         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20288         (_dl_aarch64_cap_flags): Update.
20289         (_DL_HWCAP_COUNT): Update.
20291 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20293         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
20294         (_DL_HWCAP_LAST): Remove.
20295         (_DL_HWCAP_COUNT): Move to ...
20296         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20297         (_DL_HWCAP_COUNT): ... here.
20299 2018-01-16  Florian Weimer  <fweimer@redhat.com>
20301         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
20302         mode with GNU extensions.
20304 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
20306         * elf/elf.h (NT_ARM_SVE): Define.
20308 2018-01-15  Florian Weimer  <fweimer@redhat.com>
20310         [BZ #22636]
20311         * nptl/tst-minstack-throw.cc: New file.
20312         * nptl/Makefile (tests): Add tst-minstack-throw.
20313         (LDLIBS-tst-minstack-throw): Link with libstdc++.
20314         [!CXX] (tests-unsupported): Add tst-minstack-throw.
20316 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
20318         * scripts/build-many-glibcs.py (Context.checkout): Default
20319         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20320         version to 1.1.0.
20322 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
20324         [BZ #22707]
20325         * elf/elf.h (DF_1_STUB): Define.
20326         (DF_1_PIE): Define.
20328 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20330         [BZ #22697]
20331         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20332         Do not add 0.5 to integer or out-of-range arguments.
20334 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20336         * po/bg.po: Update translations.
20337         * po/cs.po: Likewise.
20338         * po/de.po: Likewise.
20339         * po/ko.po: Likewise.
20340         * po/pl.po: Likewise.
20341         * po/sv.po: Likewise.
20342         * po/uk.po: Likewise.
20343         * po/vi.po: Likewise.
20345 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20347         * aarch64/start.S (_start): Use __wrap_main.
20348         (__wrap_main): New local symbol.
20350 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20352         [BZ #22679]
20353         CVE-2018-1000001
20354         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20355         generic_getcwd if the path returned by getcwd syscall is not absolute.
20356         * io/tst-getcwd-abspath.c: New test.
20357         * io/Makefile (tests): Add tst-getcwd-abspath.
20359 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
20361         * malloc/malloc.c (malloc_consolidate): Add size check.
20363 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20365         * support/write_message.c (write_message): Preserve errno.
20366         * support/check.c (print_failure): Likewise.
20367         * support/support_test_verify_impl.c (support_test_verify_impl):
20368         Likewise.
20369         * support/support_test_compare_failure.c
20370         (support_test_compare_failure): Likewise.
20372 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20374         [BZ #22701]
20375         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20376         Prevent installation of libnsl.so.
20377         (libnsl-inhibit-o): Do not build (or install) static libraries.
20379 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
20381         [BZ #22657]
20382         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20383         before the day number which may produce a double space.
20384         (date_fmt): Likewise.
20386 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
20388         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20389         instead of fegetenv.
20391 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
20393         [BZ #22702]
20394         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20395         comment to say exceptions are discarded.
20396         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20397         __fegetenv.
20398         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20399         be enabled.
20401 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20403         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20404         and error message.
20406 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20408         [BZ #22636]
20409         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20410         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20412 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20414         [BZ #22693]
20415         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20416         negative arguments in test for NaN or infinity argument.
20418 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
20420         * po/libc.pot: Regenerate.
20422 2018-01-10  Florian Weimer  <fweimer@redhat.com>
20424         [BZ #22636]
20425         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20426         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20428 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20430         * hurd/hurd/fd.h: Include <fcntl.h>
20431         (__hurd_at_flags): New function.
20432         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20433         with call to __hurd_at_flags.
20434         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20435         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20436         __faccessat
20437         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20438         (__access_noerrno): Use __faccessat_common instead of access_common.
20439         (__access): Likewise.
20440         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20441         with a call to __faccessat.
20442         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20443         (__faccessat_common): ... this. Move implementation of __access into it when
20444         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20445         reauthenticate_cwdir_at helper to implement AT mechanism.
20446         (__faccessat_noerrno): New function, just calls __faccessat_common.
20447         (__faccessat): New function, just calls __faccessat_common.
20448         (faccessat): Define weak alias.
20450 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20452         [BZ #22691]
20453         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20454         (CFLAGS-s_fmaxmagl.c): New variable.
20455         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20457         [BZ #22690]
20458         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20459         long int for arguments of possibly overflowing addition or
20460         subtraction.
20461         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20463 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
20465         [BZ #22688]
20466         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20467         (CFLAGS-e_remainderl.c): New variable.
20469         [BZ #22687]
20470         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20471         variable.
20472         (CFLAGS-s_cacoshl.c): Likewise.
20473         (CFLAGS-s_casinhl.c): Likewise.
20474         (CFLAGS-s_catanl.c): Likewise.
20475         (CFLAGS-s_catanhl.c): Likewise.
20476         (CFLAGS-s_cexpl.c): Likewise.
20477         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20478         (CFLAGS-s_csinhl.c): Likewise.
20479         (CFLAGS-s_clogl.c): Likewise.
20480         (CFLAGS-s_clog10l.c): Likewise.
20481         (CFLAGS-s_csinl.c): Likewise.
20482         (CFLAGS-s_csqrtl.c): Likewise.
20484 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20485 2017-01-09  Svante Signell  <svante.signell@gmail.com>
20487         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20488         (_hurd_exec_paths): New function.
20489         * hurd/hurd.h (_hurd_exec): Deprecate function.
20490         (_hurd_exec_paths): Declare function.
20491         * hurd/Versions: Export _hurd_exec_paths.
20492         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20493         (__execve): Use __getcwd to build absolute path, and use
20494         _hurd_exec_paths instead of _hurd_exec.
20495         * sysdeps/mach/hurd/spawni.c: Likewise.
20496         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20497         _hurd_exec.
20499 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
20501         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20502         test instead of failing in case of ENOENT returned by posix_openpt.
20504 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20506         resolv: Support binary labels in test framework.
20507         * support/resolv_test.c (struct to_be_freed): Remove.
20508         (struct compressed_name): New.
20509         (allocate_compressed_name, ascii_tolower)
20510         (compare_compressed_name): New functions.
20511         (struct resolv_response_builder): Update type of
20512         compression_offsets for use with tsearch.  Rempve to_be_freed.
20513         (response_push_pointer_to_free): Remove function.
20514         (resolv_response_add_name): Rewrite using struct compressed_name
20515         and tsearch instead of hsearch_r.
20516         (response_builder_allocate): Remove initialization of
20517         compression_offsets.
20518         (response_builder_free): Update for removal of to_be_freed.  Use
20519         tdestroy instead of hdestroy_r.
20520         * resolv/Makefile (tests): Add tst-resolv-binary.
20521         (tst-resolv-binary): Link with -lresolv -lpthread.
20523 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20525         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20526         time.  Pass positive flag instead of negative flag to
20527         support_test_compare_failure.
20528         (support_test_compare_failure): Change negative parameter to
20529         positive.
20530         * support/support_test_compare_failure.c (report)
20531         (support_test_compare_failure): Likewise.
20532         * support/tst-test_compare.c (return_ssize_t, return_int): New.
20533         (do_test): Check int/size_t, ssize_t/size_t comparisons.
20535 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20537         [BZ #22637]
20538         * nptl/descr.h (stackblock, stackblock_size): Update comments.
20539         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20540         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20541         stacksize.
20542         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20544 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
20546         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20547         Add s_sincosf-sse2 and s_sincosf-fma.
20548         (CFLAGS-s_sincosf-fma.c): New.
20549         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20550         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20551         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20552         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20553         __sincosf is defined.
20555 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20557         * nptl/tst-thread-exit-clobber.cc: New file.
20558         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20559         C++11 mode.
20560         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20561         (tests): Add tst-thread-exit-clobber.
20562         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20564 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20566         * support/check.h (support_static_assert): Define.
20567         (TEST_COMPARE): Use it.
20569 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
20571         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20572         [!__RLIM_T_MATCHES_RLIM64_T]
20573         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20574         __getrlimit64. Add libc_hidden_weak.
20576 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
20578         * elf/elf.h (R_RISCV_NONE): New define.
20579         (R_RISCV_32): Likewise.
20580         (R_RISCV_64): Likewise.
20581         (R_RISCV_RELATIVE): Likewise.
20582         (R_RISCV_COPY): Likewise.
20583         (R_RISCV_JUMP_SLOT): Likewise.
20584         (R_RISCV_TLS_DTPMOD32): Likewise.
20585         (R_RISCV_TLS_DTPMOD64): Likewise.
20586         (R_RISCV_TLS_DTPREL32): Likewise.
20587         (R_RISCV_TLS_DTPREL64): Likewise.
20588         (R_RISCV_TLS_TPREL32): Likewise.
20589         (R_RISCV_TLS_TPREL64): Likewise.
20590         * Makerules (make-link-multidir): Make directories before linking into
20591         them.
20592         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20593         define.
20594         (VDSO_HASH_LINUX_4_15): Likewise.
20595         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20596         in subdirectories of lib.
20597         * nptl/Makefile (/librt.so): Always depend on
20598         "$(shared-thread-library)".
20600 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20602         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20603         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20604         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20605         (___tls_get_addr).
20606         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20607         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20608         "-O2 -march=i686".
20609         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20610         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20611         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20612         * sysdeps/gnu/glob-lstat-compat.c: New file.
20613         * sysdeps/gnu/glob64-lstat-compat.c: New file.
20614         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20616 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20618         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20619         Reserve 16 chars to reloc_addr before calling _itoa_word.
20621 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20623         [BZ #22678]
20624         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20625         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20627         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20628         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20630         * resource/tst-getrlimit.c: Add copyright header.
20632 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20633             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20635         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20636         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20637         Define __GI_getrlimit64 as weak alias of __getrlimit64.
20638         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20639         instead.
20640         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20641         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20642         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20643         RLIM64_INFINITY): Fix values to match the kernel ones.
20644         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20645         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
20646         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
20647         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20648         getrlimit64@@GLIBC_2_27.
20649         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20650         and setrlimit64.
20651         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20652         getrlimit, setrlimit, getrlimit64 and setrlimit64.
20653         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20654         setrlimit, getrlimit64 and setrlimit64.
20656 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20658         [BZ #22648]
20659         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20660         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20662 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
20664         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20665         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20666         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20668 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20670         [BZ #15479]
20671         [BZ #22666]
20672         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20673         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20675         [BZ #15479]
20676         [BZ #22665]
20677         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20678         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20679         * sysdeps/alpha/fpu/s_floor.c: Likewise.
20680         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20682 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20684         [BZ #22667]
20685         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20686         Align the stack before calling exit.
20687         * stdlib/tst-makecontext-align.c: New file.
20688         * stdlib/Makefile (tests): Add tst-makecontext-align.
20690 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20692         Add support for calling dlvsym from libc.so.
20693         * include/dlfcn.h (__libc_dlvsym): Declare.
20694         * elf/Makefile (tests-static-internal): Add
20695         tst-libc_dlvsym-static.
20696         (tests-internal): Add tst-libc_dlvsym.
20697         (modules-names): Add tst-libc_dlvsym-dso.
20698         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20699         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20700         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20701         object tst-libc_dlvsym-dso.so needs to be built before running
20702         these tests.
20703         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20704         * elf/Versions: Export __libc_dlvsym.
20705         * elf/dl-libc.c (struct do_dlvsym_args): New.
20706         (do_dlvsym, __libc_dlvsym): New functions.
20707         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20708         (_dl_open_hook2): New variable.
20709         (__libc_register_dl_open_hook): Set it.
20710         * elf/tst-libc_dlvsym-dso.c: New file.
20711         * elf/tst-libc_dlvsym-static.c: Likewise.
20712         * elf/tst-libc_dlvsym.c: Likewise.
20713         * elf/tst-libc_dlvsym.h: Likewise.
20715 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20717         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20718         include <sys/mount.h>.
20720 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
20722         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20723         Add __NO_MATH_ERRNO__ check.
20725 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20727         * sysdeps/mips/mips32/libm-test-ulps: Update.
20728         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20730 2018-01-02  Florian Weimer  <fweimer@redhat.com>
20732         * misc/tst-pselect.c: Add copyright header.
20734 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20736         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20737         comment.
20738         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20739         comment.
20740         (settrlimit): Rename into setrlimit.
20741         (__sttrlimit): Rename into __setrlimit.
20743         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20744         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20745         never defined in that case.
20747 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20749         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20751         * sysdeps/arm/libm-test-ulps: Update.
20753         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20754         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20756 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20758         * NEWS: Add cosf and sincosf to list of optimized functions.
20760 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20762         [BZ #22660]
20763         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20764         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20765         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20766         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20768 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
20770         [BZ #22433]
20771         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20773         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20774         making a copy of it.
20776 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
20778         * manual/texinfo.tex: Update to version 2017-12-26.21 with
20779         trailing whitespace removed.
20780         * scripts/config.guess: Update to version 2018-01-01.
20781         * scripts/config.sub: Update to version 2018-01-01.
20782         * scripts/move-if-change: Update from gnulib.
20784         * NEWS: Update copyright dates.
20785         * catgets/gencat.c (print_version): Likewise.
20786         * csu/version.c (banner): Likewise.
20787         * debug/catchsegv.sh: Likewise.
20788         * debug/pcprofiledump.c (print_version): Likewise.
20789         * debug/xtrace.sh (do_version): Likewise.
20790         * elf/ldconfig.c (print_version): Likewise.
20791         * elf/ldd.bash.in: Likewise.
20792         * elf/pldd.c (print_version): Likewise.
20793         * elf/sotruss.sh: Likewise.
20794         * elf/sprof.c (print_version): Likewise.
20795         * iconv/iconv_prog.c (print_version): Likewise.
20796         * iconv/iconvconfig.c (print_version): Likewise.
20797         * locale/programs/locale.c (print_version): Likewise.
20798         * locale/programs/localedef.c (print_version): Likewise.
20799         * login/programs/pt_chown.c (print_version): Likewise.
20800         * malloc/memusage.sh (do_version): Likewise.
20801         * malloc/memusagestat.c (print_version): Likewise.
20802         * malloc/mtrace.pl: Likewise.
20803         * manual/libc.texinfo: Likewise.
20804         * nptl/version.c (banner): Likewise.
20805         * nscd/nscd.c (print_version): Likewise.
20806         * nss/getent.c (print_version): Likewise.
20807         * nss/makedb.c (print_version): Likewise.
20808         * posix/getconf.c (main): Likewise.
20809         * scripts/test-installation.pl: Likewise.
20810         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20812         * All files with FSF copyright notices: Update copyright dates
20813         using scripts/update-copyrights.
20814         * locale/programs/charmap-kw.h: Regenerated.
20815         * locale/programs/locfile-kw.h: Likewise.
20817 2017-12-31  Zack Weinberg  <zackw@panix.com>
20819         * libio/bits/libio-ldbl.h: Correct check for improper
20820         inclusion.  Add own multiple include guard.
20822 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
20823             Dmitry V. Levin  <ldv@altlinux.org>
20825         [BZ #22625]
20826         CVE-2017-16997
20827         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20828         string token expansion. Check for NULL pointer or empty string possibly
20829         returned by expand_dynamic_string_token.
20830         (decompose_rpath): Check for empty path after dynamic string
20831         token expansion.
20833 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
20835         [BZ #22433]
20836         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20838         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20839         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20840         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
20841         and PTRACE_SYSCALL.
20842         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20843         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20844         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20845         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20846         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20847         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20849         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20850         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20851         __ptrace_peeksiginfo_flags, ptrace): Move to ...
20852         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20853         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20854         bits/ptrace-shared.h.
20855         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20856         <bits/ptrace-shared.h>.
20857         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20858         __ptrace_peeksiginfo_flags, ptrace): Remove.
20859         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20860         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20861         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20862         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20863         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20865 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20867         [BZ #17804]
20868         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20869         end of the loop. Improve comments.
20871 2017-12-29  Zack Weinberg  <zackw@panix.com>
20873         [BZ #22615]
20874         * manual/errno.texi (Checking for Errors): Explicitly say that errno
20875         might be set on success.
20877 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20879         [BZ #22611]
20880         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20881         is unchanged on success.
20883 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
20885         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20886         updated.
20887         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20888         expand_dynamic_string_token): Likewise.
20889         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20890         is_path argument.
20892         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20893         contains ':'.
20895         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20896         is set and name contains ':', and all code depending on these checks.
20898 2017-12-24  Zack Weinberg  <zackw@panix.com>
20900         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20901         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20902         respectively.
20903         * libio/libio.h: Rename the original version of this file to
20904         libio/bits/libio.h.  Error out if not included by stdio.h or the
20905         stub libio.h.
20906         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
20907         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
20908         if not included by bits/libio.h or the stub _G_config.h.
20909         * sysdeps/unix/sysv/linux/_G_config.h: Move to
20910         sysdeps/unix/sysv/linux/bits.  Error out if not included by
20911         bits/libio.h or the stub _G_config.h.
20912         * libio/stdio.h: Include bits/libio.h, not libio.h.
20913         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20914         well as libio.h and _G_config.h.
20916         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20917         * libio/strfile.h, stdio-common/vfscanf.c
20918         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20919         Include stdio.h, not _G_config.h nor libio.h.
20920         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20921         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20923         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20925 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
20927         [BZ #22347]
20928         * stdlib/getrandom.c (getrandom): Fix comment.
20929         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20931 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
20933         [BZ #21161]
20934         * manual/arith.texi (strtoul): Fix a typo.
20936         [BZ #22596]
20937         * manual/arith.texi (finite): Fix the description of the return
20938         value.
20940 2017-12-22  Eric Blake  <ebb9@byu.net>
20942         Avoid gcc warnings on cygwin
20943         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20944         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20945         Avoid unused variable.
20947 2017-12-22  Florian Weimer  <fweimer@redhat.com>
20949         * io/Makefile (routines): Add copy_file_range.
20950         (tests): Add tst-copy_file_range.
20951         (tests-static, tests-internal): Add tst-copy_file_range-compat.
20952         * io/Versions (GLIBC_2.27): Export copy_file_range.
20953         * io/copy_file_range-compat.c: New file.
20954         * io/copy_file_range.c: Likewise.
20955         * io/tst-copy_file_range-compat.c: Likewise.
20956         * io/tst-copy_file_range.c: Likewise.
20957         * manual/llio.texi (Copying File Data): New section.
20958         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20959         * support/Makefile (libsupport-routines): Add support-xfstat,
20960         xftruncate, xlseek.
20961         * support/support-xfstat.c: New file.
20962         * support/xftruncate.c: Likewise.
20963         * support/xlseek.c: Likewise.
20964         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20965         * sysdeps/unix/sysv/linux/**.abilist: Update.
20966         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20968 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20970         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20971         disable-multi-arch variant to aarch64-linux-gnu.
20973 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
20975         * manual/texinfo.tex: Update to version 2017-12-18.20 with
20976         trailing whitespace removed.
20977         * scripts/config.guess: Update to version 2017-12-17.
20978         * scripts/config.sub: Update to version 2017-11-23.
20979         * scripts/install-sh: Update to version 2017-09-23.17.
20980         * scripts/move-if-change: Update to version 2017-09-13 06:45.
20982 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20984         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20985         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20986         * sysdeps/tile/_mcount.S (__mcount): Likewise.
20987         * sysdeps/tile/crti.S (_init, _fini): Likewise.
20988         * sysdeps/tile/crtn.S: Likewise.
20989         * sysdeps/tile/dl-start.S (_start): Likewise.
20990         * sysdeps/tile/dl-trampoline.S: Likewise.
20991         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20992         * sysdeps/tile/start.S (_start): Likewise.
20993         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20994         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20995         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20996         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20997         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20998         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20999         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
21001         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
21002         comment.
21003         * sysdeps/tile/preconfigure: Remove tilegx folder.
21004         * sysdeps/tile/tilegx/Implies: Move definitions to ...
21005         * sysdeps/tile/Implies: ... here.
21006         * sysdeps/tile/tilegx/Makefile: Move rules to ...
21007         * sysdeps/tile/Makefile: ... here.
21008         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
21009         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
21010         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
21011         * sysdeps/tile/bits/wordsize.h: ... here.
21012         * sysdeps/tile/tilegx/*: Move to ...
21013         * sysdeps/tile/*: ... here.
21014         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
21015         * sysdeps/tile/tilegx32/Implies: ... here.
21016         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
21017         * sysdeps/tile/tilegx64/Implies: ... here.
21018         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
21019         to ...
21020         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
21021         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
21022         * sysdeps/unix/sysv/linux/tile/*: ... here.
21023         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
21024         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
21025         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
21026         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
21028         * README: Remove tilepro-*-linux-gnu from supported architecture.
21029         * scripts/build-many-glibcs.py: Likewise.
21030         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21031         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
21032         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
21033         elf_machine_matches_host, elf_machine_dynamic,
21034         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
21035         howto, elf_machine_rela): Likewise.
21036         * sysdeps/tile/dl-start.S (_start): Likewise.
21037         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
21038         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
21039         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
21040         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
21041         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
21042         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
21043         Likewise.
21044         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
21045         * sysdeps/tile/preconfigure: Likewise.
21046         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
21047         POINTER_CHK_GUARD): Likewise.
21048         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
21049         * sysdeps/tile/start.S (_start): Likewise.
21050         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
21051         Likewise.
21052         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
21053         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
21054         CMOVNEZ): Remove.
21055         * sysdeps/unix/sysv/linux/tile/bits/environments.h
21056         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
21057         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
21058         Likewise.
21059         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
21060         * sysdeps/tile/tilepro/Implies: Remove file.
21061         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
21062         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
21063         * sysdeps/tile/tilepro/memchr.c: Likewise.
21064         * sysdeps/tile/tilepro/memcpy.S: Likewise.
21065         * sysdeps/tile/tilepro/memset.c: Likewise.
21066         * sysdeps/tile/tilepro/memusage.h: Likewise.
21067         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
21068         * sysdeps/tile/tilepro/strchr.c: Likewise.
21069         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
21070         * sysdeps/tile/tilepro/strlen.c: Likewise.
21071         * sysdeps/tile/tilepro/strrchr.c: Likewise.
21072         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
21073         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
21074         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
21075         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
21076         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
21077         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
21078         Likewise.
21079         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
21080         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21081         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
21082         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
21083         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21084         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
21085         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
21086         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
21087         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
21088         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
21089         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
21090         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
21091         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
21092         tilepro mention in comment.
21094         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
21095         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
21096         * nptl/pthread_join_common.c: New file: common function used on
21097         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
21098         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
21099         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
21100         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21101         (cleanup): Move definition to pthread_join_common.c.
21102         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
21103         Remove superflous checks.
21104         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
21105         Likewise.
21107 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21109         * sysdeps/aarch64/libm-test-ulps: Update.
21111 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21113         * sysdeps/aarch64/memset.S (MEMSET): Define.
21115 2017-12-20  Florian Weimer  <fweimer@redhat.com>
21117         [BZ #22635]
21118         nptl: Provide full implementation of pthread_self in libc.so.
21119         * nptl/Makefile (routines): Add pthread_self.
21120         (libpthread-routines): Replace pthread_self with
21121         compat-pthread_self.
21122         * nptl/forward.c (pthread_self): Remove.
21123         * nptl/nptl-init.c (pthread_functions): Do not initialize
21124         ptr_pthread_self.
21125         * nptl/pthread_self.c (pthread_self): Remove weak alias.
21126         * nptl/compat-pthread_self.c: New file.
21127         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
21128         Remove ptr_pthread_self.
21130 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
21132         * posix/regcomp.c: Fix spelling in comments.
21133         * posix/regex.h: Likewise.
21134         * posix/regex_internal.c: Likewise.
21135         * posix/regexec.c: Likewise.
21137 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
21139         [BZ #22377]
21140         * math/Makefile [C++] (tests): Add test for iseqsig.
21141         * math/math.h [C++] (iseqsig): New implementation, which does
21142         not rely on __MATH_TG/__builtin_types_compatible_p.
21143         * math/test-math-iseqsig.cc: New file.
21144         * sysdeps/powerpc/powerpc64le/Makefile
21145         (CFLAGS-test-math-iseqsig.cc): New variable.
21147 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
21149         * elf/dl-load.c (is_trusted_path): Remove.
21150         (fillin_rpath): Remove check_trusted argument and its use,
21151         all callers changed.
21153 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21155         [BZ #22630]
21156         * Makeconfig (link-pie-before-libc): Replace -pie with
21157         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
21158         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
21159         (tst-dlopen-aout-no-pie): New.
21160         (LDFLAGS-tst-prelink): Removed.
21161         (tst-prelink-no-pie): New.
21162         (LDFLAGS-tst-main1): Removed.
21163         (tst-main1-no-pie): New.
21164         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
21165         (tst-gmon-no-pie): New.
21167 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21169         * manual/install.texi: Document that --enable-static-pie
21170         implies PIE.
21171         * INSTALL: Regenerated.
21173 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21175         [BZ #21309]
21176         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
21177         unsigned.
21179 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21181         Revert:
21183         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21185         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21187         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21189         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21190         <errno.h>.  Include "eexp.tbl".
21191         (half): New constant.
21192         (one): Likewise.
21193         (__ieee754_exp): Rewrite.
21194         (__slowexp): Remove prototype.
21195         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21196         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21197         * sysdeps/i386/fpu/slowexp.c: Likewise.
21198         * sysdeps/ia64/fpu/slowexp.c: Likewise.
21199         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21200         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21201         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21202         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21203         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21204         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21205         comment.
21206         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21207         (CPPFLAGS-slowexp.c): Remove variable.
21208         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21209         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21210         (CFLAGS-slowexp-fma.c): Remove variable.
21211         (CFLAGS-slowexp-fma4.c): Likewise.
21212         (CFLAGS-slowexp-avx.c): Likewise.
21213         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21214         define as macro.
21215         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21216         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21217         * math/Makefile (type-double-routines): Remove slowexp.
21218         * manual/probes.texi (slowexp_p6): Remove.
21219         (slowexp_p32): Likewise.
21221 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21223         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21224         arithmetic.
21226         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21228 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21230         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21232 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21234         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21235         <errno.h>.  Include "eexp.tbl".
21236         (half): New constant.
21237         (one): Likewise.
21238         (__ieee754_exp): Rewrite.
21239         (__slowexp): Remove prototype.
21240         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21241         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21242         * sysdeps/i386/fpu/slowexp.c: Likewise.
21243         * sysdeps/ia64/fpu/slowexp.c: Likewise.
21244         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21245         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21246         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21247         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21248         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21249         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21250         comment.
21251         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21252         (CPPFLAGS-slowexp.c): Remove variable.
21253         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21254         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21255         (CFLAGS-slowexp-fma.c): Remove variable.
21256         (CFLAGS-slowexp-fma4.c): Likewise.
21257         (CFLAGS-slowexp-avx.c): Likewise.
21258         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21259         define as macro.
21260         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21261         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21262         * math/Makefile (type-double-routines): Remove slowexp.
21263         * manual/probes.texi (slowexp_p6): Remove.
21264         (slowexp_p32): Likewise.
21266 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21267             James Clarke  <jrtc27@jrtc27.com>
21269         [BZ #22603]
21270         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
21271         addition.
21273 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21275         [BZ #22605]
21276         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
21277         code.
21279 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21281         [BZ #22563]
21282         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21283         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21284         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21285         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21286         to feature_1.
21288 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21290         [BZ #22563]
21291         * bits/types/__cancel_jmp_buf_tag.h: New file.
21292         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21293         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21294         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21295         * nptl/Makefile (headers): Add
21296         bits/types/__cancel_jmp_buf_tag.h.
21297         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21298         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21299         * sysdeps/nptl/pthread.h: Include
21300         <bits/types/__cancel_jmp_buf_tag.h>.
21301         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21302         __cancel_jmp_buf.
21303         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21305 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21307         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21308         --enable-static-pie variants to x86_64, x32 and i686.
21310 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21312         [BZ #22631]
21313         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21314         argument for attrubutes.  All callers changed.
21315         (__inline_mathop1): Likewise.  All callers changed.
21316         (__inline_mathop): Likewise.  All callers changed.
21317         [__USE_MISC] (scalbn): Use __inline_forward instead of
21318         __inline_forward_c.
21319         [__USE_ISOC99] (scalbln): Likewise.
21320         [__USE_ISOC99] (nearbyint): Likewise.
21321         [__USE_ISOC99] (lrint): Likewise.
21322         [__USE_MISC] (scalbnf): Likewise.
21323         [__USE_ISOC99] (scalblnf): Likewise.
21324         [__USE_ISOC99] (nearbyintf): Likewise.
21325         [__USE_ISOC99] (lrintf): Likewise.
21326         [__USE_MISC] (scalbnl): Likewise.
21327         [__USE_ISOC99] (scalblnl): Likewise.
21328         [__USE_ISOC99] (nearbyintl): Likewise.
21329         [__USE_ISOC99] (lrintl): Likewise.
21330         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21331         __inline_mathop and __m81_defun changed.
21333         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21334         CPU or FPU for ARM hard-float configurations.
21336 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21338         * nptl/tst-attr3.c: Include <libc-diag.h>.
21339         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21341         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21343         * string/tester.c (test_strncat): Also disable -Warray-bounds
21344         warnings for two tests.
21346 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21348         [BZ #22614]
21349         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21350         $(cc-pie-default) == yes.
21351         * config.make.in (cc-pie-default): New.
21352         * configure.ac (libc_cv_pie_default): Renamed to ...
21353         (libc_cv_cc_pie_default): This.
21354         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21355         * configure: Regenerated.
21357 2017-12-18  Florian Weimer  <fweimer@redhat.com>
21359         [BZ #20204]
21360         ld.so: Harden dl-libc/libdl hooks.
21361         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21362         (rtld_active): New function.
21363         * dlfcn/dladdr.c (__dladdr): Call it.
21364         * dlfcn/dladdr1.c (__dladdr1): Likewise.
21365         * dlfcn/dlclose.c (__dlcose): Likewise.
21366         * dlfcn/dlerror.c (__dlerror): Likewise.
21367         * dlfcn/dlinfo.c (__dlinfo): Likewise.
21368         * dlfcn/dlmopen.c (__dlmopen): Likewise.
21369         * dlfcn/dlopen.c (__dlopen): Likewise.
21370         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21371         * dlfcn/dlsym.c (__dlsym): Likewise.
21372         * dlfcn/dlvsym.c (__dlvsym): Likewise.
21373         * libio/vtables.c (_IO_vtable_check): Likewise.
21374         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21375         (__libc_dlclose): Likewise.
21376         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21377         assignment.
21379 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21381         [BZ #22446]
21382         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21383         buffers for readlink input and output.
21385 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
21387         [BZ #22624]
21388         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21389         inhibit_stack_protector.
21391         [BZ #22624]
21392         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21393         inhibit_stack_protector.
21395 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
21397         [BZ #22627]
21398         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21399         code and invocation.
21401 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21403         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21405 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
21407         [BZ #22505]
21408         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21410 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21412         * sysdeps/s390/fpu/libm-test-ulps: Update.
21414 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21418 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21420         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21421         constants to s_sincosf.h file.
21422         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21423         * sysdeps/ieee754/flt-32/s_sincosf.c: New
21424         implementation.
21425         * sysdeps/ieee754/flt-32/s_sincosf.h:
21426         New file.
21428 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21430         [BZ #14681]
21431         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21432         before mtrace.
21434 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21436         [BZ #19574]
21437         * INSTALL: Regenerated.
21438         * Makeconfig (real-static-start-installed-name): New.
21439         (pic-default): Updated for --enable-static-pie.
21440         (pie-default): New for --enable-static-pie.
21441         (default-pie-ldflag): Likewise.
21442         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21443         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21444         Replace $(static-start-installed-name) with
21445         $(real-static-start-installed-name).
21446         (+prectorT): Updated for --enable-static-pie.
21447         (+postctorT): Likewise.
21448         (CFLAGS-.o): Add $(pie-default).
21449         (CFLAGS-.op): Likewise.
21450         * NEWS: Mention --enable-static-pie.
21451         * config.h.in (ENABLE_STATIC_PIE): New.
21452         * configure.ac (--enable-static-pie): New configure option.
21453         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21454         (have-static-pie): Likewise.
21455         Enable static PIE if linker supports --no-dynamic-linker.
21456         (ENABLE_STATIC_PIE): New AC_DEFINE.
21457         (enable-static-pie): New LIBC_CONFIG_VAR.
21458         * configure: Regenerated.
21459         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21460         gr$(start-installed-name) for --enable-static-pie.
21461         (extra-objs): Likewise.
21462         (install-lib): Likewise.
21463         (extra-objs): Add static-reloc.o and static-reloc.os
21464         ($(objpfx)$(start-installed-name)): Also depend on
21465         $(objpfx)static-reloc.o.
21466         ($(objpfx)r$(start-installed-name)): New.
21467         ($(objpfx)g$(start-installed-name)): Also depend on
21468         $(objpfx)static-reloc.os.
21469         ($(objpfx)gr$(start-installed-name)): New.
21470         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21471         in libc.a.
21472         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21473         initimage.
21474         * csu/static-reloc.c: New file.
21475         * elf/Makefile (routines): Add dl-reloc-static-pie.
21476         (elide-routines.os): Likewise.
21477         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21478         (tst-tls1-static-non-pie-no-pie): New.
21479         * elf/dl-reloc-static-pie.c: New file.
21480         * elf/dl-support.c (_dl_get_dl_main_map): New function.
21481         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21482         STATIC_PIE_BOOTSTRAP.
21483         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21484         * gmon/Makefile (tests): Add tst-gmon-static-pie.
21485         (tests-static): Likewise.
21486         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21487         (tst-gmon-static-no-pie): New.
21488         (CFLAGS-tst-gmon-static-pie.c): Likewise.
21489         (CRT-tst-gmon-static-pie): Likewise.
21490         (tst-gmon-static-pie-ENV): Likewise.
21491         (tests-special): Likewise.
21492         ($(objpfx)tst-gmon-static-pie.out): Likewise.
21493         (clean-tst-gmon-static-pie-data): Likewise.
21494         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21495         * gmon/tst-gmon-static-pie.c: New file.
21496         * manual/install.texi: Document --enable-static-pie.
21497         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21498         (_dl_get_dl_main_map): Likewise.
21499         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21500         * sysdeps/x86_64/configure.ac: Likewise.
21501         * sysdeps/i386/configure: Regenerated.
21502         * sysdeps/x86_64/configure: Likewise.
21503         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21504         (ASFLAGS-.op): Likewise.
21506 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21508         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21509         * posix/tst-mmap-offset.c (fname): Use /tmp.
21510         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21512 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
21514         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21516 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
21518         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21519         errno.
21521 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21523         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21524         --with-float=hard for arm-linux-gnueabihf configurations.
21526         [BZ #14121]
21527         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21528         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
21529         ($(mo-installed)): Use $(objpfx)%.mo.
21530         (realclean): Remove rule.
21532         * po/Makefile (linguas): Remove rule and dependencies.
21533         (linguas.mo): Likewise.
21534         (.PHONY): Do not depend on linguas and linguas.mo.
21535         (podir): Remove variable.
21536         (pofiles): Likewise.
21537         [$(pofiles)] (%.po): Remove rule.
21539         * sysdeps/sparc/sparc32/Makefile
21540         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21541         start-of-line whitespace in argument of echo.
21542         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21543         with whitespace.  Generate __wrap_.udiv alias.
21544         * sysdeps/sparc/sparc32/rem.S: Regenerated.
21545         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21546         * sysdeps/sparc/sparc32/udiv.S: Likewise.
21547         * sysdeps/sparc/sparc32/urem.S: Likewise.
21549 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21551         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21552         for aligned inputs.
21554 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21556         * benchtests/bench-strcmp.c: Print output in JSON format.
21558         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21560 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21562         [BZ #22607]
21563         CVE-2017-1000409
21564         * elf/dl-load.c (_dl_init_paths): Compute number of components in
21565         the expanded path string.
21567 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21569         [BZ #22606]
21570         CVE-2017-1000408
21571         * elf/dl-load.c (system_dirs): Update comment.
21572         (nsystem_dirs_len): Use array_length.
21573         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21575 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21577         Simplify compiling most of support/ outside of glibc.
21578         * support/check_addrinfo.c: Include <string.h>.
21579         * support/check_dns_packet.c: Likewise.
21580         * support/check_hostent.c: Likewise.
21581         * support/support_can_chroot.c: Include <support/xunistd.h>.
21582         * support/support_format_addrinfo.c: Include <stdlib.h>
21583         * support/support_format_dns_packet.c: Include <stdbool.h>.
21584         * support/support_format_hostent.c: Include <stdlib.h>.
21585         * support/support_format_netent.c: Likewise.
21586         * support/support_write_string.c: Include <support/xunistd.h>.
21587         * support/xdlfcn.c: Include <stddef.h>.
21589 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
21591         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21593 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21594             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21596         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21597         (sysdeps_routines): Add memset-niagara7.
21598         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21599         Likewise.
21600         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21601         file.
21602         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21603         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21604         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21605         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21606         Add niagara7 option.
21607         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21608         memset.
21610         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21611         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21612         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21613         Likewise.
21614         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21615         New file.
21616         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21617         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21618         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21619         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21620         and __memmove_niagara7.
21621         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21622         Add niagara7 option.
21623         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21624         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21625         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21626         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21627         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21629 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
21631         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21632         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21633         * sysdeps/sparc/sparc64/memmove.S: Likewise.
21634         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21636         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21637         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21638         _dl_sparc_cap_flags array.
21639         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21641 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21643         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21644         time whenever possible.
21646 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21648         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21649         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21651 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21653         * soft-fp/fmadf4.c: Move to ....
21654         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21655         * soft-fp/fmasf4.c: Move to ....
21656         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21657         * soft-fp/fmatf4.c: Move to ....
21658         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21659         * sysdeps/ieee754/soft-fp/Makefile: New file.
21660         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21661         * sysdeps/arm/preconfigure: Regenerated.
21662         * sysdeps/arm/nofpu/Implies: New file.
21663         * sysdeps/arm/s_fma.c: Remove file.
21664         * sysdeps/arm/s_fmaf.c: Likewise.
21665         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21666         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21667         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21668         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21669         * sysdeps/microblaze/s_fma.c: Remove file.
21670         * sysdeps/microblaze/s_fmaf.c: Likewise.
21671         * sysdeps/mips/mips32/nofpu/Implies: New file.
21672         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21673         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21674         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21675         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21676         * sysdeps/mips/ieee754/s_fma.c: Remove file.
21677         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21678         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21679         implementation.
21680         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21681         * sysdeps/nios2/s_fma.c: Remove file.
21682         * sysdeps/nios2/s_fmaf.c: Likewise.
21683         * sysdeps/sh/nofpu/Implies: New file.
21684         * sysdeps/sh/s_fma.c: Remove file.
21685         * sysdeps/sh/s_fmaf.c: Likewise.
21686         * sysdeps/tile/Implies: Add ieee754/soft-fp.
21687         * sysdeps/tile/s_fma.c: Remove file.
21688         * sysdeps/tile/s_fmaf.c: Likewise.
21690 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
21692         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21693         Add s_cosf-sse2 and s_cosf-fma.
21694         (CFLAGS-s_cosf-fma.c): New.
21695         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21696         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21697         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21699 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
21701         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21703 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21705         * libio/Makefile (tests): Add tst-bz22415.
21706         (tst-bz22415-ENV): New rule.
21707         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21708         (tests-special): Add tst-bz22415-mem.out.
21709         ($(objpfx)tst-bz22415-mem.out): New rule.
21710         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21711         in case of a successful seek operation.
21712         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21713         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21714         buffer is required.
21715         * libio/tst-bz22415.c: New test.
21717         * sysdeps/ia64/fpu/libm-test-ulps: Update.
21719 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
21721         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21722         __IPC_64 to 0 to avoid IPC_64 being set.
21724 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21726         [BZ #22593]
21727         * math/bits/mathcalls.h (nextafter): Remove const.
21728         (nexttoward): Likewise.
21730 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21732         * configure.ac (--with-fp): Remove configure option.
21733         (with_fp_cond): New variable.
21734         (libc_cv_with_fp): New configure test.  Use this variable instead
21735         of with_fp.
21736         * configure: Regenerated.
21737         * config.make.in (with-fp): Use @libc_cv_with_fp@.
21738         * manual/install.texi (Configuring and compiling): Remove
21739         --without-fp.
21740         * INSTALL: Regenerated.
21741         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21742         * sysdeps/mips/preconfigure (with_fp_cond): Define.
21743         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21744         * sysdeps/sh/preconfigure (with_fp_cond): Define.
21745         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21746         use --without-fp to configure glibc.
21748 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
21750         * manual/locale.texi (nl_langinfo): Fix a typo.
21752 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
21754         [BZ #22588]
21755         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21757 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21759         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21760         (CFLAGS-argp-parse.c): Likewise.
21761         (CFLAGS-argp-fmtstream.c): Likewise.
21762         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21763         (CPPFLAGS-sha512-crypt.c): Likewise.
21764         (CPPFLAGS-md5-crypt.c): Likewise.
21765         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21766         (CFLAGS-stack_chk_fail_local.c): Likewise.
21767         (CFLAGS-backtrace.c): Likewise.
21768         (CFLAGS-sprintf_chk.c): Likewise.
21769         (CFLAGS-snprintf_chk.c): Likewise.
21770         (CFLAGS-vsprintf_chk.c): Likewise.
21771         (CFLAGS-vsnprintf_chk.c): Likewise.
21772         (CFLAGS-asprintf_chk.c): Likewise.
21773         (CFLAGS-vasprintf_chk.c): Likewise.
21774         (CFLAGS-obprintf_chk.c): Likewise.
21775         (CFLAGS-dprintf_chk.c): Likewise.
21776         (CFLAGS-vdprintf_chk.c): Likewise.
21777         (CFLAGS-printf_chk.c): Likewise.
21778         (CFLAGS-fprintf_chk.c): Likewise.
21779         (CFLAGS-vprintf_chk.c): Likewise.
21780         (CFLAGS-vfprintf_chk.c): Likewise.
21781         (CFLAGS-gets_chk.c): Likewise.
21782         (CFLAGS-fgets_chk.c): Likewise.
21783         (CFLAGS-fgets_u_chk.c): Likewise.
21784         (CFLAGS-fread_chk.c): Likewise.
21785         (CFLAGS-fread_u_chk.c): Likewise.
21786         (CFLAGS-swprintf_chk.c): Likewise.
21787         (CFLAGS-vswprintf_chk.c): Likewise.
21788         (CFLAGS-wprintf_chk.c): Likewise.
21789         (CFLAGS-fwprintf_chk.c): Likewise.
21790         (CFLAGS-vwprintf_chk.c): Likewise.
21791         (CFLAGS-vfwprintf_chk.c): Likewise.
21792         (CFLAGS-fgetws_chk.c): Likewise.
21793         (CFLAGS-fgetws_u_chk.c): Likewise.
21794         (CFLAGS-read_chk.c): Likewise.
21795         (CFLAGS-pread_chk.c): Likewise.
21796         (CFLAGS-pread64_chk.c): Likewise.
21797         (CFLAGS-recv_chk.c): Likewise.
21798         (CFLAGS-recvfrom_chk.c): Likewise.
21799         (CFLAGS-tst-longjmp_chk.c): Likewise.
21800         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21801         (CFLAGS-tst-longjmp_chk2.c): Likewise.
21802         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21803         (CFLAGS-tst-longjmp_chk3.c): Likewise.
21804         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21805         (CFLAGS-tst-chk1.c): Likewise.
21806         (CFLAGS-tst-chk2.c): Likewise.
21807         (CFLAGS-tst-chk3.c): Likewise.
21808         (CFLAGS-tst-chk4.cc): Likewise.
21809         (CFLAGS-tst-chk5.cc): Likewise.
21810         (CFLAGS-tst-chk6.cc): Likewise.
21811         (CFLAGS-tst-lfschk1.c): Likewise.
21812         (CFLAGS-tst-lfschk2.c): Likewise.
21813         (CFLAGS-tst-lfschk3.c): Likewise.
21814         (CFLAGS-tst-lfschk4.cc): Likewise.
21815         (CFLAGS-tst-lfschk5.cc): Likewise.
21816         (CFLAGS-tst-lfschk6.cc): Likewise.
21817         (CFLAGS-tst-ssp-1.c): Likewise.
21818         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21819         (CFLAGS-scandir64.c): Likewise.
21820         (CFLAGS-scandir-tail.c): Likewise.
21821         (CFLAGS-scandir64-tail.c): Likewise.
21822         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21823         (CFLAGS-dl-tunables.c): Likewise.
21824         (CFLAGS-dl-runtime.c): Likewise.
21825         (CFLAGS-dl-lookup.c): Likewise.
21826         (CFLAGS-dl-iterate-phdr.c): Likewise.
21827         (CFLAGS-vismain.c): Likewise.
21828         (CFLAGS-tst-linkall-static.c): Likewise.
21829         (CFLAGS-tst-linkall-static.c): Likewise.
21830         (CPPFLAGS-dl-load.c): Likewise.
21831         (CFLAGS-ldconfig.c): Likewise.
21832         (CFLAGS-dl-cache.c): Likewise.
21833         (CFLAGS-cache.c): Likewise.
21834         (CFLAGS-rtld.c): Likewise.
21835         (CFLAGS-multiload.c): Likewise.
21836         (CFLAGS-filtmod1.c): Likewise.
21837         (CFLAGS-tst-align.c): Likewise.
21838         (CFLAGS-tst-align2.c): Likewise.
21839         (CFLAGS-tst-alignmod.c): Likewise.
21840         (CFLAGS-tst-alignmod2.c): Likewise.
21841         (CPPFLAGS-tst-execstack.c): Likewise.
21842         (CFLAGS-tst-ptrguard1-static.c): Likewise.
21843         (CFLAGS-tst-latepthreadmod.c): Likewise.
21844         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21845         (CFLAGS-getgrnam_r.c): Likewise.
21846         (CFLAGS-getgrent_r.c): Likewise.
21847         (CFLAGS-getgrent.c): Likewise.
21848         (CFLAGS-fgetgrent.c): Likewise.
21849         (CFLAGS-fgetgrent_r.c): Likewise.
21850         (CFLAGS-putgrent.c): Likewise.
21851         (CFLAGS-initgroups.c): Likewise.
21852         (CFLAGS-getgrgid.c): Likewise.
21853         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21854         (CFLAGS-getsgent.c): Likewise.
21855         (CFLAGS-fgetsgent.c): Likewise.
21856         (CFLAGS-fgetsgent_r.c): Likewise.
21857         (CFLAGS-putsgent.c): Likewise.
21858         (CFLAGS-getsgnam.c): Likewise.
21859         (CFLAGS-getsgnam_r.c): Likewise.
21860         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21861         (CFLAGS-iconv_charmap.c): Likewise.
21862         (CFLAGS-dummy-repertoire.c): Likewise.
21863         (CFLAGS-charmap.c): Likewise.
21864         (CFLAGS-linereader.c): Likewise.
21865         (CFLAGS-simple-hash.c): Likewise.
21866         (CFLAGS-gconv_conf.c): Likewise.
21867         (CFLAGS-iconvconfig.c): Likewise.
21868         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21869         (CFLAGS-gethstbyad.c): Likewise.
21870         (CFLAGS-gethstbynm_r.c): Likewise.
21871         (CFLAGS-gethstbynm.c): Likewise.
21872         (CFLAGS-gethstbynm2_r.c): Likewise.
21873         (CFLAGS-gethstbynm2.c): Likewise.
21874         (CFLAGS-gethstent_r.c): Likewise.
21875         (CFLAGS-gethstent.c): Likewise.
21876         (CFLAGS-rcmd.c): Likewise.
21877         (CFLAGS-getnetbynm_r.c): Likewise.
21878         (CFLAGS-getnetbynm.c): Likewise.
21879         (CFLAGS-getnetbyad_r.c): Likewise.
21880         (CFLAGS-getnetbyad.c): Likewise.
21881         (CFLAGS-getnetent_r.c): Likewise.
21882         (CFLAGS-getnetent.c): Likewise.
21883         (CFLAGS-getaliasent_r.c): Likewise.
21884         (CFLAGS-getaliasent.c): Likewise.
21885         (CFLAGS-getrpcent_r.c): Likewise.
21886         (CFLAGS-getrpcent.c): Likewise.
21887         (CFLAGS-getservent_r.c): Likewise.
21888         (CFLAGS-getservent.c): Likewise.
21889         (CFLAGS-getprtent_r.c): Likewise.
21890         (CFLAGS-getprtent.c): Likewise.
21891         (CFLAGS-either_ntoh.c): Likewise.
21892         (CFLAGS-either_hton.c): Likewise.
21893         (CFLAGS-getnetgrent.c): Likewise.
21894         (CFLAGS-getnetgrent_r.c): Likewise.
21895         (CFLAGS-tst-checks-posix.c): Likewise.
21896         (CFLAGS-tst-sockaddr.c): Likewise.
21897         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21898         (CFLAGS-tst-translit.c): Likewise.
21899         (CFLAGS-tst-gettext2.c): Likewise.
21900         (CFLAGS-tst-codeset.c): Likewise.
21901         (CFLAGS-tst-gettext3.c): Likewise.
21902         (CFLAGS-tst-gettext4.c): Likewise.
21903         (CFLAGS-tst-gettext5.c): Likewise.
21904         (CFLAGS-tst-gettext6.c): Likewise.
21905         * io/Makefile (CFLAGS-open.c): Likewise.
21906         (CFLAGS-open64.c): Likewise.
21907         (CFLAGS-creat.c): Likewise.
21908         (CFLAGS-creat64.c): Likewise.
21909         (CFLAGS-fcntl.c): Likewise.
21910         (CFLAGS-poll.c): Likewise.
21911         (CFLAGS-ppoll.c): Likewise.
21912         (CFLAGS-lockf.c): Likewise.
21913         (CFLAGS-statfs.c): Likewise.
21914         (CFLAGS-fstatfs.c): Likewise.
21915         (CFLAGS-statvfs.c): Likewise.
21916         (CFLAGS-fstatvfs.c): Likewise.
21917         (CFLAGS-fts.c): Likewise.
21918         (CFLAGS-fts64.c): Likewise.
21919         (CFLAGS-ftw.c): Likewise.
21920         (CFLAGS-ftw64.c): Likewise.
21921         (CFLAGS-lockf.c): Likewise.
21922         (CFLAGS-posix_fallocate.c): Likewise.
21923         (CFLAGS-posix_fallocate64.c): Likewise.
21924         (CFLAGS-fallocate.c): Likewise.
21925         (CFLAGS-fallocate64.c): Likewise.
21926         (CFLAGS-read.c): Likewise.
21927         (CFLAGS-write.c): Likewise.
21928         (CFLAGS-test-stat.c): Likewise.
21929         (CFLAGS-test-lfs.c): Likewise.
21930         * libio/Makefile (CFLAGS-fileops.c): Likewise.
21931         (CFLAGS-fputc.c): Likewise.
21932         (CFLAGS-fputwc.c): Likewise.
21933         (CFLAGS-freopen64.c): Likewise.
21934         (CFLAGS-freopen.c): Likewise.
21935         (CFLAGS-fseek.c): Likewise.
21936         (CFLAGS-fseeko64.c): Likewise.
21937         (CFLAGS-fseeko.c): Likewise.
21938         (CFLAGS-ftello64.c): Likewise.
21939         (CFLAGS-ftello.c): Likewise.
21940         (CFLAGS-fwide.c): Likewise.
21941         (CFLAGS-genops.c): Likewise.
21942         (CFLAGS-getc.c): Likewise.
21943         (CFLAGS-getchar.c): Likewise.
21944         (CFLAGS-getwc.c): Likewise.
21945         (CFLAGS-getwchar.c): Likewise.
21946         (CFLAGS-iofclose.c): Likewise.
21947         (CFLAGS-iofflush.c): Likewise.
21948         (CFLAGS-iofgetpos64.c): Likewise.
21949         (CFLAGS-iofgetpos.c): Likewise.
21950         (CFLAGS-iofgets.c): Likewise.
21951         (CFLAGS-iofgetws.c): Likewise.
21952         (CFLAGS-iofputs.c): Likewise.
21953         (CFLAGS-iofputws.c): Likewise.
21954         (CFLAGS-iofread.c): Likewise.
21955         (CFLAGS-iofsetpos64.c): Likewise.
21956         (CFLAGS-iofsetpos.c): Likewise.
21957         (CFLAGS-ioftell.c): Likewise.
21958         (CFLAGS-iofwrite.c): Likewise.
21959         (CFLAGS-iogetdelim.c): Likewise.
21960         (CFLAGS-iogetline.c): Likewise.
21961         (CFLAGS-iogets.c): Likewise.
21962         (CFLAGS-iogetwline.c): Likewise.
21963         (CFLAGS-ioputs.c): Likewise.
21964         (CFLAGS-ioseekoff.c): Likewise.
21965         (CFLAGS-ioseekpos.c): Likewise.
21966         (CFLAGS-iosetbuffer.c): Likewise.
21967         (CFLAGS-iosetvbuf.c): Likewise.
21968         (CFLAGS-ioungetc.c): Likewise.
21969         (CFLAGS-ioungetwc.c): Likewise.
21970         (CFLAGS-oldfileops.c): Likewise.
21971         (CFLAGS-oldiofclose.c): Likewise.
21972         (CFLAGS-oldiofgetpos64.c): Likewise.
21973         (CFLAGS-oldiofgetpos.c): Likewise.
21974         (CFLAGS-oldiofsetpos64.c): Likewise.
21975         (CFLAGS-oldiofsetpos.c): Likewise.
21976         (CFLAGS-peekc.c): Likewise.
21977         (CFLAGS-putc.c): Likewise.
21978         (CFLAGS-putchar.c): Likewise.
21979         (CFLAGS-putwc.c): Likewise.
21980         (CFLAGS-putwchar.c): Likewise.
21981         (CFLAGS-rewind.c): Likewise.
21982         (CFLAGS-wfileops.c): Likewise.
21983         (CFLAGS-wgenops.c): Likewise.
21984         (CFLAGS-oldiofopen.c): Likewise.
21985         (CFLAGS-iofopen.c): Likewise.
21986         (CFLAGS-iofopen64.c): Likewise.
21987         (CFLAGS-oldtmpfile.c): Likewise.
21988         (CFLAGS-tst_putwc.c): Likewise.
21989         * locale/Makefile (CFLAGS-md5.c): Likewise.
21990         (CFLAGS-charmap.c): Likewise.
21991         (CFLAGS-locfile.c): Likewise.
21992         (CFLAGS-charmap-dir.c): Likewise.
21993         * login/Makefile (CFLAGS-grantpt.c): Likewise.
21994         (CFLAGS-getpt.c): Likewise.
21995         (CFLAGS-pt_chown.c): Likewise.
21996         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21997         (CFLAGS-obstack.c): Likewise.
21998         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21999         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
22000         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
22001         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
22002         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
22003         (CFLAGS-test-tgmath.c): Likewise.
22004         (CFLAGS-test-tgmath2.c): Likewise.
22005         (CFLAGS-test-tgmath-ret.c): Likewise.
22006         (CFLAGS-test-powl.c): Likewise.
22007         (CFLAGS-test-snan.c): Likewise.
22008         (CFLAGS-test-signgam-finite.c): Likewise.
22009         (CFLAGS-test-signgam-finite-c99.c): Likewise.
22010         (CFLAGS-test-signgam-finite-c11.c): Likewise.
22011         (CFLAGS-test-signgam-uchar.c): Likewise.
22012         (CFLAGS-test-signgam-uchar-init.c): Likewise.
22013         (CFLAGS-test-signgam-uchar-static.c): Likewise.
22014         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
22015         (CFLAGS-test-signgam-uint.c): Likewise.
22016         (CFLAGS-test-signgam-uint-init.c): Likewise.
22017         (CFLAGS-test-signgam-uint-static.c): Likewise.
22018         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
22019         (CFLAGS-test-signgam-ullong.c): Likewise.
22020         (CFLAGS-test-signgam-ullong-init.c): Likewise.
22021         (CFLAGS-test-signgam-ullong-static.c): Likewise.
22022         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
22023         (CFLAGS-test-math-cxx11.cc): Likewise.
22024         (CFLAGS-test-math-isinff.cc): Likewise.
22025         (CFLAGS-test-math-iszero.cc): Likewise.
22026         (CFLAGS-test-math-issignaling.cc): Likewise.
22027         (CFLAGS-test-math-iscanonical.cc): Likewise.
22028         (CFLAGS-test-iszero-excess-precision.c): Likewise.
22029         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
22030         (CFLAGS-test-flt-eval-method.c): Likewise.
22031         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
22032         (CFLAGS-test-finite-macros.c): Likewise.
22033         * misc/Makefile (CFLAGS-select.c): Likewise.
22034         (CFLAGS-tsearch.c): Likewise.
22035         (CFLAGS-lsearch.c): Likewise.
22036         (CFLAGS-pselect.c): Likewise.
22037         (CFLAGS-readv.c): Likewise.
22038         (CFLAGS-writev.c): Likewise.
22039         (CFLAGS-preadv.c): Likewise.
22040         (CFLAGS-preadv64.c): Likewise.
22041         (CFLAGS-pwritev.c): Likewise.
22042         (CFLAGS-pwritev64.c): Likewise.
22043         (CFLAGS-preadv2.c): Likewise.
22044         (CFLAGS-preadv64v2.c): Likewise.
22045         (CFLAGS-pwritev2.c): Likewise.
22046         (CFLAGS-pwritev64v2.c): Likewise.
22047         (CFLAGS-usleep.c): Likewise.
22048         (CFLAGS-syslog.c): Likewise.
22049         (CFLAGS-error.c): Likewise.
22050         (CFLAGS-getpass.c): Likewise.
22051         (CFLAGS-mkstemp.c): Likewise.
22052         (CFLAGS-mkstemp64.c): Likewise.
22053         (CFLAGS-getsysstats.c): Likewise.
22054         (CFLAGS-getusershell.c): Likewise.
22055         (CFLAGS-err.c): Likewise.
22056         (CFLAGS-tst-tsearch.c): Likewise.
22057         (CFLAGS-msync.c): Likewise.
22058         (CFLAGS-fdatasync.c): Likewise.
22059         (CFLAGS-fsync.c): Likewise.
22060         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
22061         (CFLAGS-unwind.c): Likewise.
22062         (CFLAGS-unwind-forcedunwind.c): Likewise.
22063         (CFLAGS-pthread_cancel.c): Likewise.
22064         (CFLAGS-pthread_setcancelstate.c): Likewise.
22065         (CFLAGS-pthread_setcanceltype.c): Likewise.
22066         (CFLAGS-cancellation.c): Likewise.
22067         (CFLAGS-libc-cancellation.c): Likewise.
22068         (CFLAGS-pthread_exit.c): Likewise.
22069         (CFLAGS-forward.c): Likewise.
22070         (CFLAGS-pthread_testcancel.c): Likewise.
22071         (CFLAGS-pthread_join.c): Likewise.
22072         (CFLAGS-pthread_timedjoin.c): Likewise.
22073         (CFLAGS-pthread_once.c): Likewise.
22074         (CFLAGS-pthread_cond_wait.c): Likewise.
22075         (CFLAGS-sem_wait.c): Likewise.
22076         (CFLAGS-sem_timedwait.c): Likewise.
22077         (CFLAGS-fcntl.c): Likewise.
22078         (CFLAGS-lockf.c): Likewise.
22079         (CFLAGS-pread.c): Likewise.
22080         (CFLAGS-pread64.c): Likewise.
22081         (CFLAGS-pwrite.c): Likewise.
22082         (CFLAGS-pwrite64.c): Likewise.
22083         (CFLAGS-wait.c): Likewise.
22084         (CFLAGS-waitpid.c): Likewise.
22085         (CFLAGS-sigwait.c): Likewise.
22086         (CFLAGS-msgrcv.c): Likewise.
22087         (CFLAGS-msgsnd.c): Likewise.
22088         (CFLAGS-tcdrain.c): Likewise.
22089         (CFLAGS-open.c): Likewise.
22090         (CFLAGS-open64.c): Likewise.
22091         (CFLAGS-pause.c): Likewise.
22092         (CFLAGS-recv.c): Likewise.
22093         (CFLAGS-send.c): Likewise.
22094         (CFLAGS-accept.c): Likewise.
22095         (CFLAGS-sendto.c): Likewise.
22096         (CFLAGS-connect.c): Likewise.
22097         (CFLAGS-recvfrom.c): Likewise.
22098         (CFLAGS-recvmsg.c): Likewise.
22099         (CFLAGS-sendmsg.c): Likewise.
22100         (CFLAGS-close.c): Likewise.
22101         (CFLAGS-read.c): Likewise.
22102         (CFLAGS-write.c): Likewise.
22103         (CFLAGS-nanosleep.c): Likewise.
22104         (CFLAGS-sigsuspend.c): Likewise.
22105         (CFLAGS-msync.c): Likewise.
22106         (CFLAGS-fdatasync.c): Likewise.
22107         (CFLAGS-fsync.c): Likewise.
22108         (CFLAGS-pt-system.c): Likewise.
22109         (CFLAGS-tst-cleanup2.c): Likewise.
22110         (CFLAGS-tst-cleanupx2.c): Likewise.
22111         (CFLAGS-flockfile.c): Likewise.
22112         (CFLAGS-ftrylockfile.c): Likewise.
22113         (CFLAGS-funlockfile.c): Likewise.
22114         (CFLAGS-tst-initializers1.c): Likewise.
22115         (CFLAGS-tst-initializers1-c89.c): Likewise.
22116         (CFLAGS-tst-initializers1-c99.c): Likewise.
22117         (CFLAGS-tst-initializers1-c11.c): Likewise.
22118         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
22119         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
22120         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
22121         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
22122         (CFLAGS-nscd_getgr_r.c): Likewise.
22123         (CFLAGS-nscd_gethst_r.c): Likewise.
22124         (CFLAGS-nscd_getai.c): Likewise.
22125         (CFLAGS-nscd_initgroups.c): Likewise.
22126         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
22127         (CFLAGS-pause.c): Likewise.
22128         (CFLAGS-pread.c): Likewise.
22129         (CFLAGS-pread64.c): Likewise.
22130         (CFLAGS-pwrite.c): Likewise.
22131         (CFLAGS-pwrite64.c): Likewise.
22132         (CFLAGS-sleep.c): Likewise.
22133         (CFLAGS-wait.c): Likewise.
22134         (CFLAGS-waitid.c): Likewise.
22135         (CFLAGS-waitpid.c): Likewise.
22136         (CFLAGS-getopt.c): Likewise.
22137         (CFLAGS-wordexp.c): Likewise.
22138         (CFLAGS-sysconf.c): Likewise.
22139         (CFLAGS-pathconf.c): Likewise.
22140         (CFLAGS-fpathconf.c): Likewise.
22141         (CFLAGS-spawn.c): Likewise.
22142         (CFLAGS-spawnp.c): Likewise.
22143         (CFLAGS-spawni.c): Likewise.
22144         (CFLAGS-glob.c): Likewise.
22145         (CFLAGS-glob64.c): Likewise.
22146         (CFLAGS-getconf.c): Likewise.
22147         (CFLAGS-nanosleep.c): Likewise.
22148         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
22149         (CFLAGS-getpwent.c): Likewise.
22150         (CFLAGS-getpw.c): Likewise.
22151         (CFLAGS-fgetpwent_r.c): Likewise.
22152         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
22153         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
22154         (CFLAGS-mq_timedreceive.c): Likewise.
22155         (CFLAGS-mq_timedsend.c): Likewise.
22156         (CFLAGS-clock_nanosleep.c): Likewise.
22157         (CFLAGS-librt-cancellation.c): Likewise.
22158         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
22159         (CFLAGS-getspent.c): Likewise.
22160         (CFLAGS-fgetspent.c): Likewise.
22161         (CFLAGS-fgetspent_r.c): Likewise.
22162         (CFLAGS-putspent.c): Likewise.
22163         (CFLAGS-getspnam.c): Likewise.
22164         (CFLAGS-getspnam_r.c): Likewise.
22165         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
22166         (CFLAGS-sigsuspend.c): Likewise.
22167         (CFLAGS-sigtimedwait.c): Likewise.
22168         (CFLAGS-sigwait.c): Likewise.
22169         (CFLAGS-sigwaitinfo.c): Likewise.
22170         (CFLAGS-sigreturn.c): Likewise.
22171         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
22172         (CFLAGS-vfwprintf.c): Likewise.
22173         (CFLAGS-tmpfile.c): Likewise.
22174         (CFLAGS-tmpfile64.c): Likewise.
22175         (CFLAGS-tempname.c): Likewise.
22176         (CFLAGS-psignal.c): Likewise.
22177         (CFLAGS-vprintf.c): Likewise.
22178         (CFLAGS-cuserid.c): Likewise.
22179         (CFLAGS-errlist.c): Likewise.
22180         (CFLAGS-siglist.c): Likewise.
22181         (CFLAGS-scanf15.c): Likewise.
22182         (CFLAGS-scanf17.c): Likewise.
22183         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
22184         (CFLAGS-msort.c): Likewise.
22185         (CFLAGS-qsort.c): Likewise.
22186         (CFLAGS-system.c): Likewise.
22187         (CFLAGS-fmtmsg.c): Likewise.
22188         (CFLAGS-strfmon.c): Likewise.
22189         (CFLAGS-strfmon_l.c): Likewise.
22190         (CFLAGS-strfromd.c): Likewise.
22191         (CFLAGS-strfromf.c): Likewise.
22192         (CFLAGS-strfroml.c): Likewise.
22193         (CFLAGS-tst-bsearch.c): Likewise.
22194         (CFLAGS-tst-qsort.c): Likewise.
22195         (CFLAGS-tst-makecontext2.c): Likewise.
22196         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
22197         (CFLAGS-xnlm_prot.c): Likewise.
22198         (CFLAGS-xrstat.c): Likewise.
22199         (CFLAGS-xyppasswd.c): Likewise.
22200         (CFLAGS-xklm_prot.c): Likewise.
22201         (CFLAGS-xrex.c): Likewise.
22202         (CFLAGS-xsm_inter.c): Likewise.
22203         (CFLAGS-xmount.c): Likewise.
22204         (CFLAGS-xrusers.c): Likewise.
22205         (CFLAGS-xspray.c): Likewise.
22206         (CFLAGS-xnfs_prot.c): Likewise.
22207         (CFLAGS-xrquota.c): Likewise.
22208         (CFLAGS-xkey_prot.c): Likewise.
22209         (CFLAGS-auth_unix.c): Likewise.
22210         (CFLAGS-key_call.c): Likewise.
22211         (CFLAGS-pmap_rmt.c): Likewise.
22212         (CFLAGS-clnt_perr.c): Likewise.
22213         (CFLAGS-openchild.c): Likewise.
22214         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
22215         (CFLAGS-msgsnd.c): Likewise.
22216         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
22217         * time/Makefile (CFLAGS-tzfile.c): Likewise.
22218         (CFLAGS-tzset.c): Likewise.
22219         (CFLAGS-getdate.c): Likewise.
22220         (CFLAGS-test_time.c): Likewise.
22221         (CPPFLAGS-tst-tzname.c): Likewise.
22222         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
22223         (CFLAGS-zic.c): Likewise.
22224         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
22225         (CFLAGS-wcswidth.c): Likewise.
22226         (CFLAGS-wcstol.c): Likewise.
22227         (CFLAGS-wcstoul.c): Likewise.
22228         (CFLAGS-wcstoll.c): Likewise.
22229         (CFLAGS-wcstoull.c): Likewise.
22230         (CFLAGS-wcstod.c): Likewise.
22231         (CFLAGS-wcstold.c): Likewise.
22232         (CFLAGS-wcstof128.c): Likewise.
22233         (CFLAGS-wcstof.c): Likewise.
22234         (CFLAGS-wcstol_l.c): Likewise.
22235         (CFLAGS-wcstoul_l.c): Likewise.
22236         (CFLAGS-wcstoll_l.c): Likewise.
22237         (CFLAGS-wcstoull_l.c): Likewise.
22238         (CFLAGS-wcstod_l.c): Likewise.
22239         (CFLAGS-wcstold_l.c): Likewise.
22240         (CFLAGS-wcstof128_l.c): Likewise.
22241         (CFLAGS-wcstof_l.c): Likewise.
22242         (CPPFLAGS-tst-wchar-h.c): Likewise.
22243         (CPPFLAGS-wcstold_l.c): Likewise.
22245 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
22247         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
22249 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22250             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22252         * manual/tunables.texi (Hardware Capability Tunables): Document
22253         glibc.tune.cached_memopt.
22254         * sysdeps/powerpc/cpu-features.c: New file.
22255         * sysdeps/powerpc/cpu-features.h: New file.
22256         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
22257         _dl_powerpc_cpu_features.
22258         * sysdeps/powerpc/dl-tunables.list: New file.
22259         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
22260         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
22261         (INIT_ARCH): Initialize use_aligned_memopt.
22262         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
22263         IS_IN(rtld))]: Restrict dl_platform_init availability and
22264         initialize CPU features used by tunables.
22265         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
22266         Add memcpy-power8-cached.
22267         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
22268         __memcpy_power8_cached.
22269         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
22270         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
22271         New file.
22273 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
22275         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
22276         (CFLAGS-noinl-tester.c): Likewise.
22277         (CFLAGS-tst-strlen.c): Likewise.
22278         (CFLAGS-stratcliff.c): Likewise.
22279         (CFLAGS-test-ffs.c): Likewise.
22280         (CFLAGS-tst-inlcall.c): Likewise.
22281         (CFLAGS-tst-xbzero-opt.c): Likewise.
22282         (CFLAGS-memcpy.c): Likewise.
22283         (CFLAGS-wordcopy.c): Likewise.
22285 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22287         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
22288         Store r15 on stack and add cfi rule.
22289         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
22290         Likewise.
22292 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
22294         [BZ #22577]
22295         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
22296         call.
22298 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
22300         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22301         Add s_sinf-sse2 and s_sinf-fma.
22302         (CFLAGS-s_sinf-fma.c): New.
22303         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
22304         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22305         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22307 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
22309         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22311 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22313         [BZ #22568]
22314         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22315         part of result to imaginary part of argument if it is zero and the
22316         real part of the argument is not finite.
22317         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22318         of result to real part of argument if it is zero and the imaginary
22319         part of the argument is not finite.
22321 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
22323         [BZ #22524]
22324         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22325         and to the list of locales to be built for testing.
22326         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22327         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22328         and build the collation rules upon that.
22330 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22332         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22333         * manual/math.texi (Mathematics): Document support for _Float32.
22334         * math/Makefile (test-types): Add float32.
22335         * math/Versions (GLIBC_2.27): Add _Float32 functions.
22336         * stdlib/Versions (GLIBC_2.27): Likewise.
22337         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22338         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22339         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22340         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22341         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22342         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22343         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22344         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22345         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22346         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22347         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22348         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22349         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22350         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22351         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22352         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22353         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22354         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22355         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22356         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22357         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22358         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22359         Likewise.
22360         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22361         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22362         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22363         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22364         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22366         Likewise.
22367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22368         Likewise.
22369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22370         Likewise.
22371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22372         Likewise.
22374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22375         Likewise.
22376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22377         Likewise.
22378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22379         Likewise.
22380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22381         Likewise.
22382         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22383         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22384         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22385         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22386         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22387         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22388         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22389         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22390         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22391         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22392         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22393         Likewise.
22394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22395         Likewise.
22396         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22397         Likewise.
22398         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22399         Likewise.
22400         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22401         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22402         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22403         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22404         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22405         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22406         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22407         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22409 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22411         * stdlib/strtof.c: Include <bits/floatn.h>
22412         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22413         and later undefine as macro.  Define as weak alias if
22414         [!USE_WIDE_CHAR].
22415         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22416         and later undefine as macro.  Define as weak alias if
22417         [USE_WIDE_CHAR].
22418         * stdlib/strtof_l.c: Include <bits/floatn.h>
22419         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22420         and later undefine as macro.  Define as weak alias if
22421         [!USE_WIDE_CHAR].
22422         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22423         and later undefine as macro.  Define as weak alias if
22424         [USE_WIDE_CHAR].
22426         * stdlib/strfromf.c: Include <bits/floatn.h>.
22427         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22428         and later undefine as macro and define as weak alias.
22430         * math/test-float32.h: New file.
22432         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22433         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22434         (libm_alias_float_other_r): Create f32 alias.
22435         (libm_alias_float_r): Use semicolon before call to
22436         libm_alias_float_other_r.
22438         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22439         second argument to libm_alias_float_other.
22440         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22441         second argument to libm_alias_float_other.
22442         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22443         argument to libm_alias_float_other.
22445         [BZ #22561]
22446         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22447         real part of result for argument 0 + i * NaN.
22448         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22449         results for tests of 0 + i * NaN.
22451 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22453         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22455 2017-12-06  David S. Miller  <davem@davemloft.net>
22457         * sysdeps/sparc/fpu/libm-test-ulps: Update
22458         exp_{downward,towardzero,upward} ulps.
22460 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22462         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22463         variables static.
22465         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22466         (Y0_2D): Likewise.
22467         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22468         (Y0_2D): Likewise.
22469         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22470         (Y0_2D): Likewise.
22471         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22472         (Y0_2D): Likewise.
22474 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
22476         [BZ #22515]
22477         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22478         and to the list of locales to be built for testing.
22479         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22480         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22481         and build the collation rules upon that.
22483 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22485         * NEWS: Add sinf to list of optimized functions.
22487 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22489         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22490         (__HAVE_FLOAT32X): Likewise.
22491         * manual/math.texi (Mathematics): Document support for _Float64
22492         and _Float32x.
22493         * math/Makefile (test-types): Add float64 and float32x.
22494         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22495         functions.
22496         * stdlib/Versions (GLIBC_2.27): Likewise.
22497         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22498         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22499         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22500         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22501         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22502         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22503         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22504         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22505         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22506         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22507         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22508         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22509         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22510         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22511         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22512         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22513         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22514         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22515         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22516         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22517         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22518         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22519         Likewise.
22520         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22521         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22522         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22523         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22524         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22526         Likewise.
22527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22528         Likewise.
22529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22530         Likewise.
22531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22532         Likewise.
22533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22534         Likewise.
22535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22536         Likewise.
22537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22538         Likewise.
22539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22540         Likewise.
22541         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22542         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22543         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22544         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22545         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22546         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22547         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22548         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22549         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22550         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22552         Likewise.
22553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22554         Likewise.
22555         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22556         Likewise.
22557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22558         Likewise.
22559         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22560         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22561         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22562         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22563         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22564         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22565         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22566         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22568 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22570         * bits/floatn-common.h: Include <bits/long-double.h>.
22571         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22572         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22573         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22574         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22575         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22576         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22577         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22578         (__builtin_huge_valf64): Use __builtin_huge_vall.
22579         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22580         (__builtin_inff64): Use __builtin_infl.
22581         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22582         (__builtin_nanf64): Use __builtin_nanl.
22583         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22584         (__builtin_nansf64): Use __builtin_nansl.
22586 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
22587             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22588             Carlos O'Donnell  <carlos@redhat.com>
22590         * elf/dl-tunables.list: Add elision parameters.
22591         * manual/tunables.texi: Add entries about elision tunable.
22592         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22593         Add callback functions to dynamically enable/disable elision.
22594         Add multiple callbacks functions to set elision parameters.
22595         Deleted __libc_enable_secure check.
22596         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22597         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22598         * configure: Regenerated.
22599         * configure.ac: Option enable_lock_elision was deleted.
22600         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22601         * config.make.in: Remove references to enable_lock_elision.
22602         * manual/install.texi: Elision configure option was removed.
22603         * INSTALL: Regenerated to remove enable_lock_elision.
22604         * nptl/Makefile:
22605         Disable elision so it can verify error case for destroying a mutex.
22606         * sysdeps/powerpc/nptl/elide.h:
22607         Cleanup ENABLE_LOCK_ELISION check.
22608         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22609         * sysdeps/s390/configure: Regenerated.
22610         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22611         * nptl/tst-mutex8.c:
22612         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22613         * sysdeps/powerpc/powerpc32/sysdep.h:
22614         Deleted all ENABLE_LOCK_ELISION checks.
22615         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22616         * sysdeps/powerpc/sysdep.h: Likewise.
22617         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22618         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22619         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22620         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22621         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22622         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22623         enable-lock-elision.
22625 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22627         * stdlib/strtod.c: Include <bits/floatn.h>.
22628         (BUILD_DOUBLE): New macro.
22629         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22630         (strtof64): Define and later undefine as macro.  Define as weak
22631         alias if [!USE_WIDE_CHAR].
22632         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22633         (wcstof64): Define and later undefine as macro.  Define as weak
22634         alias if [USE_WIDE_CHAR].
22635         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22636         (strtof32x): Define and later undefine as macro.  Define as weak
22637         alias if [!USE_WIDE_CHAR].
22638         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22639         (wcstof32x): Define and later undefine as macro.  Define as weak
22640         alias if [USE_WIDE_CHAR].
22641         * stdlib/strtod_l.c: Include <bits/floatn.h>.
22642         (BUILD_DOUBLE): New macro.
22643         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22644         (strtof64_l): Define and later undefine as macro.  Define as weak
22645         alias if [!USE_WIDE_CHAR].
22646         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22647         (wcstof64_l): Define and later undefine as macro.  Define as weak
22648         alias if [USE_WIDE_CHAR].
22649         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22650         (strtof32x_l): Define and later undefine as macro.  Define as weak
22651         alias if [!USE_WIDE_CHAR].
22652         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22653         (wcstof32x_l): Define and later undefine as macro.  Define as weak
22654         alias if [USE_WIDE_CHAR].
22656 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22658         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22659         (reduced): Use ones as double instead of integer.
22661 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22663         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22665 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22667         * stdlib/strfromd.c: Include <bits/floatn.h>.
22668         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22669         and later undefine as macro and define as weak alias.
22670         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22671         Likewise.
22673         * math/test-float32x.h: New file.
22674         * math/test-float64.h: Likewise.
22676         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22677         (libm_alias_double_other_r_f64): New macro.
22678         (libm_alias_double_other_r_f32x): Likewise.
22679         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22680         libm_alias_double_other_r_f32x.
22681         (libm_alias_double_r): Use semicolon before call to
22682         libm_alias_double_other_r.
22683         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22684         <bits/floatn.h>.
22685         (libm_alias_double_other_r_f64): New macro.
22686         (libm_alias_double_other_r_f32x): Likewise.
22687         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22688         libm_alias_double_other_r_f32x.
22690 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
22692         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22693         int.
22694         (SINF_FUNC): Likewise.  Replace floor with simple casts.
22696 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
22698         [BZ #22517]
22699         * localedata/Makefile: Add et_EE.UTF-8 to test-input
22700         and to the list of locales to be built for testing.
22701         * localedata/et_EE.UTF-8.in: New file for testing the collation.
22702         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22703         and build the collation rules upon that.
22705 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
22707         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22708         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22709         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22710         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22711         instead of __insn__xxx.
22712         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22713         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22714         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22715         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22716         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22717         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22719 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22721         Linux: Implement interfaces for memory protection keys
22722         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22723         xsignal, xsysconf.
22724         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22725         * support/xunistd.h (xsysconf): Declare.
22726         * support/xraise.c: New file.
22727         * support/xsigaction.c: Likewise.
22728         * support/xsignal.c: Likewise.
22729         * support/xsysconf.c: Likewise.
22730         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22731         pkey_set, pkey_get, pkey_mprotect.
22732         [misc] (tests): Add tst-pkey.
22733         (tst-pkey): Link with -lpthread.
22734         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22735         pkey_free, pkey_set, pkey_get, pkey_mprotect.
22736         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22737         (PKEY_DISABLE_WRITE): Define.
22738         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22739         Declare.
22740         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22741         (SEGV_PKUERR): Add.
22742         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22743         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22744         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22745         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22746         Add.
22747         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22748         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22749         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22750         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22751         * sysdeps/unix/sysv/linux/**.abilist: Update.
22753 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22755         * support/tst-test_compare.c (subprocess): Use long long instead
22756         of long argument for consistent type width across 32-bit and
22757         64-bit architectures.
22758         (do_test): Adjust expected output.
22760 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22762         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22763         (cosf): Define using libm_alias_float.
22764         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22765         (fabsf): Define using libm_alias_float.
22766         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22767         (fmaf): Define using libm_alias_float.
22768         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22769         (rintf): Define using libm_alias_float.
22770         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22771         (sinf): Define using libm_alias_float.
22772         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22773         <libm-alias-float.h>.
22774         (modff): Define using libm_alias_float.
22775         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22776         <libm-alias-float.h>.
22777         (logbf): Define using libm_alias_float.
22778         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22779         <libm-alias-float.h>.
22780         (ceilf): Define using libm_alias_float.
22781         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22782         <libm-alias-float.h>.
22783         (copysignf): Define using libm_alias_float.
22784         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22785         <libm-alias-float.h>.
22786         (floorf): Define using libm_alias_float.
22787         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22788         <libm-alias-float.h>.
22789         (llrintf): Define using libm_alias_float.
22790         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22791         <libm-alias-float.h>.
22792         (llroundf): Define using libm_alias_float.
22793         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22794         <libm-alias-float.h>.
22795         (lrintf): Define using libm_alias_float.
22796         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22797         <libm-alias-float.h>.
22798         (lroundf): Define using libm_alias_float.
22799         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22800         <libm-alias-float.h>.
22801         (nearbyintf): Define using libm_alias_float.
22802         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22803         <libm-alias-float.h>.
22804         (rintf): Define using libm_alias_float.
22805         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22806         <libm-alias-float.h>.
22807         (roundf): Define using libm_alias_float.
22808         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22809         <libm-alias-float.h>.
22810         (truncf): Define using libm_alias_float.
22811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22812         Include <libm-alias-float.h>.
22813         (ceilf): Define using libm_alias_float.
22814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22815         Include <libm-alias-float.h>.
22816         (copysignf): Define using libm_alias_float.
22817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22818         Include <libm-alias-float.h>.
22819         (floorf): Define using libm_alias_float.
22820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22821         Include <libm-alias-float.h>.
22822         (llrintf): Define using libm_alias_float.
22823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22824         Include <libm-alias-float.h>.
22825         (llroundf): Define using libm_alias_float.
22826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22827         Include <libm-alias-float.h>.
22828         (logbf): Define using libm_alias_float.
22829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22830         Include <libm-alias-float.h>.
22831         (lrintf): Define using libm_alias_float.
22832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22833         Include <libm-alias-float.h>.
22834         (lroundf): Define using libm_alias_float.
22835         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22836         Include <libm-alias-float.h>.
22837         (modff): Define using libm_alias_float.
22838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22839         Include <libm-alias-float.h>.
22840         (roundf): Define using libm_alias_float.
22841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22842         Include <libm-alias-float.h>.
22843         (truncf): Define using libm_alias_float.
22844         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22845         <libm-alias-float.h>.
22846         (llrintf): Define using libm_alias_float.
22847         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22848         <libm-alias-float.h>.
22849         (llroundf): Define using libm_alias_float.
22850         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22851         <libm-alias-float.h>.
22852         (ceilf): Define using libm_alias_float.
22853         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22854         <libm-alias-float.h>.
22855         (floorf): Define using libm_alias_float.
22856         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22857         <libm-alias-float.h>.
22858         (llroundf): Define using libm_alias_float.
22859         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22860         <libm-alias-float.h>.
22861         (lroundf): Define using libm_alias_float.
22862         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22863         <libm-alias-float.h>.
22864         (roundf): Define using libm_alias_float.
22865         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22866         <libm-alias-float.h>.
22867         (truncf): Define using libm_alias_float.
22868         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22869         <libm-alias-float.h>.
22870         (copysignf): Define using libm_alias_float.
22871         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22872         <libm-alias-float.h>.
22873         (llrintf): Define using libm_alias_float.
22874         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22875         <libm-alias-float.h>.
22876         (llroundf): Define using libm_alias_float.
22877         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22878         <libm-alias-float.h>.
22879         (lrintf): Define using libm_alias_float.
22880         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22881         <libm-alias-float.h>.
22882         (lroundf): Define using libm_alias_float.
22883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22884         <libm-alias-float.h>.
22885         (ceilf): Define using libm_alias_float.
22886         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22887         <libm-alias-float.h>.
22888         (copysignf): Define using libm_alias_float.
22889         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22890         <libm-alias-float.h>.
22891         (cosf): Define using libm_alias_float.
22892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22893         <libm-alias-float.h>.
22894         (floorf): Define using libm_alias_float.
22895         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22896         <libm-alias-float.h>.
22897         (llrintf): Define using libm_alias_float.
22898         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22899         <libm-alias-float.h>.
22900         (llroundf): Define using libm_alias_float.
22901         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22902         <libm-alias-float.h>.
22903         (logbf): Define using libm_alias_float.
22904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22905         <libm-alias-float.h>.
22906         (modff): Define using libm_alias_float.
22907         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22908         <libm-alias-float.h>.
22909         (roundf): Define using libm_alias_float.
22910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22911         <libm-alias-float.h>.
22912         (sinf): Define using libm_alias_float.
22913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22914         <libm-alias-float.h>.
22915         (truncf): Define using libm_alias_float.
22916         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22917         <libm-alias-float.h>.
22918         (ceilf): Define using libm_alias_float.
22919         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22920         <libm-alias-float.h>.
22921         (copysignf): Define using libm_alias_float.
22922         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22923         <libm-alias-float.h>.
22924         (floorf): Define using libm_alias_float.
22925         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22926         <libm-alias-float.h>.
22927         (llrintf): Define using libm_alias_float.
22928         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22929         <libm-alias-float.h>.
22930         (llroundf): Define using libm_alias_float.
22931         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22932         <libm-alias-float.h>.
22933         (nearbyintf): Define using libm_alias_float.
22934         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22935         <libm-alias-float.h>.
22936         (rintf): Define using libm_alias_float.
22937         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22938         <libm-alias-float.h>.
22939         (roundf): Define using libm_alias_float.
22940         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22941         <libm-alias-float.h>.
22942         (truncf): Define using libm_alias_float.
22943         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22944         <libm-alias-float.h>.
22945         (ceilf): Define using libm_alias_float.
22946         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22947         <libm-alias-float.h>.
22948         (floorf): Define using libm_alias_float.
22949         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22950         <libm-alias-float.h>.
22951         (llroundf): Define using libm_alias_float.
22952         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22953         <libm-alias-float.h>.
22954         (roundf): Define using libm_alias_float.
22955         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22956         <libm-alias-float.h>.
22957         (truncf): Define using libm_alias_float.
22958         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22959         <libm-alias-float.h>.
22960         (copysignf): Define using libm_alias_float.
22961         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22962         <libm-alias-float.h>.
22963         (llrintf): Define using libm_alias_float.
22964         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22965         <libm-alias-float.h>.
22966         (llroundf): Define using libm_alias_float.
22967         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22968         <libm-alias-float.h>.
22969         (cosf): Define using libm_alias_float.
22970         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22971         <libm-alias-float.h>.
22972         (llrintf): Define using libm_alias_float.
22973         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22974         <libm-alias-float.h>.
22975         (llroundf): Define using libm_alias_float.
22976         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22977         <libm-alias-float.h>.
22978         (sinf): Define using libm_alias_float.
22980 2017-12-04  Florian Weimer  <fweimer@redhat.com>
22982         * support/check.h (TEST_COMPARE): Define.
22983         (support_test_compare_failure): Declare.
22984         * support/Makefile (libsupport-routines): Add
22985         support_test_compare_failure.
22986         (tests): Add tst-test_compare.
22987         * support /support_test_compare_failure.c: New file.
22988         * support/tst-test_compare.c: Likewise.
22990 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22992         [BZ #22527]
22993         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22994         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22995         available, this rewrite of the collation rules does reproduce
22996         the test file in the same order.
22998 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
23000         [BZ #10580]
23001         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
23002         digraphs in the month and day names. Using single code points for
23003         digraphs is deprecated.  While there are dedicated Unicode
23004         codepoints, for the digraphs, these are included for backwards
23005         compatibility and modern texts use a sequence of Basic Latin
23006         characters. See: https://www.unicode.org/faq/ligature_digraph.html
23007         This makes the month and day names agree exactly with CLDR now,
23008         CLDR does not use the single code points for the digraphs either.
23010 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
23012         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
23014 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
23016         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
23017         of floor.
23019 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23021         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
23022         Define only for libc.so.
23024 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
23026         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23027         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
23028         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
23029         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
23030         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23032 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23034         [BZ #5997]
23035         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
23037 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
23039         [BZ libc/19170]
23040         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
23041         PREINIT_FUNCTION_WEAK is nonzero.
23042         (gmon_initializer): New function.  Put procedure label for it in
23043         .init_array section.
23044         (_init): Don't call PREINIT_FUNCTION.
23045         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
23046         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
23047         value when map argument is null.
23049         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
23050         depi instruction from PIC pc-relative sequence.
23051         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
23052         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
23053         (elf_machine_load_address): Likewise.
23054         (elf_machine_runtime_setup): Likewise.
23056 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
23058         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
23059         <libm-alias-double.h>.
23060         (logb): Define using libm_alias_double.
23061         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
23062         <libm-alias-double.h>.
23063         (copysign): Define using libm_alias_double.
23064         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
23065         <libm-alias-double.h>.
23066         (llrint): Define using libm_alias_double.
23067         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
23068         <libm-alias-double.h>.
23069         (llround): Define using libm_alias_double.
23070         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
23071         <libm-alias-double.h>.
23072         (lrint): Define using libm_alias_double.
23073         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
23074         <libm-alias-double.h>.
23075         (lround): Define using libm_alias_double.
23076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23077         Include <libm-alias-double.h>.
23078         (copysign): Define using libm_alias_double.
23079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
23080         Include <libm-alias-double.h>.
23081         (llrint): Define using libm_alias_double.
23082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
23083         Include <libm-alias-double.h>.
23084         (llround): Define using libm_alias_double.
23085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
23086         <libm-alias-double.h>.
23087         (logb): Define using libm_alias_double.
23088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
23089         Include <libm-alias-double.h>.
23090         (lrint): Define using libm_alias_double.
23091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
23092         Include <libm-alias-double.h>.
23093         (lround): Define using libm_alias_double.
23094         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
23095         <libm-alias-double.h>.
23096         (llrint): Define using libm_alias_double.
23097         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23098         <libm-alias-double.h>.
23099         (llround): Define using libm_alias_double.
23100         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23101         <libm-alias-double.h>.
23102         (llround): Define using libm_alias_double.
23103         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23104         <libm-alias-double.h>.
23105         (lround): Define using libm_alias_double.
23106         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23107         <libm-alias-double.h>.
23108         (copysign): Define using libm_alias_double.
23109         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
23110         <libm-alias-double.h>.
23111         (llrint): Define using libm_alias_double.
23112         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
23113         <libm-alias-double.h>.
23114         (llround): Define using libm_alias_double.
23115         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
23116         <libm-alias-double.h>.
23117         (lrint): Define using libm_alias_double.
23118         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
23119         <libm-alias-double.h>.
23120         (lround): Define using libm_alias_double.
23121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
23122         <libm-alias-double.h>.
23123         (copysign): Define using libm_alias_double.
23124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
23125         <libm-alias-double.h>.
23126         (llrint): Define using libm_alias_double.
23127         (lrint): Likewise.
23128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
23129         <libm-alias-double.h>.
23130         (llround): Define using libm_alias_double.
23131         (lround): Likewise.
23132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
23133         <libm-alias-double.h>.
23134         (logb): Define using libm_alias_double.
23135         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
23136         <libm-alias-double.h>.
23137         (copysign): Define using libm_alias_double.
23138         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
23139         <libm-alias-double.h>.
23140         (llrint): Define using libm_alias_double.
23141         (lrint): Likewise.
23142         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
23143         <libm-alias-double.h>.
23144         (llround): Define using libm_alias_double.
23145         (lround): Likewise.
23146         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
23147         <libm-alias-double.h>.
23148         (llround): Define using libm_alias_double.
23149         (lround): Likewise.
23150         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
23151         <libm-alias-double.h>.
23152         (copysign): Define using libm_alias_double.
23153         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
23154         <libm-alias-double.h>.
23155         (llrint): Define using libm_alias_double.
23156         (lrint): Likewise.
23157         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
23158         <libm-alias-double.h>.
23159         (llround): Define using libm_alias_double.
23160         (lround): Likewise.
23161         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
23162         <libm-alias-double.h>.
23163         (llrint): Define using libm_alias_double.
23164         (lrint): Likewise.
23165         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
23166         <libm-alias-double.h>.
23167         (llround): Define using libm_alias_double.
23168         (lround): Likewise.
23170 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
23172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
23173         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
23174         compat symbol based on llround.
23176         * sysdeps/powerpc/power7/fpu/s_logb.c
23177         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
23178         symbol based on __logb, not on logb.
23179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
23180         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
23182         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23184         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
23185         (rint): Define using libm_alias_double.
23186         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
23187         <libm-alias-double.h>.
23188         (modf): Define using libm_alias_double.
23189         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
23190         <libm-alias-double.h>.
23191         (ceil): Define using libm_alias_double.
23192         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
23193         <libm-alias-double.h>.
23194         (floor): Define using libm_alias_double.
23195         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
23196         <libm-alias-double.h>.
23197         (nearbyint): Define using libm_alias_double.
23198         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
23199         <libm-alias-double.h>.
23200         (rint): Define using libm_alias_double.
23201         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
23202         <libm-alias-double.h>.
23203         (round): Define using libm_alias_double.
23204         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
23205         <libm-alias-double.h>.
23206         (trunc): Define using libm_alias_double.
23207         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
23208         <libm-alias-double.h>.
23209         (ceil): Define using libm_alias_double.
23210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
23211         Include <libm-alias-double.h>.
23212         (floor): Define using libm_alias_double.
23213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
23214         <libm-alias-double.h>.
23215         (modf): Define using libm_alias_double.
23216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
23217         Include <libm-alias-double.h>.
23218         (round): Define using libm_alias_double.
23219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
23220         Include <libm-alias-double.h>.
23221         (trunc): Define using libm_alias_double.
23222         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
23223         <libm-alias-double.h>.
23224         (ceil): Define using libm_alias_double.
23225         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
23226         <libm-alias-double.h>.
23227         (floor): Define using libm_alias_double.
23228         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
23229         <libm-alias-double.h>.
23230         (round): Define using libm_alias_double.
23231         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
23232         <libm-alias-double.h>.
23233         (trunc): Define using libm_alias_double.
23234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
23235         <libm-alias-double.h>.
23236         (ceil): Define using libm_alias_double.
23237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
23238         <libm-alias-double.h>.
23239         (floor): Define using libm_alias_double.
23240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
23241         <libm-alias-double.h>.
23242         (modf): Define using libm_alias_double.
23243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
23244         <libm-alias-double.h>.
23245         (round): Define using libm_alias_double.
23246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
23247         <libm-alias-double.h>.
23248         (trunc): Define using libm_alias_double.
23249         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
23250         <libm-alias-double.h>.
23251         (ceil): Define using libm_alias_double.
23252         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
23253         <libm-alias-double.h>.
23254         (floor): Define using libm_alias_double.
23255         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
23256         <libm-alias-double.h>.
23257         (nearbyint): Define using libm_alias_double.
23258         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
23259         <libm-alias-double.h>.
23260         (rint): Define using libm_alias_double.
23261         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
23262         <libm-alias-double.h>.
23263         (round): Define using libm_alias_double.
23264         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
23265         <libm-alias-double.h>.
23266         (trunc): Define using libm_alias_double.
23267         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
23268         <libm-alias-double.h>.
23269         (ceil): Define using libm_alias_double.
23270         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
23271         <libm-alias-double.h>.
23272         (floor): Define using libm_alias_double.
23273         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
23274         <libm-alias-double.h>.
23275         (round): Define using libm_alias_double.
23276         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
23277         <libm-alias-double.h>.
23278         (trunc): Define using libm_alias_double.
23280         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
23281         (fabs): Define using libm_alias_double.
23282         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
23283         (fma): Define using libm_alias_double.
23284         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
23285         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
23286         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
23287         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
23289 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23291         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
23293         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
23294         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
23295         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
23298         due redirect macro.
23300 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
23302         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
23304 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23306         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23307         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23308         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23309         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23312         (libm-sysdep_routines): Add s_nearbyintf-generic and
23313         s_nearbyint-generic.
23314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23315         New file.
23316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23318         Likewise.
23319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23320         Likewise.
23321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23322         file.
23323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23324         Likewise.
23326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23327         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23329         file.
23330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23332         Likewise.
23333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23338         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23340         file.
23341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23343         Likewise.
23344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23349         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23351         file.
23352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23354         Likewise.
23355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23360         (sysdep_calls): New rule.
23361         (sysdep_routines): Use sysdep_calls as base.
23362         (libm-sysdep_routines): Add generic rule for symbols shared with
23363         libc.  Add s_copysign-generic and s_copysign-generic objects.
23364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23365         New file.
23366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23368         Likewise.
23369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23373 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
23375         [BZ #22519]
23376         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23377         the list of locales to be built for testing.
23378         * localedata/is_IS.UTF-8.in: New file.
23379         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23380         on iso14651_t1.
23382 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
23384         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23385         <libm-alias-float.h>.
23386         (fabsf): Define using libm_alias_float.
23388 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23390         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23392 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23394         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23395         <libm-alias-float.h>.
23396         (fabsf): Define using libm_alias_float.
23397         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23398         <libm-alias-float.h>.
23399         (lrintf): Define using libm_alias_float.
23400         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23401         <libm-alias-float.h>.
23402         (rintf): Define using libm_alias_float.
23404         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23405         <libm-alias-double.h>.
23406         (fabs): Define using libm_alias_double.
23407         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23408         <libm-alias-double.h>.
23409         (lrint): Define using libm_alias_double.
23410         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23411         <libm-alias-double.h>.
23412         (rint): Define using libm_alias_double.
23414         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23415         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23416         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23417         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23418         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23419         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23420         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23421         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23422         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23423         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23424         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23425         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23426         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23427         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23428         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23429         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23430         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23431         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23432         s_atan_template.c.
23433         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23434         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23435         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23436         s_ceil_template.c.
23437         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23438         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23439         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23440         s_cos_template.c.
23441         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23442         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23443         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23444         s_expm1_template.c.
23445         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23446         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23447         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23448         s_fabs_template.c.
23449         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23450         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23451         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23452         s_floor_template.c.
23453         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23454         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23455         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23456         s_frexp_template.c.
23457         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23458         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23459         s_lrint_template.c.
23460         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23461         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23462         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23463         s_modf_template.c.
23464         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23465         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23466         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23467         s_nearbyint_template.c.
23468         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23469         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23470         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23471         s_remquo_template.c.
23472         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23473         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23474         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23475         s_rint_template.c.
23476         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23477         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23478         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23479         s_sin_template.c.
23480         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23481         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23482         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23483         s_sincos_template.c.
23484         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23485         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23486         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23487         s_tan_template.c.
23488         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23489         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23490         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23491         s_tanh_template.c.
23492         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23493         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23494         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23495         s_trunc_template.c.
23496         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23497         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23498         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23499         s_atan.c instead of including s_atan.c.
23500         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23501         s_atanf.c instead of including s_atanf.c.
23502         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23503         s_atanl.c instead of including s_atanl.c.
23504         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23505         instead of s_atan.c.
23506         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23507         instead of s_atanf.c.
23508         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23509         instead of s_atanl.c.
23511         * scripts/update-copyrights: Do not handle intl/plural.c
23512         specially.
23514 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
23516         [BZ #22432]
23517         * configure.ac (BISON): Require to be present.
23518         * configure: Regenerated.
23519         * intl/Makefile (generated): Add plural.c.
23520         [$(BISON) != no]: Make code unconditional.
23521         (plural.c): Change rule to $(objpfx)plural.c.
23522         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23523         * intl/plural.c: Remove.
23524         * manual/install.texi (Tools for Compilation): Document bison as
23525         required.
23526         * INSTALL: Regenerated.
23528 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23530         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23531         <libm-alias-double.h>.
23532         (llrint): Define using libm_alias_double.
23533         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23534         <libm-alias-float.h>.
23535         (llrintf): Define using libm_alias_float.
23536         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23537         <libm-alias-ldouble.h>.
23538         (llrintl): Define using libm_alias_ldouble.
23540         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23541         declare_mgen_alias instead of weak_alias.
23542         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23543         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23544         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23546 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23548         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23549         Add add_n-generic.
23550         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23551         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23552         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23554         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23555         Add submul_1-generic.
23556         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23557         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23558         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23560         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23561         Add addmul_1-generic.
23562         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23563         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23564         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23566         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23567         Add sub_n-generic.
23568         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23569         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23570         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23572         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23573         Add mul_1-generic.
23574         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23575         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23576         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23578 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23580         According to CLDR, collation rules for Serbian and Bosnian
23581         should be the same as for Croatian.
23583         [BZ #22534]
23584         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23585         and to the list of locales to be built for testing.
23586         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23587         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23588         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23589         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23591 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23593         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23594         to make test case pass.
23595         * localedata/hr_HR.UTF-8.in: Add more test strings.
23597 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23599         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23601 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23603         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23604         the list of locales to built for testing.
23605         * localedata/hr_HR.UTF-8.in: New file.
23607 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23609         [BZ #10580]
23610         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23611         iso14651_t1.
23612         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23613         CLDR (except use ligatures for the digraphs, CLDR does not use
23614         the ligatures), add first_workday, some fixes in the date and time
23615         formats.
23616         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23617         for Đ and đ.
23618         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23619         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23620         Add int_p_cs_precedes and int_n_cs_precedes.
23621         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23622         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23623         LC_MONETARY now).
23624         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23625         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23626         name_miss.
23627         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23628         and lang_lib. Change postal_fmt.
23630 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23632         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23633         <setjmp.h>.
23634         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23635         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23636         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23637         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23638         * sysdeps/generic/setjmpP.h: New file.
23639         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23640         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23641         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23642         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23643         Add jmp_buf-ssp.sym.
23644         (tests): Add tst-saved_mask-1.
23646 2017-11-30  Arjun Shankar  <arjun@redhat.com>
23648         [BZ #22375]
23649         CVE-2017-17426
23650         * malloc/malloc.c (__libc_malloc): Use checked_request2size
23651         instead of request2size.
23653 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23656         (__lllrint): Remove alias.
23657         (lllrint): Likewise.
23658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23659         (__lllrintf): Likewise.
23660         (lllrintf): Likewise.
23662         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23663         <libm-alias-float.h>.
23664         (copysignf): Define using libm_alias_float.
23665         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23666         <libm-alias-float.h>.
23667         (fabsf): Define using libm_alias_float.
23668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23669         Include <libm-alias-float.h>.
23670         (copysignf): Define using libm_alias_float.
23671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23672         <libm-alias-float.h>.
23673         (fabsf): Define using libm_alias_float.
23674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23675         <libm-alias-float.h>.
23676         (fdimf): Define using libm_alias_float.
23677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23678         <libm-alias-float.h>.
23679         (fmaf): Define using libm_alias_float.
23680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23681         <libm-alias-float.h>.
23682         (llrintf): Define using libm_alias_float.
23683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23684         Include <libm-alias-float.h>.
23685         (nearbyintf): Define using libm_alias_float.
23686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23687         <libm-alias-float.h>.
23688         (rintf): Define using libm_alias_float.
23689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23690         <libm-alias-float.h>.
23691         (llrintf): Define using libm_alias_float.
23692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23693         <libm-alias-float.h>.
23694         (lrintf): Define using libm_alias_float.
23695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23696         <libm-alias-float.h>.
23697         (nearbyintf): Define using libm_alias_float.
23698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23699         <libm-alias-float.h>.
23700         (rintf): Define using libm_alias_float.
23701         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23702         <libm-alias-float.h>.
23703         (ceilf): Define using libm_alias_float.
23704         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23705         <libm-alias-float.h>.
23706         (floorf): Define using libm_alias_float.
23707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23708         <libm-alias-float.h>.
23709         (fmaf): Define using libm_alias_float.
23710         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23711         <libm-alias-float.h>.
23712         (lrintf): Define using libm_alias_float.
23713         (llrintf): Likewise.
23714         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23715         <libm-alias-float.h>.
23716         (nearbyintf): Define using libm_alias_float.
23717         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23718         <libm-alias-float.h>.
23719         (rintf): Define using libm_alias_float.
23720         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23721         <libm-alias-float.h>.
23722         (truncf): Define using libm_alias_float.
23723         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23724         <libm-alias-float.h>.
23725         (copysignf): Define using libm_alias_float.
23726         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23727         <libm-alias-float.h>.
23728         (fabsf): Define using libm_alias_float.
23729         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23730         <libm-alias-float.h>.
23731         (lrintf): Define using libm_alias_float.
23732         (llrintf): Likewise.
23733         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23734         <libm-alias-float.h>.
23735         (nearbyintf): Define using libm_alias_float.
23736         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23737         <libm-alias-float.h>.
23738         (rintf): Define using libm_alias_float.
23740 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23742         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23743         <libm-alias-double.h>.
23744         (copysign): Define using libm_alias_double.
23745         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23746         <libm-alias-double.h>.
23747         (fabs): Define using libm_alias_double.
23748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23749         Include <libm-alias-double.h>.
23750         (copysign): Define using libm_alias_double.
23751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23752         <libm-alias-double.h>.
23753         (fabs): Define using libm_alias_double.
23754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23755         <libm-alias-double.h>.
23756         (fdim): Define using libm_alias_double.
23757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23758         <libm-alias-double.h>.
23759         (fma): Define using libm_alias_double.
23760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23761         <libm-alias-double.h>.
23762         (llrint): Define using libm_alias_double.
23763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23764         Include <libm-alias-double.h>.
23765         (nearbyint): Define using libm_alias_double.
23766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23767         <libm-alias-double.h>.
23768         (rint): Define using libm_alias_double.
23769         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23770         <libm-alias-double.h>.
23771         (fabs): Define using libm_alias_double.
23772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23773         <libm-alias-double.h>.
23774         (llrint): Define using libm_alias_double.
23775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23776         <libm-alias-double.h>.
23777         (nearbyint): Define using libm_alias_double.
23778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23779         <libm-alias-double.h>.
23780         (rint): Define using libm_alias_double.
23781         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23782         <libm-alias-double.h>.
23783         (ceil): Define using libm_alias_double.
23784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23785         <libm-alias-double.h>.
23786         (floor): Define using libm_alias_double.
23787         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23788         <libm-alias-double.h>.
23789         (fma): Define using libm_alias_double.
23790         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23791         <libm-alias-double.h>.
23792         (lrint): Define using libm_alias_double.
23793         (llrint): Likewise.
23794         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23795         <libm-alias-double.h>.
23796         (nearbyint): Define using libm_alias_double.
23797         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23798         <libm-alias-double.h>.
23799         (rint): Define using libm_alias_double.
23800         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23801         <libm-alias-double.h>.
23802         (trunc): Define using libm_alias_double.
23803         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23804         <libm-alias-double.h>.
23805         (copysign): Define using libm_alias_double.
23806         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23807         <libm-alias-double.h>.
23808         (fabs): Define using libm_alias_double.
23809         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23810         <libm-alias-double.h>.
23811         (lrint): Define using libm_alias_double.
23812         (llrint): Likewise.
23813         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23814         <libm-alias-double.h>.
23815         (nearbyint): Define using libm_alias_double.
23816         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23817         <libm-alias-double.h>.
23818         (rint): Define using libm_alias_double.
23820         [BZ #22229]
23821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23822         <math_ldbl_opt.h>.
23823         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23825         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23826         SPARC --disable-multi-arch glibc variants.
23828         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23829         <libm-alias-float.h>.
23830         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23831         if [SHARED].
23832         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23833         <libm-alias-float.h>.
23834         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23835         if [SHARED].
23836         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23837         <libm-alias-float.h>.
23838         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23839         if [SHARED].
23840         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23841         <libm-alias-float.h>.
23842         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23843         if [SHARED].
23844         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23845         <libm-alias-float.h>.
23846         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23847         if [SHARED].
23848         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23849         <libm-alias-float.h>.
23850         (ceilf): Define using libm_alias_float.
23851         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23852         <libm-alias-float.h>.
23853         (floorf): Define using libm_alias_float.
23854         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23855         <libm-alias-float.h>.
23856         (fmaf): Define using libm_alias_float.
23857         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23858         <libm-alias-float.h>.
23859         (nearbyintf): Define using libm_alias_float.
23860         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23861         <libm-alias-float.h>.
23862         (rintf): Define using libm_alias_float.
23863         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23864         <libm-alias-float.h>.
23865         (truncf): Define using libm_alias_float.
23866         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23867         (copysignf): Define using libm_alias_float.
23868         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23869         (cosf): Define using libm_alias_float.
23870         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23871         (fabsf): Define using libm_alias_float.
23872         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23873         (fmaxf): Define using libm_alias_float.
23874         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23875         (fminf): Define using libm_alias_float.
23876         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23877         (llrintf): Define using libm_alias_float.
23878         [!__ILP32__] (lrintf): Likewise.
23879         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23880         (sincosf): Define using libm_alias_float.
23881         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23882         (sinf): Define using libm_alias_float.
23883         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23884         (lrintf): Define using libm_alias_float.
23886         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23887         <libm-alias-double.h>.
23888         (atan): Define using libm_alias_double.
23889         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23890         <libm-alias-double.h>.
23891         (ceil): Define using libm_alias_double.
23892         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23893         <libm-alias-double.h>.
23894         (floor): Define using libm_alias_double.
23895         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23896         <libm-alias-double.h>.
23897         (fma): Define using libm_alias_double.
23898         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23899         <libm-alias-double.h>.
23900         (nearbyint): Define using libm_alias_double.
23901         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23902         <libm-alias-double.h>.
23903         (rint): Define using libm_alias_double.
23904         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23905         <libm-alias-double.h>.
23906         (sin): Define using libm_alias_double.
23907         (cos): Likewise.
23908         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23909         <libm-alias-double.h>.
23910         (tan): Define using libm_alias_double.
23911         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23912         <libm-alias-double.h>.
23913         (trunc): Define using libm_alias_double.
23914         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23915         (copysign): Define using libm_alias_double.
23916         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23917         (fabs): Define using libm_alias_double.
23918         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23919         (fmax): Define using libm_alias_double.
23920         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23921         (fmin): Define using libm_alias_double.
23922         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23923         (llrint): Define using libm_alias_double.
23924         [!__ILP32__] (lrint): Likewise.
23925         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23926         (lrint): Define using libm_alias_double.
23928 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23930         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23931         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23932         objects.
23933         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23934         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23935         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23936         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23937         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23938         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23940         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23941         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23942         objects.
23943         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23944         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23945         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23946         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23947         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23948         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23950         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23951         (libm-sysdep_routines): Add s_nearbyint-generic and
23952         s_nearbyintf-generic objects.
23953         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23954         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23955         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23956         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23957         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23958         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23960         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23961         Add s_finitef-generic and s_finite-generic objects.
23962         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23963         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23964         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23965         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23966         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23967         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23969         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23970         Add s_isinff-generic and s_isinf-generic objects.
23971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23972         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23973         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23974         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23978         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23979         Add s_isnanf-generic and s_isnan-generic objects.
23980         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23981         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23982         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23983         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23984         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23985         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23987         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23988         macro.
23989         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23990         rule.
23991         (sysdep_routines): Use sysdep_calls as base.
23992         (libm-sysdep_routines): Add generic rule for symbols shared with
23993         libc.  Add s_signbit-generic and s_signbitf-generic objects.
23994         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23995         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23996         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23997         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23998         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23999         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24001 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
24003         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
24004         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
24005         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
24006         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
24007         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
24008         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
24009         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
24010         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
24011         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
24012         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
24013         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
24014         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
24015         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
24016         libm_alias_float_r.
24017         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
24018         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
24019         (logf): Likewise.
24020         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
24021         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
24022         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
24023         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
24024         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
24025         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
24026         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
24027         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
24028         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
24029         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
24030         libm_alias_float.
24031         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
24032         (cosf): Likewise.
24033         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
24034         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
24035         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
24036         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
24037         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
24038         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
24039         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
24040         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
24041         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
24042         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
24043         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
24044         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
24045         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
24046         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
24047         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
24048         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
24049         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
24050         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
24051         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
24052         libm_alias_float.
24053         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
24054         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
24055         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
24056         * sysdeps/ia64/fpu/w_lgammaf_main.c
24057         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
24058         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
24060 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24061             Alexandre Oliva  <aoliva@redhat.com>
24063         [BZ #17750]
24064         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
24065         * localedata/fr_CA.UTF-8.in: New file with test data for backward
24066         accents sorting.
24067         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
24068         sorting.
24069         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
24070         * localedata/locales/de_DE (LC_COLLATE): Likewise.
24071         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
24072         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
24073         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
24074         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
24075         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
24076         instead of “ifdef DIACRIT_BACKWARD”.
24078 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24080         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
24081         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
24082         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
24083         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
24084         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
24085         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
24086         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
24087         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
24088         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
24089         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
24090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
24091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
24092         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
24093         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
24094         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
24095         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
24096         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
24097         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
24098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24099         ($(have-as-vis3) == yes): Remove conditional.
24100         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
24101         Likewise.
24102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
24103         file.
24104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
24105         file.
24106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
24107         file.
24108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
24109         file.
24110         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
24111         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
24112         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
24113         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
24114         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
24115         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
24116         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
24117         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
24119 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
24121         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
24122         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
24123         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
24124         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
24125         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
24126         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
24127         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
24128         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
24129         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
24130         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
24131         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
24132         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
24133         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
24134         libm_alias_double_r.
24135         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
24136         (log): Likewise.
24137         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
24138         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
24139         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
24140         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
24141         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
24142         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
24143         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
24144         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
24145         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
24146         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
24147         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
24148         libm_alias_double.
24149         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
24150         (cos): Likewise.
24151         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
24152         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
24153         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
24154         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
24155         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
24156         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
24157         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
24158         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
24159         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
24160         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
24161         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
24162         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
24163         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
24164         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
24165         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
24166         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
24167         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
24168         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
24169         libm_alias_double.
24170         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
24171         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
24172         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
24173         * sysdeps/ia64/fpu/w_lgamma_main.c
24174         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
24175         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
24177 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
24179         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
24180         address of $global$ into %dp register earlier.  Use pc-relative
24181         instruction sequence for PIC case.
24183 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24185         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
24186         (asinhf): Define using libm_alias_float.
24187         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
24188         (atanf): Define using libm_alias_float.
24189         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
24190         (cbrtf): Define using libm_alias_float.
24191         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
24192         (ceilf): Define using libm_alias_float.
24193         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
24194         (copysignf): Define using libm_alias_float.
24195         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
24196         (expm1f): Define using libm_alias_float.
24197         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
24198         (fabsf): Define using libm_alias_float.
24199         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
24200         (floorf): Define using libm_alias_float.
24201         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24202         (fmaxf): Define using libm_alias_float.
24203         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
24204         (fminf): Define using libm_alias_float.
24205         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
24206         (frexpf): Define using libm_alias_float.
24207         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
24208         (llrintf): Define using libm_alias_float.
24209         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
24210         (logbf): Define using libm_alias_float.
24211         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
24212         (lrintf): Define using libm_alias_float.
24213         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
24214         (nearbyintf): Define using libm_alias_float.
24215         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
24216         (remquof): Define using libm_alias_float.
24217         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
24218         (rintf): Define using libm_alias_float.
24219         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
24220         (truncf): Define using libm_alias_float.
24221         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
24222         <libm-alias-float.h>.
24223         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24224         if [SHARED].
24225         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
24226         <libm-alias-float.h>.
24227         (expf): Define using libm_alias_float, or libm_alias_float_other
24228         if [SHARED].
24229         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
24230         <libm-alias-float.h>.
24231         (log2f): Define using libm_alias_float, or libm_alias_float_other
24232         if [SHARED].
24233         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
24234         <libm-alias-float.h>.
24235         (logf): Define using libm_alias_float, or libm_alias_float_other
24236         if [SHARED].
24237         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
24238         <libm-alias-float.h>.
24239         (powf): Define using libm_alias_float, or libm_alias_float_other
24240         if [SHARED].
24241         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
24242         <libm-alias-float.h>.
24243         (cosf): Define using libm_alias_float.
24244         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
24245         <libm-alias-float.h>.
24246         (sincosf): Define using libm_alias_float.
24247         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
24248         <libm-alias-float.h>.
24249         (sinf): Define using libm_alias_float.
24250         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24251         (fmaxf): Define using libm_alias_float.
24252         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
24253         (fminf): Define using libm_alias_float.
24254         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24255         <libm-alias-float.h>.
24256         (fmaf): Define using libm_alias_float.
24258         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
24259         (asinh): Define using libm_alias_double.
24260         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
24261         (atan): Define using libm_alias_double.
24262         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
24263         (cbrt): Define using libm_alias_double.
24264         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
24265         (ceil): Define using libm_alias_double.
24266         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
24267         (copysign): Define using libm_alias_double.
24268         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
24269         (expm1): Define using libm_alias_double.
24270         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
24271         (fabs): Define using libm_alias_double.
24272         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
24273         (fdim): Define using libm_alias_double.
24274         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
24275         (floor): Define using libm_alias_double.
24276         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
24277         (fmax): Define using libm_alias_double.
24278         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
24279         (fmin): Define using libm_alias_double.
24280         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
24281         (frexp): Define using libm_alias_double.
24282         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
24283         (llrint): Define using libm_alias_double.
24284         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
24285         (logb): Define using libm_alias_double.
24286         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
24287         (lrint): Define using libm_alias_double.
24288         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
24289         (nearbyint): Define using libm_alias_double.
24290         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
24291         (remquo): Define using libm_alias_double.
24292         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
24293         (rint): Define using libm_alias_double.
24294         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
24295         (trunc): Define using libm_alias_double.
24296         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
24297         (fmax): Define using libm_alias_double.
24298         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
24299         (fmin): Define using libm_alias_double.
24300         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
24301         (fma): Define using libm_alias_double.
24303 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24305         [BZ #22370]
24306         * elf/dl-hwcaps.c (ROUND): Removed.
24307         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24308         and ELF_NOTE_NEXT_OFFSET.
24309         * elf/dl-load.c (ROUND): Removed.
24310         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24311         * elf/readelflib.c (ROUND): Removed.
24312         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24313         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24314         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24315         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24317 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24319         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24320         [!__fmaf] (fmaf): Define using libm_alias_float.
24322         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24323         [!__fma] (fma): Define using libm_alias_double.
24324         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24326 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24328         [BZ #22336]
24329         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24330         and implement the collation rules for cs from CLDR on top of that.
24331         * Makefile: Add cs_CZ.UTF-8 to test-input.
24332         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24334 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24336         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24338 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24339             Icarus Sparry  <icarus.w.sparry@intel.com>
24341         * benchtests/Makefile:Add BENCHSET to allow subsets of
24342         benchmarks to be run.
24343         * benchtests/README: Add documentation for: Running subsets of
24344         benchmarks.
24346 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24348         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24349         range of tests names.
24351         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24352         result from property and remove "max", min" and "mean" from
24353         required properties based on benchtests/bench-skeleton.c.
24355 2017-11-28  Florian Weimer  <fweimer@redhat.com>
24357         [BZ #20826]
24358         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24359         due to Internet requirement.
24360         * posix/Makefile (tests): Remove tst-getaddrinfo4,
24361         tst-getaddrinfo5.
24362         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24364 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24366         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24367         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24368         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24369         (sysdep_routines): Add memset-ultra1.
24370         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24371         file.
24372         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24373         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24374         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24375         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24376         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24377         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24378         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24379         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24381         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24382         file.
24383         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24384         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24385         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24386         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24387         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24388         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24389         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24390         macro.
24391         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24392         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24393         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24394         (sysdep_routines): Add memcpy-ultra1.
24395         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24396         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24398 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24400         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24401         (cfloat_versions): Take function argument without trailing 'f'.
24402         Call libm_alias_float_other.
24403         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24404         * sysdeps/alpha/fpu/cargf.c: Likewise.
24405         * sysdeps/alpha/fpu/cimagf.c: Likewise.
24406         * sysdeps/alpha/fpu/conjf.c: Likewise.
24407         * sysdeps/alpha/fpu/crealf.c: Likewise.
24408         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24409         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24410         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24411         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24412         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24413         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24414         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24415         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24416         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24417         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24418         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24419         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24420         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24421         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24422         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24423         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24424         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24425         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24426         (clog10f): Use libm_alias_float_other.
24427         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24428         (ceilf): Define using libm_alias_float.
24429         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24430         (copysignf): Define using libm_alias_float.
24431         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24432         (fabsf): Define using libm_alias_float.
24433         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24434         (floorf): Define using libm_alias_float.
24435         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24436         (fmaxf): Define using libm_alias_float.
24437         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24438         (fminf): Define using libm_alias_float.
24439         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24440         (lrintf): Define using libm_alias_float.
24441         (llrintf): Likewise.
24442         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24443         (lroundf): Define using libm_alias_float.
24444         (llroundf): Likewise.
24445         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24446         (rintf): Define using libm_alias_float.
24447         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24448         (truncf): Define using libm_alias_float.
24450         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24451         (ceilf): Define using libm_alias_float.
24452         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24453         (floorf): Define using libm_alias_float.
24454         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24455         (fmaf): Define using libm_alias_float.
24456         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24457         (fmaxf): Define using libm_alias_float.
24458         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24459         (fminf): Define using libm_alias_float.
24460         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24461         (llrintf): Define using libm_alias_float.
24462         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24463         (llroundf): Define using libm_alias_float.
24464         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24465         (lrintf): Define using libm_alias_float.
24466         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24467         (lroundf): Define using libm_alias_float.
24468         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24469         <libm-alias-float.h>.
24470         (nearbyintf): Define using libm_alias_float.
24471         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24472         (rintf): Define using libm_alias_float.
24473         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24474         (roundf): Define using libm_alias_float.
24475         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24476         (truncf): Define using libm_alias_float.
24478         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24479         (ceil): Define using libm_alias_double.
24480         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24481         (copysign): Define using libm_alias_double.
24482         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24483         (fabs): Define using libm_alias_double.
24484         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24485         (floor): Define using libm_alias_double.
24486         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24487         (fmax): Define using libm_alias_double.
24488         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24489         (fmin): Define using libm_alias_double.
24490         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24491         (lrint): Define using libm_alias_double.
24492         (llrint): Likewise.
24493         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24494         (lround): Define using libm_alias_double.
24495         (llround): Likewise.
24496         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24497         (rint): Define using libm_alias_double.
24498         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24499         (trunc): Define using libm_alias_double.
24501         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24502         (libm_alias_double_r): Add semicolon after weak_alias call.
24504 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24506         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24507         (ceil): Define using libm_alias_double.
24508         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24509         (floor): Define using libm_alias_double.
24510         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24511         (fma): Define using libm_alias_double.
24512         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24513         (fmax): Define using libm_alias_double.
24514         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24515         (fmin): Define using libm_alias_double.
24516         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24517         (llrint): Define using libm_alias_double.
24518         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24519         (llround): Define using libm_alias_double.
24520         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24521         (lrint): Define using libm_alias_double.
24522         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24523         (lround): Define using libm_alias_double.
24524         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24525         (nearbyint): Define using libm_alias_double.
24526         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24527         (rint): Define using libm_alias_double.
24528         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24529         (round): Define using libm_alias_double.
24530         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24531         (trunc): Define using libm_alias_double.
24533 2017-11-27  Florian Weimer  <fweimer@redhat.com>
24535         * sysdeps/unix/sysv/linux/mlock2.c: New file.
24536         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24537         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24538         (tests): Add tst-mlock2.
24539         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24540         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24541         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24542         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24543         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24544         for mlock.  Document mlock2.
24546 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24548         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24549         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24550         Likewise.
24551         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24552         Likewise.
24553         * sysdeps/x86/Makeconfig: New file.
24554         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24555         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24556         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24557         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24558         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24559         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24560         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24561         Likewise.
24562         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24563         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24564         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24565         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24566         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24567         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24568         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24569         * manual/math.texi (Mathematics): Document support for _Float64x.
24570         * math/Versions (GLIBC_2.27): Add _Float64x functions.
24571         * stdlib/Versions (GLIBC_2.27): Likewise.
24572         * wcsmbs/Versions (GLIBC_2.27): Likewise.
24573         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24574         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24575         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24576         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24577         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24578         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24579         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24580         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24581         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24582         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24583         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24585         Likewise.
24586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24587         Likewise.
24588         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24589         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24590         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24591         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24592         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24593         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24594         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24595         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24596         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24597         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24598         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24599         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24600         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24601         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24603 2017-11-27  Andreas Schwab  <schwab@suse.de>
24605         * elf/Makefile (dl-routines): Add dl-sort-maps.
24606         * elf/dl-sort-maps.c: New file.
24607         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24608         (_dl_sort_maps): Declare.
24609         * elf/dl-fini.c (_dl_sort_fini): Remove.
24610         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24611         * elf/dl-close.c (_dl_close_worker): Likewise.
24612         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24613         open-coding it.
24614         * elf/dl-open.c (dl_open_worker): Likewise.
24616 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
24618         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24619         using libm_alias_float128.
24620         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24621         Likewise.
24622         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24623         Likewise.
24624         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24625         (setpayloadsigf128): Likewise.
24626         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24627         Likewise.
24628         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24629         Likewise.
24631         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24632         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24633         -mfloat128 to CFLAGS.
24634         ($(foreach
24635         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24636         Likewise.
24637         (CFLAGS-libm-test-support-float64x.c): New variable.
24638         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24639         $(f128-loader-link) to gnulib-tests.
24641         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24642         (libm_alias_float128_other_r): If
24643         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24644         alias.
24645         (libm_alias_float128_r): Add semicolon after weak_alias call.
24646         * sysdeps/generic/libm-alias-ldouble.h
24647         (libm_alias_ldouble_other_r_f128): New macro.
24648         (libm_alias_ldouble_other_r_f64x): Likewise.
24649         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24650         and libm_alias_ldouble_other_r_f64x.
24651         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24652         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24653         (libm_alias_ldouble_other_r_f128): New macro.
24654         (libm_alias_ldouble_other_r_f64x): Likewise.
24655         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24656         and libm_alias_ldouble_other_r_f64x.
24658         * stdlib/strfroml.c: Always include <stdlib.h>.
24659         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24660         undefine as macro and define as weak alias.
24661         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24662         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24663         <stdlib.h>.
24664         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24665         Define and later undefine as macro and define as weak alias.
24667         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24668         Define and later undefine as macro.  Define as weak alias if
24669         [!USE_WIDE_CHAR].
24670         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24671         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24672         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24673         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24674         Define and later undefine as macro.  Define as weak alias if
24675         [!USE_WIDE_CHAR].
24676         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24677         Define and later undefine as macro.  Define as weak alias if
24678         [USE_WIDE_CHAR].
24679         * sysdeps/ieee754/float128/strtof128_l.c
24680         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24681         Define and later undefine as macro.  Define as weak alias if
24682         [!USE_WIDE_CHAR].
24683         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24684         Define and later undefine as macro.  Define as weak alias if
24685         [USE_WIDE_CHAR].
24686         * sysdeps/ieee754/ldbl-128/strtold_l.c
24687         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24688         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24689         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24690         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24691         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24692         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24693         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24694         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24695         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24696         * sysdeps/ieee754/ldbl-96/strtold_l.c
24697         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24698         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24699         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24700         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24702         * math/test-float64x.h: New file.
24703         * math/Makefile (type-float64x-yes): New variable.
24704         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24706         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24707         function-like macro.
24708         (min_of_type_): Likewise.
24709         (min_of_type_l): Likewise.
24710         (min_of_type_f128): Likewise.
24711         (min_of_type): Pass () as last argument of __MATH_TG.
24713         * stdlib/tst-strtod-round-skeleton.c
24714         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24715         headers.
24717         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24718         for combinations of long double with _Float64 and _Float64x.
24720         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24721         (__DECL_SIMD_cosf32): Likewise.
24722         (__DECL_SIMD_cosf64): Likewise.
24723         (__DECL_SIMD_cosf32x): Likewise.
24724         (__DECL_SIMD_cosf64x): Likewise.
24725         (__DECL_SIMD_cosf128x): Likewise.
24726         (__DECL_SIMD_sinf16): Likewise.
24727         (__DECL_SIMD_sinf32): Likewise.
24728         (__DECL_SIMD_sinf64): Likewise.
24729         (__DECL_SIMD_sinf32x): Likewise.
24730         (__DECL_SIMD_sinf64x): Likewise.
24731         (__DECL_SIMD_sinf128x): Likewise.
24732         (__DECL_SIMD_sincosf16): Likewise.
24733         (__DECL_SIMD_sincosf32): Likewise.
24734         (__DECL_SIMD_sincosf64): Likewise.
24735         (__DECL_SIMD_sincosf32x): Likewise.
24736         (__DECL_SIMD_sincosf64x): Likewise.
24737         (__DECL_SIMD_sincosf128x): Likewise.
24738         (__DECL_SIMD_logf16): Likewise.
24739         (__DECL_SIMD_logf32): Likewise.
24740         (__DECL_SIMD_logf64): Likewise.
24741         (__DECL_SIMD_logf32x): Likewise.
24742         (__DECL_SIMD_logf64x): Likewise.
24743         (__DECL_SIMD_logf128x): Likewise.
24744         (__DECL_SIMD_expf16): Likewise.
24745         (__DECL_SIMD_expf32): Likewise.
24746         (__DECL_SIMD_expf64): Likewise.
24747         (__DECL_SIMD_expf32x): Likewise.
24748         (__DECL_SIMD_expf64x): Likewise.
24749         (__DECL_SIMD_expf128x): Likewise.
24750         (__DECL_SIMD_powf16): Likewise.
24751         (__DECL_SIMD_powf32): Likewise.
24752         (__DECL_SIMD_powf64): Likewise.
24753         (__DECL_SIMD_powf32x): Likewise.
24754         (__DECL_SIMD_powf64x): Likewise.
24755         (__DECL_SIMD_powf128x): Likewise.
24757         * stdlib/Versions (libc): Move entries for wcstof128 and
24758         wcstof128_l to ....
24759         * wcsmbs/Versions (libc): ... here.
24760         Include <float128-abi.h>.
24762 2017-11-24  Florian Weimer  <fweimer@redhat.com>
24764         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24765         bits/mman-shared.h.
24766         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24767         <bits/mman-shared.h>.
24768         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24769         to ...
24770         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24771         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24772         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24773         <bits/mman-shared.h>.
24775 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24777         [BZ #22457]
24778         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24779         posix_memalign/free.
24780         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24782 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
24784         [BZ #22469]
24785         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24786         and implement the collation rules for pl from CLDR on top of that.
24787         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24788         of locales to be built for testing.
24789         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24791 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
24793         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24794         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24795         libm_alias_ldouble_other.
24796         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24797         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24798         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24799         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24800         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24801         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24802         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24803         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24804         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24805         libm_alias_ldouble_r.
24806         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24807         libm_alias_ldouble_other.
24808         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24809         (log10l): Likewise.
24810         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24811         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24812         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24813         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24814         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24815         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24816         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24817         (atan2l): Likewise.
24818         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24819         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24820         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24821         libm_alias_ldouble.
24822         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24823         (cosl): Likewise.
24824         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24825         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24826         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24827         (expl): Likewise.
24828         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24829         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24830         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24831         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24832         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24833         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24834         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24835         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24836         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24837         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24838         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24839         libm_alias_ldouble.
24840         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24841         libm_alias_ldouble_other.
24842         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24843         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24844         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24845         libm_alias_ldouble.
24846         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24847         libm_alias_ldouble_other.
24848         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24849         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24850         * sysdeps/ia64/fpu/w_lgammal_main.c
24851         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24852         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24854 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24856         * malloc/malloc.c (tcache_thread_shutdown): Rename from
24857         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
24858         alike.  Remove freeres marker.
24859         * malloc/arena.c (arena_thread_freeres): Call
24860         tcache_thread_shutdown.
24862 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24864         [BZ #22459]
24865         Export nscd hash function as __nss_hash.
24866         * include/nss.h (__nss_hash): Declare.
24867         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
24868         symbol.
24869         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24870         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24871         of __nscd_hash.
24872         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24873         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24874         * nss/Makefiles (routines): Add nss_hash.
24875         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24876         * nss/nss_hash.c: Rename from nis/nis_hash.c.
24877         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
24878         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24880 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24882         [BZ #22478]
24883         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24884         Return error code, not -1.
24885         * signal/tst-sigwait-eintr.c: New file.
24886         * signal/Makefile (tests): Add tst-sigwait-eintr.
24888 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24890         Linux: Add memfd_create system call wrapper
24891         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24892         tst-memfd_create.
24893         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24894         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24895         [__USE_GNU] (memfd_create): Declare.
24896         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24897         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24898         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24899         * sysdeps/unix/sysv/linux/**.abilist: Update.
24900         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24902 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24904         * localedata/gen-locale.sh: Fix typo in variable name.
24906         * resolv/res_debug.c (p_secstodate): Condition definition on
24907         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
24908         directly as __p_secstodate, and as a compat symbol.  Do not use
24909         libresolv_hidden_def.
24910         * resolv/resolv.h (p_secstodate): Remove macro and function
24911         declaration.
24912         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24913         using p_secstodate.
24914         * include/resolv.h (__p_secstodate): Do not use
24915         libresolv_hidden_proto.
24916         * resolv/Makefile (tests): Move tst-p_secstodate to ....
24917         (tests-internal): ... here.
24918         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
24919         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24920         and declare and use __p_secstodate and use compat_symbol_reference
24921         in that case.
24922         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24923         implementation returning 77.
24925         [BZ #22463]
24926         * resolv/res_debug.c: Include <libc-diag.h>.
24927         (p_secstodate): Assert time_t at least as wide as u_long.  On
24928         overflow, use integer seconds since the epoch as output, or use
24929         "<overflow>" as output and set errno to EOVERFLOW if integer
24930         seconds since the epoch would be 14 or more characters.
24931         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24932         for sprintf call.
24933         * resolv/tst-p_secstodate.c: New file.
24934         * resolv/Makefile (tests): Add tst-p_secstodate.
24935         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24937         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24938         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24939         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24941 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24943         * posix/regcomp.c (init_word_char): Add comments.
24945 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24947         [BZ #22447]
24948         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24949         strlen to compute length of ut_user and set trailing NUL byte of
24950         result explicitly.
24952 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
24954         [BZ #15537]
24955         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24956         using “copy "iso14651_t1"” and then implementing the
24957         collation rules for lv from CLDR on top of that.
24958         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24959         of locales to be built for testing.
24960         * lv_LV.UTF-8.in: New file with test data to test the Latvian
24961         sorting.
24963 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
24965         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24966         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24967         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24968         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24969         [__USE_MISC] (MADV_HWPOISON): New macro.
24970         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24972 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24974         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24975         -Wmissing-braces on GCC 4.9.
24977 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24979         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24980         * sysdeps/s390/s390-32/start.S (_start): Likewise
24981         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24982         (thread_start): Likewise.
24983         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24984         (thread_start): Likewise.
24985         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24986         (__makecontext_ret): Likewise.
24987         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24988         (__makecontext_ret): Likewise.
24990 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24992         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24993         __wcschrnul): Remove attribute_hidden.
24995 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24997         regex: don't assume uint64_t or uint32_t
24998         This avoids -Werror=overflow errors for 32-bit systems in
24999         the 64-bit case.  Problem reported by Joseph Myers in:
25000         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
25001         Also, when this code is used in Gnulib it ports to platforms
25002         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
25003         them, and on some 32-bit compilers there is no uint64_t.
25004         Problem reported by Gianluigi Tiesi in:
25005         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
25006         * posix/regcomp.c (init_word_char): Don't assume that the types
25007         uint64_t and uint32_t exist.  Adapted from Gnulib patch
25008         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
25009         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
25011 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25013         * sysdeps/aarch64/memset-reg.h: New file.
25014         * sysdeps/aarch64/memset.S: Use it.
25015         (__memset): Rename to MEMSET macro.
25016         [ZVA_MACRO]: Use zva_macro.
25017         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
25018         Add memset_generic and memset_falkor.
25019         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25020         (__libc_ifunc_impl_list): Add memset ifuncs.
25021         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
25022         local variable zva_size.
25023         * sysdeps/aarch64/multiarch/memset.c: New file.
25024         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
25025         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
25026         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
25027         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
25028         (DCZID_DZP_MASK): New macro.
25029         (DCZID_BS_MASK): Likewise.
25030         (init_cpu_features): Read and set zva_size.
25031         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
25032         (struct cpu_features): New member zva_size.
25034         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
25035         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
25036         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
25038         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
25039         backwards.  Fix timing computation.
25040         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
25041         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
25042         on memset by N at a time.  Fix timing computation.
25044 2017-11-20  Florian Weimer  <fweimer@redhat.com>
25046         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
25047         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
25049 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25051         manual: Document mprotect
25052         * manual/memory.texi (Memory Protection): New section.
25053         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
25054         documentation of PROT_* flags and reference the Memory Protection
25055         section instead.
25057 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25059         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
25060         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
25061         (Scatter-Gather): ... to here.  Remove misleading comment.
25063 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
25065         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
25066         style.
25068         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
25069         when /proc/<pid>/setgroups does not exist.
25071 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25073         * sysdeps/unix/sysv/linux/tst-ttyname.c
25074         (become_root_in_mount_ns): Remove.
25075         (do_in_chroot_1): Call support_enter_mount_namespace.
25076         (do_in_chroot_2): Likewise.
25077         (do_test): Call support_become_root early.
25079 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25081         * support/namespace.h (support_enter_mount_namespace): Declare.
25082         * support/support_enter_mount_namespace.c: New file.
25083         * support/Makefile (libsupport-routines): Add
25084         support_enter_mount_namespace.
25086 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25088         * support/temp_file.c (support_create_temp_directory): Use
25089         test_dir and do not rely on the presence of the XXXXXX suffix.
25090         * support/temp_file.h (support_create_temp_directory): Update
25091         comment.
25092         * support/tst-xreadlink.c (do_test): Adjust.
25093         * support/support_chroot.c (support_chroot_create): Likewise.
25095 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25097         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
25098         macro.
25099         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
25100         htm-no-suspend.
25102 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
25104         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25105         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25106         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25107         (ceill): Define using libm_alias_ldouble.
25108         * sysdeps/x86_64/fpu/s_copysignl.S: Include
25109         <libm-alias-ldouble.h>.
25110         (copysignl): Define using libm_alias_ldouble.
25111         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25112         (fabsl): Define using libm_alias_ldouble.
25113         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25114         (floorl): Define using libm_alias_ldouble.
25115         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25116         (fmaxl): Define using libm_alias_ldouble.
25117         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25118         (fminl): Define using libm_alias_ldouble.
25119         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25120         (llrintl): Define using libm_alias_ldouble.
25121         (lrintl): Likewise.
25122         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
25123         <libm-alias-ldouble.h>.
25124         (nearbyintl): Define using libm_alias_ldouble.
25125         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25126         (truncl): Define using libm_alias_ldouble.
25127         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
25128         <libm-alias-ldouble.h>.
25129         (lrintl): Define using libm_alias_ldouble.
25131         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25132         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25133         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
25134         (asinhl): Define using libm_alias_ldouble.
25135         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
25136         (atanl): Define using libm_alias_ldouble.
25137         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
25138         (cbrtl): Define using libm_alias_ldouble.
25139         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25140         (ceill): Define using libm_alias_ldouble.
25141         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
25142         (copysignl): Define using libm_alias_ldouble.
25143         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25144         (fabsl): Define using libm_alias_ldouble.
25145         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25146         (floorl): Define using libm_alias_ldouble.
25147         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25148         (fmaxl): Define using libm_alias_ldouble.
25149         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25150         (fminl): Define using libm_alias_ldouble.
25151         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
25152         (frexpl): Define using libm_alias_ldouble.
25153         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25154         (llrintl): Define using libm_alias_ldouble.
25155         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
25156         (logbl): Define using libm_alias_ldouble.
25157         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
25158         (lrintl): Define using libm_alias_ldouble.
25159         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
25160         (nearbyintl): Define using libm_alias_ldouble.
25161         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
25162         (nextafterl): Define using libm_alias_ldouble.
25163         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
25164         (remquol): Define using libm_alias_ldouble.
25165         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
25166         (rintl): Define using libm_alias_ldouble.
25167         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25168         (truncl): Define using libm_alias_ldouble.
25169         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25170         (fmaxl): Define using libm_alias_ldouble.
25171         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25172         (fminl): Define using libm_alias_ldouble.
25174         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
25175         to C syntax instead of availability and properties of types.
25176         * bits/floatn.h [!__ASSEMBLER]: Likewise.
25177         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
25178         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
25179         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
25180         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
25181         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
25183 2017-11-17  Florian Weimer  <fweimer@redhat.com>
25185         support_become_root: Enable file creation in namespaces.
25186         * support/support_become_root.c (setup_mapping): New function.
25187         (support_become_root): Call it.
25189 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
25191         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
25192         macro.
25194 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25196         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
25197         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
25199 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
25201         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
25203         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25204         version to 4.14.
25206 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25208         * INSTALL: Fix botched up regeneration.
25210         * NEWS: Update sourceare link to https.
25211         * configure.ac: Likewise.
25212         * crypt/md5test-giant.c: Likewise.
25213         * dlfcn/bug-atexit1.c: Likewise.
25214         * dlfcn/bug-atexit2.c: Likewise.
25215         * localedata/README: Likewise.
25216         * malloc/tst-mallocfork.c: Likewise.
25217         * manual/install.texi: Likewise.
25218         * nptl/tst-pthread-getattr.c: Likewise.
25219         * stdio-common/tst-fgets.c: Likewise.
25220         * stdio-common/tst-fwrite.c: Likewise.
25221         * sunrpc/Makefile: Likewise.
25222         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
25223         * wcsmbs/tst-mbrtowc2.c: Likewise.
25224         * configure: Regenerate.
25225         * INSTALL: Regenerate.
25227 2017-11-15  Martin Sebor  <msebor@redhat.com>
25229         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
25230         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
25231         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
25233 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
25235         [BZ #22145]
25236         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
25237         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
25239         [BZ #22145]
25240         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
25241         Defer is_pty check until end of the function.
25242         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25244         [BZ #22145]
25245         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
25246         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
25247         (ttyname): Likewise.
25248         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25249         (__ttyname_r): Likewise.
25251         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
25252         int to bool.
25254         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
25256         * manual/terminal.texi (Is It a Terminal):
25257         Mention ENODEV for ttyname and ttyname_r.
25259 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25261         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
25262         constant and macro.
25264         * sysdeps/unix/sysv/linux/bits/mman-linux.h
25265         [__USE_MISC] (MADV_WIPEONFORK): New macro.
25266         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25267         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25268         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
25269         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25271 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25273         * signal/sigrelse.c (sigrelse): Optimize implementation.
25275         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
25276         (__sigpause): Rely on __sigsuspend to implement single thread
25277         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
25279 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25281         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25282         kernel version to 4.14.
25284 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
25286         [BZ #22442]
25287         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
25288         Check if ifname is too long.
25290 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
25292         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
25294 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
25296         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
25297         was accidentally lost.
25299 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
25301         * localedata/locales/az_IR: Add standard copyright header.
25303 2017-11-15  Florian Weimer  <fweimer@redhat.com>
25305         [BZ #22439]
25306         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25307         not just the top one.  Output a new "subheaps" statistic.
25309 2017-11-15  Florian Weimer  <fweimer@redhat.com>
25311         [BZ #22408]
25312         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25313         under the per-arena lock.
25314         * malloc/Makefile (tests): Add tst-malloc_info.
25315         (tst-malloc_info): Link with libpthread.
25316         * malloc/tst-malloc_info.c: New file.
25318 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25320         [BZ #21660]
25321         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25322         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25323         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25324         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25325         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25326         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25327         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25328         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25329         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25330         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25331         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25332         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25333         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25334         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25335         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25336         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25337         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25338         (__floating_type): Likewise.
25339         (__real_integer_type): Likewise.
25340         (__complex_integer_type): Likewise.
25341         (__expr_is_real): Likewise.
25342         (__tgmath_real_type_sub): Likewise.
25343         (__tgmath_real_type): Likewise.
25344         (__tgmath_complex_type_sub): Likewise.
25345         (__tgmath_complex_type): Likewise.
25346         (__TGMATH_F128): Likewise.
25347         (__TGMATH_CF128): Likewise.
25348         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25349         new macros.
25350         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25351         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25352         Likewise.
25353         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25354         Likewise.
25355         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25356         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25357         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25358         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25359         Likewise.
25360         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25361         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25362         Likewise.
25363         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25364         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25365         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25366         Likewise.
25367         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25368         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25369         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25370         (cimag): Likewise.
25371         (creal): Likewise.
25373 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
25375         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25376         for stpncpy calls for GCC 8.
25377         (test_strncat): Disable -Wstringop-truncation warning for strncat
25378         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
25379         strncat call for GCC 7.
25380         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25381         calls for GCC 8.
25382         (test_memcmp): Use memcpy instead of strncpy for calls not copying
25383         trailing NUL.
25385         * string/bug-strncat1.c: Include <libc-diag.h>.
25386         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25388 2017-11-13  Claude Paroz  <claude@2xlibre.net>
25390         [BZ #22387]
25391         * localedata/locales/aa_DJ: Improved readibility by replacing
25392         <Uxxxx> sequences in the ASCII printable range by their ASCII
25393         character equivalents.
25394         * localedata/locales/aa_ER: Likewise.
25395         * localedata/locales/aa_ER@saaho: Likewise.
25396         * localedata/locales/aa_ET: Likewise.
25397         * localedata/locales/af_ZA: Likewise.
25398         * localedata/locales/agr_PE: Likewise.
25399         * localedata/locales/ak_GH: Likewise.
25400         * localedata/locales/am_ET: Likewise.
25401         * localedata/locales/anp_IN: Likewise.
25402         * localedata/locales/ar_AE: Likewise.
25403         * localedata/locales/ar_BH: Likewise.
25404         * localedata/locales/ar_DZ: Likewise.
25405         * localedata/locales/ar_EG: Likewise.
25406         * localedata/locales/ar_IN: Likewise.
25407         * localedata/locales/ar_IQ: Likewise.
25408         * localedata/locales/ar_JO: Likewise.
25409         * localedata/locales/ar_KW: Likewise.
25410         * localedata/locales/ar_LB: Likewise.
25411         * localedata/locales/ar_LY: Likewise.
25412         * localedata/locales/ar_MA: Likewise.
25413         * localedata/locales/ar_OM: Likewise.
25414         * localedata/locales/ar_QA: Likewise.
25415         * localedata/locales/ar_SA: Likewise.
25416         * localedata/locales/ar_SD: Likewise.
25417         * localedata/locales/ar_SS: Likewise.
25418         * localedata/locales/ar_SY: Likewise.
25419         * localedata/locales/ar_TN: Likewise.
25420         * localedata/locales/ar_YE: Likewise.
25421         * localedata/locales/as_IN: Likewise.
25422         * localedata/locales/ast_ES: Likewise.
25423         * localedata/locales/ayc_PE: Likewise.
25424         * localedata/locales/az_AZ: Likewise.
25425         * localedata/locales/az_IR: Likewise.
25426         * localedata/locales/be_BY: Likewise.
25427         * localedata/locales/be_BY@latin: Likewise.
25428         * localedata/locales/bem_ZM: Likewise.
25429         * localedata/locales/ber_DZ: Likewise.
25430         * localedata/locales/ber_MA: Likewise.
25431         * localedata/locales/bg_BG: Likewise.
25432         * localedata/locales/bhb_IN: Likewise.
25433         * localedata/locales/bho_IN: Likewise.
25434         * localedata/locales/bi_VU: Likewise.
25435         * localedata/locales/bn_BD: Likewise.
25436         * localedata/locales/bn_IN: Likewise.
25437         * localedata/locales/bo_CN: Likewise.
25438         * localedata/locales/bo_IN: Likewise.
25439         * localedata/locales/br_FR: Likewise.
25440         * localedata/locales/brx_IN: Likewise.
25441         * localedata/locales/bs_BA: Likewise.
25442         * localedata/locales/byn_ER: Likewise.
25443         * localedata/locales/ca_AD: Likewise.
25444         * localedata/locales/ca_ES: Likewise.
25445         * localedata/locales/ca_FR: Likewise.
25446         * localedata/locales/ca_IT: Likewise.
25447         * localedata/locales/ce_RU: Likewise.
25448         * localedata/locales/chr_US: Likewise.
25449         * localedata/locales/cmn_TW: Likewise.
25450         * localedata/locales/crh_UA: Likewise.
25451         * localedata/locales/cs_CZ: Likewise.
25452         * localedata/locales/csb_PL: Likewise.
25453         * localedata/locales/cv_RU: Likewise.
25454         * localedata/locales/cy_GB: Likewise.
25455         * localedata/locales/da_DK: Likewise.
25456         * localedata/locales/de_AT: Likewise.
25457         * localedata/locales/de_BE: Likewise.
25458         * localedata/locales/de_CH: Likewise.
25459         * localedata/locales/de_DE: Likewise.
25460         * localedata/locales/de_IT: Likewise.
25461         * localedata/locales/de_LI: Likewise.
25462         * localedata/locales/de_LU: Likewise.
25463         * localedata/locales/doi_IN: Likewise.
25464         * localedata/locales/dv_MV: Likewise.
25465         * localedata/locales/dz_BT: Likewise.
25466         * localedata/locales/el_CY: Likewise.
25467         * localedata/locales/el_GR: Likewise.
25468         * localedata/locales/en_AG: Likewise.
25469         * localedata/locales/en_AU: Likewise.
25470         * localedata/locales/en_BW: Likewise.
25471         * localedata/locales/en_CA: Likewise.
25472         * localedata/locales/en_DK: Likewise.
25473         * localedata/locales/en_GB: Likewise.
25474         * localedata/locales/en_HK: Likewise.
25475         * localedata/locales/en_IE: Likewise.
25476         * localedata/locales/en_IL: Likewise.
25477         * localedata/locales/en_IN: Likewise.
25478         * localedata/locales/en_NG: Likewise.
25479         * localedata/locales/en_NZ: Likewise.
25480         * localedata/locales/en_PH: Likewise.
25481         * localedata/locales/en_SG: Likewise.
25482         * localedata/locales/en_US: Likewise.
25483         * localedata/locales/en_ZA: Likewise.
25484         * localedata/locales/en_ZM: Likewise.
25485         * localedata/locales/en_ZW: Likewise.
25486         * localedata/locales/eo: Likewise.
25487         * localedata/locales/es_AR: Likewise.
25488         * localedata/locales/es_BO: Likewise.
25489         * localedata/locales/es_CL: Likewise.
25490         * localedata/locales/es_CO: Likewise.
25491         * localedata/locales/es_CR: Likewise.
25492         * localedata/locales/es_CU: Likewise.
25493         * localedata/locales/es_DO: Likewise.
25494         * localedata/locales/es_EC: Likewise.
25495         * localedata/locales/es_ES: Likewise.
25496         * localedata/locales/es_GT: Likewise.
25497         * localedata/locales/es_HN: Likewise.
25498         * localedata/locales/es_MX: Likewise.
25499         * localedata/locales/es_NI: Likewise.
25500         * localedata/locales/es_PA: Likewise.
25501         * localedata/locales/es_PE: Likewise.
25502         * localedata/locales/es_PR: Likewise.
25503         * localedata/locales/es_PY: Likewise.
25504         * localedata/locales/es_SV: Likewise.
25505         * localedata/locales/es_US: Likewise.
25506         * localedata/locales/es_UY: Likewise.
25507         * localedata/locales/es_VE: Likewise.
25508         * localedata/locales/et_EE: Likewise.
25509         * localedata/locales/eu_ES: Likewise.
25510         * localedata/locales/eu_ES@euro: Likewise.
25511         * localedata/locales/fa_IR: Likewise.
25512         * localedata/locales/ff_SN: Likewise.
25513         * localedata/locales/fi_FI: Likewise.
25514         * localedata/locales/fil_PH: Likewise.
25515         * localedata/locales/fo_FO: Likewise.
25516         * localedata/locales/fr_BE: Likewise.
25517         * localedata/locales/fr_CA: Likewise.
25518         * localedata/locales/fr_CH: Likewise.
25519         * localedata/locales/fr_FR: Likewise.
25520         * localedata/locales/fr_LU: Likewise.
25521         * localedata/locales/fur_IT: Likewise.
25522         * localedata/locales/fy_DE: Likewise.
25523         * localedata/locales/fy_NL: Likewise.
25524         * localedata/locales/ga_IE: Likewise.
25525         * localedata/locales/gd_GB: Likewise.
25526         * localedata/locales/gez_ER: Likewise.
25527         * localedata/locales/gez_ET: Likewise.
25528         * localedata/locales/gl_ES: Likewise.
25529         * localedata/locales/gu_IN: Likewise.
25530         * localedata/locales/gv_GB: Likewise.
25531         * localedata/locales/ha_NG: Likewise.
25532         * localedata/locales/hak_TW: Likewise.
25533         * localedata/locales/he_IL: Likewise.
25534         * localedata/locales/hi_IN: Likewise.
25535         * localedata/locales/hif_FJ: Likewise.
25536         * localedata/locales/hne_IN: Likewise.
25537         * localedata/locales/hr_HR: Likewise.
25538         * localedata/locales/hsb_DE: Likewise.
25539         * localedata/locales/ht_HT: Likewise.
25540         * localedata/locales/hu_HU: Likewise.
25541         * localedata/locales/hy_AM: Likewise.
25542         * localedata/locales/i18n: Likewise.
25543         * localedata/locales/ia_FR: Likewise.
25544         * localedata/locales/id_ID: Likewise.
25545         * localedata/locales/ig_NG: Likewise.
25546         * localedata/locales/ik_CA: Likewise.
25547         * localedata/locales/is_IS: Likewise.
25548         * localedata/locales/it_CH: Likewise.
25549         * localedata/locales/it_IT: Likewise.
25550         * localedata/locales/iu_CA: Likewise.
25551         * localedata/locales/ja_JP: Likewise.
25552         * localedata/locales/ka_GE: Likewise.
25553         * localedata/locales/kk_KZ: Likewise.
25554         * localedata/locales/kl_GL: Likewise.
25555         * localedata/locales/kn_IN: Likewise.
25556         * localedata/locales/ko_KR: Likewise.
25557         * localedata/locales/kok_IN: Likewise.
25558         * localedata/locales/ks_IN: Likewise.
25559         * localedata/locales/ks_IN@devanagari: Likewise.
25560         * localedata/locales/ku_TR: Likewise.
25561         * localedata/locales/kw_GB: Likewise.
25562         * localedata/locales/ky_KG: Likewise.
25563         * localedata/locales/lb_LU: Likewise.
25564         * localedata/locales/lg_UG: Likewise.
25565         * localedata/locales/li_BE: Likewise.
25566         * localedata/locales/li_NL: Likewise.
25567         * localedata/locales/lij_IT: Likewise.
25568         * localedata/locales/ln_CD: Likewise.
25569         * localedata/locales/lo_LA: Likewise.
25570         * localedata/locales/lt_LT: Likewise.
25571         * localedata/locales/lv_LV: Likewise.
25572         * localedata/locales/lzh_TW: Likewise.
25573         * localedata/locales/mag_IN: Likewise.
25574         * localedata/locales/mai_IN: Likewise.
25575         * localedata/locales/mg_MG: Likewise.
25576         * localedata/locales/mhr_RU: Likewise.
25577         * localedata/locales/mi_NZ: Likewise.
25578         * localedata/locales/mk_MK: Likewise.
25579         * localedata/locales/ml_IN: Likewise.
25580         * localedata/locales/mn_MN: Likewise.
25581         * localedata/locales/mni_IN: Likewise.
25582         * localedata/locales/mr_IN: Likewise.
25583         * localedata/locales/ms_MY: Likewise.
25584         * localedata/locales/mt_MT: Likewise.
25585         * localedata/locales/my_MM: Likewise.
25586         * localedata/locales/nan_TW: Likewise.
25587         * localedata/locales/nan_TW@latin: Likewise.
25588         * localedata/locales/nb_NO: Likewise.
25589         * localedata/locales/nds_DE: Likewise.
25590         * localedata/locales/nds_NL: Likewise.
25591         * localedata/locales/ne_NP: Likewise.
25592         * localedata/locales/nhn_MX: Likewise.
25593         * localedata/locales/niu_NU: Likewise.
25594         * localedata/locales/niu_NZ: Likewise.
25595         * localedata/locales/nl_AW: Likewise.
25596         * localedata/locales/nl_BE: Likewise.
25597         * localedata/locales/nl_NL: Likewise.
25598         * localedata/locales/nn_NO: Likewise.
25599         * localedata/locales/nr_ZA: Likewise.
25600         * localedata/locales/nso_ZA: Likewise.
25601         * localedata/locales/oc_FR: Likewise.
25602         * localedata/locales/om_ET: Likewise.
25603         * localedata/locales/om_KE: Likewise.
25604         * localedata/locales/or_IN: Likewise.
25605         * localedata/locales/os_RU: Likewise.
25606         * localedata/locales/pa_IN: Likewise.
25607         * localedata/locales/pa_PK: Likewise.
25608         * localedata/locales/pap_AW: Likewise.
25609         * localedata/locales/pap_CW: Likewise.
25610         * localedata/locales/pl_PL: Likewise.
25611         * localedata/locales/ps_AF: Likewise.
25612         * localedata/locales/pt_BR: Likewise.
25613         * localedata/locales/pt_PT: Likewise.
25614         * localedata/locales/quz_PE: Likewise.
25615         * localedata/locales/raj_IN: Likewise.
25616         * localedata/locales/ro_RO: Likewise.
25617         * localedata/locales/ru_RU: Likewise.
25618         * localedata/locales/ru_UA: Likewise.
25619         * localedata/locales/rw_RW: Likewise.
25620         * localedata/locales/sa_IN: Likewise.
25621         * localedata/locales/sat_IN: Likewise.
25622         * localedata/locales/sc_IT: Likewise.
25623         * localedata/locales/sd_IN: Likewise.
25624         * localedata/locales/sd_IN@devanagari: Likewise.
25625         * localedata/locales/se_NO: Likewise.
25626         * localedata/locales/sgs_LT: Likewise.
25627         * localedata/locales/shs_CA: Likewise.
25628         * localedata/locales/si_LK: Likewise.
25629         * localedata/locales/sid_ET: Likewise.
25630         * localedata/locales/sk_SK: Likewise.
25631         * localedata/locales/sl_SI: Likewise.
25632         * localedata/locales/sm_WS: Likewise.
25633         * localedata/locales/so_DJ: Likewise.
25634         * localedata/locales/so_ET: Likewise.
25635         * localedata/locales/so_KE: Likewise.
25636         * localedata/locales/so_SO: Likewise.
25637         * localedata/locales/sq_AL: Likewise.
25638         * localedata/locales/sq_MK: Likewise.
25639         * localedata/locales/sr_ME: Likewise.
25640         * localedata/locales/sr_RS: Likewise.
25641         * localedata/locales/sr_RS@latin: Likewise.
25642         * localedata/locales/ss_ZA: Likewise.
25643         * localedata/locales/st_ZA: Likewise.
25644         * localedata/locales/sv_FI: Likewise.
25645         * localedata/locales/sv_SE: Likewise.
25646         * localedata/locales/sw_KE: Likewise.
25647         * localedata/locales/sw_TZ: Likewise.
25648         * localedata/locales/szl_PL: Likewise.
25649         * localedata/locales/ta_IN: Likewise.
25650         * localedata/locales/ta_LK: Likewise.
25651         * localedata/locales/tcy_IN: Likewise.
25652         * localedata/locales/te_IN: Likewise.
25653         * localedata/locales/tg_TJ: Likewise.
25654         * localedata/locales/th_TH: Likewise.
25655         * localedata/locales/the_NP: Likewise.
25656         * localedata/locales/ti_ER: Likewise.
25657         * localedata/locales/ti_ET: Likewise.
25658         * localedata/locales/tig_ER: Likewise.
25659         * localedata/locales/tk_TM: Likewise.
25660         * localedata/locales/tl_PH: Likewise.
25661         * localedata/locales/tn_ZA: Likewise.
25662         * localedata/locales/to_TO: Likewise.
25663         * localedata/locales/tpi_PG: Likewise.
25664         * localedata/locales/tr_CY: Likewise.
25665         * localedata/locales/tr_TR: Likewise.
25666         * localedata/locales/ts_ZA: Likewise.
25667         * localedata/locales/tt_RU: Likewise.
25668         * localedata/locales/tt_RU@iqtelif: Likewise.
25669         * localedata/locales/ug_CN: Likewise.
25670         * localedata/locales/uk_UA: Likewise.
25671         * localedata/locales/unm_US: Likewise.
25672         * localedata/locales/ur_IN: Likewise.
25673         * localedata/locales/ur_PK: Likewise.
25674         * localedata/locales/uz_UZ: Likewise.
25675         * localedata/locales/uz_UZ@cyrillic: Likewise.
25676         * localedata/locales/ve_ZA: Likewise.
25677         * localedata/locales/vi_VN: Likewise.
25678         * localedata/locales/wa_BE: Likewise.
25679         * localedata/locales/wae_CH: Likewise.
25680         * localedata/locales/wal_ET: Likewise.
25681         * localedata/locales/wo_SN: Likewise.
25682         * localedata/locales/xh_ZA: Likewise.
25683         * localedata/locales/yi_US: Likewise.
25684         * localedata/locales/yo_NG: Likewise.
25685         * localedata/locales/yue_HK: Likewise.
25686         * localedata/locales/yuw_PG: Likewise.
25687         * localedata/locales/zh_CN: Likewise.
25688         * localedata/locales/zh_HK: Likewise.
25689         * localedata/locales/zh_SG: Likewise.
25690         * localedata/locales/zh_TW: Likewise.
25691         * localedata/locales/zu_ZA: Likewise.
25693 2017-11-13  Florian Weimer  <fweimer@redhat.com>
25695         * support/next_to_fault.h, support/next_to_fault.c: New files.
25696         * support/Makefile (libsupport-routines): Add next_to_fault.
25697         * resolv/tst-inet_pton.c (struct next_to_fault)
25698         (next_to_fault_allocate, next_to_fault_free): Remove.
25699         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25701 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
25703         * elf/dl-support.c: Include <dl-procruntime.c>.
25704         * include/link.h: Include <link_map.h>.
25705         * sysdeps/generic/dl-procruntime.c: New file.
25706         * sysdeps/generic/link_map.h: Likewise.
25707         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25708         the writable ld.so namespace.
25710 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25712         timezone: pacify GCC -Wstringop-truncation
25713         Problem reported by Martin Sebor in:
25714         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25715         * timezone/zic.c (writezone): Use memcpy, not strncpy.
25717 2017-11-12  Florian Weimer  <fweimer@redhat.com>
25719         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25720         tst-xreadlink.
25721         (tests): Add tst-xreadlink.
25722         * support/support.h (xstrndup): Declare.
25723         * support/xunistd.h (xunlink, xreadlink): Declare.
25724         * support/temp_file.h (support_create_temp_directory): Declare.
25725         * support/temp_file.c (support_create_temp_directory): New function.
25726         * support/support_chroot.c (support_chroot_create): Use it.
25727         * support/xreadlink.c: New file.
25728         * support/xstrndup.c: Likewise.
25729         * support/xunlink.c: Likewise.
25730         * support/tst-xreadlink.c: Likewise.
25732 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
25734         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25736 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25738         [BZ #22409]
25739         [BZ #22412]
25740         * resolv/res_comp.c (printable_string, binary_hnok)
25741         (binary_leading_dash): New functions.
25742         (res_hnok): Reimplement using these functions and ns_name_pton.
25743         (res_ownok): Likewise.
25744         (res_mailok): Reimplement using printable_string, ns_name_pton and
25745         binary_hnok.
25746         (res_dnok): Reimplement using printable_string and ns_name_pton.
25747         * resolv/tst-res_hnok.c (tests): Add additional tests.
25748         (LETTERDIGITS, PRINTABLE): Define.
25749         (do_test): Adjust one_char results.
25751 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25753         [BZ #22413]
25754         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25755         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25757 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25759         * resolv/tst-ns_name_pton.c: New file.
25760         * resolv/Makefile (tests): Add tst-ns_name_pton.
25761         (tst-ns_name_pton): Link against libresolv.
25763 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25765         * resolv/tst-res_hnok.c: New file.
25766         * resolv/Makefile (tests): Add tst-res_hnok.
25767         (tst-res_hnok): Link against libresolv.
25769 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25771         * resolv/tst-resolv-network.c: Use test framework instead explicit
25772         main function.
25774 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25776         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25777         <jmp_buf-macros.h>.
25778         [!_ISOMAC] (STR_HELPER): New.
25779         [!_ISOMAC] (STR): Likewise.
25780         [!_ISOMAC] (TEST_SIZE): Likewise.
25781         [!_ISOMAC] (TEST_ALIGN): Likewise.
25782         [!_ISOMAC] (TEST_OFFSET): Likewise.
25783         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25784         field offsets of jmp_buf as well as sigjmp_buf.
25785         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25786         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25787         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25788         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25789         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25790         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25791         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25792         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25793         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25794         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25795         Likewise.
25796         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25797         Likewise.
25798         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25800         Likewise.
25801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25802         Likewise.
25803         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25804         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25805         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25806         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25807         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25808         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25809         Likewise.
25810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25811         Likewise.
25812         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25813         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25814         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25816 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
25818         * include/float.h
25819         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25820         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25821         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25822         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25823         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25824         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25825         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25826         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25827         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25828         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25829         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25830         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25831         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25832         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25833         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25834         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25835         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25836         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25837         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25838         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25839         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25840         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25841         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25842         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25843         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25844         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25845         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25846         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25847         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25848         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25849         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25850         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25851         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25852         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25853         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25854         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25855         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25856         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25857         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25858         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25859         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25860         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25861         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25862         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25863         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25864         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25865         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25866         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25867         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25868         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25869         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25870         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25871         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25872         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25873         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25874         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25875         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25876         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25877         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25878         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25879         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25880         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25881         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25882         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25883         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25884         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25885         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25886         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25887         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25888         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25889         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25890         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25891         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25892         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25893         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25894         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25895         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25896         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25897         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25898         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25899         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25900         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25901         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25902         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25903         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25904         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25905         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25906         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25908         * stdlib/tst-strtod.h (F16): New macro.
25909         (F32): Likewise.
25910         (F64): Likewise.
25911         (F32X): Likewise.
25912         (F64X): Likewise.
25913         (F128X): Likewise.
25914         (IF_FLOAT16): Likewise.
25915         (IF_FLOAT32): Likewise.
25916         (IF_FLOAT64): Likewise.
25917         (IF_FLOAT32X): Likewise.
25918         (IF_FLOAT64X): Likewise.
25919         (IF_FLOAT128X): Likewise.
25920         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25921         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25922         (STRTOD_TEST_FOREACH): Likewise.
25923         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25924         (CHOOSE_f64): Likewise.
25925         (CHOOSE_f32x): Likewise.
25926         (CHOOSE_f64x): Likewise.
25928 2017-11-07  Andreas Schwab  <schwab@suse.de>
25930         * nptl/Makefile (tests-internal): Remove tst-typesizes.
25932 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
25934         [BZ #22403]
25935         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25936         to be escaped.
25937         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25938         to be escaped.
25940 2017-11-07  Claude Paroz  <claude@2xlibre.net>
25942         [BZ #22403]
25943         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25944         to be escaped.
25945         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25946         to be escaped.
25947         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25948         to be escaped.
25950 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25952         [BZ #22298]
25953         * nptl/allocatestack.c (allocate_stack): Check if
25954         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25955         __PTHREAD_MUTEX_HAVE_PREV is defined.
25956         * nptl/descr.h (pthread): Likewise.
25957         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25958         Likewise.
25959         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25960         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25961         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25962         * sysdeps/nptl/bits/thread-shared-types.h
25963         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25964         defines.
25965         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25966         of __WORDSIZE for internal layout.
25967         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25968         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25969         instead of __WORDSIZE whether to use an union for __spins and __list
25970         fields.
25971         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25972         case.
25973         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25974         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25975         defines.
25976         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25977         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25978         Likewise.
25979         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25980         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25981         Likewise.
25982         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25983         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25984         Likewise.
25985         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25986         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25987         Likewise.
25988         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25989         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25990         Likewise.
25991         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25992         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25993         Likewise.
25994         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25995         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25996         Likewise.
25997         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25998         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25999         Likewise.
26000         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
26001         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26002         Likewise.
26003         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
26004         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26005         Likewise.
26006         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
26007         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26008         Likewise.
26009         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
26010         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26011         Likewise.
26012         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
26013         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26014         Likewise.
26015         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
26016         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26017         Likewise.
26019         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
26020         New macros.
26021         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
26022         checks for expected input type size.
26023         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
26024         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
26025         Likewise.
26026         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
26027         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
26028         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
26029         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
26030         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
26031         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
26032         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
26033         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
26034         superflous runtime assert check.
26035         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
26036         Likewise.
26037         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
26038         Likewise.
26039         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
26040         Likewise.
26041         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
26042         Likewise.
26043         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
26044         Likewise.
26045         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
26046         Likewise.
26047         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
26048         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
26049         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
26050         Likewise.
26051         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
26052         Likewise.
26053         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
26054         Likewise.
26055         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
26056         Likewise.
26057         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
26058         Likewise.
26059         * nptl/pthread_attr_setinheritsched.c
26060         (__pthread_attr_setinheritsched): Likewise.
26061         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
26062         Likewise.
26063         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
26064         Likewise.
26065         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
26066         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
26067         __old_pthread_attr_setstack): Likewise.
26068         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
26069         Likewise.
26070         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
26071         Likewise.
26072         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
26073         Likewise.
26074         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
26075         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
26076         Likewise.
26077         * nptl/tst-typesizes.c: Remove file.
26079         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
26080         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
26081         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
26082         checks for internal pthread_mutex_t offsets.
26083         * sysdeps/aarch64/nptl/pthread-offsets.h
26084         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
26085         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
26086         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
26087         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
26088         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
26089         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
26090         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
26091         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
26092         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
26093         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
26094         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
26095         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
26096         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
26097         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
26098         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
26099         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
26100         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
26101         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
26103 2017-11-07  Florian Weimer  <fweimer@redhat.com>
26105         * bits/mman-linux.h: Move ...
26106         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
26107         comment.
26108         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
26109         outdated comment.
26111 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26113         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
26114         Redefine STRNLEN as __strnlen_power8.
26116 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26118         * signal/sighold.c (sighold): Optimize implementation.
26120         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
26121         __NR_rt_sigqueueinfo.
26123         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26124         __sigtimedwait.
26125         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
26126         assume __NR_rt_sigtimedwait.
26127         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
26128         and add LIBC_CANCEL_HANDLED for cancellation marking.
26129         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
26131         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26132         (sysdeps_routines): Add memchr_noneon.
26133         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
26134         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
26135         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
26136         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
26137         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
26138         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
26139         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
26141         * sysdeps/arm/arm-ifunc.h: New file.
26142         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
26143         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
26144         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
26145         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
26146         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
26147         (__memcpy_neon): Avoid create hidden alias.
26148         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
26149         (__memcpy_vfp): Likewise.
26150         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26151         (sysdep_routines): Add memcpy_arm.
26152         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
26154 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
26156         [BZ #22362]
26157         * Makerules (make-link-multidir): New.
26158         * config.make.in (multidir): New.
26159         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
26160         * configure: Regenerated.
26161         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
26162         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
26163         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
26164         New target.
26166 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
26168         [BZ #22402]
26169         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
26170         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
26172 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
26174         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
26175         to be escaped.
26177 2017-11-04  Florian Weimer  <fweimer@redhat.com>
26179         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
26181 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
26183         * math/math.h [__HAVE_DISTINCT_FLOAT16
26184         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26185         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26186         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26187         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
26188         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
26189         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
26190         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26191         (__MATH_TG_F32): New macro.
26192         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26193         (__MATH_TG_F64X): Likewise.
26194         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26195         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
26197 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
26199         * po/de.po: Update translations.
26200         * po/ru.po: Likewise.
26202 2017-11-03  Florian Weimer  <fweimer@redhat.com>
26204         * manual/filesys.texi (Hard Links): Document linkat.
26206 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
26208         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
26209         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26210         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26211         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26212         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26213         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26214         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
26215         the same as _Float128.
26216         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26217         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26218         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
26220         * stdlib/stdlib.h
26221         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
26222         Declare.
26223         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
26224         Likewise.
26225         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
26226         Likewise.
26227         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26228         (strtof32x): Likewise.
26229         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26230         (strtof64x): Likewise.
26231         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26232         (strtof128x): Likewise.
26233         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26234         (strfromf16): Likewise.
26235         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26236         (strfromf32): Likewise.
26237         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26238         (strfromf64): Likewise.
26239         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26240         (strfromf32x): Likewise.
26241         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26242         (strfromf64x): Likewise.
26243         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26244         (strfromf128x): Likewise.
26245         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
26246         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
26247         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
26248         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
26249         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
26250         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
26252 2017-11-03  Richard Henderson  <rth@twiddle.net>
26254         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
26256 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26258         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
26260 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26262         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
26263         DT_TLSDESC_GOT initialization.
26264         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
26265         (_dl_tlsdesc_resolve_hold): Likewise.
26266         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
26267         (_dl_tlsdesc_resolve_hold): Likewise.
26268         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
26269         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26271 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26273         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
26275 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26277         [BZ #18572]
26278         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
26279         non-lazily for R_ARM_TLS_DESC.
26281 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26283         [BZ #17078]
26284         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
26285         R_ARM_TLS_DESC case.
26286         (elf_machine_lazy_rel): Remove the prelink check.
26288 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26290         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
26291         DT_TLSDESC_GOT initialization.
26292         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
26293         (_dl_tlsdesc_resolve_rela): Likewise.
26294         (_dl_tlsdesc_resolve_hold): Likewise.
26295         (_dl_tlsdesc_undefweak): Remove ldar.
26296         (_dl_tlsdesc_dynamic): Likewise.
26297         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
26298         (_dl_tlsdesc_resolve_rela): Likewise.
26299         (_dl_tlsdesc_resolve_hold): Likewise.
26300         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
26301         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26302         (_dl_tlsdesc_resolve_rela): Likewise.
26303         (_dl_tlsdesc_resolve_hold): Likewise.
26305 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26307         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26308         binding and initialization non-lazily for R_AARCH64_TLSDESC.
26310 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26312         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26313         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26315 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
26317         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26318         Declare.
26319         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26320         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26321         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26322         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26323         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26324         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26325         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26326         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26327         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26328         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26329         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26331 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
26333         [BZ #22382]
26334         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26335         * localedata/locales/tpi_PG: Add standard header.
26337 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26339         test-errno-linux: quotactl can fail with EPERM in containers.
26340         * sysdeps/unix/sysv/linux/test-errno-linux.c
26341         (LIST, LIST_FORWARD): New macros.
26342         (check_error_in_list): New function.
26343         (test_wrp_rv): Accept list of permitted error codes.
26344         (test_wrp_rv2): Remove.
26345         (test_wrp): Call test_wrp_rv with list of error codes.
26346         (test_wrp2): Accept list of error codes.
26347         (do_test): Adjust.  Allow EPERM for quotactl.
26349 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26351         * stdio-common/bug16.c (do_test): Use array_length.
26352         * stdio-common/errlist.c (_sys_nerr): Likewise.
26353         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26354         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26355         * stdio-common/psiginfo.c (psiginfo): Use array_length.
26356         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26357         (do_test): Use array_length.
26358         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26359         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26360         * stdio-common/tst-printf-round.c (do_test): Likewise.
26361         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26362         (CHECK): Use array_length.
26363         * stdio-common/tstdiomisc.c (t3, F): Likewise.
26364         * stdio-common/tstscanf.c (main): Likewise.
26365         * stdio-common/vfprintf.c (process_string_arg): Likewise.
26367 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26369         Add array_length and array_end macros.
26370         * include/array_length.h: New file.
26372 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26374         [BZ #22332]
26375         * posix/tst-glob-tilde.c (do_noescape): New variable.
26376         (one_test): Process it.
26377         (do_test): Set do_noescape.  Add unescaping test case.
26379 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
26381         * math/complex.h
26382         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26383         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26384         with appropriate macros defined and undefined.
26385         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26386         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26387         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26388         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26389         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26390         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26391         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26392         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26393         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26394         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26396         * math/complex.h
26397         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26398         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26399         that for long double.  Do not condition define and undefine of
26400         _Mdouble_complex_ on [__CFLOAT128].
26402 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26404         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26405         of <sysdeps/generic/sysdep.h>.
26406         (ALIGNARG): Removed.
26407         (ASM_SIZE_DIRECTIVE): Likewise.
26408         (ENTRY): Likewise.
26409         (END): Likewise.
26410         (ENTRY_CHK): Likewise.
26411         (END_CHK): Likewise.
26412         (syscall_error): Likewise.
26413         (mcount): Likewise.
26414         (PSEUDO_END): Likewise.
26415         (L): Likewise.
26416         (atom_text_section): Likewise.
26417         * sysdeps/x86/sysdep.h: New file.
26418         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26419         of <sysdeps/generic/sysdep.h>.
26420         (ALIGNARG): Removed.
26421         (ASM_SIZE_DIRECTIVE): Likewise.
26422         (ENTRY): Likewise.
26423         (END): Likewise.
26424         (ENTRY_CHK): Likewise.
26425         (END_CHK): Likewise.
26426         (syscall_error): Likewise.
26427         (mcount): Likewise.
26428         (PSEUDO_END): Likewise.
26429         (L): Likewise.
26430         (atom_text_section): Likewise.
26432 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
26434         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26435         category of LC_CTYPE set to "i18n:2012".
26436         * localedata/locales/i18n_ctype: Regenerate.
26438 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
26440         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26441         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26442         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26443         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26445         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26446         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26447         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26448         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26450 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
26452         * math/complex.h
26453         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26454         New macro.
26455         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26456         Likewise.
26457         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26458         Likewise.
26459         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26460         (CMPLXF32X): Likewise.
26461         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26462         (CMPLXF64X): Likewise.
26463         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26464         (CMPLXF128X): Likewise.
26466         * math/math.h
26467         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26468         (__MATH_EVAL_FMT2): Define to add 0.0f.
26470 2017-10-31  Alan Modra  <amodra@gmail.com>
26472         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26473         include sysdep.h.
26474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26488         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26489         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26490         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26491         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26492         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26493         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26494         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26495         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26496         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26497         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26498         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26499         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26500         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26501         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26502         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26503         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26504         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26505         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26506         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26507         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26508         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26509         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26510         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26511         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26512         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26513         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26514         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26515         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26516         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26517         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26518         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26519         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26520         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26521         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26522         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26523         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26524         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26525         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26526         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26527         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26528         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26529         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26530         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26531         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26532         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26533         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26534         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26535         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26536         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26537         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26538         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26539         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26540         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26541         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26542         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26545         include sysdep.h and math_ldbl_opt.h.
26547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26548         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
26549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26550         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26574 2017-10-31  Alan Modra  <amodra@gmail.com>
26576         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26577         string/strncase_l.c, not string/strncase.c.
26578         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26579         (libc_hidden_def): Redefine.
26581 2017-10-31  Alan Modra  <amodra@gmail.com>
26583         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26584         (__STRCMP, STRCMP, __strcasecmp_l): Define.
26585         (__strcasecmp): Don't define.
26587 2017-10-31  Alan Modra  <amodra@gmail.com>
26589         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26590         IS_IN (libc).
26591         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26592         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26593         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26595 2017-10-31  Alan Modra  <amodra@gmail.com>
26597         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26598         USE_AS_STPNCPY.
26600 2017-10-31  Alan Modra  <amodra@gmail.com>
26602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26603         Redefine only when SHARED.
26605 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26607         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26608         Include <bits/math-finite.h> with appropriate macros defined and
26609         undefined.
26610         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26611         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26612         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26613         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26614         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26616         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26617         [!_Mlong_double_] (_Mlong_double_): Likewise.
26618         [!_Mfloat16_] (_Mfloat16_): Likewise.
26619         [!_Mfloat32_] (_Mfloat32_): Likewise.
26620         [!_Mfloat64_] (_Mfloat64_): Likewise.
26621         [!_Mfloat128_] (_Mfloat128_): Likewise.
26622         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26623         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26624         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26625         (_Mdouble_): Define without indirection through those macros.
26626         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26627         [!_Mfloat128_] (_Mfloat128_): Likewise.
26628         [_Mlong_double_] (_Mlong_double_): Likewise.
26629         (_Mdouble_): Define without indirection through those macros.
26630         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26631         not add -D_Mlong_double_=double.
26632         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26633         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26635 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26637         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26639 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26641         * sysdeps/x86/libc-start.c: Reformat.
26643 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26645         [BZ #22353]
26646         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26647         (1): Renamed to ...
26648         (L(Src0)): This.
26649         (L(Src1)): New.
26650         (L(Src2)): Likewise.
26651         (L(1)): Renamed to ...
26652         (L(Src3)): This.
26654 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26656         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26657         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26658         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26659         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26660         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26661         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26662         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26663         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26664         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26665         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26666         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26667         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26668         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26669         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26670         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26671         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26672         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26673         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26674         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26675         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26676         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26677         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26678         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26679         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26680         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26681         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26682         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26683         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26684         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26685         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26686         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26687         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26688         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26689         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26690         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26691         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26692         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26693         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26694         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26695         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26696         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26697         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26698         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26699         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26700         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26701         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26702         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26703         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26704         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26705         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26706         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26707         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26708         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26709         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26710         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26711         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26712         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26713         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26714         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26715         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26716         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26717         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26718         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26719         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26720         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26721         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26723 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26725         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26726         always defined.
26727         * io/tst-mkdirat.c (do_test): Likewise.
26728         * io/tst-mkfifoat.c (do_test): Likewise.
26729         * io/tst-mknodat.c (do_test): Likewise.
26730         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26731         * locale/programs/locale.c (select_dirs): Likewise.
26732         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26733         * posix/bug-glob2.c (my_readdir): Likewise.
26734         * posix/tst-dir.c (main): Likewise.
26735         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26736         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26738 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26740         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26741         just __USE_GNU.
26743 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26745         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26746         Convert to support/test-driver.c.
26747         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26748         New macro parameters.
26749         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
26750         * posix/tst-gnuglob.c: New file.
26751         * posix/tst-gnuglob64.c: Likewise.
26752         * posix/Makefile (tests): Add tst-gnuglob64.
26754 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
26756         [BZ #19485]
26757         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26758         and use a better translation for March in “mon”.
26759         * localedata/locales/csb_PL: Use more ASCII to improve the
26760         readability of the source.
26762 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
26764         [BZ #13953]
26765         * localedata/locales/km_KH: Use ASCII as much
26766         as possible for better readability of the source and
26767         remove useless comments.
26768         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26769         was commented out and apparently wrong anyway because it was
26770         using Lao characters. If Buddhist era should be used
26771         for km_KH, a native speaker should write the correct formaat
26772         for Khmer.
26773         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26774         (According to CLDR, the first weekday for Cambodia is Sunday).
26775         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26776         (These were using Lao characters which must be wrong. If we get
26777         the correct data from a native speaker, we could add it back, until
26778         then it is better not to have name_mr and name_mrs at all than
26779         having it wrong).
26781 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
26783         * locale/loadlocale.c: Correct size of
26784         _nl_value_type_LC_<category> arrays.
26786 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
26788         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26789         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26790         with appropriate macros defined and undefined.
26791         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26792         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26793         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26794         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26795         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26797 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
26799         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26800         "-O2 -march=i586".
26802 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26804         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26805         with lowercase letters to make it agree with CLDR.
26807 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26809         [BZ #15260]
26810         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26811         first letters of yesstr and nostr in yesexpr and noexpr,
26812         not for the full words.
26813         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26814         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26815         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26816         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26817         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26818         first letters of yesstr and nostr in yesexpr and noexpr,
26819         until now only English was matched in yesexpr and noexpr.
26820         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26821         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26822         fil but not for tl. As tl and fil are very similar, using fil
26823         is probably better than using English.
26825 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
26827         [BZ #21706]
26828         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26829         in yesstr and nostr.
26831 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
26833         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26834         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26835         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26836         Likewise.
26837         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26838         Likewise.
26839         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26840         Likewise.
26841         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26842         Likewise.
26843         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26844         (SNANF128X): Likewise.
26846         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26847         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26848         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26849         (HUGE_VAL_F32): Likewise.
26850         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26851         (HUGE_VAL_F64): Likewise.
26852         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26853         (HUGE_VAL_F32X): Likewise.
26854         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26855         (HUGE_VAL_F64X): Likewise.
26856         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26857         (HUGE_VAL_F128X): Likewise.
26859 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26861         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26862         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26863         for the br_FR locale.
26865 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26867         [BZ #21706]
26868         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26870 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
26872         * locale/programs/record-status.h: Define globals, and function
26873         prototypes. Move function bodies...
26874         * locale/programs/record-status.c: ... to here. New file.
26875         * iconv/Makefile (iconv_prog-modules): Add record-status.
26876         * locale/Makefile (lib-modules): Likewise.
26877         * iconv/iconv_prog.c: Remove verbose.
26878         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26879         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26880         record a warning about ASCII compatibility.
26881         * locale/programs/ld-monetary.c (monetary_finish): If
26882         warn_int_curr_symbol is true then record a warning about the symbol
26883         not being in our ISO 4217 list.
26884         * locale/programs/locale.c: Include record-status.h. Remove verbose.
26885         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26886         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26887         (OPT_NO_WARN): Define.
26888         (OPT_WARN): Define.
26889         (options): Add entry for --no-warnings, and --warnings.
26890         (set_warnings): New function to enable/disable warnings.
26891         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26892         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26893         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26894         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26895         Pass flags to generate_locale.
26896         (generate_locale): Accept new flag argument and pass it to localedef
26897         invocation.
26898         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26899         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26901         * localedata/Makefile (test-input-data): Use full file name.
26902         * localedata/da_DK.in: Rename to...
26903         * localedata/da_DK.ISO-8859-1.in: ...this.
26904         * localedata/de_DE.in: Rename to...
26905         * localedata/de_DE.ISO-8859-1.in: ...this.
26906         * localedata/en_US.in: Rename to...
26907         * localedata/en_US.ISO-8859-1.in: ...this.
26908         * localedata/fr_FR.in: Rename to...
26909         * localedata/fr_FR.UTF-8.in: ... this.
26910         * localedata/hr_HR.in: Rename to...
26911         * localedata/hr_HR.ISO-8859-2.in: ...this.
26912         * localedata/hu_HU.in: Rename to...
26913         * localedata/hu_HU.UTF-8.in: ...this.
26914         * localedata/si_LK.in: Rename to...
26915         * localedata/si_LK.UTF-8.in: ...this.
26916         * localedata/sv_SE.in: Rename to...
26917         * localedata/sv_SE.ISO-8859-1.in: ...this.
26918         * localedata/tr_TR.in: Rename to...
26919         * localedata/tr_TR.UTF-8.in: ...this.
26920         * localedata/uk_UA.in: Rename to...
26921         * localedata/uk_UA.UTF-8.in: ...this.
26922         * localedata/sort-test.sh: Test file is locale name with the
26923         suffix.
26925         * localedata/unicode-gen/Makefile (check_i18n): Rename to
26926         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26927         file.
26928         * localedata/locales/i18n_ctype: Regenerate.
26929         * localedata/locales/tr_TR: Likewise.
26930         * localedata/locales/translit_circle: Likewise.
26931         * localedata/locales/translit_cjk_compat: Likewise.
26932         * localedata/locales/translit_combining: Likewise.
26933         * localedata/locales/translit_compat: Likewise.
26934         * localedata/locales/translit_font: Likewise.
26935         * localedata/locales/translit_fraction: Likewise.
26937 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26939         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26940         lxvd2x/stxvd2x with lvx/stvx.
26941         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26943 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
26945         * include/alloc_buffer.h: Replace "if if " with "if " in
26946         comments.
26947         * sysdeps/mips/memcpy.S: Likkewise.
26948         * sysdeps/mips/memset.S: Likewise.
26949         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26950         Likewise.
26951         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26952         Likewise.
26953         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26954         Likewise.
26956 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26958         [BZ #15261]
26959         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26960         yesexpr and noexpr.
26961         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26962         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26963         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26964         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26965         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26966         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26967         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26969 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26971         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26972         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26973         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26974         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26975         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26976         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26977         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26978         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26979         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26980         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26981         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26982         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26984 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26986         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26987         as possible for better readability of the source.
26988         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26989         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26990         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26991         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26992         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26993         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26994         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26995         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26996         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26997         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26998         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26999         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
27000         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
27001         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
27002         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
27003         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
27004         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
27005         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
27006         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
27007         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
27008         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
27009         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
27010         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
27011         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
27012         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
27013         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
27014         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
27015         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
27016         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
27017         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
27018         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
27019         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27020         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
27021         * localedata/locales/en_US (LC_MESSAGES): Likewise.
27022         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
27023         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
27024         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
27025         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
27026         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
27027         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
27028         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
27029         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
27030         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
27031         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
27032         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
27033         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
27034         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
27035         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
27036         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
27037         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
27038         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
27039         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
27040         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
27041         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27042         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27043         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
27044         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
27045         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
27046         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
27047         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
27048         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
27049         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
27050         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
27051         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
27052         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
27053         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
27054         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
27055         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
27056         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
27057         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
27058         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
27059         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
27060         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
27061         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
27062         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27063         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
27064         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
27065         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
27066         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
27067         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
27068         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
27069         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
27070         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
27071         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27072         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
27073         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
27074         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
27075         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27076         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
27077         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
27078         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
27079         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
27080         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27081         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
27082         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
27083         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27084         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
27085         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27086         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
27087         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
27088         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
27089         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
27090         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
27091         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
27092         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
27093         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
27094         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
27095         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
27096         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
27097         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
27098         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
27099         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
27100         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27101         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
27102         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
27103         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
27104         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
27105         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
27106         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
27107         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
27108         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
27109         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
27110         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
27111         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
27112         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
27113         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
27114         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
27115         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
27116         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
27117         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
27118         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
27119         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
27120         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
27121         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
27122         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
27123         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
27124         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
27125         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
27126         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
27127         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
27128         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
27129         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
27130         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
27131         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
27132         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
27133         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
27134         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
27135         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
27136         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
27137         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
27138         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
27139         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
27140         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
27141         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
27142         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
27143         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
27144         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
27145         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
27146         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
27147         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
27148         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
27149         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
27150         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
27151         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
27152         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
27153         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
27154         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
27155         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
27156         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
27157         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
27158         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
27159         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
27160         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
27161         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
27163 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27165         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
27166         (Use first letters of yesstr and nostr correctly instead of using
27167         full words).
27169 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27171         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
27172         (Use first letters of yesstr and nostr correctly).
27174 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27176         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
27177         also check for the first characters of yesstr and nostr.
27178         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
27179         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
27181 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27183         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
27184         also check for Chinese characters.
27186 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27188         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
27189         match also for the contents of yesstr and nostr. As the first letter
27190         of yesstr and nostr is equal, checking only for the first letter
27191         is not enough.
27193 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27195         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
27196         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
27198 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27200         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
27201         of main contributor.
27203 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27205         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
27206         instead of using English.
27208 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27210         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
27211         by including the first letters of nostr and yesexpr in the regexp.
27212         Also make it more readable by using ASCII where possible.
27214 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27216         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
27217         the first letter of nostr in the regexp. It agrees with CLDR now.
27218         Also make it more readable by using ASCII where possible.
27220 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27222         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
27223         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
27224         these strings contain a U+17D6 (which somewhat looks like a colon)
27225         instead of a real colon to separate the full words for “yes”
27226         and “no” from the single letter responses.
27228 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27230         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
27231         it agree with CLDR (include the first letter of yesstr).
27232         Also make it more readable by using ASCII where possible.
27234 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27236         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
27237         and improve yesexpr and noexpr. The yesstr and nostr apparently
27238         came from CLDR. And CLDR has a bug there: these strings contain
27239         a U+0903 (which looks like a colon) instead of a real colon
27240         to separate the full words for “yes” and “no” from the single
27241         letter responses.
27243 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27245         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
27246         letters of the full yesstr and nostr in yesexpr and noexpr.
27248 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27250         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
27251         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
27252         * localedata/locales/an_ES: Make source more readable by using ASCII
27253         where possible.
27255 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27257         [BZ #20952]
27258         * localedata/locales/yuw_PG: New file.
27259         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
27260         * locale/iso-639.def: Add Yau (Uruwa).
27262 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
27264         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
27266 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
27268         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
27269         (__libc_realloc): Likewise.
27270         (_mid_memalign): Likewise.
27271         (__libc_calloc): Likewise.
27273 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
27275         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
27276         by adding the generic +1 and -0 as in all other locales.
27277         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
27278         day names and make it more readable by using ASCII where possible.
27280 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
27282         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
27283         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
27285 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27287         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
27288         WNOHANG in waitpid call.
27290 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27292         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
27293         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
27295         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
27296         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
27297         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
27298         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
27299         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
27300         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
27301         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
27302         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
27303         variables.
27305 2017-10-23  Michael Collison  <michael.collison@arm.com>
27307         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27308         with __builtin_sqrt.
27309         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27310         with __builtin_sqrtf.
27311         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27312         with __builtin_ceil.
27313         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27314         with __builtin_ceilf.
27315         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27316         with __builtin_floor.
27317         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27318         with __builtin_floorf.
27319         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27320         with __builtin_fma.
27321         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27322         with __builtin_fmaf.
27323         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27324         with __builtin_fmax.
27325         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27326         with __builtin_fmaxf.
27327         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27328         with __builtin_fmin.
27329         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27330         with __builtin_fminf.
27331         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27332         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27333         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27334         with builtin_rint and conversion to int.
27335         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27336         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27337         with builtin_llround.
27338         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27339         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27340         with builtin_rint and conversion to long int.
27341         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27342         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27343         with builtin_lround.
27344         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27345         with builtin_lroundf.
27346         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27347         statements with __builtin_nearbyint.
27348         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27349         statements with __builtin_nearbyintf.
27350         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27351         with __builtin_rint.
27352         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27353         with __builtin_rintf.
27354         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27355         with __builtin_round.
27356         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27357         with __builtin_roundf.
27358         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27359         with __builtin_trunc.
27360         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27361         with __builtin_truncf.
27362         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27363         and s_l[l]round[f].c too.
27365 2017-10-23  Alan Modra  <amodra@gmail.com>
27367         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27368         Adjust stack after restoring regs.  Add missing LR cfi_restore.
27370 2017-10-23  Alan Modra  <amodra@gmail.com>
27372         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27373         Move LR save and frame setup/teardown and LR restore to
27374         immediately around memset call.  Provide cfi.
27376 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27378         * sysdeps/i386/fpu/e_powf.S: Removed.
27379         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27380         * sysdeps/i386/fpu/w_powf.c: Likewise.
27381         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27382         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27383         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27384         Add e_powf-sse2.
27385         (CFLAGS-e_powf-sse2.c): New.
27386         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27387         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27389 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27391         * sysdeps/i386/fpu/e_log2f.S: Removed.
27392         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27393         * sysdeps/i386/fpu/w_log2f.c: Likewise.
27394         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27395         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27396         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27397         Add e_log2f-sse2.
27398         (CFLAGS-e_log2f-sse2.c): New.
27399         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27400         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27402 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27404         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27405         Add e_powf-fma.
27406         (CFLAGS-e_powf-fma.c): New.
27407         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27408         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27410 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27412         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27413         Add e_log2f-fma.
27414         (CFLAGS-e_log2f-fma.c): New.
27415         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27416         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27418 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27420         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27421         Add e_logf-fma.
27422         (CFLAGS-e_logf-fma.c): New.
27423         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27424         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27426 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27428         * sysdeps/i386/fpu/e_logf.S: Removed.
27429         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27430         * sysdeps/i386/fpu/w_logf.c: Likewise.
27431         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27432         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27433         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27434         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27435         Add e_logf-sse2.
27436         (CFLAGS-e_logf-sse2.c): New.
27437         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27438         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27440 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27442         * sysdeps/i386/fpu/e_exp2f.S: Removed.
27443         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27444         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27445         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27446         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27447         Add e_exp2f-sse2.
27448         (CFLAGS-e_exp2f-sse2.c): New.
27449         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27450         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27452 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27454         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27455         Add e_exp2f-fma.
27456         (CFLAGS-e_exp2f-fma.c): New.
27457         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27458         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27460 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27462         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27463         * sysdeps/i386/fpu/e_expf.S: Likewise.
27464         * sysdeps/i386/fpu/math_errf.c: Likewise.
27465         * sysdeps/i386/fpu/w_expf.c: Likewise.
27466         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27467         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27468         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27469         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27470         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27471         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27472         Remove e_expf-ia32.
27473         (CFLAGS-e_expf-sse2.c): New.
27474         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27475         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27477 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27479         * sysdeps/x86_64/fpu/e_expf.S: Removed.
27480         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27481         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27482         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27483         e_expf.c.
27484         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27485         New.
27486         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27487         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27488         Renamed to ...
27489         (__redirect_expf): This.
27490         (SYMBOL_NAME): Changed to expf.
27491         (__ieee754_expf): Renamed to ...
27492         (__expf): This.
27493         (__GI___expf): This.
27494         (__ieee754_expf): Add strong_alias.
27495         (__expf_finite): Likewise.
27496         (__expf): New.
27497         Include <sysdeps/ieee754/flt-32/e_expf.c>.
27499 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27501         [BZ #22332]
27502         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27503         unescaping.
27505 2017-10-21  Florian Weimer  <fweimer@redhat.com>
27507         * posix/Makefile (tests): Add tst-glob-tilde.
27508         (tests-special): Add tst-glob-tilde-mem.out
27509         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27510         (tst-glob-tilde-mem.out): Add mtrace check.
27511         * posix/tst-glob-tilde.c: New file.
27513 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
27515         * bits/floatn-common.h: New file.
27516         * math/Makefile (headers): Add bits/floatn-common.h.
27517         * bits/floatn.h: Include <bits/floatn-common.h>.
27518         * sysdeps/ia64/bits/floatn.h: Likewise.
27519         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27520         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27521         * sysdeps/powerpc/bits/floatn.h: Likewise.
27522         * sysdeps/x86/bits/floatn.h: Likewise.
27524 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27526         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27527         indicates whether compiler emits an warning for alias for
27528         functions with incompatible types.
27530         [BZ #22273]
27531         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27532         the auxiliary process is terminated by a signal before calling _exit
27533         or execve.
27535 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27537         [BZ #21265]
27538         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27539         New.
27540         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27541         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27542         and bit_arch_XSAVEC_Usable if needed.
27543         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27544         and bit_arch_Use_dl_runtime_resolve_opt.
27545         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27546         Removed.
27547         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27548         (bit_arch_Prefer_No_AVX512): Updated.
27549         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27550         (bit_arch_XSAVEC_Usable): New.
27551         (STATE_SAVE_OFFSET): Likewise.
27552         (STATE_SAVE_MASK): Likewise.
27553         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27554         (cpu_features): Add xsave_state_size and xsave_state_full_size.
27555         (index_arch_Use_dl_runtime_resolve_opt): Removed.
27556         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27557         (index_arch_XSAVEC_Usable): New.
27558         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27559         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
27560         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27561         is enabled.
27562         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27563         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27564         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27565         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27566         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27567         _dl_runtime_resolve_xsavec.
27568         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27569         Removed.
27570         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27571         instead of VEC_SIZE.
27572         (REGISTER_SAVE_BND0): Removed.
27573         (REGISTER_SAVE_BND1): Likewise.
27574         (REGISTER_SAVE_BND3): Likewise.
27575         (REGISTER_SAVE_RAX): Always defined to 0.
27576         (VMOV): Removed.
27577         (_dl_runtime_resolve_avx): Likewise.
27578         (_dl_runtime_resolve_avx_slow): Likewise.
27579         (_dl_runtime_resolve_avx_opt): Likewise.
27580         (_dl_runtime_resolve_avx512): Likewise.
27581         (_dl_runtime_resolve_avx512_opt): Likewise.
27582         (_dl_runtime_resolve_sse): Likewise.
27583         (_dl_runtime_resolve_sse_vex): Likewise.
27584         (USE_FXSAVE): New.
27585         (_dl_runtime_resolve_fxsave): Likewise.
27586         (USE_XSAVE): Likewise.
27587         (_dl_runtime_resolve_xsave): Likewise.
27588         (USE_XSAVEC): Likewise.
27589         (_dl_runtime_resolve_xsavec): Likewise.
27590         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27591         Removed.
27592         (_dl_runtime_resolve_avx512_opt): Likewise.
27593         (_dl_runtime_resolve_avx): Likewise.
27594         (_dl_runtime_resolve_avx_opt): Likewise.
27595         (_dl_runtime_resolve_sse): Likewise.
27596         (_dl_runtime_resolve_sse_vex): Likewise.
27597         (_dl_runtime_resolve_fxsave): New.
27598         (_dl_runtime_resolve_xsave): Likewise.
27599         (_dl_runtime_resolve_xsavec): Likewise.
27601 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27603         [BZ #22320]
27604         CVE-2017-15670
27605         * posix/glob.c (__glob): Fix one-byte overflow.
27607 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27609         * malloc/malloc.c (sysdep-cancel.h): Add include.
27611 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27613         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27615 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
27617         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27618         (tests): Remove $(objpfx)ga_test depdendency.
27619         * resolv/ga_test.c: Remove file.
27621 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27623         [BZ #18812]
27624         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27625         * localedata/locales/kab_DZ: New file.
27627 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27629         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27630         _dl_relocate_static_pie instead of _dl_start to compute load
27631         address in static PIE.
27633 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27635         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27637 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27639         [BZ #13605]
27640         * localedata/SUPPORTED: Add shn_MM/UTF-8.
27641         * localedata/locales/shn_MM: New file.
27643 2017-10-20  Florian Weimer  <fweimer@redhat.com>
27645         [BZ #22321]
27646         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27647         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27648         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27649         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27650         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27651         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27653 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
27655         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27657 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
27659         * sysdeps/mips/ieee754/bits/floatn.h: New file.
27661         [BZ #22322]
27662         * sysdeps/mips/bits/long-double.h: Move to ....
27663         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27665 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
27667         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27669 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
27670             H.J. Lu  <hongjiu.lu@intel.com>
27672         [BZ #22299]
27673         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27674         GLRO(dl_platform) to NULL.
27675         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27676         (modules-names): Add tst-platformmod-1 and
27677         x86_64/tst-platformmod-2.
27678         (CFLAGS-tst-platform-1.c): New.
27679         (CFLAGS-tst-platformmod-1.c): Likewise.
27680         (CFLAGS-tst-platformmod-2.c): Likewise.
27681         (LDFLAGS-tst-platformmod-2.so): Likewise.
27682         ($(objpfx)tst-platform-1): Likewise.
27683         ($(objpfx)tst-platform-1.out): Likewise.
27684         (tst-platform-1-ENV): Likewise.
27685         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27686         * sysdeps/x86_64/tst-platform-1.c: New file.
27687         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27688         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27690 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
27692         [BZ #13994]
27693         * locale/iso-639.def: Add Karbi.
27694         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27695         * localedata/locales/mjw_IN: New file.
27697 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
27699         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27700         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27701         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27702         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27703         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27704         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27705         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27706         <bits/floatn.h>.
27707         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27708         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27709         * manual/math.texi (Mathematics): Document additional architecture
27710         support for _Float128.
27711         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27712         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27713         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27714         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27715         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27716         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27717         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27718         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27719         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27720         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27721         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27722         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27723         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27724         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27725         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27727 2017-10-18  Renlin Li  <renlin.li@arm.com>
27729         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27730         _DYNAMIC symbol to calculate load address.
27732 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
27734         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27735         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27736         summary bits.
27737         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27738         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27740 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
27742         [BZ #16777]
27743         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27744         and improve readability by using more ASCII.
27745         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27746         and improve readability by using more ASCII.
27748 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
27750         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27751         not all targets support atomics on bool.
27753 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
27755         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27756         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27757         __f128.
27758         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27759         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27760         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27761         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27762         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27763         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27765 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27767         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27768         defines.
27770 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27772         [BZ #22159]
27773         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27774         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27775         (do_check_remalloced_chunk): Fix build bug.
27776         (do_check_malloc_state): Add assert that checks arena->top.
27777         (malloc_consolidate): Remove initialization.
27778         (int_mallinfo): Remove call to malloc_consolidate.
27779         (__libc_mallopt): Clarify why malloc_consolidate is needed.
27781 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27783         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27784         (have_fastchunks): Remove.
27785         (clear_fastchunks): Remove.
27786         (set_fastchunks): Remove.
27787         (malloc_state): Add have_fastchunks.
27788         (malloc_init_state): Use have_fastchunks.
27789         (do_check_malloc_state): Remove incorrect invariant checks.
27790         (_int_malloc): Use have_fastchunks.
27791         (_int_free): Likewise.
27792         (malloc_consolidate): Likewise.
27794 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27796         * malloc/malloc.c (tcache_put): Inline.
27797         (tcache_get): Inline.
27799 2017-10-17  Jordi Mallach  <jordi@gnu.org>
27801         Aurelien Jarno  <aurelien@aurel32.net>
27802         [BZ #2522]
27803         * localedata/locales/ca_ES@valencia: New file.
27804         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27806 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
27808         [BZ #22296]
27809         * math/math.h: Let signbit use the builtin in C++ mode with gcc
27810         < 6.x
27812 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27814         * scripts/build-many-glibcs.py (Context.add_all_configs):
27815         Add arm-linux-gnueabihf multiarch extra_glibcs.
27817         * sysdeps/generic/ifunc-init.h: New file.
27818         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27820 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
27822         [BZ #22019]
27823         * localedata/locales/el_GR: Set n_cs_precedes to 0.
27824         * localedata/locales/el_CY: copy "el_GR" because it is identical.
27825         * stdlib/tst-strfmon_l.c: adapt test case.
27827 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27829         * sysdeps/generic/float128-abi.h: New file.
27830         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27831         non-__prefixed symbols to ....
27832         * math/Versions: ... here.  Include <float128-abi.h>.
27833         * stdlib/Versions ... and here.  Include <float128-abi.h>
27835 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27837         * version.h (VERSION): Switch to ".9000" as the development
27838         version suffix.
27840 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27842         [BZ #22050]
27843         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27844         compat_symbol_reference to access non-default version.
27846 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27848         * malloc/Makefile (others-extras): Set to mcheck-init.o.
27850 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
27852         * include/shlib-compat.h (compat_symbol_reference): Update
27853         comment.
27855 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27857         * math/Makefile (test-types): Add
27858         $(type-float128-$(float128-alias-fcts)).
27859         * math/test-float128.h (TYPE_STR): Define conditional on
27860         [FLT128_MANT_DIG == LDBL_MANT_DIG].
27861         (ULP_IDX): Likewise.
27862         (ULP_I_IDX): Likewise.
27864         * stdlib/strtold.c: Include <bits/floatn.h>
27865         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27866         and later undefine as macro.  Define as weak alias if
27867         [!USE_WIDE_CHAR].
27868         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27869         and later undefine as macro.  Define as weak alias if
27870         [USE_WIDE_CHAR].
27871         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27872         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27873         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
27874         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27875         Define and later undefine as macro.  Define as weak alias if
27876         [USE_WIDE_CHAR].
27877         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27878         <bits/floatn.h>.
27879         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27880         Define and later undefine as macro.  Define as weak alias if
27881         [!USE_WIDE_CHAR].
27882         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27883         Define and later undefine as macro.  Define as weak alias if
27884         [USE_WIDE_CHAR].
27886 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
27888         * localedata/collate-test.c (allocate_arrays): Don't use \n in
27889         record_verbose messages.
27891 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27893         [BZ #22052]
27894         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27895         to silence -O3 -Wall warning with GCC 7.
27897 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27899         * Makeconfig (+link-static-before-libc): Use the first of
27900         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27901         * gmon/Makefile (tests): Add tst-gmon-static.
27902         (tests-static): Likewise.
27903         (CFLAGS-tst-gmon-static.c): New.
27904         (CRT-tst-gmon-static): Likewise.
27905         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27906         (tst-gmon-static-ENV): Likewise.
27907         (tests-special): Likewise.
27908         ($(objpfx)tst-gmon-static.out): Likewise.
27909         (clean-tst-gmon-static-data): Likewise.
27910         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27911         * gmon/tst-gmon-static-gprof.sh: New file.
27912         * gmon/tst-gmon-static.c: Likewise.
27914 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
27916         [BZ #22295]
27917         * locale/programs/linereader.c (get_string): Don't warn on
27918         non-symbolic character.
27920         [BZ #22294]
27921         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27922         int_curr_symbol.
27924         [BZ #22292]
27925         * locale/programs/record-status.h: New file
27926         * locale/programs/locale.c: Add comment.
27927         * locale/programs/charmap-dir.c: Don't include error.h.
27928         (charmap_opendir): Use record_error.
27929         * locale/programs/charmap.c: Don't include error.h.
27930         (charmap_read): Use record_error, and record_warning.
27931         (parse_charmap): Likewise.
27932         * locale/programs/ld-address.c: Don't include error.h.
27933         (address_finish): Use record_error, and record_warning.
27934         * locale/programs/ld-collate.c: Don't include error.h.
27935         (collate_finish): Use record_error, and record_error_at_line.
27936         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27937         (ctype_class_new): Likewise.
27938         (ctype_map_new): Likewise.
27939         (set_one_default): Likewise.
27940         (set_class_defaults): Likewise.
27941         (translit_flatten): Likewise.
27942         (allocate_arrays): Use record_error, and record_verbose.
27943         * locale/programs/ld-identification.c: Don't include error.h.
27944         (indentation_finish): Use record_error and record_warning.
27945         * locale/programs/ld-measurement.c: Don't include error.h.
27946         (measurement_finish): Use record_error.
27947         * locale/programs/ld-messages.c
27948         (message_finish): Likewise.
27949         * locale/programs/ld-monetary.c
27950         (monetary_finish): Likewise.
27951         * locale/programs/ld-name.c (name_finish): Use record_error
27952         and record_warning.
27953         * locale/programs/ld-numeric.c
27954         (numeric_finish): Use record_error.
27955         * locale/programs/ld-paper.c: Don't include error.h.
27956         (paper_finish): Use record_error.
27957         * locale/programs/ld-telephone.c: Don't include error.h.
27958         (telephone_finish): Use record_error.
27959         * locale/programs/ld-time.c (time_finish): Likewise.
27960         * locale/programs/linereader.h (lr_error): Make inline func.
27961         * locale/programs/localedef.c: Define recorded_warning_count,
27962         and recorded_error_count.
27963         (main): Use record_error. Use recorded_error_count and
27964         recorded_warning_count to issue correct error returns.
27965         (add_to_readlist): Use record_error.
27966         (find_locale): Likewise.
27967         (load_locale): Likewise.
27968         * locale/programs/localedef.h: Remove be_quiet
27969         and WITH_CUR_LOCALE.
27970         * locale/programs/locarchive.c (compare_from_file): Use
27971         record_error.
27972         * locale/programs/locfile.c (write_locale_data): Use
27973         record_error.
27974         * locale/programs/repertoire.c: Dont include error.h.
27975         (repertoire_complain): Use record_error.
27976         * localedata/tst-fmon.sh: Expect failures from localedef.
27977         * localedata/tst-locale.sh: Likewise.
27978         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27980         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27981         (REPORTS): Likewise.
27982         (check): Likewise.
27983         (i18n): Rename to...
27984         (i18n_ctype): ...this.
27985         (i18n-report): Rename to...
27986         (i18n_ctype-report): ...this.
27987         * localedata/locales/i18n_ctype: Regenerate.
27988         * localedata/locales/i18n: copy i18n_ctype.
27990 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27992         * stdlib/strfroml.c: Include <bits/floatn.h>.
27993         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27994         Define before include of <stdlib.h> and undefine afterwards, then
27995         define as weak alias.
27997         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27998         Undefine and restore default definition.  Use
27999         libm_alias_ldouble_other.
28001 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
28003         [BZ #22153]
28004         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
28005         in coredumps.
28007 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
28009         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28010         Assign sym_map to be map for local symbols, as TLS relocations
28011         use sym_map to determine whether the symbol is defined and to
28012         extract the TLS information.
28013         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28014         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28016 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28018         [BZ #22189]
28019         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
28020         (math_force_eval): Add powerpc version.
28022         [BZ #22142]
28023         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
28024         -DBL_MAX.
28025         (do_test): Likewise.
28026         * stdio-common/tst-printf.sh: Likewise.
28027         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
28028         ifdef clause in order to set the carry bit right.  Replace r0 by
28029         0 without changing the behavior.
28031 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
28033         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
28034         <libm-alias-ldouble.h>.
28035         (fabsl): Define using libm_alias_ldouble.
28036         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
28037         <libm-alias-ldouble.h>.
28038         (fabsl): Define using libm_alias_ldouble.
28040         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
28041         Remove conditional code.
28043         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
28044         Rename to __clog10_internal_l.
28045         (__clog10_internal_l): Define aliases using
28046         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
28047         with __clog10.
28049 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28051         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
28052         * benchtests/sincosf-inputs: New file.
28053         * benchtests/cosf-inputs: New file.
28054         * benchtests/sinf-inputs: New file.
28056 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28058         * posix/tst-spawn.c (do_test): Wait for both children.
28060 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
28062         [BZ #22284]
28063         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
28064         tests-pie): Add tst-gmon-pie.
28065         (CFLAGS-tst-gmon-pie.c): New.
28066         (CRT-tst-gmon-pie): Likewise.
28067         (tst-gmon-pie-ENV): Likewise.
28068         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
28069         ($(objpfx)tst-gmon-pie.out): Likewise.
28070         (clean-tst-gmon-pie-data): Likewise.
28071         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
28072         * gmon/gmon.c [PIC]: Include <link.h>.
28073         [PIC] (callback): New function.
28074         (write_hist): Add an argument for load address.  Subtract load
28075         address from PCs.
28076         (write_call_graph): Likewise.
28077         (write_gmon): Call __dl_iterate_phdr to get load address, pass
28078         it to write_hist and write_call_graph.
28079         * gmon/tst-gmon-pie.c: New file.
28081 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
28083         * math/Makefile (test-types-basic): New variable.
28084         (test-types): Likewise.
28085         (libm-test-support): Use $(test-types) instead of $(types).
28086         (libm-tests-base-normal): Likewise.
28087         (libm-tests-base-finite): Likewise.
28088         (libm-tests-base-inline): Likewise.
28089         (generated): Likewise.
28090         ($(objpfx)libm-test-support-$(t).c): Likewise.
28091         (libm-tests-for-type iterator): Likewise.
28092         (libm-test-support iterator): Likewise.
28093         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
28094         (ulp_idx): Use ULP_IDX.
28095         * math/test-ldouble.h: Include <float.h>.
28096         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
28097         (ULP_IDX): New macro.
28098         (ULP_I_IDX): Likewise.
28099         * math/test-double.h (ULP_IDX): Likewise.
28100         (ULP_I_IDX): Likewise.
28101         * math/test-float.h (ULP_IDX): Likewise.
28102         (ULP_I_IDX): Likewise.
28103         * math/test-float128.h (ULP_IDX): Likewise.
28104         (ULP_I_IDX): Likewise.
28106 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28108         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
28109         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
28110         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
28111         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
28112         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
28113         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
28114         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
28115         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
28116         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
28117         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
28118         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
28119         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
28120         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
28121         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
28122         (SINGLE_THREAD_BY_GLOBAL): Define.
28123         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28124         Likewise.
28125         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28126         Likewise.
28127         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28128         Likewise.
28129         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28130         Likewise.
28131         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
28132         (SINGLE_THREAD_BY_GLOBAL): Likewise.
28133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28134         Likewise.
28136 2017-10-11  Andreas Schwab  <schwab@suse.de>
28138         * nis/Makefile (aux): Remove.
28139         * nscd/Makefile (aux): Add nscd_hash.
28140         (nscd-modules): Likewise.
28141         ($(objpfx)nscd): Don't depend on libnsl.
28142         * nscd/nscd_hash.c: New file.
28143         * nscd/nscd_hash.h: Likewise.
28144         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
28145         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
28146         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
28147         instead of <nis/rpcsvc/nis.h>.
28148         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
28150 2017-10-11  Florian Weimer  <fweimer@redhat.com>
28152         [BZ #22078]
28153         Avoid large NSS buffers with many addresses, aliases.
28154         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
28155         using dynarrays and struct alloc_buffer.
28156         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
28157         (tst-nss-files-hosts-multi): Link with -ldl.
28158         * nss/tst-nss-files-hosts-multi.c: New file.
28160 2017-10-11  Florian Weimer  <fweimer@redhat.com>
28162         [BZ #18023]
28163         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
28164         scratch_buffer.  Eliminate gotos.
28166 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
28168         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
28169         libm_alias_ldouble_other.
28170         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
28171         undefine and redefine.
28172         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28173         (exp10l): Do not define here.
28174         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
28175         (weak_alias): Undefine and redefine.
28176         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
28177         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28178         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
28179         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
28181         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
28182         [!__fma] (fma): Define using libm_alias_double.
28183         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
28184         [!__fmaf] (fmaf): Define using libm_alias_float.
28185         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
28186         (fmal): Define using libm_alias_ldouble.
28188 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
28190         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
28191         New macro.
28192         (libm_alias_double_other): Likewise.
28193         (libm_alias_double_r): Use libm_alias_double_other_r.
28194         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
28195         New macro.
28196         (libm_alias_float_other): Likewise.
28197         (libm_alias_float_r): Use libm_alias_float_other_r.
28198         * sysdeps/generic/libm-alias-float128.h
28199         (libm_alias_float128_other_r): New macro.
28200         (libm_alias_float128_other): Likewise.
28201         (libm_alias_float128_r): Use libm_alias_float128_other_r.
28202         * sysdeps/generic/libm-alias-ldouble.h
28203         (libm_alias_ldouble_other_r): New macro.
28204         (libm_alias_ldouble_other): Likewise.
28205         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28206         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
28207         (libm_alias_double_other_r): New macro.
28208         (libm_alias_double_other): Likewise.
28209         (libm_alias_double_r): Use libm_alias_double_other_r.
28210         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
28211         (libm_alias_ldouble_other_r): New macro.
28212         (libm_alias_ldouble_other): Likewise.
28213         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28214         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
28215         [!USE_AS_COMPAT]: Use libm_alias_double_other.
28216         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
28217         [!USE_AS_COMPAT]: Use libm_alias_float_other.
28218         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
28219         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
28220         * math/w_exp2f.c: Use libm_alias_float_other.
28221         * math/w_expf.c: Likewise.
28222         * math/w_log2f.c: Likewise.
28223         * math/w_logf.c: Likewise.
28224         * math/w_powf.c: Likewise.
28225         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
28226         [!__exp2f]: Use libm_alias_float_other.
28227         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
28228         [!__expf]: Use libm_alias_float_other.
28229         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
28230         [!__log2f]: Use libm_alias_float_other.
28231         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
28232         [!__logf]: Use libm_alias_float_other.
28233         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
28234         [!__powf]: Use libm_alias_float_other.
28236 2017-10-10  Florian Weimer  <fweimer@redhat.com>
28238         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
28239         function.
28240         (_nss_files_gethostbyname3_r): Call it.
28242 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
28244         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
28245         error.  Remove default definition of declare_mgen_alias.
28246         [!declare_mgen_alias_r]: Likewise.
28247         * sysdeps/generic/math-type-macros-double.h
28248         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
28249         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
28250         (declare_mgen_alias_r): Likewise.
28251         * sysdeps/generic/math-type-macros-float128.h
28252         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28253         * sysdeps/generic/math-type-macros-ldouble.h
28254         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28255         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
28256         macro.
28257         (declare_mgen_alias_r_s): Likewise.
28258         (declare_mgen_alias_r): Likewise.
28259         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
28260         (lgamma_r): Define using libm_alias_double_r.
28261         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
28262         (lgammaf_r): Define using libm_alias_float_r.
28263         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
28264         (lgammal_r): Define using libm_alias_ldouble_r.
28265         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
28266         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28268 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28270         * lib/glob.c (__glob_pattern_type): Remove now-spurious
28271         extern declaration.
28273 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
28275         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
28277 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
28279         [BZ #21326]
28280         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
28281         [__cplusplus >= 201103] (__USE_ISOC99): Define.
28282         * math/Makefile (test-math-cxx11): New test.
28283         * math/test-math-cxx11.cc: New file.
28285 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
28287         * login/openpty.c (openpty): Close slave pty file descriptor on error.
28289         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
28290         call to allocate the slave pty file descriptor.
28292 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
28294         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
28295         [!__fma] (fma): Define using libm_alias_double.
28296         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
28297         [!__fma] (fma): Define using libm_alias_double.
28299         * sysdeps/ieee754/float128/float128_private.h: Include
28300         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
28301         (libm_alias_ldouble_r): Undefine and redefine.
28302         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
28303         <libm-alias-ldouble.h>.
28304         (asinhl): Define using libm_alias_ldouble.
28305         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28306         <libm-alias-ldouble.h>.
28307         (atanl): Define using libm_alias_ldouble.
28308         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28309         <libm-alias-ldouble.h>.
28310         (cbrtl): Define using libm_alias_ldouble.
28311         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28312         <libm-alias-ldouble.h>.
28313         (ceill): Define using libm_alias_ldouble.
28314         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28315         <libm-alias-ldouble.h>.
28316         (copysignl): Define using libm_alias_ldouble.
28317         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28318         <libm-alias-ldouble.h>.
28319         (cosl): Define using libm_alias_ldouble.
28320         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28321         <libm-alias-ldouble.h>.
28322         (erfl): Define using libm_alias_ldouble.
28323         (erfcl): Likewise.
28324         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28325         <libm-alias-ldouble.h>.
28326         (expm1l): Define using libm_alias_ldouble.
28327         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28328         <libm-alias-ldouble.h>.
28329         (fabsl): Define using libm_alias_ldouble.
28330         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28331         <libm-alias-ldouble.h>.
28332         (floorl): Define using libm_alias_ldouble.
28333         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28334         <libm-alias-ldouble.h>.
28335         (fmal): Define using libm_alias_ldouble.
28336         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28337         <libm-alias-ldouble.h>.
28338         (frexpl): Define using libm_alias_ldouble.
28339         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28340         libm_alias_ldouble.
28341         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28342         <libm-alias-ldouble.h>.
28343         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28344         libm_alias_ldouble.
28345         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28346         <libm-alias-ldouble.h>.
28347         (getpayloadl): Define using libm_alias_ldouble.
28348         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28349         <libm-alias-ldouble.h>.
28350         (llrintl): Define using libm_alias_ldouble.
28351         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28352         <libm-alias-ldouble.h>.
28353         (llroundl): Define using libm_alias_ldouble.
28354         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28355         <libm-alias-ldouble.h>.
28356         (logbl): Define using libm_alias_ldouble.
28357         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28358         <libm-alias-ldouble.h>.
28359         (lrintl): Define using libm_alias_ldouble.
28360         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28361         <libm-alias-ldouble.h>.
28362         (lroundl): Define using libm_alias_ldouble.
28363         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28364         <libm-alias-ldouble.h>.
28365         (modfl): Define using libm_alias_ldouble.
28366         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28367         <libm-alias-ldouble.h>.
28368         (nearbyintl): Define using libm_alias_ldouble.
28369         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28370         <libm-alias-ldouble.h>.
28371         (nextafterl): Define using libm_alias_ldouble.
28372         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28373         <libm-alias-ldouble.h>.
28374         (nextupl): Define using libm_alias_ldouble.
28375         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28376         <libm-alias-ldouble.h>.
28377         (remquol): Define using libm_alias_ldouble.
28378         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28379         <libm-alias-ldouble.h>.
28380         (rintl): Define using libm_alias_ldouble.
28381         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28382         <libm-alias-ldouble.h>.
28383         (roundevenl): Define using libm_alias_ldouble.
28384         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28385         <libm-alias-ldouble.h>.
28386         (roundl): Define using libm_alias_ldouble.
28387         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28388         using libm_alias_ldouble.
28389         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28390         <libm-alias-ldouble.h>.
28391         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28392         Define using libm_alias_ldouble.
28393         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28394         <libm-alias-ldouble.h>.
28395         (sincosl): Define using libm_alias_ldouble.
28396         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28397         <libm-alias-ldouble.h>.
28398         (sinl): Define using libm_alias_ldouble.
28399         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28400         <libm-alias-ldouble.h>.
28401         (tanhl): Define using libm_alias_ldouble.
28402         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28403         <libm-alias-ldouble.h>.
28404         (tanl): Define using libm_alias_ldouble.
28405         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28406         <libm-alias-ldouble.h>.
28407         (totalorderl): Define using libm_alias_ldouble.
28408         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28409         <libm-alias-ldouble.h>.
28410         (totalordermagl): Define using libm_alias_ldouble.
28411         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28412         <libm-alias-ldouble.h>.
28413         (truncl): Define using libm_alias_ldouble.
28414         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28415         libm_alias_ldouble.
28416         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28417         libm_alias_ldouble.
28418         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28419         <libm-alias-ldouble.h>.
28420         (weak_alias): Do not undefine and redefine.
28421         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28422         (copysignl): Define with long_double_symbol only if [IS_IN
28423         (libc)].
28424         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28425         <libm-alias-ldouble.h>.
28426         (weak_alias): Do not undefine and redefine.
28427         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28428         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28429         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28430         <libm-alias-ldouble.h>.
28431         (weak_alias): Do not undefine and redefine.
28432         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28433         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28434         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28435         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28436         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28437         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28438         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28439         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28440         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28441         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28442         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28443         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28444         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28445         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28446         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28447         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28448         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28449         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28450         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28451         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28452         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28453         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28454         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28455         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28456         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28457         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28459 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
28461         [BZ #22111]
28462         * malloc/malloc.c (tcache_shutting_down): Use bool type.
28463         (tcache_thread_freeres): Set tcache_shutting_down before
28464         freeing the tcache.
28465         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28466         * malloc/tst-malloc-tcache-leak.c: New file.
28468 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28470         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28471         back to powerpc32 file.
28472         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28473         (memrchr): Add __memrchr_power8 to ifunc list.
28474         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28475         extra bytes for unaligned inputs.
28477 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
28479         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28480         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28481         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28482         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28483         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28485 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28487         * sysdeps/arm/libm-test-ulps: Update.
28489         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28490         <libm-alias-ldouble.h>.
28491         (asinhl): Define using libm_alias_ldouble.
28492         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28493         <libm-alias-ldouble.h>.
28494         (cbrtl): Define using libm_alias_ldouble.
28495         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28496         <libm-alias-ldouble.h>.
28497         (copysignl): Define using libm_alias_ldouble.
28498         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28499         <libm-alias-ldouble.h>.
28500         (cosl): Define using libm_alias_ldouble.
28501         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28502         <libm-alias-ldouble.h>.
28503         (erfl): Define using libm_alias_ldouble.
28504         (erfcl): Likewise.
28505         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28506         <libm-alias-ldouble.h>.
28507         (fmal): Define using libm_alias_ldouble.
28508         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28509         <libm-alias-ldouble.h>.
28510         (frexpl): Define using libm_alias_ldouble.
28511         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28512         libm_alias_ldouble.
28513         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28514         <libm-alias-ldouble.h>.
28515         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28516         libm_alias_ldouble.
28517         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28518         <libm-alias-ldouble.h>.
28519         (getpayloadl): Define using libm_alias_ldouble.
28520         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28521         <libm-alias-ldouble.h>.
28522         (llrintl): Define using libm_alias_ldouble.
28523         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28524         <libm-alias-ldouble.h>.
28525         (llroundl): Define using libm_alias_ldouble.
28526         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28527         <libm-alias-ldouble.h>.
28528         (lrintl): Define using libm_alias_ldouble.
28529         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28530         <libm-alias-ldouble.h>.
28531         (lroundl): Define using libm_alias_ldouble.
28532         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28533         <libm-alias-ldouble.h>.
28534         (modfl): Define using libm_alias_ldouble.
28535         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28536         <libm-alias-ldouble.h>.
28537         (nextupl): Define using libm_alias_ldouble.
28538         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28539         <libm-alias-ldouble.h>.
28540         (remquol): Define using libm_alias_ldouble.
28541         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28542         <libm-alias-ldouble.h>.
28543         (roundevenl): Define using libm_alias_ldouble.
28544         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28545         <libm-alias-ldouble.h>.
28546         (roundl): Define using libm_alias_ldouble.
28547         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28548         using libm_alias_ldouble.
28549         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28550         <libm-alias-ldouble.h>.
28551         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28552         <libm-alias-ldouble.h>.
28553         (setpayloadsigl): Define using libm_alias_ldouble.
28554         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28555         <libm-alias-ldouble.h>.
28556         (sincosl): Define using libm_alias_ldouble.
28557         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28558         <libm-alias-ldouble.h>.
28559         (sinl): Define using libm_alias_ldouble.
28560         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28561         <libm-alias-ldouble.h>.
28562         (tanhl): Define using libm_alias_ldouble.
28563         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28564         <libm-alias-ldouble.h>.
28565         (tanl): Define using libm_alias_ldouble.
28566         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28567         <libm-alias-ldouble.h>.
28568         (totalorderl): Define using libm_alias_ldouble.
28569         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28570         <libm-alias-ldouble.h>.
28571         (totalordermagl): Define using libm_alias_ldouble.
28572         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28573         libm_alias_ldouble.
28574         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28575         libm_alias_ldouble.
28577 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28579         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28580         memmove_falkor.
28581         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28582         (__libc_ifunc_impl_list): Likewise.
28583         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28584         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28586         * benchtests/bench-memmove-walk.c: New file.
28587         * benchtests/Makefile (string-benchset): Add it.
28589         * benchtests/bench-memset-walk.c: New file.
28590         * benchtests/Makefile (string-benchset): Add it.
28592         * benchtests/bench-memcpy-walk.c: New file.
28593         * benchtests/Makefile (string-benchset): Add it.
28595 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28597         nscd: Eliminate compilation time dependency in the build output.
28598         * nscd/nscd_stat.c (STATDATA_VERSION)
28599         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28600         (STATDATA_VERSION_FULL): New macro definitions.
28601         (compilation): Remove.
28602         (struct statdata): Adjust version member.
28603         (send_stats): Set version from STATDATA_VERSION_FULL.
28604         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28606 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28608         * configure.ac (--enable-add-ons): Remove option.
28609         (machine): Do not mention add-ons in comment.
28610         (LIBC_PRECONFIGURE): Likewise.
28611         (add_ons): Remove variable and sanity checks and logic to locate
28612         add-ons.
28613         (add_ons_automatic): Remove variable.
28614         (configured_add_ons): Likewise.
28615         (add_ons_sfx): Likewise.
28616         (add_ons_pfx): Likewise.
28617         (add_on_subdirs): Likewise.
28618         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
28619         consideration of add-ons in Implies handling.
28620         (sysdeps_add_ons): Likewise.
28621         * configure: Regenerated.
28622         * libidn/configure.ac: Remove.
28623         * libidn/configure: Likewise.
28624         * sysdeps/unix/inet/configure.ac: New file.
28625         * sysdeps/unix/inet/configure: New generated file.
28626         * sysdeps/unix/inet/Subdirs: Add libidn.
28627         * Makeconfig (sysdeps-srcdirs): Remove variable.
28628         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28629         ($(common-objpfx)config.status): Do not depend on add-on files.
28630         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28631         comment.
28632         (all-subdirs): Do not include $(add-on-subdirs).
28633         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28634         * config.make.in (add-ons): Remove variable.
28635         (add-on-subdirs): Likewise.
28636         (sysdeps-add-ons): Likewise.
28637         * manual/Makefile (add-chapters): Remove.
28638         ($(objpfx)texis): Do not depend on $(add-chapters).
28639         (nonexamples): Do not handle $(add-chapters).
28640         (examples): Do not handle $(add-ons).
28641         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28642         libc-texinfo.sh.
28643         * manual/install.texi (Installation): Do not mention add-ons.
28644         (--enable-add-ons): Do not document configure option.
28645         * INSTALL: Regenerated.
28646         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28647         * manual/maint.texi (Hierarchy Conventions): Do not mention
28648         add-ons.
28649         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28650         --enable-add-ons.
28651         * scripts/gen-sorted.awk: Do not handle Subdirs files from
28652         add-ons.
28653         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28654         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28656 2017-10-05  Andreas Schwab  <schwab@suse.de>
28658         [BZ #15142]
28659         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
28660         (_IO_flush_all_lockp): Always lock list_all_lock.
28661         (_IO_flush_all_linebuffered): Likewise.
28662         (_IO_unbuffer_all): Likewise.
28664 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28666         [BZ #15436]
28667         Do not flush stdio streams on abort.
28668         * stdlib/abort.c (fflush): Remove macro definition.
28669         (abort): Remove stages related to stdio flushing.
28671 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28673         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28675 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
28677         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28679 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28681         * support/support_format_hostent.c (support_format_hostent): Add
28682         more error information for NETDB_INTERNAL.
28684 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28686         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28687         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28688         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28689         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28690         AC_DEFINE if multi-arch is enabled.
28691         * sysdeps/i386/configure: Regenerated.
28693 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28695         * Makeconfig (+link-static-before-libc): Use
28696         $(DEFAULT-LDFLAGS-$(@F)).
28697         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28698         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28699         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28701 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28703         * elf/Makefile (tests): Add tst-main1.
28704         (modules-names): Add tst-main1mod.
28705         ($(objpfx)tst-main1): New.
28706         (CRT-tst-main1): Likewise.
28707         (LDFLAGS-tst-main1): Likewise.
28708         (LDLIBS-tst-main1): Likewise.
28709         (tst-main1mod.so-no-z-defs): Likewise.
28710         * elf/tst-main1.c: New file.
28711         * elf/tst-main1mod.c: Likewise.
28713 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28715         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28717 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28719         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28720         (fma): Define using libm_alias_double.
28721         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28722         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28723         <math_ldbl_opt.h>.
28724         (fmal): Do not define as compat symbol here.
28725         * sysdeps/alpha/fpu/s_fma.c: New file.
28727 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28729         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28731 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28733         [BZ #22229]
28734         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28735         <math_ldbl_opt.h>
28736         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28737         and libc.
28738         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28739         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28740         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28741         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28743         Include <math_ldbl_opt.h>
28744         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28745         and libc.
28746         (compat_symbol): Undefine and redefine.
28747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28748         <math_ldbl_opt.h>
28749         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28750         (compat_symbol): Undefine and redefine.
28751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28752         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28753         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28754         GLIBC_2_1 for libm.
28755         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28756         GLIBC_2.0 copysignl symbol.
28757         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28758         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28760         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28762 2017-10-04  Florian Weimer  <fweimer@redhat.com>
28764         * scripts/check-local-headers.sh: Ignore nspr4 header file
28765         directory in addition to nspr.
28767 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
28769         [BZ #17956]
28770         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28771         * configure: Regenerate.
28772         * crypt/Makefile (nss-cpp-flags): New variable.
28773         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28774         (CPPFLAGS-md5-crypt.c): Use it.
28775         * scripts/check-local-headers.sh: Ignore nspr header file
28776         directory.
28778 2017-10-04  Andreas Schwab  <schwab@suse.de>
28780         * nis/Makefile (services): Remove compat.
28781         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28782         ($(objpfx)libnss_compat.so): Remove rule.
28783         * nis/Versions (libnss_compat): Remove.
28784         * nss/Makefile (services): Add compat.
28785         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28786         * nss/Versions (libnss_compat): Define.
28787         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28788         Don't include <rpc/types.h>.  Replace bool_t by bool.
28789         * nss/nss_compat/compat-initgroups.c: Likewise.
28790         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
28791         instead of <rpcsrv/ypclnt.h>.
28792         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28793         yp_get_default_domain.
28794         * nss/nss_compat/compat-pwd.c: Likewise.
28795         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28796         yp_get_default_domain.
28797         * nss/nss_compat/nisdomain.c: New file.
28798         * nss/nss_compat/nisdomain.h: Likewise.
28800 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28802         [BZ #22244]
28803         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28804         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28806 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28808         [BZ #22243]
28809         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28810         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28812 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28814         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28815         "movl main@GOTOFF(%ebx), %eax".
28817 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28819         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28820         allow undefined _DYNAMIC in PIE libc.a.
28821         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28822         Likewse.
28824 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28826         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28827         check _DYNAMIC.
28829 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28831         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28832         check _DYNAMIC.
28834 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28836         * math/test-math-iscanonical.cc (error): Replace bool with int.
28838 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28840         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28841         (modf): Define using libm_alias_double, only if [!__modf].
28842         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28843         <libm-alias-double.h>.
28844         (modf): Define using libm_alias_double, only if [!__modf].
28845         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28846         compat symbol here.
28847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28848         (weak_alias): Do not undefine and redefine.
28849         (strong_alias): Likewise.
28850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28851         (weak_alias): Likewise.
28852         (strong_alias): Likewise.
28854         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28855         (logb): Define using libm_alias_double, only if [!__logb].
28856         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28857         <libm-alias-double.h>.
28858         (logb): Define using libm_alias_double, only if [!__logb].
28859         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28861         (weak_alias): Do not undefine and redefine.
28862         (strong_alias): Likewise.
28863         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28864         (weak_alias): Likewise.
28865         (strong_alias): Likewise.
28867 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28869         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28870         Check SHARED instead PIC.
28872 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28874         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28875         [!__fmaf] (fmaf): Define using libm_alias_float.
28877         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28878         (frexp): Define using libm_alias_double.
28879         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28880         <libm-alias-double.h>.
28881         (frexp): Define using libm_alias_double.
28882         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28883         compat symbol here.
28885 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28887         [BZ #22235]
28888         * math/math.h: Trivial fix for unbalanced parentheses in comment.
28889         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28890         (CFLAGS-test-math-iscanonical.cc): New variable.
28891         * math/test-math-iscanonical.cc: New file.
28892         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28893         Provide a C++ implementation based on function overloading,
28894         rather than using __MATH_TG, which uses C-only builtins.
28895         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28896         Likewise.
28897         * sysdeps/powerpc/powerpc64le/Makefile
28898         (CFLAGS-test-math-iscanonical.cc): New variable.
28900 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28902         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28903         (ceil): Define using libm_alias_double.
28904         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28905         (floor): Define using libm_alias_double.
28906         * sysdeps/ieee754/dbl-64/s_llround.c: Include
28907         <libm-alias-double.h>.
28908         (llround): Define using libm_alias_double.
28909         * sysdeps/ieee754/dbl-64/s_lround.c: Include
28910         <libm-alias-double.h>.
28911         (lround): Define using libm_alias_double.
28912         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28913         <libm-alias-double.h>.
28914         (nearbyint): Define using libm_alias_double.
28915         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28916         <libm-alias-double.h>.
28917         (remquo): Define using libm_alias_double.
28918         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28919         (rint): Define using libm_alias_double.
28920         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28921         (round): Define using libm_alias_double.
28922         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28923         (trunc): Define using libm_alias_double.
28924         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28925         <libm-alias-double.h>.
28926         (ceil): Define using libm_alias_double.
28927         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28928         <libm-alias-double.h>.
28929         (floor): Define using libm_alias_double.
28930         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28931         <libm-alias-double.h>.
28932         (llround): Define using libm_alias_double.
28933         [_LP64] (lround): Likewise.
28934         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28935         <libm-alias-double.h>.
28936         [!_LP64] (lround): Define using libm_alias_double.
28937         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28938         <libm-alias-double.h>.
28939         (nearbyint): Define using libm_alias_double.
28940         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28941         <libm-alias-double.h>.
28942         (remquo): Define using libm_alias_double.
28943         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28944         <libm-alias-double.h>.
28945         (rint): Define using libm_alias_double.
28946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28947         <libm-alias-double.h>.
28948         (round): Define using libm_alias_double.
28949         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28950         <libm-alias-double.h>.
28951         (trunc): Define using libm_alias_double.
28952         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28953         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28954         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28955         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28956         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28957         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28958         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28959         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28960         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28962 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28964         * math/w_remainder.c: New file.
28965         * math/w_remainderf.c: New file.
28966         * math/w_remainderl.c: New file.
28968 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28970         * elf/rtld.c (BOOTSTRAP_MAP): New.
28971         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28972         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28973         Likewise.
28974         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28975         Likewise.
28976         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28977         Likewise.
28979 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28981         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28982         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28983         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28984         rtld_hidden_data_ver): Define to empty.
28985         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28986         __assert_perror_fail): Likewise.
28987         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28988         (__rewinddir): Likewise.
28989         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28990         (__profile_frequency): Likewise.
28991         * include/setjmp.h (__sigsetjmp): Likewise.
28992         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28993         __libc_sigaction): Likewise.
28994         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28995         not set hidden attribute.
28996         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28997         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28998         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28999         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
29000         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
29001         __fxstatat64): Likewise.
29002         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29003         (__uname): Likewise.
29004         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29005         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
29006         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
29007         (NO_RTLD_HIDDEN): Set.
29008         * sysdeps/mach/hurd/configure: Refresh.
29009         * config.h.in: Refresh.
29011 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
29013         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
29014         (atan): Define using libm_alias_double.
29015         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
29016         (tan): Define using libm_alias_double.
29017         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
29018         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
29020         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
29021         define as weak alias of __atan.  Do not define any aliases if
29022         [__atan].
29023         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
29024         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
29025         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
29026         as weak alias of __tan.  Do not define any aliases if [__tan].
29027         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
29028         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
29029         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
29030         __atan.
29031         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
29032         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
29033         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
29034         and define as weak alias of __atan.
29035         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
29036         __atan.
29037         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
29038         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
29039         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
29040         define as weak alias of __tan.
29042 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29044         * math/w_lgamma.c: New file.
29045         * math/w_lgammaf.c: New file.
29046         * math/w_lgammal.c: New file.
29048 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29050         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
29051         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
29052         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
29053         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
29054         * sysdeps/ieee754/flt-32/w_logf.c: New file.
29055         * sysdeps/ieee754/flt-32/w_powf.c: New file.
29056         * sysdeps/i386/fpu/w_log2f.c: New file.
29057         * sysdeps/i386/fpu/w_logf.c: New file.
29058         * sysdeps/i386/fpu/w_powf.c: New file.
29059         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
29060         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
29061         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
29063 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29064             H.J. Lu  <hongjiu.lu@intel.com>
29066         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
29067         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
29068         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
29069         * sysdeps/ieee754/flt-32/w_expf.c: New file.
29070         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
29071         the new expf code.
29072         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
29073         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
29074         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
29075         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
29076         * sysdeps/i386/fpu/w_exp2f.c: New file.
29077         * sysdeps/i386/fpu/w_expf.c: New file.
29078         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
29079         * sysdeps/x86_64/fpu/w_expf.c: New file.
29081 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29083         * math/Versions (logf): New libm symbol at GLIBC_2.27.
29084         (log2f): Likewise.
29085         (powf): Likewise.
29086         * math/w_log2f.c: New file.
29087         * math/w_logf.c: New file.
29088         * math/w_powf.c: New file.
29089         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
29090         * math/w_logf_compat.c (__logf_compat): Likewise.
29091         * math/w_powf_compat.c (__powf_compat): Likewise.
29092         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
29093         * sysdeps/ia64/fpu/e_logf.S: Likewise.
29094         * sysdeps/ia64/fpu/e_powf.S: Likewise.
29095         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29096         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29097         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29098         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29099         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29100         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29101         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29102         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29103         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29104         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29105         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29106         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29108         Likewise.
29109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29110         Likewise.
29111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29112         Likewise.
29113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29114         Likewise.
29115         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29116         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29117         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29118         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29119         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29121         Likewise.
29122         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29123         Likewise.
29124         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29125         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29126         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29128 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29130         * sysdeps/powerpc/powerpc64/multiarch/Makefile
29131         (sysdep_routines): Add memrchr_power8.
29132         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29133         (memrchr): Add __memrchr_power8 to list of memrchr functions.
29134         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
29135         New file.
29136         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
29137         (memrchr): Add __memrchr_power8 to ifunc list.
29138         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
29140 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29142         [BZ #18822]
29143         * sysdeps/unix/sysv/linux/posix_fadvise64.c
29144         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
29145         libc_hidden_def.
29146         * sysdeps/unix/sysv/linux/posix_fallocate64.c
29147         (__posix_fallocate64_l64): Likewise.
29149 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29151         [BZ #18822]
29152         * sysdeps/unix/sysv/linux/sched_setaffinity.c
29153         (__sched_setaffinity_new): Add libc_hidden_proto and
29154         libc_hidden_def.
29156 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29158         [BZ #18822]
29159         * include/glob.h (__glob64): Add libc_hidden_proto.
29160         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
29161         libc_hidden_def.
29163 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29165         [BZ #18822]
29166         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
29167         attribute_hidden.
29169 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29171         [BZ #18822]
29172         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
29174 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29176         [BZ #18822]
29177         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
29178         libc_hidden_def.
29180 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29182         [BZ #18822]
29183         * csu/version.c (__libc_print_version): Add attribute_hidden.
29185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29187         [BZ #18822]
29188         * include/libc-internal.h (__init_misc): Add attribute_hidden.
29190 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29192         [BZ #18822]
29193         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
29195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29197         [BZ #18822]
29198         * nscd/nscd_helper.c (__nis_hash): New prototype.
29200 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29202         [BZ #18822]
29203         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
29204         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
29205         libc_hidden_def.
29206         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
29207         * termios/tcgetattr.c (__tcgetattr): Likewise.
29209 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29211         [BZ #18822]
29212         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
29213         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
29214         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
29215         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
29216         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
29218 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29220         [BZ #18822]
29221         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
29223 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29225         [BZ #18822]
29226         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
29227         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
29229 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29231         [BZ #18822]
29232         * intl/hash-string.h (__hash_string): Add attribute_hidden.
29234 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29236         [BZ #18822]
29237         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
29238         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
29240 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29242         [BZ #18822]
29243         * include/ifreq.h: New file.
29244         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
29245         (__ifreq): Likewise.
29246         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
29247         (__ifreq): Likewise.
29249 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29251         [BZ #18822]
29252         * include/idna.h: New file.
29253         * inet/getnameinfo.c: Include <idna.h> instead of
29254         <libidn/idna.h>.
29255         (__idna_to_unicode_lzlz): Removed.
29256         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
29257         <libidn/idna.h>.
29258         (__idna_to_ascii_lz): Removed.
29259         (__idna_to_unicode_lzlz): Likewise.
29261 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29263         [BZ #18822]
29264         * include/plural-exp.h: New file.
29265         * intl/plural-exp.c: Include <plural-exp.h> instead of
29266         "plural-exp.h".
29268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29270         [BZ #18822]
29271         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
29272         "getsourcefilter.h".
29273         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
29274         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
29275         "getsourcefilter.h".
29276         (__get_sol): Removed.
29278 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29280         [BZ #18822]
29281         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
29282         to ...
29283         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
29285 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29287         [BZ #18822]
29288         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
29289         attribute_hidden.
29291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29293         [BZ #18822]
29294         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
29296 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29298         [BZ #18822]
29299         * include/search.h (__tdestroy): Add libc_hidden_proto.
29300         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
29302 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29304         [BZ #18822]
29305         * include/assert.h (__assert_fail_base): Add attribute_hidden.
29307 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29309         [BZ #18822]
29310         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29311         attribute_hidden.
29313 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29315         [BZ #18822]
29316         * include/signal.h (__kill): Add libc_hidden_proto.
29317         (__sigblock): Likewise.
29318         (__sigprocmask): Likewise.
29319         (__sigaltstack): Likewise.
29320         * signal/kill.c (__kill): Add libc_hidden_def.
29321         * signal/sigblock.c (__sigblock): Likewise.
29322         * signal/sigprocmask.c (__sigprocmask): Likewise.
29323         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29324         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29325         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29326         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29327         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29328         Likewise.
29329         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29330         Likewise.
29331         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29332         (__sigprocmask): Likewise.
29333         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29334         Likewise.
29335         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29336         (__sigprocmask): Likewise.
29337         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29338         Likewise.
29340 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29342         [BZ #18822]
29343         * include/string.h (__strsep): Add libc_hidden_proto.
29344         * string/strsep.c (__strsep): Add libc_hidden_def.
29346 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29348         [BZ #18822]
29349         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29350         attribute_hidden.
29351         (__spawni): Likewise.
29353 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29355         [BZ #18822]
29356         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29357         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29358         libc_hidden_def.
29360 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29362         [BZ #18822]
29363         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29365 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29367         [BZ #18822]
29368         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29369         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29370         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29371         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29372         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29373         Likewise.
29374         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29375         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29377 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29379         [BZ #18822]
29380         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29381         (__dcigettext): Likewise.
29383 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29385         [BZ #18822]
29386         * include/sys/sysinfo.h (__get_nprocs_conf): Add
29387         libc_hidden_proto.
29388         (__get_nprocs): Likewise.
29389         (__get_phys_pages): Likewise.
29390         (__get_avphys_pages): Likewise.
29391         (__get_child_max): Add attribute_hidden.
29392         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29393         (__get_nprocs): Likewise.
29394         (__get_phys_pages): Likewise.
29395         (__get_avphys_pages): Likewise.
29396         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29397         libc_hidden_def.
29398         (__get_nprocs): Likewise.
29399         (__get_phys_pages): Likewise.
29400         (__get_avphys_pages): Likewise.
29401         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29402         libc_hidden_def.
29403         (__get_nprocs_conf): Likewise.
29404         (__get_phys_pages): Likewise.
29405         (__get_avphys_pages): Likewise.
29407 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29409         [BZ #18822]
29410         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29411         attribute_hidden.
29412         (__netlink_close): Likewise.
29413         (__netlink_free_handle): Likewise.
29414         (__netlink_request): Likewise.
29416 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29418         [BZ #18822]
29419         * include/rpc/rpc.h (__rpc_thread_variables): Add
29420         attribute_hidden.
29421         (__rpc_thread_svc_cleanup): Likewise.
29422         (__rpc_thread_clnt_cleanup): Likewise.
29423         (__rpc_thread_key_cleanup): Likewise.
29425 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29427         [BZ #18822]
29428         * include/sys/uio.h (__readv): Add libc_hidden_proto.
29429         (__writev): Likewise.
29430         * misc/readv.c (__readv): Add libc_hidden_def.
29431         * misc/writev.c (__writev): Likewise.
29432         * sysdeps/posix/readv.c (__readv): Likewise.
29433         * sysdeps/posix/writev.c (__writev): Likewise.
29434         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29435         (__readv): Likewise.
29436         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29437         (__writev): Likewise.
29439 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29441         [BZ #18822]
29442         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29443         (__regcomp): Add libc_hidden_proto.
29444         (__regexec): Likewise.
29445         (__regfree): Likewise.
29446         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29447         (__regfree): Likewise.
29448         * posix/regexec.c (__regexec): Likewise.
29450 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29452         [BZ #18822]
29453         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29454         (__getutent): Likewise.
29455         (__getutid): Likewise.
29456         (__getutline): Likewise.
29457         (__pututline): Likewise.
29458         (__getutent_r): Likewise.
29459         (__getutid_r): Likewise.
29460         (__getutline_r): Likewise.
29461         (__utmpname): Add attribute_hidden.
29462         (__setutent): Likewise.
29463         (__endutent): Likewise.
29464         * login/getutent.c (__getutent): Add libc_hidden_def.
29465         * login/getutent_r.c (__getutent_r): Likewise.
29466         (__pututline): Likewise.
29467         * login/getutid.c (__getutid): Likewise.
29468         * login/getutid_r.c (__getutid_r): Likewise.
29469         * login/getutline.c (__getutline): Likewise.
29470         * login/getutline_r.c (__getutline_r): Likewise.
29471         * login/updwtmp.c (__updwtmp): Likewise.
29473 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29475         [BZ #18822]
29476         * include/dirent.h (__opendir): Always add attribute_hidden.
29477         (__fdopendir): Likewise.
29478         (__closedir): Likewise.
29479         (__readdir): Likewise.
29480         (__readdir64): Add libc_hidden_proto.
29481         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29482         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29483         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29484         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29485         New alias.
29487 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29489         [BZ #18822]
29490         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29491         * include/netdb.h (__gethostbyaddr_r): Likewise.
29492         (__gethostbyname_r): Likewise.
29493         (__gethostbyname2_r): Likewise.
29494         (__getnetbyaddr_r): Likewise.
29495         (__getnetbyname_r): Likewise.
29496         (__getservbyname_r): Likewise.
29497         (__getservbyport_r): Likewise.
29498         (__getprotobyname_r): Likewise.
29499         (__getprotobynumber_r): Likewise.
29500         (__getnetgrent_r): Likewise.
29501         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29502         (__getrpcbynumber_r): Likewise.
29503         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29505 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29507         [BZ #18822]
29508         * include/stdio.h (__fcloseall): Add attribute_hidden.
29509         (__getline): Likewise.
29510         (__path_search): Likewise.
29511         (__gen_tempname): Likewise.
29512         (__libc_message): Likewise.
29513         (__flockfile): Likewise.
29514         (__funlockfile): Likewise.
29515         (__fxprintf): Likewise.
29516         (__fxprintf_nocancel): Likewise.
29518 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29520         [BZ #18822]
29521         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29522         (__sgetsgent_r): Likewise.
29524 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29526         [BZ #18822]
29527         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29528         (__statfs64): Likewise.
29529         (__fstatfs64): Likewise.
29530         * include/sys/statvfs.h (__statvfs64): Likewise.
29531         (__fstatvfs64): Likewise.
29532         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29533         (__statfs_filesize_max): Likewise.
29534         (__statfs_symlinks): Likewise.
29535         (__statfs_chown_restricted): Likewise.
29537 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29539         [BZ #18822]
29540         * include/time.h (__tzstring): Add attribute_hidden.
29541         (__tzfile_read): Likewise.
29542         (__tzfile_compute): Likewise.
29543         (__tzfile_default): Likewise.
29544         (__tzset_parse_tz): Likewise.
29545         (__offtime): Likewise.
29546         (__asctime_r): Likewise.
29547         (__tzset): Likewise.
29548         (__tz_convert): Likewise.
29549         (__getdate_r): Likewise.
29550         (__getclktck): Likewise.
29552 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29554         [BZ #18822]
29555         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29556         (__nscd_unmap): Likewise.
29557         (__nscd_cache_search): Likewise.
29558         (__nscd_get_nl_timestamp): Likewise.
29559         (__nscd_getpwnam_r): Likewise.
29560         (__nscd_getpwuid_r): Likewise.
29561         (__nscd_getgrnam_r): Likewise.
29562         (__nscd_getgrgid_r): Likewise.
29563         (__nscd_gethostbyname_r): Likewise.
29564         (__nscd_gethostbyname2_r): Likewise.
29565         (__nscd_gethostbyaddr_r): Likewise.
29566         (__nscd_getai): Likewise.
29567         (__nscd_getgrouplist): Likewise.
29568         (__nscd_getservbyname_r): Likewise.
29569         (__nscd_getservbyport_r): Likewise.
29570         (__nscd_innetgr): Likewise.
29571         (__nscd_setnetgrent): Likewise.
29573 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29575         [BZ #18822]
29576         * include/gmp.h: Declare internal functions only if _ISOMAC is
29577         undefined.
29578         (__mpn_extract_double): Add attribute_hidden.
29579         (__mpn_extract_long_double): Likewise.
29580         (__mpn_extract_float128): Likewise.
29581         (__mpn_construct_float): Likewise.
29582         (__mpn_construct_double): Likewise.
29583         (__mpn_construct_long_double): Likewise.
29584         (__mpn_construct_float128): Likewise.
29585         (mpn_add_1): Likewise.
29586         (mpn_addmul_1): Likewise.
29587         (mpn_add_n): Likewise.
29588         (mpn_cmp): Likewise.
29589         (mpn_divrem): Likewise.
29590         (mpn_lshift): Likewise.
29591         (mpn_mul): Likewise.
29592         (mpn_mul_1): Likewise.
29593         (mpn_rshift): Likewise.
29594         (mpn_sub_1): Likewise.
29595         (mpn_submul_1): Likewise.
29596         (mpn_sub_n): Likewise.
29598 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29600         [BZ #18822]
29601         * include/wchar.h (__wcsnlen): Add attribute_hidden.
29602         (__wcscat): Likewise.
29603         (__btowc): Likewise.
29604         (__wcrtomb): Likewise.
29605         (__mbsrtowcs): Likewise.
29606         (__wcsrtombs): Likewise.
29607         (__mbsnrtowcs): Likewise.
29608         (__wcsnrtombs): Likewise.
29609         (__wcsncpy): Likewise.
29610         (__wcpncpy): Likewise.
29611         (__wmemcpy): Likewise.
29612         (__wmempcpy): Likewise.
29613         (__wmemmove): Likewise.
29614         (__wcschrnul): Likewise.
29615         (__vfwscanf): Likewise.
29616         (__vswprintf): Likewise.
29617         (__fwprintf): Likewise.
29618         (__vfwprintf): Likewise.
29620 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29622         [BZ #18822]
29623         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29624         (__getgrgid_r): Likewise.
29625         (__getgrnam_r): Likewise.
29626         * include/pwd.h (__getpwuid_r): Likewise.
29627         (__getpwnam_r): Likewise.
29628         (__fgetpwent_r): Likewise.
29629         * include/shadow.h (__getspnam_r): Likewise.
29630         (__sgetspent_r): Likewise.
29631         (__fgetspent_r): Likewise.
29633 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29635         [BZ #18822]
29636         * include/unistd.h (__access): Add attribute_hidden.
29637         (__lseek64): Likewise.
29638         (__libc_pread64): Likewise.
29639         (__pipe2): Likewise.
29640         (__sleep): Likewise.
29641         (__chdir): Likewise.
29642         (__fchdir): Likewise.
29643         (__getcwd): Likewise.
29644         (__rmdir): Likewise.
29645         (__execvpe): Likewise.
29646         (__execve): Likewise.
29647         (__setsid): Likewise.
29648         (__getuid): Likewise.
29649         (__geteuid): Likewise.
29650         (__getgid): Likewise.
29651         (__getegid): Likewise.
29652         (__getgroups): Likewise.
29653         (__group_member): Likewise.
29654         (__ttyname_r): Likewise.
29655         (__isatty): Likewise.
29656         (__readlink): Likewise.
29657         (__unlink): Likewise.
29658         (__gethostname): Likewise.
29659         (__profil): Likewise.
29660         (__getdtablesize): Likewise.
29661         (__brk): Likewise.
29662         (__ftruncate): Likewise.
29663         (__ftruncate64): Likewise.
29665 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29667         [BZ #18822]
29668         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29669         * argp/argp-fs-xinl.c: Likewise.
29670         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29671         * argp/argp-parse.c: Include <argp.h>.
29672         * argp/argp-xinl.c: Likewise.
29673         * include/argp-fmtstream.h: New file.
29674         * include/argp.h (__argp_error): Add attribute_hidden.
29675         (__argp_failure): Likewise.
29676         (__argp_input): Likewise.
29677         (__argp_state_help): Likewise.
29679 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29681         [BZ #18822]
29682         * include/wchar.h (____wcstof_l_internal): New prototype.
29683         (____wcstod_l_internal): Likewise.
29684         (____wcstold_l_internal): Likewise.
29685         (____wcstol_l_internal): Likewise.
29686         (____wcstoul_l_internal): Likewise.
29687         (____wcstoll_l_internal): Likewise.
29688         (____wcstoull_l_internal): Likewise.
29689         (____wcstof128_l_internal): Likewise.
29690         * sysdeps/ieee754/float128/wcstof128.c
29691         (____wcstof128_l_internal): Removed.
29692         * sysdeps/ieee754/float128/wcstof128_l.c
29693         (____wcstof128_l_internal): Likewise.
29694         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29695         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29696         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29697         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29698         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29699         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29700         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29701         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29702         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29703         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29705 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29707         [BZ #18822]
29708         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29709         instead of <sys/statvfs.h>.
29710         (__internal_statvfs): Removed.
29711         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29712         instead of <sys/statvfs.h>.
29713         (__internal_statvfs64): Removed.
29714         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29715         "internal_statvfs.h" instead of <sys/statvfs.h>.
29716         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29717         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29718         instead of <sys/statvfs.h>.
29719         (__internal_statvfs): Removed.
29720         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29721         instead of <sys/statvfs.h>.
29722         (__internal_statvfs64): Removed.
29724 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29726         [BZ #18822]
29727         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29728         (__gconv_close): Likewise.
29729         (__gconv): Likewise.
29730         (__gconv_find_transform): Likewise.
29731         (__gconv_lookup_cache): Likewise.
29732         (__gconv_compare_alias_cache): Likewise.
29733         (__gconv_load_cache): Likewise.
29734         (__gconv_get_path): Likewise.
29735         (__gconv_close_transform): Likewise.
29736         (__gconv_release_cache): Likewise.
29737         (__gconv_find_shlib): Likewise.
29738         (__gconv_release_shlib): Likewise.
29739         (__gconv_get_builtin_trans): Likewise.
29740         (__gconv_compare_alias): Likewise.
29741         * include/dlfcn.h (_dlerror_run): Likewise.
29742         * include/stdio.h (__fortify_fail_abort): Likewise.
29743         * include/time.h (__tz_compute): Likewise.
29744         (__strptime_internal): Likewise.
29745         * intl/gettextP.h (_nl_find_domain): Likewise.
29746         (_nl_load_domain): Likewise.
29747         (_nl_find_msg): Likewise.
29748         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29749         (EXTRACT_PLURAL_EXPRESSION): Likewise.
29750         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29751         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29752         (__gai_find_request): Likewise.
29753         (__gai_remove_request): Likewise.
29754         (__gai_notify): Likewise.
29755         (__gai_notify_only): Likewise.
29756         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29757         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29758         (_dl_non_dynamic_init): Likewise.
29759         (_dl_aux_init): Likewise.
29760         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29761         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29762         Likewise.
29763         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29764         (__wcsmbs_clone_conv): Likewise.
29765         (__wcsmbs_named_conv): Likewise.
29767 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29769         [BZ #18822]
29770         * include/stdlib.h (__random): Add attribute_hidden.
29771         (__random_r): Likewise.
29772         (__srandom_r): Likewise.
29773         (__initstate_r): Likewise.
29774         (__setstate_r): Likewise.
29775         (__erand48_r): Likewise.
29776         (__nrand48_r): Likewise.
29777         (__jrand48_r): Likewise.
29778         (__srand48_r): Likewise.
29779         (__seed48_r): Likewise.
29780         (__lcong48_r): Likewise.
29781         (__drand48_iterate): Likewise.
29782         (__setenv): Likewise.
29783         (__unsetenv): Likewise.
29784         (__clearenv): Likewise.
29785         (__ptsname_r): Likewise.
29786         (__posix_openpt): Likewise.
29787         (__add_to_environ): Likewise.
29788         (__realpath): Add libc_hidden_proto.
29789         (__ecvt_r): Likewise.
29790         (__fcvt_r): Likewise.
29791         (__qecvt_r): Likewise.
29792         (__qfcvt_r): Likewise.
29793         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29794         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29798         [BZ #18822]
29799         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29800         * include/time.h (__mktime_internal): Likewise.
29801         * libio/iolibio.h (__fopen_internal): Likewise.
29803 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
29805         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29806         pointer in frame.
29807         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29808         Correct offset used to restore PIC register.
29810 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
29812         [BZ libc/22165]
29813         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29814         code to load address of __getcontext_ret when generating PIC code.
29816 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
29818         * elf/Makefile (tests-static-internal): Add
29819         tst-tls1-static-non-pie.
29820         (LDFLAGS-tst-tls1-static-non-pie): New.
29821         * elf/tst-tls1-static-non-pie.c: New file.
29823 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29825         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29826         (asinh): Define using libm_alias_double.
29827         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29828         (cbrt): Define using libm_alias_double.
29829         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29830         <libm-alias-double.h>.
29831         (copysign): Define using libm_alias_double.
29832         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29833         (erf): Define using libm_alias_double.
29834         (erfc): Likewise.
29835         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29836         (expm1): Define using libm_alias_double.
29837         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29838         (fabs): Define using libm_alias_double.
29839         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29840         libm_alias_double.
29841         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29842         <libm-alias-double.h>.
29843         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29844         libm_alias_double.
29845         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29846         <libm-alias-double.h>.
29847         (getpayload): Define using libm_alias_double.
29848         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29849         <libm-alias-double.h>.
29850         (llrint): Define using libm_alias_double.
29851         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29852         (lrint): Define using libm_alias_double.
29853         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29854         <libm-alias-double.h>.
29855         (nextup): Define using libm_alias_double.
29856         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29857         <libm-alias-double.h>.
29858         (roundeven): Define using libm_alias_double.
29859         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29860         libm_alias_double.
29861         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29862         <libm-alias-double.h>.
29863         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29864         using libm_alias_double.
29865         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29866         (cos): Define using libm_alias_double.
29867         (sin): Likewise.
29868         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29869         <libm-alias-double.h>.
29870         (sincos): Define using libm_alias_double.
29871         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29872         (tanh): Define using libm_alias_double.
29873         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29874         <libm-alias-double.h>.
29875         (totalorder): Define using libm_alias_double.
29876         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29877         <libm-alias-double.h>.
29878         (totalordermag): Define using libm_alias_double.
29879         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29880         libm_alias_double.
29881         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29882         libm_alias_double.
29883         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29884         <libm-alias-double.h>.
29885         (getpayload): Define using libm_alias_double.
29886         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29887         <libm-alias-double.h>.
29888         (roundeven): Define using libm_alias_double.
29889         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29890         <libm-alias-double.h>.
29891         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29892         <libm-alias-double.h>.
29893         (totalorder): Define using libm_alias_double.
29894         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29895         <libm-alias-double.h>.
29896         (totalordermag): Define using libm_alias_double.
29897         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29898         libc compat symbol here.
29899         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29900         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29901         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29902         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29903         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29904         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29905         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29906         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29907         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29908         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29910 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29912         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29913         _dl_relocate_static_pie instead of _dl_start to compute load
29914         address in static PIE.  Return 0 if _DYNAMIC is undefined for
29915         static executable.
29917 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29919         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29920         _DYNAMIC is undefined for static executable.
29922 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29924         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29926 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29928         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29930 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29932         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29933         (__ieee754_lgamma_r): Use fabs rather than __fabs.
29934         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29935         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29936         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29937         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29938         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29939         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29940         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29941         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29942         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29943         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29944         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29945         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29946         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29947         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29948         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29950 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29952         * math/bits/cmathcalls.h (cimag): Remove inline.
29953         (creal): Remove inline.
29954         (conj): Remove inline.
29956 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29958         * math/Makefile (type-float-routines): Add e_powf_log2_data.
29959         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29960         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29961         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29962         (issignalingf_inline): Likewise.
29963         (POWF_LOG2_TABLE_BITS): Likewise.
29964         (POWF_LOG2_POLY_ORDER): Likewise.
29965         (POWF_SCALE_BITS): Likewise.
29966         (POWF_SCALE): Likewise.
29967         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29968         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29969         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29971 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29973         * math/Makefile (type-float-routines): Add e_log2f_data.
29974         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29975         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29976         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29977         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29978         * sysdeps/i386/fpu/e_log2f_data.c: New file.
29979         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29980         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29982 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29984         * math/Makefile (type-float-routines): Add e_logf_data.
29985         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29986         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29987         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29988         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29989         * sysdeps/i386/fpu/e_logf_data.c: New file.
29990         * sysdeps/ia64/fpu/e_logf_data.c: New file.
29991         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29993 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
29995         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29996         undefined _DYNAMIC in PIE libc.a.
29997         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29998         Likewse.
30000 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
30002         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
30003         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
30004         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
30005         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
30006         (__signbit): Remove.
30007         (__signbitl): Remove.
30008         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
30009         (__signbit): Remove.
30010         (__signbitl): Remove.
30011         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
30012         (__signbit): Remove.
30013         (__signbitl): Remove.
30014         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
30015         (__signbit): Remove.
30016         (__signbitl): Remove.
30017         * sysdeps/tile/bits/mathinline.h: Delete file.
30018         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
30019         (__signbit): Remove.
30020         (__signbitl): Remove.
30022 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
30024         * math/math.h: Improve handling of C99 isgreater macros.
30025         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
30026         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
30027         * sysdeps/powerpc/bits/mathinline.h: Likewise.
30028         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30029         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
30031 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30033         * sysdeps/aarch64/libm-test-ulps: Update.
30035 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
30037         [BZ #22225]
30038         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
30039         math_opt_barrier on argument when doing arithmetic on it.
30040         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
30041         Likewise.  Use math_force_eval not math_opt_barrier after
30042         arithmetic.
30043         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
30044         math_opt_barrier on argument when doing arithmetic on it.
30045         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
30046         Likewise.
30048 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
30050         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
30051         libc_hidden_def.
30052         (__freeifaddrs): Likewise.
30054 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30056         * include/dirent.h (__dirfd): New declaration.
30057         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
30058         alias.
30059         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
30060         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
30061         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
30062         * include/unistd.h (__revoke): New declaration.
30063         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
30064         alias.
30065         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
30066         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
30067         revoke.
30068         * include/dirent.h (__seekdir): New declaration.
30069         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
30070         redefine as weak alias.
30071         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
30072         of seekdir.
30073         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
30074         and use libc_hidden_def on them.
30075         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
30076         them.
30077         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
30078         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
30079         instead of getifaddrs and freeifaddrs.
30081 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
30083         [BZ #18822]
30084         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
30085         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
30086         (__dso_handle): Remove declaration.
30087         * dlfcn/tstatexit.c (__dso_handle): Removed.
30088         (main): Don't check __dso_handle.
30089         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
30090         (main): Don't check __dso_handle.
30091         * include/dso_handle.h: New file.
30092         * malloc/mtrace.c: Include <dso_handle.h>.
30093         (mtrace): Pass __dso_handle directly.
30094         * nptl/pthread_atfork.c: Include <dso_handle.h>.
30095         (__dso_handle): Remove declaration.
30096         (__pthread_atfork): Pass __dso_handle directly.
30097         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
30098         (__dso_handle): Removed.
30099         * posix/wordexp-test.c: Include <dso_handle.h>.
30100         (__dso_handle): Remove declaration.
30101         (__app_register_atfork): Pass __dso_handle directly.
30102         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
30103         (__dso_handle): Remove declaration.
30104         (at_quick_exit): Pass __dso_handle directly.
30105         * stdlib/atexit.c: Include <dso_handle.h>.
30106         (__dso_handle): Remove declaration.
30107         (atexit): Pass __dso_handle directly.
30108         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
30109         (__dso_handle): Removed.
30111 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30113         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
30114         using VDSO.
30116 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
30118         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
30119         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
30120         values to correct default value for given type.
30122 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
30124         [BZ #22101]
30125         * elf/Makefile (tests): Add tst-debug1.
30126         ($(objpfx)tst-debug1): New.
30127         ($(objpfx)tst-debug1.out): Likewise.
30128         ($(objpfx)tst-debug1mod1.so): Likewise.
30129         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
30130         with p_filesz == 0.
30131         * elf/tst-debug1.c: New file.
30133 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30135         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
30136         Define using __ifunc.
30138 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30140         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
30141         exp2f() values.
30143 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30145         [BZ #22156]
30146         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
30148 2017-09-26  Florian Weimer  <fweimer@redhat.com>
30150         * resolv/Makefile (tests-internal): Fix typo in comment.
30152 2017-09-26  Florian Weimer  <fweimer@redhat.com>
30154         * resolv/nss_dns/dns-host.c: Fix typo in comment.
30156 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30158         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
30159         Use an union instead of a max_align_t array for __space,
30160         so that __space is the same size on all platforms.
30161         * malloc/scratch_buffer_grow_preserve.c
30162         (__libc_scratch_buffer_grow_preserve): Likewise.
30164         [BZ #22183]
30165         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
30166         version to 2.
30167         * posix/Makefile (routines): Add glob-lstat-compat and
30168         glob64-lstat-compat.
30169         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
30170         * posix/glob-lstat-compat.c: New file.
30171         * posix/glob64-lstat-compat.c: Likewise.
30172         * posix/tst-glob_lstat_compat.c: Likewise.
30173         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
30174         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
30175         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
30176         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
30177         Likewise.
30178         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
30179         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30180         * posix/glob.c (glob_lstat): New function.
30181         (glob): Rename to __glob and add versioned symbol to 2.27.
30182         (glob_in_dir): Use glob_lstat.
30183         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
30184         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
30185         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
30186         2.27.
30187         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
30188         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
30189         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
30190         gl_lstat on glob call.
30191         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
30192         and glob64 symbols.
30193         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30194         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
30195         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
30196         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
30197         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
30198         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
30199         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
30200         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
30201         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
30202         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30203         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30204         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
30205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
30206         Likewise.
30207         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
30208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
30209         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30210         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30211         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
30212         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30213         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30214         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
30215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
30216         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
30217         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
30218         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
30220 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
30222         * configure.ac (AS): Require binutils 2.25 or later.
30223         * configure: Regenerated.
30225 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
30227         [BZ #22207]
30228         * stdlib/test-atexit-race-common.c (do_test): Minimize required
30229         VM size.
30231 2017-09-25  DJ Delorie  <dj@redhat.com>
30233         [BZ #22161]
30234         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
30235         resetting timeout.
30237 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
30239         * sysdeps/ieee754/dbl-64/sincos32.h
30240         [SINCCOS32_H]: Remove define.
30241         [SINCOS32_H]: Define.
30243 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30245         * math/Versions (expf): New libm symbol at GLIBC_2.27.
30246         (exp2f): Likewise.
30247         * math/w_exp2f.c: New file.
30248         * math/w_expf.c: New file.
30249         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
30250         * math/w_expf_compat.c (__expf_compat): Likewise.
30251         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
30252         * sysdeps/ia64/fpu/e_expf.S: Likewise.
30253         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30254         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30255         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30256         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30257         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30258         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30259         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30260         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30261         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30262         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30263         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30264         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30266         Likewise.
30267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30268         Likewise.
30269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30270         Likewise.
30271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30272         Likewise.
30273         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30274         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30275         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30276         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30277         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30279         Likewise.
30280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30281         Likewise.
30282         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30283         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30284         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30286 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30288         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
30289         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
30290         (roundtoint, converttoint): Likewise.
30291         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
30292         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
30293         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
30294         * sysdeps/ieee754/flt-32/math_config.h: New file.
30295         * sysdeps/ieee754/flt-32/math_errf.c: New file.
30296         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
30297         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
30298         * sysdeps/i386/fpu/math_errf.c: New file.
30299         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
30300         * sysdeps/ia64/fpu/math_errf.c: New file.
30301         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
30302         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
30304 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30306         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30307         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30308         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30309         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30310         to make sure that these symbols are defined.
30311         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30312         of <limits.h>
30313         (__need_NULL): Do not define.
30314         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30315         alignment.
30316         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30317         CMGROUP_MAX, cmsgcred): Do not define.
30318         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30319         NULL.
30320         * bits/socket.h: Likewise.
30321         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30322         __gettimeofday instead of gettimeofday.
30323         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30324         instead of settimeofday.
30326 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30328         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30329         (asinhf): Define using libm_alias_float.
30330         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30331         (atanf): Define using libm_alias_float.
30332         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30333         (cbrtf): Define using libm_alias_float.
30334         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30335         (ceilf): Define using libm_alias_float.
30336         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30337         <libm-alias-float.h>.
30338         (copysignf): Define using libm_alias_float.
30339         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30340         (cosf): Define using libm_alias_float.
30341         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30342         (erff): Define using libm_alias_float.
30343         (erfcf): Likewise.
30344         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30345         (expm1f): Define using libm_alias_float.
30346         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30347         (fabsf): Define using libm_alias_float.
30348         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30349         (floorf): Define using libm_alias_float.
30350         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30351         (frexpf): Define using libm_alias_float.
30352         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30353         libm_alias_float.
30354         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30355         <libm-alias-float.h>.
30356         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30357         libm_alias_float.
30358         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30359         <libm-alias-float.h>.
30360         (getpayloadf): Define using libm_alias_float.
30361         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30362         <libm-alias-float.h>.
30363         (llrintf): Define using libm_alias_float.
30364         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30365         <libm-alias-float.h>.
30366         (llroundf): Define using libm_alias_float.
30367         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30368         (logbf): Define using libm_alias_float.
30369         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30370         (lrintf): Define using libm_alias_float.
30371         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30372         (lroundf): Define using libm_alias_float.
30373         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30374         (modff): Define using libm_alias_float.
30375         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30376         <libm-alias-float.h>.
30377         (nearbyintf): Define using libm_alias_float.
30378         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30379         <libm-alias-float.h>.
30380         (nextafterf): Define using libm_alias_float.
30381         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30382         <libm-alias-float.h>.
30383         (nextupf): Define using libm_alias_float.
30384         * sysdeps/ieee754/flt-32/s_remquof.c: Include
30385         <libm-alias-float.h>.
30386         (remquof): Define using libm_alias_float.
30387         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30388         (rintf): Define using libm_alias_float.
30389         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30390         <libm-alias-float.h>.
30391         (roundevenf): Define using libm_alias_float.
30392         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30393         (roundf): Define using libm_alias_float.
30394         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30395         using libm_alias_float.
30396         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30397         <libm-alias-float.h>.
30398         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30399         Define using libm_alias_float.
30400         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30401         <libm-alias-float.h>.
30402         (sincosf): Define using libm_alias_float.
30403         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30404         (sinf): Define using libm_alias_float.
30405         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30406         (tanf): Define using libm_alias_float.
30407         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30408         (tanhf): Define using libm_alias_float.
30409         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30410         <libm-alias-float.h>.
30411         (totalorderf): Define using libm_alias_float.
30412         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30413         <libm-alias-float.h>.
30414         (totalordermagf): Define using libm_alias_float.
30415         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30416         (truncf): Define using libm_alias_float.
30417         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30418         libm_alias_float.
30419         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30420         libm_alias_float.
30422 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30424         [BZ #22146]
30425         math/math.h: Let fpclassify use the builtin in C++ mode, even
30426         when optimazing for size.
30428 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30430         * csu/Makefile (generated): Do not add version-info.h.
30431         (before-compile): Likewise.
30432         (all-Banner-files): Remove variable.
30433         ($(objpfx)version-info.h): Remove rule.
30434         * csu/version.c (banner): Do not include "version-info.h".
30435         * libidn/Banner: Remove.
30436         * manual/contrib.texi (Simon Josefsson): New entry.
30438 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30440         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30441         Remove conditionals on LDBL_MANT_DIG.
30442         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30443         (__ieee754_lgammal_r): Likewise.
30445 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30447         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30448         _Float128 and L().
30449         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30450         _Float128 and L(). Replace _Float128 with long double and L(x)
30451         with xL, throughout the file.
30452         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30453         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30454         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30455         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30457 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30459         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30460         sysdeps/ieee754/ldbl-128ibm.
30461         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30462         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30463         of including it.  Keep _Float128 and L() intact.  These will be
30464         reviewed by a separate patch.
30465         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30466         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30467         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30468         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30470 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30473         (__finitef128): Define to __redirect___finitef128.
30474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30475         (__isinff128): Define to __redirect___isinff128.
30476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30477         (__isnanf128): Define to __redirect___isnanf128.
30479 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30481         * sysdeps/powerpc/powerpc64le/Makefile
30482         (CFLAGS-tst-strtod-nan-locale.c): New variable.
30483         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30485 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
30486             Carlos O'Donell  <carlos@redhat.com>
30488         [BZ #22180]
30489         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30490         * stdlib/test-dlclose-exit-race.c: New file.
30491         * stdlib/test-dlclose-exit-race-helper.c: New file.
30492         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30494 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
30496         * crypt/Banner: Remove file.
30497         * nptl/Banner: Likewise.
30498         * resolv/Banner: Likewise.
30499         * soft-fp/Banner: Likewise.
30500         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30501         ($(objpfx)version.d): Remove dependency on banner.h.
30502         ($(objpfx)version.os): Likewise.
30503         * nptl/version.c (banner): Do not include banner.h.
30504         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30505         Jelinek and BIND code.
30507 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30508             Carlos O'Donell  <carlos@redhat.com>
30510         * support/xdlfcn.h: New file.
30511         * support/xdlfcn.c: New file.
30512         * support/Makefile (libsupport-routines): Add xdlfcn.
30513         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30515 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
30517         [BZ #20142]
30518         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30519         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30520         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30521         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30522         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30523         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30524         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30525         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30527 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30528             Ricky Zhou  <rickyz@google.com>
30529             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
30531         [BZ #14333]
30532         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30533         Remove atomics.
30534         (__new_exitfn): Fail registration when we finished at_exit processing.
30535         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30536         * stdlib/on_exit.c (__on_exit): Likewise.
30537         * stdlib/exit.c (__exit_funcs_done): New variable.
30538         (__run_exit_handlers): Use __exit_funcs_lock.
30539         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30540         declarations.
30541         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30542         (test-cxa_atexit-race, test-on_exit-race): New tests.
30543         * stdlib/test-atexit-race-common.c: New file.
30544         * stdlib/test-atexit-race.c: New file.
30545         * stdlib/test-at_quick_exit-race.c: New file.
30546         * stdlib/test-cxa_atexit-race.c: New file.
30547         * stdlib/test-on_exit-race.c: New file.
30549 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30551         * benchtests/Makefile: Add exp2f and log2f benchmarks.
30552         * benchtests/exp2f-inputs: Copy of expf-inputs.
30553         * benchtests/log2f-inputs: Copy of logf-inputs.
30555 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30557         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30558         Explicitly take address of first element of array arguments in
30559         call to INLINE_SYSCALL.
30561 2017-09-19  Andreas Schwab  <schwab@suse.de>
30563         [BZ #22134]
30564         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30565         execveat first.
30566         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30567         unimplemented.
30568         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30569         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30570         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30571         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30572         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30573         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30574         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30575         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30576         * posix/Makefile (tests): Add tst-fexecve.
30577         * posix/tst-fexecve.c: New file.
30579 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30581         * benchtests/Makefile: Add logf benchmark.
30582         * benchtests/logf-inputs: Add reduced trace from wrf_r.
30584 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30586         * benchtests/Makefile: Add expf benchmark.
30587         * benchtests/expf-inputs: Add reduced trace from wrf_r.
30589 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30591         * csu/Makefile: Add -funwind-tables to libc-start.c.
30592         * debug/Makefile: Add -funwind-tables to backtrace.c.
30593         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30594         * sysdeps/arm/Makefile: Likewise.
30595         * sysdeps/i386/Makefile: Likewise.
30596         * sysdeps/m68k/Makefile: Likewise.
30597         * sysdeps/mips/Makefile: Likewise.
30598         * sysdeps/nios2/Makefile: Likewise.
30599         * sysdeps/sh/Makefile: Likewise.
30600         * sysdeps/sparc/Makefile: Likewise.
30602 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30604         * benchtests/Makefile (bench-math): Add trunc and truncf.
30605         (CFLAGS-bench-trunc.c): New variable.
30606         (CFLAGS-bench-truncf.c): Likewise.
30607         * benchtests/trunc-inputs: New file.
30608         * benchtests/truncf-inputs: Likewise.
30610 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30612         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30614 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
30616         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30617         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30618         redefine.
30619         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30620         (exp10l): Define as weak alias.
30621         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30622         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30623         and redefine.
30624         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30625         (remainderl): Define as weak alias.
30627         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30628         (fmal): Define using libm_alias_ldouble.
30629         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30630         (acoshl): Define using libm_alias_ldouble.
30631         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30632         (acosl): Define using libm_alias_ldouble.
30633         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30634         (asinl): Define using libm_alias_ldouble.
30635         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30636         (atan2l): Define using libm_alias_ldouble.
30637         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30638         (atanhl): Define using libm_alias_ldouble.
30639         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30640         (coshl): Define using libm_alias_ldouble.
30641         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30642         (exp10l): Define using libm_alias_ldouble.
30643         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30644         (exp2l): Define using libm_alias_ldouble.
30645         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30646         (expl): Define using libm_alias_ldouble.
30647         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30648         (fmodl): Define using libm_alias_ldouble.
30649         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30650         (hypotl): Define using libm_alias_ldouble.
30651         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30652         (j0l): Define using libm_alias_ldouble.
30653         (y0l): Likewise.
30654         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30655         (j1l): Define using libm_alias_ldouble.
30656         (y1l): Likewise.
30657         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30658         (jnl): Define using libm_alias_ldouble.
30659         (ynl): Likewise.
30660         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30661         (log10l): Define using libm_alias_ldouble.
30662         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30663         (log2l): Define using libm_alias_ldouble.
30664         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30665         (logl): Define using libm_alias_ldouble.
30666         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30667         (powl): Define using libm_alias_ldouble.
30668         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30669         (remainderl): Define using libm_alias_ldouble.
30670         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30671         (sinhl): Define using libm_alias_ldouble.
30672         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30673         (sqrtl): Define using libm_alias_ldouble.
30674         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30675         (tgammal): Define using libm_alias_ldouble.
30676         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30677         (exp10l): Do not use long_double_symbol here.
30678         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30679         [LIBM_SVID_COMPAT] (remainderl): Likewise.
30680         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30681         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30682         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30683         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30684         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30685         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30686         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30687         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30688         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30689         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30690         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30691         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30692         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30693         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30694         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30695         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30696         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30697         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30698         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30699         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30701 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
30703         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30704         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30706 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30708         * io/read.c (read): Add libc_hidden_weak.
30709         * sysdeps/mach/hurd/read.c (read): Likewise.
30710         * io/write.c (write): Likewise.
30711         * sysdeps/mach/hurd/write.c (write): Likewise.
30712         * io/pread64.c (__pread64): Likewise.
30713         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30714         * posix/pread64.c (__pread64): Add libc_hidden_def.
30716 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30718         * benchtests/scripts/compare_strings.py: New option -g.
30719         (draw_graph): Print a message that a graph is being generated.
30720         (process_results): Generate graph only if -g is passed.
30721         (main): Process option -g.
30723         * benchtests/scripts/compare_strings.py (process_results):
30724         Better spacing for output.
30726         * benchtests/scripts/compare_strings.py: Use argparse.
30727         * benchtests/README: Document existence of compare_strings.py.
30729 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30731         * math/s_fma.c: Include <libm-alias-double.h>.
30732         (fma): Define using libm_alias_double.
30733         * math/s_nextafter.c: Include <libm-alias-double.h>.
30734         (nextafter): Define using libm_alias_double.
30735         * math/w_acos_compat.c: Include <libm-alias-double.h>.
30736         (acos): Define using libm_alias_double.
30737         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30738         (aocsh): Define using libm_alias_double.
30739         * math/w_asin_compat.c: Include <libm-alias-double.h>.
30740         (asin): Define using libm_alias_double.
30741         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30742         (atan2): Define using libm_alias_double.
30743         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30744         (atanh): Define using libm_alias_double.
30745         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30746         (cosh): Define using libm_alias_double.
30747         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30748         (exp10): Define using libm_alias_double.
30749         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30750         (exp2): Define using libm_alias_double.
30751         * math/w_exp_compat.c: Include <libm-alias-double.h>.
30752         (exp): Define using libm_alias_double.
30753         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30754         (fmod): Define using libm_alias_double.
30755         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30756         (hypot): Define using libm_alias_double.
30757         * math/w_j0_compat.c: Include <libm-alias-double.h>.
30758         (j0): Define using libm_alias_double.
30759         (y0): Likewise.
30760         * math/w_j1_compat.c: Include <libm-alias-double.h>.
30761         (j1): Define using libm_alias_double.
30762         (y1): Likewise.
30763         * math/w_jn_compat.c: Include <libm-alias-double.h>.
30764         (jn): Define using libm_alias_double.
30765         (yn): Likewise.
30766         * math/w_log10_compat.c: Include <libm-alias-double.h>.
30767         (log10): Define using libm_alias_double.
30768         * math/w_log2_compat.c: Include <libm-alias-double.h>.
30769         (log2): Define using libm_alias_double.
30770         * math/w_log_compat.c: Include <libm-alias-double.h>.
30771         (log): Define using libm_alias_double.
30772         * math/w_pow_compat.c: Include <libm-alias-double.h>.
30773         (pow): Define using libm_alias_double.
30774         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30775         (remainder): Define using libm_alias_double.
30776         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30777         (sinh): Define using libm_alias_double.
30778         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30779         (sqrt): Define using libm_alias_double.
30780         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30781         (tgamma): Define using libm_alias_double.
30782         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30783         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30784         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30785         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30786         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30787         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30788         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30789         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30790         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30791         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30792         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30793         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30794         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30795         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30796         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30797         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30798         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30799         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30800         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30801         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30802         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30803         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30804         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30805         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30806         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30808         * math/e_acoshl.c: Remove.
30809         * math/e_acosl.c: Likewise.
30810         * math/e_asinl.c: Likewise.
30811         * math/e_atan2l.c: Likewise.
30812         * math/e_atanhl.c: Likewise.
30813         * math/e_coshl.c: Likewise.
30814         * math/e_expl.c: Likewise.
30815         * math/e_fmodl.c: Likewise.
30816         * math/e_gammal_r.c: Likewise.
30817         * math/e_hypotl.c: Likewise.
30818         * math/e_j0l.c: Likewise.
30819         * math/e_j1l.c: Likewise.
30820         * math/e_jnl.c: Likewise.
30821         * math/e_lgammal_r.c: Likewise.
30822         * math/e_log10l.c: Likewise.
30823         * math/e_log2l.c: Likewise.
30824         * math/e_logl.c: Likewise.
30825         * math/e_powl.c: Likewise.
30826         * math/e_rem_pio2l.c: Likewise.
30827         * math/e_sinhl.c: Likewise.
30828         * math/e_sqrtf128.c: Likewise.
30829         * math/e_sqrtl.c: Likewise.
30830         * math/k_cosl.c: Likewise.
30831         * math/k_sinl.c: Likewise.
30832         * math/k_tanl.c: Likewise.
30833         * math/s_asinhl.c: Likewise.
30834         * math/s_atanl.c: Likewise.
30835         * math/s_cbrtl.c: Likewise.
30836         * math/s_erfl.c: Likewise.
30837         * math/s_expm1l.c: Likewise.
30838         * math/s_log1pl.c: Likewise.
30839         * math/s_tanhl.c: Likewise.
30841 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30843         [BZ #21745]
30844         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30845         [$(subdir) = math] (sysdep_calls): New variable.  Has the
30846         previous contents of sysdep_routines, but re-sorted..
30847         [$(subdir) = math] (sysdep_routines): Re-use the contents from
30848         sysdep_calls.
30849         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30850         defined in sysdep_calls and replace by the respective m_* names.
30851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30852         (compat_symbol): Undefine to avoid duplicated compat symbols in
30853         libc.
30855 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30857         * math/s_fmaf.c: Include <libm-alias-float.h>.
30858         (fmaf): Define using libm_alias_float.
30859         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30860         (acosf): Define using libm_alias_float.
30861         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30862         (acoshf): Define using libm_alias_float.
30863         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30864         (asinf): Define using libm_alias_float.
30865         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30866         (atan2f): Define using libm_alias_float.
30867         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30868         (atanhf): Define using libm_alias_float.
30869         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30870         (coshf): Define using libm_alias_float.
30871         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30872         (exp10f): Define using libm_alias_float.
30873         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30874         (fmodf): Define using libm_alias_float.
30875         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30876         (hypotf): Define using libm_alias_float.
30877         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30878         (j0f): Define using libm_alias_float.
30879         (y0f): Likewise.
30880         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30881         (j1f): Define using libm_alias_float.
30882         (y1f): Likewise.
30883         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30884         (jnf): Define using libm_alias_float.
30885         (ynf): Likewise.
30886         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30887         (log10f): Define using libm_alias_float.
30888         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30889         (log2f): Define using libm_alias_float.
30890         * math/w_logf_compat.c: Include <libm-alias-float.h>.
30891         (logf): Define using libm_alias_float.
30892         * math/w_powf_compat.c: Include <libm-alias-float.h>.
30893         (powf): Define using libm_alias_float.
30894         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30895         (remainderf): Define using libm_alias_float.
30896         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30897         (sinhf): Define using libm_alias_float.
30898         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30899         (sqrtf): Define using libm_alias_float.
30900         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30901         (tgammaf): Define using libm_alias_float.
30903 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30905         * include/math.h (roundeven): Change hidden_proto call to
30906         __roundeven.
30907         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30908         alias.
30909         [NO_LONG_DOUBLE] (__j0l): New strong alias.
30910         (y0): Rename to __y0 and define as weak alias.
30911         [NO_LONG_DOUBLE] (__y0l): New strong alias.
30912         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30913         alias.
30914         (y0f): Rename to __y0f and define as weak alias.
30915         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30916         alias.
30917         [NO_LONG_DOUBLE] (__j1l): New strong alias.
30918         (y1): Rename to __y1 and define as weak alias.
30919         [NO_LONG_DOUBLE] (__y1l): New strong alias.
30920         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30921         alias.
30922         (y1f): Rename to __y1f and define as weak alias.
30923         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30924         alias.
30925         [NO_LONG_DOUBLE] (__jnl): New strong alias.
30926         (yn): Rename to __yn and define as weak alias.
30927         [NO_LONG_DOUBLE] (__ynl): New strong alias.
30928         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30929         alias.
30930         (ynf): Rename to __ynf and define as weak alias.
30931         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30932         (fromfp): Define as weak alias.
30933         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30934         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30935         (fromfpx): Define as weak alias.
30936         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30937         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30938         __getpayload and define as weak alias.
30939         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30940         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30941         __roundeven and define as weak alias.
30942         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30943         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30944         __setpayload.
30945         (setpayload): Define as weak alias.
30946         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30947         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30948         __setpayloadsig.
30949         (setpayloadsig): Define as weak alias.
30950         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30951         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30952         __totalorder and define as weak alias.
30953         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30954         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30955         to __totalordermag and define as weak alias.
30956         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30957         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30958         (ufromfp): Define as weak alias.
30959         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30960         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30961         __ufromfpx.
30962         (ufromfpx): Define as weak alias.
30963         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30964         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30965         Rename to __getpayload and define as weak alias.
30966         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30967         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30968         Rename to __roundeven and define as weak alias.
30969         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30970         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30971         Rename to __totalorder and define as weak alias.
30972         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30973         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30974         (totalordermag): Rename to __totalordermag and define as weak
30975         alias.
30976         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30977         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30978         macro.
30979         (__roundevenl): Likewise.
30980         (__totalorderl): Likewise.
30981         (__totalordermagl): Likewise
30982         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30983         __fromfpf128.
30984         (fromfpf128): Define as weak alias.
30985         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30986         __fromfpxf128.
30987         (fromfpxf128): Define as weak alias.
30988         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30989         __setpayloadf128.
30990         (setpayloadf128): Define as weak alias.
30991         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30992         __setpayloadsigf128.
30993         (setpayloadsigf128): Define as weak alias.
30994         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30995         __ufromfpf128.
30996         (ufromfpf128): Define as weak alias.
30997         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30998         __ufromfpxf128.
30999         (ufromfpxf128): Define as weak alias.
31000         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
31001         (fromfpf): Define as weak alias.
31002         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
31003         __fromfpxf.
31004         (fromfpxf): Define as weak alias.
31005         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
31006         __getpayloadf and define as weak alias.
31007         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
31008         __roundevenf and define as weak alias.
31009         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
31010         __setpayloadf.
31011         (setpayloadf): Define as weak alias.
31012         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
31013         __setpayloadsigf.
31014         (setpayloadsigf): Define as weak alias.
31015         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
31016         __totalorderf and define as weak alias.
31017         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
31018         Rename to __totalordermagf and define as weak alias.
31019         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
31020         __ufromfpf.
31021         (ufromfpf): Define as weak alias.
31022         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
31023         __ufromfpxf.
31024         (ufromfpxf): Define as weak alias.
31025         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
31026         __fromfpl.
31027         (fromfpl): Define as weak alias.
31028         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
31029         __fromfpxl.
31030         (fromfpxl): Define as weak alias.
31031         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
31032         to __getpayloadl and define as weak alias.
31033         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
31034         __roundevenl and define as weak alias.
31035         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
31036         __setpayloadl.
31037         (setpayloadl): Define as weak alias.
31038         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
31039         __setpayloadsigl.
31040         (setpayloadsigl): Define as weak alias.
31041         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
31042         to __totalorderl and define as weak alias.
31043         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
31044         Rename to __totalordermagl and define as weak alias.
31045         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
31046         __ufromfpl.
31047         (ufromfpl): Define as weak alias.
31048         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
31049         __ufromfpxl.
31050         (ufromfpxl): Define as weak alias.
31051         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
31052         __fromfpl.
31053         (fromfpl): Define as weak alias.
31054         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
31055         __fromfpxl.
31056         (fromfpxl): Define as weak alias.
31057         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
31058         Rename to __getpayloadl and define as weak alias.
31059         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
31060         to __roundevenl and define as weak alias.  Call __roundeven
31061         instead of roundeven.
31062         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
31063         __setpayloadl.
31064         (setpayloadl): Define as weak alias.
31065         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
31066         __setpayloadsigl.
31067         (setpayloadsigl): Define as weak alias.
31068         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
31069         Rename to __totalorderl and define as weak alias.
31070         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
31071         Rename to __totalordermagl and define as weak alias.
31072         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
31073         __ufromfpl.
31074         (ufromfpl): Define as weak alias.
31075         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
31076         __ufromfpxl.
31077         (ufromfpxl): Define as weak alias.
31078         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
31079         __fromfpl.
31080         (fromfpl): Define as weak alias.
31081         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
31082         __fromfpxl.
31083         (fromfpxl): Define as weak alias.
31084         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
31085         __getpayloadl and define as weak alias.
31086         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
31087         __roundevenl and define as weak alias.
31088         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
31089         __setpayloadl.
31090         (setpayloadl): Define as weak alias.
31091         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
31092         __setpayloadsigl.
31093         (setpayloadsigl): Define as weak alias.
31094         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
31095         __totalorderl and define as weak alias.
31096         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
31097         Rename to __totalordermagl and define as weak alias.
31098         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
31099         __ufromfpl.
31100         (ufromfpl): Define as weak alias.
31101         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
31102         __ufromfpxl.
31103         (ufromfpxl): Define as weak alias.
31105 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31107         * benchtests/bench-string.h (realloc_bufs): New function.
31108         (test_init): Call it.
31109         * benchtests/bench-memset-large.c (do_test): Likewise.
31110         * benchtests/bench-memset.c (do_test): Likewise.
31112         * benchtests/bench-memset-large.c: Print output in JSON
31113         format.
31114         * benchtests/bench-memset.c: Likewise.
31116 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
31118         [BZ #21084]
31119         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
31120         * iconvdata/Makefile: Add IBM858.
31121         * iconvdata/gconv-modules: Likewise.
31122         * iconvdata/tst-tables.sh: Likewise.
31123         * iconvdata/ibm858.c: New file.
31124         * localedata/charmaps/IBM858: Likewise.
31126 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
31128         [BZ #22023]
31129         * locales/niu_NZ (LC_TIME): copy "niu_NU".
31130         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
31132 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
31134         [BZ #22112]
31135         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
31136         and add tel_int_fmt.
31138 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
31140         * sysdeps/generic/libm-alias-float128.h: New file.
31141         * sysdeps/generic/math-type-macros-float128.h: Include
31142         <libm-alias-float128.h>.
31143         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31145 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31147         * sysdeps/generic/libm-alias-ldouble.h: New file.
31148         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
31149         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
31150         * sysdeps/generic/math-type-macros-ldouble.h: Include
31151         <libm-alias-ldouble.h>.
31152         [!declare_mgen_alias] (declare_mgen_alias): Define to use
31153         libm_alias_ldouble.
31155 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31157         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
31158         * math/w_exp_compat.c: ... here.
31159         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
31160         * math/w_expf_compat.c: ... here.
31161         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
31162         * math/w_expl_compat.c: ... here.
31163         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
31164         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
31165         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
31166         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
31168 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31170         * math/w_scalbln_template.c (strong_alias): Do not undefine and
31171         redefine.
31172         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
31173         macro.
31174         (ldexpl): Only define as compat symbol for libc, not libm.
31175         (scalbnl): Define as compat symbol for libc here.
31176         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
31177         define for [IS_IN (libc)].
31178         (__ldexpl_2): Remove alias.
31179         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
31180         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
31181         name in long_double_symbol call.
31182         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
31183         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
31184         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
31185         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
31186         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
31187         Remove macro.
31188         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
31189         Define as compat symbol.
31191 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31193         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
31194         * sysdeps/unix/sysv/linux/alpha/Makefile
31195         [$(subdir) = csu] (sysdep_routines): Remove rule.
31197 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31199         * sysdeps/generic/libm-alias-double.h: New file.
31200         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
31201         * sysdeps/generic/math-type-macros-double.h: Include
31202         <libm-alias-double.h>.
31203         [declare_mgen_alias] (declare_mgen_alias): Define to use
31204         libm_alias_double.
31205         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
31206         (M_LIBM_NEED_COMPAT): Remove macro.
31207         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
31208         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
31209         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
31210         code.
31211         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31212         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31213         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31214         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31215         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31216         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31217         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31218         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31219         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31220         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31221         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31222         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31223         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31224         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31225         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31226         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31227         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31228         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31229         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31230         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31231         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31232         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31233         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31234         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31235         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31236         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31237         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31238         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
31239         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
31240         macro.
31241         (declare_mgen_alias): New macro.
31242         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
31243         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
31244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
31245         (M_LIBM_NEED_COMPAT): Remove macro.
31246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
31247         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
31248         <first-versions.h>.
31249         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
31250         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
31252 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
31254         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
31255         (declare_mgen_alias_2): Remove.
31256         * sysdeps/generic/math-type-macros-double.h
31257         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
31258         Likewise.
31259         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
31260         alias.
31261         (ldexp): Define with declare_mgen_alias.
31262         (scalbn): Likewise.
31264 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
31266         * grp/initgroups.c: Include config.h.
31267         (DEFAULT_CONFIG): New macro.
31268         (internal_getgrouplist): Use DEFAULT_CONFIG.
31269         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31270         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
31271         (DEFAULT_DEFCONFIG): New macro.
31272         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
31273         * nss/grp-lookup.c: Include config.h
31274         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
31275         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
31276         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
31277         * manual/nss.texi: Update default values section.
31279 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
31281         [BZ #21967]
31282         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
31283         New.
31284         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
31285         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31286         Handle MathVec_Prefer_No_AVX512.
31287         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
31288         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
31289         is set.
31291 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31293         * posix/sched_primax.c (__sched_get_priority_max): Add
31294         libc_hidden_def.
31295         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
31296         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31297         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31298         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
31299         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
31300         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
31301         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
31302         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
31303         Add aliases.
31305 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
31307         * sysdeps/generic/libm-alias-float.h: New file.
31308         * sysdeps/generic/math-type-macros-float.h: Include
31309         <libm-alias-float.h>.
31310         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31312 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
31314         [BZ #22093]
31315         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31316         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31317         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31318         (HWCAP_IMPORTANT): Likewise.
31319         (HWCAP_X86_64): New enum.
31320         (HWCAP_X86_AVX512_1): Updated.
31321         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31322         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31323         (modules-names): Add x86_64/tst-x86_64mod-1.
31324         (LDFLAGS-tst-x86_64mod-1.so): New.
31325         ($(objpfx)tst-x86_64-1): Likewise.
31326         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31327         (tst-x86_64-1-clean): Likewise.
31328         * sysdeps/x86_64/tst-x86_64-1.c: New file.
31329         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31331 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31333         * po/sv.po: Update translations.
31334         * po/fr.po: Likewise.
31336 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31338         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31339         seconds.
31340         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31341         seconds.
31342         * elf/rtld-Rules: Fix $(error) use.
31344 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
31346         [BZ #14925]
31347         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31348         * locale/iso-639.def: Change “Bengali” to “Bangla”.
31349         * localedata/locales/bn_BD: “Bengali” was still used in some
31350         comments. Change it to “Bangla”.
31352 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
31354         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31356 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31358         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31359         thunderx2t99p1 to list of cpu names.
31360         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31361         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31363 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31365         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31366         Use strcmp instead of tunable_is_name.
31368 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
31370         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31371         (F_GET_RW_HINT): New macro.
31372         [__USE_GNU] (F_SET_RW_HINT): Likewise.
31373         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31374         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31375         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31376         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31377         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31378         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31379         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31380         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31382         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31383         (F_ADD_SEALS): New macro.
31384         [__USE_GNU] (F_GET_SEALS): Likewise.
31385         [__USE_GNU] (F_SEAL_SEAL): Likewise.
31386         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31387         [__USE_GNU] (F_SEAL_GROW): Likewise.
31388         [__USE_GNU] (F_SEAL_WRITE): Likewise.
31390 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31392         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31393         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31394         * posix/glob_internal.h (__glob_pattern_type):
31395         * posix/glob.c (glob):
31396         * posix/glob_pattern_p.c (__glob_pattern_p):
31397         Use them.
31399         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31400         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31401         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31402         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31403         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31405         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31406         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31407         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31408         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31409         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31410         * sysdeps/wordsize-64/glob.c: Likewise.
31411         * sysdeps/wordsize-64/glob64.c: Likewise.
31412         * sysdeps/wordsize-64/globfree.c: Likewise.
31413         * sysdeps/wordsize-64/globfree64.c: Likewise.
31414         * sysdeps/unix/sysv/linux/glob.c: New file.
31415         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31416         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31417         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31418         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31419         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31420         adds !GLOB_NO_OLD_VERSION as an extra condition.
31421         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31422         using relative path instead of absolute one.
31423         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31424         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31425         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31426         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31427         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31428         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31430         [BZ #1062]
31431         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31432         (glob): Use the same scratch buffer for both getlogin_r and
31433         getpwnam_r.  Don’t require preallocation of the login name.  This
31434         simplifies storage allocation, and corrects the handling of
31435         long login names.
31437         [BZ #1062]
31438         * posix/glob.c (glob): Port recent patches to platforms
31439         lacking getpwnam_r.
31440         (glob): Fix longstanding misuse of errno after getpwnam_r, which
31441         returns an error number rather than setting errno.
31443         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31444         instead of GCC extension.
31445         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31446         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31447         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31449         [BZ #866]
31450         [BZ #1062]
31451         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31452         * posix/bug-glob1.c: Remove file.
31453         * posix/tst-glob_symlinks.c: New file.
31454         * posix/glob.c (__lstat64): New macro.
31455         (is_dir): New function.
31456         (glob, glob_in_dir): Match symlinks even if they are dangling.
31457         (link_stat, link_exists_p): Remove.  All uses removed.
31459         [BZ #1062]
31460         [BZ #19971]
31461         * posix/glob.c (struct readdir_result): Remove skip_entry member.
31462         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31463         All uses removed.
31465         [BZ #1062]
31466         CVE-2017-15671
31467         * posix/Makefile (routines): Add globfree, globfree64, and
31468         glob_pattern_p.
31469         * posix/flexmember.h: New file.
31470         * posix/glob_internal.h: Likewise.
31471         * posix/glob_pattern_p.c: Likewise.
31472         * posix/globfree.c: Likewise.
31473         * posix/globfree64.c: Likewise.
31474         * sysdeps/gnu/globfree64.c: Likewise.
31475         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31476         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31477         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31478         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31479         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31480         * sysdeps/wordsize-64/globfree.c: Likewise.
31481         * sysdeps/wordsize-64/globfree64.c: Likewise.
31482         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31483         [NDEBUG): Remove comments.
31484         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31485         (dirent_type): New type.  Use uint_fast8_t not
31486         uint8_t, as C99 does not require uint8_t.
31487         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31488         (struct readdir_result): Use dirent_type.  Do not define skip_entry
31489         unless it is needed; this saves a byte on platforms lacking d_ino.
31490         (readdir_result_type, readdir_result_skip_entry):
31491         New functions, replacing ...
31492         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31493         these functions, which were removed.  This makes the callers
31494         easier to read.  All callers changed.
31495         (D_INO_TO_RESULT): Now empty if there is no d_ino.
31496         (size_add_wrapv, glob_use_alloca): New static functions.
31497         (glob, glob_in_dir): Check for size_t overflow in several places,
31498         and fix some size_t checks that were not quite right.
31499         Remove old code using SHELL since Bash no longer
31500         uses this.
31501         (glob, prefix_array): Separate MS code better.
31502         (glob_in_dir): Remove old Amiga and VMS code.
31503         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31504         separate files.
31505         (glob_in_dir): Do not rely on undefined behavior in accessing
31506         struct members beyond their bounds.  Use a flexible array member
31507         instead
31508         (link_stat): Rename from link_exists2_p and return -1/0 instead of
31509         0/1.  Caller changed.
31510         (glob): Fix memory leaks.
31511         * posix/glob64 (globfree64): Move to separate file.
31512         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31513         (globfree64): Remove hidden alias.
31514         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31515         oldglob.
31516         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31517         separate file.
31518         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31519         define.
31520         Move compat code to separate file.
31521         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31522         separate file.
31524 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
31526         * resolv/tst-resolv-qtypes.c (domain): Changed to
31527         "const char domain[] =".
31529 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
31531         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31532         version to 3.1.6.
31534         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31535         (TCP_MD5SIG_EXT): Likewise.
31536         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31537         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31538         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
31540         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31542 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
31544         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31546 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
31548         [BZ #22100]
31549         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31551 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31553         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31554         before assuming that the file is empty.  Avoid testing buffer content
31555         when nread == 0.
31557 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31559         [BZ #18858]
31560         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31561         Remove define.
31562         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31563         Likewise.
31564         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31565         Likewise.
31566         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31567         Likewise.
31568         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31569         Likewise.
31570         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31571         Likewise.
31572         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31573         Likewise.
31575 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31577         * malloc/dynarray_emplace_enlarge.c
31578         (__libc_dynarray_emplace_enlarge): Add missing else.
31580 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31582         [BZ #22096]
31583         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31584         case of failure to obtain the global conf object.
31586 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31588         [BZ #22095]
31589         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31590         dynarray allocation failure.
31592 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31594         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31595         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31596         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31597         New functions.
31598         (response): Call them.  Add 'p', '6' flag processing.
31599         (test_reverse): New function.
31600         (test_get2_any): Call it.
31601         (test_no_inet6): Add 'p' test.
31602         (test_inet6): Likewise.
31604 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31606         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31607         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31608         the QNAME.
31609         (test_gai): Adjust query names.  Add additional tests.
31610         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31611         test_get2.  Adjust query names.  Add additional tests.
31612         (test_no_inet6): New function, extracted from threadfunc.
31613         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31614         Add additional tests.
31616 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31618         [BZ #22070]
31619         * localedata/unicode-gen/utf8_gen.py: Set the width for
31620         characters with Prepended_Concatenation_Mark property to 1
31621         * localedata/charmaps/UTF-8: Updated using the improved script.
31623 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31625         [BZ #21750]
31626         * localedata/unicode-gen/utf8_gen.py: Improve the script to
31627         use the range notation for all ranges of neighbouring characters
31628         with the same width.
31630 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31632         * sysdeps/generic/math-type-macros-double.h: Include
31633         <math-svid-compat.h>.
31634         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31635         * sysdeps/generic/math-type-macros-float.h: Include
31636         <math-svid-compat.h>.
31637         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31638         * sysdeps/generic/math-type-macros-ldouble.h: Include
31639         <math-svid-compat.h>.
31640         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31641         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31642         condition.
31643         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31644         * math/w_acosf_compat.c: Likewise.
31645         * math/w_acosh_compat.c: Likewise.
31646         * math/w_acoshf_compat.c: Likewise.
31647         * math/w_acoshl_compat.c: Likewise.
31648         * math/w_acosl_compat.c: Likewise.
31649         * math/w_asin_compat.c: Likewise.
31650         * math/w_asinf_compat.c: Likewise.
31651         * math/w_asinl_compat.c: Likewise.
31652         * math/w_atan2_compat.c: Likewise.
31653         * math/w_atan2f_compat.c: Likewise.
31654         * math/w_atan2l_compat.c: Likewise.
31655         * math/w_atanh_compat.c: Likewise.
31656         * math/w_atanhf_compat.c: Likewise.
31657         * math/w_atanhl_compat.c: Likewise.
31658         * math/w_cosh_compat.c: Likewise.
31659         * math/w_coshf_compat.c: Likewise.
31660         * math/w_coshl_compat.c: Likewise.
31661         * math/w_exp10_compat.c: Likewise.
31662         * math/w_exp10f_compat.c: Likewise.
31663         * math/w_exp10l_compat.c: Likewise.
31664         * math/w_exp2_compat.c: Likewise.
31665         * math/w_exp2f_compat.c: Likewise.
31666         * math/w_exp2l_compat.c: Likewise.
31667         * math/w_fmod_compat.c: Likewise.
31668         * math/w_fmodf_compat.c: Likewise.
31669         * math/w_fmodl_compat.c: Likewise.
31670         * math/w_hypot_compat.c: Likewise.
31671         * math/w_hypotf_compat.c: Likewise.
31672         * math/w_hypotl_compat.c: Likewise.
31673         * math/w_j0_compat.c: Likewise.
31674         * math/w_j0f_compat.c: Likewise.
31675         * math/w_j0l_compat.c: Likewise.
31676         * math/w_j1_compat.c: Likewise.
31677         * math/w_j1f_compat.c: Likewise.
31678         * math/w_j1l_compat.c: Likewise.
31679         * math/w_jn_compat.c: Likewise.
31680         * math/w_jnf_compat.c: Likewise.
31681         * math/w_jnl_compat.c: Likewise.
31682         * math/w_lgamma_r_compat.c: Likewise.
31683         * math/w_lgammaf_r_compat.c: Likewise.
31684         * math/w_lgammal_r_compat.c: Likewise.
31685         * math/w_log10_compat.c: Likewise.
31686         * math/w_log10f_compat.c: Likewise.
31687         * math/w_log10l_compat.c: Likewise.
31688         * math/w_log2_compat.c: Likewise.
31689         * math/w_log2f_compat.c: Likewise.
31690         * math/w_log2l_compat.c: Likewise.
31691         * math/w_log_compat.c: Likewise.
31692         * math/w_logf_compat.c: Likewise.
31693         * math/w_logl_compat.c: Likewise.
31694         * math/w_pow_compat.c: Likewise.
31695         * math/w_powf_compat.c: Likewise.
31696         * math/w_powl_compat.c: Likewise.
31697         * math/w_remainder_compat.c: Likewise.
31698         * math/w_remainderf_compat.c: Likewise.
31699         * math/w_remainderl_compat.c: Likewise.
31700         * math/w_sinh_compat.c: Likewise.
31701         * math/w_sinhf_compat.c: Likewise.
31702         * math/w_sinhl_compat.c: Likewise.
31703         * math/w_sqrt_compat.c: Likewise.
31704         * math/w_sqrtf_compat.c: Likewise.
31705         * math/w_sqrtl_compat.c: Likewise.
31706         * math/w_tgamma_compat.c: Likewise.
31707         * math/w_tgammaf_compat.c: Likewise.
31708         * math/w_tgammal_compat.c: Likewise.
31709         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31710         [LIBM_SVID_COMPAT].
31711         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31712         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31713         [LIBM_SVID_COMPAT].
31714         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31715         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31716         [LIBM_SVID_COMPAT].
31717         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31718         * sysdeps/i386/fpu/w_sqrt.c: New file.
31719         * sysdeps/ia64/fpu/w_acos.c: Likewise.
31720         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31721         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31722         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31723         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31724         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31725         * sysdeps/ia64/fpu/w_asin.c: Likewise.
31726         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31727         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31728         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31729         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31730         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31731         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31732         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31733         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31734         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31735         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31736         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31737         * sysdeps/ia64/fpu/w_exp.c: Likewise.
31738         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31739         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31740         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31741         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31742         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31743         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31744         * sysdeps/ia64/fpu/w_expf.c: Likewise.
31745         * sysdeps/ia64/fpu/w_expl.c: Likewise.
31746         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31747         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31748         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31749         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31750         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31751         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31752         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31753         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31754         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31755         * sysdeps/ia64/fpu/w_log.c: Likewise.
31756         * sysdeps/ia64/fpu/w_log10.c: Likewise.
31757         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31758         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31759         * sysdeps/ia64/fpu/w_log2.c: Likewise.
31760         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31761         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31762         * sysdeps/ia64/fpu/w_logf.c: Likewise.
31763         * sysdeps/ia64/fpu/w_logl.c: Likewise.
31764         * sysdeps/ia64/fpu/w_pow.c: Likewise.
31765         * sysdeps/ia64/fpu/w_powf.c: Likewise.
31766         * sysdeps/ia64/fpu/w_powl.c: Likewise.
31767         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31768         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31769         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31770         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31771         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31772         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31773         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31774         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31775         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31776         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31777         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31778         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31779         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31780         [LIBM_SVID_COMPAT].
31781         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31782         * sysdeps/ieee754/k_standard.c: Likewise.
31783         * sysdeps/ieee754/k_standardf.c: Likewise.
31784         * sysdeps/ieee754/k_standardl.c: Likewise.
31785         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31786         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31787         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31788         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31789         long_double_symbol call on [LIBM_SVID_COMPAT].
31790         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31791         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31792         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31793         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31794         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31795         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31796         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31797         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31798         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31799         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31800         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31801         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31802         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31803         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31804         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31805         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31806         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31807         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31808         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31809         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31810         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31811         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31813 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
31815         * include/shlib-compat.h (TEST_COMPAT): New Macro.
31816         * malloc/tst-mallocstate.c: Convert from test-skeleton
31817         to test-driver.  Ifdef code using TEST_COMPAT macro.
31818         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31819         * math/test-matherr.c: Likewise.
31821 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31823         [BZ #22086]
31824         * debug/pcprofiledump.c (main): Use byte-swapped mask when
31825         comparing word with byte-swapped constant.
31827 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
31829         [BZ #20498]
31830         * locale/iso-639.def: add Miskito.
31831         * localedata/SUPPORTED: Add miq_NI/UTF-8.
31832         * localedata/locales/miq_NI: New file.
31834 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
31836         [BZ #18822]
31837         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31838         (__mkdir): Likewise.
31839         * io/chmod.c (__chmod): Add libc_hidden_def.
31840         * io/mkdir.c (__mkdir): Likewise.
31841         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31842         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31843         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31844         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31846 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31848         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31849         version to 4.13.
31851         [BZ #22082]
31852         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31853         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31855 2017-09-04  Florian Weimer  <fweimer@redhat.com>
31857         * math/math.h: Issue warning if log is defined.
31859 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31861         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31862         kernel version to 4.13.
31864 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31866         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31867         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31868         parameter.
31869         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31870         just <bits/types.h>.
31871         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31872         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31873         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31874         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31875         * misc/preadv2.c: Include <errno.h>.
31876         * misc/preadv64v2.c: Include <errno.h>.
31877         * misc/pwritev2.c: Include <errno.h>.
31878         * misc/pwritev64v2.c: Include <errno.h>.
31879         * sysdeps/posix/preadv2.c: Include <errno.h>.
31880         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31881         Fix <unistd.h> inclusion.
31882         * sysdeps/posix/pwritev2.c: Include <errno.h>.
31883         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31884         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31885         __strtoul_internal): New functions.
31886         * sysdeps/posix/pause.c: Include <sigsetops.h>.
31887         * sysdeps/posix/system.c: Include <sigsetops.h>.
31888         * sysdeps/mach/hurd/i386/Makefile
31889         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31890         [$(subdir) = csu] (sysdep-only-routines): Likewise.
31891         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31892         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31893         __feraiseexcept_renamed to feraiseexcept instead of
31894         __GI_feraiseexcept.
31895         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31896         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31897         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31898         RWF_NOWAIT): Define to 0 if undefined already.
31899         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31900         boils down to 0.
31901         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31902         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31904 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31906         * manual/math.texi (pow10): Do not document.
31907         (pow10f): Likewise.
31908         (pow10l): Likewise.
31909         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31910         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31911         * math/libm-test-exp10.inc (pow10_test): Remove.
31912         (do_test): Do not call pow10.
31913         * math/w_exp10_compat.c (pow10): Make into compat symbol.
31914         [NO_LONG_DOUBLE] (pow10l): Likewise.
31915         * math/w_exp10f_compat.c (pow10f): Likewise.
31916         * math/w_exp10l_compat.c (pow10l): Likewise.
31917         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31918         (pow10): Make into compat symbol.
31919         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31920         (pow10f): Make into compat symbol.
31921         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31922         (pow10l): Make into compat symbol.
31923         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31924         pow10.
31925         (CFLAGS-nldbl-pow10.c): Remove variable..
31926         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31927         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31928         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31929         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31930         Undefine and redefine.
31931         (pow10l): Make into compat symbol.
31932         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31933         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31934         * sysdeps/arm/libm-test-ulps: Likewise.
31935         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31936         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31937         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31938         * sysdeps/microblaze/libm-test-ulps: Likewise.
31939         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31940         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31941         * sysdeps/nios2/libm-test-ulps: Likewise.
31942         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31943         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31944         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31945         * sysdeps/sh/libm-test-ulps: Likewise.
31946         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31947         * sysdeps/tile/libm-test-ulps: Likewise.
31948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31950 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31952         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31954 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31956         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31957         "../ChangeLog.old/ChangeLog.8".
31958         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31959         "../ChangeLog.old/ChangeLog.14".
31961 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31963         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31964         Threads Library.
31966 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31968         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31970 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31972         * csu/version.c (banner): Remove "by Roland McGrath et al.".
31973         * nptl/Banner: Remove "by Ulrich Drepper et al.".
31975 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31977         * stdlib/tst-atexit-common.c (do_test): Test support for at least
31978         32 atexit handlers.
31980 2017-09-01  Zack Weinberg  <zackw@panix.com>
31982         * math/math.h (HUGE_VAL): Improve commentary.
31984 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31985             Andreas Schwab  <schwab@suse.de>
31987         [BZ #21530]
31988         * include/stdio.h (__gen_tempfd): New function.
31989         * stdio-common/Makefile (routines): Add gentempfd.
31990         * stdio-common/gentempfd.c: New file.
31991         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31992         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31993         unnamed file first.
31995 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31997         [BZ #21915]
31998         [BZ #21922]
31999         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
32000         result to determine success or failure, not the errno value.
32001         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
32002         (tst-nss-files-hosts-erange): Link with -ldl.
32003         * nss/tst-nss-files-hosts-erange.c: New file.
32004         * nss/tst-resolv-basic.c (response): Handle nodata.example.
32005         (do_test): Add NO_DATA tests.
32006         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
32007         (do_test): Call it.
32009 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32011         [BZ #21922]
32012         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
32013         coming from gethostbyname2_r.
32015 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32017         * support/namespace.h (struct support_chroot_configuration): Add
32018         hosts, host_conf.
32019         (struct support_chroot): Add path_hosts, path_host_conf.
32020         * support/support_chroot.c (write_file): New function.
32021         (support_chroot_create): Call it to process /etc/resolv.conf,
32022         /etc/hosts, /etc/host.conf.
32023         (support_chroot_free): Update.
32025 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32027         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
32028         status indicates it is set.
32030 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32032         [BZ #20532]
32033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
32034         function lookup failures more reliable.
32036 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32038         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
32039         (getcanonname): Likewise.
32040         (gaih_inet): Likewise.
32042 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32044         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
32045         (getcanonname): Likewise.
32046         (gaih_inet): Likewise.
32048 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
32049             Richard Henderson  <rth@twiddle.net>
32051         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
32052         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
32053         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
32054         (IREG_SIZE, OREG_SIZE): New macros.
32055         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
32056         (IREG_SIZE, OREG_SIZE): New macros.
32057         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
32058         (IREG_SIZE): New macro.
32059         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
32060         (IREG_SIZE): New macro.
32061         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
32062         New includes.
32063         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
32064         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32065         (__CONCATX): Handle exceptions correctly on large values that may
32066         set FE_INVALID.
32067         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
32068         Initialize if not already set.
32069         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32071 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32073         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
32074         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
32075         Likewise.
32076         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
32077         Likewise.
32078         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
32079         Likewise.
32080         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
32081         Likewise.
32082         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
32083         Likewise.
32084         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
32085         Likewise.
32086         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
32087         Likewise.
32088         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
32089         (NO_CANCELLATION): Likewise.
32090         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
32091         Likewise.
32092         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
32093         Likewise.
32094         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
32095         Likewise.
32096         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
32097         (NO_CANCELLATION): Likewise.
32098         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
32099         (NO_CANCELLATION): Likewise.
32100         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
32101         Likewise
32102         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
32103         Likewise.
32104         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
32105         Likewise.
32106         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
32107         Likewise.
32108         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
32109         hidden prototype.
32110         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
32111         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
32113 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
32115         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
32116         in resolver call.
32118 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32120         * include/libc-symbols.h (internal_function): Remove.
32122 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32124         * stdlib/fmtmsg.c (internal_addseverity): Remove
32125         internal_function.
32127 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32129         * stdio-common/printf_fp.c (group_number): Remove
32130         internal_function.
32131         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
32133 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32135         * posix/fnmatch.c (internal_function): Remove definition.
32136         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
32137         * posix/regcomp.c (peek_token, init_word_char)
32138         (duplicate_node_closure, fetch_token, peek_token)
32139         (peek_token_bracket, build_range_exp, build_collating_symbol):
32140         Likewise.
32141         * posix/regex_internal.c (re_string_construct_common)
32142         (create_ci_newstate, create_cd_newstate, re_string_allocate)
32143         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
32144         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
32145         (re_string_translate_buffer, re_string_reconstruct)
32146         (re_string_peek_byte_case, re_string_fetch_byte_case)
32147         (re_string_destruct, re_string_context_at, re_node_set_alloc)
32148         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
32149         (re_node_set_add_intersect, re_node_set_init_union)
32150         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
32151         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
32152         (re_dfa_add_node, calc_state_hash, re_acquire_state)
32153         (re_acquire_state_context): Likewise.
32154         * posix/regex_internal.h (internal_function): Remove definition.
32155         (re_string_realloc_buffers, build_wcs_buffer)
32156         (build_wcs_upper_buffer, build_upper_buffer)
32157         (re_string_translate_buffer, re_string_context_at)
32158         (re_string_char_size_at, re_string_wchar_at)
32159         (re_string_elem_size_at): Likewise.
32160         * posix/regexec.c (match_ctx_init, match_ctx_clean)
32161         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
32162         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
32163         (re_search_internal, re_search_2_stub, re_search_stub)
32164         (re_copy_regs, prune_impossible_nodes, check_matching)
32165         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
32166         (free_fail_stack_return, sift_states_iter_mb)
32167         (sift_states_backward, build_sifted_states)
32168         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
32169         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
32170         (check_subexp_limits, sift_states_bkref, merge_state_array)
32171         (find_recover_state, transit_state, merge_state_with_log)
32172         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
32173         (transit_state_mb, transit_state_bkref, get_subexp)
32174         (get_subexp_sub, find_subexp_node, check_arrival)
32175         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
32176         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
32177         (check_node_accept_bytes, find_collation_sequence_value)
32178         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
32179         (acquire_init_state_context, check_halt_node_context)
32180         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
32181         (sub_epsilon_src_nodes): Likewise.
32182         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
32183         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
32184         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
32185         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
32186         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
32187         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
32188         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
32189         * sysdeps/posix/ttyname.c (getttyname): Likewise.
32190         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
32191         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
32192         (PREADV): Likewise.
32193         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
32194         (PREADV): Likewise.
32195         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
32196         (PWRITEV): Likewise.
32197         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
32198         (PWRITEV): Likewise.
32199         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
32200         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
32202 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32204         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
32205         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
32206         Remove internal_function.
32207         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
32208         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
32209         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
32210         (__deallocate_stack, __libc_pthread_init)
32211         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
32212         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
32213         (__libc_disable_asynccancel, __librt_disable_asynccancel):
32214         Likewise.
32215         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
32216         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
32217         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
32218         Likewise.
32219         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
32220         (__pthread_mutex_unlock_usercnt): Likewise.
32222 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32224         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
32225         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
32226         (fts_safe_changedir): Remove internal_function.
32227         * io/ftw.c (internal_function): Remove definition.
32228         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
32230 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32232         * inet/deadline.c (__deadline_current_time)
32233         (__deadline_from_timeval, __deadline_to_ms): Remove
32234         internal_function.
32235         * inet/getnameinfo.c (nrl_domainname): Likewise.
32236         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
32237         * inet/inet6_option.c (add_pad): Likewise.
32238         * inet/net-internal.h (__deadline_current_time)
32239         (__deadline_from_timeval, __deadline_to_ms): Likewise.
32240         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
32241         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
32242         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
32244 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
32246         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
32247         include <bits/nan.h>.
32248         * math/Makefile (headers): Remove bits/nan.h.
32249         * bits/nan.h: Remove.
32250         * sysdeps/ieee754/bits/nan.h: Likewise.
32251         * sysdeps/mips/bits/nan.h: Likewise.
32253         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
32254         not include <bits/inf.h>.
32255         * math/Makefile (headers): Remove bits/inf.h.
32256         * bits/inf.h: Remove.
32257         * sysdeps/ieee754/bits/inf.h: Likewise.
32259         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
32260         bits/huge_vall.h or bits/huge_val_flt128.h.
32261         (HUGE_VAL): Define directly here.
32262         [__USE_ISOC99] (HUGE_VALF): Likewise.
32263         [__USE_ISOC99] (HUGE_VALL): Likewise.
32264         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32265         (HUGE_VAL_F128): Likewise.
32266         * math/Makefile (headers): Remove bits/huge_val.h,
32267         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
32268         * bits/huge_val.h: Remove.
32269         * bits/huge_val_flt128.h: Likewise.
32270         * bits/huge_valf.h: Likewise.
32271         * bits/huge_vall.h: Likewise.
32272         * sysdeps/ia64/bits/huge_vall.h: Likewise.
32273         * sysdeps/ieee754/bits/huge_val.h: Likewise.
32274         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
32275         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
32276         * sysdeps/sh/bits/huge_val.h: Likewise.
32277         * sysdeps/sparc/bits/huge_vall.h: Likewise.
32278         * sysdeps/x86/bits/huge_vall.h: Likewise.
32280 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32282         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
32283         internal_function.
32284         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
32285         Likewise.
32286         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
32287         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
32288         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
32289         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
32290         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32291         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
32292         * elf/dl-libc.c (dlerror_run): Likewise.
32293         * elf/dl-load.c (add_name_to_object, decompose_rpath)
32294         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
32295         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
32296         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
32297         Likewise.
32298         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
32299         (_dl_higher_prime_number, _dl_strtoul): Likewise.
32300         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
32301         * elf/dl-profile.c (_dl_start_profile): Likewise.
32302         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
32303         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
32304         Likewise.
32305         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32306         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32307         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32308         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32309         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32310         (_dl_allocate_tls_storage): Likewise.
32311         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32312         (_dl_check_all_versions): Likewise.
32313         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32314         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32315         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32316         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32317         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32318         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32319         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32320         internal_function from __dl_start.
32321         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32322         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32323         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32324         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32325         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32326         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32327         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32328         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32329         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32330         (_dl_next_ld_env_entry, _dl_important_hwcaps)
32331         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32332         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32333         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32334         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32335         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32336         Likewise.
32337         (struct rtld_global_ro): Remove internal_function from the
32338         _dl_lookup_symbol_x member.
32339         (_dl_symbol_value): Remove.  No longer defined anywhere.
32340         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32341         internal_function.
32342         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32343         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32344         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32345         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32346         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32347         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32348         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32349         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32350         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32351         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32352         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32353         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32355 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32357         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32358         Remove internal_function.
32359         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32360         Likewise.
32361         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32362         Likewise.
32364 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32366         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32367         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32368         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32370 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32372         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32373         (__gai_enqueue_request): Remove internal_function.
32374         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32375         (__gai_remove_request, __gai_notify, __gai_notify_only)
32376         (__gai_sigqueue): Likewise.
32377         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32378         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32379         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32380         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32381         Likewise.
32383 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32385         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32386         * include/dirent.h (__opendirat, __getdents, __getdents64)
32387         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32388         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32389         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32390         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32391         Likewise.
32392         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32394 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32396         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32397         internal_function.
32398         (GETCWD_RETURN_TYPE): Likewise.
32400 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32402         * include/time.h (__tz_compute, __strptime_internal): Remove
32403         internal_function.
32404         * time/strptime_l.c (__strptime_internal): Likewise.
32405         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32407 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32409         * iconv/gconv.c (__gconv): Remove internal_function.
32410         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32411         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32412         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32413         (__gconv_release_cache): Likewise.
32414         * iconv/gconv_close.c (__gconv_close): Likewise.
32415         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32416         (read_conf_file, __gconv_get_path): Likewise.
32417         * iconv/gconv_db.c (derivation_lookup, add_derivation)
32418         (__gconv_release_step, gen_steps, increment_counter)
32419         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32420         (__gconv_close_transform, free_modules_db): Likewise.
32421         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32422         Likewise.
32423         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32424         (__gconv_find_transform, __gconv_lookup_cache)
32425         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32426         (__gconv_close_transform, __gconv_release_cache)
32427         (__gconv_loaded_object, __gconv_release_shlib)
32428         (__gconv_compare_alias): Likewise.
32429         * iconv/gconv_open.c (__gconv_open): Likewise.
32430         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32431         * iconv/iconvconfig.c (add_module): Likewise.
32432         * intl/dcigettext.c (plural_lookup, guess_category_value)
32433         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32434         * intl/eval-plural.h (plural_eval): Likewise.
32435         * intl/finddomain.c (_nl_find_domain): Likewise.
32436         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32437         (_nl_load_domain, _nl_find_msg): Likewise.
32438         (internal_function): Remove definition.
32439         * intl/loadinfo.h (internal_function): Likewise.
32440         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32441         internal_function.
32442         * intl/localealias.c (internal_function): Remove definition.
32443         (read_alias_file): Remove internal_function.
32444         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32445         * intl/plural-exp.h (internal_function): Remove definition.
32446         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32447         internal_function.
32448         * intl/plural.c: Regenerate.
32449         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32450         * locale/coll-lookup.c (__collidx_table_lookup)
32451         (__collseq_table_lookup): Likewise.
32452         * locale/coll-lookup.h (__collidx_table_lookup)
32453         (__collseq_table_lookup): Likewise.
32454         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32455         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32456         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32457         (_nl_unload_locale): Likewise.
32458         * locale/localeinfo.h (struct __locale_data): Remove
32459         internal_function from cleanup member.
32460         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32461         (_nl_remove_locale, _nl_load_locale_from_archive)
32462         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32463         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32464         (_nl_cleanup_time): Remove internal_function.
32465         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32466         (_nl_parse_alt_digit): Likewise.
32467         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32468         (_nl_select_era_entry): Likewise.
32469         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32470         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32471         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32472         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32473         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32475 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32477         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32478         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32479         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32480         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32481         Likewise.
32482         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32483         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32484         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32485         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32486         Likewise.
32487         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32489 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32491         * misc/getttyent.c (skip, value): Remove internal_function.
32492         * misc/syslog.c (openlog_internal): Likewise.
32493         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32495 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32497         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32498         (__nss_rewrite_field): Remove internal_function.
32499         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32500         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32501         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32502         * nss/nsswitch.c (nss_parse_file, nss_getline)
32503         (nss_parse_service_list, nss_new_service): Likewise.
32504         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32505         * nss/valid_field.c (__nss_valid_field): Likewise.
32506         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32508 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32510         * malloc/arena.c (__malloc_fork_lock_parent)
32511         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32512         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32513         internal_function from defintions.
32514         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32515         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32516         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32517         internal_function from declarations.
32518         * malloc/malloc.c (internal_function): Do not define.
32519         (mem2mem_check): Remove internal_function from declaration.
32520         (munmap_chunk, mremap_chunk): Remove internal_function.
32521         * malloc/mtrace.c (tr_where): Likewise.
32523 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32525         * include/rpc/pmap_clnt.h (__get_socket): Remove
32526         internal_function.
32527         * sunrpc/auth_des.c (synchronize): Likewise.
32528         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32529         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32530         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32531         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32532         (key_call): Likewise.
32533         * sunrpc/pm_getport.c (__get_socket): Likewise.
32534         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32535         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32536         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32537         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32538         (invalidate): Likewise.
32539         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32540         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32541         (set_input_fragment, get_input_bytes): Likewise.
32543 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32545         * malloc/malloc.c (_int_free): Remove locked variable and related
32546         asserts.
32548 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
32550         [BZ #22051]
32551         * Makerules (build-module-helper-objlist): Filter out
32552         $(elf-objpfx)sofini.os.
32553         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32554         needed.
32556 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32558         * libio/fcloseall.c: Assume weak_alias is defined.
32559         * libio/feof.c: Likewise.
32560         * libio/fileno.c: Likewise.
32561         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32562         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32563         definitions.
32564         (_IO_file_open): Call __open directly.
32565         (_IO_new_file_sync): Assume ESPIPE is defined.
32566         (_IO_file_seekoff_maybe_mmap): Call __read directly.
32567         (_IO_new_file_write): Call __write directly.
32568         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32569         * libio/ftello64.c (__ftello64): Assume EIO is defined.
32570         * libio/genops.c: Assume _LIBC is defined.
32571         (save_for_backup): Remove internal_function.
32572         * libio/getc.c: Assume weak_alias is defined.
32573         * libio/getwc.c: Likewise.
32574         * libio/iofclose.c: Assume _LIBC is defined.
32575         * libio/iofdopen.c: Likewise.
32576         (_IO_fcntl): Remove macro definition.
32577         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32578         Call __fcntl directly.
32579         * libio/iofflush.c: Assume weak_alias is defined.
32580         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32581         defined.
32582         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32583         * libio/iofgets.c: Likewise.
32584         * libio/iofopen.c: Assume _LIBC is defined.
32585         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32586         * libio/iofputs.c: Assume weak_alias is defined.
32587         * libio/iofread.c: Likewise.
32588         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32589         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32590         * libio/ioftell.c: Assume weak_alias is defined.
32591         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32592         * libio/iofwide.c: Assume _LIBC is defined.
32593         (_IO_fwide): Drop SHARED conditional because it is implied by
32594         SHLIB_COMPAT.
32595         * libio/iofwrite.c: Assume weak_alias is defined.
32596         * libio/iogetdelim.c: Likewise.
32597         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32598         * libio/iogetwline.c (wmemcpy): Remove macro definition.
32599         (_IO_getwline): Call __wmemcpy directly.
32600         * libio/iopopen.c: Assume _LIBC is defined.
32601         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32602         (_IO_close): Remove macro definitions.
32603         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32604         _exit directly.
32605         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32606         directly.
32607         * libio/ioputs.c: Assume weak_alias is defined.
32608         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32609         * libio/iosetbuffer.c: Assume weak_alias is defined.
32610         * libio/iosetvbuf.c: Likewise.
32611         * libio/ioungetc.c: Likewise.
32612         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32613         libc_hidden_def, libc_hidden_weak, NULL are defined.
32614         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32615         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32616         defined.
32617         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32618         definitions.
32619         (_IO_old_file_init_internal): Drop SHARED conditional because it
32620         is implied by SHLIB_COMPAT.
32621         (_IO_old_file_fopen): Call __open directly.
32622         (_IO_old_file_sync): Assume ESPIPE is defined.
32623         (_IO_old_file_write): Call __write directly.
32624         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32625         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32626         Call __fcntl directly.
32627         * libio/oldiofgetpos.c: Assume weak_alias is defined.
32628         (_IO_old_fgetpos): Assume EIO is defined.
32629         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32630         (_IO_old_fgetpos64): Assume EIO is defined.
32631         * libio/oldiofsetpos.c: Assume weak_alias is defined.
32632         (_IO_old_fsetpos): Assume EIO is defined.
32633         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32634         (_IO_old_fsetpos64): Assume EIO is defined.
32635         * libio/oldiopopen.c:  Assume _LIBC is defined.
32636         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32637         (_IO_close): Remove macro definitions.
32638         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32639         directly.
32640         (_IO_old_proc_close): Call __close, __waitpid directly.
32641         * libio/put.c: Assume weak_alias is defined.
32642         * libio/stdfiles.c: Assume _LIBC is defined.
32643         * libio/stdio.c: Likewise.
32644         * libio/wfileops.c: Likewise.
32645         (_IO_wfile_sync): Assume ESPIPE is defined.
32646         * libio/wgenops.c: Assume _LIBC is defined.
32647         (save_for_wbackup): Remove internal_function.
32649 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32651         * malloc/malloc.c (top_check): Change return type to void.  Remove
32652         internal_function.
32653         * malloc/hooks.c (top_check): Likewise.
32654         (malloc_check, realloc_check, memalign_check): Adjust.
32656 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
32658         [BZ #21457]
32659         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32660         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32661         sigcontext and namespace requirements.
32662         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32663         * sysdeps/m68k/sys/ucontext.h: Likewise.
32664         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
32665         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32666         <bits/sigcontext.h>.
32667         (__ctx): Define earlier.
32668         (mcontext_t): Define structure contents rather than using struct
32669         sigcontext.
32670         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32671         __glibc_reserved1 instead of __reserved.
32672         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32673         <bits/sigcontext.h>.
32674         (__ctx): Define earlier.
32675         (mcontext_t): Define structure contents rather than using struct
32676         sigcontext.
32677         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32678         mcontext_t instead of struct sigcontext.
32679         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32680         <bits/sigcontext.h>.
32681         (__ctx): Define earlier.
32682         (mcontext_t): Define structure contents rather than using struct
32683         sigcontext.
32684         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32685         <bits/sigcontext.h>.
32686         (__ctx): Define earlier.
32687         (mcontext_t): Define structure contents rather than using struct
32688         sigcontext.
32689         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32690         mcontext_t instead of struct sigcontext.
32691         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32692         mcontext_t instead of struct sigcontext.
32693         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32694         <bits/sigcontext.h>.
32695         (__ctx): New macro.
32696         (struct __ia64_fpreg_mcontext): New type.
32697         (mcontext_t): Define structure contents rather than using struct
32698         sigcontext.
32699         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32700         (uc_sigmask): Define using __ctx.
32701         (uc_stack): Likewise.
32702         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32703         <bits/sigcontext.h>.
32704         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32705         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32706         <bits/sigcontext.h>.
32707         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32708         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32709         <bits/sigcontext.h>.
32710         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32711         <bits/sigcontext.h>.
32712         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32713         <bits/sigcontext.h>.
32714         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32715         <bits/sigcontext.h>.
32716         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32717         <bits/sigcontext.h>.
32718         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32719         <bits/sigcontext.h>.
32720         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32721         <bits/sigcontext.h>.
32722         (__ctx): Define earlier.
32723         (mcontext_t): Define structure contents rather than using struct
32724         sigcontext.
32725         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32726         <bits/sigcontext.h>.  Include <bits/types.h>.
32727         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32728         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32729         (test-xfail-XPG42/ucontext.h/conform): Likewise.
32730         (test-xfail-UNIX98/signal.h/conform): Likewise.
32731         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32732         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32733         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32734         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32735         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32736         (test-xfail-POSIX2008/signal.h/conform): Likewise.
32737         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32738         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32739         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32741 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32743         * malloc/dynarray_emplace_enlarge.c
32744         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32745         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32746         * malloc/tst-dynarray.c (test_long_overflow): New function.
32747         (do_test): Call it.
32749 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32751         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32752         (set_arena_corrupt): Remove definitions.
32753         (mtrim): Do not check for corrupt arena.
32754         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32755         Likewise.
32757 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32759         [BZ #21754]
32760         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32761         check_action.
32762         (ptmalloc_init): Do not set or use check_action.
32763         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32764         call to malloc_printerr.  Remove return statement.
32765         (free_check): Likewise.  Remove arena unlock.
32766         (top_check): Update comment.  Adjust call to malloc_printerr.
32767         Remove heap repair code.
32768         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32769         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32770         (sysmalloc): Adjust call to malloc_printerr.
32771         (munmap_chunk, __libc_realloc): Likewise.  Remove return
32772         statement.
32773         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
32774         Remove errout label and corresponding gotos.
32775         (_int_free): Likewise.  Remove arena unlock.
32776         (do_set_mallopt_check): Do not set check_action.
32777         (malloc_printerr): Adjust parameter list.  Do not mark arena as
32778         corrupt.
32779         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32780         comment.
32781         * manual/probes.texi (Memory Allocation Probes): Remove
32782         memory_mallopt_check_action.
32784 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
32786         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32787         Use pointer to uint64_t instead of long int for sp.
32789 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32791         [BZ #21754]
32792         * malloc/malloc.c (malloc_printerr): Always terminate the process,
32793         without printing a backtrace.  Do not leak any information in the
32794         error message.
32795         * manual/memory.texi (Heap Consistency Checking): Update.
32796         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32798 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32800         Do not scale NPTL tests with available number of CPUs.
32801         * nptl/tst-cond16.c (count): Set to constant value of 8.
32802         * nptl/tst-cond18.c (count): Likewise.
32804 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32806         [BZ #22035]
32807         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32808         Define to take a second argument that is a macro that
32809         concatentates a suffix, not the suffix itself.
32810         (__CONCAT_d): New macro.
32811         (__CONCAT_f): Likewise.
32812         (__CONCAT_l): Likewise.
32814 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
32816         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32817         by child.
32819 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32820             Aurelien Jarno  <aurelien@aurel32.net>
32821             Maciej W. Rozycki  <macro@imgtec.com>
32823         [BZ #21956]
32824         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32825         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32826         `mips16-syscall6' and `mips16-syscall7'.
32827         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32828         (CFLAGS-mips16-syscall7.c): Remove.
32829         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32830         Remove `__mips16_syscall5', `__mips16_syscall6' and
32831         `__mips16_syscall7'.
32832         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32833         (__mips16_syscall0): Rename `__mips16_syscall_return' to
32834         `__mips_syscall_return'.
32835         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32836         (__mips16_syscall1): Likewise.
32837         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32838         (__mips16_syscall2): Likewise.
32839         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32840         (__mips16_syscall3): Likewise.
32841         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32842         (__mips16_syscall4): Likewise.
32843         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32844         Remove.
32845         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32846         Remove.
32847         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32848         Remove.
32849         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32850         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32851         `__mips16_syscall5'.  Remove prototype.
32852         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32853         `__mips16_syscall6'.  Remove prototype.
32854         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32855         `__mips16_syscall7'.  Remove prototype.
32856         (__nomips16, __mips16_syscall_return): Move to...
32857         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32858         (__nomips16, __mips_syscall_return): ... here.
32859         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32860         `__mips16_syscall_return' to `__mips_syscall_return'.
32861         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32862         `internal_syscall##nr'.
32863         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32864         `internal_syscall##nr'.
32865         (FORCE_FRAME_POINTER): Remove.
32866         (__mips_syscall5): New prototype.
32867         (internal_syscall5): Rewrite to call `__mips_syscall5'.
32868         (__mips_syscall6): New prototype.
32869         (internal_syscall6): Rewrite to call `__mips_syscall6'.
32870         (__mips_syscall7): New prototype.
32871         (internal_syscall7): Rewrite to call `__mips_syscall7'.
32872         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32873         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32874         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32875         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32876         (sysdep_routines): Add libc-do-syscall.
32877         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32878         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32880 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32882         [BZ #21672]
32883         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32884         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32885         (advise_stack_range): New function.
32886         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32887         stack non required to advise_stack_range at allocatestack.c
32889 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32891         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32893 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32895         [BZ #22026]
32896         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32897         __end_fct.  Mangle __end_fct after setting it to NULL.
32898         * iconv/Makefile (tests): Add tst-gconv-init-failure.
32899         (modules-names, modules-names-tests): Add
32900         tst-gconv-init-failure-mod.
32901         (gconv-modules): New target.
32902         (tst-gconv-init-failure-mod.so): Link against libsupport.
32903         (tst-gconv-init-failure): Depend on gconv-modules,
32904         tst-gconv-init-failure-mod.so.
32905         * iconv/tst-gconv-init-failure-mod.c: New file.
32906         * iconv/tst-gconv-init-failure.c: Likewise.
32907         * iconv/test-gconv-modules: Likewise.
32909 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32911         [BZ #22025]
32912         * iconv/gconv_db.c (free_derivation): Remove redundant
32913         parentheses.
32914         (gen_steps): Unconditionally mangle __btowc_fct after
32915         initialization.
32916         (increment_counter): Likewise.  Do not call init_fct for internal
32917         modules.
32919 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32921         [BZ #22028]
32922         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32923         (_MSUF_): Remove macro.
32924         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32925         Likewise.
32926         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32927         (__REDIRFROM_X): New macro.
32928         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32929         Likewise.
32930         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32931         (__REDIRTO_X): Likewise.
32932         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32933         arguments.
32934         (__MATH_REDIRCALL_2): Likewise.
32935         (__MATH_REDIRCALL_INTERNAL): Likewise.
32936         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32937         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32938         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32939         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32940         * math/test-finite-macros.c: New file.
32941         * math/Makefile (tests): Add test-finite-macros.
32942         (CFLAGS-test-finite-macros.c): New variable.
32944 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
32945             Jeff Law  <law@redhat.com>
32947         [BZ #22025]
32948         Mangle NULL pointers in iconv/gconv.
32949         * iconv/gconv_cache.c (find_module): Demangle init_fct before
32950         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32951         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32952         is non-NULL before demangling the end_fct.  Check for NULL
32953         end_fct after demangling.
32954         (__gconv_release_step): Demangle the end_fct before checking
32955         it for NULL.   Remove assert on __shlibc_handle != NULL.
32956         (gen_steps): Don't check btowc_fct for NULL before mangling.
32957         Demangle init_fct before checking for NULL.
32958         (increment_counter): Likewise.
32959         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32960         end_fct for NULL before mangling.
32961         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32962         for NULL.
32964 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
32966         [BZ #21971]
32967         * locale/iso-639.def: add Morisyen.
32969 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32971         [BZ #21930]
32972         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32973         (iszero): New C++ implementation that does not use
32974         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32975         signaling nans are enabled, since __builtin_types_compatible_p
32976         is a C-only feature.
32977         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32978         defined, include ieee754_float128.h for access to the union and
32979         member ieee854_float128.ieee.
32980         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32981         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32982         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32983         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32984         options of test-math-zero on powerpc64le.
32986 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
32988         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32989         Change double to float.
32991 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
32993         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32994         unconditional.
32995         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32996         conditional code; define contents only for [LIBM_SVID_COMPAT].
32998 2017-08-28  Florian Weimer  <fweimer@redhat.com>
33000         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
33001         (abi-lp64_be-options): Remove.
33002         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
33003         (abi-hard-options): Likewise.
33004         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
33005         (abi-o32_hard-options, abi-o32_soft_2008-options)
33006         (abi-o32_hard_2008-options, abi-n32_soft-options)
33007         (abi-n32_hard-options, abi-n32_soft_2008-options)
33008         (abi-n32_hard_2008-options, abi-n64_soft-options)
33009         (abi-n64_hard-options, abi-n64_soft_2008-options)
33010         (abi-n64_hard_2008-options): Likewise.
33011         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
33012         (abi-64-v1-options, abi-64-v2-options): Likewise.
33013         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
33014         (abi-64-options): Likewise.
33015         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
33016         (abi-64-options): Likewise.
33017         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
33018         (abi-64-options): Likewise.
33019         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
33020         (abi-64-options, abi-x32-options): Likewise.
33022 2017-08-28  Florian Weimer  <fweimer@redhat.com>
33024         Store supported list of SYS_* system calls in the source tree.
33025         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
33026         (bits/syscall.h): Generate from list file.
33027         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
33028         [$(subdir) = misc] (tests): Add tst-syscall-list.
33029         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
33030         [$(subdir) = misc] (tst-syscall-list-macros.list)
33031         [$(subdir) = misc] (tst-syscall-list-nr.list)
33032         (tst-syscall-list-sys.list): Helper targets for new
33033         tst-syscall-list test.
33034         [$(subdir) = misc] (tst-syscall-list.out): Run test script
33035         tst-syscall-list.sh.
33036         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
33037         target. Do not include bits/syscall.d.
33038         [$(subdir) = misc] (generated): Do not update.
33039         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
33040         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
33041         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
33042         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
33044 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
33046         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
33047         (tst-cxa_atexit, tst-on_exit): Likewise.
33048         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
33049         tst-cxa_atexit, and tst-on_exit.
33050         * stdlib/tst-atexit-common.c: New file.
33051         * stdlib/tst-atexit.c: New file.
33052         * stdlib/tst-at_quick_exit.c: New file.
33053         * stdlib/tst-cxa_atexit.c: New file.
33054         * stdlib/tst-on_exit.c: New file.
33056 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33058         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
33059         * mach/stack_chk_fail_local.c: New file.
33060         * hurd/stack_chk_fail_local.c: New file.
33061         * mach/Machrules ($(interface-library)-routines): Add
33062         stack_chk_fail_local.
33063         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
33064         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
33065         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
33066         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
33067         * hurd/Makefile (CFLAGS-hurdstartup.o,
33068         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
33070 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33072         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33073         (index_cpu_*, index_arch_*): Removed.
33075 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33077         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
33078         Use uint64_t instead of unsigned long.
33080 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
33082         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
33083         [__HAVE_DISTINCT_FLOAT128].
33085         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
33086         of <bits/math-finite.h>.
33087         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
33088         inclusion of <bits/math-finite.h>.
33089         * math/bits/math-finite.h (__REDIRTO_X): Do not define
33090         conditionally on [__MATH_DECLARING_LDOUBLE && defined
33091         __NO_LONG_DOUBLE_MATH].
33092         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
33093         (__MATH_REDIRCALL_2): Likewise.
33094         (__MATH_REDIRCALL_INTERNAL): Likewise.
33095         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33096         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
33097         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
33100         Remove file.
33101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
33102         Likewise.
33103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
33104         Likewise.
33105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
33106         Likewise.
33107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
33108         Likewise.
33109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
33110         Likewise.
33111         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33112         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33113         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33114         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
33116         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
33117         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
33118         w_sqrtf_compat-ppc32.
33120 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33122         * math/math.h [defined __cplusplus] (issignaling): In the long
33123         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
33124         is not defined.  Call __issignaling, otherwise.
33126 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33128         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
33129         syscall definitions and replace __builtin_expect with __glibc_likely.
33130         * sysdeps/unix/syscall-template.S: Update comment about cancellable
33131         syscall.
33132         (SYSCALL_CANCELLABLE): Removedefinition
33133         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
33134         definition.
33135         (PSEUDO_END): Likewise.
33136         [IS_IN (libpthread)] (CENABLE): Likewise.
33137         [IS_IN (libpthread)] (CDISABLE): Likewise.
33138         [IS_IN (libc)] (CENABLE): Likewise.
33139         [IS_IN (libc)] (CENABLE): Likewise.
33140         [IS_IN (librt)] (CDISABLE): Likewise.
33141         [IS_IN (librt)] (CDISABLE): Likewise.
33142         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33143         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
33144         definition.
33145         (PSEUDO_END): Likewise.
33146         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
33147         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
33148         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33149         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33150         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33151         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33152         (CENABLE): Likewise.
33153         (CDISABLE): Likewise.
33154         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33155         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
33156         defintion.
33157         (PSEUDO_END): Likewise.
33158         [IS_IN (libpthread)] (CENABLE): Likewise.
33159         [IS_IN (libpthread)] (CDISABLE): Likewise.
33160         [IS_IN (libc)] (CENABLE): Likewise.
33161         [IS_IN (libc)] (CENABLE): Likewise.
33162         [IS_IN (librt)] (CDISABLE): Likewise.
33163         [IS_IN (librt)] (CDISABLE): Likewise.
33164         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33165         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
33166         definition.
33167         (PSEUDO_END): Likewise.
33168         [IS_IN (libpthread)] (CENABLE): Likewise.
33169         [IS_IN (libpthread)] (CDISABLE): Likewise.
33170         [IS_IN (libc)] (CENABLE): Likewise.
33171         [IS_IN (libc)] (CENABLE): Likewise.
33172         [IS_IN (librt)] (CDISABLE): Likewise.
33173         [IS_IN (librt)] (CDISABLE): Likewise.
33174         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33175         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
33176         definition.
33177         (PSEUDO_END): Likewise.
33178         [IS_IN (libpthread)] (CENABLE): Likewise.
33179         [IS_IN (libpthread)] (CDISABLE): Likewise.
33180         [IS_IN (libc)] (CENABLE): Likewise.
33181         [IS_IN (libc)] (CENABLE): Likewise.
33182         [IS_IN (librt)] (CDISABLE): Likewise.
33183         [IS_IN (librt)] (CDISABLE): Likewise.
33184         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33185         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
33186         definition.
33187         (PSEUDO_END): Likewise.
33188         [IS_IN (libpthread)] (CENABLE): Likewise.
33189         [IS_IN (libpthread)] (CDISABLE): Likewise.
33190         [IS_IN (libc)] (CENABLE): Likewise.
33191         [IS_IN (libc)] (CENABLE): Likewise.
33192         [IS_IN (librt)] (CDISABLE): Likewise.
33193         [IS_IN (librt)] (CDISABLE): Likewise.
33194         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33195         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
33196         definition.
33197         (PSEUDO_END): Likewise.
33198         [IS_IN (libpthread)] (CENABLE): Likewise.
33199         [IS_IN (libpthread)] (CDISABLE): Likewise.
33200         [IS_IN (libc)] (CENABLE): Likewise.
33201         [IS_IN (libc)] (CENABLE): Likewise.
33202         [IS_IN (librt)] (CDISABLE): Likewise.
33203         [IS_IN (librt)] (CDISABLE): Likewise.
33204         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33205         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
33206         definition.
33207         (PSEUDO_END): Likewise.
33208         [IS_IN (libpthread)] (CENABLE): Likewise.
33209         [IS_IN (libpthread)] (CDISABLE): Likewise.
33210         [IS_IN (libc)] (CENABLE): Likewise.
33211         [IS_IN (libc)] (CENABLE): Likewise.
33212         [IS_IN (librt)] (CDISABLE): Likewise.
33213         [IS_IN (librt)] (CDISABLE): Likewise.
33214         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33215         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
33216         Remove definition.
33217         (PSEUDO_END): Likewise.
33218         [IS_IN (libpthread)] (CENABLE): Likewise.
33219         [IS_IN (libpthread)] (CDISABLE): Likewise.
33220         [IS_IN (libc)] (CENABLE): Likewise.
33221         [IS_IN (libc)] (CENABLE): Likewise.
33222         [IS_IN (librt)] (CDISABLE): Likewise.
33223         [IS_IN (librt)] (CDISABLE): Likewise.
33224         (SINGLE_THREAD_P): Likewise.
33225         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
33226         definition.
33227         (PSEUDO_END): Likewise.
33228         [IS_IN (libpthread)] (CENABLE): Likewise.
33229         [IS_IN (libpthread)] (CDISABLE): Likewise.
33230         [IS_IN (libc)] (CENABLE): Likewise.
33231         [IS_IN (libc)] (CENABLE): Likewise.
33232         [IS_IN (librt)] (CDISABLE): Likewise.
33233         [IS_IN (librt)] (CDISABLE): Likewise.
33234         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33235         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
33236         definition.
33237         (PSEUDO_END): Likewise.
33238         [IS_IN (libpthread)] (CENABLE): Likewise.
33239         [IS_IN (libpthread)] (CDISABLE): Likewise.
33240         [IS_IN (libc)] (CENABLE): Likewise.
33241         [IS_IN (libc)] (CENABLE): Likewise.
33242         [IS_IN (librt)] (CDISABLE): Likewise.
33243         [IS_IN (librt)] (CDISABLE): Likewise.
33244         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33245         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
33246         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
33247         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
33248         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
33249         definition.
33250         (PSEUDO_END): Likewise.
33251         [IS_IN (libpthread)] (CENABLE): Likewise.
33252         [IS_IN (libpthread)] (CDISABLE): Likewise.
33253         [IS_IN (libc)] (CENABLE): Likewise.
33254         [IS_IN (libc)] (CENABLE): Likewise.
33255         [IS_IN (librt)] (CDISABLE): Likewise.
33256         [IS_IN (librt)] (CDISABLE): Likewise.
33257         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33258         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
33259         definition.
33260         (PSEUDO_END): Likewise.
33261         [IS_IN (libpthread)] (CENABLE): Likewise.
33262         [IS_IN (libpthread)] (CDISABLE): Likewise.
33263         [IS_IN (libc)] (CENABLE): Likewise.
33264         [IS_IN (libc)] (CENABLE): Likewise.
33265         [IS_IN (librt)] (CDISABLE): Likewise.
33266         [IS_IN (librt)] (CDISABLE): Likewise.
33267         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33268         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
33269         definition.
33270         (PSEUDO_END): Likewise.
33271         [IS_IN (libpthread)] (CENABLE): Likewise.
33272         [IS_IN (libpthread)] (CDISABLE): Likewise.
33273         [IS_IN (libc)] (CENABLE): Likewise.
33274         [IS_IN (libc)] (CENABLE): Likewise.
33275         [IS_IN (librt)] (CDISABLE): Likewise.
33276         [IS_IN (librt)] (CDISABLE): Likewise.
33277         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33278         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
33279         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
33280         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
33281         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
33282         definition.
33283         (PSEUDO_END): Likewise.
33284         [IS_IN (libpthread)] (CENABLE): Likewise.
33285         [IS_IN (libpthread)] (CDISABLE): Likewise.
33286         [IS_IN (libc)] (CENABLE): Likewise.
33287         [IS_IN (libc)] (CENABLE): Likewise.
33288         [IS_IN (librt)] (CDISABLE): Likewise.
33289         [IS_IN (librt)] (CDISABLE): Likewise.
33290         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33291         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
33292         definition.
33293         (PSEUDO_END): Likewise.
33294         [IS_IN (libpthread)] (CENABLE): Likewise.
33295         [IS_IN (libpthread)] (CDISABLE): Likewise.
33296         [IS_IN (libc)] (CENABLE): Likewise.
33297         [IS_IN (libc)] (CENABLE): Likewise.
33298         [IS_IN (librt)] (CDISABLE): Likewise.
33299         [IS_IN (librt)] (CDISABLE): Likewise.
33300         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33302 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33304         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33306 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33308         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33310 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33312         [BZ #21982]
33313         * string/stratcliff.c (do_test): Declare size, nchars, inner,
33314         middle and outer with size_t instead of int.  Repleace %d and
33315         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
33316         "MAX (outer, nchars - 64)" to support unsigned outer and
33317         nchars.  Also exit loop when outer == 0.
33319 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33321         * include/fcntl.h (__fcntl_nocancel): Remove definition.
33322         * include/signal.h (__sigsuspend_nocancel): Likewise.
33323         * include/time.h (__nanosleep_nocancel): Likewise.
33324         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33325         * login/utmp_file.c: Include non cancellable syscall header.
33326         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33327         prototype.
33329 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33331         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33332         .byte sequences with AVX512F instructions.
33333         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33334         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33335         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33336         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33337         Likewise.
33338         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33339         Likewise.
33341 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33342             Steve Ellcey  <sellcey@cavium.com>
33344         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33345         Use PTR_REG macro in cmp instruction.
33347 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33349         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33350         Change the return type of the ifunc resolver to match the return
33351         type of the target function.
33353 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33355         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33356         (preadv64): Likewise.
33357         (pwrite64(: Likewise.
33358         (pwritev64): Likewise.
33360         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33361         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33362         (LOAD_ARGS_0): Likewise.
33363         (LOAD_ARGS_1): Likewise.
33364         (LOAD_ARGS_2): Likewise.
33365         (LOAD_ARGS_3): Likewise.
33366         (LOAD_ARGS_4): Likewise.
33367         (LOAD_ARGS_5): Likewise.
33368         (LOAD_ARGS_6): Likewise.
33369         (LOAD_REGS_0): Likewise.
33370         (LOAD_REGS_1): Likewise.
33371         (LOAD_REGS_2): Likewise.
33372         (LOAD_REGS_3): Likewise.
33373         (LOAD_REGS_4): Likewise.
33374         (LOAD_REGS_5): Likewise.
33375         (LOAD_REGS_6): Likewise.
33376         (ASM_ARGS_0): Likewise.
33377         (ASM_ARGS_1): Likewise.
33378         (ASM_ARGS_2): Likewise.
33379         (ASM_ARGS_3): Likewise.
33380         (ASM_ARGS_4): Likewise.
33381         (ASM_ARGS_5): Likewise.
33382         (ASM_ARGS_6): Likewise.
33383         (LOAD_ARGS_TYPES_1): Likewise.
33384         (LOAD_ARGS_TYPES_2): Likewise.
33385         (LOAD_ARGS_TYPES_3): Likewise.
33386         (LOAD_ARGS_TYPES_4): Likewise.
33387         (LOAD_ARGS_TYPES_5): Likewise.
33388         (LOAD_ARGS_TYPES_6): Likewise.
33389         (LOAD_REGS_TYPES_1): Likewise.
33390         (LOAD_REGS_TYPES_2): Likewise.
33391         (LOAD_REGS_TYPES_3): Likewise.
33392         (LOAD_REGS_TYPES_4): Likewise.
33393         (LOAD_REGS_TYPES_5): Likewise.
33394         (LOAD_REGS_TYPES_6): Likewise.
33395         (TYPEFY): New define.
33396         (ARGIFY): Likewise.
33397         (internal_syscall0): Likewise.
33398         (internal_syscall1): Likewise.
33399         (internal_syscall2): Likewise.
33400         (internal_syscall3): Likewise.
33401         (internal_syscall4): Likewise.
33402         (internal_syscall5): Likewise.
33403         (internal_syscall6): Likewise.
33404         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33405         (INTERNAL_SYSCALL_NCS): Remove define.
33406         (internal_syscall1): Add define.
33408 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33410         * math/w_remainder_compat.c: Remove duplicate inclusion of
33411         math-svid-compat.h.
33412         * math/w_remainderf_compat.c: Likewise.
33413         * math/w_remainderl_compat.c: Likewise.
33415 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33417         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33419 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33421         [BZ #21684]
33422         * math/tgmath.h (__floating_type): Simplify definitions.
33423         (__real_integer_type): New macro.
33424         (__complex_integer_type): Likewise.
33425         (__expr_is_real): Likewise.
33426         (__tgmath_real_type_sub): Update comment to describe handling of
33427         complex types.
33428         (__tgmath_complex_type_sub): New macro.
33429         (__tgmath_complex_type): Likewise.
33430         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33431         (__TGMATH_CF128): Use __expr_is_real.
33432         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33433         __expr_is_real.
33434         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33435         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33436         * math/gen-tgmath-tests.py (Type.create_type): Create complex
33437         integer types.
33439 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33441         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33442         macro.
33443         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33444         alias.
33445         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33446         Likewise.
33448         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33449         nanosleep_not_cancel with __nanosleep_nocancel.
33450         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33451         (__nanosleep_nocancel): New macro.
33452         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33453         function.
33454         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33455         macro.
33456         (__nanosleep_nocancel): New prototype.
33458         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33459         pause_not_cancel with __pause_nocancel.
33460         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33461         (__pause_nocancel): New macro.
33462         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33463         macro.
33464         (__pause_nocancel): New prototype.
33465         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33467 2017-08-22  Martin Sebor  <msebor@redhat.com>
33469         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33470         to return a pointer to the same type as the target function.
33472 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33474         [BZ #18822]
33475         [BZ #21986]
33476         * include/printf.h (__printf_fphex): Add attribute_hidden.
33477         (__guess_grouping): New prototype.
33478         * stdio-common/printf_fp.c (__guess_grouping): Removed.
33479         * stdio-common/reg-printf.c (__register_printf_specifier): Add
33480         libc_hidden_proto and libc_hidden_def.
33481         * stdlib/strfmon_l.c (__guess_grouping): Removed.
33482         (__vstrfmon_l): Remove the third argument passed to
33483         __guess_grouping.
33485 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33487         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33488         definition for issignaling that does not rely on __MATH_TG,
33489         since __MATH_TG uses __builtin_types_compatible_p, which is only
33490         available in C mode.
33491         (CFLAGS-test-math-issignaling.cc): New variable.
33492         * math/Makefile [CXX] (tests): Add test-math-issignaling.
33493         * math/test-math-issignaling.cc: New test for C++ implementation
33494         of type-generic issignaling.
33495         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33496         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33497         options of test-math-issignaling on powerpc64le.
33499 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33501         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33502         building libc.a.
33503         (hidden_proto): Likewise.
33504         (hidden_tls_proto): Likewise.
33505         (__hidden_proto): Likewise.
33507 2017-08-22  Florian Weimer  <fweimer@redhat.com>
33509         math: Statically link tests of internal functionality.
33510         * math/Makefile (tests): Remove atest-exp, atest-sincos,
33511         atest-exp2.
33512         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33513         (gmp-objs): Remove assignment.
33514         (atest-exp, atest-sincos, atest-exp2): Remove targets.
33516 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33518         [BZ #21987]
33519         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33520         and copy to ...
33521         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33522         ... here.
33523         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33524         ... and here.
33526         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33527         variable definitions above inclusion of ../Rules.
33529 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33531         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33532         case calling __builtin_unreachable.
33534 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33536         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33537         __waitpid_nocancel.
33538         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33539         (__waitpid_nocancel): New macro.
33540         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33541         macro.
33542         (__waitpid_nocancel): Replace macro with a function.
33543         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33544         function.
33546         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33547         __fcntl_nocancel.
33548         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33549         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33551         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33552         __writev_nocancel_nostatus.
33553         (write_call_graph): Likewise.
33554         (write_bb_counts): Likewise.
33555         * resolv/herror.c (herror): Likewise.
33556         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33557         macro.
33558         (__writev_nocancel_nostatus): New macro.
33559         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33560         Remove macro.
33561         (__writev_nocancel_nostatus): New function.
33563 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33565         Revert:
33566         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33568         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33569         building libc.a.
33570         (hidden_proto): Likewise.
33571         (hidden_tls_proto): Likewise.
33572         (__hidden_proto): Likewise.
33574         [BZ #21973]
33575         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33576         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33578         Likewise.
33579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33580         Likewise.
33581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33582         Likewise.
33583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33584         Likewise.
33585         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33586         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33587         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33588         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33589         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33590         GLIBC_2.0 sqrtl symbol.
33592         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33593         [__USE_MISC] (_LIB_VERSION): Likewise.
33594         [__USE_MISC] (struct exception): Likewise.
33595         [__USE_MISC] (matherr): Likewise.
33596         [__USE_MISC] (DOMAIN): Likewise.
33597         [__USE_MISC] (SING): Likewise.
33598         [__USE_MISC] (OVERFLOW): Likewise.
33599         [__USE_MISC] (UNDERFLOW): Likewise.
33600         [__USE_MISC] (TLOSS): Likewise.
33601         [__USE_MISC] (PLOSS): Likewise.
33602         [__USE_MISC] (HUGE): Likewise.
33603         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33604         * math/math-svid-compat.h: New file.
33605         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33606         and matherrl.
33607         * include/math.h [!_ISOMAC] (__matherr): Remove.
33608         * manual/arith.texi (FP Exceptions): Do not document matherr.
33609         * math/Makefile (tests): Change test-matherr to test-matherr-3.
33610         (tests-internal): New variable.
33611         (install-lib): Do not add libieee.a.
33612         (non-lib.a): Likewise.
33613         (extra-objs): Do not add libieee.a and ieee-math.o.
33614         (CPPFLAGS-s_lib_version.c): Remove variable.
33615         ($(objpfx)libieee.a): Remove rule.
33616         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33617         * math/ieee-math.c: Remove.
33618         * math/libm-test-support.c (matherr): Remove.
33619         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
33620         and license notices.  Include <math-svid-compat.h> and
33621         <shlib-compat.h>.
33622         (matherr): Undefine as macro.  Use compat_symbol_reference.
33623         (_LIB_VERSION): Likewise.
33624         * math/test-matherr-2.c: New file.
33625         * math/test-matherr-3.c: Likewise.
33626         * sysdeps/generic/math_private.h (__kernel_standard): Remove
33627         declaration.
33628         (__kernel_standard_f): Likewise.
33629         (__kernel_standard_l): Likewise.
33630         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33631         <math_private.h>.  Include <math-svid-compat.h>.
33632         (_LIB_VERSION): Undefine as macro.
33633         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
33634         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
33635         [LIBM_SVID_COMPAT], use compat_symbol.
33636         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33637         <math_private.h>.  Include <math-svid-compat.h>.
33638         (matherr): Undefine as macro.
33639         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
33640         compat_symbol.
33641         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33642         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33643         compat_symbol_reference.
33644         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33645         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33646         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33647         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33648         (MATHERR_D): Remove declaration.
33649         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33650         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33651         [LIBM_BUILD] (pmatherrf): Likewise.
33652         [LIBM_BUILD] (pmatherr): Likewise.
33653         [LIBM_BUILD] (pmatherrl): Likewise.
33654         (DOMAIN): Likewise.
33655         (SING): Likewise.
33656         (OVERFLOW): Likewise.
33657         (UNDERFLOW): Likewise.
33658         (TLOSS): Likewise.
33659         (PLOSS): Likewise.
33660         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33661         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
33662         compat_symbol.
33663         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33664         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
33665         compat_symbol.
33666         * math/lgamma-compat.h: Include <math-svid-compat.h>.
33667         * math/w_acos_compat.c: Likewise.
33668         * math/w_acosf_compat.c: Likewise.
33669         * math/w_acosh_compat.c: Likewise.
33670         * math/w_acoshf_compat.c: Likewise.
33671         * math/w_acoshl_compat.c: Likewise.
33672         * math/w_acosl_compat.c: Likewise.
33673         * math/w_asin_compat.c: Likewise.
33674         * math/w_asinf_compat.c: Likewise.
33675         * math/w_asinl_compat.c: Likewise.
33676         * math/w_atan2_compat.c: Likewise.
33677         * math/w_atan2f_compat.c: Likewise.
33678         * math/w_atan2l_compat.c: Likewise.
33679         * math/w_atanh_compat.c: Likewise.
33680         * math/w_atanhf_compat.c: Likewise.
33681         * math/w_atanhl_compat.c: Likewise.
33682         * math/w_cosh_compat.c: Likewise.
33683         * math/w_coshf_compat.c: Likewise.
33684         * math/w_coshl_compat.c: Likewise.
33685         * math/w_exp10_compat.c: Likewise.
33686         * math/w_exp10f_compat.c: Likewise.
33687         * math/w_exp10l_compat.c: Likewise.
33688         * math/w_exp2_compat.c: Likewise.
33689         * math/w_exp2f_compat.c: Likewise.
33690         * math/w_exp2l_compat.c: Likewise.
33691         * math/w_fmod_compat.c: Likewise.
33692         * math/w_fmodf_compat.c: Likewise.
33693         * math/w_fmodl_compat.c: Likewise.
33694         * math/w_hypot_compat.c: Likewise.
33695         * math/w_hypotf_compat.c: Likewise.
33696         * math/w_hypotl_compat.c: Likewise.
33697         * math/w_j0_compat.c: Likewise.
33698         * math/w_j0f_compat.c: Likewise.
33699         * math/w_j0l_compat.c: Likewise.
33700         * math/w_j1_compat.c: Likewise.
33701         * math/w_j1f_compat.c: Likewise.
33702         * math/w_j1l_compat.c: Likewise.
33703         * math/w_jn_compat.c: Likewise.
33704         * math/w_jnf_compat.c: Likewise.
33705         * math/w_jnl_compat.c: Likewise.
33706         * math/w_lgamma_main.c: Likewise.
33707         * math/w_lgamma_r_compat.c: Likewise.
33708         * math/w_lgammaf_main.c: Likewise.
33709         * math/w_lgammaf_r_compat.c: Likewise.
33710         * math/w_lgammal_main.c: Likewise.
33711         * math/w_lgammal_r_compat.c: Likewise.
33712         * math/w_log10_compat.c: Likewise.
33713         * math/w_log10f_compat.c: Likewise.
33714         * math/w_log10l_compat.c: Likewise.
33715         * math/w_log2_compat.c: Likewise.
33716         * math/w_log2f_compat.c: Likewise.
33717         * math/w_log2l_compat.c: Likewise.
33718         * math/w_log_compat.c: Likewise.
33719         * math/w_logf_compat.c: Likewise.
33720         * math/w_logl_compat.c: Likewise.
33721         * math/w_pow_compat.c: Likewise.
33722         * math/w_powf_compat.c: Likewise.
33723         * math/w_powl_compat.c: Likewise.
33724         * math/w_remainder_compat.c: Likewise.
33725         * math/w_remainderf_compat.c: Likewise.
33726         * math/w_remainderl_compat.c: Likewise.
33727         * math/w_scalb_compat.c: Likewise.
33728         * math/w_scalbf_compat.c: Likewise.
33729         * math/w_scalbl_compat.c: Likewise.
33730         * math/w_sinh_compat.c: Likewise.
33731         * math/w_sinhf_compat.c: Likewise.
33732         * math/w_sinhl_compat.c: Likewise.
33733         * math/w_sqrt_compat.c: Likewise.
33734         * math/w_sqrtf_compat.c: Likewise.
33735         * math/w_sqrtl_compat.c: Likewise.
33736         * math/w_tgamma_compat.c: Likewise.
33737         * math/w_tgammaf_compat.c: Likewise.
33738         * math/w_tgammal_compat.c: Likewise.
33739         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33740         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33741         * sysdeps/ieee754/k_standard.c: Likewise.
33742         * sysdeps/ieee754/k_standardf.c: Likewise.
33743         * sysdeps/ieee754/k_standardl.c: Likewise.
33744         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33745         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33746         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33747         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33748         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33749         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33750         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33751         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33752         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33754         Likewise.
33755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33756         Likewise.
33757         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33758         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33759         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33760         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33762 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33764         [BZ #21864]
33765         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33766         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33767         Move before inclusion of ../Rules.
33769 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33771         [BZ #21972]
33772         * assert/assert.h (assert): Use static_cast (bool) for C++.
33773         Use the ternary operator in the warning branch for GNU C.
33774         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33775         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33776         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33777         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33778         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33780 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33782         [BZ #18822]
33783         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33784         (__syscall_clock_gettime): Add attribute_hidden.
33785         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33786         (__start_context): Likewise.
33788 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33790         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33791         building libc.a.
33792         (hidden_proto): Likewise.
33793         (hidden_tls_proto): Likewise.
33794         (__hidden_proto): Likewise.
33796 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33798         * include/libc-symbols.h (attribute_hidden): Enable hidden
33799         visibility in libc.a compiled with PIE.
33801 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33803         [BZ #18822]
33804         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33805         Add attribute_hidden.
33807 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33809         [BZ #21864]
33810         * Makerules (all-nonlib): Add $(others-extras).
33811         * catgets/Makefile (others-extras): New.
33812         * elf/Makefile (others-extras): Likewise.
33813         * nss/Makefile (others-extras): Likewise.
33815 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33817         [BZ #18822]
33818         * csu/libc-start.c (__libc_multiple_libcs): Removed.
33819         * elf/dl-open.c: Include <libc-internal.h>.
33820         (__libc_multiple_libcs): Removed.
33821         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33822         <hp-timing.h>.
33823         * include/libc-internal.h (__libc_multiple_libcs): New.
33824         * misc/sbrk.c: Include <libc-internal.h>.
33825         (__libc_multiple_libcs): Removed.
33827 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33829         [BZ #18822]
33830         * grp/initgroups.c (__nss_group_database): Removed.
33831         (__nss_initgroups_database): Likewise.
33832         * nscd/gai.c (__nss_hosts_database): Likewise.
33833         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33834         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33835         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33836         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33837         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33838         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33839         attribute_hidden.
33840         * nss/nsswitch.c (__nss_database_custom): Define only if
33841         USE_NSCD is defined.
33842         (__nss_configure_lookup): Use __nss_database_custom only if
33843         USE_NSCD is defined.
33844         * nss/nsswitch.h (__nss_database_custom): Declare only if
33845         USE_NSCD is defined.  Add attribute_hidden.
33846         (__nss_setent): Add attribute_hidden.
33847         (__nss_endent): Likewise.
33848         (__nss_getent_r): Likewise.
33849         (__nss_getent): Likewise.
33850         (DEFINE_DATABASE): Declare __nss_##arg##_database.
33852 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33854         [BZ #18822]
33855         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33856         libc_hidden_proto and libc_hidden_def.
33858 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33860         [BZ #18822]
33861         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33862         Add libc_hidden_proto.
33863         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33864         Add libc_hidden_def.
33866 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33868         [BZ #21974]
33869         * gmon/Makefile (routines): Remove bb_init_func and
33870         bb_exit_func.
33871         (elide-routines.os): Removed.
33872         * gmon/bb_exit_func.c: Likewise.
33873         * gmon/bb_init_func.c: Likewise.
33874         * include/sys/gmon.h (__bb): Likewise.
33875         (__bb_init_func): Likewise.
33876         (__bb_exit_func): Likewise.
33877         * sysdeps/alpha/bb_init_func.S: Likewise.
33879 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33881         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33882         * include/setjmp.h (____longjmp_chk): Here.  Add
33883         attribute_hidden.
33885 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
33887         [BZ #18822]
33888         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33889         attribute_hidden.
33890         (__strspn_sse2): Likewise.
33892 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33894         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33895         (close_not_cancel_no_status): Likewise.
33896         (__close_nocancel): New macro.
33897         (__close_nocancel_nostatus): Likewise.
33898         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33899         macro.
33900         (close_not_cancel): Likewise.
33901         (close_not_cancel_no_status): Likewise.
33902         (__close_nocancel): New prototype.
33903         (__close_nocancel_nostatus): New function.
33904         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33905         * catgets/open_catalog.c (__open_catalog): Replace
33906         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33907         * gmon/gmon.c (write_gmon): Likewise.
33908         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33909         * intl/loadmsgcat.c (close): Likewise.
33910         * io/ftw.c (open_dir_stream): Likewise.
33911         (ftw_startup): Likewise.
33912         * libio/fileops.c (_IO_file_open): Likewise.
33913         (_IO_file_close_mmap): Likewise.
33914         (_IO_file_close): Likewise.
33915         * libio/iopopen.c (_IO_dup2): Likewise.
33916         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33917         * locale/loadlocale.c (_nl_load_locale): Likewise.
33918         * login/utmp_file.c (pututline_file): Likewise.
33919         (endutent_file): Likewise.
33920         * misc/daemon.c (daemon): Likewise.
33921         * nscd/nscd_getai.c (__nscd_getai): Likewise.
33922         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33923         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33924         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33925         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33926         * nscd/nscd_helper.c (open_socket): Likewise.
33927         (__nscd_open_socket): Likewise.
33928         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33929         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33930         (__nscd_innetgr): Likewise.
33931         * nss/nss_db/db-open.c (internal_setent): Likewise.
33932         * resolv/res-close.c (__res_iclose): Likewise.
33933         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33934         * sysdeps/posix/closedir.c (__closedir): Likewise.
33935         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33936         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33937         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33938         (opendir_tail): Likewise.
33939         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33940         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33941         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33942         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33943         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33944         (gethostid): Likewise.
33945         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33946         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33947         Likewise.
33948         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33949         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33950         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33951         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33952         Likewise.
33953         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33954         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33955         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33956         Likewise.
33957         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33958         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33959         Likewise.
33960         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33961         Likewise.
33962         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33963         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33964         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33965         __close_nocancel.
33967         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33968         (openat_not_cancel_3): Likewise.
33969         (openat64_not_cancel_3): Likewise).
33970         (openat_not_cancel_3): Likewise).
33971         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33972         macro.
33973         (openat_not_cancel_3): Likewise.
33974         (openat64_not_cancel): Likewise.
33975         (openat64_not_cancel_3): Likewise.
33976         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33977         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33978         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33979         __open{64}_nocancel.
33980         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33981         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33982         * sysdeps/posix/opendir.c (__opendirat): Likewise.
33984 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33986         [BZ #18822]
33987         * include/argz.h (__argz_create_sep): New function prototype.
33988         (__argz_append): Likewise.
33989         (__argz_add): Likewise.
33990         (__argz_add_sep): Likewise.
33991         (__argz_delete): Likewise.
33992         (__argz_insert): Likewise.
33993         (__argz_replace): Likewise.
33994         * string/argz.h (__argz_create_sep): Removed.
33995         (__argz_append): Likewise.
33996         (__argz_add): Likewise.
33997         (__argz_add_sep): Likewise.
33998         (__argz_delete): Likewise.
33999         (__argz_insert): Likewise.
34000         (__argz_replace): Likewise.
34002 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34004         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
34005         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
34006         (GNU_PROPERTY_STACK_SIZE): Likewie.
34007         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
34008         (GNU_PROPERTY_LOPROC): Likewise.
34009         (GNU_PROPERTY_HIPROC): Likewise.
34010         (GNU_PROPERTY_LOUSER): Likewise.
34011         (GNU_PROPERTY_HIUSER): Likewise.
34012         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
34013         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
34014         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
34015         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
34016         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
34017         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
34018         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
34019         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
34020         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
34021         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
34022         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
34023         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
34024         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
34025         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
34026         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
34027         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
34028         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
34029         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
34030         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
34031         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
34032         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
34033         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
34034         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
34036 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34038         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
34039         in C++ mode.
34041 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34043         [BZ #21930]
34044         * math/math.h (isinf): Check if in C or C++ mode before using
34045         __builtin_types_compatible_p, since this is a C mode feature.
34047 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34049         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
34050         (__write_nocancel): New macro.
34051         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
34052         Rewrite as a function prototype.
34053         (write_not_cancel): Remove macro.
34054         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
34055         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
34056         (write_gmon): Likewise.
34057         * libio/fileops.c (_IO_new_file_write): Likewise.
34058         * login/utmp_file.c (pututline_file): Likewise.
34059         (updwtmp_file): Likewise.
34060         * stdio-common/psiginfo.c (psiginfo): Likewise.
34061         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34062         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34063         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34064         Likewise.
34065         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34066         Likewise.
34068         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
34069         (__read_nocancel): New macro.
34070         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34071         __read_nocancel.
34072         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
34073         macro.
34074         (__read_nocancel): New prototype.
34075         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
34076         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
34077         with __read_nocancel.
34078         * intl/loadmsgcat.c (read): Likewise.
34079         * libio/fileops.c (_IO_file_read): Likewise.
34080         * locale/loadlocale.c (_nl_load_locale): Likewise.
34081         * login/utmp_file.c (getutent_r_file): Likewise.
34082         (internal_getut_r): Likewise.
34083         (getutline_r_file): Likewise.
34084         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34085         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
34086         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34087         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34088         Likewise.
34089         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
34090         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34091         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34092         Likewise.
34093         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34094         Likewise.
34095         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34096         Likewise.
34097         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34098         Likewise.
34099         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34101 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34103         [BZ #21966]
34104         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
34105         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
34106         usable.
34108 2017-08-17  DJ Delorie  <dj@redhat.com>
34110         * bug17079.c: Update to new test harness.
34111         * test-digits-dots.c: Likewise.
34112         * test-netdb.c: Likewise.
34113         * tst-field.c: Likewise.
34114         * tst-nss-getpwent.c: Likewise.
34115         * tst-nss-static.c: Likewise.
34116         * tst-nss-test1.c: Likewise.
34117         * tst-nss-test2.c: Likewise.
34118         * tst-nss-test3.c: Likewise.
34119         * tst-nss-test4.c: Likewise.
34120         * tst-nss-test5.c: Likewise.
34122 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34124         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
34125         (open_not_cancel_2): Likewise.
34126         (open_nocancel): New macro.
34127         (open64_nocancel): Likewise.
34128         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
34129         (open_not_cancel_2): Likewise.
34130         (__open_nocancel): New prototype.
34131         (__open64_nocancel): Likewise.
34132         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34133         __open_nocancel.
34134         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
34135         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
34136         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
34137         with __open_nocancel.
34138         * csu/check_fds.c (check_one_fd): Likewise.
34139         * gmon/gmon.c (write_gmon): Likewise.
34140         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
34141         * intl/loadmsgcat.c (open): Likewise.
34142         * libio/fileops.c (_IO_file_open): Likewise.
34143         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34144         * locale/loadlocale.c (_nl_load_locale): Likewise.
34145         * login/utmp_file.c (setutent_file): Likewise.
34146         * misc/daemon.c (daemon): Likewise.
34147         * nss/nss_db/db-open.c (internal_setent): Likewise.
34148         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34149         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
34150         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
34151         (__opendir): Likewise.
34152         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34153         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34154         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34155         (gethostid): Likewise.
34156         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34157         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34158         Likewise.
34159         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
34160         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
34161         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34162         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34163         Likewise.
34164         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34165         Likewise.
34166         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34167         Likewise.
34168         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34169         Likewise.
34170         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34171         Likewise.
34172         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34173         Likewise.
34174         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
34175         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34177 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
34179         * benchtests/bench-skeleton.c (main): Add support for
34180         latency benchmarking.
34181         * benchtests/scripts/bench.py: Add support for latency benchmarking.
34183 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
34185         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
34186         the startup object.
34188 2017-08-17  Florian Weimer  <fweimer@redhat.com>
34190         * include/sys/socket.h (__opensock): Remove internal_function.
34191         * socket/opensock.c (__opensock): Likewise.
34192         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
34194 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
34196         [BZ #21944]
34197         * signal/bits/types/__sigval_t.h: New file.
34198         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
34199         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
34200         and define sigval_t using __sigval_t.
34201         * include/bits/types/__sigval_t.h: New file.
34202         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
34203         instead of <bits/types/__sigval_t.h>.
34204         (struct sigevent): Use __sigval_t instead of sigval_t.
34205         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
34206         instead of <bits/types/__sigval_t.h>.
34207         (siginfo_t): Use __sigval_t instead of sigval_t.
34208         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
34209         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34210         (struct sigevent): Use __sigval_t instead of sigval_t.
34211         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
34212         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34213         (siginfo_t): Use __sigval_t instead of sigval_t.
34214         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
34216 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34218         * NEWS: Remove "[Add new features here]" for 2.27.
34220 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
34222         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
34223         libc.so.
34225 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34227         * NEWS: Mention x86-64 FMA optimization.
34229 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34231         [BZ #21912]
34232         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34233         Add e_expf-fma.
34234         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
34235         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
34236         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
34238 2017-08-16  Andreas Schwab  <schwab@suse.de>
34240         [BZ #16750]
34241         CVE-2009-5064
34242         * elf/ldd.bash.in: Never run file directly.
34244 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
34246         [BZ #21955]
34247         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
34248         (L(SP_INF_0)): Likewise.
34250 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34252         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
34253         run-built-tests.
34255 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34257         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
34258         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
34259         BROKEN_THREAD_SIGNALS code.
34260         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
34261         request_list): Remove caller_pid member used for
34262         BROKEN_THREAD_SIGNALS.
34263         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
34264         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34265         Remove BROKEN_THREAD_SIGNALS support.
34266         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
34267         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
34269 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34271         * gmon/Makefile (tests): Add tst-gmon.
34272         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
34273         Set.
34274         (tests-special): Add tst-gmon-prof.out.
34275         (tst-gmon.out): Depend on clean-tst-gmon-data.
34276         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
34277         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
34278         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
34279         startup object.
34280         * aclocal.m4 (GPROF): Set and substitute.
34281         * config.amke.in (GPROF): Set.
34282         * configure: Regenerate.
34284 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
34286         * elf/elf.h A (NT_PPC_TAR): New macro.
34287         (NT_PPC_PPR): Likewise.
34288         (NT_PPC_DSCR): Likewise.
34289         (NT_PPC_EBB): Likewise.
34290         (NT_PPC_PMU): Likewise.
34291         (NT_PPC_TM_CGPR): Likewise.
34292         (NT_PPC_TM_CFPR): Likewise.
34293         (NT_PPC_TM_CVMX): Likewise.
34294         (NT_PPC_TM_CVSX): Likewise.
34295         (NT_PPC_TM_SPR): Likewise.
34296         (NT_PPC_TM_CTAR): Likewise.
34297         (NT_PPC_TM_CPPR): Likewise.
34298         (NT_PPC_TM_CDSCR): Likewise.
34300 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34302         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
34303         regparm (2) instead of internal_function.
34304         (_MCOUNT_DECL): Adjust.
34306 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
34308         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34309         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34311 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
34313         * conform/data/sys/wait.h-data (si_value): Do not expect for
34314         XPG42.
34316 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34318         [BZ #21962]
34319         NSS: Create stubs for accidentally exported lookup functions.
34320         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34321         Remove declaration.
34322         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34323         (ether_hostton): Call __nss_ethers_lookup2 instead.
34324         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34325         (ether_ntohost): Call __nss_ethers_lookup2 instead.
34326         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34327         (setup): Call __nss_netgroup_lookup2 instead.
34328         * nss/Makefile (routines): Add compat-lookup.
34329         * nss/Versions (GLIBC_2.27): Add symbol version.
34330         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
34331         (DB_COMPAT_FCT): Remove.
34332         * nss/compat-lookup.c: New file.
34333         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34334         from databases.def.
34335         * nss/service-lookup.c (NO_COMPAT): Remove definition.
34336         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34337         (netname2user): Call __nss_publickey_lookup2 instead.
34338         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34339         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34340         instead.
34342 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34343             Sergei Trofimovich  <slyfox@inbox.ru>
34345         [BZ #21908]
34346         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34347         Rename to MMAP2_PAGE_UNIT.
34348         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34349         __OFF_T_MATCHES_OFF64_T is not defined.
34350         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34351         uint64_t.
34352         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34353         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34355 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34357         i386: Do not set internal_function.
34358         * config.h.in (USE_REGPARMS, internal_function): Remove.
34359         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34360         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34362 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34364         * elf/dl-init.c (_dl_init): Remove internal_function.
34365         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34366         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34368 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34370         * elf/rtld.c (_dl_start): Remove internal_function.
34371         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34372         _dl_start.
34374 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34376         * elf/dl-fini.c (_dl_fini): Remove internal_function
34377         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34379 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
34381         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34382         (bit_cpu_SHSTK): Likewise.
34383         (index_cpu_IBT): Likewise.
34384         (index_cpu_SHSTK): Likewise.
34385         (reg_IBT): Likewise.
34386         (reg_SHSTK): Likewise.
34387         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34388         Handle index_cpu_IBT and index_cpu_SHSTK.
34390 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
34392         [BZ #19982]
34393         * po/fr.po: Fix spelling mistake.
34395 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34397         * elf/dl-addr.c (_dl_addr): Remove internal_function.
34398         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34399         (_dl_catch_error, _dl_receive_error): Likewise.
34400         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34401         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34402         (_dl_deallocate_tls): Likewise.
34403         * include/dlfcn.h (_dl_addr): Likewise.
34404         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34405         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34406         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34407         Likewise.
34409 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34411         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34412         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34413         internal_function.
34414         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34416 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34418         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34419         internal_function.
34420         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34421         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34422         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34423         internal_function from _dl_make_stack_executable_hook member.
34424         (_dl_make_stack_executable): Remove internal_function.
34425         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34426         Likewise.
34427         * sysdeps/unix/sysv/linux/dl-execstack.c
34428         (_dl_make_stack_executable): Likewise.
34430 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34432         * sysdeps/unix/sysv/linux/netlinkaccess.h
34433         (__netlink_assert_response): Remove internal_function.
34434         * sysdeps/unix/sysv/linux/netlink_assert_response.c
34435         (__netlink_assert_response): Likewise.
34437 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34439         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34440         internal_function.
34441         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34443 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34445         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34446         internal_function.
34447         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34448         * inet/netgroup.h (__internal_setnetgrent)
34449         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34450         * inet/getnetgrent_r.c (__internal_setnetgrent)
34451         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34452         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34453         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34454         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34455         * nss/nsswitch.h (db_lookup_function): Likewise.
34457 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34459         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34460         Remove internal_function.
34461         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34462         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34463         message argument on the stack.
34464         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34465         Likeweise.
34467 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
34469         Adapt test case data to the changes in the thousands
34470         separators.
34472         [BZ #20756]
34473         * localedata/tst-langinfo.sh: Adapt test case data.
34474         * stdlib/tst-strfmon_l.c: Likewise.
34475         * stdlib/tst-strtod4.c: Likewise.
34476         * stdlib/tst-strtod5i.c: Likewise.
34478 2017-08-11  Florian Weimer  <fweimer@redhat.com>
34480         [BZ #21242]
34481         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34482         Suppress pedantic warning resulting from statement expression.
34483         (__ASSERT_FUNCTION): Add missing __extension__.
34485 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34487         * benchtests/bench-memmove-large.c: Print output in JSON
34488         format.
34489         * benchtests/bench-memmove.c: Likewise.
34491         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34492         * benchtests/bench-memchr.c (do_one_test): Likewise.
34493         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34494         * benchtests/bench-memcpy.c (do_one_test): Likewise.
34495         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34496         * benchtests/bench-memmove.c (do_one_test): Likewise.
34497         * benchtests/bench-memset-large.c (do_one_test): Likewise.
34498         * benchtests/bench-memset.c (do_one_test): Likewise.
34499         * benchtests/bench-string.h (test_init): Remove memsets.
34501 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34503         * manual/lang.texi
34504         (Computing the Width of an Integer Data Type): Rename section to
34505         "Width of an Integer Type".  Remove inaccurate statement regarding
34506         lack of C language facilities for determining width of integer
34507         types, and reorder content to improve flow and context of
34508         discussion.
34510 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34512         * lang.texi (va_copy): Change standard from ISO to C99.
34513         (__va_copy): Add standard and header annotation.
34514         Update description for clarity of origins and current use.
34516 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34518         [BZ #21941]
34519         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34520         xssqrtqp requires operands to be in Vector Registers
34521         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34522         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34523         (__ieee754_sqrtf128): Likewise.
34525 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
34527         * sysdeps/aarch64/memcmp.S (memcmp):
34528         Rewrite of optimized memcmp.
34530 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34532         Introduce ld.so exceptions.
34533         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34534         (_dl_exception_create, _dl_exception_create_format)
34535         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34536         (_dl_catch_exception): Declare.
34537         (_dl_catch_error): Update comment.
34538         * elf/dl-error-skeleton.c (struct catch): Replace objname,
34539         errstring, malloced members with exception member.
34540         (_dl_out_of_memory): Remove.
34541         (fatal_error): New function, extracted from _dl_signal_error.
34542         (_dl_signal_exception, _dl_signal_cexception): New functions.
34543         (_dl_signal_error): Call _dl_exception_create to allocate an
34544         exception object.
34545         (_dl_catch_exception): New function, based on _dl_catch_error.
34546         (_dl_catch_error): Implement using _dl_catch_exception.
34547         * elf/dl-exception.c: New file.
34548         * elf/Makefile (dl-routines): Add dl-exception.
34549         (elide-routines.os): Likewise.
34550         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34551         _dl_exception_create_format, _dl_exception_free.
34552         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34553         _dl_signal_exception.
34554         * elf/dl-lookup.c (make_string): Remove.
34555         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34556         _dl_signal_cexception, _dl_exception_free.
34557         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34558         _dl_signal_exception.
34559         * elf/dl-sym.c (do_sym): Likewise.
34560         * elf/dl-version.c (make_string): Remove.
34561         (match_symbol): Use _dl_exception_create_format,
34562         _dl_signal_cexception, _dl_exception_free.
34563         (_dl_check_map_versions): Likewise.
34564         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34565         _dl_catch_exception.
34566         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34567         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34568         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34569         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34570         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34571         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34572         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34573         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34574         Likewise.
34575         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34577         (ld.so): Likewise.
34578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34579         (ld.so): Likewise.
34580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34581         Likewise.
34582         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34583         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34584         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34585         Likewise.
34586         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34587         Likewise.
34588         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34590 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34592         * inet/net-internal.h (__inet6_scopeid_pton): Remove
34593         attribute_hidden, internal_function.
34594         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34595         internal_function.
34597 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34599         * malloc/malloc.c (get_max_fast): Reimplement as an inline
34600         function which calls __builtin_unreachable.
34602 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
34604         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34605         Indian monetary formatting
34606         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34607         test cases.
34609 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
34611         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34612         Fix typo in comment.
34614         [BZ #21928]
34615         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34616         PTRACE_SEIZE_DEVEL): Remove.
34617         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34618         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34619         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34620         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34621         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34623 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
34625         * posix/bits/types.h (__qaddr_t): Remove.
34627         [BZ #21457]
34628         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34629         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34630         __glibc_reserved1.
34631         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34632         (ucontext_t): Use __ctx with uc_flags.
34633         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34634         (__ctxt): Likewise.
34635         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34636         __glibc_reserved1.
34637         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34638         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34639         __glibc_reserved1.
34640         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34641         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34642         __glibc_reserved1.
34643         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34644         macro.
34645         (ucontext_t): Use __ctx with uc_flags.
34646         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34647         (ucontext_t): Use __ctx with uc_flags.
34648         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34649         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34650         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34651         (ucontext_t): Use __ctx with uc_flags.
34652         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34653         undefine further down.
34654         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34655         __glibc_reserved1.
34656         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34657         undefine further down.
34658         (ucontext_t): Use __ctx with uc_flags.
34659         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34660         undefine further down.
34661         (ucontext_t): Use __ctx with uc_flags.
34662         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34663         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34664         Rename uc_pad to __glibc_reserved1.
34665         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34666         undefine further down.
34667         (ucontext_t): Use __ctx with uc_flags.
34668         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34669         further down.
34670         (ucontext_t): Use __ctx with uc_flags.
34671         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34672         __ctx with uc_flags.
34673         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34674         (ucontext_t): Use __ctx with uc_flags.
34675         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34676         __ctx with uc_flags.
34678 2017-08-09  Florian Weimer  <fweimer@redhat.com>
34680         [BZ #21932]
34681         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34682         before early return.
34684 2017-08-09  Andreas Schwab  <schwab@suse.de>
34686         [BZ #21041]
34687         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34688         renamed alias.
34690         [BZ #21041]
34691         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34692         tst-compat-forwarder.
34693         (modules-names): Add tst-compat-forwarder-mod.
34694         ($(objpfx)tst-compat-forwarder): Depend on
34695         $(objpfx)tst-compat-forwarder-mod.so.
34696         * nptl/tst-compat-forwarder.c: New file.
34697         * nptl/tst-compat-forwarder-mod.c: New file.
34699 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34701         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34702         comments.
34704         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34705         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34706         memcpy_falkor.
34707         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34708         Bump.
34709         (__libc_ifunc_impl_list): Add __memcpy_falkor.
34710         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34711         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34712         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34713         Add falkor.
34714         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34715         New macro.
34717 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34719         [BZ #759]
34720         * manual/setjmp.texi (getcontex): Document uc_stack value
34721         compatibility differences.
34723 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
34725         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34726         (old_malloc_hook): Likewise.
34727         (old_memalign_hook): Likewise.
34728         (old_realloc_hook): Likewise.
34729         (struct hdr): Likewise.
34730         (flood): Likewise.
34731         (freehook): Likewise.
34732         (mallochook): Likewise.
34733         (memalignhook): Likewise.
34734         (reallochook): Likewise.
34735         (mprobe): Likewise.
34736         * malloc/mtrace.c (mallwatch): Likewise.
34737         (tr_old_free_hook): Likewise.
34738         (tr_old_malloc_hook): Likewise.
34739         (tr_old_realloc_hook): Likewise.
34740         (tr_old_memalign_hook): Likewise.
34741         (tr_where): Likewise.
34742         (lock_and_info): Likewise.
34743         (tr_freehook): Likewise.
34744         (tr_mallochook): Likewise.
34745         (tr_reallochook): Likewise.
34746         (tr_memalignhook): Likewise.
34747         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34748         * misc/mmap.c (__mmap): Likewise.
34749         * misc/mmap64.c (__mmap64): Likewise.
34750         * misc/mprotect.c (__mprotect): Likewise.
34751         * misc/msync.c (msync): Likewise.
34752         * misc/munmap.c (__munmap): Likewise.
34753         * posix/posix_madvise.c (posix_madvise): Likewise.
34754         * socket/send.c (__send): Likewise.
34755         * socket/sendto.c (__sendto): Likewise.
34756         * socket/setsockopt.c (__setsockopt): Likewise.
34757         * string/memcmp.c (__ptr_t): Remove macro.
34758         (MEMCMP): Use void * instead of ptr_t.
34759         * string/memrchr.c (__ptr_t): Remove macro.
34760         (__memrchr): Use void * instead of ptr_t.
34761         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34762         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34763         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34764         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34765         * sysdeps/mach/msync.c (msync): Likewise.
34766         * sysdeps/mach/munmap.c (__munmap): Likewise.
34767         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34768         Likewise.
34769         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34770         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34771         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34772         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34773         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34774         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34775         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34776         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34777         Likewise.
34778         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34779         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34780         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34781         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34782         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34783         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34784         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34785         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34786         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34787         Likewise.
34788         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34789         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34790         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34791         (MEMCMP): Use void * instead of ptr_t.
34792         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34793         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34795 2017-08-08  Florian Weimer  <fweimer@redhat.com>
34797         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34798         return statement.
34800 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
34802         [BZ #21913]
34803         * csu/libc-tls.c: Include <startup.h> first.
34804         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34805         * elf/dl-tunables.c: Include <startup.h> first.
34806         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34807         * sysdeps/generic/startup.h: New file.
34808         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34809         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34810         (I386_USE_SYSENTER): New.  Defined to 0.
34812 2017-08-08  Andreas Schwab  <schwab@suse.de>
34814         [BZ #21041]
34815         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34816         * nptl/pt-system.c (system): Likewise.
34818 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34820         [BZ #21780]
34821         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34822         EOPNOTSUPP.
34823         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34824         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34825         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34826         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34827         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34828         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34829         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34831 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
34833         [BZ #21899]
34834         * bits/sigaction.h (struct sigaction): Define sa_handler and
34835         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34836         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34837         [__USE_XOPEN_EXTENDED].
34838         (SA_RESTART): Likewise.
34839         (SA_NODEFER): Likewise.
34840         (SA_RESETHAND): Likewise.
34841         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34842         (struct sigaction): Define sa_handler and sa_sigaction using union
34843         also for [__USE_XOPEN_EXTENDED].
34844         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34845         [__USE_XOPEN_EXTENDED].
34846         (SA_RESTART): Likewise.
34847         (SA_NODEFER): Likewise.
34848         (SA_RESETHAND): Likewise.
34849         * sysdeps/unix/sysv/linux/bits/sigaction.h
34850         (struct sigaction): Define sa_handler and sa_sigaction using union
34851         also for [__USE_XOPEN_EXTENDED].
34852         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34853         [__USE_XOPEN_EXTENDED].
34854         (SA_RESTART): Likewise.
34855         (SA_NODEFER): Likewise.
34856         (SA_RESETHAND): Likewise.
34857         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34858         (struct sigaction): Define sa_handler and sa_sigaction using union
34859         also for [__USE_XOPEN_EXTENDED].
34860         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34861         [__USE_XOPEN_EXTENDED].
34862         (SA_RESTART): Likewise.
34863         (SA_NODEFER): Likewise.
34864         (SA_RESETHAND): Likewise.
34865         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34866         (struct sigaction): Define sa_handler and sa_sigaction using union
34867         also for [__USE_XOPEN_EXTENDED].
34868         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34869         [__USE_XOPEN_EXTENDED].
34870         (SA_RESTART): Likewise.
34871         (SA_NODEFER): Likewise.
34872         (SA_RESETHAND): Likewise.
34873         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34874         (struct sigaction): Define sa_handler and sa_sigaction using union
34875         also for [__USE_XOPEN_EXTENDED].
34876         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34877         [__USE_XOPEN_EXTENDED].
34878         (SA_RESTART): Likewise.
34879         (SA_NODEFER): Likewise.
34880         (SA_RESETHAND): Likewise.
34881         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34882         (struct sigaction): Define sa_handler and sa_sigaction using union
34883         also for [__USE_XOPEN_EXTENDED].
34884         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34885         [__USE_XOPEN_EXTENDED].
34886         (SA_RESTART): Likewise.
34887         (SA_NODEFER): Likewise.
34888         (SA_RESETHAND): Likewise.
34889         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34890         (struct sigaction): Define sa_handler and sa_sigaction using union
34891         also for [__USE_XOPEN_EXTENDED].
34892         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34893         [__USE_XOPEN_EXTENDED].
34894         (SA_RESTART): Likewise.
34895         (SA_NODEFER): Likewise.  Define directly rather than as alias.
34896         (SA_RESETHAND): Likewise.
34897         (SA_INTERRUPT): Define only for [__USE_MISC].
34898         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34899         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34900         [__USE_MISC].
34901         (SA_STACK): Define only for [__USE_MISC].
34902         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34903         (struct sigaction): Define sa_handler and sa_sigaction using union
34904         also for [__USE_XOPEN_EXTENDED].
34905         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34906         [__USE_XOPEN_EXTENDED].
34907         (SA_RESTART): Likewise.
34908         (SA_NODEFER): Likewise.
34909         (SA_RESETHAND): Likewise.
34910         (SA_NOPTRACE): Define only for [__USE_MISC].
34912         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34913         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34914         (struct catalog_info): Likewise.
34915         * inet/htontest.c (lo): Likewise.
34916         (foo): Likewise.
34917         * inet/inet_lnaof.c (inet_lnaof): Likewise.
34918         * inet/inet_net.c (inet_network): Likewise.
34919         * inet/inet_netof.c (inet_netof): Likewise.
34920         * inet/rcmd.c (__ivaliduser): Likewise.
34921         (iruserok): Likewise.
34922         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34923         * locale/programs/locale-spec.c (locale_special): Likewise.
34924         * nis/nis_findserv.c (struct findserv_req): Likewise.
34925         (__nis_findfastest_with_timeout): Likewise.
34926         * nss/test-netdb.c (test_network): Likewise.
34927         * resolv/inet_neta.c (inet_neta): Likewise.
34928         * resolv/ns_date.c (ns_datetosecs): Likewise.
34929         (SECS_PER_DAY): Likewise.
34930         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34931         Likewise.
34932         * resolv/res_comp.c (__putlong): Likewise.
34933         (__putshort): Likewise.
34934         (_getlong): Likewise.
34935         (_getshort): Likewise.
34936         * resolv/res_debug.c (p_time): Likewise.
34937         (precsize_ntoa): Likewise.
34938         (precsize_aton): Likewise.
34939         (latlon2ul): Likewise.
34940         (loc_aton): Likewise.
34941         (loc_ntoa): Likewise.
34942         * resolv/res_hconf.c (struct netaddr): Likewise.
34943         (_res_hconf_reorder_addrs): Likewise.
34944         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34945         (clnttcp_control): Likewise.
34946         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34947         (clntudp_control): Likewise.
34948         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34949         (clntunix_control): Likewise.
34950         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34951         * sunrpc/rpc/auth.h (union des_block): Likewise.
34952         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34953         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34954         (xdrrec_create): Likewise.
34955         (xdrrec_endofrecord): Likewise.
34956         (flush_out): Likewise.
34957         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34958         (xdrstdio_putlong): Likewise.
34959         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34960         Likewise.
34962         * misc/sys/cdefs.h (__long_double_t): Remove.
34963         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34964         instead of __long_double_t,
34965         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34967 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34969         * benchtests/scripts/compare_strings.py: Avoid display error when
34970         running on a text terminal.
34972         * benchtests/scripts/compare_strings.py (main): Add an
34973         optional -base option.
34974         (process_results): New argument base_func.
34976         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34977         hardcoding memcpy.
34978         * benchtests/bench-memcpy-large.c (test_name): Likewise.
34979         * benchtests/bench-memcpy-random.c (test_name): Likewise.
34981 2017-08-07  Andreas Schwab  <schwab@suse.de>
34983         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34984         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34985         * intl/Makefile ($(objpfx)tst-gettext.out)
34986         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34987         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34988         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34989         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34990         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34991         * posix/Makefile ($(objpfx)globtest.out)
34992         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34993         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34994         ($(objpfx)tst-printf.out): Likewise.
34995         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34996         ($(objpfx)tst-setcontext3.out): Likewise.
34998 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
35000         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35001         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
35002         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
35003         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
35004         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
35005         and mptan-fma.
35006         (CFLAGS-doasin-fma.c): New.
35007         (CFLAGS-dosincos-fma.c): Likewise.
35008         (CFLAGS-e_asin-fma.c): Likewise.
35009         (CFLAGS-e_atan2-fma.c): Likewise.
35010         (CFLAGS-e_exp-fma.c): Likewise.
35011         (CFLAGS-e_log-fma.c): Likewise.
35012         (CFLAGS-e_pow-fma.c): Likewise.
35013         (CFLAGS-halfulp-fma.c): Likewise.
35014         (CFLAGS-mpa-fma.c): Likewise.
35015         (CFLAGS-mpatan-fma.c): Likewise.
35016         (CFLAGS-mpatan2-fma.c): Likewise.
35017         (CFLAGS-mpexp-fma.c): Likewise.
35018         (CFLAGS-mplog-fma.c): Likewise.
35019         (CFLAGS-mpsqrt-fma.c): Likewise.
35020         (CFLAGS-mptan-fma.c): Likewise.
35021         (CFLAGS-s_atan-fma.c): Likewise.
35022         (CFLAGS-sincos32-fma.c): Likewise.
35023         (CFLAGS-slowexp-fma.c): Likewise.
35024         (CFLAGS-slowpow-fma.c): Likewise.
35025         (CFLAGS-s_sin-fma.c): Likewise.
35026         (CFLAGS-s_tan-fma.c): Likewise.
35027         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
35028         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
35029         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
35030         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
35031         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
35032         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
35033         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
35034         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
35035         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
35036         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
35037         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
35038         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
35039         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
35040         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
35041         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
35042         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
35043         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
35044         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
35045         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
35046         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
35047         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
35048         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
35049         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
35050         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
35051         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
35052         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
35053         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
35054         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
35055         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
35056         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
35057         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
35059 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
35061         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
35062         (min_of_type_f): New macro.
35063         (min_of_type_): Likewise.
35064         (min_of_type_l): Likewise.
35065         (min_of_type_f128): Likewise.
35066         (min_of_type): Define using __MATH_TG and taking an expression
35067         argument.
35068         (math_check_force_underflow): Pass expression instead of type to
35069         min_of_type.
35070         (math_check_force_underflow_nonneg): Likewise.
35072 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35074         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35075         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
35076         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
35078 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35080         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35081         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
35082         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
35083         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
35084         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
35085         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
35086         memcpy_chk-nonshared, mempcpy_chk-nonshared,
35087         memmove_chk-nonshared and memset_chk-nonshared
35088         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
35089         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
35090         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
35091         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
35092         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
35093         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
35094         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
35095         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
35096         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
35097         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
35098         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
35099         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
35100         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
35101         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
35102         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
35103         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
35104         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
35105         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
35106         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
35107         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
35108         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
35109         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
35110         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
35111         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
35112         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
35113         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
35114         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
35115         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
35116         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
35117         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
35118         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
35119         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
35120         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
35121         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35122         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35123         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
35124         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
35125         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
35126         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
35127         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
35128         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
35129         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
35130         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
35131         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
35132         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
35133         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
35134         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
35135         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
35136         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
35137         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
35138         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
35139         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
35140         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
35141         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
35142         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
35143         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
35144         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
35145         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
35146         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
35147         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
35148         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
35149         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
35150         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
35151         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
35152         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
35153         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
35154         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
35155         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
35156         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
35157         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
35158         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
35159         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
35160         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
35161         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
35162         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
35163         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
35164         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
35165         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
35166         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
35167         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
35168         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
35169         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
35170         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
35171         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
35172         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
35173         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
35174         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
35175         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
35176         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
35177         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
35178         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
35179         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
35180         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
35181         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
35182         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
35183         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
35184         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
35185         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
35186         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
35187         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
35188         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
35189         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
35190         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
35191         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
35192         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
35193         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
35194         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
35195         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
35197 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35199         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
35200         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
35201         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
35202         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
35203         svml_d_log2_core-sse2, svml_d_log4_core-sse,
35204         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
35205         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
35206         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
35207         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
35208         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
35209         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
35210         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
35211         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
35212         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
35213         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
35214         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
35215         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
35216         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
35217         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
35218         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
35219         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
35220         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
35221         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
35222         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
35223         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
35224         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
35225         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
35226         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
35227         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
35228         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
35229         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
35230         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
35231         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
35232         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
35233         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
35234         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
35235         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
35236         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
35237         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
35238         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
35239         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
35240         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
35241         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
35242         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
35243         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
35244         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
35245         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
35246         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
35247         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
35248         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
35249         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
35250         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
35251         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
35252         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
35253         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
35254         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
35255         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
35256         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
35257         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
35258         ...
35259         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
35260         Don't include <sysdep.h> nor <init-arch.h>.
35261         (_ZGVbN2v_cos): Removed.
35262         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
35263         ...
35264         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
35265         Don't include <sysdep.h> nor <init-arch.h>.
35266         (_ZGVdN4v_cos): Removed.
35267         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
35268         ...
35269         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
35270         Don't include <sysdep.h> nor <init-arch.h>.
35271         (_ZGVeN8v_cos): Removed.
35272         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
35273         ...
35274         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
35275         Don't include <sysdep.h> nor <init-arch.h>.
35276         (_ZGVbN2v_exp): Removed.
35277         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
35278         ...
35279         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
35280         Don't include <sysdep.h> nor <init-arch.h>.
35281         (_ZGVdN4v_exp): Removed.
35282         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
35283         ...
35284         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
35285         Don't include <sysdep.h> nor <init-arch.h>.
35286         (_ZGVeN8v_exp): Removed.
35287         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
35288         ...
35289         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
35290         Don't include <sysdep.h> nor <init-arch.h>.
35291         (_ZGVbN2v_log): Removed.
35292         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
35293         ...
35294         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
35295         Don't include <sysdep.h> nor <init-arch.h>.
35296         (_ZGVdN4v_log): Removed.
35297         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
35298         ...
35299         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
35300         Don't include <sysdep.h> nor <init-arch.h>.
35301         (_ZGVeN8v_log): Removed.
35302         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
35303         ...
35304         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35305         Don't include <sysdep.h> nor <init-arch.h>.
35306         (_ZGVbN2vv_pow): Removed.
35307         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
35308         ...
35309         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35310         Don't include <sysdep.h> nor <init-arch.h>.
35311         (_ZGVdN4vv_pow): Removed.
35312         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
35313         ...
35314         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35315         Don't include <sysdep.h> nor <init-arch.h>.
35316         (_ZGVeN8vv_pow): Removed.
35317         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
35318         ...
35319         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35320         Don't include <sysdep.h> nor <init-arch.h>.
35321         (_ZGVbN2v_sin): Removed.
35322         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
35323         ...
35324         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35325         Don't include <sysdep.h> nor <init-arch.h>.
35326         (_ZGVbN4v_sin): Removed.
35327         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
35328         ...
35329         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35330         Don't include <sysdep.h> nor <init-arch.h>.
35331         (_ZGVbN8v_sin): Removed.
35332         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
35333         ...
35334         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35335         Don't include <sysdep.h> nor <init-arch.h>.
35336         (_ZGVbN2vvv_sincos): Removed.
35337         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
35338         ...
35339         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35340         Don't include <sysdep.h> nor <init-arch.h>.
35341         (_ZGVdN4vvv_sincos): Removed.
35342         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
35343         ...
35344         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35345         Don't include <sysdep.h> nor <init-arch.h>.
35346         (_ZGVeN8vvv_sincos): Removed.
35347         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
35348         ...
35349         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35350         Don't include <sysdep.h> nor <init-arch.h>.
35351         (_ZGVeN16v_cosf): Removed.
35352         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
35353         ...
35354         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35355         Don't include <sysdep.h> nor <init-arch.h>.
35356         (_ZGVbN4v_cosf): Removed.
35357         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
35358         ...
35359         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35360         Don't include <sysdep.h> nor <init-arch.h>.
35361         (_ZGVdN8v_cosf): Removed.
35362         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
35363         ...
35364         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35365         Don't include <sysdep.h> nor <init-arch.h>.
35366         (_ZGVeN16v_expf): Removed.
35367         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
35368         ...
35369         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35370         Don't include <sysdep.h> nor <init-arch.h>.
35371         (_ZGVbN4v_expf): Removed.
35372         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
35373         ...
35374         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35375         Don't include <sysdep.h> nor <init-arch.h>.
35376         (_ZGVdN8v_expf): Removed.
35377         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
35378         ...
35379         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35380         Don't include <sysdep.h> nor <init-arch.h>.
35381         (_ZGVeN16v_logf): Removed.
35382         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
35383         ...
35384         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35385         Don't include <sysdep.h> nor <init-arch.h>.
35386         (_ZGVbN4v_logf): Removed.
35387         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
35388         ...
35389         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35390         Don't include <sysdep.h> nor <init-arch.h>.
35391         (_ZGVdN8v_logf): Removed.
35392         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
35393         ...
35394         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35395         Don't include <sysdep.h> nor <init-arch.h>.
35396         (_ZGVeN16vv_powf): Removed.
35397         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
35398         ...
35399         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35400         Don't include <sysdep.h> nor <init-arch.h>.
35401         (_ZGVbN4vv_powf): Removed.
35402         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
35403         ...
35404         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35405         Don't include <sysdep.h> nor <init-arch.h>.
35406         (_ZGVdN8vv_powf): Removed.
35407         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
35408         ...
35409         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35410         Don't include <sysdep.h> nor <init-arch.h>.
35411         (_ZGVeN16vvv_sincosf): Removed.
35412         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
35413         ...
35414         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35415         Don't include <sysdep.h> nor <init-arch.h>.
35416         (_ZGVbN4vvv_sincosf): Removed.
35417         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
35418         ...
35419         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35420         Don't include <sysdep.h> nor <init-arch.h>.
35421         (_ZGVdN8vvv_sincosf): Removed.
35422         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
35423         ...
35424         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35425         Don't include <sysdep.h> nor <init-arch.h>.
35426         (_ZGVeN16v_sinf): Removed.
35427         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
35428         ...
35429         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35430         Don't include <sysdep.h> nor <init-arch.h>.
35431         (_ZGVbN4v_sinf): Removed.
35432         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
35433         ...
35434         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35435         Don't include <sysdep.h> nor <init-arch.h>.
35436         (_ZGVdN8v_sinf): Removed.
35438 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35440         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35441         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35442         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35443         s_rint-sse4_1 and s_rintf-sse4_1.
35444         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35445         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35446         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35447         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35448         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35449         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35450         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35451         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35452         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35453         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35454         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
35455         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35456         (__ceil): Removed.
35457         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35458         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
35459         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35460         (__ceilf): Removed.
35461         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35462         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
35463         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35464         (__floor): Removed.
35465         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35466         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
35467         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35468         (__floorf): Removed.
35469         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35470         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
35471         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35472         (__nearbyint): Removed.
35473         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35474         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
35475         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35476         (__nearbyintf): Removed.
35477         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35478         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
35479         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35480         (__rint): Removed.
35481         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35482         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
35483         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35484         (__rintf): Removed.
35486 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35488         * sysdeps/i386/start.S (_start): Check Check PIC instead of
35489         SHARED.  Avoid dynamic relocation against main in static PIE.
35491 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35493         [BZ #21815]
35494         * elf/Makefile (CFLAGS-tst-prelink.c): New.
35495         (LDFLAGS-tst-prelink): Likewise.
35497 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35499         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35500         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35501         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35502         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35503         (INTERNAL_SYSCALL_NCS): Likewise.
35504         (LOADARGS_1): Likewise.
35505         (LOADARGS_5): Likewise.
35506         (RESTOREARGS_1): Likewise.
35507         (RESTOREARGS_5): Likewise.
35509 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35511         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35512         (MEMPCPY_SYMBOL): Likewise.
35513         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35514         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35515         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35516         in libc.a.
35517         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35518         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35519         Likewise.
35520         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35521         (__hidden_ver1): Don't use in libc.a.
35522         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35523         (__mempcpy): Don't create a weak alias in libc.a.
35524         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35525         libc.a.
35526         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35527         (__hidden_ver1): Don't use in libc.a.
35529 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35531         * config.make.in (have-insert): New.
35532         * configure.ac (libc_cv_insert): New.  Set to yes if linker
35533         supports INSERT in linker script.
35534         (AC_SUBST(libc_cv_insert): New.
35535         * configure: Regenerated.
35536         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35537         if $(have-insert) == yes.
35539 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35541         * elf/Makefile (tests): Add vismain only if
35542         $(have-protected-data) == yes.
35543         (tests-pie): Likewise.
35545 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35547         [BZ #21871]
35548         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35549         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35551 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35553         [BZ #21790]
35554         * sysdeps/i386/i586/memset.S
35555         (__memset_zero_constant_len_parameter): Removed.
35556         * sysdeps/i386/i686/memset.S
35557         (__memset_zero_constant_len_parameter): Likewise.
35558         * sysdeps/i386/i686/multiarch/memset_chk.S
35559         (__memset_zero_constant_len_parameter): Likewise.
35560         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35561         Likewise.
35563 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35565         * stdlib/getentropy.c (getentropy): Change return type to int.
35567 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35569         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35571 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
35573         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35574         u_intN_t.
35575         * math/s_nexttowardf.c (__nexttowardf): Likewise.
35576         * sysdeps/generic/math_private.h (ieee_double_shape_type):
35577         Likewise.
35578         (ieee_float_shape_type): Likewise.
35579         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35580         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35581         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35582         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35583         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35584         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35585         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35586         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35587         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35588         Likewise.
35589         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35590         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35591         (__ieee754_yn): Likewise.
35592         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35593         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35594         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35595         Likewise.
35596         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35597         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35598         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35599         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35600         (__erfc): Likewise.
35601         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35602         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35603         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35604         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35605         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35606         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35607         Likewise.
35608         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35609         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35610         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35611         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35612         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35613         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35614         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35615         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35616         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35617         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35618         (__issignaling): Likewise.
35619         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35620         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35621         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35622         Likewise.
35623         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35624         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35625         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35626         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35627         Likewise.
35628         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35629         Likewise.
35630         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35631         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35632         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35633         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35634         (__erfcf): Likewise.
35635         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35636         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35637         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35638         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35639         Likewise.
35640         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35641         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35642         Likewise.
35643         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35644         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35645         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35646         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35647         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35648         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35649         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35650         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35651         Likewise.
35652         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35653         Likewise.
35654         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35655         Likewise.
35656         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35657         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35658         Likewise.
35659         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35660         Likewise.
35661         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35662         (__ieee754_ynl): Likewise.
35663         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35664         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35665         Likewise.
35666         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35667         Likewise.
35668         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35669         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35670         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35671         Likewise.
35672         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35673         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35674         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35675         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35676         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35677         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35678         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35679         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35680         Likewise.
35681         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35682         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35683         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35684         Likewise.
35685         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35686         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35687         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35688         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35689         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35690         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35691         Likewise.
35692         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35693         Likewise.
35694         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35695         Likewise.
35696         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35697         Likewise.
35698         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35699         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35700         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35701         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35702         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35703         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35704         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35705         Likewise.
35706         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35707         Likewise.
35708         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35709         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35710         Likewise.
35711         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35712         (__ieee754_remainderl): Likewise.
35713         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35714         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35715         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35716         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35717         Likewise.
35718         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35719         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35720         Likewise.
35721         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35722         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35723         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35724         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35725         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35726         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35727         Likewise.
35728         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35729         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35730         (__ieee754_y0l): Likewise.
35731         (pzero): Likewise.
35732         (qzero): Likewise.
35733         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35734         (__ieee754_y1l): Likewise.
35735         (pone): Likewise.
35736         (qone): Likewise.
35737         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35738         (__ieee754_ynl): Likewise.
35739         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35740         (__ieee754_lgammal_r): Likewise.
35741         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35742         Likewise.
35743         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35744         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35745         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35746         (__erfcl): Likewise.
35747         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35748         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35749         Likewise.
35750         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35751         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35752         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35753         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35754         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35755         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35756         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35757         Likewise.
35758         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35759         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35760         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35761         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35762         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35763         Likewise.
35764         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35765         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35766         Likewise.
35767         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35768         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35769         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35770         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35771         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35773 2017-08-03  Florian Weimer  <fweimer@redhat.com>
35775         [BZ #21885]
35776         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35777         on memory allocation failure.
35779 2017-08-03  Alan Modra  <amodra@gmail.com>
35781         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35782         tst-tlsopt-powerpc.c with function name change and no test harness.
35783         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35784         Call tls_get_addr_opt_test.
35785         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35786         (modules-names): Add mod-tlsopt-powerpc.
35787         (mod-tlsopt-powerpc.so-no-z-defs): Define.
35788         (tst-tlsopt-powerpc): Depend on .so.
35789         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35790         define.  Expand use in TLS_GD and TLS_LD.
35792 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35794         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35795         function.
35796         * sysdeps/posix/shm_open.c: Include <pthread.h>.
35798 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35800         [BZ #21686]
35801         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35802         comparing size with that of double.
35803         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35804         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35805         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35806         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35807         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35808         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35809         unsigned __int128 types.
35811 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
35813         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35814         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35815         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35816         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35817         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35819 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35821         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35823 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35825         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35826         of SHARED.
35827         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35828         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35829         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35830         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35831         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35832         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35833         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35835 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35837         [BZ #21685]
35838         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35839         bit-field expressions passed to sizeof or typeof.
35840         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35841         (__TGMATH_F128): Likewise.
35842         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35843         (__TGMATH_CF128): Likewise.
35844         (__TGMATH_UNARY_REAL_ONLY): Likewise.
35845         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35846         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35847         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35848         (__TGMATH_BINARY_REAL_ONLY): Likewise.
35849         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35850         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35851         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35852         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35853         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35854         (__TGMATH_UNARY_REAL_IMAG): Likewise.
35855         (__TGMATH_UNARY_IMAG): Likewise.
35856         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35857         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35858         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35859         type.
35860         (define_vars_for_type): Handle bit_field type specially.
35861         (Tests.__init__): Declare structure with bit-field element.
35863 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35865         [BZ #21791]
35866         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35867         (MEMCPY_CHK): Define only if SHARED is defined.
35868         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35869         Likewise.
35870         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35871         Likewise.
35873 See ChangeLog.18 for earlier changes.