0c7bdd0b0cfa24f3e18109f743b04caae9aa17f5
[external/glibc.git] / ChangeLog
1 2019-07-01  Florian Weimer  <fweimer@redhat.com>
2
3         * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
4         variant for arm-linux-gnueabi.
5
6 2019-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7
8         [BZ #24259]
9         * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
10         relocation.
11         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
12         tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
13         (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
14         tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
15         and tst-cet-legacy-mod-6c.
16         (CFLAGS-tst-cet-legacy-5a.c): New.
17         (CFLAGS-tst-cet-legacy-5b.c): Likewise.
18         (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
19         (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
20         (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
21         (CFLAGS-tst-cet-legacy-6a.c): Likewise.
22         (CFLAGS-tst-cet-legacy-6b.c): Likewise.
23         (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
24         (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
25         (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
26         ($(objpfx)tst-cet-legacy-5a): Likewise.
27         ($(objpfx)tst-cet-legacy-5a.out): Likewise.
28         ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
29         ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
30         ($(objpfx)tst-cet-legacy-5b): Likewise.
31         ($(objpfx)tst-cet-legacy-5b.out): Likewise.
32         (tst-cet-legacy-5b-ENV): Likewise.
33         ($(objpfx)tst-cet-legacy-6a): Likewise.
34         ($(objpfx)tst-cet-legacy-6a.out): Likewise.
35         ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
36         ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
37         ($(objpfx)tst-cet-legacy-6b): Likewise.
38         ($(objpfx)tst-cet-legacy-6b.out): Likewise.
39         (tst-cet-legacy-6b-ENV): Likewise.
40         * sysdeps/x86/tst-cet-legacy-5.c: New file.
41         * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
42         * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
43         * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
44         * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
45         * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
46         * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
47         * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
48         * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
49         * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
50         * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
51         * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
52         * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
53         * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
54
55 2019-06-30  Paul A. Clarke  <pc@us.ibm.com>
56
57         * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
58         __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
59         (__fegetround_ISA300) New.
60         (__fegetround_ISA2) New.
61         * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
62         (_FPU_MFFS): Move implementation...
63         (_FPU_GETCW): Here.
64         (_FPU_MFFSL): Move implementation....
65         (_FPU_GET_RC_ISA300): Here. New.
66         (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
67         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
68         (fegetenv_status): New.
69         * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
70         instead of fegetenv_register().
71         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
72
73 2019-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
74
75         * benchtests/bench-math-inlines.c: Increase iterations.
76         * benchtests/bench-memcmp.c: Likewise.
77         * benchtests/bench-rawmemchr.c: Likewise.
78         * benchtests/bench-strcmp.c: Likewise.
79         * benchtests/bench-strcpy_chk.c: Likewise.
80         * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
81         (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
82         (INNER_LOOP_ITERS_SMALL): Likewise.
83         * benchtests/bench-strncat.c: Increase iterations.
84         * benchtests/bench-strncmp.c: Increase iterations.
85         * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
86         * benchtests/bench-strrchr.c: Increase iterations.
87         * benchtests/bench-strstr.c: Keep iterations unchanged.
88         * benchtests/bench-strtod.c: Increase iterations.
89
90 2019-06-28  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
91
92         * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
93         with INNER_LOOP_ITERS_LARGE.
94         * benchtests/bench-memchr.c: Likewise.
95         * benchtests/bench-rawmemchr.c: Likewise.
96         * benchtests/bench-strcat.c: Likewise.
97         * benchtests/bench-strchr.c: Likewise.
98         * benchtests/bench-string.h: Likewise.
99         * benchtests/bench-strlen.c: Likewise.
100         * benchtests/bench-strncpy.c: Likewise.
101         * benchtests/bench-strnlen.c: Likewise.
102
103 2019-06-28  Florian Weimer  <fweimer@redhat.com>
104
105         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
106         Use mmap instead of malloc.  malloc with M_PERTURB writes to the
107         entire allocated memory range.
108
109 2019-06-28  Tobias Klauser  <tklauser@distanz.ch>
110
111         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
112         (prepare_version_base): New helper inline function.
113         (prepare_version): New macro replacing PREPARE_VERSION.
114         (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
115
116 2019-06-28  Florian Weimer  <fweimer@redhat.com>
117
118         [BZ #24741]
119         * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
120         mismatch in a versioned symbol reference.
121         (_dl_lookup_symbol_x): Do not report soname mismatch failures.
122         * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
123         tst-sonamemove-dlopen.
124         (module-names): Add tst-sonamemove-linkmod1,
125         tst-sonamemove-runmod1, tst-sonamemove-runmod2.
126         (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
127         (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
128         (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
129         (tst-sonamemove-runmod1.so): Link against
130         tst-sonamemove-runmod2.so.
131         (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
132         (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
133         tst-sonamemove-runmod2.so.
134         (tst-sonamemove-dlopen): Link with -ldl.
135         (tst-sonamemove-dlopen.out): Likewise.
136         * elf/tst-sonamemove-link.c: New file.
137         * elf/tst-sonamemove-dlopen.c: Likewise.
138         * elf/tst-sonamemove-linkmod1.c: Likewise.
139         * elf/tst-sonamemove-linkmod1.map: Likewise.
140         * elf/tst-sonamemove-runmod1.c: Likewise.
141         * elf/tst-sonamemove-runmod1.map: Likewise.
142         * elf/tst-sonamemove-runmod2.c: Likewise.
143         * elf/tst-sonamemove-runmod2.map: Likewise.
144
145 2019-06-28  Florian Weimer  <fweimer@redhat.com>
146
147         * support/xdlfcn.h (xdlvsym): Declare function.
148         * support/xdlfcn.c (xdlvsym): Define funciton.
149
150 2019-06-28  Florian Weimer  <fweimer@redhat.com>
151
152         [BZ #24744]
153         io: Remove the copy_file_range emulation.
154         * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
155         not define and call copy_file_range_compat.
156         * io/Makefile (tests-static, tests-internal): Do not add
157         tst-copy_file_range-compat.
158         * io/copy_file_range-compat.c: Remove file.
159         * io/copy_file_range.c (copy_file_range): Define as stub.
160         * io/tst-copy_file_range-compat.c: Remove file.
161         * io/tst-copy_file_range.c (xdevfile): Remove variable.
162         (typical_sizes): Update comment.  Remove 16K sizes.
163         (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
164         Remove variables.
165         (find_maximum_offset, pipe_as_source, pipe_as_destination)
166         (delayed_write_failure_beginning, delayed_write_failure_end)
167         (cross_device_failure, enospc_failure_1, enospc_failure)
168         (oappend_failure): Remove functions.
169         (tests): Adjust test case list.
170         (do_test): Remove file system search code.  Check for ENOSYS from
171         copy_file_range.  Do not free xdevfile.
172         * manual/llio.texi (Copying File Data): Document ENOSYS error from
173         copy_file_range.  Do not document the EXDEV error, which future
174         kernels may not report.  Update the wording to reflect that
175         further errors are possible.
176         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
177         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
178         not undefine.
179         * sysdeps/unix/sysv/linux/arm/kernel-features.h
180         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
181         Likewise.
182         * sysdeps/unix/sysv/linux/kernel-features.h
183         [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
184         Remove definition.
185         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
186         [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
187         not undefine.
188         * sysdeps/unix/sysv/linux/sh/kernel-features.h
189         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
190         Likewise.
191
192 2019-06-27  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
193
194         * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
195         used as a mask for the mode argument of __vfprintf_internal.
196         * stdio-common/printf-parse.h (printf_arg): New union member:
197         pa_float128.
198         * stdio-common/vfprintf-internal.c
199         (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
200         (PARSE_FLOAT_VA_ARG): Likewise.
201         (SETUP_FLOAT128_INFO): Likewise.
202         (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
203         SETUP_FLOAT128_INFO.
204         [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
205         floating-point value to the new union member, pa_float128.
206         (printf_positional): Zero-initialize args_value[cnt] with memset.
207
208 2019-06-27  Florian Weimer  <fweimer@redhat.com>
209
210         [BZ #24740]
211         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
212         buffer size if necessary.
213         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
214         Likewise.
215         * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
216         New function.
217         (large_buffer_checks): Likewise.
218         (do_test): Call large_buffer_checks.
219
220 2019-06-26  H.J. Lu  <hongjiu.lu@intel.com>
221
222         * sysdeps/i386/dl-lookupcfg.h: Moved to ...
223         * sysdeps/x86/dl-lookupcfg.h: Here.
224         * sysdeps/x86_64/dl-lookupcfg.h: Removed.
225
226 2019-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
227
228         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
229         (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
230         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
231         file.
232         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
233         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
234         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
235         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
236         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
237
238         * sysdeps/powerpc/powerpc32/fpu/Makefile
239         [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
240         * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
241         and fctidz optimization.
242         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
243         * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
245         (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
246         CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
247         CFLAGS-s_lround-power5+.c): New rule.
248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
249         New file.
250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
251         Likewise.
252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
253         Likewise.
254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
255         Likewise.
256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
257         Likewise.
258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
259         Remove file.
260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
261         Likewise.
262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
263         Likewise.
264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
265         Likewise.
266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
267         Likewise.
268         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
269         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
270         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
271         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
272         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
273         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
274         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
275
276 2019-06-26  Vincent Chen  <vincentc@andestech.com>
277
278         * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
279         specific system calls, fp_udfiex_crtl and udftrap.
280
281 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
282
283         * nptl/tst-eintr1.c (tf1): Add return statement.
284         (do_test): Remove unused th variable.
285
286 2019-06-26  Stefan Liebler  <stli@linux.ibm.com>
287
288         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
289         Return error if get_character fails.
290
291 2019-06-25  Stefan Liebler  <stli@linux.ibm.com>
292
293         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
294
295 2019-06-24  Rafal Luzynski  <digitalfreak@lingonborough.com>
296
297         [BZ #24652]
298         * localedata/locales/szl_PL (day): Use the correct Unicode
299         sequences instead of non-ASCII characters.
300
301 2019-06-24  Grzegorz Kulik  <gregorykkulik@gmail.com>
302
303         [BZ #24652]
304         * localedata/locales/szl_PL (abday): Spelling corrections.
305         (day): Likewise.
306         (abmon): Likewise.
307         (mon): Rename to...
308         (alt_mon): This, then apply spelling corrections.
309         (mon): New entry, month names in the genitive case.
310
311 2019-06-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
312
313         [BZ #23831]
314         * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
315         * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
316         (thousands_sep): Likewise.
317         (grouping): Set to 3;3.
318
319 2019-06-21  Tobias Klauser  <tklauser@distanz.ch>
320
321         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
322         PREPARE_VERSION_KNOWN.
323         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
324         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
325         define.
326         (VDSO_HASH_LINUX_2_6_39): Likewise.
327         (VDSO_NAME_LINUX_4_9): Likewise.
328         (VDSO_HASH_LINUX_4_9): Likewise.
329         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
330         * sysdeps/unix/sysv/linux/powerpc/init-first.c
331         (_libc_vdso_platform_setup): Likewise.
332         * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
333         * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
334         Likewise.
335         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
336         Likewise.
337
338 2019-06-20  Mike Crowe  <mac@mcrowe.com>
339
340         * nptl/eintr.c: Use libsupport.
341         * nptl/tst-eintr1.c: Likewise.
342         * nptl/tst-eintr2.c: Likewise.
343         * nptl/tst-eintr3.c: Likewise.
344         * nptl/tst-eintr4.c: Likewise.
345         * nptl/tst-eintr5.c: Likewise.
346         * nptl/tst-mutex-errorcheck.c: Likewise.
347         * nptl/tst-mutex5.c: Likewise.
348
349         * support/test-driver.h: Add verbose_printf macro.
350
351         * support/xtime.h: Add xclock_now() helper function.
352
353 2019-06-20  Dmitry V. Levin  <ldv@altlinux.org>
354             Florian Weimer  <fweimer@redhat.com>
355
356         [BZ #24228]
357         * libio/genops.c (_IO_unbuffer_all)
358         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
359         buffers and access _IO_FILE_complete members of legacy libio streams.
360         * libio/tst-bz24228.c: New file.
361         * libio/tst-bz24228.map: Likewise.
362         * libio/Makefile [build-shared] (tests): Add tst-bz24228.
363         [build-shared] (generated): Add tst-bz24228.mtrace and
364         tst-bz24228.check.
365         [run-built-tests && build-shared] (tests-special): Add
366         $(objpfx)tst-bz24228-mem.out.
367         (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
368         ($(objpfx)tst-bz24228-mem.out): New rule.
369
370 2019-06-19  Paul A. Clarke  <pc@us.ibm.com>
371
372         * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
373         * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
374         (__FPU_MFFSL): Likewise.
375         (_FPU_SETCW): Likewise.
376
377 2019-06-19  Stan Shebs  <stanshebs@google.com>
378             Raoni Fassina Firmino  <raoni@linux.ibm.com>
379
380         [BZ #24640]
381         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
382         [!SHARED] (__get_timebase_freq): Fix sense of a test in the
383         static-linking version.
384         * sysdeps/unix/sysv/linux/powerpc/Makefile
385         (tests-static): Add test-gettimebasefreq-static.
386         (tests): Likewise.
387         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
388         New file.
389
390 2019-06-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
391
392         [BZ #24614]
393         * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
394         between the currency symbol and the minus sign).
395         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
396
397 2019-06-19  Stefan Liebler  <stli@linux.ibm.com>
398
399         [BZ #24556]
400         * string/test-strcasestr.c (check_result): Add NULL check.
401         * nss/tst-field.c (check_rewrite): Likewise.
402         * benchtests/bench-strstr.c (do_one_test): Likewise.
403         * string/test-strstr.c (check_result): Likewise.
404         * argp/argp-test.c (popt): Increase size of buf to 12.
405         * benchtests/bench-malloc-simple.c (bench):
406         Do not initialize tests array out of bounds.
407
408 2019-06-19  Florian Weimer  <fweimer@redhat.com>
409
410         [BZ #24166]
411         * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
412         dls_serpath field.
413
414 2019-06-18  Florian Weimer  <fweimer@redhat.com>
415
416         [BZ #24323]
417         * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
418         * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
419         fail when called from dlopen.
420         * elf/Makefile [have-fpie && build-shared] (tests): Add
421         tst-dlopen-pie.
422         (tst-dlopen-pie): Link with -ldl.
423         (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
424         * elf/tst-dlopen-pie.c (do_test): New file.
425
426 2019-06-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
427
428         [BZ #24614]
429         * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
430         * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
431         between the currency symbol and the minus sign).
432         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
433         * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
434
435 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
436
437         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
438         sysdep-rtld-routines): Remove rules.
439         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
440         Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
441         (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
442         __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
443         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
444         (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
445         vDSO path for SHARED.
446         * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
447         * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
448         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
449         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
450         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
451         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
452
453         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
454         (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
455         s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
456         (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
457         CFLAGS-s_llround-power5+.c): New rule.
458         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
459         New file.
460         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
461         Likewise.
462         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
463         Likewise.
464         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
465         Likewise.
466         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
467         Likewise.
468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
469         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
471         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
473         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
474         * sysdeps/powerpc/powerpc64/fpu/Makefile
475         [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
476         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
477         (libm-sysdep_routines): Remove s_llround-* objects.
478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
479         file.
480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
481         Likewise.
482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
483         Likewise.
484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
485         Likewise.
486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
487         Likewise.
488         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
489         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
490         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
491         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
492         * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
493         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
494         * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
495         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
496         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
497         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
498         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
499         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
500         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
501         * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
502
503         * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
504         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
505         * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
506         * sysdeps/powerpc/powerpc32/fpu/Makefile
507         [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
508         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
509         optimization.
510         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
511         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
512         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
514         (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
515         CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
516         CFLAGS-s_lrint-ppc32.c): New rule.
517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
518         Remove file.
519         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
520         Likewise.
521         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
522         Likewise.
523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
524         Likewise.
525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
526         Likewise.
527         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
528         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
529         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
530         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
532         New file.
533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
534         Likewise.
535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
536         Likewise.
537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
538         Likewise.
539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
540         Likewise.
541
542         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
543         (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
544         s_llrint-ppc64.
545         (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
546         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
547         file.
548         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
549         Likewise.
550         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
551         Likewise.
552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
553         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
555         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
557         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
558         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
559         * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
560         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
561         (libm-sysdep_routines): Remove s_llrint-* objects.
562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
563         file.
564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
565         Likewise.
566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
567         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
568         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
569         * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
570         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
571         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
572         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
573         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
574         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
575         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
576
577 2019-06-14  Florian Weimer  <fweimer@redhat.com>
578
579         * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
580         argument to __glibc_has_include to inhibit macro expansion.
581
582 2019-06-14  Florian Weimer  <fweimer@redhat.com>
583
584         * misc/sys/cdefs.h (__glibc_has_include): Do not use a
585         function-like macro, so that __has_include can inhibit expansion
586         of its argument.
587
588 2019-06-13  Joseph Myers  <joseph@codesourcery.com>
589
590         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
591         New macro.
592
593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
594         Allow memset in libc.so.
595
596 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
597
598         * sysdeps/aarch64/dl-dtprocnum.h: New file.
599         * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
600         (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
601         (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
602         symbols at load time.
603         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
604
605 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
606
607         * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
608         (DT_AARCH64_VARIANT_PCS): Define.
609
610 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
611
612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
613         (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
614         objects.
615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
616         Remove file.
617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
618         Likewise.
619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
621         Likewise.
622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
623         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
624         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
625         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
626         Remove s_finite* objects.
627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
628         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
629         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
630         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
632         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
633         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
634         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
635         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
636         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
637
638         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
639         * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
640
641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
642         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
643         objects.
644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
645         Remove file.
646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
647         Likewise.
648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
650         Likewise.
651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
652         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
653         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
654         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
655         Remove s_isinf* and s_isinf* objects.
656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
662         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
663         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
664         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
665         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
666
667         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
668         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
669
670         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
671         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
672         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
674         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
675         s_isnanf-* objects.
676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
677         Remove file
678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
679         Likewise.
680         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
681         Likewise.
682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
683         Likewise.
684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
686         Likewise.
687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
688         Likewise.
689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
690         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
691         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
692         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
693         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
694         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
695         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
696         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
697         Remove s_isnan-* and s_isnanf-* objects.
698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
701         Likewise.
702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
705         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
707         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
708         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
709         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
710         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
711         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
712         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
713         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
714         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
715
716         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
717         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
718
719         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
720         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
721         CFLAGS-bench-isfinite.c): New rule.
722         * benchtests/isnan-input: New file.
723         * benchtests/isinf-input: New file.
724         * benchtests/isfinite-input: New file.
725
726         * sysdeps/powerpc/fpu/s_copysign.c: New file.
727         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
728         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
729         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
731         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
732         s_copysign-ppc32.
733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
734         Remove file.
735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
736         Likewise.
737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
738         Likewise.
739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
740         Likewise.
741         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
742         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
743         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
744         Remove s_copysign-power6 s_copysign-ppc64.
745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
746         Remove file.
747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
748         Likewise.
749         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
751         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
752         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
753         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
754         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
755
756         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
757         round_to_integer_float, round_mode): Add RINT handling.
758         (reset_fenv_mode): New symbol.
759         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
760         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
761         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
762         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
763         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
764         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
765
766 2019-06-12  Florian Weimer  <fweimer@redhat.com>
767
768         [BZ #24632]
769         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
770         * libio/freopen.c (freopen): Use it.
771
772 2019-06-12  Florian Weimer  <fweimer@redhat.com>
773
774         Linux: Deprecate sysctl.
775         * include/sysctl.h (__sysctl): Remove declaration.
776         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
777         check.
778         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
779         (sysctl): Add deprecation attribute.
780         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
781         directly, to avoid the deprecation warning.  Do not include
782         <string.h>.
783         (__sysctl): Remove hidden alias.
784
785 2019-06-12  Florian Weimer  <fweimer@redhat.com>
786
787         Linux: Use kernel headers for statx definitions if available.
788         * include/bits/statx-generic.h: New file.
789         * include/bits/types/struct_statx.h: Likewise.
790         * include/bits/types/struct_statx_timestamp.h: Likewise.
791         * io/Makefile (headers): Add bits/statx-generic.h.
792         * io/bits/statx-generic.h: New file.  Partly copied from
793         io/bits/statx.h.
794         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
795         define original_statx.
796         * io/bits/types/struct_statx.h: Likewise.
797         * io/bits/types/struct_statx_timestamp.h: Likewise.
798         (statx_generic): Use original_statx.
799         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
800         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
801
802 2019-06-12  Florian Weimer  <fweimer@redhat.com>
803
804         * misc/sys/cdefs.h (__glibc_has_include): Define.
805
806 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
807
808         * string/memmem.c (__memmem): Rewrite to improve performance.
809
810 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
811
812         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
813         warning.
814         (two_way_long_needle): Block inlining.
815         * string/strstr.c (strstr2): Add new function.
816         (strstr3): Likewise.
817         (STRSTR): Completely rewrite strstr to improve performance.
818
819 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
820
821         * benchtests/bench-strstr.c (test_hard_needle): New function.
822
823 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
824
825         * malloc/tst-calloc.c: Include <libc-diag.h>.
826         (null_test): Ignore -Wunused-result around calls to calloc.
827         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
828         (do_test): Ignore -Wunused-result around call to malloc.
829
830 2019-06-07  Florian Weimer  <fweimer@redhat.com>
831
832         Linux: Add getdents64 system call.
833         * include/dirnent.h (getdents): Add comment and change buffer
834         argument type to void *.
835         (getdents64): Likewise.  Add hidden prototype.
836         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
837         getdents64.
838         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
839         Add tst-getdents64.
840         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
841         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
842         argument type to void *.
843         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
844         Add hidden definition and getdents64 alias.
845         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
846         Likewise.
847         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
848         * manual/filesys.texi (Accessing Directories): Add Low-level
849         Directory Access node reference.
850         (Opening a Directory): Cross-reference it.
851         (Low-level Directory Access): New node.
852         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
853         getdents64.
854         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
855         Likewise.
856         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
857         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
858         Likewise.
859         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
860         Likewise.
861         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
862         Likewise.
863         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
864         Likewise.
865         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
866         Likewise.
867         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
868         Likewise.
869         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
870         Likewise.
871         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
872         (GLIBC_2.30): Likewise.
873         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
874         (GLIBC_2.30): Likewise.
875         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
876         (GLIBC_2.30): Likewise.
877         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
878         (GLIBC_2.30): Likewise.
879         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
880         Likewise.
881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
882         (GLIBC_2.30): Likewise.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
884         (GLIBC_2.30): Likewise.
885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
886         (GLIBC_2.30): Likewise.
887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
888         (GLIBC_2.30): Likewise.
889         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
890         Likewise.
891         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
892         Likewise.
893         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
894         Likewise.
895         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
896         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
897         Likewise.
898         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
899         Likewise.
900         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
901         Likewise.
902         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
903         Likewise.
904
905 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
906
907         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
908         (__FPU_MFFS): New.
909         (__FPU_MFFSL): New.
910         (_FPU_GET_RC): New.
911         (_FPU_GETCW): Use __FPU_MFFS().
912         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
913
914 2019-06-06  Florian Weimer  <fweimer@redhat.com>
915
916         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
917         internal GCC preprocessor identifier __has_include__.
918
919 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
920
921         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
922         with call to equivalent function.
923
924 2019-06-04  Florian Weimer  <fweimer@redhat.com>
925
926         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
927         (do_release_shlib): Adjust for __twalk_r.
928         (__gconv_release_shlib): Call __twalk_r.
929
930 2019-06-04  Andreas Schwab  <schwab@suse.de>
931
932         [BZ #18830]
933         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
934         no irreversible characters occurred.
935         * iconv/gconv_simple.c (internal_ucs4_loop)
936         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
937         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
938         (ucs4_internal_loop_single, internal_ucs4le_loop)
939         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
940         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
941         (ucs4le_internal_loop_single): Add const to outend.
942         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
943         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
944         * iconv/Makefile (tests): Add tst-iconv7.
945         * iconv/tst-iconv7.c: New file.
946
947 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
948
949         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
950
951 2019-06-01  Florian Weimer  <fweimer@redhat.com>
952
953         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
954         * sysdeps/unix/sysv/linux/arm/Makefile
955         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
956         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
957         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
958         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
959         compatibility symbols.
960
961 2019-05-31  Florian Weimer  <fweimer@redhat.com>
962
963         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
964         system calls for the arm architecture: breakpoint, get_tls,
965         set_tls, usr26, usr32.
966
967 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
968
969         * sysdeps/powerpc/Makefile
970         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
971         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
972         Declare '.machine power7' to get support for ldbrx.
973         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
974         directive based on the directory of the file.
975         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
976         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
977         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
978         '.machine' directive.
979         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
980         (VADDUQM_V7_V8): Remove.
981         (__STRCASECMP): Replace macros with actual instructions.
982         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
983         '.machine' directive.
984         (VCLZD_V8_v7): Remove.
985         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
986
987 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
988
989         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
990         Remove file.
991         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
992
993 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
994
995         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
996         NEARBYINT handling.
997         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
998         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
999         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
1000         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
1001         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
1002         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1003
1004 2019-05-28  mansayk  <6688000@gmail.com>
1005
1006         [BZ #24370]
1007         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
1008
1009 2019-05-28  mansayk  <6688000@gmail.com>
1010
1011         [BZ #24369]
1012         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
1013         (abmon): Likewise, but remove the trailing dots.
1014
1015 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
1016
1017         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
1018
1019 2019-05-27  Florian Weimer  <fweimer@redhat.com>
1020
1021         * nptl/nptl-init.c: Add comment.
1022
1023 2019-05-24  Florian Weimer  <fweimer@redhat.com>
1024
1025         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
1026         struct in_addr/struct in6_addr alignment.
1027
1028 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1031         (F_SEAL_FUTURE_WRITE): New macro.
1032
1033 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
1034
1035        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
1036        * elf/tst-ldconfig-bad-aux-cache.c: New file.
1037        * elf/tst-ldconfig_aux-cache.root: New directory.
1038        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
1039        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
1040        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
1041
1042 2019-05-22  Zack Weinberg  <zackw@panix.com>
1043
1044         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
1045         host type.
1046         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
1047         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
1048
1049         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
1050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
1051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
1052         Delete.
1053
1054         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
1055         Issue an #error if used with a compiler in SPE-float mode.
1056         * sysdeps/powerpc/powerpc32/__longjmp_common.S
1057         * sysdeps/powerpc/powerpc32/setjmp_common.S
1058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1064         Remove code to preserve SPE register state.
1065
1066         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
1067         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1068         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
1069         Remove __SPE__ ifndefs.
1070
1071 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
1072
1073         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
1074         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
1075         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
1076         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
1077         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
1078         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
1079         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
1080         (INNER_LOOP_ITERS_MEDIUM): New define.
1081         (INNER_LOOP_ITERS_SMALL): New define.
1082         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
1083         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
1084         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
1085         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
1086         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
1087
1088 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
1089
1090         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
1091         New define.
1092         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
1093         (SEMTIMEDOP_IPC_ARGS): Likewise.
1094
1095 2019-05-21  Florian Weimer  <fweimer@redhat.com>
1096
1097         [BZ #24584]
1098         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
1099         before updating __counter field and release it afterwards.  Add
1100         overflow check.
1101         * iconv/gconv.h (struct __gconv_step): Mention synchronization
1102         requirement for __counter member.
1103
1104 2019-05-21  Florian Weimer  <fweimer@redhat.com>
1105
1106         [BZ #24583]
1107         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
1108         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
1109         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
1110         instead of __gconv_release_step.
1111         * libio/Makefile (tests): Add tst-wfile-gconv.
1112         (tests-container): Add tst-wfile-ascii.
1113         (tst-wfile-gconv-ENV): Enable mtrace.
1114         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
1115         (tests-special): Add tst-wfile-gconv-mem.out.
1116         (tst-wfile-gconv.out): Depend on locales.
1117         (tst-wfile-gconv-mem.out): Add mtrace rule.
1118         * libio/tst-wfile-ascii.c: New file.
1119         * libio/tst-wfile-gconv.c: Likewise.
1120
1121 2019-05-20  Florian Weimer  <fweimer@redhat.com>
1122
1123         [BZ #24588]
1124         libio: Remove codecvt vtable.
1125         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
1126         __libio_codecvt.
1127         * libio/iofgetpos.c (_IO_new_fgetpos): Call
1128         __libio_codecvt_encoding.
1129         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
1130         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
1131         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
1132         * libio/iofwide.c (__libio_codecvt): Remove variable.
1133         (_IO_fwide): Do not copy __libio_codecvt.
1134         (__libio_codecvt_out): Rename from do_out and export.
1135         (do_unshift): Remove function.
1136         (__libio_codecvt_in): Rename from do_in and export.
1137         (__libio_codecvt_encoding): Rename from do_encoding and export.
1138         (do_always_noconv): Remove function.
1139         (__libio_codecvt_length): Rename from do_length and export.
1140         (do_max_length): Remove function.
1141         * libio/libio.h (enum __codecvt_result): Remove definition; moved
1142         to libioP.h.
1143         (struct _IO_codecvt): Remove fields __codecvt_destr,
1144         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
1145         __codecvt_do_encoding, __codecvt_do_always_noconv,
1146         __codecvt_do_length, __codecvt_do_max_length.
1147         * libio/libioP.h (enum __codecvt_result): Define; moved from
1148         libio.h.
1149         (__libio_codecvt_out, __libio_codecvt_in)
1150         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
1151         functions.
1152         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
1153         (_IO_wfile_underflow): Call __libio_codecvt_in.
1154         (_IO_wfile_underflow): Likewise.
1155         (_IO_wfile_underflow_mmap): Likewise.
1156         (_IO_wfile_sync): Call __libio_codecvt_encoding,
1157         __libio_codecvt_length.
1158         (adjust_wide_data): Call __libio_codecvt_encoding,
1159         __libio_codecvt_in.
1160         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
1161         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
1162         __libio_codecvt_length.
1163
1164 2019-05-20  Florian Weimer  <fweimer@redhat.com>
1165
1166         * support/support.h (support_sbindir_prefix): Declare.
1167         (support_install_rootsbindir): Update comment.
1168         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
1169         * support/support_paths.c (support_sbindir_prefix): Define.
1170
1171 2019-05-20  Mike Crowe  <mac@mcrowe.com>
1172
1173         * support/timespec.c: Add backslash to correct newline in failure
1174         message.
1175
1176         * support/timespec.h: Correct confusing comment.
1177
1178 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1179
1180         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
1181         define.
1182         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
1183         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
1184         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
1185         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
1186
1187         [BZ #24570]
1188         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
1189         usage.
1190
1191 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
1194         (NT_ARM_PACG_KEYS): Likewise.
1195
1196 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
1197
1198         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
1199         (tcache_put): Remove redundant assert.
1200         (tcache_get): Remove redundant asserts.
1201         (__libc_malloc): Check tcache count is not zero.
1202         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
1203
1204 2019-05-17  Florian Weimer  <fweimer@redhat.com>
1205
1206         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
1207
1208 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
1209
1210         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1211         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
1212         0x050100].
1213         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
1214         Likewise.
1215         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1216         (__ASSUME_STATX): Likewise.
1217
1218 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1219
1220         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
1221         flags argument.
1222         (LINE_PARSER): Do not map IPv4 addresses.
1223         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
1224         to parse_line.
1225         (_nss_nis_gethostent_r): Always pass AF_INET to
1226         internal_nis_gethostent_r.
1227         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
1228         to parse_line.
1229         (_nss_nis_gethostbyname2_r): Adjust call to
1230         internal_nis_gethostent_r.
1231         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
1232         call to internal_nis_gethostent_r.
1233         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
1234         from parse_line.
1235         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
1236         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1237         Remove flags argument.  Do not map IPv4 addresses.
1238         (internal_nisplus_gethostent_r): Adjust call to
1239         _nss_nisplus_parse_hostent.
1240         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
1241         to _nss_nisplus_parse_hostent.
1242         (_nss_nisplus_gethostbyname2_r): Adjust call to
1243         internal_gethostbyname2_r.
1244         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
1245         Adjust call to internal_gethostbyname2_r.
1246         (_nss_nisplus_gethostbyaddr_r): Adjust call to
1247         _nss_nisplus_parse_hostent.
1248         (_nss_nisplus_gethostbyname4_r): Adjust call to
1249         internal_gethostbyname2_r.
1250
1251 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1252
1253         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
1254         Remove flags.
1255         (LINE_PARSER): Remove address mapping.
1256         (EXTRA_ARGS_VALUE): Remove flags argument.
1257         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
1258         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
1259         gethostbyname3_multi.
1260         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
1261         _nss_files_gethostbyname3_r.
1262         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
1263
1264 2019-05-16  Florian Weimer  <fweimer@redhat.com>
1265
1266         * support/support_test_compare_blob.c (report_blob): Report
1267         incorrect NULL blobs.
1268
1269 2019-05-15  Mark Wielaard  <mark@klomp.org>
1270
1271         [BZ# 24476]
1272         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
1273         __libc_once_get (once) and static_buf == NULL.
1274         (__dlerror): Check we have a valid key, set result to static_buf
1275         otherwise.
1276
1277 2019-05-15  Andreas Schwab  <schwab@suse.de>
1278
1279         [BZ #20568]
1280         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
1281         __codecvt_do_length.
1282         * libio/Makefile (tests): Add tst-wfile-sync.
1283         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
1284         * libio/tst-wfile-sync.c: New file.
1285         * libio/tst-wfile-sync.input: New file.
1286
1287 2019-05-15  Florian Weimer  <fweimer@redhat.com>
1288
1289         nss: Turn __nss_database_lookup into a compatibility symbol.
1290         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
1291         __nss_database_lookup.
1292         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
1293         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
1294         __nss_database_lookup.
1295         (__nss_next): Move to …
1296         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
1297         unconditionally.
1298         (__nss_database_lookup): New function.
1299         * nss/Versions (GLIBC_2.0): Update comment.
1300         (GLIBC_PRIVATE): Export __nss_database_lookup2.
1301         * grp/initgroups.c (internal_getgrouplist): Call
1302         __nss_database_lookup2 instead of __nss_database_lookup.
1303         * nscd/aicache.c (addhstaiX): Likewise.
1304         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1305         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1306         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1307         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1308         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1309         Likewise.
1310         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1311         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1313
1314 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
1315
1316         * support/support.h (support_install_rootsbindir): New variable.
1317         * support/support_paths.c: Likewise.
1318         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1319
1320 2019-05-15  Florian Weimer  <fweimer@redhat.com>
1321
1322         * iconv/gconv.h (__gconv_transliterate): Move declaration …
1323         * iconv/gconv_int.h (__gconv_transliterate): … here.
1324         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1325         * iconv/skeleton.c: Likewise.
1326
1327 2019-05-14  Florian Weimer  <fweimer@redhat.com>
1328
1329         Linux: Add the tgkill function.
1330         * bits/signal_ext.h: New file.
1331         * manual/signal.texi (Signaling Another Process): Document tgkill.
1332         * signal/Makefile (headers): Add bits/signal_ext.h.
1333         * signal/signal.h: Include <bits/signal_ext.h>.
1334         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1335         (tst-tgkill): Link with libpthread.
1336         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1337         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1338         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1339         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1340         tgkill.
1341         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1342         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1343         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1344         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1345         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1346         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1348         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1352         Likewise.
1353         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1354         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1355         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1357         Likewise.
1358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1359         Likewise.
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1361         Likewise.
1362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1363         Likewise.
1364         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1365         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1366         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1367         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1368         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1369         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1370         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1371         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1372
1373 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
1374
1375         * manual/search.texi (Tree Search Function): Adjust twalk_r
1376         documentation.
1377
1378 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1379
1380         [BZ #24544]
1381         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1382         pre-defined value.
1383
1384         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1385         * support/support.h (support_bindir_prefix): New variable.
1386         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1387
1388         * config.make.in (bindir): New variable.
1389
1390         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1391         (lll_trylock): Call __lll_trylock.
1392         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1393         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1394         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1395         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1396         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1397         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1398         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1399         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1400         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1401         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1402         lowlevellock-futex.h.
1403
1404         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1405         initialization for LLL_LOCK_INITIALIZER different than 0.
1406         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1407         Assume LLL_LOCK_INITIALIZER being 0.
1408         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1409         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1410         Likewise.
1411         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1412         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1413
1414         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1415         Optimize futex call and add systemtap probe.
1416
1417         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1418         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1419         __libc_disable_asynccancel, __librt_enable_asynccancel,
1420         __libc_disable_asynccancel, __librt_enable_asynccancel,
1421         __librt_disable_asynccancel): Move to ...
1422         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1423         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1424         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1425         * sysdeps/generic/single-thread.h: New file.
1426         * sysdeps/unix/sysdep.h: Include single-thread.h.
1427         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1428         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1429
1430 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
1431
1432         [BZ #24535]
1433         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1434         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1435         Unicode 12.1.0.
1436         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1437         * localedata/unicode-gen/PropList.txt: Likewise.
1438         * localedata/unicode-gen/UnicodeData.txt: Likewise.
1439         * localedata/charmaps/UTF-8: Regenerate.
1440         * localedata/locales/i18n_ctype: Likewise.
1441         * localedata/locales/tr_TR: Likewise.
1442         * localedata/locales/translit_circle: Likewise.
1443         * localedata/locales/translit_cjk_compat: Likewise.
1444         * localedata/locales/translit_combining: Likewise.
1445         * localedata/locales/translit_compat: Likewise.
1446         * localedata/locales/translit_font: Likewise.
1447         * localedata/locales/translit_fraction: Likewise.
1448
1449 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1450
1451         [BZ #24531]
1452         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1453         (do_set_tcache_count): Only update if count is small enough.
1454         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1455
1456 2019-05-10  Florian Weimer  <fweimer@redhat.com>
1457
1458         * nptl/sem_close.c (struct walk_closure): Define.
1459         (walker): Adjust for __twalk_r.
1460         (sem_close): Call __twalk_r.
1461
1462 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1463
1464         * support/timespec.c (test_timespec_before_impl,
1465         test_timespec_equal_or_after_impl): print timespec member as intmax_t
1466         insted of long int.
1467
1468 2019-05-09  Mike Crowe <mac@mcrowe.com>
1469
1470         * nptl/tst-abstime.c: Use libsupport.
1471
1472         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1473         small bug where only tv.tv_usec was checked which could cause an
1474         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1475         than a second.
1476
1477         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1478         libsupport.
1479
1480         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1481         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1482
1483         * nptl/tst-cond11.c: Use libsupport.
1484
1485         * support/timespec.h: New file.  Provide timespec helper functions
1486         along with macros in the style of those in check.h.
1487         * support/timespec.c: New file.  Implement check functions declared
1488         in support/timespec.h.
1489         * support/timespec-add.c: New file from gnulib containing
1490         timespec_add implementation that handles overflow.
1491         * support/timespec-sub.c: New file from gnulib containing
1492         timespec_sub implementation that handles overflow.
1493         * support/README: Mention timespec.h.
1494
1495 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1496
1497         [BZ #24537]
1498         * nptl/Makefile: Move tst-eintr1 to xtests.
1499
1500 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1501
1502         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1503          TRUNC handling.
1504         (round_mode): Add definition for TRUNC.
1505         * sysdeps/powerpc/fpu/s_trunc.c: New file.
1506         * sysdeps/powerpc/fpu/s_truncf.c: New file.
1507         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1508         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1509         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1510         Likewise.
1511         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1512         Likewise.
1513         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1514         Likewise.
1515         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1516         Likewise.
1517         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1518         file.
1519         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1520         Likewise.
1521         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1522         Likewise.
1523         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1524         Likewise.
1525         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1526         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1527         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1528         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1529         s_truncf-power5+, and s_truncf-ppc64.
1530         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1531         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1532         file.
1533         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1535         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1536         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1537         file.
1538         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1539         Likewise.
1540         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1541         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1542         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1543         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1544         s_truncf-power5+, and s_truncf-ppc64.
1545         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1546         file.
1547         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1548         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1549         Likewise.
1550         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1551         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1552         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1553         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1554         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1555
1556         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1557         ROUND handling.
1558         (round_mode): Add definition for ROUND.
1559         (round_to_integer_float): Likewise.
1560         * sysdeps/powerpc/fpu/s_round.c: New file.
1561         * sysdeps/powerpc/fpu/s_roundf.c: New file.
1562         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1563         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1564         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1565         Likewise.
1566         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1567         Likewise.
1568         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1569         Likewise.
1570         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1571         Likewise.
1572         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1573         file.
1574         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1575         Likewise.
1576         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1577         Likewise.
1578         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1579         Likewise.
1580         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1581         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1582         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1583         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1584         s_roundf-power5+, and s_roundf-ppc64.
1585         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1586         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1587         file.
1588         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1590         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1591         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1592         file.
1593         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1594         Likewise.
1595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1596         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1597         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1598         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1599         s_roundf-power5+, and s_roundf-ppc64.
1600         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1601         file.
1602         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1603         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1604         Likewise.
1605         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1606         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1607         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1608         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1609         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1610
1611         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1612         Add FLOOR option.
1613         (round_mode): Add definition for FLOOR.
1614         * sysdeps/powerpc/fpu/s_floor.c: New file.
1615         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1616         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1617         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1619         Remove file.
1620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1621         Likewise
1622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1623         Likewise.
1624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1625         Likewise.
1626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1627         New file.
1628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1629         Likewise.
1630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1631         Likewise.
1632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1633         Likewise.
1634         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1636         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1637         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1638         s_floorf-power5+, and s_floorf-ppc64.
1639         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1640         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1641         file.
1642         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1644         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1645         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1646         file.
1647         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1648         Likewise.
1649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1650         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1651         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1652         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1653         s_floorf-power5+, and s_floorf-ppc64.
1654         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1655         file.
1656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1657         file.
1658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1659         Likewise.
1660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1661         Likewise.
1662         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1663         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1664         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1665         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1666
1667 2019-05-08  Mike Crowe  <mac@mcrowe.com>
1668
1669         * support/xclock_gettime.c (xclock_gettime): New file. Provide
1670         clock_gettime wrapper for use in tests that fails the test rather
1671         than returning failure.
1672
1673         * support/xtime.h: New file to declare xclock_gettime.
1674
1675         * support/Makefile: Add xclock_gettime.c.
1676
1677         * support/README: Mention xtime.h.
1678
1679 2019-05-08  Florian Weimer  <fweimer@redhat.com>
1680
1681         malloc/tst-mallocfork2: Use process-shared barriers.
1682         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1683         (signal_count, sigusr1_sender_pid): Remove.
1684         (iterations): Define constant.
1685         (shared): New variable.
1686         (sigusr1_received): Update comment.
1687         (sigusr1_handler): Do not send SIGSTOP to the sender process.
1688         (signal_sender): Optional use barriers to avoid sending signals
1689         during irrelevant times.
1690         (do_it): Initialize variable shared.  Use xfork for error
1691         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
1692         the iteration count, independent of signal delivery.  Check for
1693         deadlocks in fork.  Introduce barriers for reducing signal
1694         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
1695         replaced by the barriers.  Count signals during fork/free/malloc
1696         and report them.
1697         * malloc/Makefile (tst-mallocfork): Link with libpthread.
1698
1699 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
1700
1701         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1702         version to 5.1.
1703         (clock_adjtime64) New syscall.
1704         (clock_getres_time64) Likewise.
1705         (clock_gettime64) Likewise.
1706         (clock_nanosleep_time64) Likewise.
1707         (clock_settime64) Likewise.
1708         (futex_time64) Likewise.
1709         (io_pgetevents_time64) Likewise.
1710         (io_uring_enter) Likewise.
1711         (io_uring_register) Likewise.
1712         (io_uring_setup) Likewise.
1713         (mq_timedreceive_time64) Likewise.
1714         (mq_timedsend_time64) Likewise.
1715         (pidfd_send_signal) Likewise.
1716         (ppoll_time64) Likewise.
1717         (pselect6_time64) Likewise.
1718         (recvmmsg_time64) Likewise.
1719         (rt_sigtimedwait_time64) Likewise.
1720         (sched_rr_get_interval_time64) Likewise.
1721         (semtimedop_time64) Likewise.
1722         (timer_gettime64) Likewise.
1723         (timer_settime64) Likewise.
1724         (timerfd_gettime64) Likewise.
1725         (timerfd_settime64) Likewise.
1726         (utimensat_time64) Likewise.
1727
1728         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1729         version to 9 branch.
1730
1731 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1732
1733         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1734         __memmove_thunderx2 to the list of implementations
1735         * sysdeps/aarch64/multiarch/memmove.c: Likewise
1736         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1737         (__memmove_thunderx2): Rewritten using SIMD ld/st
1738         (__memcpy_thunderx2): Fixed handling overlapping cases.
1739         Used ldp/stp instead of ldr/str if possible. Made loops
1740         tails branchless.
1741
1742 2019-05-03  Florian Weimer  <fweimer@redhat.com>
1743
1744         * misc/tst-tsearch.c (walk_tree): Add more error checking.
1745
1746 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1747
1748         [BZ #24506]
1749         * elf/tst-pldd.c (in_str_list): New function.
1750         (do_test): Add default names for ld and libc as one option.
1751
1752 2019-05-02  Florian Weimer  <fweimer@redhat.com>
1753
1754         misc: Add twalk_r function.
1755         * include/search.h (__twalk_r): Declare.
1756         * manual/examples/twalk.c: New file.
1757         * manual/search.texi (Tree Search Function): Document twalk_r.
1758         * misc/Versions (2.30): Export twalk_r.
1759         (GLIBC_PRIVATE): Export __twalk_r.
1760         * misc/search.h [__USE_GNU] (twalk_r): Declare.
1761         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1762         (twalk_r): Add weak alias.
1763         * misc/tst-tsearch.c (struct walk_trace_element): Define.
1764         (walk_trace): New variable.
1765         (struct twalk_with_twalk_r_closure): Define.
1766         (twalk_with_twalk_r_action): New function.
1767         (twalk_with_twalk_r): Likewise.
1768         (walk_action): Call walk_trace_add.
1769         (walk_tree_with): Rename from walk_tree.  Add walk argument.
1770         (walk_tree): New function.
1771         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1772         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1773         Likewise.
1774         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1775         Likewise.
1776         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1777         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1778         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1779         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1780         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1781         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1782         Likewise.
1783         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1784         Likewise.
1785         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1786         Likewise.
1787         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1788         (GLIBC_2.30): Likewise.
1789         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1790         (GLIBC_2.30): Likewise.
1791         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1792         (GLIBC_2.30): Likewise.
1793         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1794         (GLIBC_2.30): Likewise.
1795         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1796         Likewise.
1797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1798         (GLIBC_2.30): Likewise.
1799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1800         (GLIBC_2.30): Likewise.
1801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1802         (GLIBC_2.30): Likewise.
1803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1804         (GLIBC_2.30): Likewise.
1805         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1806         Likewise.
1807         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1808         Likewise.
1809         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1810         Likewise.
1811         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1812         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1813         Likewise.
1814         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1815         Likewise.
1816         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1817         Likewise.
1818         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1819         Likewise.
1820
1821 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         Make mktime etc. compatible with __time64_t
1824         Keep these functions compatible with Gnulib while adding
1825         __time64_t support.  The basic idea is to move private API
1826         declarations from include/time.h to time/mktime-internal.h, since
1827         the former file cannot easily be shared with Gnulib whereas the
1828         latter can.
1829         Also, do some other minor cleanup while in the neighborhood.
1830         * include/time.h: Include stdbool.h, time/mktime-internal.h.
1831         (__mktime_internal): Move this prototype to time/mktime-internal.h,
1832         since Gnulib needs it.
1833         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1834         Move these macros to time/mktime-internal.h, since Gnulib needs them.
1835         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1836         (in_time_t_range): New static function.
1837         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1838         so that glibc users are not tempted to use __time64_t.
1839         * time/mktime-internal.h: Rewrite so that it does both glibc
1840         and Gnulib work.  Include time.h if not _LIBC.
1841         (mktime_offset_t) [!_LIBC]: Define for gnulib.
1842         (__time64_t): New type or macro, moved here from
1843         posix/bits/types.h.
1844         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1845         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1846         from include/time.h.
1847         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1848         New macros, taken from GNulib.
1849         (__mktime_internal): New prototype, moved here from include/time.h.
1850         * time/mktime.c (mktime_min, mktime_max, convert_time)
1851         (ranged_convert, __mktime_internal, __mktime64):
1852         * time/timegm.c (__timegm64):
1853         Use __time64_t, not time_t.
1854         * time/mktime.c: Stop worrying about whether time_t is floating-point.
1855         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1856         Rename from mktime.
1857         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1858         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1859         for libc_hidden_def.
1860         Include errno.h.
1861         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1862         Rename from timegm.
1863         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1864
1865 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
1866
1867         [BZ #19444]
1868         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1869         from `-Wmaybe-uninitialized'.
1870         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1871
1872 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1873
1874         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1875         function.
1876         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1877         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1878         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1879         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1880         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1882         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1884         Remove file.
1885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1886         Likewise.
1887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1888         Likewise.
1889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1890         Likewise.
1891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1892         New file.
1893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1894         Likewise.
1895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1896         Likewise.
1897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1898         Likewise.
1899         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1900         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1901         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1902         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1903         Likewise.
1904         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1905         Likewise.
1906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1907         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1908         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1909         file.
1910         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1911         Likewise.
1912         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1913         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1914         * here.
1915         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1916         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1917         s_ceilf-power5+, and s_ceilf-ppc64.
1918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1919         file.
1920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1923         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1924         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1925         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1926         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1927
1928         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1929         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1930         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1931
1932 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
1933
1934         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1935         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1936         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1937         (sem_getvalue): Likewise.
1938
1939 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1940
1941         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1942         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1943
1944 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1945
1946         Makeconfig: Move -Wl,-rpath-link options before library references.
1947         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1948         (link-libc): Remove $(link-libc-rpath-link).
1949
1950 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1951
1952         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1953         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1954         (+link-static-before-libc): Remove $(CC).
1955         (+link-static, +link-static-tests): Add $(CC).
1956         (+link-before-libc): Remove $(CC).
1957         (+link, +link-pie, +link-pie-printers): Add $(CC).
1958
1959 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1960
1961         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1962         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1963         (+link-static-before-libc): Remove $(CC).
1964         (+link-static, +link-static-tests): Add $(CC).
1965         (+link-before-libc): Remove $(CC).
1966         (+link, +link-pie, +link-pie-printers): Add $(CC).
1967
1968 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
1969
1970         [BZ#24484]
1971         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1972
1973 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1974
1975         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1976         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1977         (bench-link-targets): New variable.
1978         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
1979
1980 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1981
1982         Also enable BIND_NOW for programs if --enable-bind-now.
1983         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1984         (+link-pie): Use $(link-extra-flags).
1985         (+link-static): Likewise.
1986         [! $(build-pie-default)] (+link): Likewise.
1987         * manual/install.texi (Configuring and compiling): Update
1988         --enable-bind-now description.
1989         * INSTALL: Regenerated.
1990
1991 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
1992
1993         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1994         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1995
1996 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
1997
1998         [BZ #18465]
1999         * malloc/Makefile (others): Add memusagestat.
2000         ($(objpfx)memusagestat): Delete rule.
2001         (LDLIBS-memusagestat): New variable.
2002
2003 2019-04-24  Florian Weimer  <fweimer@redhat.com>
2004
2005         * locale/Makefile (tests-special): Guard setting by
2006         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
2007         to run while cross-compiling.
2008
2009 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2010
2011         [BZ #18035]
2012         * elf/Makefile (tests-container): Add tst-pldd.
2013         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
2014         (E(find_maps)): Avoid use alloca, use default read file operations
2015         instead of explicit LFS names, and fix infinite loop.
2016         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
2017         (get_process_info): Use _Static_assert instead of assert, use default
2018         directory operations instead of explicit LFS names, and free some
2019         leadek pointers.
2020         * elf/tst-pldd.c: New file.
2021
2022 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2023
2024         * malloc/arena.c (do_set_mallopt_check): Removed.
2025
2026 2019-04-23  Florian Weimer  <fweimer@redhat.com>
2027
2028         locale: Add LOCPATH diagnostics to the locale program.
2029         * locale/programs/locale.c (setlocale_failed): New variable.
2030         (try_setlocale): New function.
2031         (quote_string): Likewise.
2032         (setlocale_diagnostics): Likewise.
2033         (main): Call try_setlocale instead of setlocale.  Call
2034         setlocale_diagnostics.
2035         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
2036         (tst-locale-locpath.out): New target.
2037         * locale/tst-locale-locpath.sh: New file.
2038
2039 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2040
2041         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
2042         to 2.30 notes.
2043
2044 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2045
2046         [BZ #23741]
2047         * malloc/hooks.c (malloc_check, realloc_check): Use
2048         __builtin_add_overflow on overflow check and adapt to
2049         checked_request2size change.
2050         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
2051         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
2052         allocation size to PTRDIFF_MAX.
2053         (REQUEST_OUT_OF_RANGE): Remove macro.
2054         (checked_request2size): Change to inline function and limit maximum
2055         requested size to PTRDIFF_MAX.
2056         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
2057         maximum allocation size to PTRDIFF_MAX.
2058         (_mid_memalign): Use _int_memalign call for overflow check.
2059         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
2060         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
2061         limit maximum requested size to PTRDIFF_MAX.
2062         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
2063         valloc, pvalloc): Add __attribute_alloc_size__.
2064         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
2065         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
2066         larger than PTRDIFF_MAX.
2067         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
2068         around tests of malloc with negative sizes.
2069         * malloc/tst-posix_memalign.c (do_test): Likewise.
2070         * malloc/tst-pvalloc.c (do_test): Likewise.
2071         * malloc/tst-valloc.c (do_test): Likewise.
2072         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
2073         with resulting size allocation larger than PTRDIFF_MAX with
2074         reallocarray_nowarn.
2075         (reallocarray_nowarn): New function.
2076         * NEWS: Mention the malloc function semantic change.
2077
2078 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2079
2080         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
2081         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2082
2083         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
2084         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
2085         * sysdeps/powerpc/fpu/s_fma.c: New file.
2086         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
2087
2088         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
2089         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
2090
2091         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
2092         the magic flag store.
2093         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
2094         Likewise.
2095         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
2096         Likewise.
2097         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
2098         Remove rt_sigreturn call.
2099
2100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2101         Remove rt_sigreturn call.
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2103         Likewise.
2104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
2105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2106
2107         * support/Makefile (libsupport-routines): Add support_subprocess,
2108         xposix_spawn, xposix_spawn_file_actions_addclose, and
2109         xposix_spawn_file_actions_adddup2.
2110         (tst-support_capture_subprocess-ARGS): New rule.
2111         * support/capture_subprocess.h (support_capture_subprogram): New
2112         prototype.
2113         * support/support_capture_subprocess.c (support_capture_subprocess):
2114         Refactor to use support_subprocess and support_capture_poll.
2115         (support_capture_subprogram): New function.
2116         * support/tst-support_capture_subprocess.c (write_mode_to_str,
2117         str_to_write_mode, test_common, parse_int, handle_restart,
2118         do_subprocess, do_subprogram, do_multiple_tests): New functions.
2119         (do_test): Add support_capture_subprogram tests.
2120         * support/subprocess.h: New file.
2121         * support/support_subprocess.c: Likewise.
2122         * support/xposix_spawn.c: Likewise.
2123         * support/xposix_spawn_file_actions_addclose.c: Likewise.
2124         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
2125         * support/xspawn.h: Likewise.
2126
2127 2019-04-17  Mike Gerow  <gerow@google.com>
2128
2129         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
2130         groups limit.
2131
2132 2019-04-11  Florian Weimer  <fweimer@redhat.com>
2133
2134         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
2135         domain with empty string.
2136         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2137
2138 2019-04-11  Florian Weimer  <fweimer@redhat.com>
2139
2140         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
2141         comment.
2142         (alloc_buffer_next): Change return type to non-const.  Update
2143         comment.
2144
2145 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2146
2147         * manual/time.texi (Formatting Calendar Time): Add missing percent
2148         sign to conversion specifier.
2149
2150 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
2151             Kwok Cheung Yeung  <kcy@codesourcery.com>
2152
2153         [BZ #16573]
2154         * malloc/mtrace.c: Define prototypes for all hooks.
2155         (set_default_hooks): New function.
2156         (set_trace_hooks): Likewise.
2157         (save_default_hooks): Likewise.
2158         (tr_freehook): Use new s*_hooks functions.
2159         (tr_mallochook): Likewise.
2160         (tr_reallochook): Likewise.
2161         (tr_memalignhook): Likewise.
2162         (mtrace): Likewise.
2163         (muntrace): Likewise.
2164
2165 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2166
2167         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
2168         (generic_stpcpy): New function.
2169         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
2170         (generic_stpncpy): New function.
2171         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
2172         (generic_strcat): New function.
2173         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
2174         (generic_strcpy): New function.
2175         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
2176         (STUPID_STRNCAT): Remove function.
2177         (generic_strncat): New function.
2178         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
2179         (STUPID_STRNCPY): Remove function.
2180         (generic_strncpy): New function.
2181         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
2182         (generic_strnlen): New function.
2183         (memchr_strnlen): New function.
2184         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
2185         (memchr_strlen): Likewise.
2186
2187 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2188
2189         * benchtests/bench-strstr.c (input): Add realistic input text.
2190         (stupid_strstr): Remove function.
2191         (basic_strstr): Add function.
2192         (twoway_strstr): Add function.
2193         (do_one_test): Add result checking.
2194         (do_test): Use new input text.  Remove accidental early matches.
2195         (test_main): Improve range of tests, reduce unaligned cases.
2196
2197 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2198
2199         * benchtests/bench-memmem.c (simple_memmem): Remove function.
2200         (basic_memmem): Add function.
2201         (twoway_memmem): Add function.
2202
2203 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
2204
2205         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
2206         * benchtests/bench-malloc-thread.c: Likewise.
2207         * benchtests/bench-skeleton.c: Likewise.
2208         * benchtests/bench-strtod.c: Likewise.
2209         * benchtests/bench-timing.h: Likewise.
2210
2211 2019-04-08  Florian Weimer  <fweimer@redhat.com>
2212
2213         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
2214         definitions.
2215         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
2216         RES_INSECURE2 security checks.
2217         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
2218         RES_INSECURE2 handling.
2219
2220 2019-04-08  Florian Weimer  <fweimer@redhat.com>
2221
2222         resolv: Remove support for RES_USE_INET6 and the inet6 option.
2223         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
2224         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
2225         GETHOSTBYNAME.
2226         * resolv/Makefile (tests): Remove tst-res_use_inet6.
2227         (tests-internal): Update justification for tst-resolv-res_init,
2228         tst-resolv-res_init-thread.
2229         (tst-res_use_inet6): Remove target.
2230         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
2231         * resolv/res_debug.c (p_option): Remove "inet6" support.
2232         * resolv/res_init.c (res_setoptions): Likewise.
2233         * resolv/res_use_inet6.h: Remove file.
2234         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
2235         definition.
2236         (res_use_inet6): Always return false.
2237         * resolv/resolv.h (RES_USE_INET6): Remove definition.
2238         * resolv/resolv_context.h: Adjust file comment.
2239         (struct resolv_context): Update comment on __next field.
2240         (__resolv_context_put): Update comment.
2241         * resolv/tst-res_use_inet6.c: Remove file.
2242         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
2243         "inet6" support.
2244         (test_cases): Adjust test case.
2245         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
2246         (thread_byname2_af_inet6): Use old byname_inet6 code.
2247         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
2248         (gai): Remove do_inet6 argument.
2249         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
2250         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
2251         (thread_gai_unspec_inet6): Remove functions.
2252         (do_test): Adjust thread_funcs.
2253         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
2254         RES_USE_INET6 flag.
2255         (gaih_inet): Do not disable RES_USE_INET6 flag.
2256
2257 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
2258
2259         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
2260         and remove redundant code.
2261
2262 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2263
2264         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
2265         New rule.
2266         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
2267         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
2268         Likewise.
2269         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
2270         Likewise.
2271         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
2272         Likewise.
2273         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
2274         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
2275         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
2276         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
2277         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
2278         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
2279         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2280         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
2281         wcsrchr-power7.
2282         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
2283         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2284         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2285         Remove wcsrchr optimizations.
2286         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2287
2288         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
2289         the loop unroll.
2290
2291         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
2292         New rule.
2293         * sysdeps/powerpc/power6/wcschr.c: Remove file.
2294         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
2295         Likewise.
2296         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
2297         Likewise.
2298         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
2299         Likewise.
2300         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2301         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2302         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2303         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2304         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2305         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2306         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2307         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2308         wcschr-power7.
2309         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2310         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2311         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2312         Remove wcschr optimizations.
2313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2314
2315         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2316         the loop unroll.
2317
2318         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2319         New rule.
2320         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2321         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2322         Likewise.
2323         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2324         Likewise.
2325         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2326         Likewise.
2327         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2328         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2329         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2330         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2331         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2332         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2333         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2334         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2335         wcscpy-power7.
2336         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2337         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2338         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2339         Remove wcscpy optimizations.
2340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2341
2342         * include/loop_unroll.h: New file.
2343         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2344         besides generic implementation.
2345
2346 2019-04-03  DJ Delorie  <dj@redhat.com>
2347
2348         * time/tst-strftime3.c (tm_to_printed): Disable warning about
2349         snprintf truncating output.
2350
2351 2019-04-02  DJ Delorie  <dj@redhat.com>
2352
2353         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
2354         warning.
2355
2356 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2357
2358         [BZ #22964]
2359         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2360         era.
2361         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2362         (mkreftable): Add rules for the new Japanese era and the new dates.
2363
2364 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2365             Rafal Luzynski  <digitalfreak@lingonborough.com>
2366
2367         * time/tst-strftime2.c (date_t): Explicitly define the type.
2368         (dates): Use natural month and year numbers to express a date.
2369         (is_before): New function to compare dates.
2370         (mkreftable): Minor improvements to simplify maintenance.
2371         (do_test): Reflect the changes in dates array.
2372
2373         [BZ #24293]
2374         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2375         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2376         * time/tst-strftime2.c (locales): Likewise.
2377         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2378         2010-04-01, and 2011-04-01.
2379         (mkreftable): Add rules for the new locales and the new dates.
2380
2381 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
2382
2383         * localedata/locales/ja_JP: Add comments to era entries.
2384
2385 2019-04-01  DJ Delorie  <dj@redhat.com>
2386
2387         [BZ #24394]
2388         * time/strptime_l.c (%Ey): Fix fencepost error.
2389         * time/tst-strftime3.c: New.
2390         * time/Makefile (tests): Add tst-strftime3.
2391
2392 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
2393
2394         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2395         conditional branch to DIVBYZERO.  Fix unwind info.
2396         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2397         excb after conditional branch to $powerof2.  Add missing unop
2398         instructions and .align directives and reorder instructions to
2399         match __divqu.
2400
2401 2019-04-01  Richard Henderson  <rth@twiddle.net>
2402
2403         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2404         Do not redefine.
2405         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2406         Do not redefine.
2407
2408 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
2409
2410         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2411         $libc_cv_riscv_float_abi in `test' invocation.
2412         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2413
2414 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
2415
2416         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2417         asm with builtin.
2418         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2419         Likewise.
2420         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2421         (_GET_SI_FPSCR): Likewise.
2422         (_SET_SI_FPSCR): Likewise.
2423
2424 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2425
2426         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2427         clang 2.8.
2428         (signbit): Use builtin for clang 3.3.
2429         (isinf): Use builtin for clang 3.7.
2430
2431 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2432
2433         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2434
2435 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
2436
2437         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2438         quote in printf.
2439
2440 2019-03-25  Mike Crowe  <mac@mcrowe.com>
2441
2442         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2443         pthread_rwlock_timedrdlock with calls to
2444         pthread_rwlock_timedwrlock to ensure that the latter is tested
2445         too. Use new function name in diagnostic messages too.
2446
2447         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2448         (do_test) Use libsupport test macros rather than hand-coded
2449         conditionals and error messages. Ensure that sem_init returns zero
2450         rather than not -1. Use <support/test-driver.c> rather than
2451         test-skeleton.c.
2452
2453         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2454         test macros rather than hand-coded conditionals and error messages.
2455         Use <support/test-driver.c> rather than test-skeleton.c.
2456
2457 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
2458
2459         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2460
2461         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2462         (NT_MIPS_MSA): Likewise.
2463
2464 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2465
2466         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2467         * benchtests/README: Update description.
2468         * benchtests/bench-timing.h: Default to hp-timing.
2469         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2470         HP_TIMING_PRINT): Remove.
2471         (HP_TIMING_NOW): Add generic implementation.
2472         (hp_timing_t): Change to uint64_t.
2473
2474         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2475         HP_TIMING_INLINE.
2476         * nptl/descr.h: Likewise.
2477         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2478         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2479         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2480         Abstract hp-timing usage with RTLD_* macros.
2481         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2482         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2483         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2484         HP_TIMING_NONAVAIL): Likewise.
2485         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2486         Likewise.
2487         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2488         HP_SMALL_TIMING_AVAIL): Likewise.
2489         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2490         HP_SMALL_TIMING_AVAIL): Likewise.
2491         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2492         HP_SMALL_TIMING_AVAIL): Likewise.
2493         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2494         HP_SMALL_TIMING_AVAIL): Likewise.
2495         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2496         Likewise.
2497         * sysdeps/generic/hp-timing-common.h: Update comment with
2498         HP_TIMING_AVAIL removal.
2499
2500         * include/random-bits.h: New file.
2501         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2502         (__res_context_mkquery): Remove usage hp-timing usage and replace with
2503         random_bits.
2504         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2505         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2506         Likewise.
2507
2508         * include/libc-internal.h (__get_clockfreq): Remove prototype.
2509         * rt/Makefile (clock-routines): Remove get_clockfreq.
2510         * rt/get_clockfreq.c: Remove file.
2511         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2512         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2513         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2514         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2515         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2516
2517         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2518         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2519         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2520         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2521         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2522
2523         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2524         pthread_clock_settime.
2525         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2526         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2527         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2528         * elf/rtld.c (_dl_start_final): Likewise.
2529         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2530         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2531         Remove.
2532         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2533         (_dl_cpuclock_offset): Remove.
2534         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2535         cpuclock_offset_ununsed.
2536         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2537         cpuclock_offset set.
2538         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2539         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2540         * nptl/pthread_clock_gettime.c: Remove file.
2541         * nptl/pthread_clock_settime.c: Likewise.
2542         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2543         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2544         and CLOCK_PROCESS_CPUTIME_ID support.
2545         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2546         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2547         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2548         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2549         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2550         Likewise.
2551         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2552
2553 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2554
2555         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2556         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2557         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2558         New defines.
2559         * sysdeps/s390/memmem-arch13.S: New file.
2560         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2561         if it is only used as fallback.
2562         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2563         * sysdeps/s390/multiarch/ifunc-impl-list.c
2564         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2565
2566 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2567
2568         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2569         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2570         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2571         New defines.
2572         * sysdeps/s390/multiarch/ifunc-impl-list.c
2573         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2574         * sysdeps/s390/strstr-arch13.S: New file.
2575         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2576         if it is only used as fallback.
2577         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2578
2579 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2580
2581         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2582         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2583         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2584         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2585         ifunc selector.
2586         * sysdeps/s390/multiarch/ifunc-impl-list.c
2587         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2588         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2589         S390_IS_ARCH13_MIE3): New defines.
2590
2591 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2592
2593         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2594         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2595         * sysdeps/s390/configure.ac: Add checks for arch13 support.
2596         * sysdeps/s390/configure: Regenerated.
2597
2598 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2599
2600         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2601         Add vxe2, vxp, dflt, sort flags.
2602         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2603         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2604         capabilities.
2605         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2606         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2607         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2608         HWCAP_S390_DFLT): Define.
2609
2610 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2611
2612         [BZ #24372]
2613         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2614         of compiler warning.
2615         * locale/programs/ld-collate.c (collate_output): Likewise.
2616
2617 2019-03-21  DJ Delorie  <dj@redhat.com>
2618
2619         [BZ #24372]
2620         * iconv/iconvconfig.c (write_output): Replace floating point math
2621         with integer math to avoid imprecise results.
2622         * locale/programs/ld-collate.c (collate_output): Likewise.
2623
2624 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
2625
2626         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2627         Add HWCAP_S390_VX and HWCAP_S390_VXE.
2628
2629 2019-03-20  mansayk  <6688000@gmail.com>
2630
2631         [BZ #24296]
2632         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2633         (abday): Likewise, but remove the trailing dots.
2634
2635 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
2636
2637         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2638         macro.
2639         (HWCAP_PACA): Likewise.
2640         (HWCAP_PACG): Likewise.
2641         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2642         Increase to 32.
2643         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2644
2645 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2646
2647         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2648         should be handled.
2649
2650 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
2651
2652         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2653         version to 5.0.
2654         (old_getpagesize): New syscall.
2655
2656 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
2657
2658         [BZ #24293]
2659         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2660         * localedata/locales/cmn_TW (era): Likewise.
2661         * localedata/locales/hak_TW (era): Likewise.
2662         * localedata/locales/lzh_TW (era): Likewise.
2663         * localedata/locales/nan_TW (era): Likewise.
2664
2665 2019-03-14  Adam Maris  <amaris@redhat.com>
2666
2667         * malloc/malloc.c (_int_malloc): Check for large bin list
2668         corruption when inserting unsorted chunk.
2669
2670 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2671
2672         Remove obsolete, never-implemented XSI STREAMS declarations.
2673         * manual/terminal.texi (Allocation): Remove portability note and
2674         adjust example.
2675         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2676         _SC_STREAMS.
2677         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2678         * sysdeps/unix/inet/Subdirs (streams): Remove.
2679         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2680         (conformtest-headers-UNIX98): Likewise.
2681         (conformtest-headers-XOPEN2K): Likewise.
2682         (conformtest-headers-POSIX2008): Likewise.
2683         * posix/compat-streams.c: New file.
2684         * posix/Makefile (routines): Add it.
2685         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2686         getpmsg, isastream, putmsg, putpmsg.
2687         (GLIBC_2.30): New section.
2688         * bits/stropts.h: Remove file.
2689         * bits/xtitypes.h: Likewise.
2690         * conform/data/stropts.h-data: Likewise.
2691         * include/stropts.h: Likewise.
2692         * include/sys/stropts.h: Likewise.
2693         * include/xtitypes.h: Likewise.
2694         * streams/Makefile: Likewise.
2695         * streams/fattach.c: Likewise.
2696         * streams/fdetach.c: Likewise.
2697         * streams/getmsg.c: Likewise.
2698         * streams/getpmsg.c: Likewise.
2699         * streams/isastream.c: Likewise.
2700         * streams/putmsg.c: Likewise.
2701         * streams/putpmsg.c: Likewise.
2702         * streams/stropts.h: Likewise.
2703         * streams/sys/stropts.h: Likewise.
2704         * sysdeps/ia64/bits/xtitypes.h: Likewise.
2705         * sysdeps/s390/bits/xtitypes.h: Likewise.
2706         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2707         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2708         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2709         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2710         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2711         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2712         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2713         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2714         * sysdeps/x86/bits/xtitypes.h: Likewise.
2715
2716 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2717
2718         * nss/tst-nss-files-alias-truncated.c (do_test): Load
2719         libnss_files.
2720         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2721         but not with libnss_files.
2722         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2723
2724 2019-03-14  Zack Weinberg  <zackw@panix.com>
2725
2726         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2727         Specify encoding="utf-8" when opening headers to check.
2728
2729 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
2730
2731         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2732         version to 5.0.
2733         (Context.checkout_tar): Handle variable major version for Linux
2734         kernel.
2735
2736 2019-03-13  Florian Weimer  <fweimer@redhat.com>
2737
2738         [BZ #24047]
2739         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2740
2741 2019-03-13  Zack Weinberg  <zackw@panix.com>
2742
2743         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2744         Move to stdlib.
2745         * include/inttypes.h: Adjust to match.
2746         * include/stdint.h: New wrapper.
2747
2748 2019-03-13  Zack Weinberg  <zackw@panix.com>
2749
2750         * scripts/check-obsolete-constructs.py: New test script.
2751         * scripts/check-installed-headers.sh: Remove tests for
2752         obsolete typedefs, superseded by check-obsolete-constructs.py.
2753         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2754         as a special test.  Update commentary.
2755         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2756         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2757         Update commentary.
2758         * posix/sys/types.h (__u_intN_t): Remove.
2759         (u_int8_t): Typedef using __uint8_t.
2760         (u_int16_t): Typedef using __uint16_t.
2761         (u_int32_t): Typedef using __uint32_t.
2762         (u_int64_t): Typedef using __uint64_t.
2763
2764 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
2765
2766         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2767         call _dl_procinfo.
2768         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2769         Ignore types other than AT_HWCAP.
2770         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2771         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2772         Likewise.
2773         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2774         in the case of falling back to generic output mechanism.
2775         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2776         Likewise.
2777
2778 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2779
2780         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2781
2782 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2783
2784         [BZ #24047]
2785         resolv: Enable full ICMP errors for UDP DNS sockets
2786         * resolv/res_enable_icmp.c: New file.
2787         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2788         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2789         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2790         socket.
2791
2792 2019-03-11  Mao Han  <han_mao@c-sky.com>
2793
2794         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2795         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2796
2797 2019-03-11  Mao Han  <han_mao@c-sky.com>
2798
2799         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2800         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2801         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2802
2803 2019-03-11  Mao Han  <han_mao@c-sky.com>
2804
2805         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2806         directly.
2807         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2808         definition.
2809
2810 2019-03-11  Mao Han  <han_mao@c-sky.com>
2811
2812         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2813         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2814         in mcontext_t
2815
2816 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
2817
2818         [BZ #24307]
2819         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2820         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2821         Unicode 12.0.0.
2822         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2823         * localedata/unicode-gen/PropList.txt: Likewise.
2824         * localedata/unicode-gen/UnicodeData.txt: Likewise.
2825         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2826         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2827         * localedata/charmaps/UTF-8: Regenerate.
2828         * localedata/locales/i18n_ctype: Likewise.
2829         * localedata/locales/tr_TR: Likewise.
2830         * localedata/locales/translit_circle: Likewise.
2831         * localedata/locales/translit_cjk_compat: Likewise.
2832         * localedata/locales/translit_combining: Likewise.
2833         * localedata/locales/translit_compat: Likewise.
2834         * localedata/locales/translit_font: Likewise.
2835         * localedata/locales/translit_fraction: Likewise.
2836
2837 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
2838
2839         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2840         than after operators.
2841         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2842         (setitimer_locked): Likewise.
2843         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2844         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2845         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2846         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2847         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2848         (PPC_CPU_SUPPORTED): Likewise.
2849         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2850         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2851         (stat_overflow): Likewise.
2852         (statfs_overflow): Likewise.
2853         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2854         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2855         (eq_ttyname_r): Likewise.
2856         (run_chroot_tests): Likewise.
2857
2858 2019-03-07  Florian Weimer  <fweimer@redhat.com>
2859
2860         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2861         header check.
2862
2863 2019-03-07  Martin Liska  <mliska@suse.cz>
2864
2865         * math/Makefile: Change location where math-vector-fortran.h is
2866         installed.
2867         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2868         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2869         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2870         * scripts/check-installed-headers.sh: Skip Fortran header files.
2871         * scripts/check-wrapper-headers.py: Likewise.
2872
2873 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2874
2875         * nptl/nptl-init.c (__have_futex_clock_realtime,
2876         __have_futex_clock_realtime): Remove definition.
2877         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2878         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2879         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2880         __ASSUME_FUTEX_CLOCK_REALTIME support.
2881         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2882         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2883         * sysdeps/unix/sysv/linux/kernel-features.h
2884         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2885         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2886         Adjust comment.
2887
2888 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2889
2890         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2891         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2892         __GI___wcscpy and wcscpy.
2893
2894 2019-03-04  Florian Weimer  <fweimer@redhat.com>
2895
2896         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2897         declaration.
2898         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2899         defined.
2900
2901 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
2902
2903         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2904         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2905
2906 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2907
2908         [BZ #24162]
2909         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2910         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
2911
2912 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2913
2914         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2915         tests.
2916         (do_test): Likewise.
2917         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2918         (do_test_call_varg): Likewise.
2919         (do_test_call_rarg): Likewise.
2920         * sysdeps/ieee754/ldbl-opt/Makefile
2921         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2922         tst-nldbl-error.
2923         ($(objpfx)tst-nldbl-warn.c): New rule.
2924         ($(objpfx)tst-nldbl-error.c): Likewise.
2925         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2926         New variables.
2927
2928 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2929
2930         [BZ #23984]
2931         * include/bits/error-ldbl.h: New file.
2932         * include/error.h: Include stdarg.h.  Declare internal functions
2933         __error_internal and __error_at_line_internal.
2934         * misc/Makefile (headers): Add bits/error-ldbl.h.
2935         * misc/bits/error-ldbl.h: New file.
2936         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2937         avoid the inclusion of bits/error.h.
2938         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2939         and __nldbl_error_at_line.
2940         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2941         (__nldbl_error, __ndlbl_error_at_line): New functions.
2942         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2943         Redirect error and error_at_line.
2944         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2946         Likewise.
2947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2948         Likewise.
2949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2950         Likewise.
2951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2952         Likewise.
2953         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2954         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2955         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2956
2957 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2958
2959         [BZ #23984]
2960         * include/bits/err-ldbl.h: New file.
2961         * include/err.h: Add prototypes for the internal functions:
2962         __vwarnx_internal and __vwarn_internal.
2963         * misc/Makefile (headers): Add bits/err-ldbl.h.
2964         * misc/bits/err-ldbl.h: New file.
2965         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2966         defined, i.e.: when -mlong-double-64 is in use.
2967         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2968         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2969         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2970         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2971         (VA_CALL): New macro.
2972         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2973         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2974         functions.
2975         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2976         declare prototypes for the new functions.
2977         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2979         Likewise.
2980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2981         Likewise.
2982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2983         Likewise.
2984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2985         Likewise.
2986         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2987         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2988         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2989
2990 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2991
2992         * sysdeps/ieee754/ldbl-opt/Makefile
2993         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2994         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2995         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2996
2997 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2998
2999         [BZ #23983]
3000         * argp/Makefile (headers): Add bits/argp-ldbl.h.
3001         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
3002         * argp/bits/argp-ldbl.h: New file.
3003         * include/argp.h: Include stdarg.h.  Add prototypes for internal
3004         functions: __argp_error_internal and __argp_failure_internal.
3005         * include/bits/argp-ldbl.h: New file.
3006         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
3007         __nldbl_argp_error and __nldbl_argp_failure.
3008         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
3009         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
3010         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
3011         Redirect argp_error and argp_failure calls.
3012         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
3013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3014         Likewise.
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3016         Likewise.
3017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3018         Likewise.
3019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3020         Likewise.
3021         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3022         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3023         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3024
3025 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3026
3027         [BZ #20419]
3028         * elf/tst-big-note-lib.S: Create a syntactically valid note.
3029         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
3030         code, to avoid creating an ABI tag note.
3031         (modules-names-nobuild): Add tst-big-note-lib.
3032
3033 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
3034
3035         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
3036         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
3037
3038 2019-03-01  Florian Weimer  <fweimer@redhat.com>
3039
3040         [BZ #20271]
3041         * sysdeps/unix/sysv/linux/netlink_assert_response.c
3042         (__netlink_assert_response): Add additional missing newlines.
3043
3044 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
3045
3046         * sysdeps/powerpc/powerpc32/dl-machine.c
3047         (__elf_machine_fixup_plt): Use space before '('.
3048         (__process_machine_rela): Likewise.
3049         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
3050         Likewise.
3051         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
3052         Likewise.
3053         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
3054         Likewise.
3055         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
3056         (pattern): Likewise.
3057         (delta): Likewise.
3058         (check_result): Likewise.
3059         (check_excepts): Likewise.
3060         (check_op): Likewise.
3061         (fail_xr): Likewise.
3062         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
3063         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
3064         (SCNHSZ): Likewise.
3065         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
3066         Likewise.
3067         (ARGS): Likewise.
3068         (__makecontext): Likewise.
3069         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
3070         Likewise.
3071
3072 2019-02-28  Florian Weimer  <fweimer@redhat.com>
3073
3074         [BZ #23937]
3075         elf: Add test with a local IFUNC resolver.
3076         * elf/ifuncmain9.c: New file.
3077         * elf/ifuncmain9pic.c: Likewise.
3078         * elf/ifuncmain9picstatic.c: Likewise.
3079         * elf/ifuncmain9pie.c: Likewise.
3080         * elf/ifuncmain9static.c: Likewise.
3081         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
3082         ifuncmain9static, ifuncmain9picstatic.
3083         * elf/Makefile [multi-arch && build-shared] (tests-internal):
3084         Add ifuncmain9, ifuncmain9pic.
3085         * elf/Makefile [multi-arch && build-shared && have-fpie]
3086         (ifunc-pie-tests): Add ifuncmain9pie.
3087         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
3088         (CFLAGS-ifuncmain9picstatic.c): Likewise.
3089         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
3090
3091 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3092
3093         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
3094         * configure: Regenerated.
3095         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
3096
3097 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3098
3099         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
3100         symbol as __wcspcy instead of wcscpy.
3101
3102 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3103
3104         * include/stdio.h (__renameat2): New hidden prototype.
3105         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
3106         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
3107         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
3108         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
3109
3110 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
3111
3112         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
3113         if statement.
3114
3115         * benchtests/bench-strcpy.c (do_test): Use space before '('.
3116         * benchtests/bench-string.h (cmdline_process_function): Likewise.
3117         * benchtests/bench-strlen.c (do_test): Likewise.
3118         (test_main): Likewise.
3119         * catgets/gencat.c (read_old): Likewise.
3120         * elf/cache.c (load_aux_cache): Likewise.
3121         * iconvdata/bug-iconv8.c (do_test): Likewise.
3122         * math/test-tgmath-ret.c (do_test): Likewise.
3123         * nis/nis_call.c (rec_dirsearch): Likewise.
3124         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3125         * nptl/tst-audit-threads.c (do_test): Likewise.
3126         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
3127         * nss/nss_test1.c (init): Likewise.
3128         * nss/test-netdb.c (test_hosts): Likewise.
3129         * posix/execvpe.c (maybe_script_execute): Likewise.
3130         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
3131         * stdio-common/tst-printf.c (do_test): Likewise.
3132         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
3133         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
3134         * stdlib/qsort.c (STACK_SIZE): Likewise.
3135         * stdlib/test-canon.c (do_test): Likewise.
3136         * stdlib/tst-swapcontext1.c (do_test): Likewise.
3137         * string/memcmp.c (OPSIZ): Likewise.
3138         * string/test-strcpy.c (do_test): Likewise.
3139         (do_random_tests): Likewise.
3140         * string/test-strlen.c (do_test): Likewise.
3141         (test_main): Likewise.
3142         * string/test-strrchr.c (do_test): Likewise.
3143         (do_random_tests): Likewise.
3144         * string/tester.c (test_memrchr): Likewise.
3145         (test_memchr): Likewise.
3146         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
3147         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
3148         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
3149         (read_encoded_value_with_base): Likewise.
3150         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
3151         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
3152         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
3153         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3154         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
3155         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
3156         Likewise.
3157         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
3158         Likewise.
3159         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
3160         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
3161         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
3162         Likewise.
3163         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
3164         Likewise.
3165         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
3166         Likewise.
3167         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3168         Likewise.
3169         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
3170         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
3171         (FP_XSTATE_MAGIC2_SIZE): Likewise.
3172         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
3173         * time/test_time.c (main): Likewise.
3174
3175 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3176
3177         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
3178
3179         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
3180         wmemcpy.
3181
3182         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
3183         wmemcpy.
3184
3185         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3186
3187         * include/wchar.h (__wcscpy): New prototype.
3188         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
3189         (__wcscpy): Route internal symbol to generic implementation.
3190         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
3191         Add internal __wcscpy alias.
3192         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
3193         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
3194         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
3195         * wcsmbs/wcscpy.c (wcscpy): Add
3196         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
3197         use generic implementation.
3198         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
3199
3200         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
3201         wmemset.
3202
3203         * sysdeps/m68k/wcpcpy.c: Remove file.
3204         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
3205
3206 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
3207
3208         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
3209         than after operators.
3210         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3211         * sysdeps/mach/hurd/getcwd.c
3212         (__hurd_canonicalize_directory_name_internal): Likewise.
3213         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
3214         (pthread_mutex_consistent): Likewise.
3215         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
3216         Likewise.
3217         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
3218         (__pthread_mutex_transfer_np): Likewise.
3219         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
3220         (__pthread_mutex_unlock): Likewise.
3221         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
3222         (mtx_owned_p): Likewise.
3223         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
3224         (pthread_mutexattr_getrobust): Likewise.
3225         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
3226         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3227         Likewise.
3228         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3229         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
3230         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3231         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
3232         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3233         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3234         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
3235         Likewise.
3236         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
3237         Likewise.
3238         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
3239         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
3240         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
3241         (____longjmp_chk): Likewise.
3242         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
3243         Likewise.
3244         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3245         (INTERNAL_SYSCALL): Likewise.
3246         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3247         (INTERNAL_SYSCALL): Likewise.
3248         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3249         (__get_clockfreq_via_cpuinfo): Likewise.
3250
3251         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
3252         comments.
3253         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
3254         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
3255         (WORD_COPY_BWD): Likewise.
3256         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3257         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3258         Likewise.
3259         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
3260         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
3261         comment.
3262         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
3263
3264 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
3265
3266         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
3267         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
3268         rather than after operators.
3269         * elf/cache.c (print_cache): Likewise.
3270         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
3271         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
3272         * hurd/hurdinit.c (_hurd_setproc): Likewise.
3273         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3274         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
3275         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
3276         (reauth_proc): Likewise.
3277         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
3278         (__file_name_split_at): Likewise.
3279         (__directory_name_split_at): Likewise.
3280         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3281         * hurd/port2fd.c (_hurd_port2fd): Likewise.
3282         * iconv/gconv_dl.c (do_print): Likewise.
3283         * inet/netinet/in.h (struct sockaddr_in): Likewise.
3284         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
3285         * locale/setlocale.c (new_composite_name): Likewise.
3286         * malloc/memusagestat.c (main): Likewise.
3287         * misc/fstab.c (fstab_convert): Likewise.
3288         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3289         Likewise.
3290         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
3291         (getgrent_next_file): Likewise.
3292         (internal_getgrnam_r): Likewise.
3293         (internal_getgrgid_r): Likewise.
3294         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
3295         Likewise.
3296         (internal_getgrent_r): Likewise.
3297         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3298         (getpwent_next_nss): Likewise.
3299         (getpwent_next_file): Likewise.
3300         (internal_getpwnam_r): Likewise.
3301         (internal_getpwuid_r): Likewise.
3302         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3303         Likewise.
3304         (getspent_next_nss): Likewise.
3305         (internal_getspnam_r): Likewise.
3306         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3307         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3308         * string/strchr.c (STRCHR): Likewise.
3309         * string/strchrnul.c (STRCHRNUL): Likewise.
3310         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3311         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3312         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3313         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3314         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3315         Likewise.
3316         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3317         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3318         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3319         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3320         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3321         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3322         (open_file): Likewise.
3323         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3324         (pthread_mutexattr_setprotocol): Likewise.
3325         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3326         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3327         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3328         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3329         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3330         Likewise.
3331         (elf_machine_rela): Likewise.
3332         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3333         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3334         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3335         * sysdeps/posix/rename.c (rename): Likewise.
3336         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3337         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3338         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3339         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3340         * sysdeps/unix/grantpt.c (grantpt): Likewise.
3341         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3342         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3343         Likewise.
3344         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3345         Likewise.
3346         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3347         * time/tzfile.c (__tzfile_compute): Likewise.
3348
3349 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
3350
3351         * benchtests/bench-memmem.c (simple_memmem): Break lines before
3352         rather than after operators.
3353         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3354         * crypt/md5.c (md5_finish_ctx): Likewise.
3355         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3356         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3357         * elf/cache.c (load_aux_cache): Likewise.
3358         * elf/dl-load.c (open_verify): Likewise.
3359         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3360         * elf/readelflib.c (process_elf_file): Likewise.
3361         * elf/rtld.c (dl_main): Likewise.
3362         * elf/sprof.c (generate_call_graph): Likewise.
3363         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3364         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3365         * hurd/dtable.c (reauth_dtable): Likewise.
3366         * hurd/getdport.c (__getdport): Likewise.
3367         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3368         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3369         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3370         Likewise.
3371         * hurd/hurdioctl.c (fioctl): Likewise.
3372         * hurd/hurdselect.c (_hurd_select): Likewise.
3373         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3374         (STOPSIGS): Likewise.
3375         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3376         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3377         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3378         * hurd/msgportdemux.c (msgport_server): Likewise.
3379         * hurd/setauth.c (_hurd_setauth): Likewise.
3380         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3381         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3382         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3383         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3384         * login/tst-utmp.c (do_check): Likewise.
3385         (simulate_login): Likewise.
3386         * mach/lowlevellock.h (lll_lock): Likewise.
3387         (lll_trylock): Likewise.
3388         * math/test-fenv.c (ALL_EXC): Likewise.
3389         * math/test-fenvinline.c (ALL_EXC): Likewise.
3390         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3391         * nis/nis_call.c (__do_niscall3): Likewise.
3392         * nis/nis_callback.c (cb_prog_1): Likewise.
3393         * nis/nis_defaults.c (searchaccess): Likewise.
3394         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3395         * nis/nis_ismember.c (internal_ismember): Likewise.
3396         * nis/nis_local_names.c (nis_local_principal): Likewise.
3397         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3398         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3399         Likewise.
3400         * nis/ypclnt.c (yp_match): Likewise.
3401         (yp_first): Likewise.
3402         (yp_next): Likewise.
3403         (yp_master): Likewise.
3404         (yp_order): Likewise.
3405         * nscd/hstcache.c (cache_addhst): Likewise.
3406         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3407         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3408         (internal_getpwuid_r): Likewise.
3409         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3410         * posix/glob.h (__GLOB_FLAGS): Likewise.
3411         * posix/regcomp.c (peek_token): Likewise.
3412         (peek_token_bracket): Likewise.
3413         (parse_expression): Likewise.
3414         * posix/regexec.c (sift_states_iter_mb): Likewise.
3415         (check_node_accept_bytes): Likewise.
3416         * posix/tst-spawn3.c (do_test): Likewise.
3417         * posix/wordexp-test.c (testit): Likewise.
3418         * posix/wordexp.c (parse_tilde): Likewise.
3419         (exec_comm): Likewise.
3420         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3421         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3422         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3423         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3424         * stdio-common/tst-fileno.c (do_test): Likewise.
3425         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3426         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3427         * stdlib/strtod_l.c (round_and_return): Likewise.
3428         (____STRTOF_INTERNAL): Likewise.
3429         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3430         * string/strcspn.c (STRCSPN): Likewise.
3431         * string/test-memmem.c (simple_memmem): Likewise.
3432         * termios/tcsetattr.c (tcsetattr): Likewise.
3433         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3434         * time/asctime.c (asctime_internal): Likewise.
3435         * time/strptime_l.c (__strptime_internal): Likewise.
3436         * time/sys/time.h (timercmp): Likewise.
3437         * time/tzfile.c (__tzfile_compute): Likewise.
3438
3439 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
3440
3441         [BZ #21915]
3442         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3443
3444 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3445
3446         * argp/argp-help.c (__argp_error_internal): New function,
3447         renamed from __argp_error, but that takes a 'mode_flags'
3448         parameter to control the format of long double parameters.
3449         (__argp_error): Converted into a call __argp_error_internal.
3450         (__argp_failure_internal): New function, renamed from
3451         __argp_failure, but that takes a 'mode_flags' parameter.
3452         (__argp_failure): Converted into a call __argp_failure_internal.
3453         * misc/err.c (__vwarnx_internal): New function, renamed from
3454         vwarnx, but that takes a 'mode_flags' parameter.
3455         (vwarnx): Converted into a call to __vwarnx_internal.
3456         (__vwarn_internal): New function, renamed from vwarn, but that
3457         takes a 'mode_flags' parameter.
3458         (vwarn): Converted into a call to __vwarn_internal.
3459         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3460         call to __vfxprintf with 'mode_flags'.
3461         (__error_internal): New function, renamed from error, but that
3462         takes a 'mode_flags' parameter.
3463         (error): Converted into a call to __error_internal.
3464         (__error_at_line_internal): New function, renamed from
3465         error_at_line, but that takes a 'mode_flags' parameter.
3466         (error_at_line): Converted into a call to
3467         __error_at_line_internal.
3468         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3469         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3470         Likewise.
3471
3472 2019-02-20  Martin Liska  <mliska@suse.cz>
3473
3474         * math/Makefile: Install math-vector-fortran.h.
3475         * bits/math-vector-fortran.h: New file.
3476         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3477
3478 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3479
3480         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3481         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3482
3483 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
3484
3485         * nptl/pthread_mutex_trylock.c: Fix comment.
3486
3487 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
3488
3489         * nptl/pthread_tryjoin.c: Fix comment.
3490
3491 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
3492
3493         [BZ #24231]
3494         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3495         after R_SPARC_H34 case.
3496
3497 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3498
3499         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3500         (getanswer): Do not call Dprintf.
3501         (res_gethostbyname2_context): Likewise.
3502         (res_gethostbyaddr_context): Likewise.
3503
3504 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3505
3506         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3507         declaration.
3508         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3509         Remove definitions.
3510         * libio/stdfiles.c: Update comment.
3511         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
3512         set _IO_stdin, _IO_stdout, _IO_stderr.
3513         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3514         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3515         inline function.
3516         (_IO_deallocate_file): New inline function.
3517         * libio/iolibio.h (_IO_vprintf): Remove definition.
3518         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3519         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3520         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3521         _IO_legacy_file.
3522         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3523         __builtin_expect.  Use _IO_legacy_file.
3524
3525 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
3526
3527         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3528         Initialize ctid with a known value and remove update of ctid
3529         after clone.
3530         (wait_tid): Adjust arguments and call futex_wait with ctid_val
3531         as assumed current value of ctid_ptr.
3532
3533 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3534
3535         Check that non-sysdeps headers have wrapper headers.
3536         * scripts/check-wrapper-headers.py: New file.
3537         * Makefile (tests-special): Add check-wrapper-headers.out.
3538         (check-wrapper-headers.out): New target.
3539         * Rules (tests-special): Add check-wrapper-headers.out.
3540         (check-wrapper-headers.out): New target.
3541
3542 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3543
3544         Add missing header wrappers under include/.
3545         * include/ar.h: New file.
3546         * include/bits/mqueue2.h: Likewise.
3547         * include/bits/stdio.h: Likewise.
3548         * include/bits/stdio2.h: Likewise.
3549         * include/fstab.h: Likewise.
3550         * include/fts.h: Likewise.
3551         * include/lastlog.h: Likewise.
3552         * include/netinet/icmp6.h: Likewise.
3553         * include/netinet/igmp.h: Likewise.
3554         * include/netinet/ip6.h: Likewise.
3555         * include/re_comp.h: Likewise.
3556         * include/regexp.h: Likewise.
3557         * include/rpcsvc/bootparam.h: Likewise.
3558         * include/rpcsvc/yp_prot.h: Likewise.
3559         * include/sys/random.h: Likewise.
3560         * include/sys/stropts.h: Likewise.
3561         * include/sys/ttychars.h: Likewise.
3562         * include/sys/vfs.h: Likewise.
3563         * include/wait.h: Likewise.
3564
3565 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3566
3567         * nptl_db/proc_service.h: Move to ...
3568         * sysdeps/nptl/proc_service.h: ... here.
3569         * nptl_db/thread_db.h: Move to ...
3570         * sysdeps/nptl/thread_db.h: ... here.
3571         * nptl/descr.h: Include <thread_db.h>.
3572
3573 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3574
3575         * io/Makefile (tests): Add tst-lockf.
3576         * io/lockf.c (lockf): Use __fcntl and only define for
3577         !__OFF_T_MATCHES_OFF64_T.
3578         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3579         __OFF_T_MATCHES_OFF64_T case.
3580         * io/tst-lockf.c: New file.
3581         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3582         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3583         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3584         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3585         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3587         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3588         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3589         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3590
3591 2019-02-15  Florian Weimer  <fweimer@redhat.com>
3592
3593         [BZ #24211]
3594         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3595         pd->result after the thread descriptor has been freed.
3596
3597 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
3598
3599         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3600         from function return type.
3601
3602         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3603
3604 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         * scripts/test_printers_common.py: Set TERM to a known harmless
3607         value.
3608
3609 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
3610
3611         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3612         (xdr_u_int): Likewise.
3613         (xdr_enum): Likewise.
3614         (xdr_bytes): Reword fall-through comment.
3615         (xdr_string): Likewise.
3616
3617 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3618
3619         [BZ #2421]
3620         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3621         (tests): Add tst-join8 tst-join9.
3622         * nptl/lll_timedwait_tid.c: Remove file.
3623         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3624         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3625         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3626         * nptl/pthread_join_common.c (timedwait_tid): New function.
3627         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3628         is set.
3629         * nptl/tst-join5.c (thread_join): New function.
3630         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3631         check.
3632         * nptl/tst-join8.c: New file.
3633         * nptl/tst-join9.c: Likewise.
3634         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3635         lll_futex_timed_wait_cancel): Add generic macros.
3636         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3637         Remove definitions.
3638         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3639         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3640         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3641         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3642         Remove function.
3643         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3644         Likewise.
3645         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3646         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3647         (lll_futex_timed_wait_cancel): New macro.
3648
3649 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
3650
3651         * benchtests/Makefile: Add malloc-simple benchmark.
3652         * benchtests/bench-malloc-simple.c: New benchmark.
3653
3654 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3655
3656         * benchtests/bench-memmove.c (do_one_test): Remove unused
3657         ORIG_SRC.
3658         (do_test): Adjust.
3659         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3660         ORIG_SRC.
3661         (do_test): Adjust.
3662
3663 2019-01-13  Jim Wilson  <jimw@sifive.com>
3664
3665         [BZ #24040]
3666         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3667         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3668         (func): New.
3669         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
3670         call func directly.
3671         * nptl/Makefile (tests): Add tst-unwind-thread.
3672         (CFLAGS-tst-unwind-thread.c): Define.
3673         * nptl/tst-unwind-thread.c: New file.
3674         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3675         as undefined.
3676
3677 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
3678
3679         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3680         comment wording.
3681         * nis/nis_call.c (__do_niscall3): Likewise.
3682
3683         * catgets/gencat.c (normalize_line): Use braces around empty
3684         'else' body.
3685         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3686         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3687         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3688         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3689         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3690         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3691         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3692         definition.
3693
3694         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3695         execlp returns.
3696
3697 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
3698
3699         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3700         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3701         * benchtests/bench-strchr.c (stupid_strchr): Remove.
3702         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3703         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3704         * benchtests/bench-strlen.c (builtin_strlen): Remove.
3705         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3706         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3707         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3708         * benchtests/bench-strspn.c (stupid_strspn): Remove.
3709         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3710         * benchtests/bench-bcopy.c: Delete file.
3711         * benchtests/bench-bzero.c: Likewise.
3712         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3713         (simple_memccpy): Remove.
3714         (generic_memccpy): Add function.
3715         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3716         * benchtests/bench-memmove.c (simple_bcopy): Remove.
3717         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3718         (generic_mempcpy): Add new function.
3719         * benchtests/bench-memset.c (simple_bzero): Remove.
3720         (builtin_bzero): Remove.
3721         (builtin_memset): Remove.
3722         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3723         (generic_rawmemchr): Add new function.
3724
3725 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3726
3727         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3728
3729 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3730
3731         [BZ #24122]
3732         * elf/Makefile (tests): Add tst-audit13.
3733         (modules-names): Add tst-audit13mod1.
3734         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3735         rule.
3736         * elf/tst-audit13.c: New file.
3737         * elf/tst-audit13mod1.c: Likewise.
3738
3739 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3740
3741         [BZ #24122]
3742         * elf/rtld.c (unload_audit_module): New function.
3743         (report_audit_module_load_error): Likewise.
3744         (load_audit_module): Likewise.  Extracted from dl_main.  Call
3745         _dl_close if the laversion symbol cannot be found.  Use early
3746         returns for error handling.  Add malloc error check.  Check for a
3747         zero return value from la_version.  Remove spurious comment about
3748         static TLS initialization.  Remove useless casts.
3749         (notify_audit_modules_of_loaded_object): New function.  Extracted
3750         from dl_main.
3751         (load_audit_module): Likewise.
3752         (dl_main): Call load_audit_modules.
3753
3754 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
3755
3756         * elf/dl-exception.c (_dl_exception_create_format): Add
3757         fall-through comments.
3758         * elf/ldconfig.c (parse_conf_include): Likewise.
3759         * elf/rtld.c (print_statistics): Likewise.
3760         * locale/programs/charmap.c (parse_charmap): Likewise.
3761         * misc/mntent_r.c (__getmntent_r): Likewise.
3762         * posix/wordexp.c (parse_arith): Likewise.
3763         (parse_backtick): Likewise.
3764         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3765         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3766         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3767
3768 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
3769
3770         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3771         Use float instead of double.
3772
3773 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3774
3775         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3776
3777 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * sysdeps/powerpc/bits/mathinline.h: Remove.
3780
3781 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3782
3783         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3784         * math/bits/math-finite.h: Move to ...
3785         * bits/math-finite.h: ... here.
3786
3787 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3788
3789         * sysdeps/generic/bits/unistd_ext.h: Move to ...
3790         * bits/unistd_ext.h: here.
3791
3792 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
3793
3794         [BZ #21915]
3795         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3796         * nss/tst-nss-files-hosts-long.c: New file.
3797         * nss/tst-nss-files-hosts-long.root: New directory.
3798         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3799         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3800
3801 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3802
3803         * include/bits/unistd_ext.h: Remove file.
3804         * posix/bits/unistd_ext.h: Move to ...
3805         * sysdeps/generic/bits/unistd_ext.h: ... here.
3806
3807 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3808
3809         * include/bits/unistd_ext.h: New file.
3810
3811 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3812
3813         * time/tst-strftime2.c: Use array_length macros instead of magic
3814         numbers.
3815
3816 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3817
3818         [BZ #24161]
3819         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3820         argument.
3821         * nptl/register-atfork.c (__run_fork_handlers): Only perform
3822         locking if the new do_locking argument is true.
3823         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3824         __run_fork_handlers.
3825
3826 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3827
3828         [BZ #6399]
3829         Linux: Add gettid system call wrapper.
3830         * posix/Makefile (headers): Add bits/unistd_ext.h.
3831         * posix/bits/unistd_ext.h: New file.
3832         * posix/unistd.h: Include it.
3833         * manual/process.texi (Process Identification): Document gettid.
3834         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3835         tst-gettid, tst-gettid-kill.
3836         (tst-gettid): Link with $(shared-thread-library).
3837         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3838         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3839         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3840         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3841         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3842         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3843         Add gettid.
3844         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3845         Likewise.
3846         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3847         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3848         Likewise.
3849         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3850         Likewise.
3851         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3852         Likewise.
3853         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3854         Likewise.
3855         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3856         Likewise.
3857         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3858         Likewise.
3859         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3860         Likewise.
3861         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3862         (GLIBC_2.30): Likewise.
3863         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3864         (GLIBC_2.30): Likewise.
3865         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3866         (GLIBC_2.30): Likewise.
3867         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3868         (GLIBC_2.30): Likewise.
3869         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3870         Likewise.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3872         (GLIBC_2.30): Likewise.
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3874         (GLIBC_2.30): Likewise.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3876         (GLIBC_2.30): Likewise.
3877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3878         (GLIBC_2.30): Likewise.
3879         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3880         Likewise.
3881         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3882         Likewise.
3883         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3884         Likewise.
3885         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3886         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3887         Likewise.
3888         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3889         Likewise.
3890         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3891         Likewise.
3892         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3893         Likewise.
3894         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3895
3896 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3897
3898         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3899         compatibility symbols.
3900
3901 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
3902
3903         [BZ #24180]
3904         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3905         Add compiler barriers and comments.
3906
3907 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3908
3909         * include/array_length.h (array_length): Do not use a statement
3910         expression and _Static_assert, so that array_length can be used at
3911         file scope and as a constant expression.
3912
3913 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3914
3915         * support/xdlfcn.h (xdlmopen): Declare.
3916         * support/xdlmopen.c: New file.
3917         * support/Makefile (libsupport-routines): Add xdlmopen.
3918
3919 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
3920
3921         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3922         before return type, without separate inline.
3923         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3924         * elf/dl-tunables.h (tunable_is_name): Likewise.
3925         * malloc/malloc.c (do_set_trim_threshold): Likewise.
3926         (do_set_top_pad): Likewise.
3927         (do_set_mmap_threshold): Likewise.
3928         (do_set_mmaps_max): Likewise.
3929         (do_set_mallopt_check): Likewise.
3930         (do_set_perturb_byte): Likewise.
3931         (do_set_arena_test): Likewise.
3932         (do_set_arena_max): Likewise.
3933         (do_set_tcache_max): Likewise.
3934         (do_set_tcache_count): Likewise.
3935         (do_set_tcache_unsorted_limit): Likewise.
3936         * nis/nis_subr.c (count_dots): Likewise.
3937         * nptl/allocatestack.c (advise_stack_range): Likewise.
3938         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3939         (do_sin): Likewise.
3940         (reduce_sincos): Likewise.
3941         (do_sincos): Likewise.
3942         * sysdeps/unix/sysv/linux/x86/elision-conf.c
3943         (do_set_elision_enable): Likewise.
3944         (TUNABLE_CALLBACK_FNDECL): Likewise.
3945
3946 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3947
3948         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3949         (xdlsym): Use dlerror to detect a NULL symbol.
3950
3951 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3952
3953         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3954         <stap-probe.h>.
3955         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3956
3957 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3958
3959         * libio/tst-bz24153.c (wide): Use wide char format specifier.
3960
3961 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3962
3963         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3964         __wmemcmp and weak alias to wmemcmp.
3965
3966 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3967
3968         [BZ #23403]
3969         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3970         TLS_TCB_AT_TP tls variant.
3971         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3972         Add alignment checks.
3973         * support/Makefile (libsupport-routines): Add xposix_memalign and
3974         xpthread_setstack.
3975         * support/support.h: Add xposix_memalign.
3976         * support/xthread.h: Add xpthread_attr_setstack.
3977         * support/xposix_memalign.c: New File.
3978         * support/xpthread_attr_setstack.c: Likewise.
3979
3980 2019-02-05  Florian Weimer  <fweimer@redhat.com>
3981
3982         [BZ #24164]
3983         arm: Use "nr" constraint for Systemtap probes, to avoid the
3984         compiler using memory operands for constants, due to the "o"
3985         alternative in the default "nor" constraint.
3986         * include/stap-probe.h [USE_STAP_PROBE]: Include
3987         <stap-probe-machine.h>
3988         * sysdeps/generic/stap-probe-machine.h: New file.
3989         * sysdeps/arm/stap-probe-machine.h: Likewise.
3990
3991 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
3992
3993         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3994         with 0, not tcache->entries[tc_idx].
3995
3996         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3997         once.
3998
3999 2019-02-04  Andreas Schwab  <schwab@suse.de>
4000
4001         [BZ #16976]
4002         [BZ #17396]
4003         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
4004         looking up collating elements match against (wide) character
4005         sequence instead of name.  Correct alignment adjustment.
4006         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
4007         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
4008         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
4009         (LOCALES): Add cs_CZ.ISO-8859-2.
4010         * posix/tst-fnmatch4.c: New file.
4011         * posix/tst-fnmatch5.c: New file.
4012         * include/wchar.h (__wmemcmp): Declare.
4013         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
4014         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
4015         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
4016         * sysdeps/s390/wmemcmp.c: Likewise.
4017
4018 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4019
4020         [BZ #24155]
4021         CVE-2019-7309
4022         * NEWS: Updated for CVE-2019-7309.
4023         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
4024         upper 32 bits of RDX register for x32.  Use unsigned Jcc
4025         instructions, instead of signed.
4026         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
4027         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
4028
4029 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4030
4031         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
4032         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
4033         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
4034         Likewise.
4035         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
4036         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
4037         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
4038         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
4039         Likewise.
4040         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
4041         Likewise.
4042         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
4043         Likewise.
4044         (posix_spawn_file_actions_addopen): Likewise.
4045         (posix_spawn_file_actions_addclose): Likewise.
4046         (posix_spawn_file_actions_adddup2): Likewise.
4047         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
4048         qualifiers.
4049         (posix_spawn_file_actions_addfchdir_np): Likewise.
4050
4051 2019-02-04  David Newall  <glibc@davidnewall.com>
4052
4053         elf: Implement --preload option for the dynamic linker.
4054         * elf/rtld.c (preloadarg): New variable.
4055         (handle_preload_list): Pass through “where” argument to
4056         do_preload.
4057         (dl_main): Handle "--preload" and add second call to
4058         handle_preload_list.
4059         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
4060         (tst-rtld-preload-OBJS): Set variable.
4061         (tst-rtld-preload.out): New target.
4062         * elf/tst-rtld-preload.sh: New file.
4063
4064 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
4065
4066         * Makefile (testrun.sh): Exit in case of incorrect argument.
4067
4068 2019-02-04  Florian Weimer  <fweimer@redhat.com>
4069
4070         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
4071         alignment gaps.
4072
4073 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4074
4075         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
4076         implicit overflow checks.
4077
4078 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
4079
4080         * stdlib/isomac.c: Include <unistd.h>.
4081
4082 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4083
4084         * include/time.h (__tzfile_default): Use int, not long int, for
4085         the GMT offsets.
4086         * time/tzfile.c (struct ttinfo): Change type of the offset member
4087         to int.
4088         (__tzfile_read): Remove useless cast.
4089         (__tzfile_default): Adjust prototype.
4090         * time/tzset.c (tz_rule): Change type of the offset member to int.
4091         (parse_offset): Change the type of the sign variable to int.
4092
4093 2019-02-03  Florian Weimer  <fweimer@redhat.com>
4094
4095         [BZ #24153]
4096         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
4097         * libio/getchar.c (getchar): Likewise.
4098         * libio/getchar_u.c (getchar_unlocked): Likewise.
4099         * libio/getwchar.c (getwchar): Likewise.
4100         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
4101         * libio/iogets.c (_IO_gets): Likewise.
4102         * libio/vscanf.c (_IO_vscanf): Likewise.
4103         * libio/vwscanf.c (__vwscanf): Likewise.
4104         * libio/tst-bz24153.c: New file.
4105         * libio/Makefile (tests): Add it.
4106
4107 2019-02-02  Florian Weimer  <fweimer@redhat.com>
4108
4109         [BZ #14829]
4110         * manual/resource.texi (Basic Scheduling Functions): Add
4111         portability note.  Change process to task throughout the section.
4112         Remove incorrect comment about sched_yield as it affects
4113         tasks/threads, not entire processes.
4114         * sysdeps/unix/sysv/linux/bits/posix_opt.h
4115         (_POSIX_PRIORITY_SCHEDULING): Update comment.
4116
4117 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
4118
4119         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
4120         * configure: Regenerated.
4121         * manual/install.texi (Tools for Compilation): Update minimum GCC
4122         version.
4123         * INSTALL: Regenerated.
4124
4125 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4126
4127         * support/support_test_compare_string.c
4128         (support_test_compare_string): Use "string" in error message.
4129         * support/tst-test_compare_string.c (do_test): Adjust.
4130
4131 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4132
4133         * support/support_format_address_family.c
4134         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
4135
4136 2019-02-01  Florian Weimer  <fweimer@redhat.com>
4137
4138         * manual/socket.texi (Internet Address Formats): Clarify the byte
4139         order of struct sockaddr_in, struct sockaddr_in6.  Document
4140         sin6_flowinfo and sin6_scope_id.
4141
4142 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
4143
4144         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
4145         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
4146         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
4147         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
4148         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
4149         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
4150
4151 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4152
4153         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
4154         [!MEMCHR](MEMCHR): Set to __memchr.
4155         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4156         Add memchr_generic and memchr_nosimd.
4157         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4158         (__libc_ifunc_impl_list): Add memchr ifuncs.
4159         * sysdeps/aarch64/multiarch/memchr.c: New file.
4160         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
4161         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
4162
4163 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4164
4165         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4166         Add memset_emag.
4167         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4168         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
4169         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
4170         Add IS_EMAG check for ifunc dispatch.
4171         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
4172         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
4173
4174 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
4175
4176         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
4177         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4178         Add emag.
4179         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
4180         New macro.
4181
4182 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
4183
4184         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
4185
4186 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
4187
4188         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
4189         syscall-template file.
4190
4191 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
4192             Torvald Riegel  <triegel@redhat.com>
4193             Rik Prohaska  <prohaska7@gmail.com>
4194
4195         [BZ# 23844]
4196         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
4197         tst-rwlock-trywrlock-stall.
4198         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
4199         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
4200         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
4201         Set __wrphase_fute to 1 only if we started the write phase.
4202         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
4203         * nptl/tst-rwlock-trywrlock-stall.c: New file.
4204         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
4205         * support/xpthread_rwlock_destroy.c: New file.
4206         * support/xthread.h: Declare xpthread_rwlock_destroy.
4207
4208 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
4209
4210         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4211         version to 4.0.2.
4212
4213 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
4214
4215         [BZ #24051]
4216         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
4217         * libio/fileops.c (_IO_new_file_underflow): Likewise
4218         * libio/wfileops.c (_IO_wfile_underflow): Likewise
4219         * libio/putchar.c (putchar): Likewise.
4220         * libio/putchar_u.c (putchar_unlocked): Likewise.
4221         * libio/putwchar.c (putchar): Likewise.
4222         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
4223         * libio/tst-bz24051.c: New test.
4224         * libio/Makefile (tests): Add tst-bz24051
4225
4226 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
4227
4228         CVE-2019-9169
4229         regex: fix read overrun [BZ #24114]
4230         Problem found by AddressSanitizer, reported by Hongxu Chen in:
4231         https://debbugs.gnu.org/34140
4232         * posix/regexec.c (proceed_next_node):
4233         Do not read past end of input buffer.
4234
4235 2019-01-31  Florian Weimer  <fweimer@redhat.com>
4236
4237         [BZ #24059]
4238         * nss/nss_files/files-alias.c (get_next_alias): Handle
4239         continuation line without newline at the end.
4240         * nss/tst-nss-files-alias-truncated.c: New file.
4241         * nss/Makefile [$(build-shared)] (tests): Add
4242         tst-nss-files-alias-truncated.
4243         (tst-nss-files-alias-truncated): Link with libnss_files.so.
4244         * support/namespace.h (struct support_chroot_configuration): Add
4245         aliases member.
4246         (struct support_chroot): Add path_aliases member.
4247         * support/support_chroot.c (support_chroot_create): Handle
4248         aliases.
4249         (support_chroot_free): Free path_aliases.
4250
4251 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4252
4253         * version.h (RELEASE): Set to "development".
4254         (VERSION): Set to "2.29.9000".
4255         * NEWS: Add section for 2.30.
4256
4257         * version.h (RELEASE): Set to "stable".
4258         (VERSION): Set to "2.29".
4259         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
4260
4261         * NEWS: Add the list of bugs fixed in 2.29.
4262         * manual/contrib.texi: Update contributors list with some more
4263         names.
4264         * manual/install.texi: Update latest versions of packages
4265         tested.
4266         * INSTALL: Regenerated.
4267
4268 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4269
4270         * po/be.po: Update translations.
4271         * po/bg.po: Likewise.
4272         * po/ca.po: Likewise.
4273         * po/cs.po: Likewise.
4274         * po/da.po: Likewise.
4275         * po/de.po: Likewise.
4276         * po/el.po: Likewise.
4277         * po/eo.po: Likewise.
4278         * po/es.po: Likewise.
4279         * po/fi.po: Likewise.
4280         * po/fr.po: Likewise.
4281         * po/gl.po: Likewise.
4282         * po/hr.po: Likewise.
4283         * po/hu.po: Likewise.
4284         * po/ia.po: Likewise.
4285         * po/id.po: Likewise.
4286         * po/it.po: Likewise.
4287         * po/ja.po: Likewise.
4288         * po/ko.po: Likewise.
4289         * po/lt.po: Likewise.
4290         * po/nb.po: Likewise.
4291         * po/nl.po: Likewise.
4292         * po/pl.po: Likewise.
4293         * po/pt_BR.po: Likewise.
4294         * po/ru.po: Likewise.
4295         * po/rw.po: Likewise.
4296         * po/sk.po: Likewise.
4297         * po/sl.po: Likewise.
4298         * po/sv.po: Likewise.
4299         * po/tr.po: Likewise.
4300         * po/uk.po: Likewise.
4301         * po/vi.po: Likewise.
4302         * po/zh_CN.po: Likewise.
4303         * po/zh_TW.po: Likewise.
4304
4305 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
4306
4307         [BZ #24130]
4308         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4309         of $f3 register on $y_is_neg path.
4310
4311 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4312
4313         [BZ #24110]
4314         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4315         sigaltstack.ss_flags.
4316
4317 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4318
4319         [BZ #23758]
4320         * manual/time.texi (strftime): Document "%Ey".
4321         * time/strftime_l.c (__strftime_internal): Set the default width
4322         padding with zero of "%Ey" to 2.
4323
4324         [BZ #24096]
4325         * manual/time.texi (strftime): Document "%EC" and "%EY".
4326         * time/Makefile (tests): Add tst-strftime2.
4327         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4328         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4329         override padding for "%Ey".
4330         If an optional flag ('_' or '-') is specified to "%EY", interpret the
4331         "%Ey" in the subformat as if decorated with that flag.
4332         * time/tst-strftime2.c: New file.
4333
4334 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4335
4336         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4337         are not defined.
4338
4339         [BZ #24122]
4340         * elf/Makefile (tests): Add tst-audit13.
4341         (modules-names): Add tst-audit13mod1.
4342         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4343         rule.
4344         * elf/rtld.c (dl_main): Handle invalid audit module version.
4345         * elf/tst-audit13.c: New file.
4346         * elf/tst-audit13mod1.c: Likewise.
4347
4348 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4349
4350         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4351         returned by __hurd_at_flags.
4352         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4353         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4354         directly instead of __hurd_file_name_lookup.
4355
4356 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
4357
4358         * scripts/build-many-glibcs.py (Context.checkout): Default
4359         binutils version to 2.32 branch.
4360
4361 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4362
4363         [BZ #20018]
4364         CVE-2016-10739
4365         resolv: Reject trailing characters in host names
4366         * include/arpa/inet.h (__inet_aton_exact): Declare.
4367         (inet_aton): Remove hidden prototype.  No longer used internally.
4368         * nscd/gai.c (__inet_aton): Do not define.
4369         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4370         * nss/digits_dots.c (__inet_aton): Likewise.
4371         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4372         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4373         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4374         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4375         (tst-resolv-trailing): Likewise.
4376         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4377         libc.
4378         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4379         Make static.  Add endp parameter.
4380         (__inet_aton_exact): New function.
4381         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4382         (__inet_addr): Call inet_aton_end.
4383         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4384         not just IPv6.  Call __inet_aton_exact.
4385         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4386         (tests): Make const.  Add additional test cases with trailing
4387         characters.
4388         (do_test): Use array_length.
4389         * resolv/tst-inet_aton_exact.c: New file.
4390         * resolv/tst-resolv-trailing.c: Likewise.
4391         * resolv/tst-resolv-nondecimal.c: Likewise.
4392         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4393
4394 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4395
4396         [BZ# 24097]
4397         CVE-2019-6488
4398         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4399         Clear the upper 32 bits of RSI register.
4400         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4401         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4402         and tst-size_t-wcsnlen.
4403         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4404         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4405
4406 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4407
4408         [BZ# 24097]
4409         CVE-2019-6488
4410         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4411         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4412         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4413         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4414         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4415
4416 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4417
4418         [BZ# 24097]
4419         CVE-2019-6488
4420         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4421         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4422         * sysdeps/x86_64/strcmp.S: Likewise.
4423         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4424         tst-size_t-strncmp and tst-size_t-wcsncmp.
4425         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4426         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4427         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4428
4429 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4430
4431         [BZ# 24097]
4432         CVE-2019-6488
4433         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4434         RDX_LP for length.  Clear the upper 32 bits of RDX register.
4435         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4436         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4437         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4438         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4439
4440 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4441
4442         [BZ# 24097]
4443         CVE-2019-6488
4444         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4445         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4446         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4447         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4448
4449 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4450
4451         [BZ# 24097]
4452         CVE-2019-6488
4453         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4454         length.  Clear the upper 32 bits of RDX register.
4455         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4456         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4457         Likewise.
4458         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4459         Likewise.
4460         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4461         tst-size_t-wmemchr.
4462         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4463
4464 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4465
4466         [BZ# 24097]
4467         CVE-2019-6488
4468         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4469         length.  Clear the upper 32 bits of RDX register.
4470         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4471         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4472         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4473         tst-size_t-wmemcmp.
4474         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4475         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4476
4477 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         [BZ# 24097]
4480         CVE-2019-6488
4481         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
4482         upper 32 bits of RDX register.
4483         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4484         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4485         tst-size_t-wmemchr.
4486         * sysdeps/x86_64/x32/test-size_t.h: New file.
4487         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4488         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4489
4490 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4491
4492         [BZ #24112]
4493         resolv: Do not send queries for non-host-names in nss_dns.
4494         * resolv/nss_dns/dns-host.c (check_name): New function.
4495         (_nss_dns_gethostbyname2_r): Use it.
4496         (_nss_dns_gethostbyname_r): Likewise.
4497         (_nss_dns_gethostbyname4_r): Likewise.
4498
4499 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4500
4501         * resolv/inet_addr.c: Reformat to GNU style.
4502         (__inet_addr, __inet_aton): Update comment.
4503
4504 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4505
4506         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4507         ("malloc: Use current (C11-style) atomics for fastbin access").
4508         This commit introduces a substantial performance regression on
4509         POWER and Aarch64.
4510         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4511         (REMOVE_FB): Define.
4512         (_int_malloc): Use it and reindent.
4513         (_int_free): Use CAS loop with
4514         catomic_compare_and_exchange_val_rel.
4515         (malloc_consolidate): Use atomic_exchange_acq.
4516
4517
4518 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4519
4520         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
4521         -Wl,-z,now.
4522         (LDFLAGS-tst-minsigstksz-2): Likewise.
4523         (LDFLAGS-tst-minsigstksz-3): Likewise.
4524         (LDFLAGS-tst-minsigstksz-3a): Likewise.
4525         (LDFLAGS-tst-minsigstksz-4): Likewise.
4526
4527 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4528
4529         * manual/time.texi (strftime): Fix the wording to "alternative" rather
4530         than "alternate".
4531
4532 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
4533
4534         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4535
4536 2019-01-16  Zack Weinberg  <zackw@panix.com>
4537
4538         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4539         (xget_sigstack_location): New test support functions.
4540         * support/xsigstack.c: New file, implementing them.
4541         * support/tst-xsigstack.c: New test for them.
4542         * support/Makefile: Update.
4543
4544         * signal/tst-minsigstksz-1.c
4545         * signal/tst-minsigstksz-2.c
4546         * signal/tst-minsigstksz-3.c
4547         * signal/tst-minsigstksz-3a.c
4548         * signal/tst-minsigstksz-4.c: New tests.
4549         * signal/Makefile: Run them.
4550
4551 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4552
4553         * po/libc.pot: Regenerate.
4554
4555 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4556
4557         * math/libm-test-fma.inc (fma_test_data): Set
4558         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4559
4560 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4561
4562         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4563         (do_test): Changed __vector __int128_t to __vector unsigned int.
4564
4565 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4566
4567         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4568         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4569         stpcpy-avx2 and stpncpy-avx2.
4570         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4571         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4572         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4573         and __stpncpy_avx2.
4574         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4575         ifunc-strcpy.h}: rename header for a more generic name.
4576         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4577         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4578         AVX unaligned load is fast and vzeroupper is preferred.
4579         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4580         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4581         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4582         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4583         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4584         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4585
4586 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
4587
4588         * argp/argp-help.c: Fix typo in comment.
4589         * misc/sys/cdefs.h: Likewise.
4590         * posix/regexec.c (sift_states_iter_mb): Likewise.
4591         * socket/sockatmark.c: Likewise.
4592         * socket/sys/socket.h: Likewise.
4593         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4594         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4595         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4596         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4597         * sysdeps/unix/sockatmark.c: Likewise.
4598         * time/strptime_l.c: Likewise.
4599
4600 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4601
4602         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4603         missing space after the cast of "_NL_CURRENT".
4604
4605 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4606
4607         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4608         ifdef to fix read of VSCR.
4609         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4610         tst-ucontext-ppc64-vscr.c to test list.
4611         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4612
4613 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
4614
4615         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4616         fall-through.
4617
4618 2019-01-09  Jim Wilson  <jimw@sifive.com>
4619
4620         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4621
4622 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
4623
4624         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4625         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4626         __memcpy_falkor for ares.
4627         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4628         Add new define.
4629         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4630         Add ares cpu.
4631
4632 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
4633
4634         [BZ #24066]
4635         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4636         4_FP_W_TYPEs are used for IEEE quad precision.
4637         * soft-fp/extendhftf2.c: Likewise.
4638         * soft-fp/extendsftf2.c: Likewise.
4639         * soft-fp/extendxftf2.c: Likewise.
4640         * soft-fp/trunctfdf2.c: Likewise.
4641         * soft-fp/trunctfhf2.c: Likewise.
4642         * soft-fp/trunctfsf2.c: Likewise.
4643         * soft-fp/trunctfxf2.c: Likewise.
4644         * sysdeps/alpha/ots_cvttx.c: Likewise.
4645         * sysdeps/alpha/ots_cvtxt.c: Likewise.
4646         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4647         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4648         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4649         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4650         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4651         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4652         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4653         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4654         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4655         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4656         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4657         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4658         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4659         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4660         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4661         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4662
4663 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4664
4665         [BZ #24024]
4666         * Makeconfig: Build libm with -fno-math-errno but build the remaining
4667         code with -fmath-errno.
4668         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4669         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4670         * string/test-strerror-errno.c: New file.
4671
4672 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4673
4674         [BZ #24046]
4675         * localedata/locales/en_US (date_fmt): Add, set to
4676         "%a %d %b %Y %r %Z".
4677
4678 2019-01-07  Florian Weimer  <fweimer@redhat.com>
4679
4680         [BZ #24063]
4681         * manual/arith.texi (Math Error Reporting): Use @code{errno}
4682         instead of @var{errno}.
4683         (Parsing of Integers): Likewise.
4684         (Parsing of Floats): Likewise.
4685         * manual/filesys.texi (Working with Directory Trees): Likewise.
4686         (Temporary Files): Likewise.
4687         * manual/job.texi (Terminal Access Functions): Likewise.
4688         * manual/llio.texi (Synchronizing I/O): Likewise.
4689         * manual/math.texi (SVID Random): Likewise.
4690         * manual/message.texi (The catgets Functions): Likewise.
4691         (Translation with gettext): Likewise.
4692         (Locating gettext catalog): Likewise.
4693         (Charset conversion in gettext): Likewise.
4694         * manual/nss.texi (NSS Module Function Internals): Likewise.
4695         * manual/search.texi (Hash Search Function): Likewise.
4696         * manual/setjmp.texi (System V contexts): Likewise.
4697         * manual/time.texi (Sleeping): Likewise.
4698         * manual/users.texi (Lookup User): Likewise.
4699         (Lookup Group): Likewise.
4700
4701 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4702
4703         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4704         fix typo.
4705
4706 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
4707
4708         [BZ #19444]
4709         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4710         __builtin_unreachable for default case in switch.
4711         (__ieee754_yn): Likewise.
4712         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4713         (__ieee754_ynl): Likewise.
4714         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4715         (__ieee754_ynl): Likewise.
4716         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4717         (__ieee754_ynl): Likewise.
4718
4719 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4720
4721         * manual/maint.texi: Use @{ and @}.
4722
4723 2019-01-04  Florian Weimer  <fweimer@redhat.com>
4724
4725         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4726         function.
4727         (do_in_chroot_1): Call it.
4728         (run_chroot_tests):
4729         Improve error reporting in case it is not possible to create a
4730         collision for the PTY name required by the test.
4731
4732 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4733
4734         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4735         lll_wait_tid with timeout.
4736         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4737         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4738         futex_reltimed_wait_cancelable for cancelabla mode.
4739         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4740         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4741         macros.
4742         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4743         * sysdeps/posix/waitid.c (__sigwait): Likewise.
4744         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4745         SYSCALL_CANCEL_NCS): New macro.
4746         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4747         (lll_timedwait_tid): Remove macro.
4748         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4749         Likewise.
4750         (lll_timedwait_tid): Likewise.
4751         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4752         Likewise.
4753         (lll_timedwait_tid): Likewise.
4754         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4755         Likewise.
4756         (lll_timedwait_tid): Likewise.
4757         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4758         Use INTERNAL_SYSCALL_CANCEL.
4759         * sysdeps/unix/sysv/linux/futex-internal.h
4760         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4761         instead of __pthread_{enable,disable}_asynccancel.
4762         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4763         (lll_futex_wait_cancel): New macro.
4764
4765         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4766         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4767
4768         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4769         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4770
4771         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4772         in backtrace analysis.
4773         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4774         side-effects.
4775         (tf_send): Likewise.
4776
4777         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4778         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4779         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4780         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4781         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4782         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4783         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4784         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4785         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4786         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4787         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4788         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4789         Likewise.
4790         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4791         tst-cancel-wrappers.sh.
4792         (generated): Remove tst-cancel-wrappers.out.
4793         (tst-cancel-wrappers.out): Remove rule.
4794         * nptl/tst-cancel-wrappers.sh: Remove file.
4795
4796 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4797
4798         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4799         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4800         Update.
4801
4802 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4803
4804         [BZ #23640]
4805         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4806         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4807         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4808         close-on-exec reset for adddup2 file action.
4809         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4810
4811 2019-01-03  Zack Weinberg  <zackw@panix.com>
4812
4813         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4814         parameter.  Only use deprecated scanf when __USE_GNU is defined
4815         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4816         than 201103L, whichever is relevant for the language being compiled.
4817
4818         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4819         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4820         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4821         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4822         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4823
4824         * libio/iovsscanf.c
4825         * libio/fwscanf.c
4826         * libio/iovswscanf.c
4827         * libio/swscanf.c
4828         * libio/vscanf.c
4829         * libio/vwscanf.c
4830         * libio/wscanf.c
4831         * stdio-common/fscanf.c
4832         * stdio-common/scanf.c
4833         * stdio-common/vfscanf.c
4834         * stdio-common/vfwscanf.c
4835         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4836         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4837         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4838         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4839         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4840         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4841         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4842         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4843         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4844         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4845         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4846         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4847         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4848         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4849         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4850
4851         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
4852         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4853         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4854         not sscanf.
4855         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4856         with a preprocessor macro.
4857
4858         * stdio-common/bug21.c, stdio-common/scanf14.c:
4859         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4860         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4861         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
4862         to xscanf, xfscanf, xsscanf.
4863
4864         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4865         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4866         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4867         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
4868         xfscanf, xsscanf.
4869         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4870         override feature selection macros or provide definitions of u_char etc.
4871         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4872         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4873         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
4874         with -std=gnu89.
4875
4876 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4877
4878         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4879         bits/termios-misc.h.
4880         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4881         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4882         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4883         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4884         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4885         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4886
4887         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4888         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4889         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4890         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4891         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4892         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4893         termios-misc.h.
4894         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4895         (sysdep_headers): Add termios-misc.h.
4896
4897         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4898         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4899         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4900
4901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4902         termios-tcflow.h.
4903         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4904         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4905         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4906         TCSAFLUSH): Move to termios-tcflow.h.
4907         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4908         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4909         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4910         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4911
4912         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4913         termios-c_lflag.h.
4914         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4915         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4916         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4917         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4918         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4919         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4920         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4921         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4922         Likewise.
4923         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4924         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4925         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4926         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4927
4928         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4929         termios-c_cflag.h.
4930         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4931         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4932         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4933         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4934         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4935         termios-c_cflag.h.
4936         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4937         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4938         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4939         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4940
4941         [BZ #23783]
4942         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4943         termios-baud.h.
4944         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4945         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4946         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4947         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4948         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4949         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4950         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4951         __MAX_BAUD): Move to termios-baud.h.
4952         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4953         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4954         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4955         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4956         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4957
4958         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4959         termios-c_oflag.h.
4960         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4961         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4962         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4963         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4964         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4965         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
4966         termios-c_oflag.h.
4967         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4968         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4969         FFR1): Likewise.
4970         [USE_MISC] (XTABS): Likewise.
4971         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4972         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4973         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4974         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4975
4976         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4977         termios-c_iflag.h.
4978         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4979         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4980         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4981         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4982         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4983         IUTF8): Move to termios-c_iflag.h.
4984         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4985         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4986         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4987         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4988
4989         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4990         termios-cc.h.
4991         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4992         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4993         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4994         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4995         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4996         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4997         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4998         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4999         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5000         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
5001         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5002         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
5003
5004         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
5005         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
5006         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
5007         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
5008         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5009         termios-struct.h.
5010         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
5011         termios-struct.h.
5012         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
5013         Likewise.
5014         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
5015         Likewise.
5016         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
5017         Likewise.
5018         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
5019         Likewise.
5020         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
5021         _HAVE_C_OSPEED): Define.
5022         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
5023         _HAVE_C_OSPEED): Likewise.
5024         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
5025         _HAVE_C_OSPEED): Likewise.
5026         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
5027         (cfsetospeed): Check for define value instead of existence.
5028         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
5029         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5030         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
5031         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
5032         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
5033
5034         [BZ #17783]
5035         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
5036         Define.
5037         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
5038         (TIOCSER_TEMT): Likewise.
5039         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
5040         (TEOCSER_TEMT): Likewise.
5041
5042 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
5043
5044         [BZ #24011]
5045         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
5046
5047 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5048
5049         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5050
5051 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5052
5053         * sysdeps/htl/pt-barrierattr-setpshared.c
5054         (pthread_barrierattr_setpshared): Add stub warning.
5055         * sysdeps/htl/pt-condattr-setpshared.c
5056         (pthread_condattr_setpshared): Likewise.
5057         * sysdeps/htl/pt-mutexattr-setpshared.c
5058         (pthread_mutexattr_setpshared): Likewise.
5059         * sysdeps/htl/pt-rwlockattr-setpshared.c
5060         (pthread_rwlockattr_setpshared): Likewise.
5061         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
5062         (pthread_mutexattr_setpshared): Likewise.
5063
5064 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
5065
5066         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
5067         constants to match with Linux 4.20.
5068
5069         * sysdeps/mips/mips32/libm-test-ulps: Update.
5070         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5071
5072 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
5073
5074         [BZ #24034]
5075         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
5076         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
5077         than __typeof (...) for the a_ptr variable.
5078
5079 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5080
5081         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
5082         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
5083         * libio/Makefile (tests): Add tst-sprintf-ub and
5084         tst-sprintf-chk-ub.
5085         (CFLAGS-tst-sprintf-ub.c): New variable.
5086         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
5087         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
5088         destination buffer and check for overflows in fortified mode.
5089         * libio/libioP.h (PRINTF_CHK): New macro.
5090         * libio/tst-sprintf-chk-ub.c: New file.
5091         * libio/tst-sprintf-ub.c: Likewise.
5092
5093 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5094
5095         [BZ #24018]
5096         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
5097         failure.
5098
5099 2019-01-02  Florian Weimer  <fweimer@redhat.com>
5100
5101         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
5102
5103 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
5104
5105         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
5106         macro.
5107
5108         * sysdeps/unix/sysv/linux/netpacket/packet.h
5109         (PACKET_IGNORE_OUTGOING): New macro.
5110
5111         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
5112         macro.
5113
5114         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5115         version to 4.20.
5116         (riscv_flush_icache): New syscall.
5117
5118         * manual/texinfo.tex: Update to version 2018-12-28.17 with
5119         trailing whitespace removed.
5120         * scripts/config.guess: Update to version 2019-01-01.
5121         * scripts/config.sub: Update to version 2019-01-01.
5122         * scripts/move-if-change: Update from gnulib.
5123
5124         * NEWS: Update copyright dates.
5125         * catgets/gencat.c (print_version): Likewise.
5126         * csu/version.c (banner): Likewise.
5127         * debug/catchsegv.sh: Likewise.
5128         * debug/pcprofiledump.c (print_version): Likewise.
5129         * debug/xtrace.sh (do_version): Likewise.
5130         * elf/ldconfig.c (print_version): Likewise.
5131         * elf/ldd.bash.in: Likewise.
5132         * elf/pldd.c (print_version): Likewise.
5133         * elf/sotruss.sh: Likewise.
5134         * elf/sprof.c (print_version): Likewise.
5135         * iconv/iconv_prog.c (print_version): Likewise.
5136         * iconv/iconvconfig.c (print_version): Likewise.
5137         * locale/programs/locale.c (print_version): Likewise.
5138         * locale/programs/localedef.c (print_version): Likewise.
5139         * login/programs/pt_chown.c (print_version): Likewise.
5140         * malloc/memusage.sh (do_version): Likewise.
5141         * malloc/memusagestat.c (print_version): Likewise.
5142         * malloc/mtrace.pl: Likewise.
5143         * manual/libc.texinfo: Likewise.
5144         * nptl/version.c (banner): Likewise.
5145         * nscd/nscd.c (print_version): Likewise.
5146         * nss/getent.c (print_version): Likewise.
5147         * nss/makedb.c (print_version): Likewise.
5148         * posix/getconf.c (main): Likewise.
5149         * scripts/test-installation.pl: Likewise.
5150         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5151
5152         * All files with FSF copyright notices: Update copyright dates
5153         using scripts/update-copyrights.
5154         * locale/programs/charmap-kw.h: Regenerated.
5155         * locale/programs/locfile-kw.h: Likewise.
5156
5157 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * timezone/zdump.c: Update from tzcode 2018i.
5160         * timezone/zic.c: Likewise.
5161
5162 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5163
5164         regex: improve Gnulib port to AIX
5165         From the glibc point of view, this removes duplicate macro
5166         definitions and is obviously safe.
5167         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
5168         * posix/regex_internal.h:
5169         (__attribute__, __attribute_warn_unused_result__):
5170         Remove; already defined elsewhere.
5171
5172 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
5173
5174         [BZ #24027]
5175         * malloc/malloc.c (_int_realloc): Always call memcpy for the
5176         copying operation.  (ncopies had the wrong type, resulting in an
5177         integer wraparound and too few elements being copied.)
5178
5179 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
5180
5181         [BZ #24022]
5182         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
5183         <asm/syscalls.h> exists with __has_include__ before including it.
5184
5185 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
5186
5187         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5188         version to 4.20.
5189
5190 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
5191
5192         * hurd/lookup-retry: Include <unistd.h>.
5193         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
5194         Release it on return.  Handle "pid" magical lookup retry.
5195
5196 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
5197
5198         [BZ #10496]
5199         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
5200         (t_fmt_ampm): Likewise.
5201         * localedata/locales/aa_ER (t_fmt): Likewise.
5202         (t_fmt_ampm): Likewise.
5203         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
5204         (t_fmt_ampm): Likewise.
5205         * localedata/locales/aa_ET (t_fmt): Likewise.
5206         (t_fmt_ampm): Likewise.
5207         * localedata/locales/am_ET (t_fmt): Likewise.
5208         (t_fmt_ampm): Likewise.
5209         * localedata/locales/byn_ER (t_fmt): Likewise.
5210         (t_fmt_ampm): Likewise.
5211         * localedata/locales/om_ET (t_fmt): Likewise.
5212         (t_fmt_ampm): Likewise.
5213         * localedata/locales/sid_ET (t_fmt): Likewise.
5214         (t_fmt_ampm): Likewise.
5215         * localedata/locales/so_DJ (t_fmt): Likewise.
5216         (t_fmt_ampm): Likewise.
5217         * localedata/locales/so_ET (t_fmt): Likewise.
5218         (t_fmt_ampm): Likewise.
5219         * localedata/locales/so_SO (t_fmt): Likewise.
5220         (t_fmt_ampm): Likewise.
5221         * localedata/locales/ti_ER (t_fmt): Likewise.
5222         (t_fmt_ampm): Likewise.
5223         * localedata/locales/ti_ET (t_fmt): Likewise.
5224         (t_fmt_ampm): Likewise.
5225         * localedata/locales/tig_ER (t_fmt): Likewise.
5226         (t_fmt_ampm): Likewise.
5227         * localedata/locales/wal_ET (t_fmt): Likewise.
5228         (t_fmt_ampm): Likewise.
5229
5230         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
5231         * localedata/locales/ar_IN (t_fmt): Likewise.
5232         * localedata/locales/bhb_IN (t_fmt): Likewise.
5233         * localedata/locales/bho_IN (t_fmt): Likewise.
5234         * localedata/locales/bi_VU (t_fmt): Likewise.
5235         * localedata/locales/bn_BD (t_fmt): Likewise.
5236         * localedata/locales/bn_IN (t_fmt): Likewise.
5237         * localedata/locales/brx_IN (t_fmt): Likewise.
5238         * localedata/locales/doi_IN (t_fmt): Likewise.
5239         * localedata/locales/en_HK (t_fmt): Likewise.
5240         (t_fmt_ampm): Likewise.
5241         * localedata/locales/en_IN (t_fmt): Likewise.
5242         * localedata/locales/en_PH (t_fmt): Likewise.
5243         * localedata/locales/gu_IN (t_fmt): Likewise.
5244         * localedata/locales/hi_IN (t_fmt): Likewise.
5245         * localedata/locales/hif_FJ (t_fmt): Likewise.
5246         * localedata/locales/hne_IN (t_fmt): Likewise.
5247         * localedata/locales/kn_IN (t_fmt): Likewise.
5248         * localedata/locales/kok_IN (t_fmt): Likewise.
5249         * localedata/locales/ks_IN (t_fmt): Likewise.
5250         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
5251         * localedata/locales/mag_IN (t_fmt): Likewise.
5252         * localedata/locales/mai_IN (t_fmt): Likewise.
5253         * localedata/locales/mjw_IN (t_fmt): Likewise.
5254         * localedata/locales/ml_IN (t_fmt): Likewise.
5255         * localedata/locales/mni_IN (t_fmt): Likewise.
5256         * localedata/locales/mr_IN (t_fmt): Likewise.
5257         * localedata/locales/ms_MY (t_fmt): Likewise.
5258         * localedata/locales/pa_IN (t_fmt): Likewise.
5259         * localedata/locales/raj_IN (t_fmt): Likewise.
5260         * localedata/locales/sa_IN (t_fmt): Likewise.
5261         * localedata/locales/sat_IN (t_fmt): Likewise.
5262         * localedata/locales/sd_IN (t_fmt): Likewise.
5263         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
5264         * localedata/locales/tcy_IN (t_fmt): Likewise.
5265         * localedata/locales/the_NP (t_fmt): Likewise.
5266         * localedata/locales/to_TO (t_fmt): Likewise.
5267         * localedata/locales/ur_IN (t_fmt): Likewise.
5268
5269         * localedata/locales/hif_FJ (d_t_fmt): Set to
5270         "%A %d %b %Y %I:%M:%S %p".
5271         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
5272
5273         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
5274         * localedata/locales/ar_BH (t_fmt): Likewise.
5275         * localedata/locales/ar_DZ (t_fmt): Likewise.
5276         * localedata/locales/ar_EG (t_fmt): Likewise.
5277         * localedata/locales/ar_IQ (t_fmt): Likewise.
5278         * localedata/locales/ar_JO (t_fmt): Likewise.
5279         * localedata/locales/ar_KW (t_fmt): Likewise.
5280         * localedata/locales/ar_LB (t_fmt): Likewise.
5281         * localedata/locales/ar_LY (t_fmt): Likewise.
5282         * localedata/locales/ar_OM (t_fmt): Likewise.
5283         * localedata/locales/ar_QA (t_fmt): Likewise.
5284         * localedata/locales/ar_SD (t_fmt): Likewise.
5285         * localedata/locales/ar_SS (t_fmt): Likewise.
5286         * localedata/locales/ar_SY (t_fmt): Likewise.
5287         * localedata/locales/ar_TN (t_fmt): Likewise.
5288         * localedata/locales/ar_YE (t_fmt): Likewise.
5289
5290         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
5291         (t_fmt_ampm): Likewise.
5292         * localedata/locales/gez_ET (t_fmt): Likewise.
5293         (t_fmt_ampm): Likewise.
5294
5295         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
5296         (t_fmt_ampm): Likewise.
5297         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
5298
5299         * localedata/locales/zh_HK (t_fmt):
5300         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5301
5302         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5303         because this locale does not use the 12-hour clock.
5304         (t_fmt): Set to "%Z %H:%M:%S".
5305         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5306
5307         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5308         because this locale does not use the 12-hour clock.
5309         (t_fmt): Set to "%H:%M:%S %Z".
5310         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5311
5312         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5313         because this locale does not use the 12-hour clock.
5314         (t_fmt): Set to "%T".
5315         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5316         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5317
5318         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5319         because this locale does not use the 12-hour clock.
5320         (t_fmt): Set to "%H:%M:%S %Z".
5321         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5322
5323         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5324         because this locale does not use the 12-hour clock.
5325         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5326         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5327
5328 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
5329
5330         [BZ #10496]
5331         [BZ #23724]
5332         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5333         (t_fmt_ampm): Likewise.
5334         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5335         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5336         (d_fmt): Set to "%-d.%-m.%y".
5337
5338 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5339
5340         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5341         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5342         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5343         Likewise.
5344         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5345         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5346         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5347         function.
5348         * support/blob_repeat.c (check_mul_overflow_size_t,
5349         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5350
5351 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
5352
5353         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5354
5355 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         regex: simplify Gnulib port
5358         This simplifies the code, by removing stuff intended for porting
5359         to Gnulib but no longer needed there.
5360         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5361         uses of libc_hidden_def, weak_alias.
5362         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5363         _Restrict_ except for public-facing headers.
5364         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5365         Remove; already defined elsewhere.
5366         * posix/regex.c, posix/regex_internal.h:
5367         Use __GNUC_PREREQ instead of rolling our own.
5368         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5369
5370 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
5371
5372         * benchtests/bench-strlen.c (generic_strlen): New function.
5373         (memchr_strlen): New function.
5374
5375 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5376
5377         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5378         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5379         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5380
5381 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5382
5383         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5384
5385 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5386
5387         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5388         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5389         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
5390         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5391         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5392         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5393         <sysdeps/ieee754/flt-32/s_sincosf.c>.
5394
5395 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5396
5397         [BZ #24023]
5398         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5399         PLT reference in libc.so.
5400         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5401         _Q_lltoq and _Q_qtod PLT references in libc.so.
5402
5403 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
5404
5405         * benchtests/bench-memchr.c: Cleanup defines.
5406         * benchtests/bench-memcmp.c: Likewise.
5407         * benchtests/bench-memset.c: Likewise.
5408         * benchtests/bench-memset-large.c: Likewise.
5409         * benchtests/bench-memset-walk.c: Likewise.
5410         * benchtests/bench-stpcpy.c: Likewise.
5411         * benchtests/bench-stpncpy.c: Likewise.
5412         * benchtests/bench-strcat.c: Likewise.
5413         * benchtests/bench-strchr.c: Likewise.
5414         * benchtests/bench-strcmp.c: Likewise.
5415         * benchtests/bench-strcpy.c: Likewise.
5416         * benchtests/bench-strcspn.c: Likewise.
5417         * benchtests/bench-string.h: Likewise.
5418         * benchtests/bench-strlen.c: Likewise.
5419         * benchtests/bench-strncat.c: Likewise.
5420         * benchtests/bench-strncmp.c: Likewise.
5421         * benchtests/bench-strncpy.c: Likewise.
5422         * benchtests/bench-strnlen.c: Likewise.
5423         * benchtests/bench-strpbrk.c: Likewise.
5424         * benchtests/bench-strrchr.c: Likewise.
5425         * benchtests/bench-strspn.c: Likewise.
5426
5427 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5428
5429         * stdlib/longlong.h: Update from GCC.
5430
5431         [BZ #23993]
5432         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5433         * configure: Regenerated.
5434         * manual/install.texi (Tools for Compilation): Update minimum GCC
5435         version.
5436         * INSTALL: Regenerated.
5437
5438 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
5439
5440         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5441
5442 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
5443
5444         * malloc/malloc.c (mremap_chunk): Additional checks.
5445
5446 2018-12-21  Mao Han  <han_mao@c-sky.com>
5447
5448         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5449         * scripts/build-many-glibcs.py: Add C-SKY targets.
5450         * sysdeps/csky/Implies: New file.
5451         * sysdeps/csky/Makefile: Likewise.
5452         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5453         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5454         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5455         * sysdeps/csky/abiv2/memcmp.S: Likewise.
5456         * sysdeps/csky/abiv2/memcpy.S: Likewise.
5457         * sysdeps/csky/abiv2/memmove.S: Likewise.
5458         * sysdeps/csky/abiv2/memset.S: Likewise.
5459         * sysdeps/csky/abiv2/setjmp.S: Likewise.
5460         * sysdeps/csky/abiv2/start.S: Likewise.
5461         * sysdeps/csky/abiv2/strcmp.S: Likewise.
5462         * sysdeps/csky/abiv2/strcpy.S: Likewise.
5463         * sysdeps/csky/abiv2/strlen.S: Likewise.
5464         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5465         * sysdeps/csky/abort-instr.h: Likewise.
5466         * sysdeps/csky/atomic-machine.h: Likewise.
5467         * sysdeps/csky/bits/endian.h: Likewise.
5468         * sysdeps/csky/bits/fenv.h: Likewise.
5469         * sysdeps/csky/bits/link.h: Likewise.
5470         * sysdeps/csky/bits/setjmp.h: Likewise.
5471         * sysdeps/csky/bsd-_setjmp.S: Likewise.
5472         * sysdeps/csky/bsd-setjmp.S: Likewise.
5473         * sysdeps/csky/configure: Likewise.
5474         * sysdeps/csky/configure.ac: Likewise.
5475         * sysdeps/csky/dl-machine.h: Likewise.
5476         * sysdeps/csky/dl-procinfo.c: Likewise.
5477         * sysdeps/csky/dl-procinfo.h: Likewise.
5478         * sysdeps/csky/dl-sysdep.h: Likewise.
5479         * sysdeps/csky/dl-tls.h: Likewise.
5480         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5481         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5482         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5483         * sysdeps/csky/fpu/fegetenv.c: Likewise.
5484         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5485         * sysdeps/csky/fpu/fegetmode.c: Likewise.
5486         * sysdeps/csky/fpu/fegetround.c: Likewise.
5487         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5488         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5489         * sysdeps/csky/fpu/fenv_private.h: Likewise.
5490         * sysdeps/csky/fpu/fesetenv.c: Likewise.
5491         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5492         * sysdeps/csky/fpu/fesetmode.c: Likewise.
5493         * sysdeps/csky/fpu/fesetround.c: Likewise.
5494         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5495         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5496         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5497         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5498         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5499         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5500         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5501         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5502         * sysdeps/csky/fpu_control.h: Likewise.
5503         * sysdeps/csky/gccframe.h: Likewise.
5504         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5505         * sysdeps/csky/ldsodefs.h: Likewise.
5506         * sysdeps/csky/libc-tls.c: Likewise.
5507         * sysdeps/csky/linkmap.h: Likewise.
5508         * sysdeps/csky/machine-gmon.h: Likewise.
5509         * sysdeps/csky/memusage.h: Likewise.
5510         * sysdeps/csky/nofpu/Implies: Likewise.
5511         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5512         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5513         * sysdeps/csky/nptl/Makefile: Likewise.
5514         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5515         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5516         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5517         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5518         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5519         * sysdeps/csky/nptl/tls.h: Likewise.
5520         * sysdeps/csky/preconfigure: Likewise.
5521         * sysdeps/csky/sfp-machine.h: Likewise.
5522         * sysdeps/csky/sotruss-lib.c: Likewise.
5523         * sysdeps/csky/stackinfo.h: Likewise.
5524         * sysdeps/csky/sysdep.h: Likewise.
5525         * sysdeps/csky/tininess.h: Likewise.
5526         * sysdeps/csky/tst-audit.h: Likewise.
5527         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5528         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5529         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5530         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5531         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5532         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5533         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5534         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5535         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5536         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5537         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5538         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5539         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5540         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5541         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5542         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5543         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5544         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5545         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5546         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5547         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5548         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5549         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5550         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5551         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5552         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5553         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5554         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5555         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5556         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5557         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5558         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5559         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5560         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5561         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5562         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5563         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5564         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5565         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5566         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5567         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5568         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5569         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5570         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5571
5572 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5573
5574         * include/time.h (__difftime64): Add.
5575         * time/difftime.c (subtract): convert to 64-bit time.
5576         * time/difftime.c (__difftime64): Add.
5577         * time/difftime.c (__difftime): Wrap around __difftime64.
5578
5579 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
5580
5581         * manual/examples/add.c: Remove redundant "if not".
5582         * manual/examples/argp-ex1.c: Likewise.
5583         * manual/examples/argp-ex2.c: Likewise.
5584         * manual/examples/argp-ex3.c: Likewise.
5585         * manual/examples/argp-ex4.c: Likewise.
5586         * manual/examples/atexit.c: Likewise.
5587         * manual/examples/db.c: Likewise.
5588         * manual/examples/dir.c: Likewise.
5589         * manual/examples/dir2.c: Likewise.
5590         * manual/examples/execinfo.c: Likewise.
5591         * manual/examples/filecli.c: Likewise.
5592         * manual/examples/filesrv.c: Likewise.
5593         * manual/examples/fmtmsgexpl.c: Likewise.
5594         * manual/examples/genpass.c: Likewise.
5595         * manual/examples/inetcli.c: Likewise.
5596         * manual/examples/inetsrv.c: Likewise.
5597         * manual/examples/isockad.c: Likewise.
5598         * manual/examples/longopt.c: Likewise.
5599         * manual/examples/memopen.c: Likewise.
5600         * manual/examples/memstrm.c: Likewise.
5601         * manual/examples/mkdirent.c: Likewise.
5602         * manual/examples/mkfsock.c: Likewise.
5603         * manual/examples/mkisock.c: Likewise.
5604         * manual/examples/mygetpass.c: Likewise.
5605         * manual/examples/pipe.c: Likewise.
5606         * manual/examples/popen.c: Likewise.
5607         * manual/examples/rprintf.c: Likewise.
5608         * manual/examples/search.c: Likewise.
5609         * manual/examples/select.c: Likewise.
5610         * manual/examples/setjmp.c: Likewise.
5611         * manual/examples/sigh1.c: Likewise.
5612         * manual/examples/sigusr.c: Likewise.
5613         * manual/examples/stpcpy.c: Likewise.
5614         * manual/examples/strdupa.c: Likewise.
5615         * manual/examples/strftim.c: Likewise.
5616         * manual/examples/subopt.c: Likewise.
5617         * manual/examples/swapcontext.c: Likewise.
5618         * manual/examples/termios.c: Likewise.
5619         * manual/examples/testopt.c: Likewise.
5620         * manual/examples/testpass.c: Likewise.
5621         * manual/examples/timeval_subtract.c: Likewise.
5622
5623 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
5624
5625         * sysdeps/x86/fpu/math_private.h: New file.
5626         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5627
5628         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5629         definition.
5630         (cosh): Likewise.
5631         (tanh): Likewise.
5632
5633 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5634
5635         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5636         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5637         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5638         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
5639         fields.
5640         (_dl_show_auxv): Give a special treatment to
5641         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5642         and AT_L3_CACHEGEOMETRY.
5643         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5644         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5645         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
5646         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5647
5648 2018-12-19  Andreas Schwab  <schwab@suse.de>
5649
5650         * nscd/connections.c (check_use): Don't abort on invalid len.
5651
5652 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5653
5654         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5655         values in the 64bit value cases.
5656
5657 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5658
5659         * include/time.h
5660         (__ctime64_r): Add.
5661         * time/ctime_r.c
5662         (__ctime64_r): Add.
5663         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5664
5665         * include/time.h
5666         (__ctime64): Add.
5667         * time/gmtime.c
5668         (__ctime64): Add.
5669         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5670
5671         * include/time.h
5672         (__gmtime64_r): Add.
5673         * time/gmtime.c
5674         (__gmtime64_r): Add.
5675         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5676
5677         * include/time.h
5678         (__gmtime64): Add.
5679         * time/gmtime.c
5680         (__gmtime64): Add.
5681         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5682
5683         * include/time.h
5684         (__localtime64_r): Add.
5685         * time/localtime.c
5686         (__localtime64_r): Add.
5687         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5688
5689 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5690
5691         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5692         kernel_sigction definition.
5693
5694         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5695
5696         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5697
5698         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5699         __syscall_rt_sigaction.
5700         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5701         (kernel_sigaction): Use Linux generic defintion.
5702         (STUB): Define.
5703         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5704         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5705         (__syscall_rt_sigaction): Remove implementation.
5706         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5707         hidden.
5708         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5709         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5710         INTERNAL_SYSCALL): Remove definitions.
5711         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5712         action and signal set size.
5713         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5714         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5715
5716 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5717             James Clarke  <jrtc27@jrtc27.com>
5718
5719         [BZ #23967]
5720         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5721         Define if SA_RESTORER is defined.
5722         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5723         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5724         already defined.
5725         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5726         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5727         definitions.
5728         (HAS_SA_RESTORER): Define.
5729         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5730         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5731         (HAS_SA_RESTORER): Define.
5732         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5733         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5734         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5735         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5736         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5737
5738 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
5739
5740         * sysdeps/unix/sysv/linux/kernel-features.h
5741         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5742         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5743         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5744         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5745         (__ASSUME_ST_INO_64_BIT): Likewise.
5746         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5747         <kernel-features.h>.
5748         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5749         Remove conditional code.
5750         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5751         <kernel-features.h>.
5752         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5753         Remove conditional code.
5754         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5755         <kernel-features.h>.
5756         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5757         Remove conditional code.
5758         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5759         <kernel-features.h>.
5760         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5761         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5762
5763 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5764
5765         * sysdeps/s390/multiarch/ifunc-resolve.h
5766         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5767         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5768         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5769         Delete macro definition.
5770         (s390_libc_ifunc_init): Rename to
5771         s390_libc_ifunc_expr_stfle_init.
5772         * sysdeps/s390/bzero: Use
5773         s390_libc_ifunc_expr_stfle_init instead of
5774         s390_libc_ifunc_init.
5775         * sysdeps/s390/memcmp.c: Likewise.
5776         * sysdeps/s390/memcpy.c: Likewise.
5777         * sysdeps/s390/mempcpy.c: Likewise.
5778         * sysdeps/s390/memset.c: Likewise.
5779
5780 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5781
5782         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5783         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5784
5785 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5786
5787         * sysdeps/s390/multiarch/Makefile
5788         (sysdep_routines): Remove wmemcmp variants.
5789         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5790         * sysdeps/s390/multiarch/ifunc-impl-list.c
5791         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5792         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5793         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5794         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5795         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5796         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5797         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5798         * sysdeps/s390/ifunc-wmemcmp.h: New file.
5799
5800 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5801
5802         * sysdeps/s390/multiarch/Makefile
5803         (sysdep_routines): Remove wmemset variants.
5804         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5805         * sysdeps/s390/multiarch/ifunc-impl-list.c
5806         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5807         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5808         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5809         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5810         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5811         * sysdeps/s390/multiarch/wmemset.c: Move to ...
5812         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5813         * sysdeps/s390/ifunc-wmemset.h: New file.
5814
5815 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5816
5817         * sysdeps/s390/multiarch/Makefile
5818         (sysdep_routines): Remove wmemchr variants.
5819         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5820         * sysdeps/s390/multiarch/ifunc-impl-list.c
5821         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5822         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5823         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5824         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5825         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5826         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5827         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5828         * sysdeps/s390/ifunc-wmemchr.h: New file.
5829
5830 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5831
5832         * sysdeps/s390/multiarch/Makefile
5833         (sysdep_routines): Remove wcscspn variants.
5834         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5835         * sysdeps/s390/multiarch/ifunc-impl-list.c
5836         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5837         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5838         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5839         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5840         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5841         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5842         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5843         * sysdeps/s390/ifunc-wcscspn.h: New file.
5844
5845 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5846
5847         * sysdeps/s390/multiarch/Makefile
5848         (sysdep_routines): Remove wcspbrk variants.
5849         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5850         * sysdeps/s390/multiarch/ifunc-impl-list.c
5851         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5852         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5853         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5854         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5855         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5856         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5857         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5858         * sysdeps/s390/ifunc-wcspbrk.h: New file.
5859
5860 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5861
5862         * sysdeps/s390/multiarch/Makefile
5863         (sysdep_routines): Remove wcsspn variants.
5864         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5865         * sysdeps/s390/multiarch/ifunc-impl-list.c
5866         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5867         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5868         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5869         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5870         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5871         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5872         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5873         * sysdeps/s390/ifunc-wcsspn.h: New file.
5874
5875 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5876
5877         * sysdeps/s390/multiarch/Makefile
5878         (sysdep_routines): Remove wcsrchr variants.
5879         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5880         * sysdeps/s390/multiarch/ifunc-impl-list.c
5881         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5882         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5883         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5884         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5885         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5886         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5887         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5888         * sysdeps/s390/ifunc-wcsrchr.h: New file.
5889
5890 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5891
5892         * sysdeps/s390/multiarch/Makefile
5893         (sysdep_routines): Remove wcschrnul variants.
5894         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5895         * sysdeps/s390/multiarch/ifunc-impl-list.c
5896         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5897         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5898         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5899         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5900         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5901         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5902         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5903         * sysdeps/s390/ifunc-wcschrnul.h: New file.
5904
5905 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5906
5907         * sysdeps/s390/multiarch/Makefile
5908         (sysdep_routines): Remove wcschr variants.
5909         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5910         * sysdeps/s390/multiarch/ifunc-impl-list.c
5911         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5912         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5913         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5914         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5915         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5916         * sysdeps/s390/multiarch/wcschr.c: Move to ...
5917         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5918         * sysdeps/s390/ifunc-wcschr.h: New file.
5919
5920 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5921
5922         * sysdeps/s390/multiarch/Makefile
5923         (sysdep_routines): Remove wcsncmp variants.
5924         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5925         * sysdeps/s390/multiarch/ifunc-impl-list.c
5926         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5927         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5928         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5929         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5930         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5931         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5932         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5933         * sysdeps/s390/ifunc-wcsncmp.h: New file.
5934
5935 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5936
5937         * sysdeps/s390/multiarch/Makefile
5938         (sysdep_routines): Remove wcscmp variants.
5939         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5940         * sysdeps/s390/multiarch/ifunc-impl-list.c
5941         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5942         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5943         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5944         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5945         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5946         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5947         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5948         * sysdeps/s390/ifunc-wcscmp.h: New file.
5949
5950 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5951
5952         * sysdeps/s390/multiarch/Makefile
5953         (sysdep_routines): Remove wcsncat variants.
5954         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5955         * sysdeps/s390/multiarch/ifunc-impl-list.c
5956         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5957         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5958         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5959         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5960         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5961         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5962         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5963         * sysdeps/s390/ifunc-wcsncat.h: New file.
5964
5965 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5966
5967         * sysdeps/s390/multiarch/Makefile
5968         (sysdep_routines): Remove wcscat variants.
5969         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5970         * sysdeps/s390/multiarch/ifunc-impl-list.c
5971         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5972         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5973         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5974         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5975         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5976         * sysdeps/s390/multiarch/wcscat.c: Move to ...
5977         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5978         * sysdeps/s390/ifunc-wcscat.h: New file.
5979
5980 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5981
5982         * sysdeps/s390/multiarch/Makefile
5983         (sysdep_routines): Remove wcpncpy variants.
5984         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5985         * sysdeps/s390/multiarch/ifunc-impl-list.c
5986         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5987         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5988         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5989         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5990         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5991         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5992         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5993         * sysdeps/s390/ifunc-wcpncpy.h: New file.
5994
5995 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5996
5997         * sysdeps/s390/multiarch/Makefile
5998         (sysdep_routines): Remove wcsncpy variants.
5999         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
6000         * sysdeps/s390/multiarch/ifunc-impl-list.c
6001         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
6002         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
6003         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
6004         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
6005         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
6006         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
6007         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
6008         * sysdeps/s390/ifunc-wcsncpy.h: New file.
6009
6010 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6011
6012         * sysdeps/s390/multiarch/Makefile
6013         (sysdep_routines): Remove wcpcpy variants.
6014         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
6015         * sysdeps/s390/multiarch/ifunc-impl-list.c
6016         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
6017         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
6018         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
6019         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
6020         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
6021         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
6022         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
6023         * sysdeps/s390/ifunc-wcpcpy.h: New file.
6024
6025 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6026
6027         * sysdeps/s390/multiarch/Makefile
6028         (sysdep_routines): Remove wcscpy variants.
6029         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
6030         * sysdeps/s390/multiarch/ifunc-impl-list.c
6031         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
6032         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
6033         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
6034         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
6035         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
6036         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
6037         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
6038         * sysdeps/s390/ifunc-wcscpy.h: New file.
6039
6040 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6041
6042         * sysdeps/s390/multiarch/Makefile
6043         (sysdep_routines): Remove wcsnlen variants.
6044         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
6045         * sysdeps/s390/multiarch/ifunc-impl-list.c
6046         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
6047         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
6048         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
6049         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
6050         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
6051         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
6052         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
6053         * sysdeps/s390/ifunc-wcsnlen.h: New file.
6054
6055 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6056
6057         * sysdeps/s390/multiarch/Makefile
6058         (sysdep_routines): Remove wcslen variants.
6059         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
6060         * sysdeps/s390/multiarch/ifunc-impl-list.c
6061         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
6062         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
6063         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
6064         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
6065         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
6066         * sysdeps/s390/multiarch/wcslen.c: Move to ...
6067         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
6068         * sysdeps/s390/ifunc-wcslen.h: New file.
6069
6070 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6071
6072         * sysdeps/s390/multiarch/Makefile
6073         (sysdep_routines): Remove memrchr variants.
6074         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
6075         * sysdeps/s390/multiarch/ifunc-impl-list.c
6076         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
6077         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
6078         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
6079         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
6080         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
6081         * sysdeps/s390/multiarch/memrchr.c: Move to ...
6082         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
6083         * sysdeps/s390/ifunc-memrchr.h: New file.
6084
6085 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6086
6087         * sysdeps/s390/multiarch/Makefile
6088         (sysdep_routines): Remove memccpy variants.
6089         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
6090         * sysdeps/s390/multiarch/ifunc-impl-list.c
6091         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
6092         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
6093         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
6094         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
6095         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
6096         * sysdeps/s390/multiarch/memccpy.c: Move to ...
6097         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
6098         * sysdeps/s390/ifunc-memccpy.h: New file.
6099
6100 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6101
6102         * sysdeps/s390/multiarch/Makefile
6103         (sysdep_routines): Remove rawmemchr variants.
6104         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
6105         * sysdeps/s390/multiarch/ifunc-impl-list.c
6106         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
6107         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
6108         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
6109         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
6110         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
6111         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
6112         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
6113         * sysdeps/s390/ifunc-rawmemchr.h: New file.
6114
6115 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6116
6117         * sysdeps/s390/multiarch/Makefile
6118         (sysdep_routines): Remove memchr variants.
6119         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
6120         * sysdeps/s390/multiarch/ifunc-impl-list.c
6121         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
6122         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
6123         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
6124         * sysdeps/s390/multiarch/memchr.c: Move to ...
6125         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
6126         * sysdeps/s390/ifunc-memchr.h: New file.
6127         * sysdeps/s390/s390-64/memchr.S: Move to ...
6128         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
6129         for 31/64bit and ifunc handling.
6130         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
6131         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
6132         * sysdeps/s390/s390-32/memchr.S: Likewise.
6133
6134 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6135
6136         * sysdeps/s390/multiarch/Makefile
6137         (sysdep_routines): Remove strcspn variants.
6138         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
6139         * sysdeps/s390/multiarch/ifunc-impl-list.c
6140         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
6141         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
6142         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
6143         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
6144         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
6145         * sysdeps/s390/multiarch/strcspn.c: Move to ...
6146         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
6147         * sysdeps/s390/ifunc-strcspn.h: New file.
6148
6149 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6150
6151         * sysdeps/s390/multiarch/Makefile
6152         (sysdep_routines): Remove strpbrk variants.
6153         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
6154         * sysdeps/s390/multiarch/ifunc-impl-list.c
6155         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
6156         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
6157         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
6158         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
6159         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
6160         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
6161         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
6162         * sysdeps/s390/ifunc-strpbrk.h: New file.
6163
6164 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6165
6166         * sysdeps/s390/multiarch/Makefile
6167         (sysdep_routines): Remove strspn variants.
6168         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
6169         * sysdeps/s390/multiarch/ifunc-impl-list.c
6170         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
6171         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
6172         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
6173         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
6174         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
6175         * sysdeps/s390/multiarch/strspn.c: Move to ...
6176         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
6177         * sysdeps/s390/ifunc-strspn.h: New file.
6178
6179 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6180
6181         * sysdeps/s390/multiarch/Makefile
6182         (sysdep_routines): Remove strrchr variants.
6183         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
6184         * sysdeps/s390/multiarch/ifunc-impl-list.c
6185         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
6186         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
6187         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
6188         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
6189         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
6190         * sysdeps/s390/multiarch/strrchr.c: Move to ...
6191         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
6192         * sysdeps/s390/ifunc-strrchr.h: New file.
6193
6194 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6195
6196         * sysdeps/s390/multiarch/Makefile
6197         (sysdep_routines): Remove strchrnul variants.
6198         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
6199         * sysdeps/s390/multiarch/ifunc-impl-list.c
6200         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
6201         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
6202         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
6203         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
6204         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
6205         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
6206         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
6207         * sysdeps/s390/ifunc-strchrnul.h: New file.
6208
6209 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6210
6211         * sysdeps/s390/multiarch/Makefile
6212         (sysdep_routines): Remove strchr variants.
6213         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
6214         * sysdeps/s390/multiarch/ifunc-impl-list.c
6215         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
6216         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
6217         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
6218         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
6219         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
6220         * sysdeps/s390/multiarch/strchr.c: Move to ...
6221         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
6222         * sysdeps/s390/ifunc-strchr.h: New file.
6223
6224 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6225
6226         * sysdeps/s390/multiarch/Makefile
6227         (sysdep_routines): Remove strncmp variants.
6228         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
6229         * sysdeps/s390/multiarch/ifunc-impl-list.c
6230         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
6231         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
6232         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
6233         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
6234         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
6235         * sysdeps/s390/multiarch/strncmp.c: Move to ...
6236         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
6237         * sysdeps/s390/ifunc-strncmp.h: New file.
6238
6239 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6240
6241         * sysdeps/s390/multiarch/Makefile
6242         (sysdep_routines): Remove strcmp variants.
6243         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
6244         * sysdeps/s390/multiarch/ifunc-impl-list.c
6245         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
6246         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
6247         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
6248         * sysdeps/s390/multiarch/strcmp.c: Move to ...
6249         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
6250         * sysdeps/s390/ifunc-strcmp.h: New file.
6251         * sysdeps/s390/s390-64/strcmp.S: Move to ...
6252         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
6253         for 31/64bit and ifunc handling.
6254         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
6255         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
6256         * sysdeps/s390/s390-32/strcmp.S: Likewise.
6257
6258 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6259
6260         * sysdeps/s390/multiarch/Makefile
6261         (sysdep_routines): Remove strncat variants.
6262         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
6263         * sysdeps/s390/multiarch/ifunc-impl-list.c
6264         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
6265         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
6266         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
6267         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
6268         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
6269         * sysdeps/s390/multiarch/strncat.c: Move to ...
6270         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
6271         * sysdeps/s390/ifunc-strncat.h: New file.
6272
6273 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6274
6275         * sysdeps/s390/multiarch/Makefile
6276         (sysdep_routines): Remove strcat variants.
6277         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
6278         * sysdeps/s390/multiarch/ifunc-impl-list.c
6279         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
6280         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
6281         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
6282         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
6283         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
6284         * sysdeps/s390/multiarch/strcat.c: Move to ...
6285         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
6286         * sysdeps/s390/ifunc-strcat.h: New file.
6287
6288 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6289
6290         * sysdeps/s390/multiarch/Makefile
6291         (sysdep_routines): Remove stpncpy variants.
6292         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
6293         * sysdeps/s390/multiarch/ifunc-impl-list.c
6294         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
6295         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
6296         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
6297         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
6298         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
6299         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6300         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6301         * sysdeps/s390/ifunc-stpncpy.h: New file.
6302
6303 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6304
6305         * sysdeps/s390/multiarch/Makefile
6306         (sysdep_routines): Remove strncpy variants.
6307         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6308         * sysdeps/s390/multiarch/ifunc-impl-list.c
6309         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6310         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6311         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6312         * sysdeps/s390/multiarch/strncpy.c: Move to ...
6313         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6314         * sysdeps/s390/ifunc-strncpy.h: New file.
6315         * sysdeps/s390/s390-64/strncpy.S: Move to ...
6316         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6317         and adjust ifunc handling.
6318         * sysdeps/s390/s390-32/strncpy.S: Move to ...
6319         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6320         and adjust ifunc handling.
6321         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6322         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6323
6324 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6325
6326         * sysdeps/s390/multiarch/Makefile
6327         (sysdep_routines): Remove stpcpy variants.
6328         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6329         * sysdeps/s390/multiarch/ifunc-impl-list.c
6330         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6331         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6332         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6333         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6334         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6335         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6336         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6337         * sysdeps/s390/ifunc-stpcpy.h: New file.
6338
6339 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6340
6341         * sysdeps/s390/multiarch/Makefile
6342         (sysdep_routines): Remove strcpy variants.
6343         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6344         * sysdeps/s390/multiarch/ifunc-impl-list.c
6345         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6346         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6347         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6348         * sysdeps/s390/multiarch/strcpy.c: Move to ...
6349         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6350         * sysdeps/s390/ifunc-strcpy.h: New file.
6351         * sysdeps/s390/s390-64/strcpy.S: Move to ...
6352         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6353         for 31/64bit and ifunc handling.
6354         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6355         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6356         * sysdeps/s390/s390-32/strcpy.S: Likewise.
6357
6358 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6359
6360         * sysdeps/s390/multiarch/Makefile
6361         (sysdep_routines): Remove strnlen variants.
6362         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6363         * sysdeps/s390/multiarch/ifunc-impl-list.c
6364         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6365         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6366         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6367         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6368         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6369         * sysdeps/s390/multiarch/strnlen.c: Move to ...
6370         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6371         * sysdeps/s390/ifunc-strnlen.h: New file.
6372
6373 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6374
6375         * sysdeps/s390/multiarch/Makefile
6376         (sysdep_routines): Remove strlen variants.
6377         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6378         * sysdeps/s390/multiarch/ifunc-impl-list.c
6379         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6380         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6381         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6382         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6383         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6384         * sysdeps/s390/multiarch/strlen.c: Move to ...
6385         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6386         * sysdeps/s390/ifunc-strlen.h: New file.
6387
6388 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6389
6390         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6391         * sysdeps/s390/multiarch/ifunc-impl-list.c
6392         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6393         * sysdeps/s390/ifunc-memmem.h: New file.
6394         * sysdeps/s390/memmem.c: Likewise.
6395         * sysdeps/s390/memmem-c.c: Likewise.
6396         * sysdeps/s390/memmem-vx.c: Likewise.
6397
6398 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6399
6400         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6401         * sysdeps/s390/multiarch/ifunc-impl-list.c
6402         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6403         * sysdeps/s390/ifunc-strstr.h: New file.
6404         * sysdeps/s390/strstr.c: Likewise.
6405         * sysdeps/s390/strstr-c.c: Likewise.
6406         * sysdeps/s390/strstr-vx.c: Likewise.
6407
6408 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6409
6410         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6411         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6412         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6413         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6414         New defines.
6415         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6416         * sysdeps/s390/memmove-c.c: New file.
6417         * sysdeps/s390/memmove.c: Likewise.
6418         * sysdeps/s390/multiarch/ifunc-impl-list.c
6419         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6420
6421 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6422
6423         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6424         * sysdeps/s390/configure.ac: Add check for z13 support.
6425         * sysdeps/s390/configure: Regenerated.
6426
6427 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6428
6429         * sysdeps/s390/memcopy.h: New file.
6430
6431 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6432
6433         * sysdeps/s390/s390-32/bcopy.S: Remove.
6434         * sysdeps/s390/s390-64/bcopy.S: Likewise.
6435
6436 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6437
6438         * sysdeps/s390/ifunc-memcpy.h: New File.
6439         * sysdeps/s390/memcpy.S: Move to ...
6440         * sysdeps/s390/memcpy-z900.S ... here.
6441         Move implementations from memcpy-s390x.s to here.
6442         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6443         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6444         Remove memcpy/mempcpy variants.
6445         * sysdeps/s390/Makefile (sysdep_routines):
6446         Add memcpy/mempcpy variants.
6447         * sysdeps/s390/multiarch/ifunc-impl-list.c
6448         (__libc_ifunc_impl_list): Adjust ifunc variants for
6449         memcpy and mempcpy.
6450         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6451         to ...
6452         * sysdeps/s390/memcpy.c: ... here.
6453         Adjust ifunc variants for memcpy.
6454         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6455         * sysdeps/s390/mempcpy.c: ... here.
6456         Adjust ifunc variants for mempcpy.
6457         * sysdeps/s390/mempcpy.S: Delete file.
6458
6459 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6460
6461         * sysdeps/s390/s390-64/memcpy.S: Move to ...
6462         * sysdeps/s390/memcpy.S: ... here.
6463         Adjust to be usable for 31/64bit.
6464         * sysdeps/s390/s390-32/memcpy.S: Delete File.
6465         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6466         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6467         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6468         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6469         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6470         Adjust to be usable for 31/64bit.
6471         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6472         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6473         * sysdeps/s390/multiarch/memcpy.c: ... here.
6474         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6475
6476 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6477
6478         * sysdeps/s390/ifunc-memcmp.h: New File.
6479         * sysdeps/s390/memcmp.S: Move to ...
6480         * sysdeps/s390/memcmp-z900.S ... here.
6481         Move implementations from memcmp-s390x.s to here.
6482         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6483         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6484         Remove memcmp variants.
6485         * sysdeps/s390/Makefile (sysdep_routines):
6486         Add memcmp variants.
6487         * sysdeps/s390/multiarch/ifunc-impl-list.c
6488         (__libc_ifunc_impl_list): Adjust ifunc variants for
6489         memcmp.
6490         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6491         to ...
6492         * sysdeps/s390/memcmp.c: ... here.
6493         Adjust ifunc variants for memcmp.
6494
6495 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6496
6497         * sysdeps/s390/s390-64/memcmp.S: Move to ...
6498         * sysdeps/s390/memcmp.S: ... here.
6499         Adjust to be usable for 31/64bit.
6500         * sysdeps/s390/s390-32/memcmp.S: Delete File.
6501         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6502         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6503         Remove memcmp.
6504         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6505         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6506         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6507         Adjust to be usable for 31/64bit.
6508         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6509         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6510         * sysdeps/s390/multiarch/memcmp.c: ... here.
6511         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6512
6513 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6514
6515         * sysdeps/s390/s390-32/bzero.S: Delete file.
6516         * sysdeps/s390/s390-64/bzero.S: Likewise.
6517         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6518         * sysdeps/s390/bzero.c: New file.
6519         * sysdeps/s390/memset-z900.S: Add bzero entry points.
6520         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6521         * sysdeps/s390/multiarch/ifunc-impl-list.c
6522         (__libc_ifunc_impl_list): Add bzero ifunc variants.
6523
6524 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6525
6526         * sysdeps/s390/ifunc-memset.h: New File.
6527         * sysdeps/s390/memset.S: Move to ...
6528         * sysdeps/s390/memset-z900.S ... here.
6529         Move implementations from memset-s390x.s to here.
6530         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6531         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6532         Remove memset variants.
6533         * sysdeps/s390/Makefile (sysdep_routines):
6534         Add memset variants.
6535         * sysdeps/s390/multiarch/ifunc-impl-list.c
6536         (__libc_ifunc_impl_list): Adjust ifunc variants for
6537         memset.
6538         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6539         to ...
6540         * sysdeps/s390/memset.c: ... here.
6541         Adjust ifunc variants for memset.
6542
6543 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6544
6545         * sysdeps/s390/s390-64/memset.S: Move to ...
6546         * sysdeps/s390/memset.S: ... here.
6547         Adjust to be usable for 31/64bit.
6548         * sysdeps/s390/s390-32/memset.S: Delete File.
6549         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6550         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6551         Remove memset.
6552         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6553         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6554         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6555         Adjust to be usable for 31/64bit.
6556         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6557         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6558         * sysdeps/s390/multiarch/memset.c: ... here.
6559         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6560
6561 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6562
6563         * sysdeps/s390/multiarch/ifunc-resolve.h
6564         (s390_libc_ifunc_init, s390_libc_ifunc,
6565         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6566
6567 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6568
6569         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6570         * sysdeps/s390/configure.ac: Add check for z10 support.
6571         * sysdeps/s390/configure: Regenerated.
6572
6573 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
6574
6575         * sysdeps/i386/atomic-machine.h: Merged with ...
6576         * sysdeps/x86_64/atomic-machine.h: To ...
6577         * sysdeps/x86/atomic-machine.h: This.  New file.
6578
6579 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6580
6581         Rewrite locale/gen-translit.pl in Python.
6582         * locale/Makefile (generated): Add C-translit.h.
6583         (before-compile): Add $(objpfx)C-translit.h.
6584         (C-translit.h): Move to $(objpfx).  Create target directory.
6585         Build using Python script.
6586         * locale/gen-translit.py: New file.
6587         * locale/gen-translit.pl: Remove file.
6588         * locale/C-translit.h.in: Change comment character to '#' for
6589         easier parsing without a C preprocessor.
6590         * locale/C-translit.h: Remove generated file.
6591         * manual/install.texi (Tools for Compilation): Do not mention
6592         C-translit.h.
6593         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6594         Remove locale/C-translit.h.
6595         * scripts/update-copyrights: Likewise.
6596         * INSTALL: Regenerate.
6597
6598 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6599
6600         [BZ #23995]
6601         * localedata/locales/bi_VU: Remove executable bit from file.
6602
6603 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6604
6605         * include/time.h
6606         (__localtime64): Add.
6607         * manual/maint.texi: Document Y2038 symbol handling.
6608         * time/localtime.c
6609         (__localtime64): Add.
6610         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6611
6612 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
6613
6614         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6615         Do not clobber r12.
6616
6617         * scripts/glibcextract.py (compare_macro_consts): Take parameters
6618         to allow extra macros from first or second sources.
6619         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6620         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6621         (tests-special): Add $(objpfx)tst-mman-consts.out.
6622         ($(objpfx)tst-mman-consts.out): New makefile target.
6623
6624 2018-12-17  Mao Han  <han_mao@c-sky.com>
6625
6626         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6627         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6628         without stat64 system call support.
6629         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6630         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6631         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6632         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6633         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6634         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6635         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6636         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6637         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6638         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6639         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6640
6641 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6642
6643         regex: fix storage-exhaustion error
6644         [BZ #18040]
6645         * posix/regexec.c (get_subexp):
6646         Do not continue if storage is exhausted.
6647
6648 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
6649
6650         regex: fix heap-use-after-free error
6651         [BZ #18040]
6652         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6653         https://debbugs.gnu.org/32592
6654         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6655         call extend_buffers which reallocates the re_string_t internal buffer.
6656         Local variable 'buf' was not updated in such case, resulting in
6657         use-after-free.
6658         * posix/regexec.c (get_subexp): Update 'buf' after call to
6659         get_subexp_sub.
6660
6661 2018-12-15  Florian Weimer  <fweimer@redhat.com>
6662
6663         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6664         (minimum_stride_size): Use it.
6665         (support_blob_repeat_allocate): Likewise.
6666
6667 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
6668
6669         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6670         definition.
6671         (acosh): Likewise.
6672         (atanh): Likewise.
6673
6674 2018-12-14  Florian Weimer  <fweimer@redhat.com>
6675
6676         * manual/process.texi (Process Creation Concepts): Remove
6677         documentation of process (ID) lifetime.  List more process
6678         creation functions.  Reference Process Identification section.
6679         (Process Identification): Add information about process ID
6680         lifetime.  Describe Linux thread/task IDs.
6681         * manual/signal.texi (Signaling Another Process): Mention that the
6682         signal is always sent to the process.
6683
6684 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6685
6686         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
6687         and tst-ldbl-efgcvt.
6688         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6689         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6690         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6691         (fcvt_tests, output_error, output_r_error, do_test): Use the
6692         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6693         select the type of floating-point variables and arguments; to
6694         produce extra tests for double and conversion specifiers for
6695         printf; and to set the names of called functions.
6696         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6697         in tst-efgcvt-template.c.
6698         * misc/tst-ldbl-efgcvt.c: Likewise.
6699
6700 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
6701
6702         * nss/Makefile (tst-nss-test3.out): New rule.
6703
6704 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
6705
6706         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6707         clobber sp.
6708
6709 2018-12-13  fanjinke  <fanjinke@hygon.cn>
6710
6711         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6712         "HygonGenuine".
6713
6714 2018-12-13  Andreas Schwab  <schwab@suse.de>
6715
6716         [BZ #23861]
6717         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
6718         (__pthread_rwlock_rdlock_full): Update expected value for
6719         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6720         * nptl/tst-rwlock-pwn.c: New file.
6721         * nptl/Makefile (tests): Add tst-rwlock-pwn.
6722
6723 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
6724
6725         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6726         definition.
6727
6728 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6729
6730         * benchtests/scripts/compare_bench.py (do_compare): write to
6731         stderr in casestat is not present.
6732         * benchtests/scripts/compare_bench.py (plot_graphs): write to
6733         stderr in case timings field is not present. Also string showing
6734         the output filename goes into the stderr.
6735
6736 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6737
6738         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6739         and ZeroDivisorError exceptions.
6740         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6741         argument to loop through user provided statistics.
6742         * benchtests/scripts/compare_bench.py (main): Include the --stats
6743         argument.
6744
6745 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6746
6747         * benchtests/scripts/compare_bench.py (compare_runs): Continue
6748         instead of return.
6749
6750 2018-12-12  Florian Weimer  <fweimer@redhat.com>
6751
6752         * sysdeps/posix/timespec_get.c: Add missing “any later version”
6753         clause to copyright header.
6754
6755 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6756
6757         [BZ #23614]
6758         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6759         registers saved in the stack frame.
6760         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6761         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6762
6763 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6764
6765         * include/bits/monetary-ldbl.h: New file.
6766         * include/bits/printf-ldbl.h: Likewise.
6767         * include/bits/stdio-ldbl.h: Likewise.
6768         * include/bits/stdlib-ldbl.h: Likewise.
6769         * include/bits/syslog-ldbl.h: Likewise.
6770         * include/bits/wchar-ldbl.h: Likewise.
6771
6772 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6773
6774         * libio/libio.h: Remove redirection for _IO_vfprintf.
6775
6776 2018-12-11  Andreas Schwab  <schwab@suse.de>
6777
6778         * Makerules: Remove all references to abilist-pattern.
6779         (update-all-abi): Simplify find expression.
6780
6781 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6782
6783         [BZ #23961]
6784         * math/auto-libm-test-in: Add new test case.
6785         * math/auto-libm-test-out-pow: Regenerated.
6786         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6787
6788 2018-12-10  DJ Delorie  <dj@redhat.com>
6789
6790         [BZ #23948]
6791         * support/test-container.c: Move postclean step to before we
6792         change namespaces.
6793
6794 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6795
6796         * scripts/gen-as-const.py (main): Handle --python option.
6797         * scripts/gen-py-const.awk: Remove.
6798         * Makerules (py-const-script): Use gen-as-const.py.
6799         ($(py-const)): Likewise.
6800         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6801         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6802         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6803         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6804         ~PTHREAD_MUTEX_NO_ELISION_NP.
6805         * manual/README.pretty-printers: Update reference to
6806         gen-py-const.awk.
6807
6808         * scripts/glibcextract.py: New file.
6809         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6810         or tempfile.  Import glibcexctract.
6811         (compute_c_consts): Remove.  Moved to glibcextract.py.
6812         (gen_test): Update reference to compute_c_consts.
6813         (main): Likewise.
6814         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6815         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6816         * sysdeps/unix/sysv/linux/Makefile
6817         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6818         Redirect stderr as well as stdout.
6819
6820 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
6821
6822         [BZ #19767]
6823         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6824         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6825         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6826         ALWAYS_USE_VSYSCALL.
6827         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6828         ALWAYS_USE_VSYSCALL.
6829         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6830         ALWAYS_USE_VSYSCALL.
6831
6832 2018-12-10  Florian Weimer  <fweimer@redhat.com>
6833
6834         [BZ #23972]
6835         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6836         offset instead of count for clarity.  Fix typo in comment.
6837         (__old_getdents64): Keep track of previous offset.  Use it to call
6838         handle_overflow.
6839         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6840         that d_off is never zero.
6841
6842 2018-12-10  Andreas Schwab  <schwab@suse.de>
6843
6844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6845         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6847         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6848         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6849
6850 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6851
6852         * timezone/private.h: Update from tzcode 2018g.
6853         * timezone/tzfile.h: Likewise.
6854         * timezone/tzselect.ksh: Likewise.
6855         * timezone/zdump.c: Likewise.
6856         * timezone/zic.c: Likewise.
6857
6858 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
6859
6860         [BZ #23490]
6861         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6862         (do_test): Adjust buffer size and fix format.
6863
6864 2018-12-07  DJ Delorie  <dj@redhat.com>
6865
6866         [BZ #23907]
6867         * malloc/tst-tcfree3.c: New.
6868         * malloc/Makefile: Add it.
6869
6870 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6871
6872         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6873
6874 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6875
6876         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6877         used as a mask for the mode argument of __vfscanf_internal and
6878         __vfwscanf_internal.
6879         * stdio-common/vfscanf-internal.c
6880         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6881         (__strtof128_internal): Define to __wcstof128_internal.
6882         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6883         __strtof128_internal or __wcstof128_internal when the format of
6884         long double is the same as _Float128.
6885
6886 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6887
6888         * include/unistd.h (__confstr): Add prototype and hidden prototype.
6889         * posix/confstr.c (confstr): Rename to __confstr.
6890         (__confstr): Add hidden def.
6891         (confstr): Add weak alias for __confstr.
6892         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6893         confstr.
6894
6895 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6896
6897         * NEWS: Mention getcpu.
6898         * include/sched.h (__getcpu): New libc_hidden_proto.
6899         * manual/resource.texi: Document getcpu.
6900         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6901         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6902         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6903         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6904         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6905         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6906         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6907         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6908         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6909         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6910         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6911         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6912         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6913         Likewise.
6914         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6915         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6916         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6918         Likewise.
6919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6920         Likewise.
6921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6922         Likewise.
6923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6924         Likewise.
6925         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6926         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6927         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6928         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6929         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6934         * sysdeps/unix/sysv/linux/getcpu.c: New file.
6935         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6936         Also check getcpu.
6937
6938 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6939
6940         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6941         functions.
6942         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6943
6944 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6945
6946         [BZ #17405]
6947         * posix/Makefile (routines): Add spawn_faction_addfchdir.
6948         * posix/Versions (GLIBC_2.29): Export
6949         posix_spawn_file_actions_addfchdir_np.
6950         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6951         * posix/spawn_faction_destroy.c
6952         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6953         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6954         and the field action.fchdir_action.
6955         * posix/tst-spawn-chdir.c (add_chdir): New function.
6956         (do_test): Add do_fchdir loop.  Call add_chdir.
6957         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6958         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6959         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6960         posix_spawn_file_actions_addfchdir_np.
6961         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6962         Likewise.
6963         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6964         Likewise.
6965         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6966         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6967         Likewise.
6968         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6969         Likewise.
6970         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6971         Likewise.
6972         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6973         Likewise.
6974         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6975         Likewise.
6976         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6977         Likewise.
6978         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6979         (GLIBC_2.29): Likewise.
6980         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6981         (GLIBC_2.29): Likewise.
6982         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6983         (GLIBC_2.29): Likewise.
6984         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6985         (GLIBC_2.29): Likewise.
6986         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6987         Likewise.
6988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6989         (GLIBC_2.29): Likewise.
6990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6991         (GLIBC_2.29): Likewise.
6992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6993         (GLIBC_2.29): Likewise.
6994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6995         (GLIBC_2.29): Likewise.
6996         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6997         Likewise.
6998         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6999         Likewise.
7000         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7001         Likewise.
7002         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7003         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7004         Likewise.
7005         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7006         Likewise.
7007         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7008         Likewise.
7009         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7010         Likewise.
7011
7012 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
7013
7014         * manual/texinfo.tex: Update to version 2018-09-21.20 with
7015         trailing whitespace removed.
7016         * scripts/config.guess: Update to version 2018-11-28.
7017         * scripts/config.sub: Update to version 2018-11-28.
7018         * scripts/install-sh: Update to version 2018-03-11.20.
7019         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
7020         * scripts/move-if-change: Update to version 2018-03-07 03:47.
7021
7022 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7023
7024         [BZ #23927]
7025         CVE-2018-19591
7026         * inet/tst-if_index-long.c: New file.
7027         * inet/Makefile (tests): Add tst-if_index-long.
7028
7029 2018-12-07  Florian Weimer  <fweimer@redhat.com>
7030
7031         * support/check.h (support_record_failure_is_failed): Declare.
7032         * support/descriptors.h: New file.
7033         * support/support_descriptors.c: Likewise.
7034         * support/tst-support_descriptors.c: Likewise.
7035         * support/support_record_failure.c
7036         (support_record_failure_is_failed): New function.
7037         * support/Makefile (libsupport-routines): Add support_descriptors.
7038         (tests): Add tst-support_descriptors.
7039
7040 2018-12-05  Zack Weinberg  <zackw@panix.com>
7041             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7042
7043         * stdio-common/vfprintf-internal.c
7044         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
7045         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
7046         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
7047         and __no_long_double.
7048         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
7049         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
7050         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
7051         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
7052         and __nldbl_*syslog* functions.
7053         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
7054         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
7055         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
7056         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
7057         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
7058         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
7059         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
7060         (__nldbl_vwprintf, __nldbl_wprintf):
7061         Directly call the appropriate __v*printf_internal routine, passing
7062         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
7063         variable names.
7064         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
7065         (__nldbl___printf_chk, __nldbl___snprintf_chk)
7066         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
7067         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
7068         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
7069         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7070         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
7071         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
7072         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
7073         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
7074         Likewise, and also pass PRINTF_FORTIFY when appropriate.
7075         (__nldbl_syslog, __nldbl_vsyslog):
7076         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
7077         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7078         appropriate.
7079         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
7080         appropriate.
7081
7082 2018-12-05  Zack Weinberg  <zackw@panix.com>
7083             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7084
7085         [BZ #11319]
7086         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
7087         Moved here from debug/vsprintf_chk.c.
7088         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
7089         and completion logic for the strfile to match exactly what
7090         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
7091         _IO_str_init_static_internal instead of maxlen-1.
7092         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7093         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
7094         __vsprintf_internal.
7095
7096         * debug/vsprintf_chk.c (__vsprintf_chk)
7097         * debug/sprintf_chk.c (__sprintf_chk):
7098         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
7099         'flags' argument is positive, and slen as maxlen.  No need to lock
7100         the FILE and/or construct a temporary FILE.  Minimize and normalize
7101         header inclusions and variable names.  Do not libc_hidden_def anything.
7102
7103         * debug/asprintf_chk.c (__asprintf_chk)
7104         * debug/dprintf_chk.c (__dprintf_chk)
7105         * debug/fprintf_chk.c (__fprintf_chk)
7106         * debug/fwprintf_chk.c (__fwprintf_chk)
7107         * debug/printf_chk.c (__printf_chk)
7108         * debug/snprintf_chk.c (__snprintf_chk)
7109         * debug/swprintf_chk.c (__swprintf_chk)
7110         * debug/vasprintf_chk.c (__vasprintf_chk)
7111         * debug/vdprintf_chk.c (__vdprintf_chk)
7112         * debug/vfprintf_chk.c (__vfprintf_chk)
7113         * debug/vfwprintf_chk.c (__vfwprintf_chk)
7114         * debug/vprintf_chk.c (__vprintf_chk)
7115         * debug/vsnprintf_chk.c (__vsnprintf_chk)
7116         * debug/vswprintf_chk.c (__vswprintf_chk)
7117         * debug/vwprintf_chk.c (__vwprintf_chk)
7118         * debug/wprintf_chk.c (__wprintf_chk):
7119         Directly call the corresponding vxxprintf_internal function, passing
7120         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
7121         the FILE and/or construct a temporary FILE.  Minimize and normalize
7122         header inclusions and variable names.  Do not libc_hidden_def anything.
7123
7124         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
7125         __obstack_vprintf_internal.
7126         (__obstack_vprintf_chk): Convert into a wrapper that calls
7127         __obstack_vprintf_internal (these two functions already had the
7128         same code) and move to new file...
7129         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
7130         file.
7131         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
7132         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
7133         * debug/Makefile (routines): Add vobprintf_chk.
7134
7135         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7136         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
7137         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
7138         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
7139         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
7140         (__nldbl___obstack_vfprintf_chk):
7141         Directly call the corresponding vxxprintf_internal function,
7142         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
7143         duplicate comparison of slen with 0 or maxlen from the corresponding
7144         non-__nldbl function.
7145
7146         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
7147         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
7148         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
7149         Remove libc_hidden_proto.
7150
7151         * stdio-common/vfprintf-internal.c
7152         (__vfprintf_internal, __vfwprintf_internal):
7153         Do not check _IO_FLAGS2_FORTIFY.
7154         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
7155         * libio/libioP.h: Update prototype of __vsprintf_internal and add
7156         a comment explaining why it has the maxlen argument.
7157         (_IO_acquire_lock_clear_flags2_fct): Remove.
7158         (_IO_acquire_lock_clear_flags2): Remove.
7159         (_IO_release_lock): Remove conditional statement which will
7160         now never execute.
7161         (_IO_acquire_lock): Remove variable which is now unused.
7162         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7163         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
7164
7165         * stdio-common/Makefile (tests): Add tst-bz11319 and
7166         tst-bz11319-fortify2.
7167         (CFLAGS-tst-bz11319-fortify2.c): New macro.
7168         * stdio-common/tst-bz11319-fortify2.c: New file.
7169         * stdio-common/tst-bz11319.c: Likewise.
7170
7171 2018-12-05  Zack Weinberg  <zackw@panix.com>
7172             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7173
7174         * misc/syslog.c: Include libioP.h, not iolibio.h.
7175         (__vsyslog_internal): New function with the former body of
7176         __vsyslog_chk; takes mode_flags argument same as
7177         __v*printf_internal.  Call __vfprintf_internal directly.
7178
7179         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
7180         Remove libc_hidden_def.
7181         (__syslog, __syslog_chk): Use __vsyslog_internal.
7182         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
7183
7184         * include/sys/syslog.h: Add multiple inclusion guard.
7185         Add prototype for __vsyslog_internal.
7186         Remove declaration and libc_hidden_proto for __vsyslog_chk.
7187
7188         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
7189         Use __vsyslog_internal.
7190
7191 2018-12-05  Zack Weinberg  <zackw@panix.com>
7192             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7193
7194         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
7195         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
7196         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
7197         New functions.
7198         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
7199         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
7200
7201         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
7202         Include wctype.h here if COMPILE_WPRINTF is defined.
7203         Define __vfprintf_internal or __vfwprintf_internal, depending
7204         on COMPILE_WPRINTF.
7205         Temporarily, on entry to this function, update mode_flags
7206         according to the environmental settings corresponding to
7207         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
7208         Throughout, check mode_flags instead of __ldbl_is_dbl and
7209         _IO_FLAGS2_FORTIFY on the destination FILE.
7210         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
7211         Include vfprintf-internal.c.  Don't include wctype.h.
7212         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
7213         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
7214         and vfprintf.
7215         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
7216         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
7217         and vfwprintf.
7218         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
7219
7220         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
7221         and add mode_flags argument; use __vfprintf_internal.
7222         (__vdprintf): New function.  Alias vdprintf to this.
7223         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
7224         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
7225         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
7226         (__obstack_printf): Use __obstack_printf_internal.
7227         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
7228         public aliases __vsnprintf and vsnprintf.
7229         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
7230         called internally.
7231         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
7232         public aliases _IO_vsprintf and vsprintf.
7233         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
7234         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
7235         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
7236         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
7237         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
7238
7239         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
7240         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
7241         * stdio-common/fprintf.c, stdio-common/fxprintf.c
7242         * stdio-common/printf.c: Use __vfprintf_internal.
7243
7244         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
7245         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
7246         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
7247
7248         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
7249         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
7250         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
7251         __vfwprintf_internal.
7252
7253         * libio/libio.h: Remove libc_hidden_proto and declaration for
7254         _IO_vfprintf.
7255         Remove declaration of _IO_vfwprintf.
7256         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
7257         _IO_vsprintf.
7258         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
7259         _IO_obstack_printf.
7260         * include/stdio.h: Add prototype for __vasprintf.
7261         (__vsnprintf): Remove declaration, because there are no more
7262         internal calls.
7263         * include/wchar.h (__vfwprintf, __vswprintf): Remove
7264         declaration, because there are no more internal calls.
7265
7266         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
7267         __vsnprintf_internal, instead of _IO_vsnprintf.
7268         * argp/argp-help.c (__argp_error, __argp_failure): Use
7269         __vasprintf_internal, instead of _IO_vasprintf.
7270         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
7271         redefine, because there are no more internal calls.
7272
7273 2018-12-05  Zack Weinberg  <zackw@panix.com>
7274             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7275
7276         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
7277         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
7278         Include libio/strfile.h instead of libioP.h.
7279         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
7280         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
7281         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
7282         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
7283         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
7284         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
7285         necessary.  Do not set __no_long_double.  Normalize variable names.
7286         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
7287         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
7288         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
7289         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
7290         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
7291         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
7292         Call __vfscanf_internal / __vfwscanf_internal directly, passing
7293         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
7294         Do not set __no_long_double.  Normalize variable names.
7295
7296 2018-12-05  Zack Weinberg  <zackw@panix.com>
7297             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7298
7299         * stdio-common/isoc99_scanf.c
7300         * stdio-common/isoc99_fscanf.c
7301         * stdio-common/isoc99_sscanf.c
7302         * stdio-common/isoc99_vscanf.c
7303         * stdio-common/isoc99_vfscanf.c
7304         * stdio-common/isoc99_vsscanf.c
7305         * wcsmbs/isoc99_wscanf.c
7306         * wcsmbs/isoc99_fwscanf.c
7307         * wcsmbs/isoc99_swscanf.c
7308         * wcsmbs/isoc99_vwscanf.c
7309         * wcsmbs/isoc99_vfwscanf.c
7310         * wcsmbs/isoc99_vswscanf.c:
7311         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7312         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7313         No need to lock and unlock the FILE passed to that function.
7314
7315         * stdio-common/vfscanf-internal.c
7316         (__vfscanf_internal, __vfwscanf_internal):
7317         Don't look at _IO_FLAGS2_SCANF_STD.
7318         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7319         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7320         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7321
7322 2018-12-05  Zack Weinberg  <zackw@panix.com>
7323             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7324
7325         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7326         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7327         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7328         * libio/strfile.h: Add multiple inclusion guard.
7329         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7330
7331         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7332         consistency with the other version of this file.
7333         (ldbl_compat_symbol): New macro.
7334         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7335         New macro.
7336
7337         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7338         Define __vfscanf_internal or __vfwscanf_internal, depending on
7339         COMPILE_WSCANF; don't define any other public symbols.
7340         Remove errval and code to set errp.
7341         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7342         as the mode_flags argument.
7343         (encode_error, conv_error, input_error): Don't set errval.
7344         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7345         Include vfscanf-internal.c.
7346         * stdio-common/vfscanf.c: New file defining the public entry
7347         point vfscanf, which calls __vfscanf_internal.
7348         * stdio-common/vfwscanf.c: New file defining the public entry
7349         point vfwscanf, which calls __vfwscanf_internal.
7350
7351         * stdio-common/iovfscanf.c: New file.
7352         * stdio-common/iovfwscanf.c: Likewise.
7353
7354         * stdio-common/Makefile (routines): Add vfscanf-internal,
7355         vfwscanf-internal, iovfscanf, iovfwscanf.
7356         * stdio-common/Versions: Mention GLIBC_2.29, so that
7357         it can be used in SHLIB_COMPAT expressions.
7358         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7359         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7360         Call __vfscanf_internal, instead of _IO_vfscanf.
7361         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7362         _IO_vfscanf.
7363         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7364         _IO_vfwscanf.
7365
7366         * libio/iovsscanf.c: Clean up includes, when possible.  Use
7367         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
7368         __vfscanf_internal or __vfwscanf_internal directly.
7369         * libio/iovswscanf.c: Likewise.
7370         * libio/swscanf.c: Likewise.
7371         * libio/vscanf.c: Likewise.
7372         * libio/vwscanf.c: Likewise.
7373         * libio/wscanf.c: Likewise.
7374         * stdio-common/isoc99_fscanf.c: Likewise.
7375         * stdio-common/isoc99_scanf.c: Likewise.
7376         * stdio-common/isoc99_sscanf.c: Likewise.
7377         * stdio-common/isoc99_vfscanf.c: Likewise.
7378         * stdio-common/isoc99_vscanf.c: Likewise.
7379         * stdio-common/isoc99_vsscanf.c: Likewise.
7380         * stdio-common/scanf.c: Likewise.
7381         * stdio-common/sscanf.c: Likewise.
7382         * wcsmbs/isoc99_fwscanf.c: Likewise.
7383         * wcsmbs/isoc99_swscanf.c: Likewise.
7384         * wcsmbs/isoc99_vfwscanf.c: Likewise.
7385         * wcsmbs/isoc99_vswscanf.c: Likewise.
7386         * wcsmbs/isoc99_vwscanf.c: Likewise.
7387         * wcsmbs/isoc99_wscanf.c: Likewise.
7388
7389 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7390
7391         * include/time.h
7392         (__tz_compute): Replace time_t with __time64_t.
7393         (__tz_convert): Replace time_t* with __time64_t.
7394         (__offtime): Replace time_t* with __time64_t.
7395         * time/gmtime.c
7396         (__gmtime_r): Adjust call to __tz_convert.
7397         (gmtime): Likewise.
7398         * time/localtime.c
7399         (__localtime_r): Likewise.
7400         (localtime): Likewise.
7401         * time/offtime.c: Replace time_t with __time64_t.
7402         * time/tzset.c: Likewise.
7403
7404 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
7405
7406         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7407         dynamic linker unless [$(run-built-tests) = yes].
7408
7409 2018-12-03  DJ Delorie  <dj@delorie.com>
7410
7411         * support/test-container.c (check_for_unshare_hints): New.
7412         (main): Call it if unshare fails.  Add support for "su" scriptlet
7413         command.
7414
7415 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * scripts/gen-as-const.py (compute_c_consts): Take an argument
7418         'START' to indicate that start text should be output.
7419         (gen_test): Likewise.
7420         (main): Generate 'START' for first symbol or '--' line, or at end
7421         of input if not previously generated.
7422
7423 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
7424
7425         [BZ #19767]
7426         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7427         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7428         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7429         ALWAYS_USE_VSYSCALL.
7430
7431 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7432
7433         [BZ #23913]
7434         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7435         new_argv by one.
7436
7437 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
7438
7439         [BZ #23923]
7440         * locale/programs/localedef.c: Declare boolean hard_links default true.
7441         (options): Add --no-hard-links option.
7442         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7443         * locale/programs/localedef.h: Declare prototype for hard_links.
7444         * locale/programs/locfile.c (write_locale_data): Don't use hard
7445         links if hard_links is false.
7446
7447 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
7448
7449         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7450         cpu_features_basic.
7451         (__cache_sysconf): Likewise.
7452         (init_cacheinfo): Likewise.
7453         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7454         populate COMMON_CPUID_INDEX_80000007 and
7455         COMMON_CPUID_INDEX_80000008.
7456         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7457         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7458         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
7459         (init_cpu_features): Use _Static_assert on
7460         index_arch_Fast_Unaligned_Load.
7461         __get_cpuid_registers and __get_arch_feature.  Updated for
7462         cpu_features_basic.  Set stepping in cpu_features.
7463         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7464         (FEATURE_INDEX_2): New.
7465         (FEATURE_INDEX_MAX): Changed to enum.
7466         (COMMON_CPUID_INDEX_D_ECX_1): New.
7467         (COMMON_CPUID_INDEX_80000007): Likewise.
7468         (COMMON_CPUID_INDEX_80000008): Likewise.
7469         (cpuid_registers): Likewise.
7470         (cpu_features_basic): Likewise.
7471         (CPU_FEATURE_USABLE): Likewise.
7472         (bit_arch_XXX_Usable): Likewise.
7473         (cpu_features): Use cpuid_registers and cpu_features_basic.
7474         (bit_arch_XXX): Reweritten.
7475         (bit_cpu_XXX): Likewise.
7476         (index_cpu_XXX): Likewise.
7477         (reg_XXX): Likewise.
7478         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7479         <support/check.h>.
7480         (CHECK_CPU_FEATURE): New.
7481         (CHECK_CPU_FEATURE_USABLE): Likewise.
7482         (cpu_kinds): Likewise.
7483         (do_test): Print vendor, family, model and stepping.  Check
7484         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7485         (TEST_FUNCTION): Removed.
7486         Include <support/test-driver.c> instead of
7487         "../../test-skeleton.c".
7488         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7489         Check POPCNT instead of POPCOUNT.
7490         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7491
7492 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7493
7494         * scripts/gen-as-const.py (main): Avoid emitting empty line when
7495         there is no element in `consts'.
7496
7497 2018-12-01  Florian Weimer  <fweimer@redhat.com>
7498
7499         * support/support_capture_subprocess.c
7500         (support_capture_subprocess): Check that pipe descriptors have
7501         expected values.  Close original pipe descriptors in subprocess.
7502
7503 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7504
7505         [BZ #23032]
7506         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7507         attr with __pthread_default_barrierattr.
7508         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7509         attr with __pthread_default_condattr.
7510         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7511         attr with __pthread_default_mutexattr.
7512         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7513         attr with __pthread_default_rwlockattr.
7514
7515 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
7516
7517         * manual/tunables.texi (POSIX Thread Tunables): New node.
7518         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7519         * nptl/nptl-init.c: Include pthread_mutex_conf.h
7520         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7521         __pthread_tunables_init.
7522         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7523         (max_adaptive_count): Define.
7524         * nptl/pthread_mutex_conf.c: New file.
7525         * nptl/pthread_mutex_conf.h: New file.
7526         * sysdeps/generic/adaptive_spin_count.h: New file.
7527         * sysdeps/nptl/dl-tunables.list: New file.
7528         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7529         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7530         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7531         Likewise.
7532
7533 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7534
7535         [BZ #20544]
7536         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7537         * stdlib/on_exit.c (__on_exit): Likewise.
7538         * stdlib/Makefile (tests): Add tst-bz20544.
7539         * stdlib/tst-bz20544.c: New test.
7540
7541 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
7542
7543         [BZ #19767]
7544         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7545         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7546         New.
7547
7548 2018-11-30  Florian Weimer  <fweimer@redhat.com>
7549
7550         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7551         Extend error logging.
7552         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7553         symbol.
7554
7555 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7556
7557         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7558         __sigismember instead of sigismember.
7559         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7560         cancel_handler): New definitions.
7561         (do_system): Use posix_spawn instead of fork and execl and remove
7562         reentracy code.
7563         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7564         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7565         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7566         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7567         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7568         * sysdeps/unix/sysv/linux/system.c: Likewise.
7569
7570         [BZ #22834]
7571         [BZ #17490]
7572         * NEWS: Add new semantic for atfork with popen and system.
7573         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7574         fork and execl.
7575
7576 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7577
7578         [BZ #23690]
7579         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7580         modification order when accessing reloc_result->addr.
7581         * include/link.h (reloc_result): Add field init.
7582         * nptl/Makefile (tests): Add tst-audit-threads.
7583         (modules-names): Add tst-audit-threads-mod1 and
7584         tst-audit-threads-mod2.
7585         Add rules to build tst-audit-threads.
7586         * nptl/tst-audit-threads-mod1.c: New file.
7587         * nptl/tst-audit-threads-mod2.c: Likewise.
7588         * nptl/tst-audit-threads.c: Likewise.
7589         * nptl/tst-audit-threads.h: Likewise.
7590
7591 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
7592
7593         * scripts/gen-as-const.py: New file.
7594         * scripts/gen-as-const.awk: Remove.
7595         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7596         gen-as-const.py.
7597         ($(objpfx)test-as-const-%.c): Likewise.
7598
7599 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7600
7601         * elf/dl-exception.c: Include <_itoa.h>.
7602
7603 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7604
7605         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7606         returned by __f_setlk.
7607
7608 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7609             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7610
7611         * elf/Makefile (tests-internal): Add tst-create_format1.
7612         * elf/dl-exception.c (_dl_exception_create_format): Support
7613         %x, %lx and %zx.
7614         * elf/tst-create_format1.c: New file.
7615
7616 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
7617
7618         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7619         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
7620         gnulib.)
7621         * argp/argp-help.c (__argp_failure): Likewise.
7622
7623 2018-11-29  Mao Han  <han_mao@c-sky.com>
7624
7625         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7626         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7627         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7628         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7629         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7630         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7631         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7632         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7633         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7634         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7635         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7636         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7637         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7638         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7639         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7640         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7641         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7642         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7643         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7644         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7645         (R_CKCORE_TLS_TPOFF32): New defines.
7646
7647 2018-11-29  Florian Weimer  <fweimer@redhat.com>
7648
7649         * posix/Makefile (before-compile): Remove testcases.h and
7650         ptestcases.h.
7651         (generated): Add testcases.h and ptestcases.h.
7652         (testcases.h, ptestcases.h): Move to $(objpfx).
7653         (runtests.o): Add dependency on testcases.h.
7654         (runptests.o): Add dependency on ptestcases.h.
7655         * posix/testcases.h, posix/ptestcases.h: Remove files.
7656         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7657         not touch posix/testcases.h and posix/ptestcases.h.
7658
7659 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7660
7661         support: Add signal support to support_capture_subprocess_check.
7662         * support/capture_subprocess.h (support_capture_subprocess_check):
7663         Adjust comment and rename parameter.
7664         * support/support_capture_subprocess_check.c
7665         (print_actual_status): New function.
7666         (support_capture_subprocess_check): Support negative
7667         status_or_signal.  Call print_actual_status.
7668         * support/tst-support_capture_subprocess.c (do_test): Call
7669         support_capture_subprocess_check.
7670         * libio/tst-vtables-common.c (termination_status)
7671         (init_termination_status): Remove.
7672         (check_for_termination): Adjust support_capture_subprocess_check
7673         call.
7674         (do_test): Remove call to init_termination_status.
7675
7676 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
7677
7678         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7679         source directory instead of a copy.
7680         (CommandList.create_copy_dir): Remove.
7681
7682 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
7683
7684         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7685
7686 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7687
7688         * support/support.h (support_quote_string): Do not use str
7689         parameter name.
7690
7691 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
7692
7693         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7694         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7695
7696 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7697
7698         * support/support.h (support_quote_string): Declare.
7699         * support/support_quote_string.c: New file.
7700         * support/tst-support_quote_string.c: Likewise.
7701         * support/Makefile (libsupport-routines): Add
7702         support_quote_string.
7703         (tests): Add tst-support_quote_string.
7704
7705 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7706
7707         [BZ #23927]
7708         CVE-2018-19591
7709         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7710         descriptor leak in case of ENODEV error.
7711
7712 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
7713
7714         [BZ #19767]
7715         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7716         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7717         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7718
7719 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
7720
7721         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7722         Error for unknown lines.
7723
7724 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
7725
7726         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7727         Touch additional files.
7728
7729 2018-11-26  Florian Weimer  <fweimer@redhat.com>
7730
7731         [BZ #23907]
7732         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7733         double-frees.
7734
7735 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
7736
7737         [BZ #19767]
7738         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7739         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7740         SHARED.  Include sysdep.h.
7741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7742         ALWAYS_USE_VSYSCALL.
7743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7744         ALWAYS_USE_VSYSCALL.
7745
7746 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
7747
7748         [BZ #19767]
7749         * nptl/Makefile (tests-static): Add tst-cond11-static.
7750         (tests): Likewise.
7751         * nptl/tst-cond11-static.c: New File.
7752         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7753         tst-affinity-static.
7754         (tests): Likewise.
7755         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7756         instead of SHARED.
7757         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7758         (USE_VSYSCALL): Likewise.
7759         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7760         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7761         instead of SHARED.
7762         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7763         SHARED.
7764         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7765         New.
7766
7767 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
7768
7769         [BZ #23915]
7770         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7771         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7772         Undefine.
7773
7774 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
7775
7776         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7777         (tst-cet-legacy-1a-ARGS): New.
7778         ($(objpfx)tst-cet-legacy-1a): New target.
7779         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7780
7781 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * conform/conformtest.py (CompileSubTest.__init__): Set
7784         self.run_early to False.
7785         (ExecuteSubTest.__init__): Likewise.
7786         (HeaderTests.run): Try running all non-optional, non-XFAILed
7787         compilation tests in a single execution of the compiler.
7788
7789         * conform/conformtest.py (CompileSubTest): New class.
7790         (ExecuteSubTest): Likewise.
7791         (ElementTest.run): Rename to gen_subtests.  Append tests to
7792         self.subtests instead of running them.
7793         (ConstantTest.run): Likewise.
7794         (SymbolTest.run): Likewise.
7795         (TypeTest.run): Likewise.
7796         (TagTest.run): Likewise.
7797         (FunctionTest.run): Likewise.
7798         (VariableTest.run): Likewise.
7799         (MacroFunctionTest.run): Likewise.
7800         (MacroStrTest.run): Likewise.
7801         (HeaderTests.handle_test_line): Generate subtests for tests.
7802         (HeaderTests.run): Run subtests for tests.
7803
7804 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7805
7806         * math/Versions (GLIBC_2.29): Add pow.
7807         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7808         symbol.
7809         * math/w_pow.c: New file.
7810         * sysdeps/i386/fpu/w_pow.c: New file.
7811         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7812         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7813         and add necessary aliases.
7814         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7815         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7816         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7817         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7818         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7819         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7820         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7821         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7822         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7823         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7824         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7825         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7826         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7827         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7828         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7833         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7834         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7835         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7836         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7837         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7838         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7839         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7840         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7841         __pow.
7842         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7843         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7844         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7845
7846 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7847
7848         * math/Versions (GLIBC_2.29): Add log2.
7849         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7850         symbol.
7851         * math/w_log2.c: New file.
7852         * sysdeps/i386/fpu/w_log2.c: New file.
7853         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7854         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7855         and add necessary aliases.
7856         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7857         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7858         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7859         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7860         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7861         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7862         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7863         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7864         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7865         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7866         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7867         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7868         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7869         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7870         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7875         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7876         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7877         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7878         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7879         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7880         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7881         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7882
7883 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7884
7885         * math/Versions (GLIBC_2.29): Add log.
7886         * math/w_log_compat.c (__log_compat): Change to versioned compat
7887         symbol.
7888         * math/w_log.c: New file.
7889         * sysdeps/i386/fpu/w_log.c: New file.
7890         * sysdeps/ia64/fpu/e_log.S: Update.
7891         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7892         and add necessary aliases.
7893         * sysdeps/ieee754/dbl-64/w_log.c: New file.
7894         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7895         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7896         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7897         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7898         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7899         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7900         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7901         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7902         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7903         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7904         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7905         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7906         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7907         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7912         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7913         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7914         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7915         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7916         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7917         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7918         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7919         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7920         __log.
7921         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7922         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7923         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7924         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7925
7926 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7927
7928         * math/Versions (GLIBC_2.29): Add exp and exp2.
7929         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7930         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7931         * math/w_exp_compat.c (__exp_compat): Likewise.
7932         * math/w_exp.c: New file.
7933         * math/w_exp2.c: New file.
7934         * sysdeps/i386/fpu/w_exp.c: New file.
7935         * sysdeps/i386/fpu/w_exp2.c: New file.
7936         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7937         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7938         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7939         and add necessary aliases.
7940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7941         and add necessary aliases.
7942         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7943         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7944         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7945         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7946         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7947         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7948         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7949         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7950         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7951         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7952         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7953         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7954         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7955         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7956         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7957         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7958         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7963         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7964         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7965         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7966         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7967         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7968         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7969         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7970         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7971         (__ieee754_exp): Rename to __exp.
7972         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7973         (__ieee754_exp): Rename to __exp.
7974         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7975         (__ieee754_exp): Rename to __exp.
7976         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7977         __exp.
7978         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7979
7980 2018-11-20  DJ Delorie  <dj@redhat.com>
7981
7982         * malloc/malloc.c (tcache_entry): Add key field.
7983         (tcache_put): Set it.
7984         (tcache_get): Likewise.
7985         (_int_free): Check for double free in tcache.
7986         * malloc/tst-tcfree1.c: New.
7987         * malloc/tst-tcfree2.c: New.
7988         * malloc/Makefile: Run the new tests.
7989         * manual/probes.texi: Document memory_tcache_double_free probe.
7990
7991         * dlfcn/dlerror.c (check_free): Prevent double frees.
7992
7993 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
7994
7995         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7996
7997 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
7998
7999         * conform/conformtest.py (ElementTest.run): Use unique identifiers
8000         in tests.  Use names for format arguments.
8001         (ConstantTest.run): Likewise.
8002         (SymbolTest.run): Likewise.
8003         (TypeTest.run): Likewise.
8004         (TagTest.run): Likewise.
8005         (FunctionTest.run): Likewise.
8006         (VariableTest.run): Likewise.
8007         (MacroFunctionTest.run): Likewise.
8008         (MacroStrTest.run): Likewise.
8009         (HeaderTests.__init__): Set self.num_tests.
8010         (HeaderTests.handle_test_line): Set test.num.  Increment
8011         self.num_tests.
8012
8013 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8014
8015         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
8016         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
8017         SEEK_SET.
8018
8019 2018-11-19  Mao Han  <han_mao@c-sky.com>
8020
8021         * scripts/config.guess: Update to version 2018-08-29.
8022         * scripts/config.sub: Update to version 2018-08-29.
8023
8024 2018-11-19  Florian Weimer  <fweimer@redhat.com>
8025
8026         support: Print timestamps in timeout handler.
8027         * support/support_test_main.c (print_timestamp): New function.
8028         (signal_handler): Use it to print the termination time and the
8029         time of the last write to standard output.
8030
8031 2018-11-16  Zack Weinberg  <zackw@panix.com>
8032             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8033
8034         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
8035         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
8036         argument.
8037         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
8038         and add flags argument.  Check flags instead of __ldbl_is_dbl when
8039         deciding whether to set is_long_double.
8040         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
8041         passing zero for flags argument.
8042         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
8043
8044         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8045         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
8046         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
8047         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
8048         variable names.  Remove libc_hidden_def/libc_hidden_proto from
8049         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
8050         longer called from within the library.
8051         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
8052         for __nldbl___vstrfmon_l, declare it explicitly.
8053
8054         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
8055
8056 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8057
8058         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
8059         macros
8060         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
8061         F_SETLK64, F_SETLKW64, respectively.
8062         * sysdeps/mach/hurd/f_setlk.c: New file.
8063         * sysdeps/mach/hurd/f_setlk.h: New file.
8064         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
8065         f_setlk.
8066         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
8067         (__libc_fcntl): Move non-flock operations to...
8068         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
8069         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
8070
8071 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8072
8073         mktime: DEBUG_MKTIME cleanup
8074         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
8075         And it’s no longer needed now that glibc and Gnulib both have
8076         their own testing mechanisms for mktime.
8077         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
8078
8079         mktime: fix non-EOVERFLOW errno handling
8080         [BZ#23789]
8081         mktime was not properly reporting failures when the underlying
8082         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
8083         them like EOVERFLOW failures, and set errno to EOVERFLOW.
8084         The problem could happen on non-glibc platforms, with Gnulib.
8085         * time/mktime.c (guess_time_tm): Remove, replacing with ...
8086         (tm_diff): ... this simpler function, which does not change errno.
8087         All callers changed to deal with errno themselves.
8088         (ranged_convert, __mktime_internal): Return failure immediately if
8089         the underlying function reports any failure other than EOVERFLOW.
8090         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
8091         gap code fails.
8092
8093         mktime: fix bug with Y2038 DST transition
8094         [BZ#23789]
8095         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
8096         mishandle a DST transition that jumps over the Y2038 boundary.
8097         No such DST transitions are known so this is only a theoretical
8098         bug, but we might as well do things right.
8099
8100         mktime: make more room for overflow
8101         [BZ#23789]
8102         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
8103         This is so that we can add tm_diff results to a previous guess,
8104         which will be useful in a later patch.
8105
8106         mktime: simplify offset guess
8107         [BZ#23789]
8108         * time/mktime.c (__mktime_internal): Omit excess precision.
8109
8110         mktime: new test for mktime failure
8111         [BZ#23789]
8112         Based on a test suggested by Albert Aribaud in:
8113         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
8114         * time/Makefile (tests): Add bug-mktime4.
8115         * time/bug-mktime4.c: New file.
8116
8117         mktime: fix EOVERFLOW bug
8118         [BZ#23789]
8119         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
8120         Include libc-config.h, not config.h, for __set_errno.
8121         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
8122
8123 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8124
8125         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
8126         __attribute_copy__ to copy attributes from name. Drop static qualifier
8127         to avoid warnings about leaf attribute not having effect on static
8128         functions.
8129
8130 2018-11-13  Florian Weimer  <fweimer@redhat.com>
8131
8132         * malloc/malloc.c (fastbin_push_entry): New function.
8133         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
8134         (REMOVE_FB): Remove macro.
8135         (_int_malloc): Use fastbin_pop_entry and reindent.
8136         (_int_free): Use fastbin_push_entry.
8137         (malloc_consolidate): Use atomic_exchange_acquire.
8138
8139 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
8140
8141         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
8142         alias attribute, not with strong_alias.
8143
8144         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
8145         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
8146         with additional parameter thread.
8147         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
8148         in terms of __hidden_ver2.
8149         (hidden_tls_def): New macro.
8150         (libc_hidden_tls_def): Likewise.
8151         (rtld_hidden_tls_def): Likewise.
8152         (libm_hidden_tls_def): Likewise.
8153         (libmvec_hidden_tls_def): Likewise.
8154         (libresolv_hidden_tls_def): Likewise.
8155         (librt_hidden_tls_def): Likewise.
8156         (libdl_hidden_tls_def): Likewise.
8157         (libnss_files_hidden_tls_def): Likewise.
8158         (libnsl_hidden_tls_def): Likewise.
8159         (libnss_nisplus_hidden_tls_def): Likewise.
8160         (libutil_hidden_tls_def): Likewise.
8161         (libutil_hidden_tls_def): Likweise.
8162         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
8163         libc_hidden_tls_def.
8164         (__sim_disabled_exceptions_thread): Likewise.
8165         (__sim_round_mode_thread): Likewise.
8166
8167         * sysdeps/sparc/sparc-ifunc.h [SHARED]
8168         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
8169         copy attributes from name.
8170
8171 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
8172
8173         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
8174         Use __attribute_copy__ to copy attributes from name.
8175
8176         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
8177         with __hidden_ver1 call.
8178         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
8179         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
8180         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
8181         (__cosf): Do not declare here.
8182         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
8183         (__sincosf): Do not declare here.
8184         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
8185         (__sinf): Do not declare here.
8186
8187         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
8188         (__BIG_ENDIAN): Likewise.
8189         (__BYTE_ORDER): Likewise.
8190         (strong_alias): Likewise.
8191         (_strong_alias): Likewise.
8192
8193 2018-11-12  Florian Weimer  <fweimer@redhat.com>
8194
8195         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
8196         function.  Move after the definition of in_smallbin_range.  Do not
8197         use __builtin_expect for paths that lead to a noreturn function.
8198         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
8199         because it is unclear whether this is in fact an unlikely
8200         condition.
8201         (_int_malloc, _int_free): Adjust.
8202         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
8203         variables.
8204         * malloc/arena.c (heap_trim): Likewise.
8205
8206 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8207
8208         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
8209         it, free it if needed.
8210         (reauthenticate): Test and use ccwdir.
8211         (child_init_port): In non-resetids case, test and use ccwdir.
8212         (child_chdir): New nested function to set ccwdir.
8213         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
8214         * hurd/hurd/port.h (_hurd_port_move): New function.
8215         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
8216         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
8217         * hurd/Versions (_hurd_port_move): Export function.
8218         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
8219         symbol.
8220         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
8221         of dtablesize for allocating dtable_cloexec.
8222
8223 2018-11-09  Martin Sebor  <msebor@redhat.com>
8224
8225         * include/libc-symbols.h (__attribute_copy__): Define macro unless
8226         it's already defined.
8227         (_strong_alias): Use __attribute_copy__.
8228         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
8229         * misc/sys/cdefs.h (__attribute_copy__): New macro.
8230         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
8231         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
8232         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
8233         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
8234         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
8235         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
8236         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
8237         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
8238         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
8239         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
8240         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
8241         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
8242         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
8243         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
8244         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
8245         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
8246         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
8247
8248 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8249
8250         * misc/tst-efgcvt.c: Include support/check.h and
8251         support/test-driver.c.  Do not include test-skeleton.c.
8252         (error_count): Remove.
8253         (output_error): Replace increments to error_count with calls to
8254         support_record_failure.
8255         (output_r_error): Likewise.
8256         (special): Likewise.
8257         (do_test): Unconditionally return zero.
8258         (TEST_FUNCTION): Remove.
8259
8260 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
8261
8262         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
8263         not $(@D)/scratch.
8264         ($(linknamespace-header-tests)): Likewise.
8265
8266         * conform/conformtest.py: New file.
8267         * conform/conformtest.pl: Remove.
8268         * conform/GlibcConform.pm: Likewise.
8269         * conform/glibcconform.py (KEYWORDS_C90): New constant.
8270         (KEYWORDS_C99): Likewise.
8271         (KEYWORDS): Likewise.
8272         * conform/Makefile ($(conformtest-header-tests)): Use
8273         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
8274         option.  Use --header instead of --headers.
8275         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
8276         function entries.
8277         * conform/data/spawn.h-data: Likewise.
8278         * conform/data/fcntl.h-data (openat): Add space after function
8279         name.
8280         * conform/data/wchar.h-data (wcscasecmp): Likewise.
8281         (wcscasecmp_l): Likewise.
8282         * conform/data/termios.h-data (c_cc): Add space after element
8283         name.
8284
8285 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8286
8287         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
8288         instead of manually comparing and reporting mismatching strings.
8289         * misc/tst-ldbl-error.c (do_one_test): Likewise.
8290         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
8291
8292 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
8293
8294         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
8295         __ASSUME_SOCKETCALL.
8296         * sysdeps/unix/sysv/linux/i386/kernel-features.h
8297         (__ASSUME_SOCKETCALL): Remove.
8298         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8299         (__ASSUME_SOCKETCALL): Likewise.
8300         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8301         (__ASSUME_SOCKETCALL): Likewise.
8302         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8303         (__ASSUME_SOCKETCALL): Likewise.
8304         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8305         (__ASSUME_SOCKETCALL): Likewise.
8306         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8307         (__ASSUME_SOCKETCALL): Likewise.
8308         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8309         (__ASSUME_SOCKETCALL): Likewise.
8310
8311 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
8312
8313         [BZ #23509]
8314         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8315         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8316         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8317         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8318         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
8319         lc_unknown.
8320
8321 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
8322
8323         [BZ #17630]
8324         * resolv/tst-resolv-network.c: Add test for getnetbyname.
8325
8326 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
8327
8328         [BZ #23867]
8329         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8330         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8331         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8332         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8333
8334 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8335
8336         * support/support_test_compare_string.c
8337         (support_test_compare_string): Fix printf format.
8338
8339 2018-11-07  Florian Weimer  <fweimer@redhat.com>
8340
8341         Implement TEST_COMPARE_STRING.
8342         * support/check.h (TEST_COMPARE_STRING): Define.
8343         (support_test_compare_string): Declare.
8344         * support/Makefile (libsupport-routines): Add
8345         support_test_compare_string.
8346         (tests): Add tst-test_compare_string.
8347         * support/support_test_compare_string.c: New file.
8348         * support/tst-test_compare_string.c: Likewise.
8349
8350 2018-11-07  Andreas Schwab  <schwab@suse.de>
8351
8352         [BZ #23864]
8353         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8354         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8355         Undef.
8356
8357 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
8358
8359         [BZ #23862]
8360         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8361         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8362         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8363         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8364         Likewise.
8365
8366 2018-11-06  Florian Weimer  <fweimer@redhat.com>
8367
8368         [BZ #17405]
8369         * posix/Makefile (routines): Add spawn_faction_addchdir.
8370         (tests): Add tst-spawn-chdir.
8371         * posix/Versions (GLIBC_2.29): Add
8372         posix_spawn_file_actions_addchdir_np.
8373         * posix/spawn_faction_addchdir.c: New file.
8374         * posix/spawn_faction_destroy.c
8375         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8376         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8377         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8378         chdir_action.
8379         * posix/tst-spawn-chdir.c: New file.
8380         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8381         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8382         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8383         posix_spawn_file_actions_addchdir_np.
8384         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8385         Likewise.
8386         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8387         Likewise.
8388         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8389         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8390         Likewise.
8391         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8392         Likewise.
8393         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8394         Likewise.
8395         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8396         Likewise.
8397         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8398         Likewise.
8399         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8400         Likewise.
8401         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8402         (GLIBC_2.29): Likewise.
8403         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8404         (GLIBC_2.29): Likewise.
8405         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8406         (GLIBC_2.29): Likewise.
8407         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8408         (GLIBC_2.29): Likewise.
8409         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8410         Likewise.
8411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8412         (GLIBC_2.29): Likewise.
8413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8414         (GLIBC_2.29): Likewise.
8415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8416         (GLIBC_2.29): Likewise.
8417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8418         (GLIBC_2.29): Likewise.
8419         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8420         Likewise.
8421         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8422         Likewise.
8423         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8424         Likewise.
8425         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8426         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8427         Likewise.
8428         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8429         Likewise.
8430         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8431         Likewise.
8432         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8433         Likewise.
8434
8435 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8436
8437         * misc/Makefile (tests): Add tst-ldbl-error.
8438         * misc/tst-ldbl-error.c: New file.
8439
8440 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8441
8442         * misc/Makefile (tests): Add tst-ldbl-warn.
8443         * misc/tst-ldbl-warn.c: New file.
8444
8445 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8446
8447         * argp/Makefile (tests): Add tst-ldbl-argp.
8448         * argp/tst-ldbl-argp.c: New file.
8449
8450 2018-11-05  Arjun Shankar  <arjun@redhat.com>
8451
8452         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8453         __gconv_path_elem and call __gconv_get_path unconditionally.
8454
8455 2018-11-05  Andreas Schwab  <schwab@suse.de>
8456
8457         [BZ #22927]
8458         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8459         creating the first helper thread failed.
8460
8461 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8462
8463         * sysdeps/mach/hurd/msync.c: New file.
8464
8465 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8466
8467         * support/shell-container.c (copy_func): Call
8468         support_copy_file_range instead of copy_file_range to support
8469         cross-device copies.
8470
8471 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8472
8473         * support/test-container.c: Include <libc-pointer-arith.h> for
8474         ALIGN_UP.
8475
8476 2018-11-01  Zong Li  <zong@andestech.com>
8477
8478         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8479         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8480         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8481         (__FP_FRAC_SET_8): Add implementation for RV32 use.
8482
8483         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8484         variable to avoid overlap arguments.
8485
8486 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
8487
8488         * posix/bug-regex22.c (main): Use puts with distinct error
8489         messages for unexpected success of re_compile_pattern, not printf
8490         with NULL argument to %s.
8491
8492         * stdio-common/bug22.c: Include <libc-diag.h>.
8493         (do_test): Disable -Wformat-overflow= warnings around fprintf
8494         calls outputting more than INT_MAX characters.
8495         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8496         around printf call with NULL %s argument.
8497
8498         [BZ #23848]
8499         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8500         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8501         Undefine.
8502         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8503         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8504         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8505         (__ASSUME_SENDTO_SYSCALL): Likewise.
8506         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8507         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8508         [!__arch64__].
8509         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8510         (__ASSUME_CONNECT_SYSCALL): Likewise.
8511         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8512         (__ASSUME_RECVFROM_SYSCALL): Likewise.
8513         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8514         Define.
8515         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8516         Likewise.
8517         [__LINUX_KERNEL_VERSION >= 0x040400]
8518         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8519         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8520         Remove.
8521         (listen): Likewise.
8522         (setsockopt): Likewise.
8523
8524 2018-11-01  Fredrik Noring  <noring@nocrew.org>
8525
8526         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8527         with the ISA override.
8528
8529 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
8530
8531         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8532         #endif.
8533
8534 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8535
8536         * manual/errno.texi (EIEIO): Document how translators should
8537         translate the error message.
8538         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
8539         printing trailing whitespaces refused by git.
8540         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8541         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8542         * hurd/Makefile (user-interfaces): Add pci.
8543
8544 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
8545
8546         * conform/linknamespace.py: New file.
8547         * conform/linknamespace.pl: Remove file.
8548         * conform/Makefile ($(linknamespace-header-tests)): Use
8549         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
8550         option.
8551
8552 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8553
8554         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8555         memory leaks.
8556
8557 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8558
8559         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8560
8561 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8562
8563         * stdlib/tst-strtod-overflow.c (do_test): Switch to
8564         support_blob_repeat.
8565
8566 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8567
8568         Avoid spurious test failures in stdlib/test-bz22786.
8569         * support/Makefile (libsupport-routines): Add blob_repeat.
8570         (tests): Add tst-support_blob_repeat.
8571         * support/blob_repeat.h: New file.
8572         * support/blob_repeat.c: Likewise.
8573         * support/tst-support_blob_repeat.c: Likewise.
8574         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8575         support_blob_repeat_allocate.
8576
8577 2018-10-30  Andreas Schwab  <schwab@suse.de>
8578
8579         [BZ #23125]
8580         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8581         Don't use tail call.
8582         * elf/tst-unwind-main.c: New file.
8583         * elf/Makefile (tests): Add tst-unwind-main.
8584         (CFLAGS-tst-unwind-main.c): Define.
8585
8586 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
8587
8588         [BZ #23791]
8589         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8590         n_cs_precedes to 0.
8591         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8592
8593 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
8594
8595         * conform/glibcconform.py: Do not import shutil.
8596         (list_exported_functions): Use tempfile.TemporaryDirectory instead
8597         of mkdtemp.
8598
8599         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
8600         critic_missing for versions before 3.4.
8601         * configure: Regenerated.
8602         * manual/install.texi (Tools for Compilation): Document
8603         requirement for Python to build glibc.
8604         * INSTALL: Regenerated.
8605         * Rules [PYTHON]: Make code unconditional.
8606         * benchtests/Makefile [PYTHON]: Likewise.
8607         * conform/Makefile [PYTHON]: Likewise.
8608         * manual/Makefile [PYTHON]: Likewise.
8609         * math/Makefile [PYTHON]: Likewise.
8610
8611 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8612
8613         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8614         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8615         answer to interrupt_operation, return EIEIO instead of EINTR.
8616         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8617         _hurd_intr_rpc_msg_about_to global point to start of controlled
8618         assembly snippet. Make it check canceled flag.
8619         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8620         the _hurd_intr_rpc_msg_about_to point.
8621         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8622         issue, remove cancel flag check.
8623
8624 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
8625
8626         * scripts/build-many-glibcs.py: Remove compatibility for missing
8627         os.cpu_count and re.fullmatch.
8628
8629 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8630
8631         [BZ #23822]
8632         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8633         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8634         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8635
8636 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8637
8638         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8639         macro.
8640
8641 2018-10-25  Florian Weimer  <fweimer@redhat.com>
8642
8643         [BZ #23562]
8644         [BZ #23821]
8645         XFAIL siginfo_t si_band conform test on sparc64.
8646         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8647         (__SI_BAND_TYPE): Only override long int default type on sparc64.
8648         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8649         (conformtest-xfail-conds): Add sparc64-linux.
8650         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8651         sparc64.
8652         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8653
8654 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8655
8656         * elf/elf.h (NT_MIPS_DSP): New macro.
8657         (NT_MIPS_FP_MODE): Likewise.
8658
8659 2018-10-25  Zong Li  <zong@andestech.com>
8660
8661         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8662         name by adding the file extension (.so).
8663
8664 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8665
8666         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8667         (test-xfail-ISO11/threads.h/linknamespace,
8668         test-xfail-ISO11/threads.h/conform): Add.
8669
8670 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
8671
8672         * math/gen-libm-test.py: Import os.
8673         (ALL_FLOATS_MANUAL): New constant.
8674         (ALL_FLOATS_SUFFIX): Likewise.
8675         (Ulps.all_functions): New function.
8676         (real_all_ulps): Likewise.
8677         (generate_err_table_sub): Likewise.
8678         (generate_err_table): Likewise.
8679         (main): Handle -s and -m options.
8680         * manual/libm-err-tab.pl: Remove.
8681         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8682         instead of libm-err-tab.pl.
8683         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8684         != no].
8685         * manual/install.texi (Tools for Compilation): Document
8686         requirement for Python to build manual.
8687         * INSTALL: Regenerated.
8688
8689 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8690
8691         * bits/time64.h: New file.
8692         * include/time.h: Replace internal_time_t with __time64_t.
8693         * posix/bits/types (__time64_t): Add.
8694         * stdlib/Makefile: Add bits/time64.h to includes.
8695         * time/tzfile.c: Replace internal_time_t with __time64_t.
8696
8697 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8698
8699         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8700         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8701         __posix_spawn_file_actions_init, __posix_spawnattr_init,
8702         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8703         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8704         prototype.
8705         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8706         * posix/spawn_faction_addclose.c
8707         (__posix_spawn_file_actions_addclose): Add hidden definition.
8708         * posix/spawn_faction_adddup2.c
8709         (__posix_spawn_file_actions_adddup2): Likewise.
8710         * posix/spawn_faction_destroy.c
8711         (__posix_spawn_file_actions_destroy): Likewise.
8712         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8713         Likewise.
8714         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8715         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8716         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8717         Likewise.
8718         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8719         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8720         Likewise.
8721
8722 2018-10-24  Andreas Schwab  <schwab@suse.de>
8723
8724         [BZ #18093]
8725         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8726         format cache.
8727         * elf/cache.c (print_cache): Likewise.
8728
8729 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8730
8731         * bits/timesize.h: New file.
8732         * stdlib/Makefile (headers): Add bits/timesize.h.
8733         * sysdeps/unix/sysv/linux/bits/msq-pad.h
8734         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8735         * sysdeps/unix/sysv/linux/bits/sem-pad.h
8736         (__SEM_PAD_AFTER_TIME): Likewise.
8737         * sysdeps/unix/sysv/linux/bits/shm-pad.h
8738         (__SHM_PAD_AFTER_TIME): Likewise.
8739         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8740         (__MSQ_PAD_BEFORE_TIME): Likewise.
8741         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8742         (__SEM_PAD_BEFORE_TIME): Likewise.
8743         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8744         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8745         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8746         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8747         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8748         (__MSQ_PAD_BEFORE_TIME): Likewise.
8749         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8750         (__SEM_PAD_BEFORE_TIME): Likewise.
8751         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8752         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8753         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8754         (__MSQ_PAD_BEFORE_TIME): Likewise.
8755         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8756         (__SEM_PAD_BEFORE_TIME): Likewise.
8757         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8758         (__SHM_PAD_BEFORE_TIME): Likewise.
8759         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8760         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8761         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8762
8763 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
8764
8765         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8766         USE_RDTSCP is defined.
8767         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8768         USE_RDTSCP is defined.
8769
8770 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8771
8772         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8773         defined.
8774
8775         [BZ #23709]
8776         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8777         independently of other flags.
8778
8779 2018-10-23  Florian Weimer  <fweimer@redhat.com>
8780
8781         * time/tst-mktime2.c (N_STRINGS): Remove.
8782         (set_timezone): New function.
8783         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
8784         (mktime_test1): Report localtime failure and check errno value.
8785         Use TEST_COMPARE.
8786         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8787         (do_test): Remove alarm call. Use set_timezone and array_length.
8788
8789 2018-10-23  Andreas Schwab  <schwab@suse.de>
8790
8791         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8792         (__start_context): Use END instead of PSEUDO_END.
8793
8794 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
8795
8796         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8797         version to 4.19.
8798
8799         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8800         version to 4.19.
8801
8802         [BZ #23793]
8803         * wcsmbs/c32rtomb.c: New file.
8804         * wcsmbs/mbrtoc32.c: Likewise.
8805         * wcsmbs/tst-c32-state.c: Likewise.
8806         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8807         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8808         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8809         (tests): Add tst-c32-state.
8810         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8811         $(gen-locales).
8812
8813 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8814
8815         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8816         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8817
8818 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
8819
8820         [BZ #23794]
8821         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8822         pair and return 0 in that case, and use saved character to
8823         interpret following character.
8824         * wcsmbs/tst-c16-surrogate.c: New file.
8825         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8826         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8827         Depend on $(gen-locales)
8828
8829 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
8830
8831         [BZ #23562]
8832         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8833         (struct siginfo_t): Use correct type for si_band.
8834
8835 2018-10-19  Florian Weimer  <fweimer@redhat.com>
8836
8837         [BZ #23689]
8838         * resource/bits/types/struct_rusage.h (struct rusage): Update
8839         comment on struct.  Remove extraneous field comment.
8840
8841 2018-10-18  David S. Miller  <davem@davemloft.net>
8842
8843         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8844         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8845         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8846         sysdep_routines in subdir elf.
8847         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8848         version for __vdso_clock_gettime.
8849         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8850         Define.
8851         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8852         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8853
8854         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8855
8856 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8857
8858         * sysdeps/i386/init-arch.h: Removed.
8859         * sysdeps/i386/i586/init-arch.h: Likewise.
8860         * sysdeps/i386/i686/init-arch.h: Likewise.
8861         * sysdeps/i386/i686/hp-timing.h: Likewise.
8862         * sysdeps/x86_64/hp-timing.h: Likewise.
8863         * sysdeps/i386/isa.h: New file.
8864         * sysdeps/i386/i586/isa.h: Likewise.
8865         * sysdeps/i386/i686/isa.h: Likewise.
8866         * sysdeps/x86_64/isa.h: Likewise.
8867         * sysdeps/x86/hp-timing.h: New file.
8868         * sysdeps/x86/init-arch.h: Include <isa.h>.
8869
8870 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8871
8872         * math/libm-test-pow.inc (pow_test_data): Do not allow
8873         divide-by-zero exception for pow(+/- 0, -Inf).
8874
8875 2018-10-17  Zack Weinberg  <zackw@panix.com>
8876
8877         * manual/job.texi (Job Control is Optional): Remove node, as
8878         job control has not been optional in quite some time.
8879         (Job Control): Mention briefly that systems older than
8880         POSIX.1-2001 might not support job control.
8881         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8882         defined on systems conforming to POSIX.1-2001.
8883
8884 2018-10-17  Arjun Shankar  <arjun@redhat.com>
8885
8886         [BZ #22062]
8887         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8888         indentation.
8889         * (__gconv_read_conf): Mark function static.
8890         * (once): New static variable.
8891         * (__gconv_load_conf): New function.
8892         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8893         * iconv/gconv_db.c (once): Remove static variable.
8894         * (__gconv_compare_alias): Use __gconv_load_conf instead of
8895         __gconv_read_conf.
8896         * (__gconv_find_transform): Likewise.
8897         * iconv/tst-iconv-mt.c: New test.
8898         * iconv/Makefile: Add tst-iconv_mt.
8899
8900 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8901
8902         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8903         bits/shm-pad.h.
8904         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8905         (shmatt_t): Define as __syscall_ulong_t.
8906         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8907         and [__SHM_PAD_AFTER_TIME].
8908         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8909         Define shm_segsz and associated padding based on
8910         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8911         Use __syscall_ulong_t instead of unsigned long int.
8912         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8913         unsigned long int.
8914         [__USE_MISC] (struct shm_info): Likewise.
8915         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8916         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8917         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8918         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8919         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8920         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8921         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8922         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8923         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8924         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8925         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8926
8927         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8928         bits/shmlba.h.
8929         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8930         (SHMLBA): Remove macro.
8931         (__getpagesize): Remove function declaration.
8932         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8933         <bits/shmlba.h>.
8934         (SHMLBA): Remove macro.
8935         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8936         <bits/shmlba.h>.
8937         (SHMLBA): Remove macro.
8938         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8939         <bits/shmlba.h>.
8940         (SHMLBA): Remove macro.
8941         (__getpagesize): Remove function declaration.
8942         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8943         <bits/shmlba.h>.
8944         (SHMLBA): Remove macro.
8945         (__getshmlba): Remove function declaration.
8946         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8947         (SHMLBA): Remove macro.
8948         (__getpagesize): Remove function declaration.
8949         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8950         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8951         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8952         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8953         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8954         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8955         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8956         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8957         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8958         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8959
8960 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
8961
8962         [BZ #23275]
8963         * nptl/tst-mutex10.c: New File.
8964         * nptl/Makefile (tests): Add tst-mutex10.
8965         (tst-mutex10-ENV): New variable.
8966         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8967         Ensure that elision path is used if elision is available.
8968         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8969         Likewise.
8970         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8971         Likewise.
8972         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8973         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8974         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8975         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8976         Likewise.
8977         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8978         (__pthread_mutex_cond_lock_adjust): Likewise.
8979         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8980         Likewise.
8981         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8982         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8983         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8984         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8985         Add comments.
8986         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8987         Use atomic_load_relaxed and atomic_store_relaxed.
8988         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8989         Use atomic_store_relaxed.
8990
8991 2018-10-17  Andreas Schwab  <schwab@suse.de>
8992
8993         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8994         * crypt/badsalttest.c (TIMEOUT): Likewise.
8995         * crypt/sha256c-test.c (TIMEOUT): Likewise.
8996         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8997         * io/test-lfs.c (TIMEOUT): Likewise.
8998         * libio/tst-atime.c (TIMEOUT): Likewise.
8999         * localedata/tst-leaks.c (TIMEOUT): Likewise.
9000         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
9001         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
9002         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
9003         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
9004         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
9005         * nptl/tst-cond11.c (TIMEOUT): Likewise.
9006         * nptl/tst-cond14.c (TIMEOUT): Likewise.
9007         * nptl/tst-cond15.c (TIMEOUT): Likewise.
9008         * nptl/tst-cond24.c (TIMEOUT): Likewise.
9009         * nptl/tst-cond25.c (TIMEOUT): Likewise.
9010         * nptl/tst-kill2.c (TIMEOUT): Likewise.
9011         * nptl/tst-kill3.c (TIMEOUT): Likewise.
9012         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
9013         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
9014         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
9015         * nptl/tst-once2.c (TIMEOUT): Likewise.
9016         * nptl/tst-once3.c (TIMEOUT): Likewise.
9017         * nptl/tst-once4.c (TIMEOUT): Likewise.
9018         * nptl/tst-robust8.c (TIMEOUT): Likewise.
9019         * nptl/tst-robust9.c (TIMEOUT): Likewise.
9020         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
9021         * nptl/tst-sem14.c (TIMEOUT): Likewise.
9022         * nptl/tst-sem6.c (TIMEOUT): Likewise.
9023         * nptl/tst-signal3.c (TIMEOUT): Likewise.
9024         * nptl/tst-spin4.c (TIMEOUT): Likewise.
9025         * nptl/tst-tls3.c (TIMEOUT): Likewise.
9026         * nptl/tst-tls4.c (TIMEOUT): Likewise.
9027         * posix/tst-chmod.c (TIMEOUT): Likewise.
9028         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
9029         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
9030         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
9031         * posix/tst-regex2.c (TIMEOUT): Likewise.
9032         * posix/tst-waitid.c (TIMEOUT): Likewise.
9033         * rt/tst-aio.c (TIMEOUT): Likewise.
9034         * rt/tst-aio10.c (TIMEOUT): Likewise.
9035         * rt/tst-aio4.c (TIMEOUT): Likewise.
9036         * rt/tst-aio5.c (TIMEOUT): Likewise.
9037         * rt/tst-aio6.c (TIMEOUT): Likewise.
9038         * rt/tst-aio64.c (TIMEOUT): Likewise.
9039         * rt/tst-aio7.c (TIMEOUT): Likewise.
9040         * rt/tst-aio9.c (TIMEOUT): Likewise.
9041         * rt/tst-clock.c (TIMEOUT): Likewise.
9042         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
9043         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
9044         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
9045         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
9046         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
9047         * rt/tst-timer4.c (TIMEOUT): Likewise.
9048         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
9049         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
9050         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
9051         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
9052         * time/tst-ftime.c (TIMEOUT): Likewise.
9053         * timezone/tst-tzset.c (TIMEOUT): Likewise.
9054
9055 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
9056
9057         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
9058         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
9059         for thunderX2.
9060
9061 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
9062
9063         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9064         bits/sem-pad.h.
9065         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
9066         instead of <bits/wordsize.h>.
9067         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
9068         and [__SEM_PAD_AFTER_TIME].
9069         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
9070         __syscall_ulong_t instead of unsigned long int.
9071         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
9072         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
9073         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
9074         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
9075         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
9076         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
9077         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
9078         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
9079         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
9080         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
9081         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
9082
9083 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9084
9085         regex: simplify by using intprops.h
9086         [BZ#23744]
9087         * posix/regex_internal.h [_LIBC]: Include intprops.h.
9088         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
9089         intprops.h defines them.
9090
9091         regex: __builtin_expect → __glibc_unlikely
9092         [BZ#23744]
9093         This refactoring was prompted by a problem when the regex code is
9094         used as part of Gnulib and when the builder’s compiler does not grok
9095         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
9096         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
9097         Although this refactoring does not fix the problem directly,
9098         we might as well have Gawk use the now-preferred glibc style for when
9099         __builtin_expect is unavailable.
9100         * posix/regex_internal.h (BE): Remove.
9101         All uses replaced by __glibc_unlikely or __glibc_likely.
9102
9103 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
9104
9105         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9106         bits/msq-pad.h.
9107         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
9108         instead of <bits/wordsize.h>.
9109         (msgqnum_t): Define as __syscall_ulong_t.
9110         (msglen_t): Likewise.
9111         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
9112         and [__MSQ_PAD_AFTER_TIME].
9113         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
9114         __syscall_ulong_t instead of unsigned long int.
9115         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
9116         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
9117         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
9118         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
9119         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
9120         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
9121         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
9122         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
9123         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
9124         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
9125         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
9126
9127 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
9130         (struct shmid_ds): Condition padding after time fields on
9131         [__WORDSIZE == 32].
9132         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
9133         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
9134         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
9135
9136         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
9137         (struct semid_ds): Condition padding after time fields on
9138         [__WORDSIZE == 32].
9139         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
9140         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
9141         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
9142         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
9143
9144         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
9145         (struct msqid_ds): Condition padding after time fields on
9146         [__WORDSIZE == 32].
9147         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
9148         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
9149         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
9150         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
9151
9152 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9153
9154         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
9155
9156 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9157
9158         * libio/tst-readline.c (TIMEOUT): Define.
9159
9160 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9161
9162         mktime fix for Gnulib + coreutils
9163         [BZ#23745]
9164         This fix affects only Gnulib.  Problem discovered when
9165         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
9166         * time/mktime.c:
9167         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
9168         Do not define since it is not used.  Defining an unused static
9169         function prompts a warning from GCC when Coreutils is configured
9170         with --enable-gcc-warnings.
9171
9172 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
9173
9174         * benchtests/scripts/compare_bench.py (main): set float type on
9175         threshold argument.
9176
9177 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
9178
9179         [BZ #23740]
9180         * localedata/locales/kl_GL (mon): Update, the relative case.
9181         (alt_mon): Add, fill with month names in the nominative case.
9182         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
9183         (d_fmt): Set to "%b %d %Y".
9184
9185 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
9188         <bits/mman-linux.h>.
9189         (PROT_READ): Don't define here.
9190         (PROT_WRITE): Likewise.
9191         (PROT_EXEC): Likewise.
9192         (PROT_NONE): Likewise.
9193         (PROT_GROWSDOWN): Likewise.
9194         (PROT_GROWSUP): Likewise.
9195         (MAP_SHARED): Likewise.
9196         (MAP_PRIVATE): Likewise.
9197         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
9198         [__USE_MISC] (MAP_FILE): Likewise.
9199         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
9200         [__USE_MISC] (MAP_ANON): Likewise.
9201         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
9202         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
9203         (MCL_CURRENT): Likewise.
9204         (MCL_FUTURE): Likewise.
9205         (MCL_ONFAULT): Likewise.
9206         [__USE_MISC] (MADV_NORMAL): Likewise.
9207         [__USE_MISC] (MADV_RANDOM): Likewise.
9208         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
9209         [__USE_MISC] (MADV_WILLNEED): Likewise.
9210         [__USE_MISC] (MADV_DONTNEED): Likewise.
9211         [__USE_MISC] (MADV_FREE): Likewise.
9212         [__USE_MISC] (MADV_REMOVE): Likewise.
9213         [__USE_MISC] (MADV_DONTFORK): Likewise.
9214         [__USE_MISC] (MADV_DOFORK): Likewise.
9215         [__USE_MISC] (MADV_HWPOISON): Likewise.
9216         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
9217         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
9218         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
9219         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
9220         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
9221         (__MAP_ANONYMOUS): New macro.
9222         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
9223         <bits/mman-linux.h> inclusion.
9224         (MAP_FIXED): Likewise.
9225         (MS_SYNC): Likewise.
9226         (MS_ASYNC): Likewise.
9227         (MS_INVALIDATE): Likewise.
9228         [__USE_MISC] (MADV_MERGEABLE): Likewise.
9229         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
9230         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
9231         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
9232         [__USE_MISC] (MADV_DONTDUMP): Likewise.
9233         [__USE_MISC] (MADV_DODUMP): Likewise.
9234         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
9235         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
9236
9237         [BZ #23735]
9238         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
9239         Define.
9240         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
9241         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
9242         Add test-nldbl-redirect.
9243         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
9244         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
9245         $(objpfx)libnldbl_nonshared.a.
9246
9247 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
9248
9249         * support/support.h (support_objdir_elf_ldso): New variable.
9250         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
9251         * support/Makefile (CFLAGS-support_paths.c): Add definition
9252         for OBJDIR_ELF_LDSO_PATH.
9253         * support/test-container.c (main): Search for the ld.so
9254         which is also used by the testsuite.
9255
9256 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
9257
9258         [BZ #20209]
9259         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
9260         should be "sap" rather than "sab".
9261         (day): Fix spelling of Sunday, should be "sapaat" rather than
9262         "sabaat".
9263
9264 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
9265
9266         * math/libm-test-fma.inc (fma_test_data): Add more tests.
9267
9268 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
9269
9270         [BZ #19444]
9271         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
9272         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
9273         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
9274
9275 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9276
9277         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
9278
9279 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9280
9281         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
9282         Add -mrtm.
9283         (CFLAGS-elision-unlock.c): Likewise.
9284         (CFLAGS-elision-timed.c): Likewise.
9285         (CFLAGS-elision-trylock.c): Likewise.
9286         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
9287
9288 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9289
9290         [BZ #21037]
9291         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
9292         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
9293         new fd_to_filename interface.
9294         * libio/freopen64.c (freopen64): Likewise.
9295         * libio/tst-memstream.h: New file.
9296         * libio/tst-memstream4.c: Likewise.
9297         * libio/tst-wmemstream4.c: Likewise.
9298         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
9299         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9300         and remove internal dynamic allocation.
9301
9302 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
9303
9304         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9305         (MREMAP_MAYMOVE): Do not define here.
9306         [__USE_GNU] (MREMAP_FIXED): Likewise.
9307         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9308         (MREMAP_MAYMOVE): Define here instead.
9309         [__USE_GNU] (MREMAP_FIXED): Likewise.
9310         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9311         (MREMAP_MAYMOVE): Remove.
9312         [__USE_GNU] (MREMAP_FIXED): Likewise.
9313
9314 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
9315
9316         * math/fromfp.h: Do not include <math_private.h>.
9317         * math/s_cacosh_template.c: Likewise.
9318         * math/s_casin_template.c: Likewise.
9319         * math/s_casinh_template.c: Likewise.
9320         * math/s_ccos_template.c: Likewise.
9321         * math/s_cproj_template.c: Likewise.
9322         * math/s_fdim_template.c: Likewise.
9323         * math/s_fmaxmag_template.c: Likewise.
9324         * math/s_fminmag_template.c: Likewise.
9325         * math/s_iseqsig_template.c: Likewise.
9326         * math/s_ldexp_template.c: Likewise.
9327         * math/s_nextdown_template.c: Likewise.
9328         * math/w_log1p_template.c: Likewise.
9329         * math/w_scalbln_template.c: Likewise.
9330         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9331         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9332         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9333         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9334         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9335         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9336         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9337         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9338         * sysdeps/i386/fpu/s_atanl.c: Likewise.
9339         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9340         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9341         * sysdeps/i386/fpu/s_fdim.c: Likewise.
9342         * sysdeps/i386/fpu/s_logbl.c: Likewise.
9343         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9344         * sysdeps/i386/fpu/s_significandl.c: Likewise.
9345         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9346         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9347         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9350         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9351         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9352         * sysdeps/ieee754/k_standardf.c: Likewise.
9353         * sysdeps/ieee754/k_standardl.c: Likewise.
9354         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9355         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9356         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9357         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9358         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9359         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9360         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9361         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9362         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9363         * sysdeps/ieee754/s_signgam.c: Likewise.
9364         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9365         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9366         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9367         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9368         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9369         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9370         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9371         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9372         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9373         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9374         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9375         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9376         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9377         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9378         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9379         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9380         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9381         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9382         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9383         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9384         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9385         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9386         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9387         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9388         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9389         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9390         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9391         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9392         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9393         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9394         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9395         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9396         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9397         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9398         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9399         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9400         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9401         <math_private.h>.
9402         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9403
9404 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9405
9406         [BZ #23716]
9407         * sysdeps/i386/dl-cet.c: Removed.
9408         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9409         prototype.
9410         (_dl_runtime_profile_shstk): Likewise.
9411         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9412         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9413
9414 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9415
9416         [BZ #23579]
9417         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9418         do_test_with_invalid_iov): New tests.
9419         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9420         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9421         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9422         errno is ENOSYS.
9423         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9424         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9425         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9426
9427 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
9428
9429         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9430         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9431         (MATH_REDIRECT_BINARY_ARGS): New macro.
9432         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9433         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9434         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9435         header inclusion.
9436         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9437         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9438         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9439         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9440         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9441         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9442         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9444         Likewise.
9445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9446         Likewise.
9447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9449         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9450         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9452         Likewise.
9453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9454         Likewise.
9455         * sysdeps/generic/math_private_calls.h
9456         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9457         Do not declare and define as an inline function.
9458         * math/divtc3.c (__divtc3): Use copysign functions instead of
9459         __copysign variants.
9460         * math/multc3.c (__multc3): Likewise.
9461         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9462         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9463         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9464         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9465         Likewise.
9466         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9467         (__ieee754_yn): Likewise.
9468         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9469         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9470         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9471         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9472         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9473         (__sin): Likewise.
9474         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9475         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9476         Likewise.
9477         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9478         Likewise.
9479         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9480         Likewise.
9481         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9482         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9483         Likewise.
9484         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9485         (__ieee754_ynf): Likewise.
9486         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9487         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9488         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9489         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9490         Likewise.
9491         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9492         (__ieee754_ynl): Likewise.
9493         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9494         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9495         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9496         Likewise.
9497         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9498         (__ieee754_ynl): Likewise.
9499         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9500         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9501         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9502         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9503         Likewise.
9504         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9505         (__ieee754_ynl)
9506         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9507         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9508         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9509         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9510         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9511
9512         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9513         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9514         using MATH_REDIRECT.
9515         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9516         header inclusion.
9517         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9518         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9519         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9520         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9521         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9522         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9523         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9528         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9529         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9530         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9531         (round): Redirect to __round.
9532         (__roundl): Call round instead of __round.
9533         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9534         Remove macro.
9535         [_ARCH_PWR5X] (__roundf): Likewise.
9536         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9537         functions instead of __round variants.
9538         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9539         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9540         Likewise.
9541         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9542         Likewise.
9543         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9544         Likewise.
9545         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9546         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9547         __lroundl.
9548         (__ieee754_expl): Call roundl instead of __roundl.
9549
9550 2018-09-27  Andreas Schwab  <schwab@suse.de>
9551
9552         [BZ #23717]
9553         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9554         (do_test): Make st1 static.
9555
9556 2018-09-26  Andreas Schwab  <schwab@suse.de>
9557
9558         [BZ #23707]
9559         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9560         * elf/Makefile (tests): Add tst-unwind-ctor.
9561         (modules-names): Add tst-unwind-ctor-lib.
9562         ($(objpfx)tst-unwind-ctor): Depend on
9563         $(objpfx)tst-unwind-ctor-lib.so.
9564
9565 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
9566
9567         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9568         file.  Most contents moved from ....
9569         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
9570         and include <bits/mman-map-flags-generic.h>.
9571         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9572         (sysdep_headers): Add bits/mman-map-flags-generic.h.
9573         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9574         <bits/mman-map-flags-generic.h>.
9575         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9576         macros defined in <bits/mman-map-flags-generic.h>.
9577         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9578         <bits/mman-map-flags-generic.h>.
9579         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9580         defined in <bits/mman-map-flags-generic.h>.
9581
9582 2018-09-26  Andreas Schwab  <schwab@suse.de>
9583
9584         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9585         output.
9586
9587 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
9588             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9589             Fangrui Song  <maskray@google.com>
9590
9591         [BZ #20480]
9592         * config.make.in (have-textrel_ifunc): New define.
9593         * configure.ac: Add check if linker supports textrel relocation with
9594         ifunc.
9595         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9596         tst-ifunc-textrel.
9597         (CFLAGS-tst-ifunc-textrel.c): New rule.
9598         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9599         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9600         * elf/tst-ifunc-textrel.c: New file.
9601
9602 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9605         <bits/procfs-prregset.h>.
9606         (prgregset_t): Define using __prgregset_t.
9607         (prfpregset_t): Define using __prfpregset_t.
9608         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9609         (sysdep_headers): Add bits/procfs-prregset.h.
9610         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9611         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9612         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9613         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9614
9615         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9616         <bits/procfs-id.h> and <bits/procfs-extra.h>.
9617         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9618         pr_uid and pr_gid.
9619         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9620         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9621         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9622         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9623         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9624         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9625         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9626         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9627         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9628         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9629         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9630         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9631         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9632         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9633         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9634         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9635         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9636         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9637         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9638         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9639         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9640         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9641         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9642         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9643
9644         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9645         AArch64 version.  Include <bits/procfs.h>.
9646         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9647         (sysdep_headers): Add bits/procfs.h.
9648         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9649         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9650         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9651         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9652         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9653         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9654         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9655         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9656         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9657         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9658         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9659         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9660         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9661         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9662         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9663         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9664         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9665
9666 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9667
9668         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9669         Use libsupport.
9670
9671 2018-09-25  Arjun Shankar  <arjun@redhat.com>
9672
9673         * iconv/gconv_int.h (__gconv_path_elem): Remove.
9674         (__gconv_max_path_elem_len): Likewise.
9675         (__gconv_nmodules): Likewise.
9676         (__gconv_get_path): Likewise.
9677         (path_elem): Move to ...
9678         * iconv/gconv_conf.c: ... here.
9679         (__gconv_get_path): Mark function static.
9680         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9681         * iconv/gconv_open.c: ... here.
9682
9683 2018-09-24  Andreas Schwab  <schwab@suse.de>
9684
9685         * scripts/haveversions.awk: New file.
9686         * Makerules ($(common-objpfx)Versions.def)
9687         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9688         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9689         Move rules ...
9690         * Makeconfig ($(common-objpfx)Versions.def)
9691         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9692         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9693         ... here.
9694         ($(common-objpfx)Versions.mk): New rule.  Include it.
9695         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9696         Emit error if build-obsolete-nsl = yes.
9697         * manual/install.texi (Configuring and compiling): Describe
9698         --enable-obsolete-nsl as unavaiable after version 2.28.
9699         * INSTALL: Regenerate.
9700
9701 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9702
9703         * NEWS: Add note about new TLE support on powerpc64le.
9704         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9705         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9706         __ununsed1.
9707         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9708         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9709         * sysdeps/powerpc/powerpc32/sysdep.h,
9710         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9711         ABORT_TRANSACTION): Remove macros.
9712         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9713         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9714         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9716         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9717         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9718         usage.
9719         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9720
9721 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
9722
9723         [BZ #10425]
9724         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9725         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9726         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9727         which is the same as in it_IT.
9728         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9729         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9730
9731 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
9732
9733         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9734         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9735         using MATH_REDIRECT.
9736         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9737         header inclusion.
9738         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9739         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9740         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9741         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9742         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9743         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9746         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9748         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9749         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9750         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9751         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9752         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9753         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9754         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9755         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9756         (ceil): Redirect to __ceil.
9757         (floor): Redirect to __floor.
9758         (trunc): Redirect to __trunc.
9759         (__truncl): Call trunc instead of __trunc.
9760         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9761         Remove macro.
9762         [_ARCH_PWR5X] (__truncf): Likewise.
9763         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9764         trunc functions instead of __trunc variants.
9765         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9766         Likewise.
9767         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9768         Likewise.
9769         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9770         Likewise.
9771         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9772         Likewise.
9773
9774         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9775         [__i586__ || __pentium__].
9776         [__i486__]: Handle explicitly.
9777         (HAS_CPUID): Define to 1 if above macros are undefined.
9778         (HAS_I586): Likewise.
9779         (HAS_I686): Likewise.
9780
9781 2018-09-20  Florian Weimer  <fweimer@redhat.com>
9782
9783         * misc/tst-gethostid.c: New file.
9784         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9785         (tst-gethostid): Link with -ldl.
9786
9787 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
9788
9789         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9790         value from gethostbyname_r.
9791
9792 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
9793
9794         * stdlib/tst-setcontext9.c (f1): Rename to...
9795         (f1a): ... this.
9796         (f1b): New function implementing lower half of f1 in alternate stack.
9797
9798 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9799
9800         Fix mktime localtime offset confusion
9801         [BZ #23603]
9802         * include/time.h (__mktime_internal): The localtime offset is now
9803         of type long int instead of time_t.  This is the longstanding type
9804         in glibc, and it is more than enough to represent difference
9805         between localtime and gmtime even if it is 32 bits and time_t is
9806         64.  Changing it now will let us avoid an unnecessary change when
9807         time_t is widened to 64 bits on 32-bit platforms.
9808         * time/mktime-internal.h (mktime_offset_t): Now long int.
9809
9810         Merge mktime, timegm from upstream Gnulib
9811         [BZ #23603][BZ #16346]
9812         This fixes some obscure problems with integer overflow.
9813         Although it looks scary, it is almost all a byte-for-byte copy
9814         from Gnulib, and the Gnulib code has been tested reasonably well.
9815         * include/intprops.h: New file, copied from Gnulib.
9816         * include/verify.h, time/mktime-internal.h:
9817         New tiny files, simplified from Gnulib.
9818         * time/mktime.c: Copy from Gnulib.  This has the following changes:
9819         Do not include config.h if DEBUG_MKTIME is nonzero.
9820         Include stdbool.h, intprops.h, verify.h.
9821         Include string.h only if needed.
9822         Include stdlib.h on MS-Windows.
9823         Include mktime-internal.h.
9824         (DEBUG_MKTIME): Default to 0, and simplify later uses.
9825         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9826         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9827         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9828         simplify later conditionals; default the others to zero.  Use
9829         these conditionals to express only the code needed on the current
9830         platform.  In uses of these conditionals, explicitly spell out how
9831         _LIBC affects things, so it’s easier to review from a glibc
9832         viewpoint.
9833         (WRAPV): Remove; no longer needed now that we have
9834         systematic overflow checking.
9835         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9836         compartmentalize tzset issues.  Move system-dependent tzsettish
9837         code here from mktime.
9838         (verify): Remove; now done by verify.h.  All uses changed.
9839         (long_int): Use a more-conservative definition, to avoid
9840         integer overflow.
9841         (SHR): Remove, replacing with ...
9842         (shr): New function, which means we needn’t worry about side
9843         effects in args, and conversion analysis is simpler.
9844         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9845         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9846         (time_t_avg, time_t_add_ok): Remove.
9847         (mktime_min, mktime_max): New constants.
9848         (leapyear, isdst_differ): Use bool for booleans.
9849         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9850         Use long_int, not time_t, for mktime differences.
9851         (long_int_avg): New function, replacing time_t_avg.
9852         INT_ADD_WRAPV replaces time_t_add_ok.
9853         (guess_time_tm): 6th arg is now long_int, not time_t const *.
9854         All uses changed.
9855         (convert_time): New function.
9856         (ranged_convert): Use it.
9857         (__mktime_internal): Last arg now points to mktime_offset_t, not
9858         time_t.  All uses changed.  This is a no-op on glibc, where
9859         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
9860         offset guess.  Directly check for integer overflow instead of
9861         using a heuristic that works only 99.9...% of the time.
9862         Access *OFFSET only once, to avoid an unlikely race if the
9863         compiler delays a load and if this cascades into a signed integer
9864         overflow.
9865         (mktime): Move tzsettish code to my_tzset, and move
9866         localtime_offset to within mktime so that it doesn’t
9867         need a separate ifdef.
9868         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9869         instead of localtime.
9870         * time/timegm.c: Copy from Gnulib.  This has the following changes:
9871         Include mktime-internal.h.
9872         [!_LIBC]: Include config.h and time.h.  Do not include
9873         timegm.h or time_r.h.  Make __mktime_internal a macro,
9874         and include mktime-internal.h to get its declaration.
9875         (timegm): Temporary is now mktime_offset_t, not time_t.
9876         This affects only Gnulib.
9877
9878 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9879
9880         [BZ #23637]
9881         * string/test-strstr.c (pr23637): New function.
9882         (test_main): Add tests with longer needles.
9883         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9884         * string/strstr.c (AVAILABLE): Likewise.
9885
9886 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9887
9888         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9889
9890 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9891
9892         * NEWS: Mention pow improvements.
9893         * math/Makefile (type-double-routines): Add e_pow_log_data.
9894         * sysdeps/generic/math_private.h (__exp1): Remove.
9895         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9896         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9897         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9898         contraction.
9899         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9900         (exp_inline): Remove.
9901         (__ieee754_exp): Only single double input is handled.
9902         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9903         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9904         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9905         (__pow_log_data): Define.
9906         * sysdeps/ieee754/dbl-64/upow.h: Remove.
9907         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9908         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9909         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9910         contraction.
9911         (CFLAGS-e_pow-fma4.c): Likewise.
9912
9913 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9914
9915         Simplify tzfile fstat failure code
9916         [BZ #21716]
9917         * time/tzfile.c (__tzfile_read): Simplify slightly.
9918
9919         Fix tzfile low-memory assertion failure
9920         [BZ #21716]
9921         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9922         when registering time zone abbreviations.
9923
9924 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
9925
9926         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9927         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9928         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9929         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9930         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9931         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9932         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9933         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9934         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9935
9936         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9937         __ceil.
9938         (__ceill): Call ceil instead of __ceil.
9939         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9940         __floor.
9941         (__floorl): Call floor instead of __floor.
9942
9943 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
9944
9945         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9946         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9947         using MATH_REDIRECT.
9948         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9949         header inclusion.
9950         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9951         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9952         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9953         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9954         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9955         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9956         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9957         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9962         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9963         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9964         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9965         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9966         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9967         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9968         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9969         Remove macro.
9970         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9971         functions instead of __ceil variants.
9972         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9973         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9974         Likewise.
9975         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9976         Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9978         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9979         Likewise.
9980         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9981         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9982
9983         [BZ #21286]
9984         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9985         constant.
9986         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9987         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9988         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9989         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9990         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9991         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9992         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9993         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9994         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9995         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9996         (ILL_BADIADDR): Remove constant.
9997         (TRAP_BRANCH): Likewise.
9998         (TRAP_HWBKPT): Likewise.
9999
10000 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
10001
10002         [BZ #23656]
10003         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
10004         Remove [_MIPS_SIM = _ABIN32] conditional case.
10005         (struct elf_prpsinfo): Likewise.
10006
10007         [BZ #23649]
10008         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
10009         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
10010         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
10011         Likewise.
10012         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
10013         elf_prpsinfo): Likewise.
10014         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
10015         elf_prpsinfo): Likewise.
10016         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
10017         Likewise.
10018
10019         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10020         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
10021         using MATH_REDIRECT.
10022         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
10023         header inclusion.
10024         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
10025         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10026         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10027         * sysdeps/i386/fpu/s_rintl.c: Likewise.
10028         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10029         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10030         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
10031         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10032         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
10033         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10034         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
10035         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
10036         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
10037         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
10038         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
10039         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
10040         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
10041         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
10042         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
10043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
10044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
10045         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
10046         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
10047         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
10048         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
10049         * sysdeps/x86_64/fpu/math_private.h: Remove file.
10050         * math/e_scalb.c (invalid_fn): Use rint functions instead of
10051         __rint variants.
10052         * math/e_scalbf.c (invalid_fn): Likewise.
10053         * math/e_scalbl.c (invalid_fn): Likewise.
10054         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10055         Likewise.
10056         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10057         Likewise.
10058         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
10059         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
10060         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10061         Likewise.
10062         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10063         Likewise.
10064         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
10065         Likewise.
10066         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
10067         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
10068
10069         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
10070         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
10071         New macro.
10072         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10073         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
10074         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10075         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
10076         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10077         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
10078         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10079         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
10080         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
10081         && !NO_MATH_REDIRECT] (floor): Likewise.
10082         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
10083         header inclusion.
10084         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
10085         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10086         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10087         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
10088         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10089         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
10090         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10091         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
10092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
10093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
10094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
10095         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
10096         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10097         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10098         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
10099         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
10100         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
10101         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
10102         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
10103         Remove macro.
10104         [_ARCH_PWR5X] (__floorf): Likewise.
10105         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
10106         inline function.
10107         [__SSE4_1__] (__floorf): Likewise.
10108         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
10109         instead of __floor variants.
10110         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
10111         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
10112         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
10113         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
10114         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
10115         * math/w_tgamma_compat.c (__tgamma): Likewise.
10116         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
10117         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
10118         * math/w_tgammal_compat.c (__tgammal): Likewise.
10119         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
10120         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10121         Likewise.
10122         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10123         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
10124         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10125         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10126         Likewise.
10127         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10128         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
10129         Likewise.
10130         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10131         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
10132         Likewise.
10133         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10134         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
10135         Likewise.
10136         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
10137         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
10138         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
10139         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
10140         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
10141         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
10142
10143 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
10144
10145         * elf/Makefile (modules-names-tests): New variable.
10146
10147 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10148
10149         * NEWS: Mention log2 improvements.
10150         * math/Makefile (type-double-routines): Add e_log2_data.
10151         * sysdeps/i386/fpu/e_log2_data.c: New file.
10152         * sysdeps/ia64/fpu/e_log2_data.c: New file.
10153         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
10154         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
10155         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
10156         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
10157         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
10158
10159 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10160
10161         * NEWS: Mention log improvement.
10162         * math/Makefile (type-double-routines): Add e_log_data.
10163         * sysdeps/i386/fpu/e_log_data.c: New file.
10164         * sysdeps/ia64/fpu/e_log_data.c: New file.
10165         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
10166         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
10167         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
10168         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
10169         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
10170         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
10171
10172 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
10173             Xuepeng Guo  <xuepeng.guo@intel.com>
10174
10175         [BZ #23606]
10176         * sysdeps/i386/start.S: Include <sysdep.h>
10177         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
10178         enabled.  Add cfi_undefined (eip).
10179
10180 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
10181
10182         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
10183         (MOVQ): Likewise.
10184         (EXTRACT_WORDS64): Likewise.
10185         (INSERT_WORDS64): Likewise.
10186         (GET_FLOAT_WORD): Likewise.
10187         (SET_FLOAT_WORD): Likewise.
10188
10189         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
10190         argument.
10191         (Config.build_gcc): Use --disable-libsanitizer for first GCC
10192         build, but not for second build if --full-gcc.  Use
10193         --enable-languages=all for second build if --full-gcc.
10194         (get_parser): Add --full-gcc option.
10195         (main): Update call to Context.
10196
10197 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
10198
10199         [BZ #10797]
10200         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
10201         Single Quotation Mark).
10202         (thousands_sep): Likewise.
10203         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
10204         * localedata/locales/it_IT (thousands_sep): Use ".".
10205         (grouping): Use "3;3".
10206
10207 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
10208
10209         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10210         x86_64 and i686 configs using --enable-obsolete-rpc
10211         --enable-obsolete-nsl.
10212
10213 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
10214
10215         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10216
10217 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
10218
10219         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
10220         Increment size of new_argv by one.
10221
10222 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
10223
10224         [BZ #17426]
10225         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
10226         * localedata/locales/ar_IN (d_fmt): Likewise.
10227         * localedata/locales/bhb_IN (d_fmt): Likewise.
10228         * localedata/locales/bho_IN (d_fmt): Likewise.
10229         * localedata/locales/bn_BD (d_fmt): Likewise.
10230         * localedata/locales/bn_IN (d_fmt): Likewise.
10231         * localedata/locales/doi_IN (d_fmt): Likewise.
10232         * localedata/locales/gu_IN (d_fmt): Likewise.
10233         * localedata/locales/hi_IN (d_fmt): Likewise.
10234         * localedata/locales/hne_IN (d_fmt): Likewise.
10235         * localedata/locales/kn_IN (d_fmt): Likewise.
10236         * localedata/locales/mag_IN (d_fmt): Likewise.
10237         * localedata/locales/mai_IN (d_fmt): Likewise.
10238         * localedata/locales/mjw_IN (d_fmt): Likewise.
10239         * localedata/locales/ml_IN (d_fmt): Likewise.
10240         * localedata/locales/mni_IN (d_fmt): Likewise.
10241         * localedata/locales/mr_IN (d_fmt): Likewise.
10242         * localedata/locales/pa_IN (d_fmt): Likewise.
10243         * localedata/locales/raj_IN (d_fmt): Likewise.
10244         * localedata/locales/sat_IN (d_fmt): Likewise.
10245         * localedata/locales/sd_IN (d_fmt): Likewise.
10246         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
10247         * localedata/locales/ta_IN (d_fmt): Likewise.
10248         * localedata/locales/ta_LK (d_fmt): Likewise.
10249         * localedata/locales/tcy_IN (d_fmt): Likewise.
10250         * localedata/locales/ur_IN (d_fmt): Likewise.
10251
10252         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
10253         * localedata/locales/ks_IN (d_fmt): Likewise.
10254         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
10255
10256         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
10257         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
10258         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
10259         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
10260
10261 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10262
10263         * NEWS: Mention exp and exp2 improvements.
10264         * math/Makefile (libm-support): Remove t_exp.
10265         (type-double-routines): Add math_err and e_exp_data.
10266         * sysdeps/aarch64/libm-test-ulps: Update.
10267         * sysdeps/arm/libm-test-ulps: Update.
10268         * sysdeps/i386/fpu/e_exp_data.c: New file.
10269         * sysdeps/i386/fpu/math_err.c: New file.
10270         * sysdeps/i386/fpu/t_exp.c: Remove.
10271         * sysdeps/ia64/fpu/e_exp_data.c: New file.
10272         * sysdeps/ia64/fpu/math_err.c: New file.
10273         * sysdeps/ia64/fpu/t_exp.c: Remove.
10274         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
10275         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
10276         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
10277         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
10278         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
10279         * sysdeps/ieee754/dbl-64/math_config.h: New file.
10280         * sysdeps/ieee754/dbl-64/math_err.c: New file.
10281         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
10282         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
10283         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
10284         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
10285         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
10286         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
10287         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
10288         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10289         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10290
10291 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
10292
10293         * sysdeps/alpha/fpu/math_private.h: Remove.
10294
10295         * sysdeps/generic/math_private.h
10296         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
10297         Move this inline function ....
10298         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
10299         * include/math.h [!_ISOMAC]: To here....
10300
10301 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
10302
10303         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10304         code ....
10305         [!FE_HAVE_ROUNDING_MODES]: And this code ....
10306         * include/fenv.h [!_ISOMAC]: ... to here.
10307         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10308         (feraiseexcept): Likewise.
10309         * math/fromfp.h: Do not include <fenv_private.h>.
10310         * math/s_cexp_template.c: Likewise.
10311         * math/s_csin_template.c: Likewise.
10312         * math/s_csinh_template.c: Likewise.
10313         * math/s_ctan_template.c: Likewise.
10314         * math/s_ctanh_template.c: Likewise.
10315         * math/s_iseqsig_template.c: Likewise.
10316         * math/w_acos_compat.c: Likewise.
10317         * math/w_acosf_compat.c: Likewise.
10318         * math/w_acosl_compat.c: Likewise.
10319         * math/w_asin_compat.c: Likewise.
10320         * math/w_asinf_compat.c: Likewise.
10321         * math/w_asinl_compat.c: Likewise.
10322         * math/w_j0_compat.c: Likewise.
10323         * math/w_j0f_compat.c: Likewise.
10324         * math/w_j0l_compat.c: Likewise.
10325         * math/w_j1_compat.c: Likewise.
10326         * math/w_j1f_compat.c: Likewise.
10327         * math/w_j1l_compat.c: Likewise.
10328         * math/w_jn_compat.c: Likewise.
10329         * math/w_jnf_compat.c: Likewise.
10330         * math/w_log10_compat.c: Likewise.
10331         * math/w_log10f_compat.c: Likewise.
10332         * math/w_log10l_compat.c: Likewise.
10333         * math/w_log2_compat.c: Likewise.
10334         * math/w_log2f_compat.c: Likewise.
10335         * math/w_log2l_compat.c: Likewise.
10336         * math/w_log_compat.c: Likewise.
10337         * math/w_logf_compat.c: Likewise.
10338         * math/w_logl_compat.c: Likewise.
10339         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10340         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10341         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10342         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10343         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10344         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10345         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10346         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10347         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10348         * sysdeps/ieee754/k_standardl.c: Likewise.
10349         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10350         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10351         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10352         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10353         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10354         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10355         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10356         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10357         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10358         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10359         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10360         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10361         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10362         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10365         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10366         * math/w_ilogb_template.c: Include <fenv.h> instead of
10367         <fenv_private.h>.
10368         * math/w_llogb_template.c: Likewise.
10369         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10370         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10371
10372 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10375         * math/fromfp.h: Include <fenv_private.h>.
10376         * math/math-narrow.h: Likewise.
10377         * math/s_cexp_template.c: Likewise.
10378         * math/s_csin_template.c: Likewise.
10379         * math/s_csinh_template.c: Likewise.
10380         * math/s_ctan_template.c: Likewise.
10381         * math/s_ctanh_template.c: Likewise.
10382         * math/s_iseqsig_template.c: Likewise.
10383         * math/w_acos_compat.c: Likewise.
10384         * math/w_acosf_compat.c: Likewise.
10385         * math/w_acosl_compat.c: Likewise.
10386         * math/w_asin_compat.c: Likewise.
10387         * math/w_asinf_compat.c: Likewise.
10388         * math/w_asinl_compat.c: Likewise.
10389         * math/w_ilogb_template.c: Likewise.
10390         * math/w_j0_compat.c: Likewise.
10391         * math/w_j0f_compat.c: Likewise.
10392         * math/w_j0l_compat.c: Likewise.
10393         * math/w_j1_compat.c: Likewise.
10394         * math/w_j1f_compat.c: Likewise.
10395         * math/w_j1l_compat.c: Likewise.
10396         * math/w_jn_compat.c: Likewise.
10397         * math/w_jnf_compat.c: Likewise.
10398         * math/w_llogb_template.c: Likewise.
10399         * math/w_log10_compat.c: Likewise.
10400         * math/w_log10f_compat.c: Likewise.
10401         * math/w_log10l_compat.c: Likewise.
10402         * math/w_log2_compat.c: Likewise.
10403         * math/w_log2f_compat.c: Likewise.
10404         * math/w_log2l_compat.c: Likewise.
10405         * math/w_log_compat.c: Likewise.
10406         * math/w_logf_compat.c: Likewise.
10407         * math/w_logl_compat.c: Likewise.
10408         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10409         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10410         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10411         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10412         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10413         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10414         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10415         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10416         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10417         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10418         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10419         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10420         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10421         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10422         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10423         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10424         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10425         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10426         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10427         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10428         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10429         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10430         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10431         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10432         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10433         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10434         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10435         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10436         * sysdeps/ieee754/float128/float128_private.h: Likewise.
10437         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10438         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10439         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10440         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10441         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10442         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10443         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10444         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10445         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10446         * sysdeps/ieee754/k_standardl.c: Likewise.
10447         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10448         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10449         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10450         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10451         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10452         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10453         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10454         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10455         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10456         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10457         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10458         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10459         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10460         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10461         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10462         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10463         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10464         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10465         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10466         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10467         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10468         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10469         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10470         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10471         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10472         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10473         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10474         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10475         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10477         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10478         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10479         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10480         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10481         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10482         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10483         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10484         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10485         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10486         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10487         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10488         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10489         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10490         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10491         * sysdeps/riscv/rvd/s_finite.c: Likewise.
10492         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10493         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10494         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10495         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10496         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10497         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10498         * sysdeps/riscv/rvf/fegetround.c: Likewise.
10499         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10500         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10501         * sysdeps/riscv/rvf/fesetround.c: Likewise.
10502         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10503         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10504         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10505         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10506         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10507         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10508         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10509         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10510         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10511         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10512         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10513         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10514         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10515         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10516         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10517         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10518
10519 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10520
10521         [BZ #20271]
10522         * include/stdio.h (__libc_fatal): Mention newline in comment.
10523         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10524         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10525         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10526         * nss/nsswitch.c (__nss_next2): Likewise.
10527         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10528         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10529         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10530         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10531         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10532         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10533         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10534         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10535         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10536         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10537         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10538         * sysdeps/unix/sysv/linux/netlink_assert_response.c
10539         (__netlink_assert_response): Likewise.
10540
10541 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
10542
10543         * conform/glibcconform.py: New file.
10544         * conform/list-header-symbols.py: Likewise.
10545         * conform/list-header-symbols.pl: Remove.
10546         * conform/Makefile (tests-special): Only add linknamespace tests
10547         if [PYTHON].
10548         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10549
10550 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
10551
10552         [BZ #23597]
10553         * support/Makefile (libsupport-routines): Add
10554         support_copy_file_range and xcopy_file_range.
10555         * support/support.h: Include <sys/types.h>.
10556         (support_copy_file_range): New prototype.
10557         * support/support_copy_file_range.c: New file.  Copied and
10558         modified from io/copy_file_range-compat.c.
10559         * support/test-container.c (copy_one_file): Call xcopy_file_rang
10560         instead of copy_file_range.
10561         * support/xcopy_file_range.c: New file.
10562         * support/xunistd.h (xcopy_file_range): New prototype.
10563
10564 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
10565
10566         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10567         xpthread_create and xpthread_join.
10568
10569 2018-08-30  Florian Weimer  <fweimer@redhat.com>
10570
10571         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10572
10573 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
10574
10575         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10576         if malloc fails.
10577
10578 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
10579
10580         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10581         and minus_oflow as non-finite.
10582
10583 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
10584
10585         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
10586         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
10587         moved to fenv_private.h except for ...
10588         (TOINT_INTRINSICS): Kept in math_private.h.
10589         (roundtoint): Likewise.
10590         (converttoint): Likewise.
10591         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10592         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10593         * sysdeps/arm/math_private.h: Remove.
10594         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
10595         ....
10596         * sysdeps/generic/math_private.h: ... this file.  Include
10597         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
10598         Include <fenv_private.h>.  Remove functions and macros moved to
10599         fenv_private.h.
10600         * sysdeps/i386/fpu/math_private.h: Remove.
10601         * sysdeps/mips/math_private.h: Move to ....
10602         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
10603         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
10604         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
10605         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10606         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10607         * sysdeps/powerpc/fpu/math_private.h: Do not include
10608         <fenv_private.h>.
10609         * sysdeps/riscv/rvf/math_private.h: Move to ....
10610         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
10611         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
10612         <fenv_private.h>.
10613         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10614         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10615         * sysdeps/sparc/fpu/math_private.h: Remove.
10616         * sysdeps/i386/fpu/fenv_private.h: Move to ....
10617         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
10618         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
10619         <fenv_private.h>.
10620         * sysdeps/x86_64/fpu/math_private.h: Do not include
10621         <sysdeps/i386/fpu/fenv_private.h>.
10622
10623 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10624
10625         [BZ #23578]
10626         * posix/tst-regcomp-truncated.c: New file.
10627         * posix/Makefile (tests): Add it.
10628         (tst-regcomp-truncated.out): Depend on generated locales.
10629
10630 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10631
10632         * support/test-container.c (main): Treat unshare failure with
10633         EPERM as an unsupported test.
10634
10635 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10636
10637         [BZ #23520]
10638         nscd: Fix use-after-free in addgetnetgrentX and its callers.
10639         * nscd/netgroupcache.c
10640         (addgetnetgrentX): Add tofreep parameter.  Do not free
10641         heap-allocated buffer.
10642         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10643         (addgetnetgrentX_ignore): New function.
10644         (addgetnetgrent): Call it.
10645         (readdgetnetgrent): Likewise.
10646
10647 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10648
10649         * string/memmem.c: Use memcmp for first match.
10650
10651 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
10652
10653         [BZ #17426]
10654         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10655
10656 2018-08-27  DJ Delorie  <dj@redhat.com>
10657
10658         * support/Makefile (others): Don't list programs explicitly as a
10659         dependency of "others".
10660
10661 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10662
10663         * sysdeps/generic/math-tests-trap-force.h: New file.
10664         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10665         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10666         * sysdeps/powerpc/math-tests.h: Remove file.
10667         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10668
10669 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
10670             Torvald Riegel  <triegel@redhat.com>
10671
10672         [BZ #23538]
10673         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10674         Update r to include the set wake-request flag if waiters are
10675         remaining after spinning.
10676
10677 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10678
10679         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10680
10681 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         [BZ #23578]
10684         regex: fix uninitialized memory access
10685         I introduced this bug into gnulib in commit
10686         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10687         eventually it was merged into glibc.  The bug was found by
10688         project-repo <bugs@feusi.co> and reported here:
10689         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10690         Diagnosis and draft fix reported by Assaf Gordon here:
10691         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10692         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10693         * posix/regex_internal.c (build_wcs_upper_buffer):
10694         Fix bug when mbrtowc returns 0.
10695
10696 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
10697
10698         * po/be.po: Update translation.
10699
10700 2018-08-24  DJ Delorie  <dj@delorie.com>
10701
10702         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10703         $(libunwind).
10704
10705 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
10706
10707         [BZ #23400]
10708         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10709         create temporary files in source tree.
10710
10711 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
10712
10713         * sysdeps/generic/math-tests-trap.h: New file.
10714         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10715         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10716         * sysdeps/aarch64/math-tests.h: Remove file.
10717         * sysdeps/arm/math-tests.h: Likewise.
10718         * sysdeps/riscv/math-tests.h: Likewise.
10719         * sysdeps/aarch64/math-tests-trap.h: New file.
10720         * sysdeps/arm/math-tests-trap.h: Likewise.
10721         * sysdeps/riscv/math-tests-trap.h: Likewise.
10722
10723 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
10724
10725         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10726         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10727         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10728         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10729         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10730         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10731         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10732         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10733         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10734         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10735         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10736         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10737         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10738         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10739         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10740         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10741         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10742         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10743
10744 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
10745
10746         * sysdeps/generic/math-tests-exceptions.h: New file.
10747         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10748         (EXCEPTION_TESTS_float): Do not define here.
10749         (EXCEPTION_TESTS_double): Likewise.
10750         (EXCEPTION_TESTS_long_double): Likewise.
10751         (EXCEPTION_TESTS_float128): Likewise.
10752         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10753         Likewise.
10754         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10755         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10756         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10757         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10758         * sysdeps/mips/math-tests.h: Likewise.
10759         * sysdeps/nios2/math-tests.h: Likewise.
10760         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10761         (EXCEPTION_TESTS_float): Do not define here.
10762         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10763         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10764         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10765
10766 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10767
10768         * NEWS: Move optimized sinf entry to 2.29.
10769
10770 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10771
10772         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10773
10774 2018-08-22  DJ Delorie  <dj@redhat.com>
10775
10776         * Makefile (testroot.pristine): New rules to initialize the
10777         test-in-container "testroot".
10778         * Makerules (all-testsuite): Add tests-container.
10779         * Rules (tests-expected): Add tests-container.
10780         (binaries-all-tests): Likewise.
10781         (tests-container): New, run these tests in the testroot container.
10782         * support/Makefile (others): Add *-container, support_paths.c,
10783         xmkdirp, and links-dso-program.
10784         * support/links-dso-program-c.c: New.
10785         * support/links-dso-program.cc: New.
10786         * support/test-container.c: New.
10787         * support/shell-container.c: New.
10788         * support/echo-container.c: New.
10789         * support/true-container.c: New.
10790         * support/xmkdirp.c: New.
10791         * support/xsymlink.c: New.
10792         * support/support_paths.c: New.
10793         * support/support.h: Add support paths prototypes.
10794         * support/xunistd.h: Add xmkdirp () and xsymlink ().
10795
10796         * nss/tst-nss-test3.c: Convert to test-in-container.
10797         * nss/tst-nss-test3.root/: New.
10798
10799 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10800
10801         regex: port Gnulib code to z/OS POSIX environment
10802         Problem reported by Arnold Robbins in:
10803         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10804         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10805         Undef.
10806
10807 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
10808
10809         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10810         (ROUNDING_TESTS_double): Remove.
10811         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10812         (ROUNDING_TESTS_double): Remove.
10813         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10814         (ROUNDING_TESTS_double): Remove.
10815         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10816         (ROUNDING_TESTS_float): Remove.
10817         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10818         (ROUNDING_TESTS_float): Remove.
10819         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10820         (ROUNDING_TESTS_float): Remove.
10821         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10822         !TEST_MATHVEC here.
10823         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10824         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10825
10826         * sysdeps/generic/math-tests-rounding.h: New file.
10827         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10828         (ROUNDING_TESTS_float): Do not define here.
10829         (ROUNDING_TESTS_double): Likewise.
10830         (ROUNDING_TESTS_long_double): Likewise.
10831         (ROUNDING_TESTS_float128): Likewise.
10832         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10833         (ROUNDING_TESTS_double): Undefine before defining.
10834         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10835         (ROUNDING_TESTS_double): Undefine before defining.
10836         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10837         (ROUNDING_TESTS_double): Undefine before defining.
10838         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10839         (ROUNDING_TESTS_float): Undefine before defining.
10840         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10841         (ROUNDING_TESTS_float): Undefine before defining.
10842         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10843         (ROUNDING_TESTS_float): Undefine before defining.
10844         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10845         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10846         not define here.
10847         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10848         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10849         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10850         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10851         (ROUNDING_TESTS_float): Do not define here.
10852         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10853         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10854         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10855         (ROUNDING_TESTS_float): Likewise.
10856         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10857         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10858         * sysdeps/mips/math-tests.h [__mips_soft_float]
10859         (ROUNDING_TESTS_float): Likewise.
10860         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10861         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10862         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10863         (ROUNDING_TESTS_double): Likewise.
10864         (ROUNDING_TESTS_long_double): Likewise.
10865
10866 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
10867
10868         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10869         (PF_XDP): New macro.
10870         (AF_XDP): New macro.
10871         (SOL_XDP): New macro.
10872
10873 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
10874
10875         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10876         (TCP_INQ): Likewise.
10877         (TCP_CM_INQ): Likewise.
10878         (TCP_REPAIR_ON): Likewise.
10879         (TCP_REPAIR_OFF): Likewise.
10880         (TCP_REPAIR_OFF_NO_WP): Likewise.
10881         (struct tcp_zerocopy_receive): New type.
10882
10883 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10884
10885         * support/support.h (support_descriptor_supports_holes): Declare.
10886         * support/Makefile (libsupport-routines): Add
10887         support_descriptor_supports_holes.
10888         * support/support_descriptor_supports_holes.c: New file.
10889         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10890         and stop testing if holes are not supported.
10891         * io/test-lfs.c (do_prepare): Likewise.
10892         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10893         Likewise.
10894         * timezone/tst-tzset.c (create_tz_file): Likewise.
10895         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10896         variable.
10897         (do_prepare): Set it.
10898         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10899
10900 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10901
10902         [BZ #17248]
10903         * Makeconfig (+cflags): Do not sort (and deduplicate).
10904
10905 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10906
10907         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10908         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10909
10910 2018-08-20  Florian Weimer  <fweimer@redhat.com>
10911
10912         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10913         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
10914
10915 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
10916
10917         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10918         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10919         and ssi_arch members.
10920
10921         * elf/elf.c (NT_VMCOREDD): New macro.
10922         (AT_MINSIGSTKSZ): Likewise.
10923
10924 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10925
10926         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10927         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10928         s_cosf-ppc64 and s_cosf-power8.
10929         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10930         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10931         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10932         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10937         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10939         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10940         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10941
10942 2018-08-17  Florian Weimer  <fweimer@redhat.com>
10943
10944         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10945
10946 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
10947
10948         * malloc/malloc.c (_int_malloc): Additional binning code checks.
10949
10950 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10951
10952         * configure.ac: Add --with-nonshared-cflags option.
10953         * config.make.in (extra-nonshared-cflags): Set variable.
10954         * Makeconfig (CFLAGS-.oS): Use it.
10955         * manual/install.texi (Configuring and compiling): Document
10956         --with-nonshared-cflags.
10957         * configure: Regenerate.
10958         * INSTALL: Likewise.
10959
10960 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10961
10962         * Makeconfig (ASFLAGS): Always append required assembler flags.
10963
10964 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
10965
10966         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10967         (malloc_consolidate): Likewise.
10968
10969 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
10970
10971         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10972
10973 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10974
10975         * benchtests/bench-strlen.c (do_test): Allocate buffers before
10976         every strlen call.
10977
10978         * benchtests/bench-strlen.c: Print performance numbers in json.
10979
10980 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10981
10982         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10983         (sysdep_routines): Build strcmp-power9 and strncmp-power9
10984         only for little endian.
10985         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10986         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10987         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10988         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10989         Add check for little endian.
10990         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10991         (__strcmp_power9): Add check for little endian.
10992         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10993         Add check for little endian.
10994         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10995         (__strncmp_power9): Add check for little endian.
10996         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10997         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10998         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10999         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
11000         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
11001
11002 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11003
11004         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
11005         [!STRLEN](STRLEN): Set to __strlen.
11006         * sysdeps/aarch64/multiarch/strlen.c: New file.
11007         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
11008         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
11009         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11010         (__libc_ifunc_impl_list): Add strlen.
11011         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11012         strlen_generic and strlen_asimd.
11013
11014 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11015
11016         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
11017         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
11018         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11019
11020 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
11021
11022         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
11023
11024 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11025
11026         [BZ #23519]
11027         * include/stdio.h (__vfxprintf): Declare.
11028         * stdio-common/fxprintf.c (__vfxprintf): New function.
11029         (__fxprintf): Call it.
11030         * misc/err.c (convert_and_print): Remove function.
11031         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
11032         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
11033         * misc/Makefile (tests): Add tst-warn-wide.
11034         * misc/tst-warn-wide.c: New file.
11035
11036 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
11037             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11038
11039         * NEWS: Mention sinf, cosf, sincosf.
11040         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
11041         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
11042         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
11043         constants rather than including generic sincosf.h.
11044         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
11045         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
11046         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
11047         (reduced_cos): Remove.
11048         (sinf_poly): New function.
11049         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
11050
11051 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11052
11053         [BZ #23521]
11054         [BZ #23522]
11055         * nss/nss_files/files-alias.c (get_next_alias): During :include:
11056         processing, bail out if no room, and close the stream before
11057         returning ERANGE.
11058         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
11059         (tst-nss-files-alias-leak): Link with libdl.
11060         (tst-nss-files-alias-leak.out): Depend on nss_files.
11061
11062         * nss/tst-nss-files-alias-leak.c: New file.
11063
11064 2018-08-14  Florian Weimer  <fweimer@redhat.com>
11065
11066         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
11067         server_user, stat_user.
11068
11069 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
11070
11071         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11072         version to 4.18.
11073         (io_pgetevents): New syscall.
11074         (rseq): Likewise.
11075
11076         * manual/install.texi (Configuring and compiling): Do not list
11077         tools used for testing pretty printers here.
11078         (Tools for Compilation): List Python, PExpect and GDB here.
11079         Update descriptions of uses of Perl and Python.
11080         * INSTALL: Regenerate.
11081
11082         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11083         version to 4.18.
11084
11085 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11086
11087         * misc/error.c (error): Add missing va_end call.
11088         (error_at_line): Likewise.
11089
11090 2018-08-13  Florian Weimer  <fweimer@redhat.com>
11091
11092         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
11093
11094 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11095
11096         * benchtests/scripts/benchout.schema.json (properties): Add
11097         new properties.
11098
11099         * benchtests/bench-skeleton.c (main): Add duration and
11100         iterations attributes.
11101
11102 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11103
11104         regex: Gnulib unibyte RRI uses bytes not chars
11105         Adjust the non-glibc code to agree with what Gawk needs for
11106         rational range interpretation (RRI) for regular expression ranges.
11107         In unibyte locales, Gawk wants ranges to use the underlying byte
11108         rather than the character code point.  This change does not affect
11109         glibc proper.
11110         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
11111         In unibyte locales, use the byte value rather than
11112         running it through btowc.
11113
11114 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
11115
11116         * sysdeps/generic/math-tests-snan.h: New file.
11117         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
11118         (SNAN_TESTS_float): Do not define here.
11119         (SNAN_TESTS_double): Likewise.
11120         (SNAN_TESTS_long_double): Likewise.
11121         (SNAN_TESTS_float128): Likewise.
11122         * sysdeps/i386/fpu/math-tests-snan.h: New file.
11123         * sysdeps/i386/fpu/math-tests.h: Remove file.
11124         * sysdeps/ia64/math-tests-snan.h: New file.
11125         * sysdeps/ia64/math-tests.h: Remove file.
11126         * sysdeps/x86/math-tests.h: Likewise.
11127         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
11128
11129 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
11130             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11131
11132         * math/Makefile: Add s_sincosf_data.c.
11133         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
11134         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
11135         (sincosf_poly): Likewise.
11136         (reduce_small): Likewise.
11137         (reduce_large): Likewise.
11138         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
11139         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
11140         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
11141         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
11142
11143 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
11144             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11145
11146         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
11147         (converttoint): Use lround.
11148         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
11149         document the semantics when TOINT_INTRINSICS is set.
11150         (converttoint): Likewise.
11151         (TOINT_RINT): Remove.
11152         (TOINT_SHIFT): Remove.
11153         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
11154         path.
11155
11156 2018-08-10  Florian Weimer  <fweimer@redhat.com>
11157
11158         [BZ #23497]
11159         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
11160         function.
11161         (__old_getdents64): Use getdents64.  Convert entries without
11162         moving them.
11163         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
11164         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
11165         tst-readdir64-compat.
11166
11167 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11168
11169         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
11170         Fix unwind.
11171
11172 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11173
11174         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
11175         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
11176         code to s390x-mcount.h and #include it.
11177         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
11178         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
11179         (__fentry__): Add.
11180
11181 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11182
11183         * stdlib/Versions: Remove __fentry__.
11184         * sysdeps/i386/Versions: Add __fentry__.
11185         * sysdeps/x86_64/Versions: Add __fentry__.
11186
11187 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11188
11189         * sysdeps/s390/Makefile: Register the new tests.
11190         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
11191         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
11192         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
11193         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
11194         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
11195         * sysdeps/s390/tst-dl-runtime.c: New file.
11196
11197 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11198
11199         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11200         Do not clobber R0.
11201
11202 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11203
11204         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11205         Do not clobber R0.
11206
11207 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11208
11209         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11210         Do not clobber R0.
11211
11212 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11213
11214         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11215         Do not clobber R0.
11216
11217 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11218
11219         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
11220         Use symbolic offsets for stack variables.
11221
11222 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11223
11224         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11225         Use symbolic offsets for stack variables.
11226
11227 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11228
11229         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11230         Use symbolic offsets for stack variables.
11231
11232 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
11233
11234         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11235         Use symbolic offsets for stack variables.
11236
11237 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
11238
11239         * math/gen-libm-test.py: New file.
11240         * math/gen-libm-test.pl: Remove.
11241         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
11242         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
11243         gen-libm-test.pl.
11244         ($(libm-test-c-noauto-obj)): Likewise.
11245         ($(libm-test-c-auto-obj)): Likewise.
11246         ($(libm-test-c-narrow-obj)): Likewise.
11247         (regen-ulps): Likewise.
11248         * math/README.libm-test: Update references to gen-libm-test.pl.
11249         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
11250         referencing gen-libm-test.pl.
11251         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
11252         * math/libm-test-support.c: Likewise.
11253         * math/libm-test-support.h: Likewise.
11254         * sysdeps/generic/libm-test-ulps: Likewise.
11255
11256 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11257
11258         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
11259         Fix value.
11260
11261 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
11262
11263         * math/libm-test-nextdown.inc (do_test): Move comment to ....
11264         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
11265
11266 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11267
11268         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
11269         symbols.
11270         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
11271         __pthread_setspecific): Add hidden proto.
11272         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
11273         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
11274
11275 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11276
11277         * benchtests/bench-string.h (buf1_size, buf2_size): New
11278         variables.
11279         (init_sizes): New function.
11280         (test_init): Use it.
11281         (alloc_buf, exit_error): New functions.
11282         (alloc_bufs): Use ALLOC_BUF.
11283         (realloc_bufs): Remove.
11284         * benchtests/bench-memcmp.c (do_test): Adjust.
11285         * benchtests/bench-memset-large.c (do_test): Likewise.
11286         * benchtests/bench-memset-walk.c (do_test): Likewise.
11287         * benchtests/bench-memset.c (do_test): Likewise.
11288         * benchtests/bench-strncmp.c (do_test): Likewise.
11289
11290 2018-08-06  Andreas Schwab  <schwab@suse.de>
11291
11292         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
11293         of CONST_THREAD_AREA.
11294
11295 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
11296
11297         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
11298         (STATE_SAVE_MASK): Likewise.
11299         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11300         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11301         (STATE_SAVE_MASK): Likewise.
11302         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11303         instead of <cpu-features.h>.
11304
11305 2018-08-03  DJ Delorie  <dj@redhat.com>
11306
11307         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11308         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11309
11310         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11311
11312 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
11313
11314         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11315         after TEST_* calls.
11316         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11317         * math/libm-test-logb.inc (logb_test_data): Likewise.
11318
11319 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
11320
11321         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11322         * string/strstr.c (AVAILABLE): Likewise.
11323
11324 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11325
11326         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11327         <init-arch.h>.
11328         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11329         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11330         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11331
11332 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
11333
11334         * po/be.po: Update translation.
11335
11336         * po/be.po: Update translation.
11337
11338 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11339
11340         * sysdeps/x86/cpu-features-offsets.sym
11341         (rtld_global_ro_offsetof): Removed.
11342         (CPU_FEATURES_SIZE): Likewise.
11343         (CPUID_OFFSET): Likewise.
11344         (CPUID_SIZE): Likewise.
11345         (CPUID_EAX_OFFSET): Likewise.
11346         (CPUID_EBX_OFFSET): Likewise.
11347         (CPUID_ECX_OFFSET): Likewise.
11348         (CPUID_EDX_OFFSET): Likewise.
11349         (FAMILY_OFFSET): Likewise.
11350         (MODEL_OFFSET): Likewise.
11351         (FEATURE_OFFSET): Likewise.
11352         (FEATURE_SIZ): Likewise.
11353         (COMMON_CPUID_INDEX_1): Likewise.
11354         (COMMON_CPUID_INDEX_7): Likewise.
11355         (FEATURE_INDEX_1): Likewise.
11356         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11357
11358 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
11359
11360         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11361         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11362         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11363         (install-locales): Depend on install-locale-archive.
11364         (install-locale-archive): Define.
11365         (install-locale-files): Define.
11366         (build-one-locale): Define macro.
11367         * manual/install.texi (Running make install): Document.
11368         * manual/INSTALL: Regenerate.
11369
11370 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11371
11372         * benchtests/scripts/compare_strings.py: Import traceback.
11373         (parse_file): Pretty-print error.
11374
11375         * NEWS: Mention the change.
11376         * elf/dl-tunables.list: Rename tune namespace to cpu.
11377         * sysdeps/powerpc/dl-tunables.list: Likewise.
11378         * sysdeps/x86/dl-tunables.list: Likewise.
11379         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11380         cpu.name.
11381         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11382         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11383         * manual/README.tunables: Likewise.
11384         * manual/tunables.texi: Likewise.
11385         * sysdeps/powerpc/cpu-features.c: Likewise.
11386         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11387         (init_cpu_features): Likewise.
11388         * sysdeps/x86/cpu-features.c: Likewise.
11389         * sysdeps/x86/cpu-features.h: Likewise.
11390         * sysdeps/x86/cpu-tunables.c: Likewise.
11391         * sysdeps/x86_64/Makefile: Likewise.
11392         * sysdeps/x86/dl-cet.c: Likewise.
11393
11394 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
11395
11396         [BZ #23479]
11397         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11398         [__mips_hard_float].
11399         (FE_UNDERFLOW): Likewise.
11400         (FE_OVERFLOW): Likewise.
11401         (FE_DIVBYZERO): Likewise.
11402         (FE_INVALID): Likewise.
11403         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11404         (FE_TOWARDZERO): Define only if [__mips_hard_float].
11405         (FE_UPWARD): Likewise.
11406         (FE_DOWNWARD): Likewise.
11407         (__FE_UNDEFINED): Define if [!__mips_hard_float]
11408         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11409         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11410         [__mips_hard_float].
11411         (FP_ROUNDMODE): Likewise.
11412         (FP_RND_NEAREST): Likewise.
11413         (FP_RND_ZERO): Likewise.
11414         (FP_RND_PINF): Likewise.
11415         (FP_RND_MINF): Likewise.
11416         (FP_EX_INVALID): Likewise.
11417         (FP_EX_OVERFLOW): Likewise.
11418         (FP_EX_UNDERFLOW): Likewise.
11419         (FP_EX_DIVZERO): Likewise.
11420         (FP_EX_INEXACT): Likewise.
11421         (FP_INIT_ROUNDMODE): Likewise.
11422         * sysdeps/mips/nofpu/fesetenv.c: New file.
11423         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11424
11425 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11426
11427         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11428         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11429         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11430         conditional on [FE_UPWARD].
11431
11432 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         regex: fix memory leak in Gnulib
11435         Problem and fix reported by Assaf Gordon in:
11436         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11437         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11438         range_ends members too, as they are defined in 'struct
11439         re_charset_t' even if not _LIBC.  This affects only Gnulib.
11440
11441 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11442
11443         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11444         ...
11445         (get_common_indices): This.
11446         (init_cpu_features): Updated.
11447
11448 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11449
11450         * sysdeps/generic/math-tests-snan-payload.h: New file.
11451         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11452         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11453         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11454         * sysdeps/generic/math-tests.h: Include
11455         <math-tests-snan-payload.h>.
11456         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11457         * sysdeps/hppa/math-tests.h: Remove file.
11458         * sysdeps/mips/math-tests.h [!__mips_nan2008]
11459         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11460         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11461         Likewise.
11462
11463         * sysdeps/generic/math-tests-snan-cast.h: New file.
11464         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11465         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11466         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11467         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11468
11469 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
11470
11471         * version.h (RELEASE): Set to "development".
11472         (VERSION): Set to "2.28.9000".
11473         * NEWS (2.29): New section.
11474
11475         * version.h (RELEASE): Set to "stable".
11476         (VERSION): Set to "2.28".
11477         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11478         * NEWS: Add the list of bugs fixed in 2.28.
11479
11480         * po/ca.po: Update to latest version.
11481         * po/cs.po: Likewise
11482         * po/da.po: Likewise
11483         * po/el.po: Likewise
11484         * po/eo.po: Likewise
11485         * po/es.po: Likewise
11486         * po/fi.po: Likewise
11487         * po/fr.po: Likewise
11488         * po/gl.po: Likewise
11489         * po/hu.po: Likewise
11490         * po/ia.po: Likewise
11491         * po/id.po: Likewise
11492         * po/it.po: Likewise
11493         * po/ja.po: Likewise
11494         * po/ko.po: Likewise
11495         * po/lt.po: Likewise
11496         * po/nb.po: Likewise
11497         * po/nl.po: Likewise
11498         * po/pt_BR.po: Likewise
11499         * po/ru.po: Likewise
11500         * po/rw.po: Likewise
11501         * po/sk.po: Likewise
11502         * po/sl.po: Likewise
11503         * po/tr.po: Likewise
11504         * po/zh_CN.po: Likewise
11505         * po/zh_TW.po: Likewise
11506
11507 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11508
11509         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11510         initialization...
11511         (init): ... before initializing libpthread.
11512
11513         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11514         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11515         (__mach_setup_tls): ... new function.
11516         (mach_setup_tls): New alias.
11517         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11518         __mach_setup_thread.
11519         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11520         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11521         * mach/Versions [libc] (mach_setup_tls): Add symbol.
11522         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11523
11524 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11525
11526         * manual/install.texi: Update versions.
11527         * INSTALL: Regenerate.
11528
11529         * manual/contrib.texi (Contributors): Update contributions.
11530
11531 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11532
11533         * po/be.po: Update translations.
11534
11535 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11536
11537         * sysdeps/sh/libm-test-ulps: Update.
11538
11539 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
11540
11541         * po/bg.po: Update translations.
11542         * po/de.po: Likewise.
11543         * po/hr.po: Likewise.
11544         * po/pt_BR.po: Likewise.
11545         * po/sv.po: Likewise.
11546         * po/vi.po: Likewise.
11547
11548 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11549
11550         [BZ #23467]
11551         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11552         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11553         (CFLAGS-tst-cet-property-1.o): New.
11554         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11555         ($(objpfx)tst-cet-property-2): Likewise.
11556         ($(objpfx)tst-cet-property-2.out): Likewise.
11557         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11558         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11559         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11560         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11561         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11562
11563 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11564
11565         [BZ #23458]
11566         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11567
11568 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11569
11570         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11571         __sbrk): Do not set attribute_hidden.
11572         * sysdeps/mach/hurd/not-errno.h: New file.
11573         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11574         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11575
11576 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
11577
11578         * po/uk.po: Update translations.
11579         * po/cs.po: Likewise.
11580         * po/pl.po: Likewise.
11581
11582 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
11583
11584         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11585         parse beyond the note end.
11586
11587 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11588
11589         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11590         kernel does not support OFD locks.
11591         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11592
11593 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11594
11595         * sysdeps/mach/hurd/Versions (libc): Make __access and
11596         __access_noerrno external so they can override the ld symbols.
11597         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11598         __writev, __open64, __access_noerrno extern so they can be overrided.
11599         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11600         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11601
11602 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
11603
11604         * po/libc.pot: Regenerate.
11605
11606 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
11607
11608         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11609
11610 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11611
11612         [BZ #23459]
11613         * sysdeps/x86/cpu-features.c (get_extended_indices): New
11614         function.
11615         (init_cpu_features): Call get_extended_indices for both Intel
11616         and AMD CPUs.
11617         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11618         Remove "for AMD" comment.
11619
11620 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11621
11622         [BZ # 23456]
11623         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11624         COMMON_CPUID_INDEX_80000001.
11625
11626 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
11627
11628         * string/tst-xbzero-opt.c (use_test_buffer): New function.
11629         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11630
11631 2018-07-26  Florian Weimer  <fweimer@redhat.com>
11632
11633         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11634         aliases for symbols not in the implementation namespace.
11635
11636 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
11637
11638         [BZ #23393]
11639         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11640         lowercase in LATIN script.
11641         * localedata/Makefile (test-input): Add en_US.UTF-8.
11642         * localedata/en_US.UTF-8.in: New file.
11643         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11644         and restore old tests.
11645         * posix/tst-regexloc.c (do_test): Add back range expression test.
11646
11647 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11648
11649         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11650
11651 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11652
11653         * nptl/threads.h: Move to ...
11654         * sysdeps/nptl/threads.h: ... here.
11655         * sysdeps/hurd/stdc-predef.h: New file.
11656
11657 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11658
11659         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11660         tst-cet-setcontext-1 if CET is enabled.
11661         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11662         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11663
11664 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11665
11666         * include/threads.h: Move to ...
11667         * sysdeps/nptl/threads.h: ... here.
11668         * sysdeps/htl/threads.h: New file.
11669         * conform/Makefile (linknamespace-libs-ISO11): Use
11670         static-thread-library instead of linking libpthread.
11671         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11672
11673 2018-07-25  Florian Weimer  <fweimer@redhat.com>
11674
11675         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11676         nanoseconds into seconds.
11677         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11678         (do_test): Likewise.
11679         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11680         (do_test): Likewise.  Avoid nanosecond overflow and spurious
11681         timeouts due to system load.
11682         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11683         (child_wait): Increment it.
11684         (do_test): Wait as long as necessary until all expected threads
11685         have arrived.
11686
11687 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
11688             H.J. Lu  <hongjiu.lu@intel.com>
11689
11690         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11691         __ssp.
11692         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11693         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11694         (__push___start_context): New.
11695         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11696         <asm/prctl.h>.
11697         (__getcontext): Record the current shadow stack base.  Save the
11698         caller's shadow stack pointer and base.
11699         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11700         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11701         (__push___start_context): New prototype.
11702         (__makecontext): Call __push___start_context to allocate a new
11703         shadow stack, push __start_context onto the new stack as well
11704         as the new shadow stack.
11705         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11706         <asm/prctl.h>.
11707         (__setcontext): Restore the target shadow stack.
11708         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11709         <asm/prctl.h>.
11710         (__swapcontext): Record the current shadow stack base.  Save
11711         the caller's shadow stack pointer and base. Restore the target
11712         shadow stack.
11713         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11714         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11715         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11716
11717 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11718
11719         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11720         tst-setcontext8 and tst-setcontext9.
11721         * stdlib/tst-setcontext6.c: New file.
11722         * stdlib/tst-setcontext7.c: Likewise.
11723         * stdlib/tst-setcontext8.c: Likewise.
11724         * stdlib/tst-setcontext9.c: Likewise.
11725
11726 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11727
11728         * stdlib/Makefile ((tests): Add tst-setcontext5.
11729         * stdlib/tst-setcontext5.c: New file.
11730
11731 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11732
11733         * stdlib/Makefile (tests): Add tst-setcontext4.
11734         * stdlib/tst-setcontext4.c: New file.
11735
11736 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11737
11738         * stdlib/Makefile (tests): Add tst-swapcontext1.
11739         * stdlib/tst-swapcontext1.c: New test.
11740
11741 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11742
11743         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11744         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11745         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11746         and tst-cet-legacy-4c.
11747         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11748         and tst-cet-legacy-mod-4.
11749         (CFLAGS-tst-cet-legacy-2.c): New.
11750         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11751         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11752         (CFLAGS-tst-cet-legacy-3.c): Likewise.
11753         (CFLAGS-tst-cet-legacy-4.c): Likewise.
11754         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11755         ($(objpfx)tst-cet-legacy-1): Likewise.
11756         ($(objpfx)tst-cet-legacy-2): Likewise.
11757         ($(objpfx)tst-cet-legacy-2.out): Likewise.
11758         ($(objpfx)tst-cet-legacy-2a): Likewise.
11759         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11760         ($(objpfx)tst-cet-legacy-4): Likewise.
11761         ($(objpfx)tst-cet-legacy-4.out): Likewise.
11762         ($(objpfx)tst-cet-legacy-4a): Likewise.
11763         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11764         (tst-cet-legacy-4a-ENV): Likewise.
11765         ($(objpfx)tst-cet-legacy-4b): Likewise.
11766         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11767         (tst-cet-legacy-4b-ENV): Likewise.
11768         ($(objpfx)tst-cet-legacy-4c): Likewise.
11769         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11770         (tst-cet-legacy-4c-ENV): Likewise.
11771         * sysdeps/x86/tst-cet-legacy-1.c: New file.
11772         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11773         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11774         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11775         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11776         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11777         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11778         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11779         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11780         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11781         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11782
11783 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11784
11785         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11786         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11787         with ssp_base.
11788         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11789         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11790         with ssp_base.
11791
11792 2018-07-25  Andreas Schwab  <schwab@suse.de>
11793
11794         [BZ #23442]
11795         * locale/weightwc.h (findidx): Handle the case where usrc is a
11796         prefix of cp but one character too short.
11797
11798 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11799
11800         * NEWS: Add ISO C threads addition.
11801
11802 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11803
11804         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11805         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11806         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
11807         4.13.
11808
11809 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11810
11811         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11812         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11813         <sys/prctl.h> and <asm/prctl.h>.
11814         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11815         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11816         and <asm/prctl.h>.
11817         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11818         ARCH_CET_LEGACY_BITMAP.
11819         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11820         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11821         * sysdeps/x86/libc-start.c: Include <startup.h>.
11822
11823 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11824
11825         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11826         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
11827
11828 2018-07-24  Rical Jasan  <rj@2c3t.io>
11829             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11830             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11831
11832         [BZ #14092]
11833         * manual/debug.texi: Update adjacent chapter name.
11834         * manual/probes.texi: Likewise.
11835         * manual/threads.texi (ISO C Threads): New section.
11836         (POSIX Threads): Convert to a section.
11837
11838 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11839             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11840
11841         [BZ# 14092]
11842         * nptl/Makefile (tests): Add new test files.
11843         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11844         * nptl/tst-cnd-basic.c: Likewise.
11845         * nptl/tst-cnd-broadcast.c: Likewise.
11846         * nptl/tst-cnd-timedwait.c: Likewise.
11847         * nptl/tst-mtx-basic.c: Likewise.
11848         * nptl/tst-mtx-recursive.c: Likewise.
11849         * nptl/tst-mtx-timedlock.c: Likewise.
11850         * nptl/tst-mtx-trylock.c: Likewise.
11851         * nptl/tst-thrd-basic.c: Likewise.
11852         * nptl/tst-thrd-detach.c: Likewise.
11853         * nptl/tst-thrd-sleep.c: Likewise.
11854         * nptl/tst-tss-basic.c: Likewise.
11855
11856 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11857
11858         [BZ #14092]
11859         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11860         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11861         symbols.
11862         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11863         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11864         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11865         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11866         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11867         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11868         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11869         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11870         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11871         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11872         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11873         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11875         Likewise.
11876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11877         Likewise.
11878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11879         Likewise.
11880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11881         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11882         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11883         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11884         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11885         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11886         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11887         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11888         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11889         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11890         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11891         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11892         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11893         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11894         Likewise.
11895         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11896         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11897         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11898         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11899         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11900         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11901         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11902         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11903         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11904         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11905         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11906         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11907         ikewise.
11908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11910         Likewise.
11911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11912         Likewise.
11913         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11914         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11915         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11916         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11917         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11918         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11919         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11920         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11921
11922         [BZ #14092]
11923         * conform/data/threads.h-data (thread_local): New macro.
11924         (TSS_DTOR_ITERATIONS): Likewise.
11925         (tss_t): New type.
11926         (tss_dtor_t): Likewise.
11927         (tss_create): New function.
11928         (tss_get): Likewise.
11929         (tss_set): Likewise.
11930         (tss_delete): Likewise.
11931         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11932         tss_get, and tss_set objects.
11933         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11934         * nptl/tss_create.c: New file.
11935         * nptl/tss_delete.c: Likewise.
11936         * nptl/tss_get.c: Likewise.
11937         * nptl/tss_set.c: Likewise.
11938         * sysdeps/nptl/threads.h (thread_local): New define.
11939         (TSS_DTOR_ITERATIONS): Likewise.
11940         (tss_t): New typedef.
11941         (tss_dtor_t): Likewise.
11942         (tss_create): New prototype.
11943         (tss_get): Likewise.
11944         (tss_set): Likewise.
11945         (tss_delete): Likewise.
11946
11947         [BZ #14092]
11948         * conform/data/threads.h-data (cnd_t): New type.
11949         (cnd_init): New function.
11950         (cnd_signal): Likewise.
11951         (cnd_broadcast): Likewise.
11952         (cnd_wait): Likewise.
11953         (cnd_timedwait): Likewise.
11954         (cnd_destroy): Likewise.
11955         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11956         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11957         object.
11958         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11959         * nptl/cnd_broadcast.c: New file.
11960         * nptl/cnd_destroy.c: Likewise.
11961         * nptl/cnd_init.c: Likewise.
11962         * nptl/cnd_signal.c: Likewise.
11963         * nptl/cnd_timedwait.c: Likewise.
11964         * nptl/cnd_wait.c: Likewise.
11965         * sysdeps/nptl/threads.h (cnd_t): New type.
11966         (cnd_init): New prototype.
11967         (cnd_signa): Likewise.
11968         (cnd_broadcast): Likewise.
11969         (cnd_wait): Likewise.
11970         (cnd_timedwait): Likewise.
11971         (cnd_destroy): Likewise.
11972
11973         [BZ #14092]
11974         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11975         (once_flag): New type.
11976         (call_once): New function.
11977         * nptl/Makefile (libpthread-routines): Add call_once object.
11978         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11979         * nptl/call_once.c: New file.
11980         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11981         (once_flag): New type.
11982         (call_once): New prototype.
11983
11984         [BZ #14092]
11985         * conform/data/threads.h-data (mtx_plain): New constant.
11986         (mtx_recursive): Likewise.
11987         (mtx_timed): Likewise.
11988         (mtx_t): New type.
11989         (mtx_init): New function.
11990         (mtx_lock): Likewise.
11991         (mtx_timedlock): Likewise.
11992         (mtx_trylock): Likewise.
11993         (mtx_unlock): Likewise.
11994         (mtx_destroy): Likewise.
11995         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11996         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11997         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11998         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11999         * nptl/mtx_destroy.c: New file.
12000         * nptl/mtx_init.c: Likewise.
12001         * nptl/mtx_lock.c: Likewise.
12002         * nptl/mtx_timedlock.c: Likewise.
12003         * nptl/mtx_trylock.c: Likewise.
12004         * nptl/mtx_unlock.c: Likewise.
12005         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
12006         (mtx_recursive): Likewise.
12007         (mtx_timed): Likewise.
12008         (mtx_t): New type.
12009         (mtx_init): New prototype.
12010         (mtx_lock): Likewise.
12011         (mtx_timedlock): Likewise.
12012         (mtx_trylock): Likewise.
12013         (mtx_unlock): Likewise.
12014         (mtx_destroy): Likewise.
12015
12016         [BZ #14092]
12017         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
12018         (linknamespace-libs-ISO11): Add libpthread.a.
12019         * conform/data/threads.h-data: New file: add C11 thrd_* types and
12020         functions.
12021         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
12022         * nptl/Makefile (headers): Add threads.h.
12023         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
12024         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
12025         thrd_yield.
12026         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
12027         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
12028         thrd_join, thrd_sleep, and thrd_yield symbols.
12029         * nptl/descr.h (struct pthread): Add c11 field.
12030         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
12031         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
12032         routine with expected function prototype.
12033         (__pthread_create_2_1): Add C11 threads check based on attribute
12034         value.
12035         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
12036         * nptl/thrd_create.c: New file.
12037         * nptl/thrd_current.c: Likewise.
12038         * nptl/thrd_detach.c: Likewise.
12039         * nptl/thrd_equal.c: Likewise.
12040         * nptl/thrd_exit.c: Likewise.
12041         * nptl/thrd_join.c: Likewise.
12042         * nptl/thrd_priv.h: Likewise.
12043         * nptl/thrd_sleep.c: Likewise.
12044         * nptl/thrd_yield.c: Likewise.
12045         * include/threads.h: Likewise.
12046
12047 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12048
12049         * bits/indirect-return.h: New file.
12050         * misc/sys/cdefs.h (__glibc_has_attribute): New.
12051         * sysdeps/x86/bits/indirect-return.h: Likewise.
12052         * stdlib/Makefile (headers): Add bits/indirect-return.h.
12053         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
12054         (swapcontext): Add __INDIRECT_RETURN.
12055         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
12056         (prepare_test_buffer): Use it.
12057
12058 2018-07-24  Andreas Schwab  <schwab@suse.de>
12059
12060         [BZ #23448]
12061         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
12062         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
12063
12064 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12065
12066         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
12067         Redefine if shadow stack is enabled.
12068         (SYSCALL_ERROR_LABEL): Likewise.
12069         (__vfork): Pop shadow stack and jump back to to caller directly
12070         when shadow stack is in use.
12071         * sysdeps/unix/sysv/linux/x86_64/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
12077 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12078
12079         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
12080         enabled.
12081         (foo): Likewise.
12082         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
12083         (foo): Likewise.
12084
12085 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
12086
12087         * scripts/build-many-glibcs.py (Context.checkout): Default
12088         binutils version to 2.31 branch.
12089
12090 2018-07-20  Zong Li  <zong@andestech.com>
12091
12092         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
12093         URL of gcc's tarball.
12094
12095 2018-07-20  Florian Weimer  <fweimer@redhat.com>
12096
12097         [BZ #23396]
12098         * posix/regcomp.c (build_equiv_class): When comparing weights, do
12099         not compare an extra byte after the end of the weights.
12100
12101 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12102
12103         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
12104         to 1.
12105         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
12106         hidden prototypes.
12107         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
12108         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
12109         * scripts/check-execstack.awk: Consider `xfail' variable containing a
12110         list of libraries whose stack executability is expected.
12111         * elf/Makefile ($(objpfx)check-execstack.out): Pass
12112         $(check-execstack-xfail) to check-execstack.awk through `xfail'
12113         variable.
12114         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
12115         libc.so libpthread.so.
12116
12117 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
12118
12119         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
12120         SOCK_NONBLOCK.
12121         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
12122         and SOCK_NONBLOCK.
12123         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
12124         implement __pipe2.
12125         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
12126
12127 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
12128
12129         * benchtests/scripts/compare_bench.py (__main__): use the argparse
12130         library to improve command line parsing.
12131         (__main__): make schema file as optional parameter (--schema),
12132         defaulting to benchtests/scripts/benchout.schema.json.
12133         (main): move out of the parsing stuff to __main_  and leave it
12134         only as caller of main comparison functions.
12135
12136 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
12137
12138         * NEWS: Add a note for Intel CET status.
12139         * manual/install.texi: Likewise.
12140         * INSTALL: Regenerated.
12141
12142 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
12143
12144         [BZ #23140]
12145         * localedata/locales/oc_FR (mon): Rename to...
12146         (alt_mon): This, then update October (typo fix).
12147         (mon): New content (genitive case, month names preceded by
12148         "de" or "d’").
12149
12150         [BZ #23422]
12151         * localedata/locales/oc_FR (abday): Update all items.
12152         (day): Update Wednesday and Saturday (typo fixes).
12153         (abmon): Update all items, except May.
12154         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
12155         (LC_IDENTIFICATION): Bump the revision number and date.
12156         Keep the "category" entries in alphabetic order.
12157         (LC_ADDRESS): Remove no longer needed comment.
12158         (LC_COLLATE): Use “copy "ca_ES"”.
12159         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
12160         "name_mrs".
12161
12162 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
12163
12164         * grp/tst_fgetgrent.c: Include <unistd.h>.
12165         (main): Use mkstemp instead of tmpnam.
12166         * io/test-utime.c (main): Likewise.
12167         * posix/annexc.c (macrofile): Change to modifiable array.
12168         (main): Remove macrofile here.
12169         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
12170         macrofile here.
12171         (check_header): Do not remove macrofile here.
12172         * posix/bug-getopt1.c: Include <stdlib.h>.
12173         (do_test): Use mkstemp instead of tmpnam.
12174         * posix/bug-getopt2.c: Include <stdlib.h>.
12175         (do_test): Use mkstemp instead of tmpnam.
12176         * posix/bug-getopt3.c: Include <stdlib.h>.
12177         (do_test): Use mkstemp instead of tmpnam.
12178         * posix/bug-getopt4.c: Include <stdlib.h>.
12179         (do_test): Use mkstemp instead of tmpnam.
12180         * posix/bug-getopt5.c: Include <stdlib.h>.
12181         (do_test): Use mkstemp instead of tmpnam.
12182         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
12183         (main): Use mkstemp instead of tmpnam.
12184         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
12185         (main): Use mkstemp instead of tmpnam.
12186         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
12187         (main): use mkstemp instead of tmpnam.
12188         * stdlib/isomac.c (macrofile): Change to modifiable array.
12189         (main): Remove macrofile here.
12190         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
12191         macrofile here.
12192         (check_header): Do not remove macrofile here.
12193
12194 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12195
12196         * manual/tunables.texi: Document glibc.tune.x86_ibt and
12197         glibc.tune.x86_shstk.
12198
12199 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12200
12201         * NEWS: Mention --enable-cet.
12202         * manual/install.texi: Document --enable-cet.
12203         * INSTALL: Regenerated.
12204
12205 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12206
12207         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
12208         Add _CET_NOTRACK before indirect jump to jump table.
12209
12210 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12211
12212         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
12213         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12214         to jump table.
12215
12216 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12217
12218         * sysdeps/i386/i686/multiarch/strcat-sse2.S
12219         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12220         to jump table.
12221
12222 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12223
12224         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
12225         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12226         to jump table.
12227
12228 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12229
12230         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
12231         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12232         to jump table.
12233
12234 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12235
12236         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
12237         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12238         to jump table.
12239         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
12240
12241 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12242
12243         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
12244         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12245         to jump table.
12246
12247 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12248
12249         * sysdeps/i386/i686/multiarch/memset-sse2.S
12250         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12251         to jump table.
12252
12253 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
12256         indirect jump to jump table.
12257
12258 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12259
12260         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
12261         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12262         to jump table.
12263         (MEMCPY): Likewise.
12264
12265 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12266
12267         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
12268         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12269         to jump table.
12270         (MEMCPY): Likewise.
12271
12272 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12273
12274         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12275         _CET_NOTRACK before indirect jump to jump table.
12276
12277 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12278
12279         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
12280         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12281         to jump table.
12282
12283 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
12284
12285         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
12286         indirect jump to jump table.
12287
12288 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
12289
12290         [BZ #22241]
12291         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
12292         (LOCALES): Likewise.
12293         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
12294         * localedata/locales/sah_RU: New file.
12295         * localedata/sah_RU.UTF-8.in: New file.
12296
12297 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12298
12299         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12300         "sysdep.h".
12301         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
12302         _CET_ENDBR to indirect jump targets and adjust jump destination
12303         for _CET_ENDBR.
12304         * sysdeps/i386/i686/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/sub_n.S: Include <sysdep.h>, instead of
12310         "sysdep.h".
12311         (__mpn_sub_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
12315 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12316
12317         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12318         _CET_ENDBR.
12319
12320 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12321
12322         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12323         _CET_ENDBR.
12324         (_dl_tlsdesc_undefweak): Likewise.
12325         (_dl_tlsdesc_dynamic): Likewise.
12326         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12327         (_dl_tlsdesc_resolve_rel): Likewise.
12328         (_dl_tlsdesc_resolve_rela): Likewise.
12329         (_dl_tlsdesc_resolve_hold): Likewise.
12330         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12331         (_dl_tlsdesc_undefweak): Likewise.
12332         (_dl_tlsdesc_dynamic): Likewise.
12333         (_dl_tlsdesc_resolve_rela): Likewise.
12334         (_dl_tlsdesc_resolve_hold): Likewise.
12335
12336 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12337
12338         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12339         (_fini): Likewise.
12340         * sysdeps/x86_64/crti.S (_init): Likewise.
12341         (_fini): Likewise.
12342
12343 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
12344
12345         [BZ #23140]
12346         * localedata/locales/os_RU (mon): Rename to...
12347         (alt_mon): This.
12348         (mon): Import from CLDR (genitive case).
12349
12350 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12351
12352         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12353         cet-tunables.h> when CET is enabled.
12354
12355 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12356
12357         [BZ #21598]
12358         * configure.ac: Add --enable-cet.
12359         * configure: Regenerated.
12360         * elf/Makefille (all-built-dso): Add a comment.
12361         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12362         Include <dl-prop.h>.
12363         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12364         segment.
12365         * elf/dl-open.c: Include <dl-prop.h>.
12366         (dl_open_worker): Call _dl_open_check.
12367         * elf/rtld.c: Include <dl-prop.h>.
12368         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
12369         _rtld_main_check.
12370         * sysdeps/generic/dl-prop.h: New file.
12371         * sysdeps/i386/dl-cet.c: Likewise.
12372         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12373         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12374         * sysdeps/x86/cet-tunables.h: Likewise.
12375         * sysdeps/x86/check-cet.awk: Likewise.
12376         * sysdeps/x86/configure: Likewise.
12377         * sysdeps/x86/configure.ac: Likewise.
12378         * sysdeps/x86/dl-cet.c: Likewise.
12379         * sysdeps/x86/dl-procruntime.c: Likewise.
12380         * sysdeps/x86/dl-prop.h: Likewise.
12381         * sysdeps/x86/libc-start.h: Likewise.
12382         * sysdeps/x86/link_map.h: Likewise.
12383         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12384         _CET_ENDBR.
12385         (_dl_runtime_profile): Likewise.
12386         (_dl_runtime_resolve_shstk): New.
12387         (_dl_runtime_profile_shstk): Likewise.
12388         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12389         if CET is enabled.
12390         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12391         (CFLAGS-.os): Likewise.
12392         (CFLAGS-.op): Likewise.
12393         (CFLAGS-.oS): Likewise.
12394         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12395         is enabled.
12396         (tests-special): Add $(objpfx)check-cet.out.
12397         (cet-built-dso): New.
12398         (+$(cet-built-dso:=.note)): Likewise.
12399         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12400         ($(objpfx)check-cet.out): New.
12401         (generated): Add check-cet.out.
12402         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12403         <cet-tunables.h>.
12404         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12405         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12406         (init_cpu_features): Call get_cet_status to check CET status
12407         and update dl_x86_feature_1 with CET status.  Call
12408         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12409         (set_x86_shstk).  Disable and lock CET in libc.a.
12410         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12411         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12412         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12413         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12414         (_CET_ENDBR): Define if not defined.
12415         (ENTRY): Add _CET_ENDBR.
12416         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12417         x86_shstk.
12418         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12419         _CET_ENDBR.
12420         (_dl_runtime_profile): Likewise.
12421
12422 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
12423
12424         [BZ #21895]
12425         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12426         restore r2 on longjmp.
12427         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12428         test list.
12429         Added rules to build test tst-setjmp-bug21895-static.
12430         Added module setjmp-bug21895 and rules to build a shared object from it.
12431         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12432         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12433
12434 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
12435
12436         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12437         * benchtests/bench-strstr.c: Likewise.
12438         * string/memmem.c (FASTSEARCH): Define.
12439         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12440         Add support for FASTSEARCH.
12441         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12442         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12443         (FASTSEARCH): Define.
12444         * string/test-strcasestr.c: Rename __strnlen to strnlen.
12445         * string/test-strstr.c: Likewise.
12446
12447 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
12448
12449         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12450         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12451
12452 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12453             H.J. Lu  <hongjiu.lu@intel.com>
12454
12455         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12456         (__longjmp): Restore shadow stack pointer if shadow stack is
12457         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12458         isn't defined for __longjmp_cancel.
12459         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12460         (_setjmp): Save shadow stack pointer if shadow stack is enabled
12461         and SHADOW_STACK_POINTER_OFFSET is defined.
12462         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12463         (setjmp): Save shadow stack pointer if shadow stack is enabled
12464         and SHADOW_STACK_POINTER_OFFSET is defined.
12465         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12466         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12467         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12468         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12469         <jmp_buf-ssp.h>.
12470         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12471         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12472         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12473         Remove jmp_buf-ssp.sym.
12474         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12475         <jmp_buf-ssp.h>.
12476         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12477         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12478         * sysdeps/x86/Makefile (gen-as-const-headers): Add
12479         jmp_buf-ssp.sym.
12480         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12481         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12482         (__longjmp): Restore shadow stack pointer if shadow stack is
12483         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12484         isn't defined for __longjmp_cancel.
12485         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12486         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12487         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12488
12489 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12490
12491         [BZ #22563]
12492         * nptl/pthread_create.c: Include <tls-setup.h>.
12493         (__pthread_create_2_1): Call tls_setup_tcbhead.
12494         * sysdeps/generic/tls-setup.h: New file.
12495         * sysdeps/x86/nptl/tls-setup.h: Likewise.
12496         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12497         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12498         Likewise.
12499         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12500         to feature_1.
12501         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12502         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12503         (X86_FEATURE_1_SHSTK): Likewise.
12504         (CET_ENABLED): Likewise.
12505         (IBT_ENABLED): Likewise.
12506         (SHSTK_ENABLED): Likewise.
12507
12508 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
12509
12510         [BZ #23208]
12511         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12512         (LOCALES): Likewise.
12513         * localedata/dsb_DE.UTF-8.in: New file.
12514         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12515
12516 2018-07-12  Florian Weimer  <fweimer@redhat.com>
12517
12518         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12519         __mprotect, not mprotect.
12520
12521 2018-07-11  Florian Weimer  <fweimer@redhat.com>
12522
12523         * io/Makefile (headers): Add bits/statx.h.
12524
12525 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
12526
12527         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12528         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12529         and headers.
12530         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12531         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12532         for utf8_gen.py
12533
12534 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12535
12536         * io/Makefile (routines): Add statx.
12537         (tests-internal): Add tst-statx.
12538         * io/Versions (GLIBC_2.28): Export statx.
12539         * io/bits/statx.h: New file.
12540         * io/sys/stat.h [__USE_GNU]: Include it.
12541         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12542         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12543         Define.
12544         * io/statx.c: New file.
12545         * io/statx_generic.: Likewise.
12546         * io/tst-statx.: Likewise.
12547         * include/bits/statx.h: Likewise.
12548         * sysdeps/unix/sysv/linux/kernel-features.h
12549         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12550         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12551         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12552         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12553         Undefine.
12554         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12555         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12556         * sysdeps/unix/sysv/linux/statx.c: New file.
12557         * manual/filesys.texi: Note that statx is undocumented.
12558         * sysdeps/**/libc*.abilist: Update.
12559
12560 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12561
12562         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12563         a kernel issue which lead to test failure in some cases.
12564
12565 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12566
12567         [BZ #23036]
12568         * posix/regexec.c (check_node_accept_bytes): When comparing
12569         weights, do not compare an extra byte after the end of the
12570         weights.
12571
12572 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12573
12574         * libio/readline.c: Fix copyright year.
12575         * libio/tst-readline.c Likewise.
12576         * nss/tst-nss-files-hosts-getent.c: Likewise.
12577
12578 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12579
12580         [BZ #18991]
12581         * nss/nss_files/files-XXX.c (internal_getent): Use
12582         __libc_readline_unlocked.  Seek back to the start of the line if
12583         parsing failes with ERANGE.
12584         (get_contents_ret, get_contents): Remove.
12585         * nss/tst-nss-files-hosts-getent.c: New file.
12586         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12587         (tst-nss-files-hosts-getent): Link with -ldl.
12588
12589 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12590
12591         * include/stdio.h (__libc_readline_unlocked): Declare.
12592         (__ftello64, __fseeko64): Declare aliases.
12593         * libio/readline.c: New file.
12594         * libio/tst-readline.c: Likewise.
12595         (routines): Add readline.
12596         (tests-internal): Add tst-readlime.
12597         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12598         __libc_readline_unlocked.
12599         * libio/fseeko.c (__fseeko): Rename from fseeko.
12600         (fseeko): Add alias.
12601         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12602         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12603         (fseeko64): Add alias.
12604         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12605         * libio/ftello64.c (__ftello64): Rename from ftello64.
12606         (ftello64): Add alias.
12607
12608 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12609
12610         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12611         HWCAP_ATOMICS.
12612
12613 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12614
12615         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12616         Use dl_hwcap without masking.
12617         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12618         Remove HWCAP_CPUID.
12619
12620 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12621
12622         * conform/conformtest.pl (checknamespace): Escape literal braces
12623         in regular expressions.
12624
12625 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
12626
12627         * sysdeps/x86/cpu-features.c (get_common_indeces):
12628         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12629         * sysdeps/x86/cpu-features.c (init_cpu_features):
12630         AVX_Fast_Unaligned_Load is disabled for Excavator core.
12631
12632 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12633
12634         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12635         protector.
12636         (CFLAGS-elf-init.oS): Likewise.
12637
12638 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12639             Carlos O'Donell  <carlos@redhat.com>
12640
12641         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12642         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
12643         with stack protector enabled because there is no risk of infinite
12644         recursion.
12645
12646 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
12647
12648         [BZ #19818]
12649         [BZ #23307]
12650         * libc-abis (ABSOLUTE): New ABI.
12651         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12652         * NEWS: Mention the new ABI.
12653
12654 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12655
12656         [BZ # 17662]
12657         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12658         (RENAME_WHITEOUT): Define.
12659         [__USE_GNU] (renameat2): Declare.
12660         * stdio-common/Makefile (routines): Add renameat2.
12661         (tests): Add tst-renameat2.
12662         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12663         * stdio-common/renameat2.c: New file.
12664         * stdio-common/tst-renameat2.c: Likewise.
12665         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12666         * manual/filesys.texi (Temporary Files): Note that renameat2 is
12667         undocumented.
12668         * sysdeps/unix/sysv/linux/kernel-features.h
12669         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12670         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12671         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12672         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12673         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12674         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12675         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12676         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12677         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12678         * include/stdio.h (__renameat): Add alias for renameat.
12679         * stdio-common/renameat.c (__renameat): Rename from renameat.
12680         Add hidden definition and alias.
12681         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12682         * sysdeps/mach/hurd/renameat.c: Likewise.
12683         * sysdeps/**/libc*.abilist: Add renameat2.
12684
12685 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12686
12687         * posix/bug-regex33.c: Fix build after regex sync.
12688
12689 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
12690
12691         [BZ #23164]
12692         * localedata/tst-langinfo-setlocale.c: New file.
12693         * localedata/tst-langinfo-setlocale-static.c: New file.
12694         * localedata/tst-langinfo-newlocale.c: New file.
12695         * localedata/tst-langinfo-newlocale-static.c: New file.
12696         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12697         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12698         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12699         (tests-static): Remove tst-langinfo-static. Add
12700         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12701         (tests-special): Remove $(objpfx)tst-langinfo.out,
12702         $(objpfx)tst-langinfo-static.out. Add
12703         $(objpfx)tst-langinfo-setlocale.out,
12704         $(objpfx)tst-langinfo-newlocale.out,
12705         $(objpfx)tst-langinfo-setlocale-static.out,
12706         $(objpfx)tst-langinfo-newlocale-static.out.
12707         ($(objpfx)tst-langinfo.out): Remove.
12708         ($(objpfx)tst-langinfo-static.out): Remove.
12709         ($(objpfx)tst-langinfo-newlocale.out): New target.
12710         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12711         (test-xfail-tst-langinfo-newlocale-static): Add.
12712         ($(objpfx)tst-langinfo-setlocale.out): New target.
12713         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12714         * localedata/tst-langinfo.c: Call test_locale.
12715         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12716         data.
12717
12718 2018-07-04  Florian Weimer  <fweimer@redhat.com>
12719
12720         testrun.sh: Implement --tool=strace, --tool=valgrind
12721         * Makefile (testrun-script): Define variable.
12722         (testrun.sh): Use variable.
12723         * manual/install.texi (Tools for Compilation): make 4.0 or later
12724         is required.
12725         * configure.ac: Check for make 4.0 or later.
12726         * INSTALL: Regenerate.
12727         * configure: Likewise.
12728
12729 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12730
12731         [BZ #23233]
12732         [BZ #21163]
12733         [BZ #18986]
12734         [BZ #13762]
12735         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12736         * posix/PCRE.tests: Remove invalid test.
12737         * posix/bug-regex28.c: Fix expected values for used syntax.
12738         * posix/bug-regex37.c: New file.
12739         * posix/bug-regex38.c: Likewise.
12740         * posix/regcomp.c: Sync with gnulib.
12741         * posix/regex.c: Likewise.
12742         * posix/regex.h: Likewise.
12743         * posix/regex_internal.c: Likewise.
12744         * posix/regex_internal.h: Likewise.
12745         * posix/regexec.c: Likewise.
12746
12747 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
12748
12749         [BZ #23308]
12750         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12751         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12752         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12753         * localedata/unicode-gen/PropList.txt: likewise.
12754         * localedata/unicode-gen/UnicodeData.txt: likewise.
12755         * localedata/charmaps/UTF-8: Regenerate.
12756         * localedata/locales/i18n_ctype: likewise.
12757         * localedata/locales/tr_TR: likewise.
12758         * localedata/locales/translit_circle: likewise.
12759         * localedata/locales/translit_cjk_compat: likewise.
12760         * localedata/locales/translit_combining: likewise.
12761         * localedata/locales/translit_compat: likewise.
12762         * localedata/locales/translit_font: likewise.
12763         * localedata/locales/translit_fraction: likewise.
12764
12765 2018-07-03  Florian Weimer  <fweimer@redhat.com>
12766
12767         [BZ #23363]
12768         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12769         * stdio-common/tst-printf.sh: Adjust expected output.
12770         * LICENSES: Update.
12771
12772 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12773
12774         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12775         symbol.
12776
12777 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12778
12779         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12780         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12781         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12782         * stdio-common/tst-printfsz-islongdouble.c: New file.
12783         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12784         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12785         [subdir == stdio-common] (routines): Add ieee128-printf_size.
12786         [subdir == stdio-common] (tests-internal): Add
12787         test-printf-size-ieee128, and test-printf-size-ibm128.
12788         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12789         (CFLAGS-test-printf-size-ibm128.c): New variables.
12790         [subdir == stdio-common] (tests-special): Add
12791         $(objpfx)test-printf-size-ieee128.out and
12792         $(objpfx)test-printf-size-ibm128.out.
12793         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12794         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12795         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12796         __printf_sizeieee128.
12797         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12798         New file.
12799         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12800         Likewise.
12801         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12802         Likewise.
12803
12804 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12805
12806         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12807         (exp2f_inline): Likewise.
12808         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12809         (__math_uflowf): Likewise.
12810         (__math_may_uflowf): Likewise.
12811         (__math_divzerof): Likewise.
12812         (__math_invalidf): Likewise.
12813         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12814         (__math_oflowf): Likewise.
12815         (__math_uflowf): Likewise.
12816         (__math_may_uflowf): Likewise.
12817         (__math_divzerof): Likewise.
12818         (__math_invalidf): Likewise.
12819
12820 2018-06-29  DJ Delorie  <dj@redhat.com>
12821             Carlos O'Donell  <carlos@redhat.com>
12822
12823         [BZ #23329]
12824         * include/libc-symbols.h: Comment the freeres framework.
12825         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
12826         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12827         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12828         * dlfcn/dlerror.c: Include libc-symbols.h
12829         (__dlerror_main_freeres): New function.
12830         * dlfcn/dlfreeres.c: New file.
12831         * dlfcn/sdlfreeres.c: New file.
12832         * include/dlfcn.h: Declare __dlerror_main_freeres.
12833         * malloc/set-freeres.c: Declare __libdl_freeres, and
12834         __libpthread_freeres.
12835         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12836         the releavant libraries are loaded.
12837         * malloc/thread-freeres.c: Add comments.
12838         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12839         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12840         * nptl/allocatestack.c (__nptl_free_stacks): New function.
12841         (__free_stacks): Rename to...
12842         (free_stacks): ...this. Mark static.
12843         (queue_stack): Call free_stacks.
12844         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12845         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12846         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12847         ptr_freeres element from struct.
12848         (pthread_functions): Remove .ptr_freeres from struct initializer.
12849         [SHARED] (nptl_freeres): Remove.
12850         * nptl/nptlfreeres.c: New file.
12851         * nptl/pthreadP.h
12852         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12853         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
12854         attribute_hidden.
12855         (__free_stacks): Rename to...
12856         (__nptl_stacks_freeres): ...this.
12857         (__shm_directory_freeres): Declare.
12858         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12859         (__nptl_unwind_freeres): ...this.
12860         * resolv/res-close.c: Add comment.
12861         * resolv/resolv_conf.c: Include libc-symbols.h.
12862         * string/strerror_l.c: Include libc-symbols.h.
12863         * sunrpc/rpc_thread.c: Include libc-symbols.h.
12864         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12865         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12866         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12867
12868 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12869
12870         * stdlib/tst-strfmon_l.c: Add tests for long double.
12871
12872 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
12873
12874         [BZ #23208]
12875         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12876         * localedata/locales/dsb_DE: New file.
12877
12878 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12879
12880         [BZ #23140]
12881         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12882         genitive case).
12883         (alt_mon): New entry, import from CLDR (nominative case).
12884
12885 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
12886
12887         [BZ #22996]
12888         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12889
12890 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12891
12892         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12893         Use vector registers.
12894
12895         * sysdeps/aarch64/multiarch/memmove_falkor.S
12896         (__memcpy_falkor): Use vector registers.
12897
12898 2018-06-29  Martin Sebor  <msebor@redhat.com>
12899
12900         * manual/stdio.texi (Customizing Printf): Mention interaction
12901         with GCC built-ins.
12902
12903 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
12904
12905         [BZ #23307]
12906         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12907         `st_value' is 0 if `st_shndx' is SHN_ABS.
12908         * elf/tst-absolute-zero.c: New file.
12909         * elf/tst-absolute-zero-lib.c: New file.
12910         * elf/tst-absolute-zero-lib.lds: New file.
12911         * elf/Makefile (tests): Add `tst-absolute-zero'.
12912         (modules-names): Add `tst-absolute-zero-lib'.
12913         (LDLIBS-tst-absolute-zero-lib.so): New variable.
12914         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12915         ($(objpfx)tst-absolute-zero: New dependency.
12916
12917 2018-06-29  Zack Weinberg  <zackw@panix.com>
12918
12919         * configure.ac: New command-line option --disable-crypt.
12920         Force --disable-nss-crypt when --disable-crypt is given, with a
12921         warning if it was explicitly enabled.
12922         * configure: Regenerate.
12923         * config.make.in: New boolean substitution variable $(build-crypt).
12924         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12925         when $(build-crypt).
12926         * manual/install.texi: Document --disable-crypt.
12927         * INSTALL: Regenerate.
12928
12929         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12930         which is never set.
12931         * conform/Makefile: Only include libcrypt.a in
12932         linknamespace-libs-xsi and linknamespace-libs-XPG4
12933         when $(build-crypt).
12934         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12935         USE_CRYPT to 1 when $(build-crypt).
12936         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12937         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12938         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12939
12940 2018-06-29  Zack Weinberg  <zackw@panix.com>
12941
12942         * crypt/crypt.h, posix/unistd.h: Update comments and
12943         prototypes for crypt and crypt_r.
12944
12945         * manual/crypt.texi (Cryptographic Functions): New initial
12946         exposition.
12947         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
12948         (Unpredictable Bytes): Improve initial exposition.  Clarify error
12949         behavior of getentropy and getrandom.
12950         * manual/examples/genpass.c: Generate a salt using getentropy
12951         instead of the current time. Use hash $5$ (SHA-2-256).
12952         * manual/examples/testpass.c: Demonstrate validation against
12953         hashes generated with three different one-way functions.
12954
12955         * manual/intro.texi: crypt.texi does not need an overview
12956         anymore.
12957
12958         * manual/nss.texi, manual/memory.texi, manual/socket.texi
12959         * manual/terminal.texi: Consistently refer to "passphrases"
12960         * instead of "passwords", and to the "user database" instead
12961         * of the "password database".
12962         * manual/users.texi: Similarly.  Add notes about how actual
12963         passphrase hashes are now stored in the shadow database.
12964         Remove 20-year-old junk todo note.
12965
12966 2018-06-29  Zack Weinberg  <zackw@panix.com>
12967
12968         * manual/crypt.texi: Use a normal top-level @node declaration.
12969         Move most of the introductory text to the 'crypt' section.
12970         Move the example programs below the @deftypefun for 'crypt_r'.
12971         Move the 'getpass' section...
12972         * manual/terminal.texi: ...here.
12973
12974 2018-06-29  Zack Weinberg  <zackw@panix.com>
12975             Florian Weimer <fweimer@redhat.com>
12976
12977         * posix/unistd.h: Do not declare encrypt.
12978         (_XOPEN_CRYPT): Remove macro definition.
12979         (crypt): Declare only for _USE_MISC.
12980         * stdlib/stdlib.h: Do not declare setkey.
12981         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12982         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12983
12984         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12985         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12986         into compat symbols.  Don't define initial_perm if it's not
12987         going to be used.
12988         * crypt/cert.c: Link explicitly with the expected versions for
12989         setkey and encrypt.  If they are not available at all, mark
12990         the test as unsupported.
12991
12992         * sunrpc/des_crypt.c: Unconditionally block linkage with
12993         cbc_crypt and ecb_crypt for new binaries.
12994         * sunrpc/des_soft.c: Unconditionally block linkage with
12995         des_setparity for new binaries.
12996
12997         * manual/crypt.texi: Remove the entire "DES Encryption"
12998         section.  Also remove the paragraph talking about FIPS 140-2
12999         from the introduction.
13000         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
13001         of libgcrypt for "real" encryption, not DES.
13002         * manual/conf.texi (Constants for Sysconf): Mention that
13003         _XOPEN_CRYPT is no longer impelemented.
13004
13005         * conform/data/unistd.h-data: Remove crypt function declaration.
13006
13007 2018-06-29  Florian Weimer  <fweimer@redhat.com>
13008
13009         [BZ #23351]
13010         * malloc/hooks.c: Update comments on restoring of dumped heaps.
13011         (disallow_malloc_check): Remove variable.
13012         (__malloc_check_init): Adjust.
13013         (malloc_set_state): Update comment.
13014         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
13015         declarations.
13016
13017 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
13018
13019         [BZ #23140]
13020         * localedata/locales/ast_ES (mon): Rename to...
13021         (alt_mon): This.
13022         (mon): Import from CLDR (genitive case).
13023
13024 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
13025             Jakub Sitnicki  <jkbs@redhat.com>
13026
13027         [BZ #21812]
13028         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
13029         on NLM_F_DUMP_INTR.
13030
13031 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13032
13033         * manual/llio.texi: Remove spurious space.
13034
13035 2018-06-28  Florian Weimer  <fweimer@redhat.com>
13036
13037         [BZ #23349]
13038         * time/bits/types/struct_timespec.h: Change header inclusion guard to
13039         _STRUCT_TIMESPEC.
13040
13041 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13042
13043         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
13044         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
13045         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
13046         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
13047         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
13048         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
13049         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
13050
13051 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
13052
13053         [BZ #23266]
13054         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
13055         Copy and null-terminate entries that are not terminated, in
13056         addition to empty ones.
13057
13058 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13059
13060         [BZ #18023]
13061         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
13062         (extend_alloca_account): Remove.
13063         * manual/stdio.texi (Variable Arguments Output): Update comment.
13064
13065 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
13066
13067         * nptl/sockperf.c: Remove file.
13068
13069 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13070
13071         [BZ #18023]
13072         * elf/dl-deps.c (_dl_map_object_deps): Use struct
13073         scratch_buffer instead of extend_alloca.
13074
13075 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13076
13077         [BZ #18023]
13078         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
13079         scratch_buffer instead of extend_alloca.  Update comments.
13080
13081 2018-06-27  Florian Weimer  <fweimer@redhat.com>
13082
13083         [BZ #18023]
13084         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
13085         instead of extend_alloca.
13086
13087 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
13088
13089         [BZ #13888]
13090         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
13091         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
13092         /tmp.
13093         * scripts/test-installation.pl: Put temporary files in build
13094         directory, not /tmp.
13095         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
13096         (CFLAGS-bug4.c): Likewise.
13097         (CFLAGS-bug5.c): Likewise.
13098         (CFLAGS-test-fseek.c): Likewise.
13099         (CFLAGS-test-popen.c): Likewise.
13100         (CFLAGS-test_rdwr.c): Likewise.
13101         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
13102         /tmp.
13103         * stdio-common/bug4.c (main): Likewise.
13104         * stdio-common/bug5.c (main): Likewise.
13105         * stdio-common/test-fseek.c (TESTFILE): Likewise.
13106         * stdio-common/test-popen.c (do_test): Likewise.
13107         * stdio-common/test_rdwr.c (main): Likewise.
13108
13109 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
13110
13111         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
13112         (sem_open): Set sem.newsem.pad to zero for valgrind.
13113
13114 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13115
13116         [BZ #20251]
13117         * NEWS: Mention fcntl64 addition.
13118         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
13119         * login/utmp_file.c: Likewise.
13120         * sysdeps/posix/fdopendir.c: Likewise.
13121         * sysdeps/posix/opendir.c: Likewise.
13122         * sysdeps/unix/pt-fcntl.c: Likewise.
13123         * include/fcntl.h (__libc_fcntl64, __fcntl64,
13124         __fcntl64_nocancel_adjusted): New prototype.
13125         (__fcntl_nocancel_adjusted): Remove prototype.
13126         * io/Makefile (routines): Add fcntl64.
13127         (CFLAGS-fcntl64.c): New rule.
13128         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
13129         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
13130         * io/fcntl.h (fcntl64): Add prototype and redirect if
13131         __USE_FILE_OFFSET64 is defined.
13132         * io/fcntl64.c: New file.
13133         * manual/llio.text: Add a note for which commands fcntl acts a
13134         cancellation point.
13135         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
13136         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
13137         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
13138         New symbols.
13139         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
13140         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
13141         non-LFS case.
13142         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
13143         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
13144         to __fcntl64_nocancel.
13145         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
13146         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
13147         to __fcntl64_nocancel.
13148         * sysdeps/generic/not-cancel.h: Likewise.
13149         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
13150         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
13151         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
13152         (fcntl64): New symbol.
13153         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13154         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13155         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13156         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13158         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13159         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13160         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13161         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13162         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13163         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
13164         fcntl64): Likewise.
13165         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13166         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
13167         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13168         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13169         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13170         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13171         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13172         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13173         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13175         Likewise.
13176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13177         Likewise.
13178         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13179         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13180         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13181
13182 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13183
13184         Run thread shutdown functions in an explicit order.
13185         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
13186         definition.
13187         (__libc_thread_freeres): Call thread shutdown functions
13188         explicitly.
13189         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
13190         * include/string.h (__strerror_thread_freeres): Declare.
13191         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
13192         arena_thread_freeres.  No longer static.  Remove thread shutdown
13193         hook registration.
13194         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
13195         Declare.
13196         * resolv/res-close.c (__res_thread_freeres): Renamed from
13197         res_thread_freeres.  No longer static.  Remove thread shutdown
13198         hook registration.
13199         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
13200         * resolv/resolv_conf.c (freeres): Remove incorrect section
13201         attribute and use libc_freeres_fn.
13202         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
13203         strerror_thread_freeres.  No longer static.  Remove thread
13204         shutdown hook registration.
13205         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
13206         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
13207         shutdown hook registration.
13208         * Makerules (shlib.lds): Do not provide section boundary symbols
13209         for __libc_thread_subfreeres.
13210         * manual/memory.texi (Basic Allocation): Update comment.
13211
13212 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13213
13214         Remove always-defined _RPC_THREAD_SAFE_ macro.
13215         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
13216         Do not define _RPC_THREAD_SAFE_.
13217         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
13218         conditional.
13219         * sunrpc/clnt_perr.c: Likewise.
13220         * sunrpc/clnt_raw.c: Likewise.
13221         * sunrpc/clnt_simp.c: Likewise.
13222         * sunrpc/key_call.c: Likewise.
13223         * sunrpc/rpc_common.c: Likewise.
13224         * sunrpc/rpc_main.c: Likewise.
13225         * sunrpc/rpc_thread.c: Likewise.
13226         * sunrpc/svc.c: Likewise.
13227         * sunrpc/svc_raw.c: Likewise.
13228         * sunrpc/svc_simple.c: Likewise.
13229         * sumrpc/svcauth_des.c: Likewise.
13230
13231 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13232
13233         * libio/Makefile (tests-internal): Add tst-vtables,
13234         tst-vtables-interposed.
13235         * libio/tst-vtables.c: New file.
13236         * libio/tst-vtables-common.c: Likewise.
13237         * libio/tst-vtables-interposed.c: Likewise.
13238
13239 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13240
13241         * support/support_test_main.c (support_test_main): Only call
13242         setvbuf if not disables.
13243         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
13244         * support/test-driver.h (struct test_config): Add no_setvbuf member.
13245
13246 2018-06-26  Florian Weimer  <fweimer@redhat.com>
13247
13248         [BZ #23313]
13249         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
13250
13251 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13252
13253         [BZ #18023]
13254         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13255         Use struct scratch_buffer instead of extend_alloca.
13256
13257 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13258
13259         [BZ #18023]
13260         * nss/getent.c (initgroups_keys): Use dynarray instead of
13261         extend_alloca.
13262
13263 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13264
13265         [BZ #18023]
13266         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
13267         Use struct scratch_buffer instead of extend_alloca.
13268
13269 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13270
13271         [BZ #18023]
13272         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
13273         back to malloc directly, without stack allocations.
13274
13275 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13276
13277         [BZ #18023]
13278         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
13279         of extend_alloca.
13280
13281 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13282
13283         [BZ #18023]
13284         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
13285         of extend_alloca.
13286         * nscd/hstcache.c (addhstbyX): Likewise.
13287         * nscd/pwdcache.c (addpwbyX): Likewise.
13288         * nscd/servicescache.c (addservbyX): Likewise.
13289
13290 2018-06-25  Florian Weimer  <fweimer@redhat.com>
13291
13292         [BZ #18023]
13293         * nscd/connections.c (read_cmdline): New function.
13294         (restart): Use it.  Update comment.
13295
13296 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
13297
13298         [BZ #23140]
13299         * localedata/locales/csb_PL (mon): Rename to...
13300         (alt_mon): This.
13301         (abmon): Rename to...
13302         (ab_alt_mon): This.
13303         (mon): Add with proper genitive forms, copy from Wikipedia.
13304         (abmon): Likewise.
13305
13306 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
13307
13308         [BZ #19485]
13309         * localedata/locales/csb_PL (mon): Fix typos:
13310         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13311         (yesstr): Add, value is "jo".
13312         (nostr): Add, value is "nié".
13313
13314 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13315
13316         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13317         all log1p and significand functions on m680x0.
13318         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13319         of s_significand.c..
13320         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13321         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13322         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13323         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13324         s_log1p.c and include it..
13325
13326 2018-06-21  Vincent Chen  <vincentc@andestech.com>
13327
13328         * elf/elf.h (R_NDS32_NONE): New define.
13329         (R_NDS32_32_RELA): Likewise.
13330         (R_NDS32_COPY): Likewise.
13331         (R_NDS32_GLOB_DAT): Likewise.
13332         (R_NDS32_JUMP_SLOT): Likewise.
13333         (R_NDS32_RELATIVE): Likewise.
13334         (R_NDS32_TLS_TPOFF): Likewise.
13335         (R_NDS32_TLS_DESC): Likewise.
13336
13337 2018-06-21  Mark Wielaard  <mark@klomp.org>
13338
13339         * elf/elf.h (R_BPF_MAP_FD): Removed.
13340         (R_BPF_64_64, R_BPF_64_32): New.
13341
13342 2018-06-21  Florian Weimer  <fweimer@redhat.com>
13343
13344         [BZ #23253]
13345         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13346         Renamed from libc_feholdsetround_ctx.
13347         (default_libc_feresetround_ctx): Renamed from
13348         libc_feresetround_ctx.
13349         (default_libc_feholdsetround_noex_ctx): Renamed from
13350         libc_feholdsetround_noex_ctx.
13351         (default_libc_feresetround_noex_ctx): Renamed from
13352         libc_feresetround_noex_ctx.
13353         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13354         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13355         forwardning to the old implementations under the new names.
13356         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13357         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13358         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13359         (libc_feresetround_ctx): Forward to default implements for i386
13360         and MATH_SET_BOTH_ROUNDING_MODES.
13361         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13362         Add -DMATH_SET_BOTH_ROUNDING_MODES.
13363
13364 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
13365
13366         * string/tst-cmp.c: Include <libc-diag.h>.
13367         (strncmp_max): Disable -Wstringop-overflow= around call to
13368         strncmp.
13369         (strncasecmp_max): Disable -Wstringop-overflow= around call to
13370         strncasecmp.
13371
13372         * string/bug-strpbrk1.c: Include <libc-diag.h>.
13373         (main): Disable -Wunused-value around call to strpbrk.
13374         * string/bug-strspn1.c: Include <libc-diag.h>.
13375         (main): Disable -Wunused-value around call to strspn.
13376
13377 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13378             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13379
13380         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13381         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13382
13383 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13384
13385         * math/Makefile (libm-calls): Move s_significandF to...
13386         (gen-libm-calls): ... here.
13387         * math/s_significand_template.c: New file.
13388         * math/s_significand.c: Removed.
13389         * math/s_significandf.c: Removed.
13390         * math/s_significandl.c: Removed.
13391         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13392         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13393
13394         * math/e_exp2_template.c (declare_mgen_finite_alias,
13395         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13396         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13397         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13398
13399 2018-06-20  Florian Weimer  <fweimer@redhat.com>
13400
13401         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13402
13403 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
13404
13405         [BZ #23280]
13406         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13407         floating-point number to strtod functions rather than possibly
13408         negating result of those functions.
13409         * stdio-common/tst-scanf-round.c: New file.
13410         * stdio-common/Makefile (tests): Add tst-scanf-round.
13411         ($(objpfx)tst-scanf-round): Depend on $(libm).
13412
13413 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13414
13415         * sysdeps/mach/hurd/localplt.data: Move to...
13416         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13417         R_386_GLOB_DAT like on Linux i386.
13418
13419 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13420
13421         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13422         (SHM_STAT_ANY): New macro.
13423         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13424         (SHM_STAT_ANY): Likewise.
13425         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13426         (SHM_STAT_ANY): Likewise.
13427         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13428         (SHM_STAT_ANY): Likewise.
13429         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13430         (SHM_STAT_ANY): Likewise.
13431         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13432         (SHM_STAT_ANY): Likewise.
13433         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13434         (SHM_STAT_ANY): Likewise.
13435         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13436         (SHM_STAT_ANY): Likewise.
13437         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13438         (SHM_STAT_ANY): Likewise.
13439         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13440         (SHM_STAT_ANY): Likewise.
13441         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13442         (SHM_STAT_ANY): Likewise.
13443         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13444         (SHM_STAT_ANY): Likewise.
13445
13446         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13447         (SEM_STAT_ANY): New macro.
13448         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13449         (SEM_STAT_ANY): Likewise.
13450         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13451         (SEM_STAT_ANY): Likewise.
13452         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13453         (SEM_STAT_ANY): Likewise.
13454         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13455         (SEM_STAT_ANY): Likewise.
13456         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13457         (SEM_STAT_ANY): Likewise.
13458         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13459         (SEM_STAT_ANY): Likewise.
13460         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13461         (SEM_STAT_ANY): Likewise.
13462         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13463         (SEM_STAT_ANY): Likewise.
13464         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13465         (SEM_STAT_ANY): Likewise.
13466
13467         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13468         (MSG_STAT_ANY): New macro.
13469         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13470         (MSG_STAT_ANY): Likewise.
13471         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13472         (MSG_STAT_ANY): Likewise.
13473         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13474         (MSG_STAT_ANY): Likewise.
13475         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13476         (MSG_STAT_ANY): Likewise.
13477         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13478         (MSG_STAT_ANY): Likewise.
13479         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13480         (MSG_STAT_ANY): Likewise.
13481         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13482         (MSG_STAT_ANY): Likewise.
13483         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13484         (MSG_STAT_ANY): Likewise.
13485         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13486         (MSG_STAT_ANY): Likewise.
13487
13488         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13489         (MAP_TYPE): Change value to 0x2b.
13490
13491 2018-06-18  Florian Weimer  <fweimer@redhat.com>
13492
13493         [BZ #15722]
13494         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13495         socket with SOCK_CLOEXEC.
13496
13497 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13498
13499         [BZ #23303]
13500         * sysdeps/powerpc/powerpc64/le/Makefile
13501         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13502         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13503         (gnulib-tests): Also add $(f128-loader-link) for
13504         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13505
13506 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13507
13508         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13509         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13510         of sendfile.
13511         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13512         (sendfile64): New strong alias.
13513         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13514         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13515         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13516         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13517         attribute.
13518         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13519         ___pthread_get_cleanup_stack.
13520         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13521         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13522         * mach/shortcut.awk: Make syscall stubs include
13523         <mach-shortcuts-hidden.h> and add hidden definition.
13524         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13525         (__mach_msg): Add hidden prototype.
13526         * mach/msg.c: Include <mach.h>.
13527         (__mach_msg): Add hidden definition.
13528         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13529         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13530         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13531         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13532         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13533         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13534         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13535         prototype and definition.
13536         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13537         hidden target for _hurd_self_sigstate.
13538
13539 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
13540
13541         [BZ #23007]
13542         * stdlib/tst-strtod-nan-sign-main.c: New file.
13543         * stdlib/tst-strtod-nan-sign.c: Likewise.
13544         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13545         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13546         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13547         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13548         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13549
13550 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
13551
13552         [BZ #23007]
13553         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13554         appropriate sign.
13555
13556 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13557
13558         [BZ #23290]
13559         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13560         that the result stays within the ISO-8859-1 range.
13561         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13562         characters are defined in IBM273.
13563
13564 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13565
13566         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13567         __mach_task_self): Remove attribute_hidden.
13568
13569 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
13570
13571         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13572         ignore -Wrestrict for one test.
13573
13574 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
13575             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13576
13577         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13578
13579 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13580
13581         * scripts/update-abilist.sh: Accept empty list of files to patch.
13582
13583 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13584
13585         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13586         test-xfail-check-abi-libmachuser): Add.
13587         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13588         __libc_read and __libc_write to __read and __write.
13589         * sysdeps/hurd/include/hurd/port.h: New file.
13590         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13591         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13592         __thread_switch, __evc_wait): Move declarations to...
13593         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13594         attribute_hidden.
13595         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13596         use PLT to call _hurd_self_sigstate.
13597
13598 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
13599
13600         [BZ #23279]
13601         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13602         MAX_EXP as overflowing.
13603         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13604         overflow flag.
13605         (round_str): Output also whether result overflows in each rounding
13606         mode.
13607         * stdlib/tst-strtod-round-data: Add more tests.
13608         * stdlib/tst-strtod-round-data.h: Regenerated.
13609         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13610         (TEST): Handle extra arguments for overflow flags.
13611         (struct test_overflow): New type.
13612         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13613         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
13614         (test_in_one_mode): Take argument with overflow information.
13615         (do_test): Update calls to test_in_one_mode.
13616
13617 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13618
13619         * elf/dl-load (_dl_dst_substitute): Correct comment.
13620         (_dl_dst_count): Likewise.
13621
13622         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13623         lll_futex_timed_wait.
13624
13625 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
13626
13627         [BZ #23277]
13628         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13629         attribute.
13630         * math/test-nan-const.c: New file.
13631         * math/Makefile (tests): Add test-nan-const.
13632         (CFLAGS-test-nan-const.c): New variable.
13633
13634 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13635
13636         * benchtests/scripts/compare_strings.py (process_results): Add
13637         funcs argument.  Compare only functions which are selected.
13638         (main): Check if base function is among selected functions.
13639         Pass selected functions to process_results.
13640         (__main__): Add -f/--functions argument.
13641
13642 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
13643             Hongbo Zhang  <hongbo.zhang@linaro.org>
13644
13645         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13646         __memcpy_falkor for phecda core.
13647         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13648         __memmove_falkor for phecda core.
13649         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13650         __memset_falkor for phecda core.
13651         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13652         for phecda core.
13653         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13654         macro to identify phecda core.
13655
13656 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13657             Andreas Schwab  <schwab@suse.de>
13658             Dmitry V. Levin  <ldv@altlinux.org>
13659             Florian Weimer  <fweimer@redhat.com>
13660
13661         [BZ #23102]
13662         [BZ #21942]
13663         [BZ #18018]
13664         [BZ #23259]
13665         CVE-2011-0536
13666         * elf/dl-dst.h: Remove DL_DST_COUNT.
13667         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13668         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13669         (is_dst): Comment.  Support ELF gABI.
13670         (_dl_dst_count): Comment.  Simplify and count DSTs.
13671         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
13672         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13673         locals.
13674
13675 2018-06-12  Zack Weinberg  <zackw@panix.com>
13676
13677         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13678         * sysdeps/unix/sysv/linux/dl-sysdep.c
13679         Include not-cancel.h.  Use __close_nocancel instead of __close,
13680         __open64_nocancel instead of __open, __read_nocancel instead of
13681         __libc_read, and __write_nocancel instead of __libc_write.
13682
13683         * csu/check_fds.c (check_one_fd)
13684         * sysdeps/posix/fdopendir.c (__fdopendir)
13685         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13686         instead of __fcntl and/or __libc_fcntl.
13687
13688         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13689         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13690         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13691         Use __open64_nocancel instead of __open_nocancel.
13692
13693         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13694         hidden_proto declarations to the end and issue them if either
13695         IS_IN(libc) or IS_IN(rtld).
13696         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13697         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13698         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13699         read_nocancel, waitpid_nocancel, write_nocancel.
13700
13701         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13702         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13703         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13704
13705         * nptl/pt-fcntl.c: New file.
13706         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13707         (libpthread-routines): Add pt-fcntl.
13708         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13709         (__libc_fcntl): Remove attribute_hidden.
13710         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13711         __fcntl_nocancel_adjusted, not fcntl_common.
13712         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13713         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13714         to fcntl_nocancel.c.
13715         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13718         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13719
13720         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13721         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13722         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13723         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13724         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13725         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13726         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13727         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13728         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13729         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13730         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13731         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13732         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13733         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13734         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13735         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13736         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13737         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13738         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13739         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13740
13741         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13742         libpthread-routines.
13743         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13744         defines nothing.
13745
13746         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13747         __libc_read, and __write instead of __libc_write.  Define
13748         __open64 in addition to __open.
13749
13750 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13751
13752         [BZ #23250]
13753         [BZ #10686]
13754         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13755         to _private_tm[3] and add __glibc_reserved2.
13756         Add _Static_assert of offset of __private_ss == 0x30.
13757         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13758         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13759
13760 2018-06-12  Florian Weimer  <fweimer@redhat.com>
13761
13762         x86: Make strncmp usable from rtld.
13763         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13764         __strncmp_ia32 if in libc (and not in rtld).
13765         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13766         strncmp if not in libc (and not to __strncmp_sse2).
13767
13768 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
13769
13770         [BZ #23140]
13771         * localedata/locales/gd_GB (mon): Rename to...
13772         (alt_mon): This.
13773         (mon): Import from CLDR (genitive case).
13774         * localedata/locales/hsb_DE (mon): Rename to...
13775         (alt_mon): This.
13776         (mon): Import from CLDR (genitive case).
13777         * localedata/locales/wa_BE (mon): Rename to...
13778         (alt_mon): This.
13779         (mon): Add, fill with the proper genitive forms, but CLDR data
13780         is incomplete; completed according to the comments in this file.
13781         (d_t_fmt): Do not use "di" before the month name, no longer needed.
13782
13783         * localedata/locales/wa_BE (country_name): Reword
13784         "Beljike" -> "Beldjike".
13785
13786 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
13787
13788         [BZ #23272]
13789         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13790         cases of non-finite arguments.
13791         * math/libm-test-fma.inc (fma_test_data): Add more tests.
13792
13793 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
13794
13795         [BZ #23174]
13796         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13797
13798 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13799
13800         [BZ #23264]
13801         * include/unistd.h (__execvpex): New prototype.
13802         * posix/Makefile (tests): Add tst-spawn4.
13803         (tests-internal): Add tst-spawn4-compat.
13804         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13805         * posix/tst-spawn4-compat.c: New file.
13806         * posix/tst-spawn4.c: Likewise.
13807         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13808         binaries as shell scripts.
13809         * sysdeps/posix/spawni.c (__spawni): Likewise.
13810
13811 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13812
13813         [BZ #23145]
13814         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13815         ($(all-built-dso:=.dynsym): New target.
13816         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13817         ($(objpfx)check-initfini.out): New target.
13818         (generated): Add check-initfini.out.
13819         * scripts/check-initfini.awk: New file.
13820         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13821         (_fini): Likewise.
13822         * sysdeps/alpha/crti.S (_init): Mark as hidden.
13823         (_fini): Likewise.
13824         * sysdeps/arm/crti.S (_init): Mark as hidden.
13825         (_fini): Likewise.
13826         * sysdeps/hppa/crti.S (_init): Mark as hidden.
13827         (_fini): Likewise.
13828         * sysdeps/i386/crti.S (_init): Mark as hidden.
13829         (_fini): Likewise.
13830         * sysdeps/ia64/crti.S (_init): Mark as hidden.
13831         (_fini): Likewise.
13832         * sysdeps/m68k/crti.S (_init): Mark as hidden.
13833         (_fini): Likewise.
13834         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13835         (_fini): Likewise.
13836         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13837         (_fini): Likewise.
13838         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13839         (_fini): Likewise.
13840         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13841         (_fini): Likewise.
13842         * sysdeps/nios2/crti.S (_init): Mark as hidden.
13843         (_fini): Likewise.
13844         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13845         (_fini): Likewise.
13846         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13847         (_fini): Likewise.
13848         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13849         (_fini): Likewise.
13850         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13851         (_fini): Likewise.
13852         * sysdeps/sh/crti.S (_init): Mark as hidden.
13853         (_fini): Likewise.
13854         * sysdeps/sparc/crti.S (_init): Mark as hidden.
13855         (_fini): Likewise.
13856         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13857         (_fini): Likewise.
13858
13859 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13860
13861         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13862         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13863         and TF redirection to KFtype and KF only when the default
13864         long double type is not the IEEE 128-bit floating point type.
13865
13866 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
13867
13868         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13869         macro.
13870         (HWCAP_USCAT): Likewise.
13871         (HWCAP_ILRCPC): Likewise.
13872         (HWCAP_FLAGM): Likewise.
13873         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13874         Increase to 28.
13875         (_dl_aarch64_cap_flags): Add new flag names.
13876
13877         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13878         (MAP_FIXED_NOREPLACE): New macro.
13879         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13880         (MAP_FIXED_NOREPLACE): Likewise.
13881         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13882         (MAP_FIXED_NOREPLACE): Likewise.
13883         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13884         (MAP_FIXED_NOREPLACE): Likewise.
13885         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13886         (MAP_FIXED_NOREPLACE): Likewise.
13887         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13888         (MAP_FIXED_NOREPLACE): Likewise.
13889         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13890         (MAP_FIXED_NOREPLACE): Likewise.
13891         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13892         (MAP_FIXED_NOREPLACE): Likewise.
13893         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13894         (MAP_FIXED_NOREPLACE): Likewise.
13895         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13896         (MAP_FIXED_NOREPLACE): Likewise.
13897         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13898         (MAP_FIXED_NOREPLACE): Likewise.
13899         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13900         (MAP_FIXED_NOREPLACE): Likewise.
13901         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13902         (MAP_FIXED_NOREPLACE): Likewise.
13903         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13904         (MAP_FIXED_NOREPLACE): Likewise.
13905         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13906         (MAP_FIXED_NOREPLACE): Likewise.
13907
13908         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13909         version to 4.17.
13910
13911 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
13912
13913         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13914         version to 4.17
13915
13916 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13917
13918         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13919         int.
13920         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13921
13922 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13923
13924         * benchtests/scripts/compare_string.py: (process_results) Catch
13925         exception in non-existent base_func and catch exception in
13926         non-existent attribute.
13927         (parse_file) Catch exception if input file does not exist.
13928
13929 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13930
13931         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13932         options to avoid diff calculation and omit header, respectively.
13933         (main): process --no-diff and --no-header
13934
13935 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13936             H.J. Lu  <hongjiu.lu@intel.com>
13937
13938         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13939         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13940         wcsncmp-sse2.
13941         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13942         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13943         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13944         and __wcsncmp_sse2.
13945         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13946         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13947         AVX unaligned load is fast and vzeroupper is preferred.
13948         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13949         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13950         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13951         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13952         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13953         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13954         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13955         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13956         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13957         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13958         is undefined.
13959
13960 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13961
13962         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13963         configuring with --disable-multi-arch, building with
13964         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13965         Haswell-era CPU.
13966
13967 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13968
13969         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13970         results from building with “-march=x86-64 -mtune=generic
13971         -mfpmath=sse” and running on a Haswell-era CPU.
13972
13973 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
13974
13975         [BZ #18473]
13976         * soft-fp/sqrttf2.c: Remove file.
13977         * soft-fp/sqrtdf2.c: Move to ....
13978         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
13979         <shlib-compat.h>.
13980         (__sqrtdf2): Make conditional on
13981         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13982         symbol.
13983         * soft-fp/sqrtsf2.c: Move to ....
13984         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
13985         <shlib-compat.h>.
13986         (__sqrtsf2): Make conditional on
13987         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13988         symbol.
13989         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13990         (gcc-double-routines): Remove sqrtdf2.
13991         (gcc-quad-routines): Remove sqrttf2.
13992         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13993         Do not filter out sqrtsf2 and sqrtdf2.
13994         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13995         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13996
13997 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13998
13999         * sysdeps/generic/libcidn.abilist: Remove file.
14000
14001 2018-06-01  Florian Weimer  <fweimer@redhat.com>
14002
14003         [BZ #23236]
14004         * libio/strfile.h (struct _IO_str_fields): Rename members to
14005         discourage their use and add comment.
14006         (_IO_STR_DYNAMIC): Remove unused macro.
14007         * libio/strops.c (_IO_str_init_static_internal): Do not use
14008         callback pointers.  Call malloc and free.
14009         (_IO_str_overflow): Do not use callback pointers.  Call malloc
14010         and free.
14011         (enlarge_userbuf): Likewise.
14012         (_IO_str_finish): Call free.
14013         * libio/wstrops.c (_IO_wstr_init_static): Initialize
14014         _allocate_buffer_unused.
14015         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
14016         and free.
14017         (enlarge_userbuf): Likewise.
14018         (_IO_wstr_finish): Call free.
14019         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
14020         _allocate_buffer_unused, _free_buffer_unused.
14021         * libio/memstream.c (__open_memstream): Likewise.
14022         * libio/vasprintf.c (_IO_vasprintf): Likewise.
14023         * libio/wmemstream.c (open_wmemstream): Likewise.
14024
14025 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14026
14027         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
14028         AMD Ryzen 7 1800X.
14029
14030 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14031
14032         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
14033         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
14034         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
14035         New file.
14036         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
14037         Likewise.
14038         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
14039
14040 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14041
14042         * support/Makefile (libsupport-routines): Add
14043         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
14044         xpthread_barrierattr_setpshared.
14045         * support/xpthread_barrierattr_destroy.c: New file.
14046         * support/xpthread_barrierattr_init.c: Likewise.
14047         * support/xpthread_barrierattr_setpshared.c: Likewise.
14048
14049 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14050
14051         [BZ #23206]
14052         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
14053         _r_debug and update DT_DEBUG for debugger.
14054
14055 2018-05-29  Florian Weimer  <fweimer@redhat.com>
14056
14057         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
14058         (tst-strtod5i.out): Likewise.
14059
14060 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
14061
14062         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
14063         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
14064         (sparc64-quad-routines): New variable.  Moved from ....
14065         [$(subdir) = soft-fp] (sysdep_routines): Add
14066         $(sparc64-quad-routines).  Moved from ....
14067         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
14068         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
14069         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
14070         moved from ....
14071         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
14072         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
14073         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
14074         * sysdeps/sparc/sparc64/qp_add.c: ... here.
14075         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
14076         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
14077         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
14078         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
14079         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
14080         * sysdeps/sparc/sparc64/qp_div.c: ... here.
14081         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
14082         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
14083         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
14084         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
14085         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
14086         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
14087         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
14088         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
14089         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
14090         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
14091         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
14092         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
14093         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
14094         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
14095         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
14096         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
14097         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
14098         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
14099         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
14100         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
14101         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
14102         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
14103         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
14104         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
14105         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
14106         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
14107         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
14108         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
14109         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
14110         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
14111         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
14112         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
14113         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
14114         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
14115         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
14116         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
14117         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
14118         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
14119         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
14120         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
14121         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
14122         * sysdeps/sparc/sparc64/qp_util.c: ... here.
14123         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
14124         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
14125         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
14126         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
14127         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
14128         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
14129
14130         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
14131         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
14132         (sparc32-quad-routines): New variable.  Moved from ....
14133         [$(subdir) = soft-fp] (sysdep_routines): Add
14134         $(sparc32-quad-routines).  Moved from ....
14135         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
14136         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
14137         moved from ....
14138         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
14139         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
14140         * sysdeps/sparc/sparc32/q_add.c: ... here.
14141         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
14142         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
14143         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
14144         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
14145         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
14146         * sysdeps/sparc/sparc32/q_div.c: ... here.
14147         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
14148         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
14149         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
14150         * sysdeps/sparc/sparc32/q_feq.c: ... here.
14151         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
14152         * sysdeps/sparc/sparc32/q_fge.c: ... here.
14153         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
14154         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
14155         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
14156         * sysdeps/sparc/sparc32/q_fle.c: ... here.
14157         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
14158         * sysdeps/sparc/sparc32/q_flt.c: ... here.
14159         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
14160         * sysdeps/sparc/sparc32/q_fne.c: ... here.
14161         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
14162         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
14163         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
14164         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
14165         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
14166         * sysdeps/sparc/sparc32/q_mul.c: ... here.
14167         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
14168         * sysdeps/sparc/sparc32/q_neg.c: ... here.
14169         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
14170         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
14171         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
14172         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
14173         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
14174         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
14175         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
14176         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
14177         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
14178         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
14179         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
14180         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
14181         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
14182         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
14183         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
14184         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
14185         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
14186         * sysdeps/sparc/sparc32/q_sub.c: ... here.
14187         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
14188         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
14189         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
14190         * sysdeps/sparc/sparc32/q_util.c: ... here.
14191         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
14192         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
14193         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
14194         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
14195
14196 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14197             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14198
14199         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
14200         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
14201         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
14202         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
14203
14204 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
14205
14206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
14207         powerpc/soft-fp.
14208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
14209         Likewise.
14210         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
14211         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
14212
14213 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14214
14215         [BZ #23171]
14216         * math/math.h [C++] (iseqsig): Fix parameter type for the long
14217         double version.
14218
14219 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
14220
14221         * sysdeps/sh/Implies: Remove sh/soft-fp.
14222         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
14223         * sysdeps/sh/sfp-machine.h: ... here.
14224
14225 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14226
14227         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14228         (__mempcpy_erms): Skip zero length.
14229         (__memmove_erms): Likewise.
14230         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14231         (__memset_erms): Likewise.
14232
14233 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
14234
14235         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
14236         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14237         Add functions moved from ....
14238         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
14239         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
14240         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
14241         from ....
14242         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
14243         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
14244         * sysdeps/alpha/e_sqrtl.c: ... here.
14245         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
14246         * sysdeps/alpha/local-soft-fp.h: ... here.
14247         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
14248         * sysdeps/alpha/ots_add.c: ... here.
14249         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
14250         * sysdeps/alpha/ots_cmp.c: ... here.
14251         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
14252         * sysdeps/alpha/ots_cmpe.c: ... here.
14253         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
14254         * sysdeps/alpha/ots_cvtqux.c: ... here.
14255         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
14256         * sysdeps/alpha/ots_cvtqx.c: ... here.
14257         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
14258         * sysdeps/alpha/ots_cvttx.c: ... here.
14259         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
14260         * sysdeps/alpha/ots_cvtxq.c: ... here.
14261         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
14262         * sysdeps/alpha/ots_cvtxt.c: ... here.
14263         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
14264         * sysdeps/alpha/ots_div.c: ... here.
14265         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
14266         * sysdeps/alpha/ots_mul.c: ... here.
14267         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
14268         * sysdeps/alpha/ots_nintxq.c: ... here.
14269         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
14270         * sysdeps/alpha/ots_sub.c: ... here.
14271         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
14272         * sysdeps/alpha/sfp-machine.h: ... here.
14273
14274 2018-05-23  Florian Weimer  <fweimer@redhat.com>
14275
14276         [BZ #19728]
14277         [BZ #19729]
14278         [BZ #22247]
14279         CVE-2016-6261
14280         CVE-2016-6263
14281         CVE-2017-14062
14282         Switch to extern IDNA implementation (libidn2).
14283         * libidn: Remove subdirectory.
14284         * LICENSES: Do not mention licensing conditions for the removed
14285         libidn code.
14286         * config.h.in (HAVE_LIBIDN): Remove.
14287         * include/dlfcn.h (__libc_dlopen): Update comment.
14288         * include/idna.h: Remove file.
14289         * inet/Makefile (routines): Add idna.
14290         (tests-static, tests-internal): Add tst-idna_name_classify.
14291         (LOCALES): Generate locales for tests.
14292         (tst-idna_name_classify.out): Depend on generated locales.
14293         * inet/idna_name_classify.c: New file.
14294         * inet/tst-idna_name_classify.c: Likewise.
14295         * inet/net-internal.h (__idna_to_dns_encoding)
14296         (__idna_from_dns_encoding): Declare.
14297         * inet/net-internal.h (enum idna_name_classification): Define.
14298         (__idna_name_classify): Declare.
14299         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14300         __idna_from_dns_encoding.
14301         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14302         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
14303         name as a fallback in case of encoding errors.
14304         (getnameinfo): Use DEPRECATED_NI_IDN.
14305         * inet/idna.c: New file.
14306         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14307         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14308         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14309         (modules-names): Add tst-no-libidn2.
14310         (extra-test-objs): Add tst-no-libidn2.os.
14311         (LDFLAGS-tst-no-libidn2.so): Set soname.
14312         (LOCALES): Set, and generate locales.
14313         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14314         (tst-resolv-ai_idn-latin1): Likewise.
14315         (tst-resolv-ai_idn-nolibidn2): Likewise.
14316         (tst-resolv-ai_idn.out): Depend on locales.
14317         (tst-resolv-ai_idn-latin1.out): Depend on locales.
14318         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14319         tst-no-libidn2.so.
14320         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14321         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14322         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14323         * resolv/tst-resolv-ai_idn.c: New file.
14324         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14325         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14326         * resolv/tst-no-libidn2.c: Likewise.
14327         * support/support_format_addrinfo.c (format_ai_flags): Do not
14328         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14329         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14330         (gaih_inet): Call __idna_to_dns_encoding and
14331         __idna_from_dns_encoding, and use the original (punycode) name if
14332         __idna_from_dns_encoding fails due to an encoding error.
14333         (getaddrinfo): Use DEPRECATED_AI_IDN.
14334         * sysdeps/unix/inet/Subdirs (libidn): Remove.
14335         * sysdeps/unix/inet/configure: Remove file.
14336         * sysdeps/unix/inet/configure.ac: Likewise.
14337
14338 2018-05-23  Florian Weimer  <fweimer@redhat.com>
14339
14340         Implement allocate_once.
14341         * include/allocate_once.h: New file.
14342         * misc/allocate_once.c: Likewise.
14343         * misc/tst-allocate_once.c: Likewise.
14344         * misc/Makefile (routines): Add allocate_once.
14345         (tests-internal): Add tst-allocate_once.
14346         (generated): Add tst-allocate_once.mtrace,
14347         tst-allocate_once-mem.out.
14348         (tests-special): Add tst-allocate_once-mem.out.
14349         (tst-allocate_once-ENV): Set MALLOC_TRACE.
14350         (tst-allocate_once-mem.out): Call mtrace.
14351         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14352
14353 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14354
14355         [BZ #23196]
14356         * string/test-memcpy.c (do_test1): New function.
14357         (test_main): Call it.
14358
14359 2018-05-23  Andreas Schwab  <schwab@suse.de>
14360
14361         [BZ #23196]
14362         CVE-2018-11237
14363         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14364         (L(preloop_large)): Save initial destination pointer in %r11 and
14365         use it instead of %rax after the loop.
14366         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14367
14368 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
14369
14370         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14371         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14372         -I../soft-fp.  Moved from ....
14373         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
14374         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14375         * sysdeps/aarch64/e_sqrtl.c: ... here.
14376         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14377         * sysdeps/aarch64/sfp-machine.h: ... here.
14378
14379         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14380         -Wmaybe-uninitialized around access to fq[0].
14381         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14382         Likewise.
14383
14384         [BZ #18471]
14385         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14386         aliases for non-libc case of versioned symbols.
14387         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14388         (llseek): Define as compat symbol if
14389         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14390         with link warning.
14391         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14392         Make into a compat symbol, disabled for minimum symbol version
14393         GLIBC_2.28 and later.
14394         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14395
14396 2018-05-22  Florian Weimer  <fweimer@redhat.com>
14397
14398         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14399         not add -mpreferred-stack-boundary=4.
14400         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14401         (stack-align-test-flags): Likewise.
14402         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14403         Likewise.
14404         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14405         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14406         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14407         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14408         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14409         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14410         (CFLAGS-tst-align2.c): Likewise.
14411
14412 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14413
14414         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14415         (index_arch_Prefer_FSRM): Likewise.
14416         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14417         Also check Prefer_FSRM.
14418         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14419         Also return OPTIMIZE (erms) for Prefer_FSRM.
14420
14421 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14422
14423         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14424         (index_cpu_FSRM): Likewise.
14425         (reg_FSRM): Likewise.
14426
14427 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
14428
14429         * math/gen-tgmath-tests.py: Import sys.
14430         (Tests.__init__): Initialize macros_seen.
14431         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
14432         if requested to do so for this macro.
14433         (Tests.add_all_tests): Take argument for macro for which to
14434         generate tests.
14435         (Tests.check_macro_list): New function.
14436         (main): Handle check-list argument and argument specifying macro
14437         for which to generate tests.
14438         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14439         [PYTHON] (tgmath3-macro-tests): Likewise.
14440         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14441         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14442         not test-tgmath3.c.
14443         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14444         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14445         to CFLAGS.
14446         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14447         [PYTHON] ($(foreach
14448         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
14449         rule.
14450         [PYTHON] (tests-special): Add
14451         $(objpfx)test-tgmath3-macro-list.out.
14452         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14453
14454         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14455         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14456         later.
14457
14458         [BZ #22639]
14459         * time/tzset.c (SECSPERDAY): Cast to time_t.
14460         * time/tst-y2039.c: New file.
14461         * time/Makefile (tests): Add tst-y2039.
14462
14463 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14464
14465         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14466         (PREFETCH_ONE_SET): Remove duplicate line.
14467
14468 2018-05-17  Florian Weimer  <fweimer@redhat.com>
14469
14470         * sysdeps/generic/math-type-macros-double.h: Include
14471         <math-nan-payload-double.h> after <libm-alias-double.h>.
14472         * sysdeps/generic/math-type-macros-float.h: Include
14473         <math-nan-payload-float.h> after <libm-alias-float.h>.
14474         * sysdeps/generic/math-type-macros-float128.h: Include
14475         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14476         * sysdeps/generic/math-type-macros-ldouble.h: Include
14477         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14478
14479 2018-05-17  Andreas Schwab  <schwab@suse.de>
14480
14481         * resolv/res_send.c (__res_context_send): Don't set errno when
14482         returing error after malloc failure.
14483
14484 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14485
14486         * nptl/allocatestack.c (allocate_stack): Remove the
14487         !__ASSUME_PRIVATE_FUTEX paths.
14488         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14489         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14490         Likewise.
14491         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14492         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14493         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14494         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14495         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14496         !__ASSUME_PRIVATE_FUTEX path.
14497         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14498         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14499         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14500         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14501         !__ASSUME_PRIVATE_FUTEX macros.
14502         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14503         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14504         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14505         * sysdeps/unix/sysv/linux/kernel-features.h
14506         (__ASSUME_PRIVATE_FUTEX): Removed.
14507
14508 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
14509
14510         * math/Makefile (libm-narrow-fns): Add div.
14511         (libm-test-funcs-narrow): Likewise.
14512         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14513         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14514         * math/gen-auto-libm-tests.c (test_functions): Add div.
14515         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14516         (NARROW_DIV_ROUND_TO_ODD): Likewise.
14517         (NARROW_DIV_TRIVIAL): Likewise.
14518         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14519         macro.
14520         (__ddivl): Likewise.
14521         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14522         ddiv.
14523         (CFLAGS-nldbl-ddiv.c): New variable.
14524         (CFLAGS-nldbl-fdiv.c): Likewise.
14525         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14526         __nldbl_ddivl.
14527         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14528         prototype.
14529         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14530         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14531         * math/auto-libm-test-in: Add tests of div.
14532         * math/auto-libm-test-out-narrow-div: New generated file.
14533         * math/libm-test-narrow-div.inc: New file.
14534         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14535         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14536         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14537         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14538         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14539         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14540         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14541         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14542         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14543         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14544         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14545         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14546         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14547         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14548         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14549         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14550         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14551         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14552         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14553         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14554         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14555         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14556         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14557         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14558         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14559         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14560         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14561         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14562         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14563         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14564         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14565         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14570         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14571         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14572         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14573         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14574         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14575         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14576         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14577         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14578
14579 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14580
14581         [BZ #23178]
14582         * nscd/nscd-client.h (sendfileall): Remove prototype.
14583         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14584         (handle_request): Use writeall instead of sendfileall.
14585         * nscd/aicache.c (addhstaiX): Likewise.
14586         * nscd/grpcache.c (cache_addgr): Likewise.
14587         * nscd/hstcache.c (cache_addhst): Likewise.
14588         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14589         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14590         * nscd/pwdcache.c (cache_addpw): Likewise.
14591         * nscd/servicescache.c (cache_addserv): Likewise.
14592         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14593         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14594         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14595         Remove define.
14596
14597 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14598
14599         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14600         Include <string/strncat.c>.
14601         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14602         alias.
14603         (__GI___strncat): New hidden alias.
14604
14605 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14606
14607         * sysdeps/mips/mips32/libm-test-ulps: Update.
14608         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14609
14610 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14611
14612         * support/Makefile (libsupport-routines): Add support_quote_blob,
14613         support_test_compare_blob.
14614         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14615         * support/check.h (TEST_COMPARE_BLOB): Define.
14616         (support_test_compare_blob): Declare.
14617         * support/support.h (support_quote_blob): Declare.
14618         * support/support_quote_blob.c: New file.
14619         * support/support_test_compare_blob.c: Likewise.
14620         * support/tst-support_quote_blob.c: Likewise.
14621         * support/tst-test_compare_blob.c: Likewise.
14622
14623 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14624
14625         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14626         of <strtod_nan_double.h>.
14627         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14628         instead of SET_MANTISSA.
14629         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14630         of include <strtod_nan_float.h>.
14631         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14632         instead of <strtod_nan_ldouble.h>.
14633         * stdlib/strtod_nan_double.h: Move to ...
14634         * sysdeps/generic/math-nan-payload-double.h: ... here.
14635         (FLOAT): Remove definition.
14636         (SET_MANTISSA): Rename to ...
14637         (SET_NAN_PAYLOAD): ... this.
14638         * stdlib/strtod_nan_float.h: Move to ...
14639         * sysdeps/generic/math-nan-payload-float.h: ... here.
14640         (FLOAT): Remove definition.
14641         (SET_MANTISSA): Rename to ...
14642         (SET_NAN_PAYLOAD): ... this.
14643         * sysdeps/generic/math-type-macros-double.h: Include
14644         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
14645         instead of <math-svid-compat.h>.
14646         * sysdeps/generic/math-type-macros-float.h: Include
14647         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
14648         instead of <math-svid-compat.h>.
14649         * sysdeps/generic/math-type-macros-float128.h: Include
14650         <math-nan-payload-float128.h>.
14651         * sysdeps/generic/math-type-macros-ldouble.h: Include
14652         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
14653         instead of <math-svid-compat.h>.
14654         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14655         check for definition.
14656         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14657         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14658         Include <ieee754_float128.h>.
14659         (FLOAT): Remove definition.
14660         (SET_MANTISSA): Rename to ...
14661         (SET_NAN_PAYLOAD): ... this.
14662         * sysdeps/ieee754/float128/strtof128_nan.c: Include
14663         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14664         Do not include <float128_private.h>.
14665         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14667         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14668         (FLOAT): Remove definition.
14669         (SET_MANTISSA): Rename to ...
14670         (SET_NAN_PAYLOAD): ... this.
14671         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14672         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14673         (FLOAT): Remove definition.
14674         (SET_MANTISSA): Rename to ...
14675         (SET_NAN_PAYLOAD): ... this.
14676         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14677         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14678         (FLOAT): Remove definition.
14679         (SET_MANTISSA): Rename to ...
14680         (SET_NAN_PAYLOAD): ... this.
14681         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14682         of "../stdlib/strtod_nan_double.h".
14683         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14684         of "../stdlib/strtod_nan_float.h".
14685         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14686         instead of "../stdlib/strtod_nan_ldouble.h".
14687         * manual/arith.texi (Parsing of Floats): Adjust comment.
14688
14689 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14690
14691         * math/Makefile (libm-narrow-fns): Add mul.
14692         (libm-test-funcs-narrow): Likewise.
14693         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14694         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14695         * math/gen-auto-libm-tests.c (test_functions): Add mul.
14696         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14697         (NARROW_MUL_ROUND_TO_ODD): Likewise.
14698         (NARROW_MUL_TRIVIAL): Likewise.
14699         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14700         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14701         macro.
14702         (__dmull): Likewise.
14703         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14704         dmul.
14705         (CFLAGS-nldbl-dmul.c): New variable.
14706         (CFLAGS-nldbl-fmul.c): Likewise.
14707         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14708         __nldbl_dmull.
14709         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14710         prototype.
14711         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14712         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14713         * math/auto-libm-test-in: Add tests of mul.
14714         * math/auto-libm-test-out-narrow-mul: New generated file.
14715         * math/libm-test-narrow-mul.inc: New file.
14716         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14717         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14718         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14719         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14720         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14721         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14722         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14723         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14724         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14725         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14726         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14727         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14728         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14729         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14730         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14731         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14732         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14733         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14735         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14736         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14737         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14738         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14739         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14740         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14741         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14742         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14743         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14744         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14745         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14746         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14747         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14752         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14753         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14754         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14755         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14756         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14757         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14758         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14759         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14760
14761 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14762
14763         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14764         with *%eax in call.
14765
14766 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * sysdeps/i386/ldsodefs.h: Removed.
14769         * sysdeps/x86_64/ldsodefs.h: Moved to ...
14770         * sysdeps/x86/ldsodefs.h: This.
14771         (La_i86_regs): New.
14772         (La_i86_retval): Likewise.
14773         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14774         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14775
14776 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14777
14778         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14779         unnecessary testl.
14780
14781 2018-05-13  Alan Modra  <amodra@gmail.com>
14782
14783         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14784         R_PARISC_TLS_DTPOFF32 reloc addend.
14785
14786 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14787
14788         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14789         * math/math.h: Restrict the prototype definition for the functions
14790         issignaling(_Float128) and iszero(_Float128); and template
14791         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14792         __HAVE_FLOAT128_UNLIKE_LDBL.
14793         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14794         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14795         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14796         __f128() constants; define the type _Float128 as long double;
14797         and reuse long double in __CFLOAT128.
14798
14799 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
14800
14801         * sysdeps/generic/math_private.h: Do not include
14802         <math-barriers.h>.
14803         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14804         <math_private.h>.
14805         * math/fromfp.h: Include <math-barriers.h>.
14806         * math/math-narrow.h: Likewise.
14807         * math/s_nextafter.c: Likewise.
14808         * math/s_nexttowardf.c: Likewise.
14809         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14810         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14811         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14812         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14813         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14814         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14815         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14816         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14817         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14818         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14819         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14820         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14821         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14822         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14823         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14824         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14825         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14826         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14827         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14828         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14829         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14830         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14831         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14832         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14833         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14834         * sysdeps/ieee754/k_standardl.c: Likewise.
14835         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14836         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14837         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14838         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14839         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14840         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14841         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14842         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14843         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14844         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14845         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14846         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14847         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14848         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14849         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14850         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14851         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14852         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14853         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14854         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14855         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14856         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14857
14858 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14859
14860         Use 64-bit epoch values in the time zone file parser.
14861         * include/time.h (internal_time_t): Define.
14862         (__tzfile_compute): Use it.
14863         * time/tzfile.c (struct leap): Use internal_time_t for epoch
14864         member.
14865         (transitions): Switch to internal_time_t.
14866         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
14867         types.
14868         (__tzfile_compute): Use internal_time_t for timer argument.  Check
14869         for truncation before calling __offtime.
14870
14871 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14872
14873         [BZ #23166]
14874         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14875         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14876         Likewise.
14877         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14878         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
14879         export without --enable-obsolete-rpc.
14880         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14881         symbol.  This should not have been exported, ever.
14882
14883 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
14884
14885         [BZ #23152]
14886         * localedata/locales/gd_GB (abmon): Fix typo in May:
14887         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
14888
14889 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14890
14891         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14892         Use multiple registers to copy data in loop tail.
14893
14894         * sysdeps/aarch64/multiarch/memmove_falkor.S
14895         (__memmove_falkor): Use multiple registers to move data in
14896         loop tail.
14897
14898 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
14899
14900         * math/math-underflow.h: New file.
14901         * sysdeps/generic/math_private.h: Do not include <float.h>.
14902         (fabs_tg): Remove macro.  Moved to math-underflow.h.
14903         (min_of_type_f): Likewise.
14904         (min_of_type_): Likewise.
14905         (min_of_type_l): Likewise.
14906         (min_of_type_f128): Likewise.
14907         (min_of_type): Likewise.
14908         (math_check_force_underflow): Likewise.
14909         (math_check_force_underflow_nonneg): Likewise.
14910         (math_check_force_underflow_complex): Likewise.
14911         * math/e_exp2_template.c: Include <math-underflow.h>.
14912         * math/k_casinh_template.c: Likewise.
14913         * math/s_catan_template.c: Likewise.
14914         * math/s_catanh_template.c: Likewise.
14915         * math/s_ccosh_template.c: Likewise.
14916         * math/s_cexp_template.c: Likewise.
14917         * math/s_clog10_template.c: Likewise.
14918         * math/s_clog_template.c: Likewise.
14919         * math/s_csin_template.c: Likewise.
14920         * math/s_csinh_template.c: Likewise.
14921         * math/s_csqrt_template.c: Likewise.
14922         * math/s_ctan_template.c: Likewise.
14923         * math/s_ctanh_template.c: Likewise.
14924         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14925         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14926         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14927         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14928         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14929         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14930         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14931         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14932         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14933         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14934         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14939         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14942         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14943         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14944         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14945         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14946         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14947         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14948         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14949         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14950         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14951         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14952         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14953         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14954         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14955         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14956         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14957         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14959         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14960         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14965         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14966         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14989         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14992         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14994         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14997         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15001         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15002         * sysdeps/x86/fpu/powl_helper.c: Likewise.
15003         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
15004         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
15005         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
15006         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
15007         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
15008
15009 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15010
15011         * sysdeps/generic/math-barriers.h: New file.
15012         * sysdeps/generic/math_private.h [!math_opt_barrier]
15013         (math_opt_barrier): Move to math-barriers.h.
15014         [!math_opt_barrier] (math_force_eval): Likewise.
15015         * sysdeps/aarch64/fpu/math-barriers.h: New file.
15016         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
15017         math-barriers.h.
15018         (math_force_eval): Likewise.
15019         * sysdeps/alpha/fpu/math-barriers.h: New file.
15020         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
15021         math-barriers.h.
15022         (math_force_eval): Likewise.
15023         * sysdeps/x86/fpu/math-barriers.h: New file.
15024         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
15025         math-barriers.h.
15026         (math_force_eval): Likewise.
15027         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
15028         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
15029         multiple-include guard for rename.
15030         * sysdeps/powerpc/fpu/math-barriers.h: New file.
15031         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
15032         math-barriers.h.
15033         (math_force_eval): Likewise.
15034
15035 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
15036
15037         [BZ #22786]
15038         CVE-2018-11236
15039         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
15040         computation.
15041         * stdlib/Makefile (test-bz22786): New test.
15042         * stdlib/test-bz22786.c: New test.
15043
15044 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
15045
15046         * include/math-narrow-eval.h: New file.  Contents moved from ....
15047         * sysdeps/generic/math_private.h: ... here.
15048         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
15049         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
15050         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
15051         * stdlib/strtod_l.c: Likewise.
15052         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15053         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
15054         * sysdeps/i386/fpu/s_fdim.c: Likewise.
15055         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15056         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15057         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15058         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15059         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15060         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15061         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
15062         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15063         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
15064         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15065         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
15066         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
15067         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15068         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15069         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15070         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15071         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15072         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15073         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15074         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15075         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15076         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
15077         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15078         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
15079         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
15080         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
15081
15082 2018-05-08  Andreas Schwab  <schwab@suse.de>
15083
15084         * sysdeps/nptl/internaltypes.h: Fix comment.
15085
15086 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
15087
15088         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15089         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
15090         hidden.
15091
15092 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15093
15094         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
15095         of I into loop header.
15096         * benchtests/bench-memmove-walk.c
15097         (test_main): Likewise.
15098
15099 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
15100
15101         Revert:
15102         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
15103         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15104
15105 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15106
15107         [BZ #20419]
15108         * elf/dl-load.c (open_verify): Fix stack overflow.
15109         * elf/Makefile (tst-big-note): New test.
15110         * elf/tst-big-note-lib.S: New.
15111         * elf/tst-big-note.c: New.
15112
15113 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
15114
15115         * scripts/abilist.awk: Ignore absolute symbols.
15116         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
15117         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
15118         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
15119         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
15120         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
15121         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
15122         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15123         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
15124         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
15125         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
15126         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
15127         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
15128         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
15129         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
15130         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
15131         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
15132         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
15133         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
15134         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15135         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
15136         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15137         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
15138         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
15139         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
15140         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
15141         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
15142         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
15143         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
15144         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15145         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
15146         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
15147         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15148         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
15149         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15150         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
15151         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
15152         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
15153         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
15154         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
15155         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
15156         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
15157         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15158         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
15159         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
15160         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15161         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
15162         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15163         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
15164         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
15165         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
15166         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
15167         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
15168         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
15169         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
15170         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15171         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
15172         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
15173         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15174         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
15175         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15176         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
15177         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
15178         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
15179         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
15180         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
15181         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
15182         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
15183         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15184         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
15185         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
15186         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15187         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
15188         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15189         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
15190         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
15191         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
15192         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
15193         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
15194         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
15195         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
15196         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15197         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
15198         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
15199         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15200         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
15201         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15202         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
15203         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
15204         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
15205         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
15206         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
15207         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
15208         Likewise.
15209         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
15210         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15211         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
15212         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
15213         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15214         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
15215         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15216         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
15217         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
15218         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
15219         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
15220         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
15221         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
15222         Likewise.
15223         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
15224         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15225         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
15226         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
15227         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15228         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
15229         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15230         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
15231         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
15232         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
15233         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
15234         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
15235         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
15236         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
15237         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15238         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
15239         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
15240         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15241         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
15242         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15243         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
15244         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
15245         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
15246         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
15247         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15248         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
15249         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
15250         Likewise.
15251         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
15252         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
15253         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
15254         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
15255         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15256         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
15257         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
15258         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
15259         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
15260         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
15261         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
15262         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
15263         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
15264         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15265         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
15266         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
15267         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
15268         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
15269         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15270         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
15271         Likewise.
15272         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
15273         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
15274         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
15275         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15276         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
15277         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15278         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
15279         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
15280         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
15281         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
15282         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15283         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
15284         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
15285         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15286         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
15287         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
15288         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
15289         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
15290         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15291         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
15292         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
15293         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15294         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
15295         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15296         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
15297         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
15298         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
15299         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15304         Likewise.
15305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15310         Likewise.
15311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15312         Likewise.
15313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15315         Likewise.
15316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15318         Likewise.
15319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15320         Likewise.
15321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15324         Likewise.
15325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15326         Likewise.
15327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15328         Likewise.
15329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15333         Likewise.
15334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15340         Likewise.
15341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15343         Likewise.
15344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15345         Likewise.
15346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15347         Likewise.
15348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15349         Likewise.
15350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15353         Likewise.
15354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15355         Likewise.
15356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15357         Likewise.
15358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15359         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15360         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15361         Likewise.
15362         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15363         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15364         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15365         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15366         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15367         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15368         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15369         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15370         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15371         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15372         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15373         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15374         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15375         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15376         Likewise.
15377         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15378         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15379         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15380         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15381         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15382         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15383         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15384         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15385         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15386         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15387         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15388         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15389         Likewise.
15390         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15391         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15392         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15393         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15394         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15395         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15396         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15397         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15398         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15399         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15400         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15401         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15402         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15403         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15404         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15405         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15406         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15407         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15408         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15409         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15410         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15411         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15412         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15413         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15414         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15415         Likewise.
15416         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15417         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15418         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15419         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15420         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15421         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15422         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15423         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15424         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15425         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15426         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15427         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15428         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15429         Likewise.
15430         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15431         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15432         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15433         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15434         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15435         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15436         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15437         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15438         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15439         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15440         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15441         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15442         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15443         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15444         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15445         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15446         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15447         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15448         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15449         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15450         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15451         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15452         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15453         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15454         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15455         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15456         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15457         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15458         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15459         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15460         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15461         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15462         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15463         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15464         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15465         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15466         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15467         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15468
15469 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
15470
15471         [BZ #23137]
15472         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15473         Use atomic_load_acquire to load __tid.
15474
15475 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15476
15477         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15478         Restore the pointer into %rdx, after syscall and use %rdx,
15479         instead of %rsi, to restore context.
15480
15481 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15482
15483         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15484         Pop the pointer into %rdx after syscall and use %rdx, instead
15485         of %rsi, to restore context.
15486
15487 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15488
15489         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15490         handlers after setjmp.
15491         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15492         defined.
15493         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15494         <libc-pointer-arith.h>.
15495         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15496         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15497         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15498         _JUMP_BUF_SIGSET_BITS_PER_WORD.
15499         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15500         * sysdeps/x86/__longjmp_cancel.S: New file.
15501         * sysdeps/x86/longjmp.c: Likewise.
15502         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15503
15504 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15505
15506         * NEWS: Add ustat.h deprecation entry.
15507         * bits/ustat.h: Remove file.
15508         * misc/sys/ustat.h: Likewise.
15509         * misc/ustat.h: Likewise.
15510         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15511         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15512         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15513         compatibility mode.
15514         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15515         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15516         generic Linux implementation.
15517
15518 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15519
15520         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15521         * math/w_expl_compat.c: Likewise.
15522         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
15523
15524 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
15525
15526         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15527
15528 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15529
15530         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15531         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15532         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15533         Remove.
15534         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15536         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15537         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15538         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15539         and SYSCALL_LL64.
15540
15541 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15542
15543         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15544
15545         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15546         * math/w_asin_template.c: Likewise.
15547         * math/w_atanh_template.c: Likewise.
15548
15549 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15550
15551         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15552         to powerpc/powerpc64/be for big-endian.
15553         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15554         little-endian.
15555
15556         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15557         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15558         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15559         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15560         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15561         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15562         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15563         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15564         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15565         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15566         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15567         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15568         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15569         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15570         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15571         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15572         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15573         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15574         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15575         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15576         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15577         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15578         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15579         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15580         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15581         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15582         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15583         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15584         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15585         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15586         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15587         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15588
15589         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15590         adjusted to imply powerpc64 and older processors on powerpc64/be.
15591         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15592         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15593         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15594         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15595         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15596         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15597         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15598         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15599         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15600         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15601         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15602         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15603         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15604         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15605         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15606         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15607         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15608         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15609         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15610         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15611         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15612         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15613         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15614         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15615         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15616         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15617         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15618         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15619         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15620         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15621         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15622
15623         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15624         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15625         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15626         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15627
15628         * sysdeps/powerpc/powerpc64/be/Implies: New file.
15629         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15630         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15631         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15632
15633         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15634         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15635         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15636         * sysdeps/powerpc/powerpc64le/configure: Likewise.
15637         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15638         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15639         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15640         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15641         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15642         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15643         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15644
15645         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15646         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15647         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15648         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15649         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15650         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15651         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15652         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15653         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15654         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15655         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15656
15657         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15658         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15659         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15660         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15661         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15662         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15663         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15664         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15665         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15666         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15667         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15668         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15669
15670         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15671         and adjusted to imply olders processors.
15672         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15673         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15674         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15675         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15676         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15677         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15678         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15679         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15680         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15681         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15682         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15683
15684         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15685         powerpc64/le.
15686         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15687         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15688
15689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15690         powerpc64le.
15691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15693
15694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15695         powerpc64/be.
15696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15699
15700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15701         powerpc64 and adjusted.
15702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15705         Likewise.
15706
15707 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
15708
15709         * sysdeps/tile: Remove.
15710         * sysdeps/unix/sysv/linux/tile: Likewise.
15711         * README (tilegx-*-linux-gnu): Remove from list of supported
15712         configurations.
15713         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15714         contribution of support for generic Linux kernel syscall
15715         interface.
15716         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15717         tilegx configurations.
15718         (Config.install_linux_headers): Do not handle tile.
15719         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15720         in comment.
15721         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15722         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15723         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15724         conditional undefine and redefine.
15725         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15726         in comment.
15727         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15728         conditional undefine and redefine.
15729
15730 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
15731
15732         * signal/tst-sigaction.c: New file to test BZ #23069.
15733         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15734
15735 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15736
15737         [BZ #22766]
15738         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15739         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15740         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15741         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15742
15743 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15744
15745         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15746         _DIRENT_MATCHES_DIRENT64 is not defined.
15747         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15748         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15749         is defined.
15750         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15751         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15752
15753 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
15754
15755         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15756         version to GCC 8 branch.
15757
15758 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
15759
15760         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15761         (check_no_hidden): Use type of original function when declaring
15762         alias.
15763
15764         * sysdeps/unix/sysv/linux/sys/ptrace.h
15765         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15766         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15767         (struct __ptrace_seccomp_metadata): New type.
15768         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15769         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15770         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15771         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15772         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15773         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15774         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15775         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15776         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15777         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15778         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15779         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15780         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15781         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15782         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15783         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15784
15785 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15786
15787         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15788         defined.
15789         * dirent/versionsort.c (versionsort): Likewise.
15790         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15791         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15792         * dirent/versionsort64.c (versionsort64): Likewise.
15793         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15794         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15795         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15796         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15797         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15798         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15799         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15800         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15801         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15802         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15805         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15806         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15807
15808 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
15809
15810         * elf/elf.h (NT_PPC_PKEY): New macro.
15811
15812 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
15813
15814         [BZ #23094]
15815         * localedata/locales/hr_HR: fix thousands_sep and
15816         mon_thousands_sep
15817
15818 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15819
15820         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15821         (XTABS): Define to TAB3.
15822
15823 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15824
15825         * sysdeps/hppa/fpu/libm-test-ulps: Update.
15826
15827         * dirent/scandir-tail-common.c: New file.
15828         * dirent/scandir-tail.c: Use scandir-tail-common.c.
15829         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15830         * dirent/scandir.c: Use scandir-tail-common.c.
15831         * dirent/scandirat.c: Likewise.
15832         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15833         * dirent/scandir64.c (scandir64): Always build and alias to scandir
15834         if _DIRENT_MATCHES_DIRENT64 is defined.
15835         * dirent/scandirat64.c (scandirat64): Likewise.
15836         * include/dirent.h (__scandir_tail): Only define iff
15837         _DIRENT_MATCHES_DIRENT64 is not defined.
15838         (__scandir64_tail): Define regardless.
15839         (__scandirat, scandirat64): Remove libc_hidden_proto.
15840         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15841         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15843         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15844         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15845         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15846         * sysdeps/unix/sysv/linux/scandir64.c: New file.
15847
15848 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15849
15850         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15851         New macro.
15852         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15853         Increase to 24.
15854         (_dl_aarch64_cap_flags): Add asimdfhm.
15855
15856 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
15857
15858         * sysdeps/nios2/libm-test-ulps: Update.
15859
15860 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15861
15862         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15863         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15864
15865         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15866         requirements.
15867         (_DIRENT_MATCHES_DIRENT64): Undef
15868         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15869         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15870         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15871         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15872         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15873         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15874         use getdents64 syscalls as base.
15875         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15876         symbol if required.
15877         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15878         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15879         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15880         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15881         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15882         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15883         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15884         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15885         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15886         (__get_clockfreq_via_proc_openprom): Use __getdents64.
15887         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15888
15889 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15890
15891         * scripts/test_printers_common.py (init_test): Disable lock elision.
15892
15893 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15894
15895         * math/test-tgmath.c (count_double, count_float,
15896         count_ldouble, count_cdouble, count_cfloat,
15897         count_cldouble): Use volatile int.
15898
15899 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15900
15901         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15902         (conformtest-xfail-conds): Add i386-gnu.
15903         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15904         i386-gnu.
15905         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15906         ipc_perm.cuid, ipc_perm.cgid): Likewise.
15907         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15908         msqid_ds.msg_lrpid): Likewise.
15909         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15910         Likewise.
15911         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15912         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15913         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15914         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15915         unsigned int.
15916         (struct statvfs64): Likewise.
15917         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15918         Likewise.
15919         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15920         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15921         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15922         instead of wait_queue.
15923         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15924         instead of vm_area_struct.
15925         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15926         struct sched_param definition to it.
15927         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15928         * bits/types/struct_sched_param.h: New file.
15929         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15930         <bits/types/struct_sched_param.h> instead of <sched.h>.
15931         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15932         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15933         generic version but include <bits/pthreadtypes.h> to make struct
15934         sigevent's sigev_notify_attributes field a pthread_attr_t*.
15935         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15936         non-compliant.
15937         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15938         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15939         [__USE_XOPEN] (OFDEL): New macro.
15940         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15941         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15942         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15943         prototypes.
15944         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15945         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15946         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15947         non-compliant.
15948         * sysdeps/i386/sys/ucontext.h: Likewise.
15949         * sysdeps/m68k/sys/ucontext.h: Likewise.
15950         * sysdeps/mips/sys/ucontext.h: Likewise.
15951         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15952         * sysdeps/mach/hurd/i386/Makefile
15953         (test-xfail-POSIX/fcntl.h/conform): Add.
15954         (test-xfail-POSIX/signal.h/conform): Add.
15955         (test-xfail-POSIX/semaphore.h/conform): Add.
15956         (test-xfail-POSIX/regex.h/conform): Add.
15957         (test-xfail-POSIX/aio.h/conform): Add.
15958         (test-xfail-POSIX/mqueue.h/conform): Add.
15959         (test-xfail-POSIX/sys/types.h/conform): Add.
15960         (test-xfail-UNIX98/fcntl.h/conform): Add.
15961         (test-xfail-UNIX98/netdb.h/conform): Add.
15962         (test-xfail-UNIX98/signal.h/conform): Add.
15963         (test-xfail-UNIX98/semaphore.h/conform): Add.
15964         (test-xfail-UNIX98/regex.h/conform): Add.
15965         (test-xfail-UNIX98/aio.h/conform): Add.
15966         (test-xfail-UNIX98/ftw.h/conform): Add.
15967         (test-xfail-UNIX98/mqueue.h/conform): Add.
15968         (test-xfail-UNIX98/netinet/in.h/conform): Add.
15969         (test-xfail-UNIX98/sys/wait.h/conform): Add.
15970         (test-xfail-UNIX98/sys/sem.h/conform): Add.
15971         (test-xfail-UNIX98/sys/uio.h/conform): Add.
15972         (test-xfail-UNIX98/sys/socket.h/conform): Add.
15973         (test-xfail-UNIX98/sys/types.h/conform): Add.
15974         (test-xfail-UNIX98/stdlib.h/conform): Add.
15975         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15976         (test-xfail-POSIX2008/fcntl.h/conform): Add.
15977         (test-xfail-POSIX2008/netdb.h/conform): Add.
15978         (test-xfail-POSIX2008/signal.h/conform): Add.
15979         (test-xfail-POSIX2008/semaphore.h/conform): Add.
15980         (test-xfail-POSIX2008/regex.h/conform): Add.
15981         (test-xfail-POSIX2008/aio.h/conform): Add.
15982         (test-xfail-POSIX2008/mqueue.h/conform): Add.
15983         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15984         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15985         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15986         (test-xfail-POSIX2008/sys/types.h/conform): Add.
15987         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15988         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15989         (test-xfail-XOPEN2K/netdb.h/conform): Add.
15990         (test-xfail-XOPEN2K/signal.h/conform): Add.
15991         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15992         (test-xfail-XOPEN2K/regex.h/conform): Add.
15993         (test-xfail-XOPEN2K/aio.h/conform): Add.
15994         (test-xfail-XOPEN2K/ftw.h/conform): Add.
15995         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15996         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15997         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15998         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15999         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
16000         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
16001         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
16002         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
16003         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
16004         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
16005         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
16006         (test-xfail-XOPEN2K8/signal.h/conform): Add.
16007         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
16008         (test-xfail-XOPEN2K8/regex.h/conform): Add.
16009         (test-xfail-XOPEN2K8/aio.h/conform): Add.
16010         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
16011         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
16012         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
16013         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
16014         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
16015         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
16016         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
16017         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
16018         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
16019         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
16020         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
16021         i386-gnu.
16022         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
16023         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
16024
16025 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
16026
16027         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
16028         --enable-obsolete for powerpc-linux-gnuspe.
16029
16030 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16031
16032         * conform/data/sys/un.h-data: Allow sun_ prefix.
16033         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
16034         prototypes.
16035         * sysdeps/mach/include/mach.h: Likewise.
16036         * sysdeps/mach/include/mach/mig_support.h: Likewise.
16037         * sysdeps/mach/include/mach_error.h: Likewise.
16038
16039 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16040
16041         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
16042         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
16043         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
16044         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
16045
16046 2018-04-16  Andreas Schwab  <schwab@suse.de>
16047
16048         [BZ #19527]
16049         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
16050
16051 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
16052
16053         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
16054         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
16055
16056 2018-04-12  DJ Delorie  <dj@redhat.com>
16057
16058         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16059         version to 4.16.
16060
16061 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
16062
16063         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
16064         (struct kernel_sigaction): Use the same definition on 31bit as is used
16065         on 64bit.
16066
16067 2018-04-09  Florian Weimer  <fweimer@redhat.com>
16068
16069         [BZ #23037]
16070         * resolv/res_send.c (send_dg): Use designated initializers instead
16071         of assignment to zero-initialize other fields of struct mmsghdr.
16072
16073 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16074
16075         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
16076         __READDIR_ALIAS): Undefine after usage.
16077         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
16078         __READDIR_R_ALIAS): Likewise.
16079         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
16080         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
16081         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
16082         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
16083         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
16084         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
16085         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16086         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16087         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
16088         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
16089         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
16090         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
16091         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16092         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
16093         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
16094         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
16095         * sysdeps/unix/sysv/linux/readdir.c: New file.
16096         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
16097         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
16098         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
16099
16100         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
16101
16102 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
16103
16104         * manual/charset.texi (Converting a Character): Fix typo.
16105
16106 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16107
16108         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16109
16110         * sysdeps/arm/libm-test-ulps: Update.
16111
16112         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
16113         as base implementation.
16114         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
16115         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
16116         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
16117         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
16118         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
16119         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
16120         remove unrequired definitions and update comments.
16121         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
16122         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
16123         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
16124         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
16125         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
16126         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
16127         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
16128         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
16129         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
16130         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
16131         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
16132         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
16133         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
16134         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
16135         and RESET_SA_RESTORER hooks.
16136
16137 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
16138
16139         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16140
16141 2018-04-05  Florian Weimer  <fweimer@redhat.com>
16142
16143         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
16144         integer overflow, memory leak on error, and indeterminate errno
16145         value.  Add a null wide character to terminate the result string.
16146         * manual/charset.texi (Converting a Character): Mention embedded
16147         null bytes in the mbrtowc input string.  Explain what happens in
16148         the -2 result case.  Do not claim that mbrtowc is simple or
16149         obvious to use.  Adjust the description of the code example.  Use
16150         @code, not @var, for concrete variables.
16151
16152 2018-04-05  Florian Weimer  <fweimer@redhat.com>
16153
16154         * manual/examples/mbstouwcs.c: New file.
16155         * manual/charset.texi (Converting a Character): Include it.
16156
16157 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16158
16159         * include/dirent.h (dirfd): Add hidden proto.
16160         * dirent/dirfd.c (dirfd): Add hidden def.
16161         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
16162         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
16163
16164 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
16165
16166         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
16167         sin, cos and sincos to 1 ULP.
16168
16169 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
16170
16171         [BZ #19818]
16172         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
16173         symbols.
16174         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
16175         * elf/tst-absolute-sym.c: New file.
16176         * elf/tst-absolute-sym-lib.c: New file.
16177         * elf/tst-absolute-sym-lib.lds: New file.
16178         * elf/Makefile (tests): Add `tst-absolute-sym'.
16179         (modules-names): Add `tst-absolute-sym-lib'.
16180         (LDLIBS-tst-absolute-sym-lib.so): New variable.
16181         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
16182         ($(objpfx)tst-absolute-sym): New dependency.
16183
16184         [BZ #19818]
16185         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
16186         parameter.
16187         (SYMBOL_ADDRESS): New macro.
16188         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
16189         SYMBOL_ADDRESS for symbol address calculation.
16190         * elf/dl-runtime.c (_dl_fixup): Likewise.
16191         (_dl_profile_fixup): Likewise.
16192         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
16193         * elf/rtld.c (dl_main): Likewise.
16194         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
16195         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
16196         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
16197         (elf_machine_rela): Likewise.
16198         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
16199         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
16200         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16201         (elf_machine_rela): Likewise.
16202         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16203         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
16204         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
16205         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
16206         Likewise.
16207         (elf_machine_reloc): Likewise.
16208         (elf_machine_got_rel): Likewise.
16209         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
16210         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
16211         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16212         Likewise.
16213         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16214         Likewise.
16215         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
16216         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16217         Likewise.
16218         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16219         Likewise.
16220         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16221         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16222         Likewise.
16223         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16224         Likewise.
16225         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
16226         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16227
16228 2018-04-04  Zack Weinberg  <zackw@panix.com>
16229
16230         * sysdeps/generic/internal-signals.h: Include signal.h,
16231         sigsetops.h, and stdbool.h.
16232         (__libc_signal_block_all): Actually block all signals.
16233         (__libc_signal_block_app): Likewise.
16234         (__libc_signal_restore_set): Actually restore the signal mask.
16235
16236 2018-04-04  Florian Weimer  <fweimer@redhat.com>
16237
16238         inet: Actually build and run tst-deadline.
16239         * inet/Makefile (tests-internal): Add tst-deadline and do not
16240         overwrite the variable.
16241         (tests-static-internal): Remove variable.
16242
16243 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16244
16245         [BZ #22947]
16246         * bits/uio-ext.h (RWF_APPEND): New.
16247         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
16248         * manual/llio.texi: Document RWF_APPEND.
16249         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
16250         (RWF_SUPPORTED): Add RWF_APPEND.
16251
16252 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16253
16254         [BZ #22391]
16255         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
16256         check for internal nptl signals.
16257         * nptl/sigaction.c (__sigaction): Likewise.
16258         * signal/sigaddset.c (sigaddset): Likewise.
16259         * signal/sigdelset.c (sigdelset): Likewise.
16260         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
16261         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
16262         value.
16263         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
16264         to filter out internal nptl signals.
16265         * signal/tst-sigset.c (do_test): Check ech signal indidually and
16266         also check realtime signals using standard macros.
16267         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
16268         __is_internal_signal, __libc_signal_block_all,
16269         __libc_signal_block_app, __libc_signal_restore_set): New functions.
16270         * sysdeps/nptl/sigfillset.c: Remove file.
16271         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
16272         Change return to bool.
16273         (__clear_internal_signals): Remove SIGTIMER clean since it is
16274         equal to SIGCANEL on Linux.
16275         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
16276         signal set was constructed using standard functions.
16277
16278 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16279
16280         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
16281         ifname is too long.
16282         * hurd/hurdsig.c (interrupted_reply_port_location): Use
16283         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
16284         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
16285         hidden def.
16286         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
16287         * signal/sigaddset.c: Include <sigsetopts.h>.
16288         * signal/sigdelset.c: Likewise.
16289
16290 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16291
16292         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
16293         (__cos): Likewise.
16294         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
16295         logic as sin and cos.
16296
16297 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16298
16299         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16300         inputs.  Return correct sign.
16301         (do_sincos): Remove small input check before do_sin, let do_sin set
16302         the sign.
16303         (__sin): Likewise.
16304         (__cos): Likewise.
16305
16306 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16307
16308         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16309         (do_cos_slow): Likewise.
16310         (do_sin_slow): Likewise.
16311         (reduce_and_compute): Likewise.
16312         (slow): Likewise.
16313         (slow1): Likewise.
16314         (slow2): Likewise.
16315         (sloww): Likewise.
16316         (sloww1): Likewise.
16317         (sloww2): Likewise.
16318         (bslow): Likewise.
16319         (bslow1): Likewise.
16320         (bslow2): Likewise.
16321         (cslow2): Likewise.
16322
16323 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16324
16325         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16326         (do_cos): Remove corp parameter and calculations.
16327         (do_sin): Likewise.
16328         (do_sincos): Remove cor variable.
16329         (__sin): Use do_sincos for huge inputs.
16330         (__cos): Likewise.
16331         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16332         (reduce_and_compute_sincos): Remove unused function.
16333
16334 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16335
16336         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16337         reduce_sincos, improve accuracy to 136 bits.
16338         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16339         (__sin): Use improved reduction and simplified do_sincos calculation.
16340         (__cos): Likewise.
16341         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16342
16343 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16344
16345         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16346         (do_sincos_2): Likewise.
16347         (__sin): Remove middle range reduction case.
16348         (__cos): Likewise.
16349         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16350         reduction case.
16351
16352 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16353
16354         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16355         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16356         inputs.
16357         (__cos): Likewise.
16358         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16359
16360 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
16361
16362         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16363         version to 4.16
16364
16365 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16366
16367         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16368         Remove definitions.
16369         (opendir_oflags): Use O_DIRECTORY regardless.
16370         (__opendir, __opendirat): Remove need_isdir_precheck usage.
16371         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16372
16373 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16374
16375         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16376         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16377         macros.
16378         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16379         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16380         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16381         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16382         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16383         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16384
16385         * htl/Makefile: Bump licence to LGPL 2.1+.
16386         * htl/alloca_cutoff.c: Likewise.
16387         * htl/cthreads-compat.c: Likewise.
16388         * htl/lockfile.c: Likewise.
16389         * htl/pt-alloc.c: Likewise.
16390         * htl/pt-cancel.c: Likewise.
16391         * htl/pt-cleanup.c: Likewise.
16392         * htl/pt-create.c: Likewise.
16393         * htl/pt-dealloc.c: Likewise.
16394         * htl/pt-detach.c: Likewise.
16395         * htl/pt-exit.c: Likewise.
16396         * htl/pt-getattr.c: Likewise.
16397         * htl/pt-initialize.c: Likewise.
16398         * htl/pt-internal.h: Likewise.
16399         * htl/pt-join.c: Likewise.
16400         * htl/pt-self.c: Likewise.
16401         * htl/pt-setcancelstate.c: Likewise.
16402         * htl/pt-setcanceltype.c: Likewise.
16403         * htl/pt-sigmask.c: Likewise.
16404         * htl/pt-spin-inlines.c: Likewise.
16405         * htl/pt-testcancel.c: Likewise.
16406         * htl/pt-yield.c: Likewise.
16407         * htl/tests/test-1.c: Likewise.
16408         * htl/tests/test-10.c: Likewise.
16409         * htl/tests/test-11.c: Likewise.
16410         * htl/tests/test-12.c: Likewise.
16411         * htl/tests/test-13.c: Likewise.
16412         * htl/tests/test-14.c: Likewise.
16413         * htl/tests/test-15.c: Likewise.
16414         * htl/tests/test-16.c: Likewise.
16415         * htl/tests/test-17.c: Likewise.
16416         * htl/tests/test-2.c: Likewise.
16417         * htl/tests/test-3.c: Likewise.
16418         * htl/tests/test-4.c: Likewise.
16419         * htl/tests/test-5.c: Likewise.
16420         * htl/tests/test-6.c: Likewise.
16421         * htl/tests/test-7.c: Likewise.
16422         * htl/tests/test-8.c: Likewise.
16423         * htl/tests/test-9.c: Likewise.
16424         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16425         * sysdeps/htl/bits/cancelation.h: Likewise.
16426         * sysdeps/htl/bits/pthread-np.h: Likewise.
16427         * sysdeps/htl/bits/pthread.h: Likewise.
16428         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16429         * sysdeps/htl/bits/semaphore.h: Likewise.
16430         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16431         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16432         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16433         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16434         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16435         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16436         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16437         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16438         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16439         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16440         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16441         * sysdeps/htl/old_pt-atfork.c: Likewise.
16442         * sysdeps/htl/pt-atfork.c: Likewise.
16443         * sysdeps/htl/pt-attr-destroy.c: Likewise.
16444         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16445         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16446         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16447         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16448         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16449         * sysdeps/htl/pt-attr-getscope.c: Likewise.
16450         * sysdeps/htl/pt-attr-getstack.c: Likewise.
16451         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16452         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16453         * sysdeps/htl/pt-attr-init.c: Likewise.
16454         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16455         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16456         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16457         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16458         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16459         * sysdeps/htl/pt-attr-setscope.c: Likewise.
16460         * sysdeps/htl/pt-attr-setstack.c: Likewise.
16461         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16462         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16463         * sysdeps/htl/pt-attr.c: Likewise.
16464         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16465         * sysdeps/htl/pt-barrier-init.c: Likewise.
16466         * sysdeps/htl/pt-barrier-wait.c: Likewise.
16467         * sysdeps/htl/pt-barrier.c: Likewise.
16468         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16469         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16470         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16471         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16472         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16473         * sysdeps/htl/pt-cond-destroy.c: Likewise.
16474         * sysdeps/htl/pt-cond-init.c: Likewise.
16475         * sysdeps/htl/pt-cond-signal.c: Likewise.
16476         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16477         * sysdeps/htl/pt-cond-wait.c: Likewise.
16478         * sysdeps/htl/pt-cond.c: Likewise.
16479         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16480         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16481         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16482         * sysdeps/htl/pt-condattr-init.c: Likewise.
16483         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16484         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16485         * sysdeps/htl/pt-destroy-specific.c: Likewise.
16486         * sysdeps/htl/pt-equal.c: Likewise.
16487         * sysdeps/htl/pt-getconcurrency.c: Likewise.
16488         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16489         * sysdeps/htl/pt-getschedparam.c: Likewise.
16490         * sysdeps/htl/pt-getspecific.c: Likewise.
16491         * sysdeps/htl/pt-init-specific.c: Likewise.
16492         * sysdeps/htl/pt-key-create.c: Likewise.
16493         * sysdeps/htl/pt-key-delete.c: Likewise.
16494         * sysdeps/htl/pt-key.h: Likewise.
16495         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16496         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16497         * sysdeps/htl/pt-mutex-init.c: Likewise.
16498         * sysdeps/htl/pt-mutex-lock.c: Likewise.
16499         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16500         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16501         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16502         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16503         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16504         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16505         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16506         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16507         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16508         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16509         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16510         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16511         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16512         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16513         * sysdeps/htl/pt-mutexattr.c: Likewise.
16514         * sysdeps/htl/pt-once.c: Likewise.
16515         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16516         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16517         * sysdeps/htl/pt-rwlock-init.c: Likewise.
16518         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16519         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16520         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16521         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16522         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16523         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16524         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16525         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16526         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16527         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16528         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16529         * sysdeps/htl/pt-setconcurrency.c: Likewise.
16530         * sysdeps/htl/pt-setschedparam.c: Likewise.
16531         * sysdeps/htl/pt-setschedprio.c: Likewise.
16532         * sysdeps/htl/pt-setspecific.c: Likewise.
16533         * sysdeps/htl/pt-spin.c: Likewise.
16534         * sysdeps/htl/pt-startup.c: Likewise.
16535         * sysdeps/htl/pthread.h: Likewise.
16536         * sysdeps/htl/sem-close.c: Likewise.
16537         * sysdeps/htl/sem-destroy.c: Likewise.
16538         * sysdeps/htl/sem-getvalue.c: Likewise.
16539         * sysdeps/htl/sem-init.c: Likewise.
16540         * sysdeps/htl/sem-open.c: Likewise.
16541         * sysdeps/htl/sem-post.c: Likewise.
16542         * sysdeps/htl/sem-timedwait.c: Likewise.
16543         * sysdeps/htl/sem-trywait.c: Likewise.
16544         * sysdeps/htl/sem-unlink.c: Likewise.
16545         * sysdeps/htl/sem-wait.c: Likewise.
16546         * sysdeps/hurd/htl/pt-kill.c: Likewise.
16547         * sysdeps/i386/htl/pt-machdep.h: Likewise.
16548         * sysdeps/mach/htl/pt-block.c: Likewise.
16549         * sysdeps/mach/htl/pt-spin.c: Likewise.
16550         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16551         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16552         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16553         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16554         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16555         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16556         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16557         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16558         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16559         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16560         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16561         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16562         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16563         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16564         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16565         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16566         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16567         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16568         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16569         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16570         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16571         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16572         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16573         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16574         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16575         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16576         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16577         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16578         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16579         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16580         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16581         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16582         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16583         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16584         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16585         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16586         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16587         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16588         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16589         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16590         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16591         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16592         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16593
16594         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16595         * README: Remove the mention of out-of-tree patches needed for
16596         GNU/Hurd.
16597
16598         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16599         (UTIME_NOW, UTIME_OMIT): Define macros.
16600
16601         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16602         instead of pthread_detach.
16603         (__cthread_fork): Call __pthread_create instead of pthread_create.
16604         (__cthread_keycreate): Call __pthread_key_create instead of
16605         pthread_key_create.
16606         (__cthread_getspecific): Call __pthread_getspecific instead of
16607         pthread_getspecific.
16608         (__cthread_setspecific): Call __pthread_setspecific instead of
16609         pthread_setspecific.
16610         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16611         __pthread_mutex_unlock instead of pthread_mutex_lock and
16612         pthread_mutex_unlock.
16613         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16614         ___pthread_get_cleanup_stack.
16615         (__pthread_get_cleanup_stack): New strong alias.
16616         * htl/pt-create.c: Include <pthreadP.h>.
16617         (entry_point): Call __pthread_exit instead of pthread_exit.
16618         (pthread_create): Rename to __pthread_create.
16619         (pthread_create): New strong alias.
16620         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16621         (pthread_detach): New strong alias.
16622         (__pthread_detach): Call __pthread_cond_broadcast instead of
16623         pthread_cond_broadcast.
16624         * htl/pt-exit.c: Include <pthreadP.h>.
16625         (__pthread_exit): Call __pthread_setcancelstate and
16626         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16627         __pthread_get_cleanup_stack.
16628         * htl/pt-testcancel.c: Include <pthreadP.h>.
16629         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16630         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16631         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16632         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16633         pthread_attr_getstacksize.
16634         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16635         Rename to __pthread_attr_getstackaddr.
16636         (pthread_attr_getstackaddr): New strong alias.
16637         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16638         Rename to __pthread_attr_getstacksize.
16639         (pthread_attr_getstacksize): New strong alias.
16640         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16641         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16642         (pthread_attr_setstack): New strong alias.
16643         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16644         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16645         pthread_attr_getstacksize, pthread_attr_setstacksize and
16646         pthread_attr_setstackaddr.
16647         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16648         Rename to __pthread_attr_setstackaddr.
16649         (pthread_attr_setstackaddr): New strong alias.
16650         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16651         Rename to __pthread_attr_setstacksize.
16652         (pthread_attr_setstacksize): New strong alias.
16653         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16654         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16655         pthread_exit.
16656         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16657         (__pthread_key_create): New hidden def.
16658         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16659         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16660         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16661         __pthread_exit, __pthread_key_create, __pthread_getspecific,
16662         __pthread_setspecific, __pthread_setcancelstate,
16663         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16664         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16665         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16666         declarations.
16667         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16668         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16669         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16670         (pthread_attr_setstackaddr): New strong alias.
16671         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16672         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16673         (pthread_attr_setstacksize): New strong alias.
16674         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16675         (call_exit): Call __pthread_exit instead of pthread_exit.
16676         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16677         (_pthread_mutex_init): New hidden definition.
16678         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16679         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16680         instead of pthread_attr_init and pthread_attr_setstack.
16681
16682         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16683         __vm_deallocate instead of vm_allocate and vm_deallocate.
16684         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16685         setenv.
16686         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16687         of geteuid.
16688         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16689         strdup.
16690         * hurd/siginfo.c: Include <libioP.h>.
16691         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16692         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16693         munmap.
16694         * mach/devstream.c: Include <libioP.h>.
16695         (dealloc_ref): Call __mach_port_deallocate instead of
16696         mach_port_deallocate.
16697         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16698         Call __mach_port_deallocate instead of mach_port_deallocate.
16699         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16700         pathconf.
16701         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16702         munmap.
16703         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16704         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16705         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16706         of munmap.
16707         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16708         of close.
16709         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16710         instead of sysconf.
16711         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16712         __clock_gettime instead of clock_gettime.
16713         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16714         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16715         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16716         * sysdeps/unix/bsd/stty.c (stty): Likewise.
16717         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16718         tcgetattr.
16719         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16720         __clock_gettime and __nanosleep instead of clock_gettime and
16721         nanosleep.
16722         * hurd/catch-signal.c (hurd_catch_signal): Rename to
16723         __hurd_catch_signal.
16724         (hurd_catch_signal): New strong alias.
16725         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16726         __hurd_catch_signal instead of hurd_catch_signal.
16727         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16728         * hurd/hurdexec.c (_hurd_init): Add hidden def.
16729         * hurd/hurdinit.c (_hurd_init): Add hidden def.
16730         * hurd/hurdsig.c: Include <mach/mig_support.h>.
16731         (_hurd_thread_sigstate): Add hidden def.
16732         (_hurd_internal_post_signal): Use __mutex_unlock instead of
16733         mutex_unlock.
16734         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16735         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16736         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16737         __hurd_file_name_path_lookup.
16738         (hurd_file_name_path_lookup): New strong alias.
16739         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16740         hurd_file_name_path_lookup.
16741         * mach/errstring.c (mach_error_type): Add hidden def.
16742         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16743         * mach/mutex-init.c (__mutex_init): Add hidden def.
16744         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16745         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16746         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16747         * sysdeps/mach/hurd/getcwd.c
16748         (_hurd_canonicalize_directory_name_internal): Rename to
16749         __hurd_canonicalize_directory_name_internal.
16750         (_hurd_canonicalize_directory_name_internal): New strong alias.
16751         (__canonicalize_directory_name_internal, __getcwd): Call
16752         __hurd_canonicalize_directory_name_internal instead of
16753         _hurd_canonicalize_directory_name_internal.
16754         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16755         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16756         hidden defs.
16757         * sysdeps/hurd/include/hurd.h: New file.
16758         * sysdeps/hurd/include/hurd/fd.h: New file.
16759         * sysdeps/hurd/include/hurd/signal.h: New file.
16760         * sysdeps/mach/include/lock-intern.h: New file.
16761         * sysdeps/mach/include/mach.h: New file.
16762         * sysdeps/mach/include/mach/mig_support.h: New file.
16763         * sysdeps/mach/include/mach_error.h: New file.
16764         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16765         prototype.
16766         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16767         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16768         _HEADER_H_HIDDEN_DEF macro.
16769         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16770         _hurd_fd_error_signal): Add hidden prototype.
16771         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16772         hidden def.
16773         * libio/iolibio.h (_IO_puts): New hidden prototype.
16774         * libio/ioputs.c (_IO_puts): New hidden def.
16775         * sysdeps/mach/hurd/localplt.data: New file.
16776
16777 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
16778             Amos Jeffries  <squid3@treenet.co.nz>
16779             David Michael  <fedora.dm0@gmail.com>
16780             Marco Gerards  <marco@gnu.org>
16781             Marcus Brinkmann  <marcus@gnu.org>
16782             Neal H. Walfield  <neal@gnu.org>
16783             Pino Toscano  <toscano.pino@tiscali.it>
16784             Richard Braun  <rbraun@sceen.net>
16785             Roland McGrath  <roland@gnu.org>
16786             Samuel Thibault  <samuel.thibault@ens-lyon.org>
16787             Thomas DiModica  <ricinwich@yahoo.com>
16788             Thomas Schwinge  <tschwinge@gnu.org>
16789
16790         * htl: New directory.
16791         * sysdeps/htl: New directory.
16792         * sysdeps/hurd/htl: New directory.
16793         * sysdeps/i386/htl: New directory.
16794         * sysdeps/mach/htl: New directory.
16795         * sysdeps/mach/hurd/htl: New directory.
16796         * sysdeps/mach/hurd/i386/htl: New directory.
16797         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16798         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16799         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16800
16801 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16802
16803         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16804         signals in thread created for runing timers.
16805
16806 2018-04-01  Florian Weimer  <fweimer@redhat.com>
16807
16808         * support/support_format_addrinfo.c (support_format_addrinfo):
16809         Include unknown error number in formatted result.
16810
16811 2018-03-29  Florian Weimer  <fweimer@redhat.com>
16812
16813         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16814         capture SIGBUS.
16815
16816 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16817
16818         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16819         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16820         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16821         (__ASSUME_CLONE_BACKWARDS): Define.
16822
16823 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
16824
16825         [BZ #23024]
16826         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16827         early when linux sentinel value is set.
16828
16829 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16830
16831         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16832
16833 2018-03-27  Andreas Schwab  <schwab@suse.de>
16834
16835         [BZ #23005]
16836         * resolv/res_send.c (__res_context_send): Return ENOMEM if
16837         allocation of private copy of nsaddr_list fails.
16838
16839 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
16840
16841         [BZ #16552]
16842         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16843         * sysdeps/unix/sysv/linux/umount.c: ... here.
16844         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16845         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16846         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16847         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16849         * sysdeps/unix/sysv/linux/umount.S: Likewise.
16850         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16851
16852 2018-03-26  Andreas Schwab  <schwab@suse.de>
16853
16854         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16855         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16856         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16857         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16858         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16859         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16860         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16861         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16862         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16863         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16864         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16865         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16866         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16867         (R_RISCV_NUM): Define.
16868
16869 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16870
16871         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16872         TLS declaration of errno.
16873         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16874         __libc_setup_tls.
16875         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16876         (ARCH_SETUP_TLS): Likewise.
16877         * sysdeps/mach/hurd/libc-start.h: New file copied from
16878         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16879         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16880         instead of __libc_setup_tls.
16881         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16882         __libc_setup_tls before initializing libpthread and running _hurd_init
16883         which starts the signal thread.
16884         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16885         Declare function.
16886         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16887
16888 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
16889
16890         [BZ #22998]
16891         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16892         after it is defined.
16893
16894 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16895             Max Horn  <max@quendi.de>
16896
16897         [BZ #22644]
16898         CVE-2017-18269
16899         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16900         branch conditions.
16901         * string/test-memmove.c (do_test2): New testcase.
16902
16903 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
16904
16905         * sysdeps/generic/frame.h: Remove file.
16906         * sysdeps/arm/frame.h: Likewise.
16907         * sysdeps/hppa/frame.h: Likewise.
16908         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16909         macro.
16910         (GET_FRAME): Likewise.
16911         (GET_STACK): Likewise.
16912         (CALL_SIGHANDLER): Likewise.
16913         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16914         Likewise.
16915         (GET_FRAME): Likewise.
16916         (GET_STACK): Likewise.
16917         (CALL_SIGHANDLER): Likewise.
16918         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16919         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16920         (GET_FRAME): Likewise.
16921         (GET_STACK): Likewise.
16922         (CALL_SIGHANDLER): Likewise.
16923         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16924         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16925         (GET_FRAME): Likewise.
16926         (GET_STACK): Likewise.
16927         (ADVANCE_STACK_FRAME): Likewise.
16928         (CALL_SIGHANDLER): Likewise.
16929         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16930         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16931         (GET_FRAME): Likewise.
16932         (GET_STACK): Likewise.
16933         (CALL_SIGHANDLER): Likewise.
16934         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16935         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16936         (GET_FRAME): Likewise.
16937         (GET_STACK): Likewise.
16938         (CALL_SIGHANDLER): Likewise.
16939         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16940         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16941         (GET_FRAME): Likewise.
16942         (GET_STACK): Likewise.
16943         (CALL_SIGHANDLER): Likewise.
16944         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16945         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16946         (GET_FRAME): Likewise.
16947         (GET_STACK): Likewise.
16948         (CALL_SIGHANDLER): Likewise.
16949         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16950         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16951         (GET_FRAME): Likewise.
16952         (GET_STACK): Likewise.
16953         (CALL_SIGHANDLER): Likewise.
16954         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16955         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16956         (GET_FRAME): Likewise.
16957         (GET_STACK): Likewise.
16958         (CALL_SIGHANDLER): Likewise.
16959         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16960         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16961         (GET_FRAME): Likewise.
16962         (GET_STACK): Likewise.
16963         (CALL_SIGHANDLER): Likewise.
16964         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16965         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16966         (GET_FRAME): Likewise.
16967         (GET_STACK): Likewise.
16968         (CALL_SIGHANDLER): Likewise.
16969         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16970         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16971         (GET_FRAME): Likewise.
16972         (GET_STACK): Likewise.
16973         (CALL_SIGHANDLER): Likewise.
16974         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16975         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16976         (FIRST_FRAME_POINTER): Likewise.
16977         (ADVANCE_STACK_FRAME): Likewise.
16978         (GET_STACK): Likewise.
16979         (GET_FRAME): Likewise.
16980         (CALL_SIGHANDLER): Likewise.
16981         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16982         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16983         (ADVANCE_STACK_FRAME): Likewise.
16984         (GET_STACK): Likewise.
16985         (GET_FRAME): Likewise.
16986         (CALL_SIGHANDLER): Likewise.
16987         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16988         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16989         (GET_FRAME): Likewise.
16990         (GET_STACK): Likewise.
16991         (CALL_SIGHANDLER): Likewise.
16992         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16993         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16994         (GET_FRAME): Likewise.
16995         (GET_STACK): Likewise.
16996         (CALL_SIGHANDLER): Likewise.
16997
16998 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
16999
17000         * sysdeps/x86_64/backtrace.c: Move to ....
17001         * debug/backtrace.c: ... here.
17002         * sysdeps/aarch64/backtrace.c: Remove file.
17003         * sysdeps/alpha/backtrace.c: Likewise.
17004         * sysdeps/hppa/backtrace.c: Likewise.
17005         * sysdeps/ia64/backtrace.c: Likewise.
17006         * sysdeps/mips/backtrace.c: Likewise.
17007         * sysdeps/nios2/backtrace.c: Likewise.
17008         * sysdeps/riscv/backtrace.c: Likewise.
17009         * sysdeps/sh/backtrace.c: Likewise.
17010         * sysdeps/tile/backtrace.c: Likewise.
17011
17012 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17013
17014         [BZ #22987]
17015         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
17016         function.
17017         (fdimf): Likewise.
17018         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
17019
17020         [BZ #17343]
17021         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
17022         possibly overflowing computations.
17023
17024 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17025
17026         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
17027         values from Linux-specific section now that it is in the GNU section.
17028         * sysdeps/gnu/errlist.c: Regenerate.
17029
17030 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
17031
17032         * math/Makefile (libm-narrow-fns): Add sub.
17033         (libm-test-funcs-narrow): Likewise.
17034         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
17035         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
17036         * math/gen-auto-libm-tests.c (test_functions): Add sub.
17037         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
17038         (NARROW_SUB_ROUND_TO_ODD): Likewise.
17039         (NARROW_SUB_TRIVIAL): Likewise.
17040         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
17041         macro.
17042         (__dsubl): Likewise.
17043         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
17044         dsub.
17045         (CFLAGS-nldbl-dsub.c): New variable.
17046         (CFLAGS-nldbl-fsub.c): Likewise.
17047         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17048         __nldbl_dsubl.
17049         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
17050         prototype.
17051         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
17052         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
17053         * math/auto-libm-test-in: Add tests of sub.
17054         * math/auto-libm-test-out-narrow-sub: New generated file.
17055         * math/libm-test-narrow-sub.inc: New file.
17056         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17057         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
17058         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
17059         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
17060         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
17061         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
17062         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
17063         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
17064         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
17065         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
17066         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
17067         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
17068         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
17069         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
17070         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
17071         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
17072         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
17073         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
17074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17075         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17076         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17077         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17078         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17079         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17080         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17081         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17082         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17083         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17084         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17085         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17086         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17087         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17092         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17093         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17094         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17095         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17096         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17097         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17098         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17099         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17100         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17101         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17102
17103 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
17104
17105         [BZ #20079]
17106         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
17107
17108 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
17109
17110         * benchtests/bench-timing.h (attribute_hidden): Undefine.
17111
17112 2018-03-18  Richard Braun  <rbraun@sceen.net>
17113
17114         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
17115         thread reference.
17116
17117 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
17118
17119         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
17120         (__libc_cleanup_fct): Define function.
17121         (__libc_cleanup_region_start, __libc_cleanup_region_end,
17122         __libc_cleanup_end): Rewrite implementation using
17123         __attribute__ ((__cleanup__)).
17124         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
17125         * hurd/Makefile (routines): Add hurdlock.
17126         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
17127         interface.
17128         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
17129         * hurd/hurdpid.c: Include <lowlevellock.h>
17130         (_S_msg_proc_newids): Use lll_wait to synchronize.
17131         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
17132         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
17133         * mach/Makefile (lock-headers): Remove machine-lock.h.
17134         * mach/lock-intern.h: Include <lowlevellock.h> instead of
17135         <machine-lock.h>.
17136         (__spin_lock_t): New type.
17137         (__SPIN_LOCK_INITIALIZER): New macro.
17138         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
17139         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
17140         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
17141         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
17142         (__mutex_init): Initialize with lll.
17143         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
17144         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
17145         needing lll.
17146         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
17147         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
17148         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
17149         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
17150         (__setpgid): Use lll for synchronization.
17151         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
17152         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
17153         instead of <cthreads.h>.
17154         (_IO_lock_inexpensive): New macro
17155         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
17156         (__libc_lock_self0): New declaration.
17157         (__libc_lock_owner_self): New macro.
17158         (__libc_key_t): Remove type.
17159         (_LIBC_LOCK_INITIALIZER): New macro.
17160         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
17161         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
17162         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
17163         __libc_lock_define_initialized_recursive,
17164         __rtld_lock_define_initialized_recursive,
17165         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
17166         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
17167         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
17168         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
17169         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
17170         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
17171         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
17172         New macros.
17173         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
17174         * hurd/hurdlock.c: New file.
17175         * hurd/hurdlock.h: New file.
17176         * mach/lowlevellock.h: New file
17177
17178 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17179
17180         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
17181         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
17182         when opening a symlink with O_NOFOLLOW.
17183         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
17184         path when flags contains O_NOFOLLOW.
17185         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
17186         if flags contains O_DIRECTORY and the result is a directory.
17187         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
17188         oneself when the pointer given in D is nul (as set by ext2fs).
17189         * sysdeps/mach/hurd/mlockall.c: New file.
17190         * sysdeps/mach/hurd/munlockall.c: New file.
17191
17192 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17193
17194         * hurd/hurdsig.c: Include <pthread.h>.
17195         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
17196         get the signal thread stack layout.
17197         * hurd/Makefile (headers): Remove threadvar.h.
17198         (inline-headers): Remove threadvar.h.
17199         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
17200         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
17201         __hurd_threadvar_max, __hurd_errno_location.
17202         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
17203         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
17204         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
17205         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
17206         unless TLS is not initialized yet, in which case we do not need a
17207         critical section yet anyway.
17208         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
17209         <machine-sp.h>.
17210         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
17211         declarations.
17212         (__hurd_threadvar_index): Remove enum.
17213         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
17214         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
17215         inlines.
17216         (__hurd_reply_port0): New variable declaration.
17217         (__hurd_local_reply_port): New macro.
17218         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
17219         (interrupted_reply_port_location): Add thread_t parameter.  Use it
17220         with THREAD_TCB to access thread-local variables.
17221         (_hurdsig_abort_rpcs): Pass ss->thread to
17222         interrupted_reply_port_location.
17223         (_hurd_internal_post_signal): Likewise.
17224         (_hurdsig_init): Use presence of cthread_fork instead of
17225         __hurd_threadvar_stack_mask to start signal thread by hand.
17226         Remove signal thread threadvar initialization.
17227         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
17228         * hurd/sigunwind.c: Include <hurd/threadvar.h>
17229         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
17230         of threadvar.
17231         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
17232         __libc_lock_self0.
17233         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
17234         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
17235         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
17236         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
17237         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
17238         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
17239         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
17240         define variables.
17241         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
17242         <hurd/threadvar.h>.
17243         [IS_IN(rtld)] (rtld_errno): New variable.
17244         [IS_IN(rtld)] (__errno_location): New weak function.
17245         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
17246         * sysdeps/mach/hurd/errno.c: Remove file.
17247         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
17248         (__fork): Remove THREADVAR_SPACE macro and its use.
17249         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
17250         variable.
17251         (init): Do not initialize threadvar.
17252         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
17253         symbol.
17254         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
17255         __hurd_local_reply_port instead of threadvar.
17256         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
17257         _hurd_sigstate fields.
17258         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
17259         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
17260         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
17261         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
17262         instead of threadvar.
17263         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
17264         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
17265         (use_threadvar, global_reply_port): Remove variables.
17266         (__hurd_reply_port0): New variable.
17267         (__mig_get_reply_port): Use __hurd_local_reply_port and
17268         __hurd_reply_port0 instead of threadvar.
17269         (__mig_dealloc_reply_port): Likewise.
17270         (__mig_init): Do not initialize threadvar.
17271         * sysdeps/mach/hurd/profil.c: Fix comment.
17272         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
17273         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
17274         cthread_keycreate, cthread_getspecific, cthread_setspecific to
17275         __cthread_fork, __cthread_detach, __pthread_getattr_np,
17276         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
17277         __cthread_setspecific.
17278         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
17279         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
17280         __cthread_t instead of cthread_fork, cthread_detach,
17281         pthread_getattr_np, pthread_attr_getstack.
17282         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
17283         __cthread_keycreate.
17284         (cthread_getspecific): Rename to __cthread_getspecific.
17285         (cthread_setspecific): Rename to __cthread_setspecific.
17286         (__libc_getspecific): Use __cthread_getspecific instead of
17287         cthread_getspecific.
17288         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
17289         __cthread_keycreate instead of cthread_keycreate.
17290         (__libc_setspecific): Use __cthread_setspecific instead of
17291         cthread_setspecific.
17292         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
17293         Likewise.
17294         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
17295         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
17296         testing whether it is defined.
17297
17298 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17299
17300         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17301         Define macro.
17302         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17303         * sysdeps/mach/i386/thread_state.h
17304         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17305         i386_THREAD_STATE.
17306         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17307         i386_THREAD_STATE.
17308         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17309
17310         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17311         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17312
17313         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17314         macros.
17315         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17316         descriptor instead of creating a new one.
17317         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17318
17319         * mach/setup-thread.c: Include <ldsodefs.h>.
17320         (__mach_setup_thread): Call _dl_allocate_tls, pass
17321         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17322         MACHINE_THREAD_STATE_FLAVOR, before getting
17323         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17324         MACHINE_THREAD_STATE_FLAVOR with the result.
17325         * hurd/hurdfault.c (_hurdsig_fault_init): Call
17326         MACHINE_THREAD_STATE_FIX_NEW.
17327         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17328         too.  Add original thread parameter.
17329
17330 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
17331
17332         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17333         Remove inline function.
17334
17335         * sysdeps/i386/fpu/libm-test-ulps: Update.
17336         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17337
17338 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
17339
17340         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17341         commit.
17342
17343 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
17344
17345         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17346         (__sincos_code): Remove define and undefine.
17347         [__FAST_MATH__] (__sincos): Remove inline function.
17348         [__FAST_MATH__] (__sincosf): Remove inline function.
17349         [__FAST_MATH__] (__sincosl): Remove inline function.
17350         (__atan2l): Remove inline functions.
17351         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17352         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17353         function.
17354         (floor): Remove inline function.
17355         (ceil): Likewise.
17356         [__FAST_MATH__] (__ldexp_code): Remove macro.
17357         [__FAST_MATH__] (ldexp): Remove inline function.
17358         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17359         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17360         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17361         [__USE_ISOC99] (__lrint_code): Remove macro.
17362         [__USE_ISOC99] (__llrint_code): Likewise.
17363         [__USE_ISOC99] (lrintf): Remove inline function.
17364         [__USE_ISOC99] (lrint): Likewise.
17365         [__USE_ISOC99] (lrintl): Likewise.
17366         [__USE_ISOC99] (llrint): Likewise.
17367         [__USE_ISOC99] (llrintf): Likewise.
17368         [__USE_ISOC99] (llrintl): Likewise.
17369
17370 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17371
17372         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17373         (__ieee754_sqrtf): Remove.
17374         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17375         (__ieee754_sqrtf): Remove.
17376         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17377         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17378         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17379         (__ieee754_sqrtf): Remove.
17380         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17381         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17382         (sqrtf): Remove.
17383         (sqrtl): Remove.
17384         (__ieee754_sqrt): Remove.
17385         (__ieee754_sqrtf): Remove.
17386         (__ieee754_sqrtl): Remove.
17387         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17388         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17389         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17390         (__ieee754_sqrtf): Remove.
17391         (__ieee754_sqrtl): Remove.
17392
17393 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17394
17395         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17396         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17397         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17398         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17399         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17400         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17401         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17402         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17403         Likewise.
17404         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17405         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17406         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17407         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17408         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17409         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17410         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17411         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17412         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17413         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17414         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17415         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17416         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17417         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17418         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17419         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17420         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17421         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17422         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17423         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17424         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17425         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17426         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17427         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17429         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17430         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17431         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17432         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17433         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17434         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17435         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17436         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17437         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17438         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17439         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17440         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17441         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17442         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17443         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17444
17445 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17446
17447         * include/math.h (sqrt): Declare with asm redirect.
17448         (sqrtf): Likewise.
17449         (sqrtl): Likewise.
17450         (sqrtf128): Likewise.
17451         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17452         nonlib and libnldbl with -fmath-errno.
17453         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17454         * math/w_sqrt_template.c: Likewise.
17455         * math/w_sqrtf_compat.c: Likewise.
17456         * math/w_sqrtl_compat.c: Likewise.
17457         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17458         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17459         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17460         complex.h.
17461
17462 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17463
17464         * benchtests/Makefile: Define _ISOMAC.
17465         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17466         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17467         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17468         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17469         * benchtests/bench-timing.h: Define attribute_hidden.
17470
17471 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17472
17473         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17474         mov + lsr.
17475
17476 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17477
17478         [BZ #22963]
17479         * localedata/locales/cs_CZ (mon): Rename to...
17480         (alt_mon): This.
17481         (mon): Import from CLDR (genitive case).
17482
17483 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17484
17485         [BZ #22937]
17486         * localedata/locales/el_CY (abmon): Rename to...
17487         (ab_alt_mon): This.
17488         (abmon): Import from CLDR (abbreviated genitive case).
17489         * localedata/locales/el_GR (abmon): Rename to...
17490         (ab_alt_mon): This.
17491         (abmon): Import from CLDR (abbreviated genitive case).
17492
17493 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17494
17495         [BZ #22932]
17496         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17497
17498 2018-03-15  Robert Buj  <robert.buj@gmail.com>
17499
17500         [BZ #22848]
17501         * localedata/locales/ca_ES (abmon): Rename to...
17502         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17503         (mon): Rename to...
17504         (alt_mon): This.
17505         (abmon): Import from CLDR (genitive case, month names preceded by
17506         "de" or "d’").
17507         (mon): Likewise.
17508         (abday): Synchronize with CLDR.
17509         (d_t_fmt): Likewise.
17510         (d_fmt): Likewise.
17511         (am_pm): Likewise.
17512
17513         (LC_TIME): Improve indentation.
17514         (LC_TELEPHONE): Likewise.
17515         (LC_NAME): Likewise.
17516         (LC_ADDRESS): Likewise.
17517
17518 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
17519
17520         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17521         (lrintf): Remove definitions used only with old GCC.
17522         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17523         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17524         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17525         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17526         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17527         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17528         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17529         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17530         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17531         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17532         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17533         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17534         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17535         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17536         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17537         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17538         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17539         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17540         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17541         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17542         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17543         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17544         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17545         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17546         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17547         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17548         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17549         [__FAST_MATH__] (__M_SQRT2): Remove macro.
17550
17551 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17552
17553         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17554         instruction to unbreak builds with binutils 2.26 and older.
17555
17556 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17557
17558         * sysdeps/aarch64/strncmp.S (count): New macro.
17559         (strncmp): Store misaligned length in SRC1 in COUNT.
17560         (mutual_align): Adjust.
17561         (misaligned8): Load dword at a time when it is safe.
17562
17563 2018-03-12  Zack Weinberg  <zackw@panix.com>
17564
17565         [BZ #1190]
17566         [BZ #19476]
17567         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17568         if the _IO_EOF_SEEN bit is already set; update commentary.
17569         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17570         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17571
17572         * support/support_openpty.c, support/tty.h: New files.
17573         * support/Makefile (libsupport-routines): Add support_openpty.
17574
17575         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17576         New test cases.
17577         * libio/Makefile (tests): Add tst-fgetc-after-eof.
17578         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17579
17580 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
17581
17582         * po/pt_BR.po: Update translations.
17583
17584 2018-03-12  David Michael  <fedora.dm0@gmail.com>
17585
17586         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17587         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17588         get a port to the startup server.
17589
17590 2018-03-11  Zack Weinberg  <zackw@panix.com>
17591
17592         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17593         before nldbl-compat.h.
17594
17595 2018-03-10  Zack Weinberg  <zackw@panix.com>
17596
17597         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17598         math.h or math_private.h.
17599
17600         * sysdeps/alpha/fpu/s_isnan.c
17601         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17602         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17603         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17604         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17605         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17606         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17607         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17608         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17609         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17612         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17613         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17614         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17615         Include math_private.h.
17616
17617         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17618         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17619         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17620         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17621         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17622         * sysdeps/powerpc/power7/fpu/s_logb.c:
17623         Include math.h and math_private.h.
17624
17625         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17626         uses of $at in .set noat / .set at.
17627
17628 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
17629
17630         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17631         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17632         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17633         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17634         Likewise.
17635
17636 2018-03-09  Florian Weimer  <fweimer@redhat.com>
17637
17638         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17639         in comment.
17640
17641 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17642
17643         [BZ #22919]
17644         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17645         Add nop before __startcontext, add explaining comments.
17646
17647 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17648
17649         [BZ #22926]
17650         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17651         empty for __SPE__.
17652         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17653         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17654         Do not build hardware transactional code for __SPE__.
17655         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17656         (__lll_trylock_elision): Likewise.
17657         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17658         (__lll_unlock_elision): Likewise.
17659
17660         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17661         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17662         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17663         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17664         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17665         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17666         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17667         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17668         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17669         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17670         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17671         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17672         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17673         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17674         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17675         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17676         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17677         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17678         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17679         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17680         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17681         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17682         (__ASSUME_CLONE_BACKWARDS): Define.
17683         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17684         __clone2 if __NR_clone2 is defined.
17685         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17686         (__ASSUME_CLONE_BACKWARDS): Likewise.
17687         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17688         (__ASSUME_CLONE_BACKWARDS): Likewise.
17689         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17690         (__ASSUME_CLONE2): Likewise.
17691         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17692         (__ASSUME_CLONE_BACKWARDS3): Likewise.
17693         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17694         variants and the define architecture can use.
17695         (__ASSUME_CLONE_DEFAULT): Define as default.
17696         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17697         (__ASSUME_CLONE_BACKWARDS): Likewise.
17698         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17699         (__ASSUME_CLONE_BACKWARDS): Likewise.
17700         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17701         (__ASSUME_CLONE_BACKWARDS2): Likewise.
17702
17703 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17704
17705         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17706
17707         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17708         time.
17709
17710         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17711         (do_test_limit): Likewise.
17712
17713         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17714         for every implementation.
17715         (do_test): Likewise.
17716
17717         * benchtests/bench-strncmp.c: Convert output to json.
17718
17719 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17720
17721         * io/futimens.c: Add missing start-of-file descriptive comment.
17722         * io/utime.c: Likewise.
17723         * misc/futimesat.c: Likewise.
17724         * misc/utimes.c: Likewise.
17725         * sysdeps/mach/hurd/futimesat.c: Likewise.
17726         * sysdeps/mach/hurd/utimes.c: Likewise.
17727         * sysdeps/posix/utime.c: Likewise.
17728         * sysdeps/posix/utimes.c: Likewise.
17729         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17730         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17731         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17732         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17733
17734 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17735
17736         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17737         hurd_futimes.
17738         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17739         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17740         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17741         (__futimens): Move implementation to...
17742         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17743         utime_tvalue_from_tspec): ... new helper functions.
17744         (hurd_futimens): New function.
17745         * sysdeps/mach/hurd/futimesat.c: New file.
17746         * sysdeps/mach/hurd/utimensat.c: New file.
17747
17748 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
17749
17750         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17751         UTIME_OMIT): New macros.
17752         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17753         before reverting to converting time spec to time value and calling
17754         __file_utimes.
17755         * sysdeps/mach/hurd/utime-helper.c: New file.
17756         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17757         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17758         reverting to utime_tvalue_from_tval and __file_utimes.
17759         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17760         (__lutimes): Just call hurd_futimens after lookup.
17761         * sysdeps/mach/hurd/utimes.c: Likewise.
17762
17763 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17764
17765         * bits/sigaction.h: Add include guard.
17766         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17767         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17768         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17769         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17770         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17771         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17772         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17773         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17774         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17775
17776 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
17777
17778         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17779         -Wmaybe-uninitialized for -Os.
17780         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17781         this disabling.
17782
17783 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17784
17785         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17786         __INO_T_MATCHES_INO64_T is defined.
17787         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17788         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17789         of definition.
17790         * dirent/alphasort64.c: Likewise.
17791         * dirent/scandir.c: Likewise.
17792         * dirent/scandir64-tail.c: Likewise.
17793         * dirent/scandir64.c: Likewise.
17794         * dirent/scandirat.c: Likewise.
17795         * dirent/scandirat64.c: Likewise.
17796         * dirent/versionsort.c: Likewise.
17797         * dirent/versionsort64.c: Likewise.
17798         * include/dirent.h: Likewise.
17799
17800         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17801         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17802         for socketpair endpoint.
17803         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17804         WRITE_BUFFER_SIZE as buffer size for sending socket.
17805         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17806         issue on system where send is implemented with sendto syscall.
17807         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17808         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17809         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17810         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17811
17812         [BZ #21269]
17813         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17814         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17815         sa_restorer for vDSO case.
17816         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17817
17818 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17819
17820         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17821         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17822         * hurd/hurd/ioctl.h: Include <mach/port.h>
17823         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17824         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17825         <mach/mach_types.h> and <mach/message.h>.
17826         (headers): Move mach/param.h to bits/mach/param.h.
17827         * sysdeps/mach/i386/mach/param.h: Move file to ...
17828         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
17829         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17830         of <mach/param.h>.
17831         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17832         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17833         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17834         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17835         trivial, for C++ conformity.
17836         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17837         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17838         Process mig output through $(migheadersed).
17839         * hurd/Makefile (migheadersed): Define variable.
17840         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17841         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17842         headers.
17843         * hurd/hurd.h: Include <bits/types/sigset_t.h>
17844         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17845         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17846         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17847         <bits/types/sigset_t.h>.
17848         [!defined __USE_GNU]: Do not #error out.
17849         (struct hurd_sigstate): Use _NSIG instead of NSIG.
17850         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17851         Include <stddef.h> and <bits/types/sigset_t.h>
17852         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17853         instead of sighandler_t.
17854         * stdlib/errno.h (error_t): Move definition to...
17855         * bits/types/error_t.h: ... new header.
17856         * stdlib/Makefile (headers): Add bits/types/error_t.h.
17857         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17858         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17859         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17860         * hurd/hurd.h: Include <bits/types/error_t.h>
17861         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17862         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17863         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17864         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17865         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17866         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17867         * sysdeps/mach/hurd/futimens.c: New file.
17868
17869 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17870
17871         [BZ #22918]
17872         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17873         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17874         * nscd/gai.c (__nss_hosts_database): Readd definition.
17875         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17876         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17877         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17878
17879 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
17880
17881         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17882         (ifunc_one): Likewise.
17883
17884 2018-03-01  DJ Delorie  <dj@delorie.com>
17885
17886         [BZ #22342]
17887         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17888         key value.
17889
17890 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
17891
17892         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17893         `match_pid' parameter.
17894         (td_ta_thr_iter): Update accordingly.
17895
17896 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17897
17898         * nptl/Makefile (install-lib-ldscripts): Remove.
17899         (install): Remove rule.
17900         ($(inst_libdir)/libpthread.so): Likewise.
17901
17902 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17903
17904         [BZ #22896]
17905         * localedata/locales/an_ES: update month and day names,
17906         improve d_fmt, improve postal_fmt, add country_post,
17907         add country_isbn
17908
17909 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17910
17911         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17912         Ukrainian instead of Bulgarian.
17913
17914 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17915
17916         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17917         reference.
17918
17919 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17920
17921         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
17922         * nptl/Makefile (routines): Add pthread_atfork.
17923         (static-only-routines): Set to pthread_atfork.
17924         (libpthread-routines): Remove pthread_atfork.
17925         (libpthread-static-only-routines): Remove.
17926         (install): Update comment.
17927         (libpthread.so): Do not install libpthread_nonshared.a.
17928         (tests): Do not link with libpthread_nonshared.a.
17929         (generated): Remove libpthread_nonshared.a.
17930         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17931         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17932         with libpthread_nonshared.a.
17933
17934 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
17935
17936         [BZ #22902]
17937         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17938         (libc_feholdexcept_setroundf128): New macro.
17939         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17940
17941         [BZ #15105]
17942         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17943         libc_hidden_def.
17944         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17945         * include/inttypes.h: New file.
17946
17947 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
17948
17949         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17950         -Os in two more places.
17951
17952 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17953
17954         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17955         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17956         be sorted correctly at the moment because of a bug.
17957
17958 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17959
17960         [BZ #22550] - es_ES locale (and other es_* locales): collation should
17961         treat ñ as a primary different character, sync the collation
17962         for Spanish with CLDR.
17963         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17964         * localedata/Makefile: Add new test files.
17965         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17966         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17967         collation order.
17968         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17969         * localedata/am_ET.UTF-8.in: New test file.
17970         * localedata/az_AZ.UTF-8.in: Likewise.
17971         * localedata/be_BY.UTF-8.in: Likewise.
17972         * localedata/ber_DZ.UTF-8.in: Likewise.
17973         * localedata/ber_MA.UTF-8.in: Likewise.
17974         * localedata/bg_BG.UTF-8.in: Likewise.
17975         * localedata/br_FR.UTF-8.in: Likewise.
17976         * localedata/cmn_TW.UTF-8.in: Likewise.
17977         * localedata/crh_UA.UTF-8.in: Likewise.
17978         * localedata/csb_PL.UTF-8.in: Likewise.
17979         * localedata/cv_RU.UTF-8.in: Likewise.
17980         * localedata/cy_GB.UTF-8.in: Likewise.
17981         * localedata/dz_BT.UTF-8.in: Likewise.
17982         * localedata/eo.UTF-8.in: Likewise.
17983         * localedata/es_ES.UTF-8.in: Likewise.
17984         * localedata/fa_IR.UTF-8.in: Likewise.
17985         * localedata/fi_FI.UTF-8.in: Likewise.
17986         * localedata/fil_PH.UTF-8.in: Likewise.
17987         * localedata/fur_IT.UTF-8.in: Likewise.
17988         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17989         * localedata/ha_NG.UTF-8.in: Likewise.
17990         * localedata/ig_NG.UTF-8.in: Likewise.
17991         * localedata/ik_CA.UTF-8.in: Likewise.
17992         * localedata/kk_KZ.UTF-8.in: Likewise.
17993         * localedata/ku_TR.UTF-8.in: Likewise.
17994         * localedata/ky_KG.UTF-8.in: Likewise.
17995         * localedata/ln_CD.UTF-8.in: Likewise.
17996         * localedata/mi_NZ.UTF-8.in: Likewise.
17997         * localedata/ml_IN.UTF-8.in: Likewise.
17998         * localedata/mn_MN.UTF-8.in: Likewise.
17999         * localedata/mr_IN.UTF-8.in: Likewise.
18000         * localedata/mt_MT.UTF-8.in: Likewise.
18001         * localedata/nb_NO.UTF-8.in: Likewise.
18002         * localedata/om_KE.UTF-8.in: Likewise.
18003         * localedata/os_RU.UTF-8.in: Likewise.
18004         * localedata/ps_AF.UTF-8.in: Likewise.
18005         * localedata/ro_RO.UTF-8.in: Likewise.
18006         * localedata/ru_RU.UTF-8.in: Likewise.
18007         * localedata/sc_IT.UTF-8.in: Likewise.
18008         * localedata/se_NO.UTF-8.in: Likewise.
18009         * localedata/sq_AL.UTF-8.in: Likewise.
18010         * localedata/sv_SE.UTF-8.in: Likewise.
18011         * localedata/szl_PL.UTF-8.in: Likewise.
18012         * localedata/tg_TJ.UTF-8.in: Likewise.
18013         * localedata/tk_TM.UTF-8.in: Likewise.
18014         * localedata/tt_RU.UTF-8.in: Likewise.
18015         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
18016         * localedata/ug_CN.UTF-8.in: Likewise.
18017         * localedata/uz_UZ.UTF-8.in: Likewise.
18018         * localedata/vi_VN.UTF-8.in: Likewise.
18019         * localedata/yi_US.UTF-8.in: Likewise.
18020         * localedata/yo_NG.UTF-8.in: Likewise.
18021         * localedata/zh_CN.UTF-8.in: Likewise.
18022         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
18023         file and fix bugs in the collation.
18024         * localedata/locales/az_AZ: Likewise.
18025         * localedata/locales/be_BY: Likewise.
18026         * localedata/locales/ber_DZ: Likewise.
18027         * localedata/locales/ber_MA: Likewise.
18028         * localedata/locales/bg_BG: Likewise.
18029         * localedata/locales/br_FR: Likewise.
18030         * localedata/locales/br_FR@euro: Likewise.
18031         * localedata/locales/ca_ES: Likewise.
18032         * localedata/locales/cns11643_stroke: Likewise.
18033         * localedata/locales/crh_UA: Likewise.
18034         * localedata/locales/cs_CZ: Likewise.
18035         * localedata/locales/csb_PL: Likewise.
18036         * localedata/locales/cv_RU: Likewise.
18037         * localedata/locales/cy_GB: Likewise.
18038         * localedata/locales/da_DK: Likewise.
18039         * localedata/locales/dz_BT: Likewise.
18040         * localedata/locales/en_CA: Likewise.
18041         * localedata/locales/eo: Likewise.
18042         * localedata/locales/es_CU: Likewise.
18043         * localedata/locales/es_EC: Likewise.
18044         * localedata/locales/es_ES: Likewise.
18045         * localedata/locales/es_US: Likewise.
18046         * localedata/locales/et_EE: Likewise.
18047         * localedata/locales/fa_IR: Likewise.
18048         * localedata/locales/fi_FI: Likewise.
18049         * localedata/locales/fil_PH: Likewise.
18050         * localedata/locales/fur_IT: Likewise.
18051         * localedata/locales/gez_ER@abegede: Likewise.
18052         * localedata/locales/ha_NG: Likewise.
18053         * localedata/locales/hr_HR: Likewise.
18054         * localedata/locales/hsb_DE: Likewise.
18055         * localedata/locales/hu_HU: Likewise.
18056         * localedata/locales/ig_NG: Likewise.
18057         * localedata/locales/ik_CA: Likewise.
18058         * localedata/locales/is_IS: Likewise.
18059         * localedata/locales/iso14651_t1_pinyin: Likewise.
18060         * localedata/locales/kk_KZ: Likewise.
18061         * localedata/locales/ku_TR: Likewise.
18062         * localedata/locales/ky_KG: Likewise.
18063         * localedata/locales/ln_CD: Likewise.
18064         * localedata/locales/lt_LT: Likewise.
18065         * localedata/locales/lv_LV: Likewise.
18066         * localedata/locales/mi_NZ: Likewise.
18067         * localedata/locales/ml_IN: Likewise.
18068         * localedata/locales/mn_MN: Likewise.
18069         * localedata/locales/mr_IN: Likewise.
18070         * localedata/locales/mt_MT: Likewise.
18071         * localedata/locales/nb_NO: Likewise.
18072         * localedata/locales/om_KE: Likewise.
18073         * localedata/locales/os_RU: Likewise.
18074         * localedata/locales/pl_PL: Likewise.
18075         * localedata/locales/ps_AF: Likewise.
18076         * localedata/locales/ro_RO: Likewise.
18077         * localedata/locales/ru_RU: Likewise.
18078         * localedata/locales/ru_UA: Likewise.
18079         * localedata/locales/sc_IT: Likewise.
18080         * localedata/locales/se_NO: Likewise.
18081         * localedata/locales/si_LK: Likewise.
18082         * localedata/locales/sq_AL: Likewise.
18083         * localedata/locales/sv_FI: Likewise.
18084         * localedata/locales/sv_FI@euro: Likewise.
18085         * localedata/locales/sv_SE: Likewise.
18086         * localedata/locales/szl_PL: Likewise.
18087         * localedata/locales/tg_TJ: Likewise.
18088         * localedata/locales/ti_ER: Likewise.
18089         * localedata/locales/tk_TM: Likewise.
18090         * localedata/locales/tl_PH: Likewise.
18091         * localedata/locales/tr_TR: Likewise.
18092         * localedata/locales/tt_RU: Likewise.
18093         * localedata/locales/tt_RU@iqtelif: Likewise.
18094         * localedata/locales/ug_CN: Likewise.
18095         * localedata/locales/uk_UA: Likewise.
18096         * localedata/locales/uz_UZ: Likewise.
18097         * localedata/locales/uz_UZ@cyrillic: Likewise.
18098         * localedata/locales/vi_VN: Likewise.
18099         * localedata/locales/yi_US: Likewise.
18100         * localedata/locales/yo_NG: Likewise.
18101
18102 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18103
18104         * gen-locales.mk: Make test files which contain @ modifiers in their
18105         name work.
18106         * localedata/gen-locale.sh: Likewise.
18107
18108 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18109
18110         * posix/tst-fnmatch.input: Fix results for range expressions
18111         for non C locales.
18112         * posix/tst-regexloc.c: Do not use a range expression for
18113         de_DE.ISO-8859-1 locale.
18114
18115 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18116
18117         * posix/bug-regex5.c: Fix test case because with the new
18118         iso14651_t1_common file, the da_DK locale now has 6 collating elements
18119         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
18120         file.
18121
18122 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18123
18124         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
18125         downloaded from ISO, the collation order of @-. and space has changed.
18126         Therefore, this test file needed to be adapted.
18127         * localedata/fr_CA.UTF-8.in: Likewise.
18128         * localedata/fr_FR.UTF-8.in: Likewise.
18129         * localedata/uk_UA.UTF-8.in: Likewise.
18130
18131 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18132
18133         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
18134         order of ȥ in the new iso14651_t1_common file.
18135         * localedata/pl_PL.UTF-8.in: Likewise.
18136
18137 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18138
18139         * localedata/locales/iso14651_t1_common: Add sections for various
18140         scripts to the iso14651_t1_common file.
18141
18142 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18143
18144         * localedata/locales/iso14651_t1_common: Use the code point of a
18145         character in the fourth collation level instead of IGNORE for all
18146         entries which have IGNORE on all 4 levels.
18147
18148 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18149
18150         * localedata/locales/iso14651_t1_common: Add some convenient collation
18151         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
18152         rules similar to those in CLDR.
18153
18154 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18155
18156         * localedata/locales/iso14651_t1_common: The new version of this
18157         file downloaded from ISO contained several syntax errors which
18158         are fixed by this patch.
18159
18160 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18161
18162         * localedata/locales/iso14651_t1_common: replace all <U.....>
18163         with <U000.....> because glibc understands only 4 digit or 8 digit
18164
18165 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18166
18167         * localedata/locales/iso14651_t1_common: Necessary changes
18168         to make the file downloaded from ISO usable by glibc.
18169
18170 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
18171
18172         [BZ #14095]
18173         * localedata/locales/iso14651_t1_common: Update file to
18174         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
18175
18176 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18177
18178         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
18179         of <nptl/pthreadP.h>
18180         (thread_attr_compare): Move function to...
18181         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
18182         * sysdeps/nptl/timer_routines.h: ... new header.
18183         * sysdeps/mach/hurd/gai_misc.h: New file.
18184
18185 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
18186
18187         * string/strcoll_l.c: Include <libc-diag.h>.
18188         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
18189         declarations of seq1 and seq2.
18190
18191         [BZ #15105]
18192         * stdlib/atoi.c (atoi): Use libc_hidden_def.
18193         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
18194
18195 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
18196
18197         [BZ #22433]
18198         [BZ #22807]
18199         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
18200         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
18201         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
18202         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
18203         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
18204         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
18205
18206 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18207
18208         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
18209         macros used in __ptrace_request.
18210
18211 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
18212
18213         [BZ #22792]
18214         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
18215         to $(CC).
18216         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
18217         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
18218         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
18219         <tcb-offsets.h>.
18220
18221 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
18222
18223         [BZ #15105]
18224         * ctype/ctype.c (tolower): Use libc_hidden_def.
18225         (toupper): Likewise.
18226         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
18227         [!_ISOMAC] (toupper): Likewise.
18228
18229 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18230
18231         * localedata/Makefile: Remove --quiet argument when
18232         installing locales
18233
18234 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18235
18236         [BZ #17438]
18237         * localedata/locales/pt_BR (LC_TIME): use / instead of -
18238         in d_fmt.
18239         * localedata/locales/pt_PT (LC_TIME): likewise
18240
18241 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
18242
18243         [BZ #22646]
18244         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
18245         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
18246         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
18247
18248 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18249
18250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18251
18252         * nptl/Makefile (routines): Remove unregister-atfork.
18253         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
18254         (fork_handler_alloc): Remove function.
18255         (fork_handlers, fork_handler_init): New variables.
18256         (__fork_lock): Rename to atfork_lock.
18257         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
18258         to use a dynamic array to add/remove atfork handlers.
18259         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18260         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
18261         Remove declaration.
18262         (fork_handler): Remove next, refcntr, and need_signal member.
18263         (__run_fork_handler_type): New enum.
18264         (__run_fork_handlers): New prototype.
18265         * nptl/register-atfork.c: Remove file.
18266         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
18267
18268         * sysdeps/nptl/nptl-signals.h: Move to ...
18269         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
18270         comments.
18271         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
18272         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
18273         unnecessary check for SIGTIMER.
18274         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
18275         remove unnecessary removal of SIGTIMER.
18276         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
18277         include-signals.h rename.
18278         * nptl/pthreadP.h: Likewise.
18279         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
18280         __is_internal_signal instead of __nptl_is_internal_signal.
18281
18282 2018-02-22  Andrew Waterman  <andrew@sifive.com>
18283
18284         [BZ # 22884]
18285         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
18286         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
18287         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
18288         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
18289
18290 2018-02-22  DJ Delorie  <dj@delorie.com>
18291
18292         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
18293
18294 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18295
18296         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
18297         do_misaligned, not misaligned8.
18298
18299 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
18300
18301         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18302         Add memcpy_thunderx2.
18303         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18304         Increment to 4.
18305         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18306         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18307         and IS_THUNDERX2PA checks.
18308         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18309         Use macro to set name appropriately.
18310         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18311         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18312         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18313         New macro.
18314         (IS_THUNDERX2): New macro.
18315
18316 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18317
18318         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18319
18320 2018-02-21  Zack Weinberg  <zackw@panix.com>
18321
18322         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18323         Define here, unconditionally.
18324         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18325         * libio/libioP.h: Remove #if 0 blocks.
18326         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18327         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18328         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
18329
18330         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18331         Assume weak_alias is always defined.
18332
18333         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18334         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18335         Remove #if 0 and #ifdef TODO blocks.
18336         Assume text_set_element is always defined.
18337
18338         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18339         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18340         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18341
18342         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18343         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18344         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18345         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18346         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18347         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18348         Reformat bit flags for _flags field to make occupancy clearer.
18349         Update commentary.
18350         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18351         Keep definitions consistent with those in libio/libio.h.
18352
18353         * libio/libio.h (_IO_file_flags): Remove macro.
18354         All uses changed to _flags.
18355
18356         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18357         (__HAVE_COLUMN, _IO_BE): Don't define.
18358         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18359         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18360         * libio/libioP.h (EOF): Don't define.
18361         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18362         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18363         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18364         testing _IO_UNIFIED_JUMPTABLES.
18365
18366         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18367         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18368         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18369         (_IO_size_t): Delete; all uses changed to size_t.
18370         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18371         (_IO_off_t): Delete; all uses changed to off_t.
18372         (_IO_off64_t): Delete; all uses changed to off64_t.
18373         (_IO_pid_t): Delete; all uses changed to pid_t.
18374         (_IO_uid_t): Delete; all uses changed to uid_t.
18375         (_IO_wint_t): Delete; all uses changed to wint_t.
18376         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18377         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18378         (_IO_cookie_io_functions_t): Delete; all uses changed to
18379         cookie_io_functions_t.
18380         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18381         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18382         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18383         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18384
18385         * libio/iofopncook.c: Remove unnecessary forward declarations.
18386         * libio/iolibio.h: Correct outdated commentary.
18387         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18388         * stdio-common/fxprintf.c (__fxprintf_nocancel):
18389         Remove unnecessary casts.
18390         * stdio-common/getline.c: Use _IO_getdelim directly.
18391         Don't redefine ssize_t.
18392         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18393         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18394         Remove outdated comments.
18395         * stdio-common/vfscanf.c: Don't redefine va_list.
18396
18397         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18398         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18399         Remove preprocessor conditionals on _LIBC and __USE_GNU,
18400         which are always true, and __cplusplus, which is always false.
18401
18402 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
18403
18404         [BZ #15105]
18405         [BZ #19463]
18406         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18407         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18408         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
18409         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18410         libc_hidden_proto.
18411         [!_ISOMAC] (putc_unlocked): Likewise.
18412         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18413         define inline if [__USE_EXTERN_INLINES].
18414         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18415         putc_unlocked.
18416
18417         [BZ #15105]
18418         [BZ #19463]
18419         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18420         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18421         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18422         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18423         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18424         getc_unlocked.
18425         * time/tzfile.c (__tzfile_read): Likewise.
18426
18427 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
18428
18429         [BZ #22517]
18430         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18431
18432 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18433
18434         * io/fcntl.h: Fix a typo in a comment.
18435
18436 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18437
18438         [BZ #22862]
18439         * include/features.h: Add _ISOC11_SOURCE to test for whether to
18440         define _DEFAULT_SOURCE.
18441         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18442
18443 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18444
18445         [BZ #20890]
18446         * elf/cache.c (save_cache): Call fsync on temporary file before
18447         renaming it.
18448         (save_aux_cache): Call fdatasync on temporary file before renaming
18449         it.
18450
18451 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18452
18453         [BZ #22787]
18454         * include/caller.h: Remove file.
18455         * elf/dl-caller.c: Likewise.
18456         * elf/Makefile (dl-routines): Remove dl-caller.
18457         (shared-only-routines): Do not add dl-caller.
18458         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18459         __check_caller.
18460         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18461         member.
18462         (dl_open_worker): Do not call __check_caller.
18463         (_dl_open): Do not set caller_dl_open member.
18464         * elf/rtld.c (_rtld_global_ro): Do not initialize
18465         _dl_check_caller member.
18466         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18467         _dl_check_caller member.
18468         (_dl_check_caller): Remove declaration.
18469         * sysdeps/unix/sysv/linux/dl-execstack.c
18470         (_dl_make_stack_executable): Do not call __check_caller.
18471
18472 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18473
18474         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18475         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18476
18477 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18478
18479         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18480         description.
18481
18482 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18483
18484         [BZ #16335]
18485         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18486         of 199606L, 200112L, and 200809L.
18487         (_XOPEN_SOURCE): Document special values of 600 and 700.
18488         (_ISOC11_SOURCE): Document macro.
18489         (_ATFILE_SOURCE): Likewise.
18490         (_FORTIFY_SOURCE): Likewise.
18491
18492 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
18493
18494         [BZ #15105]
18495         [BZ #19463]
18496         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18497         and define as weak alias of __ferror_unlocked.  Use
18498         libc_hidden_weak.
18499         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18500         libc_hidden_proto.
18501         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18502         function if [__USE_EXTERN_INLINES].
18503         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18504         ferror_unlocked.
18505
18506 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
18507
18508         [BZ #6889]
18509         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18510
18511 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18512
18513         [BZ #22818]
18514         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18515         the GLIBC_2.1 version.
18516
18517 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18518
18519         [BZ #21508]
18520         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18521         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18522         intl/tst-gettext-de.po from po/de.po by removing the
18523         POT-Creation-Date line.
18524         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18525         ../po/de.po.
18526         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18527         ../po/de.po.
18528
18529 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18530
18531         * mach/Makefile (headers): Add mach/param.h.
18532         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18533         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18534         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18535         (__ptsname_r): Move implementation to...
18536         (__ptsname_internal): ... new function.  Add filling the STP
18537         structure.
18538
18539 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
18540
18541         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18542         idouble to 1 ULP.
18543
18544 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
18545
18546         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18547         syntax.
18548
18549 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
18550
18551         * nptl/Makefile (tst-mutex8-ENV): Delete.
18552         * nptl/tst-mutex8.c (check_type):
18553         Add runtime check if mutex will be elided.
18554
18555 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
18556
18557         [BZ #20980]
18558         [BZ #21234]
18559         * manual/install.texi (Configuring and compiling): Describe
18560         passing CC and CFLAGS on configure command line, not as
18561         environment variables.  Use @code markup on those variables.
18562         Specify what options go in CC and what go in CFLAGS.  Note the
18563         requirement to compile with optimization.
18564         * INSTALL: Regenerated.
18565
18566         [BZ #18124]
18567         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18568         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18569         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18570         __sigprocmask instead of sigprocmask.
18571         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18572         Likewise.
18573         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18574         __sigsetjmp and sigprocmask.
18575
18576         [BZ #15105]
18577         * include/argz.h (argz_next): Use libc_hidden_proto.
18578         (__argz_next): Likewise.
18579         * string-argz-next.c (__argz_next): Use libc_hidden_def.
18580         (argz_next): Use libc_hidden_weak.
18581
18582         [BZ #15105]
18583         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18584         libc_hidden_proto.
18585         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18586         libc_hidden_def.
18587
18588         [BZ #15105]
18589         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18590         libc_hidden_proto.
18591         * libio/iofputs.c (fputs): Use libc_hidden_weak.
18592
18593         [BZ #15105]
18594         [BZ #19463]
18595         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18596         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
18597         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18598         (__feof_unlocked): New declaration, and inline function if
18599         [__USE_EXTERN_INLINES].
18600         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18601         instead of feof_unlocked.
18602         * intl/localealias.c [_LIBC] (FEOF): Likewise.
18603         * nss/nsswitch.c (nss_parse_file): Likewise.
18604         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18605         Likewise.
18606         * time/getdate.c (__getdate_r): Likewise.
18607         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18608         Define as macro to call __feof_unlocked.
18609
18610 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18611
18612         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18613
18614 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18615
18616         * math/Makefile: Remove mpexp.c and mplog.c
18617         * sysdeps/i386/fpu/mpexp.c: Delete file.
18618         * sysdeps/i386/fpu/mplog.c: Likewise.
18619         * sysdeps/ia64/fpu/mpexp.c: Likewise.
18620         * sysdeps/ia64/fpu/mplog.c: Likewise.
18621         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18622         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18623         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18624         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18625         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18626         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18627         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18628         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18629         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18630         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18631         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18632         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18633         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18634         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18635         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18636         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18637
18638 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18639
18640         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18641
18642 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18643
18644         * sysdeps/sh/libm-test-ulps: Update.
18645
18646 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18647
18648         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18649         idouble to 1 ULP.
18650
18651 2018-02-12  Zack Weinberg  <zackw@panix.com>
18652
18653         [BZ #19239]
18654         * posix/sys/types.h: Don't include sys/sysmacros.h.
18655         * misc/sys/sysmacros.h: Remove the conditional deprecation
18656         warnings for the macros defined by this header.
18657
18658 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18659
18660         * manual/probes.texi: Remove slowexp probes.
18661         * math/Makefile: Remove slowexp.
18662         * sysdeps/generic/math_private.h (__slowexp): Remove.
18663         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18664         document error bounds.
18665         * sysdeps/i386/fpu/slowexp.c: Remove.
18666         * sysdeps/ia64/fpu/slowexp.c: Remove.
18667         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18668         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18669         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18670         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18671         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18672         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18673         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18674         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18675         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18676         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18677         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18678
18679 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
18680
18681         [BZ #13932]
18682         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18683         * benchtests/pow-inputs: Update comment for slow path cases.
18684         * manual/probes.texi (slowpow_p10): Delete removed probe.
18685         (slowpow_p10): Likewise.
18686         * math/Makefile: Remove halfulp.c and slowpow.c.
18687         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18688         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18689         (__halfulp): Remove.
18690         (__slowpow): Remove.
18691         * sysdeps/i386/fpu/halfulp.c: Delete file.
18692         * sysdeps/i386/fpu/slowpow.c: Likewise.
18693         * sysdeps/ia64/fpu/halfulp.c: Likewise.
18694         * sysdeps/ia64/fpu/slowpow.c: Likewise.
18695         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18696         improve comments and add error analysis.
18697         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18698         (power1): Remove function:
18699         (log1): Remove error argument, add error analysis.
18700         (my_log2): Remove function.
18701         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18702         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18703         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18704         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18705         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18706         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18707         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18708         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18709         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18710         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18711         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18712         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18713         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18714         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18715
18716 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18717
18718         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18719         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18720
18721 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
18722
18723         [BZ #22433]
18724         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18725         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18726         and PTRACE_SETHBPREGS.
18727
18728 2018-02-10  Zack Weinberg  <zackw@panix.com>
18729
18730         [BZ #22830]
18731         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18732         correctly.
18733         * malloc/tst-malloc-stats-cancellation.c: New test case.
18734         * malloc/Makefile: Add new test case.
18735
18736 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18737
18738         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18739
18740 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
18741
18742         * math/Makefile (libm-narrow-fns): Add add.
18743         (libm-test-funcs-narrow): Likewise.
18744         * math/Versions (GLIBC_2.28): Add narrowing add functions.
18745         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18746         * math/gen-auto-libm-tests.c (test_functions): Add add.
18747         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18748         (NARROW_ADD_ROUND_TO_ODD): Likewise.
18749         (NARROW_ADD_TRIVIAL): Likewise.
18750         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18751         macro.
18752         (__daddl): Likewise.
18753         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18754         dadd.
18755         (CFLAGS-nldbl-dadd.c): New variable.
18756         (CFLAGS-nldbl-fadd.c): Likewise.
18757         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18758         __nldbl_daddl.
18759         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18760         prototype.
18761         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18762         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18763         * math/auto-libm-test-in: Add tests of add.
18764         * math/auto-libm-test-out-narrow-add: New generated file.
18765         * math/libm-test-narrow-add.inc: New file.
18766         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18767         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18768         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18769         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18770         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18771         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18772         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18773         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18774         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18775         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18776         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18777         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18778         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18779         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18780         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18781         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18782         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18783         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18784         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18785         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18786         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18787         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18788         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18789         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18790         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18791         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18792         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18793         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18794         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18795         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18796         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18797         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18802         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18803         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18804         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18805         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18806         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18807         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18808         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18809         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18810         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18811         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18812
18813         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18814         (f128-pairs): New variable.
18815         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18816         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18817         to CFLAGS.
18818         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18819         Also make tests add $(f128-loader-link) to gnulib-tests.
18820
18821 2018-02-09  DJ Delorie  <dj@redhat.com>
18822
18823         [BZ #22827]
18824         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18825         64-bit ELF type for 64-bit ELF objects.
18826
18827 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
18828
18829         * math/libm-test-driver.c (snan_tests_arg): New variable.
18830         * math/libm-test-support.h (snan_tests_arg): New declaration.
18831         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18832
18833         * math/Makefile (test-type-pairs): New variable.
18834         (test-type-pairs-f64xf128-yes): Likewise.
18835         (tests): Add test-narrow-macros.
18836         (libm-test-funcs-narrow): New variable.
18837         (libm-test-c-narrow): Likewise.
18838         (generated): Add $(libm-test-c-narrow).
18839         (libm-tests-base-narrow): New variable.
18840         (libm-tests-narrow): Likewise.
18841         (libm-tests): Add $(libm-tests-narrow).
18842         (libm-tests-for-type): Handle $(libm-tests-narrow).
18843         (libm-test-c-narrow-obj): New variable.
18844         ($(libm-test-c-narrow-obj)): New rule.
18845         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18846         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18847         $(o-iterator) to set dependencies and CFLAGS.
18848         * math/gen-auto-libm-tests.c: Document use for narrowing
18849         functions.
18850         (output_for_one_input_case): Take argument NARROW.
18851         (generate_output): Likewise.  Update call to
18852         output_for_one_input_case.
18853         (main): Take --narrow option.  Update call to generate_output.
18854         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18855         (apply_lit): Update call to _apply_lit.
18856         (apply_arglit): New function.
18857         (parse_args): Handle "a" arguments.
18858         (parse_auto_input): Handle format names using ":".
18859         * math/README.libm-test: Document "a" parameter type.
18860         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18861         (ARG_TYPE_TRUE_MIN): Likewise.
18862         (ARG_TYPE_MAX): Likwise.
18863         (ARG_MIN_EXP): Likewise.
18864         (ARG_MAX_EXP): Likewise.
18865         (ARG_MANT_DIG): Likewise.
18866         (TEST_COND_arg_ibm128): Likewise.
18867         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18868         (TEST_COND_arg_fmt): New macro.
18869         (init_max_error): Update prototype.
18870         * math/libm-test-support.c (test_ibm128): New variable.
18871         (init_max_error): Take argument testing_ibm128 and set test_ibm128
18872         instead of using [TEST_COND_ibm128] conditional.
18873         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18874         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18875         [TEST_NARROW] (TEST_MSG): New definition.
18876         (arg_plus_zero): New macro.
18877         (arg_minus_zero): Likewise.
18878         (arg_plus_infty): Likewise.
18879         (arg_minus_infty): Likewise.
18880         (arg_qnan_value_pl): Likewise.
18881         (arg_qnan_value): Likewise.
18882         (arg_snan_value_pl): Likewise.
18883         (arg_snan_value): Likewise.
18884         (arg_max_value): Likewise.
18885         (arg_min_value): Likewise.
18886         (arg_min_subnorm_value): Likewise.
18887         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18888         (RUN_TEST_LOOP_aa_f): New macro.
18889         (TEST_SUFF): New macro.
18890         (TEST_SUFF_STR): Likewise.
18891         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18892         (TEST_COND_any_ibm128): New macro.
18893         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18894         this_func.  Update call to init_max_error.
18895         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18896         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18897         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18898         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18899         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18900         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18901         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18902         * math/test-math-scalar.h (TEST_NARROW): Likewise.
18903         * math/test-math-vector.h (TEST_NARROW): Likewise.
18904         * math/test-arg-double.h: New file.
18905         * math/test-arg-float128.h: Likewise.
18906         * math/test-arg-float32x.h: Likewise.
18907         * math/test-arg-float64.h: Likewise.
18908         * math/test-arg-float64x.h: Likewise.
18909         * math/test-arg-ldouble.h: Likewise.
18910         * math/test-math-narrow.h: Likewise.
18911         * math/test-narrow-macros.c: Likewise.
18912         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18913         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18914         test-narrow-macros-ldbl-64.
18915         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18916
18917         * math/bits/mathcalls-narrow.h: New file.
18918         * include/bits/mathcalls-narrow.h: Likewise.
18919         * math/math-narrow.h: Likewise.
18920         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18921         (__MATHCALL_NARROW_ARGS_2): Likewise.
18922         (__MATHCALL_NARROW_ARGS_3): Likewise.
18923         (__MATHCALL_NARROW_NORMAL): Likewise.
18924         (__MATHCALL_NARROW_REDIR): Likewise.
18925         (__MATHCALL_NARROW): Likewise.
18926         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18927         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18928         defined.
18929         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18930         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18931         (libm-narrow-fns): New variable.
18932         (libm-narrow-types-basic): Likewise.
18933         (libm-narrow-types-ldouble-yes): Likewise.
18934         (libm-narrow-types-float128-yes): Likewise.
18935         (libm-narrow-types-float128-alias-yes): Likewise.
18936         (libm-narrow-types): Likewise.
18937         (libm-routines): Add narrowing functions.
18938         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18939         (libc_feholdexcept_setroundf128): New macro.
18940         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18941         * sysdeps/ieee754/float128/float128_private.h: Include
18942         <math/math-narrow.h>.
18943         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18944         Undefine and redefine.
18945         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18946         (libm_alias_float_ldouble): Undefine and redefine.
18947         (libm_alias_double_ldouble): Likewise.
18948
18949         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18950
18951 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
18952
18953         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18954         FPCR/FPSR.
18955
18956 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
18957
18958         * manual/creature.texi: Convert references to gcc.info to gcc.
18959         * manual/stdio.texi: Likewise.
18960         * manual/string.texi: Likewise.
18961
18962 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18963
18964         [BZ #17979]
18965         * posix/bits/types.h (__int_least8_t): New typedef.
18966         (__uint_least8_t): Likewise.
18967         (__int_least16_t): Likewise.
18968         (__uint_least16_t): Likewise.
18969         (__int_least32_t): Likewise.
18970         (__uint_least32_t): Likewise.
18971         (__int_least64_t): Likewise.
18972         (__uint_least64_t): Likewise.
18973         * sysdeps/generic/stdint.h (int_least8_t): Define using
18974         __int_least8_t.
18975         (int_least16_t): Define using __int_least16_t.
18976         (int_least32_t): Define using __int_least32_t.
18977         (int_least64_t): Define using __int_least64_t.
18978         (uint_least8_t): Define using __uint_least8_t.
18979         (uint_least16_t): Define using __uint_least16_t.
18980         (uint_least32_t): Define using __uint_least32_t.
18981         (uint_least64_t): Define using __uint_least64_t.
18982         * wcsmbs/uchar.h: Include <bits/types.h>.
18983         (char16_t): Define using __uint_least16_t conditional only on
18984         [!__USE_ISOCXX11].
18985         (char32_t): Define using __uint_least32_t conditional only on
18986         [!__USE_ISOCXX11].
18987         * wcsmbs/test-char-types.c: New file.
18988         * wcsmbs/Makefile (tests): Add test-char-types.
18989
18990         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18991         version to 4.0.1.
18992
18993 2018-02-07  Zack Weinberg  <zackw@panix.com>
18994
18995         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18996         Delete all contents except for definitions of _G_HAVE_MMAP and
18997         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
18998         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18999         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
19000         change as above.
19001
19002         * libio/libio.h: Don't include bits/_G_config.h here.
19003         Include stddef.h with __need_wchar_t defined.  Include
19004         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
19005         Define _IO_iconv_t here, directly.
19006         Don't define _IO_HAVE_ST_BLKSIZE.
19007         * libio/libioP.h: Include _G_config.h here.  Move include of
19008         shlib-compat.h up with rest of includes.  Simplify conditionals
19009         controlling definition of _IO_JUMPS_OFFSET.
19010
19011         * csu/init.c: Remove always-true #if around entire file.
19012         Don't include stdio.h.  Set _IO_stdin_used to hardwired
19013         constant 0x20001, and update commentary.
19014         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
19015         Replace all uses of _G_va_list with __gnuc_va_list.
19016         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
19017         instead of #if _IO_HAVE_ST_BLKSIZE.
19018         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
19019         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
19020         not #ifdef.
19021
19022         * libio/bits/libio.h: Move back to libio/libio.h and adjust
19023         multiple-include guard to match.
19024         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
19025         into this file.
19026         Remove preprocessor conditionals that are always true and/or
19027         redundant to other preprocessor conditionals in the same nest.
19028         Include shlib-compat.h unconditionally.
19029         Error out if _LIBC is not defined, or if _ISOMAC is defined,
19030         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
19031         defined after including stdio.h.
19032         Use __BEGIN_DECLS/__END_DECLS.
19033
19034         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
19035         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
19036         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
19037
19038 2018-02-07  Zack Weinberg  <zackw@panix.com>
19039
19040         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
19041         New single-type headers split from _G_config.h.
19042         * libio/bits/types/cookie_io_functions_t.h
19043         * libio/bits/types/struct_FILE.h
19044         New single-type headers split from libio.h.
19045
19046         * libio/Makefile: Install the above new headers.  Don't install
19047         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
19048         bits/libio-ldbl.h.
19049         * libio/_G_config.h, libio/libio.h: Delete file.
19050
19051         * libio/bits/libio.h: Remove improper-inclusion guard.
19052         Include stdio.h and don't repeat anything that it does.
19053         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
19054         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
19055         __io_read_fn as cookie_read_function_t,
19056         __io_write_fn as cookie_write_function_t,
19057         __io_seek_fn as cookie_seek_function_t,
19058         __io_close_fn as cookie_close_function_t,
19059         and _IO_cookie_io_functions_t as cookie_io_functions_t.
19060         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
19061         here, in the "compatibility defines" section.  Remove an #if 0
19062         block.  Use the "body" macros from bits/types/struct_FILE.h to
19063         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
19064         and _IO_ferror_unlocked.
19065         Move prototypes of __uflow and __overflow...
19066
19067         * libio/stdio.h: ...here.  Don't include bits/libio.h.
19068         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
19069         directly from stdarg.h.  Include bits/types/__fpos_t.h,
19070         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
19071         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
19072         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
19073         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
19074         cookie_io_functions_t, not _IO_cookie_io_functions_t;
19075         __ssize_t, not _IO_ssize_t.  Unconditionally define
19076         BUFSIZ as 8192 and EOF as (-1).
19077
19078         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
19079         macros from bits/types/struct_FILE.h instead of _IO_* macros
19080         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
19081         instead of _IO_ssize_t.
19082         * libio/bits/stdio2.h: Similarly.
19083
19084         * libio/iolibio.h: Add multiple-include guard.
19085         Include bits/libio.h after stdio.h.
19086         * libio/libioP.h: Add multiple-include guard.
19087         Include stdio.h and bits/libio.h before iolibio.h.
19088
19089         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
19090         * include/bits/types/cookie_io_functions_t.h
19091         * include/bits/types/struct_FILE.h: New wrappers.
19092
19093         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
19094         Get definitions of _G_fpos_t and _G_fpos64_t from
19095         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
19096         respectively.  Remove improper-inclusion guards.
19097
19098         * conform/data/stdio.h-data: Update expectations of va_list.
19099         * scripts/check-installed-headers.sh: Remove special case for
19100         libio.h and _G_config.h.
19101
19102 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
19103
19104         [BZ #15105]
19105         [BZ #19463]
19106         * include/sys/sysmacros.h [!_ISOMAC]
19107         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
19108         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
19109         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
19110         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
19111         libc_hidden_proto.
19112         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
19113         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
19114         Likewise.
19115         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
19116         Undefine and redefine to add use __gnu_dev_ prefix.
19117         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
19118         Likewise.
19119         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
19120         and define as hidden inline function.
19121         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
19122         Likewise.
19123         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
19124         Likewise.
19125         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
19126         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
19127         (gnu_dev_minor): Likewise.
19128         (gnu_dev_makedev): Likewise.
19129         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
19130         makedev.
19131         * posix/wordexp.c (exec_comm_child): Likewise.
19132         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
19133         instead of minor and __gnu_dev_major instead of major.
19134         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
19135         __gnu_dev_major instead of major.
19136         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
19137         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
19138         instead of gnu_dev_minor.
19139         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
19140         (SLAVE_P): Likewise.
19141         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
19142         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
19143         instead of major.
19144
19145         [BZ #21313]
19146         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
19147         in another place.
19148         * locale/weightwc.h (findidx): Likewise.
19149
19150 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
19151
19152         * manual/probes.texi (slowlog): Delete documentation of removed probe.
19153         (slowlog_inexact): Likewise
19154         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
19155         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
19156
19157 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
19158
19159         [BZ #22797]
19160         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
19161         missing second underscore to parameter name.
19162
19163 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
19164
19165         [BZ #14508]
19166         [BZ #15512]
19167         [BZ #17082]
19168         [BZ #20530]
19169         * bits/byteswap.h: Update file comment.  Do not include
19170         <bits/byteswap-16.h>.
19171         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
19172         constant.
19173         (__bswap_16): Define as inline function.
19174         (__bswap_constant_32): Reformat definition.
19175         (__bswap_32): Always define as inline function, not macro, using
19176         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
19177         otherwise __bswap_constant_32.
19178         (__bswap_constant_64): Reformat definition.  Do not use
19179         __extension__ here.
19180         (__bswap_64): Always define as inline function, not macro.  Use
19181         __extension__ on function definition.  Use __builtin_bswap64 if
19182         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
19183         * string/test-endian-file-scope.c: New file.
19184         * string/test-endian-sign-conversion.c: Likewise.
19185         * string/Makefile (headers): Remove bits/byteswap-16.h.
19186         (tests): Add test-endian-file-scope and
19187         test-endian-sign-conversion.
19188         (CFLAGS-test-endian-sign-conversion.c): New variable.
19189         * bits/byteswap-16.h: Remove file.
19190         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
19191         * sysdeps/ia64/bits/byteswap.h: Likewise.
19192         * sysdeps/m68k/bits/byteswap.h: Likewise.
19193         * sysdeps/s390/bits/byteswap-16.h: Likewise.
19194         * sysdeps/s390/bits/byteswap.h: Likewise.
19195         * sysdeps/tile/bits/byteswap.h: Likewise.
19196         * sysdeps/x86/bits/byteswap-16.h: Likewise.
19197         * sysdeps/x86/bits/byteswap.h: Likewise.
19198
19199         [BZ #17721]
19200         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
19201         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
19202         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
19203         199901L] (__restrict): Define to restrict.
19204
19205         [BZ #19667]
19206         * string/testcopy.c: Include <support/support.h>.  Do not include
19207         <malloc.h>.  Use <support/test-driver.c>.
19208         (main): Rename to do_test.  Make static.  Use xmalloc instead of
19209         malloc.
19210
19211         [BZ #13575]
19212         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
19213         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
19214         (SSIZE_MAX): Define to INT_MAX.
19215         * posix/test-ssize-max.c: New file.
19216         * posix/Makefile (tests): Add test-ssize-max.
19217
19218         [BZ #19668]
19219         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
19220         <support/support.h>.  Do not include <malloc.h>.
19221         (query_auxv): Use xmalloc instead of malloc.
19222
19223         [BZ #14553]
19224         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
19225         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
19226         instead of loff_t.
19227
19228 2018-02-06  Florian Weimer  <fweimer@redhat.com>
19229
19230         [BZ #18023]
19231         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19232         Use scratch_buffer instead of extend_alloca.
19233
19234 2018-02-06  Zack Weinberg  <zackw@panix.com>
19235
19236         * libio/stdio.h: Don't define getc or putc as macros.
19237         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
19238         not _IO_getc and _IO_putc.
19239
19240         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
19241         * stdio-common/tstgetln.c: Don't redefine ssize_t.
19242
19243 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
19244
19245         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
19246         (TCP_FASTOPEN_NO_COOKIE): Likewise.
19247
19248         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
19249
19250         [BZ #14890]
19251         * elf/elf.h (NT_PRFPREG): New macro.
19252         (NT_S390_VXRS_LOW): Likewise.
19253         (NT_S390_VXRS_HIGH): Likewise.
19254         (NT_S390_GS_CB): Likewise.
19255         (NT_S390_GS_BC): Likewise.
19256         (NT_S390_RI_CB): Likewise.
19257
19258         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
19259         (MAP_SYNC): New macro.
19260         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
19261         Likewise.
19262         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
19263         (MAP_SYNC): Likewise.
19264         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
19265         (MAP_SYNC): Likewise.
19266         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
19267         (MAP_SYNC): Likewise.
19268         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
19269         (MAP_SYNC): Likewise.
19270         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
19271         (MAP_SYNC): Likewise.
19272         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
19273         (MAP_SYNC): Likewise.
19274         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
19275         Likewise.
19276         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
19277         Likewise.
19278
19279         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
19280         (MAP_SHARED_VALIDATE): New macro.
19281         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
19282         (MAP_SHARED_VALIDATE): Likewise.
19283
19284 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19285
19286         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
19287         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
19288         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19289
19290 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19291
19292         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
19293         (DT_NUM): Updated to 35.
19294
19295 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19296
19297         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
19298         __builtin_expect with __glibc_likely and __glibc_unlikely.
19299         (elf_machine_rela): Likewise.
19300         (elf_machine_lazy_rel): Likewise.
19301
19302 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19303
19304         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19305         __builtin_expect with __glibc_likely and __glibc_unlikely.
19306         (elf_machine_lazy_rel): Likewise.
19307
19308 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19309
19310         [BZ #22638]
19311         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19312         SHARED.
19313         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19314
19315 2018-02-05  Andreas Schwab  <schwab@suse.de>
19316
19317         [BZ #22761]
19318         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19319         string.
19320
19321 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19322
19323         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19324         not check against PTHREAD_STACK_MIN.
19325
19326 2018-02-02  Sean McKean  <smckean83@gmail.com>
19327
19328         [BZ #22735]
19329         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19330
19331 2018-02-02  Florian Weimer  <fweimer@redhat.com>
19332
19333         [BZ #22753]
19334         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19335         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19336         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19337         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19338         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19339         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19340         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19341         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19342         * manual/llio.texi (Scatter-Gather): Mention offset -1.
19343         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19344         * misc/tst-preadvwritev2.c (do_test): Call it.
19345         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19346
19347 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19348
19349         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19350
19351         * benchtests/bench-memcmp.c: Print json instead of plain text.
19352
19353         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19354         every test run.
19355
19356 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
19357
19358         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19359         version to 4.15.
19360         (s390_sthyi): New syscall.
19361
19362         * sysdeps/generic/ldbl-classify-compat.h: New file.
19363         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19364         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19365         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19366         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19367         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19368         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19369         * sysdeps/ieee754/dbl-64/s_finite.c: Include
19370         <ldbl-classify-compat.h>.
19371         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19372         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19373         <ldbl-classify-compat.h>.
19374         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19375         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19376         <ldbl-classify-compat.h>.
19377         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19378         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19379         <ldbl-classify-compat.h>.
19380         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19381         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19382         <ldbl-classify-compat.h>.
19383         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19384         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19385         <ldbl-classify-compat.h>.
19386         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19387         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19388         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19389         * sysdeps/m68k/coldfire/math_private.h: Remove file.
19390         * sysdeps/microblaze/math_private.h: Likewise.
19391         * sysdeps/nios2/math_private.h: Likewise.
19392         * sysdeps/sh/math_private.h: Likewise.
19393
19394         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19395         * sysdeps/m68k/coldfire/math_private.h: ... here.
19396         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19397         * sysdeps/tile/math_private.h: Likewise.
19398         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19399         Remove macro.
19400         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19401         Likewise.
19402
19403         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19404         Remove macro.
19405         (libc_fetestexcept): Likewise.
19406         (libc_feupdateenv_test): Likewise.
19407         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19408         (libc_fetestexcept): Likewise.
19409         (libc_feupdateenv_test): Likewise.
19410         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19411         (libc_fetestexcept): Likewise.
19412         (libc_feupdateenv_test): Likewise.
19413         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19414         (libc_fetestexcept): Likewise.
19415         (libc_feupdateenv_test): Likewise.
19416
19417         * sysdeps/generic/math_private.h
19418         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19419         New inline function.
19420         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19421         Likewise.
19422
19423         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19424         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19425         * sysdeps/generic/math_private.h
19426         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19427         inline function.
19428         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19429         Likewise.
19430         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19431         Likewise.
19432         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19433         Likewise.
19434         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19435         Likewise.
19436         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19437         Likewise.
19438         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19439         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19440         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19441         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19442         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19443         (__fegetenv): Likewise.
19444         (fesetenv): Likewise.
19445         (__fesetenv): Likewise.
19446         (feupdateenv): Likewise.
19447         (__feupdateenv): Likewise.
19448         (fegetround): Likewise.
19449         (__fegetround): Likewise.
19450         (fesetround): Likewise.
19451         (__fesetround): Likewise.
19452
19453         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19454         (feraiseexcept): New macro.
19455         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19456         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19457         Remove macro.
19458         (__feraiseexcept): Likewise.
19459         (feclearexcept): Likewise.
19460         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19461         (__feraiseexcept): Likewise.
19462         (feclearexcept): Likewise.
19463         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19464         (__feraiseexcept): Likewise.
19465         (feclearexcept): Likewise.
19466         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19467         (__feraiseexcept): Likewise.
19468         (feclearexcept): Likewise.
19469         (fetestexcept): Likewise.
19470
19471         * sysdeps/m68k/coldfire/math-tests.h: New file.
19472
19473         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19474         * sysdeps/m68k/bits/fenv.h: ... here.
19475         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19476         not define.
19477         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19478         Likewise.
19479         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19480         Likewise.
19481         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19482         Likewise.
19483         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19484         Likewise.
19485         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19486         Define to 0.
19487         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19488         (__FE_UNDEFINED): New enum constant.
19489         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19490         Do not define.
19491         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19492         Likewise.
19493         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19494         Likewise.
19495         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19496         to match generic bits/fenv.h.
19497         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19498         Do not define.
19499
19500         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19501         packed on bits.
19502         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19503         * soft-fp/half.h (union _FP_UNION_H): Likewise.
19504         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19505         * soft-fp/single.h (union _FP_UNION_S): Likewise.
19506
19507 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
19508             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
19509             Joseph Myers  <joseph@codesourcery.com>
19510
19511         [BZ #21314]
19512         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19513         (__log1p): Disable -Wmaybe-uninitialized for -Os around
19514         computation using c.
19515         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19516         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19517         computation using c.
19518
19519 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19520
19521         * version.h (RELEASE): Set to "development".
19522         (VERSION): Set to "2.27.9000".
19523         * NEWS (2.28): New section.
19524
19525         * version.h (RELEASE): Set to "stable".
19526         (VERSION): Set to "2.27".
19527         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19528
19529         * NEWS: Add the list of bugs fixed in 2.27.
19530
19531 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19532
19533         * stdlib/test-atexit-race-common.c (do_test): Check stack size
19534         against PTHREAD_STACK_MIN.
19535
19536 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19537
19538         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19539         New entries.
19540         (Rafal Luzynski, Andreas Schwab): Update.
19541
19542 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
19543
19544         [BZ #10871]
19545         * NEWS: List the languages which actually use the alternative
19546         months feature in this release.  Also explain that "alt_mon" and
19547         "ab_alt_mon" are optional.
19548
19549 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
19550
19551         [BZ #22765]
19552         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19553
19554 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
19555
19556         * manual/install.texi (Tools for Compilation): Update the newest
19557         versions of gcc, binutils, texinfo, gawk, bison, and sed.
19558         * INSTALL: Regenerated.
19559
19560 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19561
19562         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19563         instead of __builtin_expect.
19564
19565 2018-01-30  Florian Weimer  <fweimer@redhat.com>
19566
19567         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19568         data.
19569         * nss/tst-nss-getpwent.c (do_test): Likewise.
19570
19571 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
19572
19573         [BZ #10871]
19574         * localedata/locales/hr_HR (mon): Rename to...
19575         (alt_mon): This.
19576         (mon): Import from CLDR (genitive case).
19577         (d_t_fmt): Update the comment.
19578
19579 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
19580
19581         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19582         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19583         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19584
19585 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19586
19587         * mach/Versions: Fix version when __mach_host_self_ was added.
19588         * hurd/Versions: Fix version when _hurd_exec_paths was added.
19589         * sysdeps/mach/hurd/i386/ld.abilist: New file.
19590         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19591         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19592         * sysdeps/mach/hurd/i386/libc.abilist: New file.
19593         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19594         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19595         * sysdeps/mach/hurd/i386/libm.abilist: New file.
19596         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19597         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19598         * sysdeps/mach/hurd/i386/librt.abilist: New file.
19599         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19600         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19601         || to respect codestyle.
19602         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19603         (do_test_bz20181): Rename accordingly.
19604         * malloc/malloc.c: Include <assert.h>.
19605         (assert): Do not define.
19606         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19607         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19608         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19609         * sysdeps/mach/hurd/hp-timing.h: New file.
19610         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19611
19612 2018-01-29  Darius Rad  <darius@bluespec.com>
19613
19614         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19615
19616 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
19617
19618         * sysdeps/init_array/crti.S (.section .init_array): Add
19619         PREINIT_FUNCTION when defined.
19620         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19621         * config.h.in: Regenerate.
19622         * manual/platform.texi: Add RISC-V documenation for
19623         __riscv_flush_icache.
19624         * sysdeps/riscv/__longjmp.S: New file.
19625         * sysdeps/riscv/backtrace.c: Likewise.
19626         * sysdeps/riscv/bits/endian.h: Likewise.
19627         * sysdeps/riscv/bits/setjmp.h: Likewise.
19628         * sysdeps/riscv/bits/wordsize.h: Likewise.
19629         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19630         * sysdeps/riscv/bsd-setjmp.c: Likewise.
19631         * sysdeps/riscv/dl-trampoline.S: Likewise.
19632         * sysdeps/riscv/gccframe.h: Likewise.
19633         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19634         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19635         * sysdeps/riscv/machine-gmon.h: Likewise.
19636         * sysdeps/riscv/memusage.h: Likewise.
19637         * sysdeps/riscv/setjmp.S: Likewise.
19638         * sysdeps/riscv/sys/asm.h: Likewise.
19639         * sysdeps/riscv/tls-macros.h: Likewise.
19640         * sysdeps/riscv/dl-tls.h: New file.
19641         * sysdeps/riscv/libc-tls.c: Likewise.
19642         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19643         * sysdeps/riscv/nptl/tls.h: Likewise.
19644         * sysdeps/riscv/stackinfo.h: Likewise.
19645         * sysdeps/riscv/bits/fenv.h: New file.
19646         * sysdeps/riscv/e_sqrtl.c: Likewise.
19647         * sysdeps/riscv/fpu_control.h: Likewise.
19648         * sysdeps/riscv/math-tests.h: Likewise.
19649         * sysdeps/riscv/nofpu/Implies: Likewise.
19650         * sysdeps/riscv/sfp-machine.h: Likewise.
19651         * sysdeps/riscv/tininess.h: Likewise.
19652         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19653         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19654         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19655         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19656         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19657         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19658         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19659         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19660         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19661         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19662         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19663         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19664         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19665         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19666         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19667         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19668         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19669         * sysdeps/riscv/rvd/s_finite.c: Likewise.
19670         * sysdeps/riscv/rvd/s_fma.c: Likewise.
19671         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19672         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19673         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19674         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19675         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19676         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19677         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19678         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19679         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19680         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19681         * sysdeps/riscv/rvf/fegetround.c: Likewise.
19682         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19683         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19684         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19685         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19686         * sysdeps/riscv/rvf/fesetround.c: Likewise.
19687         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19688         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19689         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19690         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19691         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19692         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19693         * sysdeps/riscv/rvf/math_private.h: Likewise.
19694         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19695         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19696         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19697         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19698         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19699         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19700         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19701         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19702         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19703         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19704         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19705         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19706         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19707         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19708         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19709         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19710         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19711         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19712         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19713         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19714         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19715         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19716         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19717         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19718         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19719         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19720         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19721         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19722         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19723         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19724         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19725         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19726         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19727         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19728         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19729         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19730         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19731         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19732         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19733         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19734         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19735         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19736         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19737         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19738         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19739         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19740         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19741         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19742         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19743         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19744         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19745         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19746         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19747         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19748         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19749         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19750         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19751         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19752         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19753         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19754         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19755         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19756         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19757         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19758         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19759         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19760         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19761         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19762         * sysdeps/riscv/Implies: New file.
19763         * sysdeps/riscv/Makefile: Likewise.
19764         * sysdeps/riscv/configure: Likewise.
19765         * sysdeps/riscv/configure.ac: Likewise.
19766         * sysdeps/riscv/nptl/Makefile: Likewise.
19767         * sysdeps/riscv/preconfigure: Likewise.
19768         * sysdeps/riscv/rv64/Implies-after: Likewise.
19769         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19770         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19771         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19772         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19773         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19774         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19775         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19776         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19777         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19778         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19779         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19780         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19781         (Config): Likewise.
19782
19783 2018-01-29  Florian Weimer  <fweimer@redhat.com>
19784
19785         [BZ #22701]
19786         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19787         libnsl_hidden_proto.
19788         * include/rpcsvc/yp.h (yp_xdrall): Declare with
19789         libnsl_hidden_proto.
19790         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19791         * nis/Makefile (libnsl-routines): Add nss-default only for
19792         build-obsolete-nsl.
19793         * nis/nis_defaults.c (__nis_default_ttl): Add
19794         libnsl_hidden_nolink_def.
19795         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19796         declaration.
19797         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19798         * nis/ypclnt.c (yp_maplist): Likewise.
19799
19800 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
19801
19802         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19803         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19804
19805 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
19806
19807         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19808         clean -dxfq for git updates when replacing sources.
19809
19810         * scripts/build-many-glibcs.py (Config.build_gcc): Use
19811         --disable-libcilkrts unconditionally, not just for the final GCC
19812         build for Hurd.
19813
19814         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19815         version to 4.15.
19816
19817 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19818
19819         [BZ #10871]
19820         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19821         case).
19822
19823 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19824
19825         [BZ #10871]
19826         * localedata/locales/be_BY (mon): Rename to...
19827         (alt_mon): This, then synchronize with CLDR (nominative case).
19828         (abmon): Rename to...
19829         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19830         (mon): Import from CLDR (genitive case).
19831         (abmon): Likewise.
19832         * localedata/locales/be_BY@latin (mon): Rename to...
19833         (alt_mon): This.
19834         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19835
19836         * localedata/locales/be_BY@latin (lang_name): Reworded to
19837         "biełaruskaja mova".
19838
19839 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19840
19841         [BZ #10871]
19842         * localedata/locales/el_CY (mon): Renamed to...
19843         (alt_mon): This.
19844         (mon): Import from CLDR (genitive case).
19845         * localedata/locales/el_GR: Likewise.
19846
19847 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19848
19849         [BZ #10871]
19850         * localedata/locales/ru_RU (mon): Rename to...
19851         (alt_mon): This.
19852         (abmon): Rename to...
19853         (ab_alt_mon): This.
19854         (mon): Import from CLDR (genitive case).
19855         (abmon): Copy from the old content except the 5th month which is
19856         now in the genitive case, even when abbreviated.
19857         * localedata/locales/ru_UA: Likewise.
19858         * time/tst-strptime.c (day_tests): Add an actual example of
19859         a difference between %b and %Ob in Russian.
19860
19861 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19862
19863         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19864         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19865         a `c' variable.
19866         * resolv/res-close.c: Include <stdlib.h>.
19867         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19868         <sys/wait.h>, <time.h>, <sys/uio.h>.
19869         (NOT_CANCEL_H): Add inclusion guard.
19870         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19871         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19872         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19873         return 0.
19874         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19875         vm_address_t * to ElfW(Addr) * for dl_main parameter.
19876         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19877         instead of void *.
19878         * sysdeps/pthread/timer_create.c (timer_create): Do not use
19879         timer_ptr2id to cast struct timer_node * to void *.
19880         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19881         --disable-libcilkrts to gcc configure.
19882         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19883         and make them the default for now.
19884         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19885         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19886         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19887         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19888         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19889         MACH_IPC_COMPAT.
19890         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19891         __task_terminate would ever return successfully.
19892         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19893         to global scope.
19894         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19895         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19896         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19897         critical section to make code simpler and avoid warning.
19898         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19899         critical section to make code simpler and avoid warning.
19900         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19901         const char * instead of char *.
19902         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19903         __hurd_file_name_split, hurd_file_name_split,
19904         __hurd_directory_name_split, hurd_directory_name_split,
19905         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19906         hurd_file_name_path_lookup): Make lookup function parameter take a
19907         const char *name instead of char *name.
19908         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19909         __hurd_directory_name_split): Likewise.
19910         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19911         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19912         * sysdeps/mach/hurd/check_native.c: New file.
19913         * sysdeps/mach/hurd/check_pf.c: New file.
19914         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19915         (__freeifaddrs): Define macro to freeifaddrs.
19916         * sysdeps/mach/hurd/libhurduser.abilist: New file.
19917         * sysdeps/mach/libmachuser.abilist: New file.
19918         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19919         (do_test_bz20181): Rename accordingly.
19920         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19921         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19922         <sys/mount.h>.
19923         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19924         version only if __USE_EXTERN_INLINES is defined.
19925         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19926         __hurd_sockfail): Likewise.
19927         (_hurd_fd_get): Always declare functions, and provide inline versions
19928         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19929         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19930         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19931         _hurd_port_set): Always declare functions, and provide inline versions
19932         only if __USE_EXTERN_INLINES and _LIBC are defined and
19933         IS_IN(libc).
19934         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19935         _hurd_critical_section_unlock): Likewise.
19936         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19937         * __hurd_threadvar_location): Likewise.
19938         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19939         _hurd_userlink_clear): Likewise.
19940         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19941         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19942         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19943         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19944         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19945         __spin_lock_locked): Likewise.
19946         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19947         __spin_lock_locked): Likewise.
19948         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19949         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19950         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19951         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19952         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19953         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19954         _POSIX_NO_TRUNC): Define to 0.
19955         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19956         check size against PTHREAD_STACK_MIN.
19957         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19958         IS_IN(libpthread)]: Include <sigsetops.h>.
19959         * mach/Makefile (user-interfaces): Add mach/gnumach.
19960         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19961         * sysdeps/mach/configure (mach_interface_list): Regenerate.
19962         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19963         instead of invalid -1.
19964         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19965         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19966         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19967         <net/ppp_defs.h>.
19968
19969 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
19970
19971         * hurd/fcntl-internal.h: New file.
19972
19973 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
19974
19975         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19976
19977         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19978
19979 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
19980
19981         [BZ #22701]
19982         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19983         Build only shared objects.
19984
19985 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19986
19987         * README: Update for hppa.
19988
19989 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19990
19991         * sysdeps/sparc/fpu/libm-test-ulps: Update
19992         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19993
19994 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19995
19996         Revert:
19997
19998         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19999
20000         [BZ #22563]
20001         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20002         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20003         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20004         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20005         to feature_1.
20006
20007         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20008
20009         [BZ #22563]
20010         * bits/types/__cancel_jmp_buf_tag.h: New file.
20011         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20012         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20013         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20014         * nptl/Makefile (headers): Add
20015         bits/types/__cancel_jmp_buf_tag.h.
20016         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20017         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20018         * sysdeps/nptl/pthread.h: Include
20019         <bits/types/__cancel_jmp_buf_tag.h>.
20020         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20021         __cancel_jmp_buf.
20022         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20023
20024 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
20025
20026         [BZ #10871]
20027         * localedata/locales/uk_UA (mon): Renamed to...
20028         (alt_mon): This.
20029         (alt_digits): "0" removed and then renamed to...
20030         (mon): This.
20031         (date_fmt): Definition changed not to use the alternative
20032         digits hack.
20033
20034 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
20035
20036         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
20037         FLAG_RISCV_FLOAT_ABI_DOUBLE.
20038         * elf/elf.h (EF_RISCV_RVC): New define.
20039         (EF_RISCV_FLOAT_ABI): Likewise.
20040         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
20041         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
20042         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20043         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
20044         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
20045         define.
20046         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
20047
20048 2018-01-25  Andreas Schwab  <schwab@suse.de>
20049
20050         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
20051         single quotes.
20052         * sysdeps/gnu/configure: Regenerate.
20053         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20054         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20056         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20057         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20058         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
20059         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20060         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20061
20062 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20063
20064         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
20065         URL, and run autoconf, make it the default for now.
20066
20067 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20068
20069         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20070         soft-float ColdFire configuration.
20071
20072         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
20073         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
20074         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
20075
20076         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
20077         MicroBlaze file.
20078
20079         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
20080         ....
20081         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
20082         ... here.
20083         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
20084         New file.
20085
20086         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
20087         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
20088         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
20089         file.
20090
20091 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20092
20093         [BZ #22742]
20094         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
20095         Rename to __reserved and add comment.
20096         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
20097         Rename to __reserved.
20098
20099 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
20100
20101         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20102         i686-gnu configurations.
20103         (Context.run_builds): Include mig, gnumach and hurd in components
20104         considered.
20105         (Context.checkout): Add mig, gnumach and hurd to components.
20106         (Context.checkout_tar): Add URL mappings for mig, gnumach and
20107         hurd.
20108         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
20109         (Config.build): Install gnumach headers, build mig and install
20110         hurd headers for 'gnu' OS.
20111         (Config.install_gnumach_headers): New function.
20112         (Config.install_hurd_headers): Likewise.
20113         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
20114         when building for 'gnu' OS.
20115
20116 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
20117
20118         * manual/tunables.texi (Hardware Capability Tunables): Fix
20119         spelling.
20120
20121 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
20122
20123         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
20124         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
20125         (ALTMON_11, ALTMON_12): Improve documentation.
20126         * manual/time.texi (strftime): Likewise.
20127
20128 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20129
20130         [BZ #10871]
20131         * localedata/locales/pl_PL: Alternative month names added,
20132         primary month names are genitive now.
20133         * time/tst-strptime.c (day_tests): Actually use a genitive case
20134         of a month name in Polish language.
20135
20136 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20137
20138         [BZ #10871]
20139         * manual/locale.texi: Document ALTMON_1..12 constants for
20140         nl_langinfo.  Specify when to use ALTMON instead of MON.
20141         * manual/time.texi (strftime, strptime): Document GNU extension
20142         permitting O modifier with %B and %b.  Specify when to use
20143         %OB instead of %B.
20144
20145 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20146
20147         [BZ #10871]
20148         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
20149         names, define them as the same as abbreviated month names explicitly.
20150         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
20151         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
20152         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
20153         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
20154         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
20155         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
20156         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
20157         _NL_WABALTMON_12): New enum constants.
20158         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
20159         wab_alt_mon, and ab_alt_mon_defined members.
20160         (time_output): Output ab_alt_mon and wab_alt_mon members.
20161         (time_read): Read them, initialize them as copies of abmon and wabmon
20162         respectively if they are missing, initialize ab_alt_mon_defined.
20163         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
20164         * locale/programs/locfile-kw.h: Regenerate.
20165         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
20166         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
20167         and ru_RU.UTF-8.
20168         * time/strftime_l.c (a_altmonth, aam_len): New macros.
20169         [!COMPILE_WIDE] (ABALTMON_1): New macro.
20170         (__strftime_internal): Handle %Ob and %Oh formats.
20171         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
20172         (__strptime_internal): Handle %Ob and %Oh formats.
20173         * time/tst-strptime.c (day_tests): Add more tests to parse different
20174         forms of month names including the new %Ob format specifier.
20175
20176 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
20177
20178         [BZ #10871]
20179         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
20180         define them as the same as primary full month names explicitly.
20181         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
20182         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
20183         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
20184         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
20185         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
20186         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
20187         _NL_WALTMON_12): New enum constants.
20188         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
20189         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
20190         macros.
20191         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
20192         walt_mon, and alt_mon_defined members.
20193         (time_output): Output alt_mon and walt_mon members.
20194         (time_read): Read them, initialize them as copies of mon and wmon
20195         respectively if they are missing, initialize alt_mon_defined.
20196         * locale/programs/locfile-kw.gperf (alt_mon): Define.
20197         * locale/programs/locfile-kw.h: Regenerate.
20198         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
20199         * localedata/tst-langinfo.c (map): Add tests for the new constants
20200         ALTMON_1 .. ALTMON_12.
20201         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
20202         and pl_PL.UTF-8.
20203         * time/strftime_l.c (f_altmonth): New macro.
20204         (__strftime_internal): Handle %OB format.
20205         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
20206         (__strptime_internal): Handle %OB format.
20207         * time/tst-strptime.c (day_tests): Add tests to parse different forms
20208         of month names including the new %OB format specifier.
20209
20210 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20211
20212         [BZ #22685]
20213         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
20214         from ABORT_TRANSACTION.
20215         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
20216         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
20217         ABORT_TRANSACTION_IMPL): Likewise.
20218         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
20219         Linux code, but remove the code that aborts transactions.
20220
20221 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20222
20223         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
20224
20225 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
20226
20227         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
20228         in date: "2004-14-09" should be "2004-09-14".
20229         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
20230         "2003-15-09" should be "2003-09-15".
20231
20232 2018-01-18  Arjun Shankar  <arjun@redhat.com>
20233
20234         [BZ #22343]
20235         [BZ #22774]
20236         CVE-2018-6485
20237         CVE-2018-6551
20238         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
20239         after padding.
20240         (_int_memalign): check for integer overflow before calling
20241         _int_malloc.
20242         * malloc/tst-malloc-too-large.c: New test.
20243         * malloc/Makefile: Add tst-malloc-too-large.
20244
20245 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
20246
20247         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
20248         in date: "2017-24-07" should be "2017-07-24".
20249         * localedata/locales/mai_IN: Likewise.
20250         * localedata/locales/mai_NP: Likewise.
20251
20252 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
20253
20254         * po/ru.po: Update translations.
20255
20256 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
20257
20258         [BZ #22719]
20259         * sysdeps/hppa/backtrace.c: New file.
20260
20261 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
20262
20263         [BZ #22715]
20264         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
20265         align La_x86_64_retval to VEC_SIZE.
20266
20267 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
20268
20269         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
20270         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
20271
20272 2018-01-16  Florian Weimer  <fweimer@redhat.com>
20273
20274         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
20275         Move tst-thread-exit-clobber ...
20276         [$(CXX)] (tests-unsupported): ... to here.
20277
20278 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20279
20280         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
20281         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
20282         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20283         (_dl_aarch64_cap_flags): Update.
20284         (_DL_HWCAP_COUNT): Update.
20285
20286 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20287
20288         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
20289         (_DL_HWCAP_LAST): Remove.
20290         (_DL_HWCAP_COUNT): Move to ...
20291         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20292         (_DL_HWCAP_COUNT): ... here.
20293
20294 2018-01-16  Florian Weimer  <fweimer@redhat.com>
20295
20296         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
20297         mode with GNU extensions.
20298
20299 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
20300
20301         * elf/elf.h (NT_ARM_SVE): Define.
20302
20303 2018-01-15  Florian Weimer  <fweimer@redhat.com>
20304
20305         [BZ #22636]
20306         * nptl/tst-minstack-throw.cc: New file.
20307         * nptl/Makefile (tests): Add tst-minstack-throw.
20308         (LDLIBS-tst-minstack-throw): Link with libstdc++.
20309         [!CXX] (tests-unsupported): Add tst-minstack-throw.
20310
20311 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
20312
20313         * scripts/build-many-glibcs.py (Context.checkout): Default
20314         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20315         version to 1.1.0.
20316
20317 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
20318
20319         [BZ #22707]
20320         * elf/elf.h (DF_1_STUB): Define.
20321         (DF_1_PIE): Define.
20322
20323 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20324
20325         [BZ #22697]
20326         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20327         Do not add 0.5 to integer or out-of-range arguments.
20328
20329 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20330
20331         * po/bg.po: Update translations.
20332         * po/cs.po: Likewise.
20333         * po/de.po: Likewise.
20334         * po/ko.po: Likewise.
20335         * po/pl.po: Likewise.
20336         * po/sv.po: Likewise.
20337         * po/uk.po: Likewise.
20338         * po/vi.po: Likewise.
20339
20340 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20341
20342         * aarch64/start.S (_start): Use __wrap_main.
20343         (__wrap_main): New local symbol.
20344
20345 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20346
20347         [BZ #22679]
20348         CVE-2018-1000001
20349         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20350         generic_getcwd if the path returned by getcwd syscall is not absolute.
20351         * io/tst-getcwd-abspath.c: New test.
20352         * io/Makefile (tests): Add tst-getcwd-abspath.
20353
20354 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
20355
20356         * malloc/malloc.c (malloc_consolidate): Add size check.
20357
20358 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20359
20360         * support/write_message.c (write_message): Preserve errno.
20361         * support/check.c (print_failure): Likewise.
20362         * support/support_test_verify_impl.c (support_test_verify_impl):
20363         Likewise.
20364         * support/support_test_compare_failure.c
20365         (support_test_compare_failure): Likewise.
20366
20367 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20368
20369         [BZ #22701]
20370         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20371         Prevent installation of libnsl.so.
20372         (libnsl-inhibit-o): Do not build (or install) static libraries.
20373
20374 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
20375
20376         [BZ #22657]
20377         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20378         before the day number which may produce a double space.
20379         (date_fmt): Likewise.
20380
20381 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
20382
20383         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20384         instead of fegetenv.
20385
20386 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
20387
20388         [BZ #22702]
20389         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20390         comment to say exceptions are discarded.
20391         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20392         __fegetenv.
20393         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20394         be enabled.
20395
20396 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20397
20398         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20399         and error message.
20400
20401 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20402
20403         [BZ #22636]
20404         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20405         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20406
20407 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20408
20409         [BZ #22693]
20410         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20411         negative arguments in test for NaN or infinity argument.
20412
20413 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
20414
20415         * po/libc.pot: Regenerate.
20416
20417 2018-01-10  Florian Weimer  <fweimer@redhat.com>
20418
20419         [BZ #22636]
20420         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20421         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20422
20423 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20424
20425         * hurd/hurd/fd.h: Include <fcntl.h>
20426         (__hurd_at_flags): New function.
20427         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20428         with call to __hurd_at_flags.
20429         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20430         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20431         __faccessat
20432         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20433         (__access_noerrno): Use __faccessat_common instead of access_common.
20434         (__access): Likewise.
20435         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20436         with a call to __faccessat.
20437         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20438         (__faccessat_common): ... this. Move implementation of __access into it when
20439         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20440         reauthenticate_cwdir_at helper to implement AT mechanism.
20441         (__faccessat_noerrno): New function, just calls __faccessat_common.
20442         (__faccessat): New function, just calls __faccessat_common.
20443         (faccessat): Define weak alias.
20444
20445 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20446
20447         [BZ #22691]
20448         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20449         (CFLAGS-s_fmaxmagl.c): New variable.
20450         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20451
20452         [BZ #22690]
20453         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20454         long int for arguments of possibly overflowing addition or
20455         subtraction.
20456         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20457
20458 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
20459
20460         [BZ #22688]
20461         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20462         (CFLAGS-e_remainderl.c): New variable.
20463
20464         [BZ #22687]
20465         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20466         variable.
20467         (CFLAGS-s_cacoshl.c): Likewise.
20468         (CFLAGS-s_casinhl.c): Likewise.
20469         (CFLAGS-s_catanl.c): Likewise.
20470         (CFLAGS-s_catanhl.c): Likewise.
20471         (CFLAGS-s_cexpl.c): Likewise.
20472         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20473         (CFLAGS-s_csinhl.c): Likewise.
20474         (CFLAGS-s_clogl.c): Likewise.
20475         (CFLAGS-s_clog10l.c): Likewise.
20476         (CFLAGS-s_csinl.c): Likewise.
20477         (CFLAGS-s_csqrtl.c): Likewise.
20478
20479 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20480 2017-01-09  Svante Signell  <svante.signell@gmail.com>
20481
20482         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20483         (_hurd_exec_paths): New function.
20484         * hurd/hurd.h (_hurd_exec): Deprecate function.
20485         (_hurd_exec_paths): Declare function.
20486         * hurd/Versions: Export _hurd_exec_paths.
20487         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20488         (__execve): Use __getcwd to build absolute path, and use
20489         _hurd_exec_paths instead of _hurd_exec.
20490         * sysdeps/mach/hurd/spawni.c: Likewise.
20491         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20492         _hurd_exec.
20493
20494 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
20495
20496         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20497         test instead of failing in case of ENOENT returned by posix_openpt.
20498
20499 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20500
20501         resolv: Support binary labels in test framework.
20502         * support/resolv_test.c (struct to_be_freed): Remove.
20503         (struct compressed_name): New.
20504         (allocate_compressed_name, ascii_tolower)
20505         (compare_compressed_name): New functions.
20506         (struct resolv_response_builder): Update type of
20507         compression_offsets for use with tsearch.  Rempve to_be_freed.
20508         (response_push_pointer_to_free): Remove function.
20509         (resolv_response_add_name): Rewrite using struct compressed_name
20510         and tsearch instead of hsearch_r.
20511         (response_builder_allocate): Remove initialization of
20512         compression_offsets.
20513         (response_builder_free): Update for removal of to_be_freed.  Use
20514         tdestroy instead of hdestroy_r.
20515         * resolv/Makefile (tests): Add tst-resolv-binary.
20516         (tst-resolv-binary): Link with -lresolv -lpthread.
20517
20518 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20519
20520         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20521         time.  Pass positive flag instead of negative flag to
20522         support_test_compare_failure.
20523         (support_test_compare_failure): Change negative parameter to
20524         positive.
20525         * support/support_test_compare_failure.c (report)
20526         (support_test_compare_failure): Likewise.
20527         * support/tst-test_compare.c (return_ssize_t, return_int): New.
20528         (do_test): Check int/size_t, ssize_t/size_t comparisons.
20529
20530 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20531
20532         [BZ #22637]
20533         * nptl/descr.h (stackblock, stackblock_size): Update comments.
20534         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20535         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20536         stacksize.
20537         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20538
20539 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
20540
20541         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20542         Add s_sincosf-sse2 and s_sincosf-fma.
20543         (CFLAGS-s_sincosf-fma.c): New.
20544         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20545         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20546         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20547         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20548         __sincosf is defined.
20549
20550 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20551
20552         * nptl/tst-thread-exit-clobber.cc: New file.
20553         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20554         C++11 mode.
20555         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20556         (tests): Add tst-thread-exit-clobber.
20557         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20558
20559 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20560
20561         * support/check.h (support_static_assert): Define.
20562         (TEST_COMPARE): Use it.
20563
20564 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
20565
20566         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20567         [!__RLIM_T_MATCHES_RLIM64_T]
20568         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20569         __getrlimit64. Add libc_hidden_weak.
20570
20571 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
20572
20573         * elf/elf.h (R_RISCV_NONE): New define.
20574         (R_RISCV_32): Likewise.
20575         (R_RISCV_64): Likewise.
20576         (R_RISCV_RELATIVE): Likewise.
20577         (R_RISCV_COPY): Likewise.
20578         (R_RISCV_JUMP_SLOT): Likewise.
20579         (R_RISCV_TLS_DTPMOD32): Likewise.
20580         (R_RISCV_TLS_DTPMOD64): Likewise.
20581         (R_RISCV_TLS_DTPREL32): Likewise.
20582         (R_RISCV_TLS_DTPREL64): Likewise.
20583         (R_RISCV_TLS_TPREL32): Likewise.
20584         (R_RISCV_TLS_TPREL64): Likewise.
20585         * Makerules (make-link-multidir): Make directories before linking into
20586         them.
20587         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20588         define.
20589         (VDSO_HASH_LINUX_4_15): Likewise.
20590         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20591         in subdirectories of lib.
20592         * nptl/Makefile (/librt.so): Always depend on
20593         "$(shared-thread-library)".
20594
20595 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20596
20597         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20598         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20599         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20600         (___tls_get_addr).
20601         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20602         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20603         "-O2 -march=i686".
20604         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20605         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20606         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20607         * sysdeps/gnu/glob-lstat-compat.c: New file.
20608         * sysdeps/gnu/glob64-lstat-compat.c: New file.
20609         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20610
20611 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20612
20613         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20614         Reserve 16 chars to reloc_addr before calling _itoa_word.
20615
20616 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20617
20618         [BZ #22678]
20619         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20620         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20621
20622         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20623         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20624
20625         * resource/tst-getrlimit.c: Add copyright header.
20626
20627 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20628             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20629
20630         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20631         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20632         Define __GI_getrlimit64 as weak alias of __getrlimit64.
20633         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20634         instead.
20635         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20636         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20637         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20638         RLIM64_INFINITY): Fix values to match the kernel ones.
20639         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20640         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
20641         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
20642         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20643         getrlimit64@@GLIBC_2_27.
20644         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20645         and setrlimit64.
20646         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20647         getrlimit, setrlimit, getrlimit64 and setrlimit64.
20648         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20649         setrlimit, getrlimit64 and setrlimit64.
20650
20651 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20652
20653         [BZ #22648]
20654         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20655         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20656
20657 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
20658
20659         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20660         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20661         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20662
20663 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20664
20665         [BZ #15479]
20666         [BZ #22666]
20667         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20668         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20669
20670         [BZ #15479]
20671         [BZ #22665]
20672         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20673         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20674         * sysdeps/alpha/fpu/s_floor.c: Likewise.
20675         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20676
20677 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20678
20679         [BZ #22667]
20680         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20681         Align the stack before calling exit.
20682         * stdlib/tst-makecontext-align.c: New file.
20683         * stdlib/Makefile (tests): Add tst-makecontext-align.
20684
20685 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20686
20687         Add support for calling dlvsym from libc.so.
20688         * include/dlfcn.h (__libc_dlvsym): Declare.
20689         * elf/Makefile (tests-static-internal): Add
20690         tst-libc_dlvsym-static.
20691         (tests-internal): Add tst-libc_dlvsym.
20692         (modules-names): Add tst-libc_dlvsym-dso.
20693         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20694         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20695         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20696         object tst-libc_dlvsym-dso.so needs to be built before running
20697         these tests.
20698         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20699         * elf/Versions: Export __libc_dlvsym.
20700         * elf/dl-libc.c (struct do_dlvsym_args): New.
20701         (do_dlvsym, __libc_dlvsym): New functions.
20702         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20703         (_dl_open_hook2): New variable.
20704         (__libc_register_dl_open_hook): Set it.
20705         * elf/tst-libc_dlvsym-dso.c: New file.
20706         * elf/tst-libc_dlvsym-static.c: Likewise.
20707         * elf/tst-libc_dlvsym.c: Likewise.
20708         * elf/tst-libc_dlvsym.h: Likewise.
20709
20710 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20711
20712         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20713         include <sys/mount.h>.
20714
20715 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
20716
20717         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20718         Add __NO_MATH_ERRNO__ check.
20719
20720 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20721
20722         * sysdeps/mips/mips32/libm-test-ulps: Update.
20723         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20724
20725 2018-01-02  Florian Weimer  <fweimer@redhat.com>
20726
20727         * misc/tst-pselect.c: Add copyright header.
20728
20729 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20730
20731         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20732         comment.
20733         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20734         comment.
20735         (settrlimit): Rename into setrlimit.
20736         (__sttrlimit): Rename into __setrlimit.
20737
20738         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20739         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20740         never defined in that case.
20741
20742 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20743
20744         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20745
20746         * sysdeps/arm/libm-test-ulps: Update.
20747
20748         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20749         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20750
20751 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20752
20753         * NEWS: Add cosf and sincosf to list of optimized functions.
20754
20755 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20756
20757         [BZ #22660]
20758         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20759         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20760         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20761         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20762
20763 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
20764
20765         [BZ #22433]
20766         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20767
20768         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20769         making a copy of it.
20770
20771 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
20772
20773         * manual/texinfo.tex: Update to version 2017-12-26.21 with
20774         trailing whitespace removed.
20775         * scripts/config.guess: Update to version 2018-01-01.
20776         * scripts/config.sub: Update to version 2018-01-01.
20777         * scripts/move-if-change: Update from gnulib.
20778
20779         * NEWS: Update copyright dates.
20780         * catgets/gencat.c (print_version): Likewise.
20781         * csu/version.c (banner): Likewise.
20782         * debug/catchsegv.sh: Likewise.
20783         * debug/pcprofiledump.c (print_version): Likewise.
20784         * debug/xtrace.sh (do_version): Likewise.
20785         * elf/ldconfig.c (print_version): Likewise.
20786         * elf/ldd.bash.in: Likewise.
20787         * elf/pldd.c (print_version): Likewise.
20788         * elf/sotruss.sh: Likewise.
20789         * elf/sprof.c (print_version): Likewise.
20790         * iconv/iconv_prog.c (print_version): Likewise.
20791         * iconv/iconvconfig.c (print_version): Likewise.
20792         * locale/programs/locale.c (print_version): Likewise.
20793         * locale/programs/localedef.c (print_version): Likewise.
20794         * login/programs/pt_chown.c (print_version): Likewise.
20795         * malloc/memusage.sh (do_version): Likewise.
20796         * malloc/memusagestat.c (print_version): Likewise.
20797         * malloc/mtrace.pl: Likewise.
20798         * manual/libc.texinfo: Likewise.
20799         * nptl/version.c (banner): Likewise.
20800         * nscd/nscd.c (print_version): Likewise.
20801         * nss/getent.c (print_version): Likewise.
20802         * nss/makedb.c (print_version): Likewise.
20803         * posix/getconf.c (main): Likewise.
20804         * scripts/test-installation.pl: Likewise.
20805         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20806
20807         * All files with FSF copyright notices: Update copyright dates
20808         using scripts/update-copyrights.
20809         * locale/programs/charmap-kw.h: Regenerated.
20810         * locale/programs/locfile-kw.h: Likewise.
20811
20812 2017-12-31  Zack Weinberg  <zackw@panix.com>
20813
20814         * libio/bits/libio-ldbl.h: Correct check for improper
20815         inclusion.  Add own multiple include guard.
20816
20817 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
20818             Dmitry V. Levin  <ldv@altlinux.org>
20819
20820         [BZ #22625]
20821         CVE-2017-16997
20822         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20823         string token expansion. Check for NULL pointer or empty string possibly
20824         returned by expand_dynamic_string_token.
20825         (decompose_rpath): Check for empty path after dynamic string
20826         token expansion.
20827
20828 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
20829
20830         [BZ #22433]
20831         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20832
20833         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20834         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20835         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
20836         and PTRACE_SYSCALL.
20837         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20838         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20839         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20840         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20841         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20842         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20843
20844         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20845         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20846         __ptrace_peeksiginfo_flags, ptrace): Move to ...
20847         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20848         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20849         bits/ptrace-shared.h.
20850         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20851         <bits/ptrace-shared.h>.
20852         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20853         __ptrace_peeksiginfo_flags, ptrace): Remove.
20854         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20855         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20856         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20857         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20858         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20859
20860 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20861
20862         [BZ #17804]
20863         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20864         end of the loop. Improve comments.
20865
20866 2017-12-29  Zack Weinberg  <zackw@panix.com>
20867
20868         [BZ #22615]
20869         * manual/errno.texi (Checking for Errors): Explicitly say that errno
20870         might be set on success.
20871
20872 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20873
20874         [BZ #22611]
20875         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20876         is unchanged on success.
20877
20878 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
20879
20880         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20881         updated.
20882         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20883         expand_dynamic_string_token): Likewise.
20884         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20885         is_path argument.
20886
20887         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20888         contains ':'.
20889
20890         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20891         is set and name contains ':', and all code depending on these checks.
20892
20893 2017-12-24  Zack Weinberg  <zackw@panix.com>
20894
20895         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20896         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20897         respectively.
20898         * libio/libio.h: Rename the original version of this file to
20899         libio/bits/libio.h.  Error out if not included by stdio.h or the
20900         stub libio.h.
20901         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
20902         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
20903         if not included by bits/libio.h or the stub _G_config.h.
20904         * sysdeps/unix/sysv/linux/_G_config.h: Move to
20905         sysdeps/unix/sysv/linux/bits.  Error out if not included by
20906         bits/libio.h or the stub _G_config.h.
20907         * libio/stdio.h: Include bits/libio.h, not libio.h.
20908         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20909         well as libio.h and _G_config.h.
20910
20911         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20912         * libio/strfile.h, stdio-common/vfscanf.c
20913         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20914         Include stdio.h, not _G_config.h nor libio.h.
20915         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20916         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20917
20918         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20919
20920 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
20921
20922         [BZ #22347]
20923         * stdlib/getrandom.c (getrandom): Fix comment.
20924         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20925
20926 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
20927
20928         [BZ #21161]
20929         * manual/arith.texi (strtoul): Fix a typo.
20930
20931         [BZ #22596]
20932         * manual/arith.texi (finite): Fix the description of the return
20933         value.
20934
20935 2017-12-22  Eric Blake  <ebb9@byu.net>
20936
20937         Avoid gcc warnings on cygwin
20938         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20939         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20940         Avoid unused variable.
20941
20942 2017-12-22  Florian Weimer  <fweimer@redhat.com>
20943
20944         * io/Makefile (routines): Add copy_file_range.
20945         (tests): Add tst-copy_file_range.
20946         (tests-static, tests-internal): Add tst-copy_file_range-compat.
20947         * io/Versions (GLIBC_2.27): Export copy_file_range.
20948         * io/copy_file_range-compat.c: New file.
20949         * io/copy_file_range.c: Likewise.
20950         * io/tst-copy_file_range-compat.c: Likewise.
20951         * io/tst-copy_file_range.c: Likewise.
20952         * manual/llio.texi (Copying File Data): New section.
20953         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20954         * support/Makefile (libsupport-routines): Add support-xfstat,
20955         xftruncate, xlseek.
20956         * support/support-xfstat.c: New file.
20957         * support/xftruncate.c: Likewise.
20958         * support/xlseek.c: Likewise.
20959         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20960         * sysdeps/unix/sysv/linux/**.abilist: Update.
20961         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20962
20963 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20964
20965         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20966         disable-multi-arch variant to aarch64-linux-gnu.
20967
20968 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
20969
20970         * manual/texinfo.tex: Update to version 2017-12-18.20 with
20971         trailing whitespace removed.
20972         * scripts/config.guess: Update to version 2017-12-17.
20973         * scripts/config.sub: Update to version 2017-11-23.
20974         * scripts/install-sh: Update to version 2017-09-23.17.
20975         * scripts/move-if-change: Update to version 2017-09-13 06:45.
20976
20977 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20978
20979         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20980         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20981         * sysdeps/tile/_mcount.S (__mcount): Likewise.
20982         * sysdeps/tile/crti.S (_init, _fini): Likewise.
20983         * sysdeps/tile/crtn.S: Likewise.
20984         * sysdeps/tile/dl-start.S (_start): Likewise.
20985         * sysdeps/tile/dl-trampoline.S: Likewise.
20986         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20987         * sysdeps/tile/start.S (_start): Likewise.
20988         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20989         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20990         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20991         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20992         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20993         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20994         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20995
20996         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20997         comment.
20998         * sysdeps/tile/preconfigure: Remove tilegx folder.
20999         * sysdeps/tile/tilegx/Implies: Move definitions to ...
21000         * sysdeps/tile/Implies: ... here.
21001         * sysdeps/tile/tilegx/Makefile: Move rules to ...
21002         * sysdeps/tile/Makefile: ... here.
21003         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
21004         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
21005         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
21006         * sysdeps/tile/bits/wordsize.h: ... here.
21007         * sysdeps/tile/tilegx/*: Move to ...
21008         * sysdeps/tile/*: ... here.
21009         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
21010         * sysdeps/tile/tilegx32/Implies: ... here.
21011         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
21012         * sysdeps/tile/tilegx64/Implies: ... here.
21013         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
21014         to ...
21015         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
21016         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
21017         * sysdeps/unix/sysv/linux/tile/*: ... here.
21018         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
21019         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
21020         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
21021         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
21022
21023         * README: Remove tilepro-*-linux-gnu from supported architecture.
21024         * scripts/build-many-glibcs.py: Likewise.
21025         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
21026         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
21027         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
21028         elf_machine_matches_host, elf_machine_dynamic,
21029         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
21030         howto, elf_machine_rela): Likewise.
21031         * sysdeps/tile/dl-start.S (_start): Likewise.
21032         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
21033         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
21034         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
21035         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
21036         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
21037         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
21038         Likewise.
21039         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
21040         * sysdeps/tile/preconfigure: Likewise.
21041         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
21042         POINTER_CHK_GUARD): Likewise.
21043         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
21044         * sysdeps/tile/start.S (_start): Likewise.
21045         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
21046         Likewise.
21047         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
21048         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
21049         CMOVNEZ): Remove.
21050         * sysdeps/unix/sysv/linux/tile/bits/environments.h
21051         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
21052         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
21053         Likewise.
21054         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
21055         * sysdeps/tile/tilepro/Implies: Remove file.
21056         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
21057         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
21058         * sysdeps/tile/tilepro/memchr.c: Likewise.
21059         * sysdeps/tile/tilepro/memcpy.S: Likewise.
21060         * sysdeps/tile/tilepro/memset.c: Likewise.
21061         * sysdeps/tile/tilepro/memusage.h: Likewise.
21062         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
21063         * sysdeps/tile/tilepro/strchr.c: Likewise.
21064         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
21065         * sysdeps/tile/tilepro/strlen.c: Likewise.
21066         * sysdeps/tile/tilepro/strrchr.c: Likewise.
21067         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
21068         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
21069         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
21070         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
21071         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
21072         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
21073         Likewise.
21074         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
21075         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21076         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
21077         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
21078         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21079         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
21080         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
21081         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
21082         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
21083         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
21084         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
21085         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
21086         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
21087         tilepro mention in comment.
21088
21089         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
21090         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
21091         * nptl/pthread_join_common.c: New file: common function used on
21092         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
21093         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
21094         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
21095         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21096         (cleanup): Move definition to pthread_join_common.c.
21097         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
21098         Remove superflous checks.
21099         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
21100         Likewise.
21101
21102 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21103
21104         * sysdeps/aarch64/libm-test-ulps: Update.
21105
21106 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21107
21108         * sysdeps/aarch64/memset.S (MEMSET): Define.
21109
21110 2017-12-20  Florian Weimer  <fweimer@redhat.com>
21111
21112         [BZ #22635]
21113         nptl: Provide full implementation of pthread_self in libc.so.
21114         * nptl/Makefile (routines): Add pthread_self.
21115         (libpthread-routines): Replace pthread_self with
21116         compat-pthread_self.
21117         * nptl/forward.c (pthread_self): Remove.
21118         * nptl/nptl-init.c (pthread_functions): Do not initialize
21119         ptr_pthread_self.
21120         * nptl/pthread_self.c (pthread_self): Remove weak alias.
21121         * nptl/compat-pthread_self.c: New file.
21122         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
21123         Remove ptr_pthread_self.
21124
21125 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
21126
21127         * posix/regcomp.c: Fix spelling in comments.
21128         * posix/regex.h: Likewise.
21129         * posix/regex_internal.c: Likewise.
21130         * posix/regexec.c: Likewise.
21131
21132 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
21133
21134         [BZ #22377]
21135         * math/Makefile [C++] (tests): Add test for iseqsig.
21136         * math/math.h [C++] (iseqsig): New implementation, which does
21137         not rely on __MATH_TG/__builtin_types_compatible_p.
21138         * math/test-math-iseqsig.cc: New file.
21139         * sysdeps/powerpc/powerpc64le/Makefile
21140         (CFLAGS-test-math-iseqsig.cc): New variable.
21141
21142 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
21143
21144         * elf/dl-load.c (is_trusted_path): Remove.
21145         (fillin_rpath): Remove check_trusted argument and its use,
21146         all callers changed.
21147
21148 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21149
21150         [BZ #22630]
21151         * Makeconfig (link-pie-before-libc): Replace -pie with
21152         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
21153         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
21154         (tst-dlopen-aout-no-pie): New.
21155         (LDFLAGS-tst-prelink): Removed.
21156         (tst-prelink-no-pie): New.
21157         (LDFLAGS-tst-main1): Removed.
21158         (tst-main1-no-pie): New.
21159         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
21160         (tst-gmon-no-pie): New.
21161
21162 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21163
21164         * manual/install.texi: Document that --enable-static-pie
21165         implies PIE.
21166         * INSTALL: Regenerated.
21167
21168 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21169
21170         [BZ #21309]
21171         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
21172         unsigned.
21173
21174 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21175
21176         Revert:
21177
21178         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21179
21180         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21181
21182         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21183
21184         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21185         <errno.h>.  Include "eexp.tbl".
21186         (half): New constant.
21187         (one): Likewise.
21188         (__ieee754_exp): Rewrite.
21189         (__slowexp): Remove prototype.
21190         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21191         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21192         * sysdeps/i386/fpu/slowexp.c: Likewise.
21193         * sysdeps/ia64/fpu/slowexp.c: Likewise.
21194         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21195         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21196         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21197         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21198         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21199         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21200         comment.
21201         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21202         (CPPFLAGS-slowexp.c): Remove variable.
21203         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21204         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21205         (CFLAGS-slowexp-fma.c): Remove variable.
21206         (CFLAGS-slowexp-fma4.c): Likewise.
21207         (CFLAGS-slowexp-avx.c): Likewise.
21208         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21209         define as macro.
21210         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21211         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21212         * math/Makefile (type-double-routines): Remove slowexp.
21213         * manual/probes.texi (slowexp_p6): Remove.
21214         (slowexp_p32): Likewise.
21215
21216 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21217
21218         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21219         arithmetic.
21220
21221         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21222
21223 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21224
21225         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21226
21227 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21228
21229         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21230         <errno.h>.  Include "eexp.tbl".
21231         (half): New constant.
21232         (one): Likewise.
21233         (__ieee754_exp): Rewrite.
21234         (__slowexp): Remove prototype.
21235         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21236         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21237         * sysdeps/i386/fpu/slowexp.c: Likewise.
21238         * sysdeps/ia64/fpu/slowexp.c: Likewise.
21239         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21240         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21241         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21242         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21243         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21244         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21245         comment.
21246         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21247         (CPPFLAGS-slowexp.c): Remove variable.
21248         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21249         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21250         (CFLAGS-slowexp-fma.c): Remove variable.
21251         (CFLAGS-slowexp-fma4.c): Likewise.
21252         (CFLAGS-slowexp-avx.c): Likewise.
21253         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21254         define as macro.
21255         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21256         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21257         * math/Makefile (type-double-routines): Remove slowexp.
21258         * manual/probes.texi (slowexp_p6): Remove.
21259         (slowexp_p32): Likewise.
21260
21261 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21262             James Clarke  <jrtc27@jrtc27.com>
21263
21264         [BZ #22603]
21265         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
21266         addition.
21267
21268 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21269
21270         [BZ #22605]
21271         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
21272         code.
21273
21274 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21275
21276         [BZ #22563]
21277         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21278         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21279         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21280         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21281         to feature_1.
21282
21283 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
21284
21285         [BZ #22563]
21286         * bits/types/__cancel_jmp_buf_tag.h: New file.
21287         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21288         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21289         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21290         * nptl/Makefile (headers): Add
21291         bits/types/__cancel_jmp_buf_tag.h.
21292         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21293         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21294         * sysdeps/nptl/pthread.h: Include
21295         <bits/types/__cancel_jmp_buf_tag.h>.
21296         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21297         __cancel_jmp_buf.
21298         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21299
21300 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21301
21302         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21303         --enable-static-pie variants to x86_64, x32 and i686.
21304
21305 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21306
21307         [BZ #22631]
21308         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21309         argument for attrubutes.  All callers changed.
21310         (__inline_mathop1): Likewise.  All callers changed.
21311         (__inline_mathop): Likewise.  All callers changed.
21312         [__USE_MISC] (scalbn): Use __inline_forward instead of
21313         __inline_forward_c.
21314         [__USE_ISOC99] (scalbln): Likewise.
21315         [__USE_ISOC99] (nearbyint): Likewise.
21316         [__USE_ISOC99] (lrint): Likewise.
21317         [__USE_MISC] (scalbnf): Likewise.
21318         [__USE_ISOC99] (scalblnf): Likewise.
21319         [__USE_ISOC99] (nearbyintf): Likewise.
21320         [__USE_ISOC99] (lrintf): Likewise.
21321         [__USE_MISC] (scalbnl): Likewise.
21322         [__USE_ISOC99] (scalblnl): Likewise.
21323         [__USE_ISOC99] (nearbyintl): Likewise.
21324         [__USE_ISOC99] (lrintl): Likewise.
21325         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21326         __inline_mathop and __m81_defun changed.
21327
21328         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21329         CPU or FPU for ARM hard-float configurations.
21330
21331 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21332
21333         * nptl/tst-attr3.c: Include <libc-diag.h>.
21334         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21335
21336         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21337
21338         * string/tester.c (test_strncat): Also disable -Warray-bounds
21339         warnings for two tests.
21340
21341 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21342
21343         [BZ #22614]
21344         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21345         $(cc-pie-default) == yes.
21346         * config.make.in (cc-pie-default): New.
21347         * configure.ac (libc_cv_pie_default): Renamed to ...
21348         (libc_cv_cc_pie_default): This.
21349         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21350         * configure: Regenerated.
21351
21352 2017-12-18  Florian Weimer  <fweimer@redhat.com>
21353
21354         [BZ #20204]
21355         ld.so: Harden dl-libc/libdl hooks.
21356         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21357         (rtld_active): New function.
21358         * dlfcn/dladdr.c (__dladdr): Call it.
21359         * dlfcn/dladdr1.c (__dladdr1): Likewise.
21360         * dlfcn/dlclose.c (__dlcose): Likewise.
21361         * dlfcn/dlerror.c (__dlerror): Likewise.
21362         * dlfcn/dlinfo.c (__dlinfo): Likewise.
21363         * dlfcn/dlmopen.c (__dlmopen): Likewise.
21364         * dlfcn/dlopen.c (__dlopen): Likewise.
21365         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21366         * dlfcn/dlsym.c (__dlsym): Likewise.
21367         * dlfcn/dlvsym.c (__dlvsym): Likewise.
21368         * libio/vtables.c (_IO_vtable_check): Likewise.
21369         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21370         (__libc_dlclose): Likewise.
21371         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21372         assignment.
21373
21374 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21375
21376         [BZ #22446]
21377         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21378         buffers for readlink input and output.
21379
21380 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
21381
21382         [BZ #22624]
21383         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21384         inhibit_stack_protector.
21385
21386         [BZ #22624]
21387         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21388         inhibit_stack_protector.
21389
21390 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
21391
21392         [BZ #22627]
21393         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21394         code and invocation.
21395
21396 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21397
21398         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21399
21400 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
21401
21402         [BZ #22505]
21403         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21404
21405 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21406
21407         * sysdeps/s390/fpu/libm-test-ulps: Update.
21408
21409 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21410
21411         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21412
21413 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21414
21415         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21416         constants to s_sincosf.h file.
21417         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21418         * sysdeps/ieee754/flt-32/s_sincosf.c: New
21419         implementation.
21420         * sysdeps/ieee754/flt-32/s_sincosf.h:
21421         New file.
21422
21423 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21424
21425         [BZ #14681]
21426         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21427         before mtrace.
21428
21429 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21430
21431         [BZ #19574]
21432         * INSTALL: Regenerated.
21433         * Makeconfig (real-static-start-installed-name): New.
21434         (pic-default): Updated for --enable-static-pie.
21435         (pie-default): New for --enable-static-pie.
21436         (default-pie-ldflag): Likewise.
21437         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21438         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21439         Replace $(static-start-installed-name) with
21440         $(real-static-start-installed-name).
21441         (+prectorT): Updated for --enable-static-pie.
21442         (+postctorT): Likewise.
21443         (CFLAGS-.o): Add $(pie-default).
21444         (CFLAGS-.op): Likewise.
21445         * NEWS: Mention --enable-static-pie.
21446         * config.h.in (ENABLE_STATIC_PIE): New.
21447         * configure.ac (--enable-static-pie): New configure option.
21448         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21449         (have-static-pie): Likewise.
21450         Enable static PIE if linker supports --no-dynamic-linker.
21451         (ENABLE_STATIC_PIE): New AC_DEFINE.
21452         (enable-static-pie): New LIBC_CONFIG_VAR.
21453         * configure: Regenerated.
21454         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21455         gr$(start-installed-name) for --enable-static-pie.
21456         (extra-objs): Likewise.
21457         (install-lib): Likewise.
21458         (extra-objs): Add static-reloc.o and static-reloc.os
21459         ($(objpfx)$(start-installed-name)): Also depend on
21460         $(objpfx)static-reloc.o.
21461         ($(objpfx)r$(start-installed-name)): New.
21462         ($(objpfx)g$(start-installed-name)): Also depend on
21463         $(objpfx)static-reloc.os.
21464         ($(objpfx)gr$(start-installed-name)): New.
21465         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21466         in libc.a.
21467         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21468         initimage.
21469         * csu/static-reloc.c: New file.
21470         * elf/Makefile (routines): Add dl-reloc-static-pie.
21471         (elide-routines.os): Likewise.
21472         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21473         (tst-tls1-static-non-pie-no-pie): New.
21474         * elf/dl-reloc-static-pie.c: New file.
21475         * elf/dl-support.c (_dl_get_dl_main_map): New function.
21476         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21477         STATIC_PIE_BOOTSTRAP.
21478         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21479         * gmon/Makefile (tests): Add tst-gmon-static-pie.
21480         (tests-static): Likewise.
21481         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21482         (tst-gmon-static-no-pie): New.
21483         (CFLAGS-tst-gmon-static-pie.c): Likewise.
21484         (CRT-tst-gmon-static-pie): Likewise.
21485         (tst-gmon-static-pie-ENV): Likewise.
21486         (tests-special): Likewise.
21487         ($(objpfx)tst-gmon-static-pie.out): Likewise.
21488         (clean-tst-gmon-static-pie-data): Likewise.
21489         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21490         * gmon/tst-gmon-static-pie.c: New file.
21491         * manual/install.texi: Document --enable-static-pie.
21492         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21493         (_dl_get_dl_main_map): Likewise.
21494         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21495         * sysdeps/x86_64/configure.ac: Likewise.
21496         * sysdeps/i386/configure: Regenerated.
21497         * sysdeps/x86_64/configure: Likewise.
21498         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21499         (ASFLAGS-.op): Likewise.
21500
21501 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21502
21503         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21504         * posix/tst-mmap-offset.c (fname): Use /tmp.
21505         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21506
21507 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
21508
21509         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21510
21511 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
21512
21513         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21514         errno.
21515
21516 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21517
21518         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21519         --with-float=hard for arm-linux-gnueabihf configurations.
21520
21521         [BZ #14121]
21522         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21523         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
21524         ($(mo-installed)): Use $(objpfx)%.mo.
21525         (realclean): Remove rule.
21526
21527         * po/Makefile (linguas): Remove rule and dependencies.
21528         (linguas.mo): Likewise.
21529         (.PHONY): Do not depend on linguas and linguas.mo.
21530         (podir): Remove variable.
21531         (pofiles): Likewise.
21532         [$(pofiles)] (%.po): Remove rule.
21533
21534         * sysdeps/sparc/sparc32/Makefile
21535         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21536         start-of-line whitespace in argument of echo.
21537         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21538         with whitespace.  Generate __wrap_.udiv alias.
21539         * sysdeps/sparc/sparc32/rem.S: Regenerated.
21540         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21541         * sysdeps/sparc/sparc32/udiv.S: Likewise.
21542         * sysdeps/sparc/sparc32/urem.S: Likewise.
21543
21544 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21545
21546         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21547         for aligned inputs.
21548
21549 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21550
21551         * benchtests/bench-strcmp.c: Print output in JSON format.
21552
21553         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21554
21555 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21556
21557         [BZ #22607]
21558         CVE-2017-1000409
21559         * elf/dl-load.c (_dl_init_paths): Compute number of components in
21560         the expanded path string.
21561
21562 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21563
21564         [BZ #22606]
21565         CVE-2017-1000408
21566         * elf/dl-load.c (system_dirs): Update comment.
21567         (nsystem_dirs_len): Use array_length.
21568         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21569
21570 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21571
21572         Simplify compiling most of support/ outside of glibc.
21573         * support/check_addrinfo.c: Include <string.h>.
21574         * support/check_dns_packet.c: Likewise.
21575         * support/check_hostent.c: Likewise.
21576         * support/support_can_chroot.c: Include <support/xunistd.h>.
21577         * support/support_format_addrinfo.c: Include <stdlib.h>
21578         * support/support_format_dns_packet.c: Include <stdbool.h>.
21579         * support/support_format_hostent.c: Include <stdlib.h>.
21580         * support/support_format_netent.c: Likewise.
21581         * support/support_write_string.c: Include <support/xunistd.h>.
21582         * support/xdlfcn.c: Include <stddef.h>.
21583
21584 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
21585
21586         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21587
21588 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21589             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21590
21591         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21592         (sysdeps_routines): Add memset-niagara7.
21593         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21594         Likewise.
21595         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21596         file.
21597         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21598         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21599         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21600         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21601         Add niagara7 option.
21602         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21603         memset.
21604
21605         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21606         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21607         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21608         Likewise.
21609         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21610         New file.
21611         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21612         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21613         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21614         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21615         and __memmove_niagara7.
21616         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21617         Add niagara7 option.
21618         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21619         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21620         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21621         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21622         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21623
21624 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
21625
21626         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21627         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21628         * sysdeps/sparc/sparc64/memmove.S: Likewise.
21629         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21630
21631         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21632         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21633         _dl_sparc_cap_flags array.
21634         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21635
21636 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21637
21638         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21639         time whenever possible.
21640
21641 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21642
21643         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21644         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21645
21646 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21647
21648         * soft-fp/fmadf4.c: Move to ....
21649         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21650         * soft-fp/fmasf4.c: Move to ....
21651         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21652         * soft-fp/fmatf4.c: Move to ....
21653         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21654         * sysdeps/ieee754/soft-fp/Makefile: New file.
21655         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21656         * sysdeps/arm/preconfigure: Regenerated.
21657         * sysdeps/arm/nofpu/Implies: New file.
21658         * sysdeps/arm/s_fma.c: Remove file.
21659         * sysdeps/arm/s_fmaf.c: Likewise.
21660         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21661         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21662         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21663         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21664         * sysdeps/microblaze/s_fma.c: Remove file.
21665         * sysdeps/microblaze/s_fmaf.c: Likewise.
21666         * sysdeps/mips/mips32/nofpu/Implies: New file.
21667         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21668         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21669         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21670         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21671         * sysdeps/mips/ieee754/s_fma.c: Remove file.
21672         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21673         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21674         implementation.
21675         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21676         * sysdeps/nios2/s_fma.c: Remove file.
21677         * sysdeps/nios2/s_fmaf.c: Likewise.
21678         * sysdeps/sh/nofpu/Implies: New file.
21679         * sysdeps/sh/s_fma.c: Remove file.
21680         * sysdeps/sh/s_fmaf.c: Likewise.
21681         * sysdeps/tile/Implies: Add ieee754/soft-fp.
21682         * sysdeps/tile/s_fma.c: Remove file.
21683         * sysdeps/tile/s_fmaf.c: Likewise.
21684
21685 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
21686
21687         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21688         Add s_cosf-sse2 and s_cosf-fma.
21689         (CFLAGS-s_cosf-fma.c): New.
21690         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21691         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21692         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21693
21694 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
21695
21696         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21697
21698 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21699
21700         * libio/Makefile (tests): Add tst-bz22415.
21701         (tst-bz22415-ENV): New rule.
21702         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21703         (tests-special): Add tst-bz22415-mem.out.
21704         ($(objpfx)tst-bz22415-mem.out): New rule.
21705         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21706         in case of a successful seek operation.
21707         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21708         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21709         buffer is required.
21710         * libio/tst-bz22415.c: New test.
21711
21712         * sysdeps/ia64/fpu/libm-test-ulps: Update.
21713
21714 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
21715
21716         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21717         __IPC_64 to 0 to avoid IPC_64 being set.
21718
21719 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21720
21721         [BZ #22593]
21722         * math/bits/mathcalls.h (nextafter): Remove const.
21723         (nexttoward): Likewise.
21724
21725 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21726
21727         * configure.ac (--with-fp): Remove configure option.
21728         (with_fp_cond): New variable.
21729         (libc_cv_with_fp): New configure test.  Use this variable instead
21730         of with_fp.
21731         * configure: Regenerated.
21732         * config.make.in (with-fp): Use @libc_cv_with_fp@.
21733         * manual/install.texi (Configuring and compiling): Remove
21734         --without-fp.
21735         * INSTALL: Regenerated.
21736         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21737         * sysdeps/mips/preconfigure (with_fp_cond): Define.
21738         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21739         * sysdeps/sh/preconfigure (with_fp_cond): Define.
21740         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21741         use --without-fp to configure glibc.
21742
21743 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
21744
21745         * manual/locale.texi (nl_langinfo): Fix a typo.
21746
21747 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
21748
21749         [BZ #22588]
21750         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21751
21752 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21753
21754         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21755         (CFLAGS-argp-parse.c): Likewise.
21756         (CFLAGS-argp-fmtstream.c): Likewise.
21757         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21758         (CPPFLAGS-sha512-crypt.c): Likewise.
21759         (CPPFLAGS-md5-crypt.c): Likewise.
21760         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21761         (CFLAGS-stack_chk_fail_local.c): Likewise.
21762         (CFLAGS-backtrace.c): Likewise.
21763         (CFLAGS-sprintf_chk.c): Likewise.
21764         (CFLAGS-snprintf_chk.c): Likewise.
21765         (CFLAGS-vsprintf_chk.c): Likewise.
21766         (CFLAGS-vsnprintf_chk.c): Likewise.
21767         (CFLAGS-asprintf_chk.c): Likewise.
21768         (CFLAGS-vasprintf_chk.c): Likewise.
21769         (CFLAGS-obprintf_chk.c): Likewise.
21770         (CFLAGS-dprintf_chk.c): Likewise.
21771         (CFLAGS-vdprintf_chk.c): Likewise.
21772         (CFLAGS-printf_chk.c): Likewise.
21773         (CFLAGS-fprintf_chk.c): Likewise.
21774         (CFLAGS-vprintf_chk.c): Likewise.
21775         (CFLAGS-vfprintf_chk.c): Likewise.
21776         (CFLAGS-gets_chk.c): Likewise.
21777         (CFLAGS-fgets_chk.c): Likewise.
21778         (CFLAGS-fgets_u_chk.c): Likewise.
21779         (CFLAGS-fread_chk.c): Likewise.
21780         (CFLAGS-fread_u_chk.c): Likewise.
21781         (CFLAGS-swprintf_chk.c): Likewise.
21782         (CFLAGS-vswprintf_chk.c): Likewise.
21783         (CFLAGS-wprintf_chk.c): Likewise.
21784         (CFLAGS-fwprintf_chk.c): Likewise.
21785         (CFLAGS-vwprintf_chk.c): Likewise.
21786         (CFLAGS-vfwprintf_chk.c): Likewise.
21787         (CFLAGS-fgetws_chk.c): Likewise.
21788         (CFLAGS-fgetws_u_chk.c): Likewise.
21789         (CFLAGS-read_chk.c): Likewise.
21790         (CFLAGS-pread_chk.c): Likewise.
21791         (CFLAGS-pread64_chk.c): Likewise.
21792         (CFLAGS-recv_chk.c): Likewise.
21793         (CFLAGS-recvfrom_chk.c): Likewise.
21794         (CFLAGS-tst-longjmp_chk.c): Likewise.
21795         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21796         (CFLAGS-tst-longjmp_chk2.c): Likewise.
21797         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21798         (CFLAGS-tst-longjmp_chk3.c): Likewise.
21799         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21800         (CFLAGS-tst-chk1.c): Likewise.
21801         (CFLAGS-tst-chk2.c): Likewise.
21802         (CFLAGS-tst-chk3.c): Likewise.
21803         (CFLAGS-tst-chk4.cc): Likewise.
21804         (CFLAGS-tst-chk5.cc): Likewise.
21805         (CFLAGS-tst-chk6.cc): Likewise.
21806         (CFLAGS-tst-lfschk1.c): Likewise.
21807         (CFLAGS-tst-lfschk2.c): Likewise.
21808         (CFLAGS-tst-lfschk3.c): Likewise.
21809         (CFLAGS-tst-lfschk4.cc): Likewise.
21810         (CFLAGS-tst-lfschk5.cc): Likewise.
21811         (CFLAGS-tst-lfschk6.cc): Likewise.
21812         (CFLAGS-tst-ssp-1.c): Likewise.
21813         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21814         (CFLAGS-scandir64.c): Likewise.
21815         (CFLAGS-scandir-tail.c): Likewise.
21816         (CFLAGS-scandir64-tail.c): Likewise.
21817         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21818         (CFLAGS-dl-tunables.c): Likewise.
21819         (CFLAGS-dl-runtime.c): Likewise.
21820         (CFLAGS-dl-lookup.c): Likewise.
21821         (CFLAGS-dl-iterate-phdr.c): Likewise.
21822         (CFLAGS-vismain.c): Likewise.
21823         (CFLAGS-tst-linkall-static.c): Likewise.
21824         (CFLAGS-tst-linkall-static.c): Likewise.
21825         (CPPFLAGS-dl-load.c): Likewise.
21826         (CFLAGS-ldconfig.c): Likewise.
21827         (CFLAGS-dl-cache.c): Likewise.
21828         (CFLAGS-cache.c): Likewise.
21829         (CFLAGS-rtld.c): Likewise.
21830         (CFLAGS-multiload.c): Likewise.
21831         (CFLAGS-filtmod1.c): Likewise.
21832         (CFLAGS-tst-align.c): Likewise.
21833         (CFLAGS-tst-align2.c): Likewise.
21834         (CFLAGS-tst-alignmod.c): Likewise.
21835         (CFLAGS-tst-alignmod2.c): Likewise.
21836         (CPPFLAGS-tst-execstack.c): Likewise.
21837         (CFLAGS-tst-ptrguard1-static.c): Likewise.
21838         (CFLAGS-tst-latepthreadmod.c): Likewise.
21839         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21840         (CFLAGS-getgrnam_r.c): Likewise.
21841         (CFLAGS-getgrent_r.c): Likewise.
21842         (CFLAGS-getgrent.c): Likewise.
21843         (CFLAGS-fgetgrent.c): Likewise.
21844         (CFLAGS-fgetgrent_r.c): Likewise.
21845         (CFLAGS-putgrent.c): Likewise.
21846         (CFLAGS-initgroups.c): Likewise.
21847         (CFLAGS-getgrgid.c): Likewise.
21848         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21849         (CFLAGS-getsgent.c): Likewise.
21850         (CFLAGS-fgetsgent.c): Likewise.
21851         (CFLAGS-fgetsgent_r.c): Likewise.
21852         (CFLAGS-putsgent.c): Likewise.
21853         (CFLAGS-getsgnam.c): Likewise.
21854         (CFLAGS-getsgnam_r.c): Likewise.
21855         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21856         (CFLAGS-iconv_charmap.c): Likewise.
21857         (CFLAGS-dummy-repertoire.c): Likewise.
21858         (CFLAGS-charmap.c): Likewise.
21859         (CFLAGS-linereader.c): Likewise.
21860         (CFLAGS-simple-hash.c): Likewise.
21861         (CFLAGS-gconv_conf.c): Likewise.
21862         (CFLAGS-iconvconfig.c): Likewise.
21863         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21864         (CFLAGS-gethstbyad.c): Likewise.
21865         (CFLAGS-gethstbynm_r.c): Likewise.
21866         (CFLAGS-gethstbynm.c): Likewise.
21867         (CFLAGS-gethstbynm2_r.c): Likewise.
21868         (CFLAGS-gethstbynm2.c): Likewise.
21869         (CFLAGS-gethstent_r.c): Likewise.
21870         (CFLAGS-gethstent.c): Likewise.
21871         (CFLAGS-rcmd.c): Likewise.
21872         (CFLAGS-getnetbynm_r.c): Likewise.
21873         (CFLAGS-getnetbynm.c): Likewise.
21874         (CFLAGS-getnetbyad_r.c): Likewise.
21875         (CFLAGS-getnetbyad.c): Likewise.
21876         (CFLAGS-getnetent_r.c): Likewise.
21877         (CFLAGS-getnetent.c): Likewise.
21878         (CFLAGS-getaliasent_r.c): Likewise.
21879         (CFLAGS-getaliasent.c): Likewise.
21880         (CFLAGS-getrpcent_r.c): Likewise.
21881         (CFLAGS-getrpcent.c): Likewise.
21882         (CFLAGS-getservent_r.c): Likewise.
21883         (CFLAGS-getservent.c): Likewise.
21884         (CFLAGS-getprtent_r.c): Likewise.
21885         (CFLAGS-getprtent.c): Likewise.
21886         (CFLAGS-either_ntoh.c): Likewise.
21887         (CFLAGS-either_hton.c): Likewise.
21888         (CFLAGS-getnetgrent.c): Likewise.
21889         (CFLAGS-getnetgrent_r.c): Likewise.
21890         (CFLAGS-tst-checks-posix.c): Likewise.
21891         (CFLAGS-tst-sockaddr.c): Likewise.
21892         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21893         (CFLAGS-tst-translit.c): Likewise.
21894         (CFLAGS-tst-gettext2.c): Likewise.
21895         (CFLAGS-tst-codeset.c): Likewise.
21896         (CFLAGS-tst-gettext3.c): Likewise.
21897         (CFLAGS-tst-gettext4.c): Likewise.
21898         (CFLAGS-tst-gettext5.c): Likewise.
21899         (CFLAGS-tst-gettext6.c): Likewise.
21900         * io/Makefile (CFLAGS-open.c): Likewise.
21901         (CFLAGS-open64.c): Likewise.
21902         (CFLAGS-creat.c): Likewise.
21903         (CFLAGS-creat64.c): Likewise.
21904         (CFLAGS-fcntl.c): Likewise.
21905         (CFLAGS-poll.c): Likewise.
21906         (CFLAGS-ppoll.c): Likewise.
21907         (CFLAGS-lockf.c): Likewise.
21908         (CFLAGS-statfs.c): Likewise.
21909         (CFLAGS-fstatfs.c): Likewise.
21910         (CFLAGS-statvfs.c): Likewise.
21911         (CFLAGS-fstatvfs.c): Likewise.
21912         (CFLAGS-fts.c): Likewise.
21913         (CFLAGS-fts64.c): Likewise.
21914         (CFLAGS-ftw.c): Likewise.
21915         (CFLAGS-ftw64.c): Likewise.
21916         (CFLAGS-lockf.c): Likewise.
21917         (CFLAGS-posix_fallocate.c): Likewise.
21918         (CFLAGS-posix_fallocate64.c): Likewise.
21919         (CFLAGS-fallocate.c): Likewise.
21920         (CFLAGS-fallocate64.c): Likewise.
21921         (CFLAGS-read.c): Likewise.
21922         (CFLAGS-write.c): Likewise.
21923         (CFLAGS-test-stat.c): Likewise.
21924         (CFLAGS-test-lfs.c): Likewise.
21925         * libio/Makefile (CFLAGS-fileops.c): Likewise.
21926         (CFLAGS-fputc.c): Likewise.
21927         (CFLAGS-fputwc.c): Likewise.
21928         (CFLAGS-freopen64.c): Likewise.
21929         (CFLAGS-freopen.c): Likewise.
21930         (CFLAGS-fseek.c): Likewise.
21931         (CFLAGS-fseeko64.c): Likewise.
21932         (CFLAGS-fseeko.c): Likewise.
21933         (CFLAGS-ftello64.c): Likewise.
21934         (CFLAGS-ftello.c): Likewise.
21935         (CFLAGS-fwide.c): Likewise.
21936         (CFLAGS-genops.c): Likewise.
21937         (CFLAGS-getc.c): Likewise.
21938         (CFLAGS-getchar.c): Likewise.
21939         (CFLAGS-getwc.c): Likewise.
21940         (CFLAGS-getwchar.c): Likewise.
21941         (CFLAGS-iofclose.c): Likewise.
21942         (CFLAGS-iofflush.c): Likewise.
21943         (CFLAGS-iofgetpos64.c): Likewise.
21944         (CFLAGS-iofgetpos.c): Likewise.
21945         (CFLAGS-iofgets.c): Likewise.
21946         (CFLAGS-iofgetws.c): Likewise.
21947         (CFLAGS-iofputs.c): Likewise.
21948         (CFLAGS-iofputws.c): Likewise.
21949         (CFLAGS-iofread.c): Likewise.
21950         (CFLAGS-iofsetpos64.c): Likewise.
21951         (CFLAGS-iofsetpos.c): Likewise.
21952         (CFLAGS-ioftell.c): Likewise.
21953         (CFLAGS-iofwrite.c): Likewise.
21954         (CFLAGS-iogetdelim.c): Likewise.
21955         (CFLAGS-iogetline.c): Likewise.
21956         (CFLAGS-iogets.c): Likewise.
21957         (CFLAGS-iogetwline.c): Likewise.
21958         (CFLAGS-ioputs.c): Likewise.
21959         (CFLAGS-ioseekoff.c): Likewise.
21960         (CFLAGS-ioseekpos.c): Likewise.
21961         (CFLAGS-iosetbuffer.c): Likewise.
21962         (CFLAGS-iosetvbuf.c): Likewise.
21963         (CFLAGS-ioungetc.c): Likewise.
21964         (CFLAGS-ioungetwc.c): Likewise.
21965         (CFLAGS-oldfileops.c): Likewise.
21966         (CFLAGS-oldiofclose.c): Likewise.
21967         (CFLAGS-oldiofgetpos64.c): Likewise.
21968         (CFLAGS-oldiofgetpos.c): Likewise.
21969         (CFLAGS-oldiofsetpos64.c): Likewise.
21970         (CFLAGS-oldiofsetpos.c): Likewise.
21971         (CFLAGS-peekc.c): Likewise.
21972         (CFLAGS-putc.c): Likewise.
21973         (CFLAGS-putchar.c): Likewise.
21974         (CFLAGS-putwc.c): Likewise.
21975         (CFLAGS-putwchar.c): Likewise.
21976         (CFLAGS-rewind.c): Likewise.
21977         (CFLAGS-wfileops.c): Likewise.
21978         (CFLAGS-wgenops.c): Likewise.
21979         (CFLAGS-oldiofopen.c): Likewise.
21980         (CFLAGS-iofopen.c): Likewise.
21981         (CFLAGS-iofopen64.c): Likewise.
21982         (CFLAGS-oldtmpfile.c): Likewise.
21983         (CFLAGS-tst_putwc.c): Likewise.
21984         * locale/Makefile (CFLAGS-md5.c): Likewise.
21985         (CFLAGS-charmap.c): Likewise.
21986         (CFLAGS-locfile.c): Likewise.
21987         (CFLAGS-charmap-dir.c): Likewise.
21988         * login/Makefile (CFLAGS-grantpt.c): Likewise.
21989         (CFLAGS-getpt.c): Likewise.
21990         (CFLAGS-pt_chown.c): Likewise.
21991         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21992         (CFLAGS-obstack.c): Likewise.
21993         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21994         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21995         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21996         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21997         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21998         (CFLAGS-test-tgmath.c): Likewise.
21999         (CFLAGS-test-tgmath2.c): Likewise.
22000         (CFLAGS-test-tgmath-ret.c): Likewise.
22001         (CFLAGS-test-powl.c): Likewise.
22002         (CFLAGS-test-snan.c): Likewise.
22003         (CFLAGS-test-signgam-finite.c): Likewise.
22004         (CFLAGS-test-signgam-finite-c99.c): Likewise.
22005         (CFLAGS-test-signgam-finite-c11.c): Likewise.
22006         (CFLAGS-test-signgam-uchar.c): Likewise.
22007         (CFLAGS-test-signgam-uchar-init.c): Likewise.
22008         (CFLAGS-test-signgam-uchar-static.c): Likewise.
22009         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
22010         (CFLAGS-test-signgam-uint.c): Likewise.
22011         (CFLAGS-test-signgam-uint-init.c): Likewise.
22012         (CFLAGS-test-signgam-uint-static.c): Likewise.
22013         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
22014         (CFLAGS-test-signgam-ullong.c): Likewise.
22015         (CFLAGS-test-signgam-ullong-init.c): Likewise.
22016         (CFLAGS-test-signgam-ullong-static.c): Likewise.
22017         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
22018         (CFLAGS-test-math-cxx11.cc): Likewise.
22019         (CFLAGS-test-math-isinff.cc): Likewise.
22020         (CFLAGS-test-math-iszero.cc): Likewise.
22021         (CFLAGS-test-math-issignaling.cc): Likewise.
22022         (CFLAGS-test-math-iscanonical.cc): Likewise.
22023         (CFLAGS-test-iszero-excess-precision.c): Likewise.
22024         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
22025         (CFLAGS-test-flt-eval-method.c): Likewise.
22026         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
22027         (CFLAGS-test-finite-macros.c): Likewise.
22028         * misc/Makefile (CFLAGS-select.c): Likewise.
22029         (CFLAGS-tsearch.c): Likewise.
22030         (CFLAGS-lsearch.c): Likewise.
22031         (CFLAGS-pselect.c): Likewise.
22032         (CFLAGS-readv.c): Likewise.
22033         (CFLAGS-writev.c): Likewise.
22034         (CFLAGS-preadv.c): Likewise.
22035         (CFLAGS-preadv64.c): Likewise.
22036         (CFLAGS-pwritev.c): Likewise.
22037         (CFLAGS-pwritev64.c): Likewise.
22038         (CFLAGS-preadv2.c): Likewise.
22039         (CFLAGS-preadv64v2.c): Likewise.
22040         (CFLAGS-pwritev2.c): Likewise.
22041         (CFLAGS-pwritev64v2.c): Likewise.
22042         (CFLAGS-usleep.c): Likewise.
22043         (CFLAGS-syslog.c): Likewise.
22044         (CFLAGS-error.c): Likewise.
22045         (CFLAGS-getpass.c): Likewise.
22046         (CFLAGS-mkstemp.c): Likewise.
22047         (CFLAGS-mkstemp64.c): Likewise.
22048         (CFLAGS-getsysstats.c): Likewise.
22049         (CFLAGS-getusershell.c): Likewise.
22050         (CFLAGS-err.c): Likewise.
22051         (CFLAGS-tst-tsearch.c): Likewise.
22052         (CFLAGS-msync.c): Likewise.
22053         (CFLAGS-fdatasync.c): Likewise.
22054         (CFLAGS-fsync.c): Likewise.
22055         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
22056         (CFLAGS-unwind.c): Likewise.
22057         (CFLAGS-unwind-forcedunwind.c): Likewise.
22058         (CFLAGS-pthread_cancel.c): Likewise.
22059         (CFLAGS-pthread_setcancelstate.c): Likewise.
22060         (CFLAGS-pthread_setcanceltype.c): Likewise.
22061         (CFLAGS-cancellation.c): Likewise.
22062         (CFLAGS-libc-cancellation.c): Likewise.
22063         (CFLAGS-pthread_exit.c): Likewise.
22064         (CFLAGS-forward.c): Likewise.
22065         (CFLAGS-pthread_testcancel.c): Likewise.
22066         (CFLAGS-pthread_join.c): Likewise.
22067         (CFLAGS-pthread_timedjoin.c): Likewise.
22068         (CFLAGS-pthread_once.c): Likewise.
22069         (CFLAGS-pthread_cond_wait.c): Likewise.
22070         (CFLAGS-sem_wait.c): Likewise.
22071         (CFLAGS-sem_timedwait.c): Likewise.
22072         (CFLAGS-fcntl.c): Likewise.
22073         (CFLAGS-lockf.c): Likewise.
22074         (CFLAGS-pread.c): Likewise.
22075         (CFLAGS-pread64.c): Likewise.
22076         (CFLAGS-pwrite.c): Likewise.
22077         (CFLAGS-pwrite64.c): Likewise.
22078         (CFLAGS-wait.c): Likewise.
22079         (CFLAGS-waitpid.c): Likewise.
22080         (CFLAGS-sigwait.c): Likewise.
22081         (CFLAGS-msgrcv.c): Likewise.
22082         (CFLAGS-msgsnd.c): Likewise.
22083         (CFLAGS-tcdrain.c): Likewise.
22084         (CFLAGS-open.c): Likewise.
22085         (CFLAGS-open64.c): Likewise.
22086         (CFLAGS-pause.c): Likewise.
22087         (CFLAGS-recv.c): Likewise.
22088         (CFLAGS-send.c): Likewise.
22089         (CFLAGS-accept.c): Likewise.
22090         (CFLAGS-sendto.c): Likewise.
22091         (CFLAGS-connect.c): Likewise.
22092         (CFLAGS-recvfrom.c): Likewise.
22093         (CFLAGS-recvmsg.c): Likewise.
22094         (CFLAGS-sendmsg.c): Likewise.
22095         (CFLAGS-close.c): Likewise.
22096         (CFLAGS-read.c): Likewise.
22097         (CFLAGS-write.c): Likewise.
22098         (CFLAGS-nanosleep.c): Likewise.
22099         (CFLAGS-sigsuspend.c): Likewise.
22100         (CFLAGS-msync.c): Likewise.
22101         (CFLAGS-fdatasync.c): Likewise.
22102         (CFLAGS-fsync.c): Likewise.
22103         (CFLAGS-pt-system.c): Likewise.
22104         (CFLAGS-tst-cleanup2.c): Likewise.
22105         (CFLAGS-tst-cleanupx2.c): Likewise.
22106         (CFLAGS-flockfile.c): Likewise.
22107         (CFLAGS-ftrylockfile.c): Likewise.
22108         (CFLAGS-funlockfile.c): Likewise.
22109         (CFLAGS-tst-initializers1.c): Likewise.
22110         (CFLAGS-tst-initializers1-c89.c): Likewise.
22111         (CFLAGS-tst-initializers1-c99.c): Likewise.
22112         (CFLAGS-tst-initializers1-c11.c): Likewise.
22113         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
22114         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
22115         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
22116         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
22117         (CFLAGS-nscd_getgr_r.c): Likewise.
22118         (CFLAGS-nscd_gethst_r.c): Likewise.
22119         (CFLAGS-nscd_getai.c): Likewise.
22120         (CFLAGS-nscd_initgroups.c): Likewise.
22121         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
22122         (CFLAGS-pause.c): Likewise.
22123         (CFLAGS-pread.c): Likewise.
22124         (CFLAGS-pread64.c): Likewise.
22125         (CFLAGS-pwrite.c): Likewise.
22126         (CFLAGS-pwrite64.c): Likewise.
22127         (CFLAGS-sleep.c): Likewise.
22128         (CFLAGS-wait.c): Likewise.
22129         (CFLAGS-waitid.c): Likewise.
22130         (CFLAGS-waitpid.c): Likewise.
22131         (CFLAGS-getopt.c): Likewise.
22132         (CFLAGS-wordexp.c): Likewise.
22133         (CFLAGS-sysconf.c): Likewise.
22134         (CFLAGS-pathconf.c): Likewise.
22135         (CFLAGS-fpathconf.c): Likewise.
22136         (CFLAGS-spawn.c): Likewise.
22137         (CFLAGS-spawnp.c): Likewise.
22138         (CFLAGS-spawni.c): Likewise.
22139         (CFLAGS-glob.c): Likewise.
22140         (CFLAGS-glob64.c): Likewise.
22141         (CFLAGS-getconf.c): Likewise.
22142         (CFLAGS-nanosleep.c): Likewise.
22143         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
22144         (CFLAGS-getpwent.c): Likewise.
22145         (CFLAGS-getpw.c): Likewise.
22146         (CFLAGS-fgetpwent_r.c): Likewise.
22147         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
22148         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
22149         (CFLAGS-mq_timedreceive.c): Likewise.
22150         (CFLAGS-mq_timedsend.c): Likewise.
22151         (CFLAGS-clock_nanosleep.c): Likewise.
22152         (CFLAGS-librt-cancellation.c): Likewise.
22153         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
22154         (CFLAGS-getspent.c): Likewise.
22155         (CFLAGS-fgetspent.c): Likewise.
22156         (CFLAGS-fgetspent_r.c): Likewise.
22157         (CFLAGS-putspent.c): Likewise.
22158         (CFLAGS-getspnam.c): Likewise.
22159         (CFLAGS-getspnam_r.c): Likewise.
22160         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
22161         (CFLAGS-sigsuspend.c): Likewise.
22162         (CFLAGS-sigtimedwait.c): Likewise.
22163         (CFLAGS-sigwait.c): Likewise.
22164         (CFLAGS-sigwaitinfo.c): Likewise.
22165         (CFLAGS-sigreturn.c): Likewise.
22166         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
22167         (CFLAGS-vfwprintf.c): Likewise.
22168         (CFLAGS-tmpfile.c): Likewise.
22169         (CFLAGS-tmpfile64.c): Likewise.
22170         (CFLAGS-tempname.c): Likewise.
22171         (CFLAGS-psignal.c): Likewise.
22172         (CFLAGS-vprintf.c): Likewise.
22173         (CFLAGS-cuserid.c): Likewise.
22174         (CFLAGS-errlist.c): Likewise.
22175         (CFLAGS-siglist.c): Likewise.
22176         (CFLAGS-scanf15.c): Likewise.
22177         (CFLAGS-scanf17.c): Likewise.
22178         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
22179         (CFLAGS-msort.c): Likewise.
22180         (CFLAGS-qsort.c): Likewise.
22181         (CFLAGS-system.c): Likewise.
22182         (CFLAGS-fmtmsg.c): Likewise.
22183         (CFLAGS-strfmon.c): Likewise.
22184         (CFLAGS-strfmon_l.c): Likewise.
22185         (CFLAGS-strfromd.c): Likewise.
22186         (CFLAGS-strfromf.c): Likewise.
22187         (CFLAGS-strfroml.c): Likewise.
22188         (CFLAGS-tst-bsearch.c): Likewise.
22189         (CFLAGS-tst-qsort.c): Likewise.
22190         (CFLAGS-tst-makecontext2.c): Likewise.
22191         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
22192         (CFLAGS-xnlm_prot.c): Likewise.
22193         (CFLAGS-xrstat.c): Likewise.
22194         (CFLAGS-xyppasswd.c): Likewise.
22195         (CFLAGS-xklm_prot.c): Likewise.
22196         (CFLAGS-xrex.c): Likewise.
22197         (CFLAGS-xsm_inter.c): Likewise.
22198         (CFLAGS-xmount.c): Likewise.
22199         (CFLAGS-xrusers.c): Likewise.
22200         (CFLAGS-xspray.c): Likewise.
22201         (CFLAGS-xnfs_prot.c): Likewise.
22202         (CFLAGS-xrquota.c): Likewise.
22203         (CFLAGS-xkey_prot.c): Likewise.
22204         (CFLAGS-auth_unix.c): Likewise.
22205         (CFLAGS-key_call.c): Likewise.
22206         (CFLAGS-pmap_rmt.c): Likewise.
22207         (CFLAGS-clnt_perr.c): Likewise.
22208         (CFLAGS-openchild.c): Likewise.
22209         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
22210         (CFLAGS-msgsnd.c): Likewise.
22211         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
22212         * time/Makefile (CFLAGS-tzfile.c): Likewise.
22213         (CFLAGS-tzset.c): Likewise.
22214         (CFLAGS-getdate.c): Likewise.
22215         (CFLAGS-test_time.c): Likewise.
22216         (CPPFLAGS-tst-tzname.c): Likewise.
22217         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
22218         (CFLAGS-zic.c): Likewise.
22219         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
22220         (CFLAGS-wcswidth.c): Likewise.
22221         (CFLAGS-wcstol.c): Likewise.
22222         (CFLAGS-wcstoul.c): Likewise.
22223         (CFLAGS-wcstoll.c): Likewise.
22224         (CFLAGS-wcstoull.c): Likewise.
22225         (CFLAGS-wcstod.c): Likewise.
22226         (CFLAGS-wcstold.c): Likewise.
22227         (CFLAGS-wcstof128.c): Likewise.
22228         (CFLAGS-wcstof.c): Likewise.
22229         (CFLAGS-wcstol_l.c): Likewise.
22230         (CFLAGS-wcstoul_l.c): Likewise.
22231         (CFLAGS-wcstoll_l.c): Likewise.
22232         (CFLAGS-wcstoull_l.c): Likewise.
22233         (CFLAGS-wcstod_l.c): Likewise.
22234         (CFLAGS-wcstold_l.c): Likewise.
22235         (CFLAGS-wcstof128_l.c): Likewise.
22236         (CFLAGS-wcstof_l.c): Likewise.
22237         (CPPFLAGS-tst-wchar-h.c): Likewise.
22238         (CPPFLAGS-wcstold_l.c): Likewise.
22239
22240 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
22241
22242         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
22243
22244 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22245             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22246
22247         * manual/tunables.texi (Hardware Capability Tunables): Document
22248         glibc.tune.cached_memopt.
22249         * sysdeps/powerpc/cpu-features.c: New file.
22250         * sysdeps/powerpc/cpu-features.h: New file.
22251         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
22252         _dl_powerpc_cpu_features.
22253         * sysdeps/powerpc/dl-tunables.list: New file.
22254         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
22255         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
22256         (INIT_ARCH): Initialize use_aligned_memopt.
22257         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
22258         IS_IN(rtld))]: Restrict dl_platform_init availability and
22259         initialize CPU features used by tunables.
22260         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
22261         Add memcpy-power8-cached.
22262         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
22263         __memcpy_power8_cached.
22264         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
22265         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
22266         New file.
22267
22268 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
22269
22270         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
22271         (CFLAGS-noinl-tester.c): Likewise.
22272         (CFLAGS-tst-strlen.c): Likewise.
22273         (CFLAGS-stratcliff.c): Likewise.
22274         (CFLAGS-test-ffs.c): Likewise.
22275         (CFLAGS-tst-inlcall.c): Likewise.
22276         (CFLAGS-tst-xbzero-opt.c): Likewise.
22277         (CFLAGS-memcpy.c): Likewise.
22278         (CFLAGS-wordcopy.c): Likewise.
22279
22280 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22281
22282         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
22283         Store r15 on stack and add cfi rule.
22284         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
22285         Likewise.
22286
22287 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
22288
22289         [BZ #22577]
22290         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
22291         call.
22292
22293 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
22294
22295         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22296         Add s_sinf-sse2 and s_sinf-fma.
22297         (CFLAGS-s_sinf-fma.c): New.
22298         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
22299         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22300         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22301
22302 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
22303
22304         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22305
22306 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22307
22308         [BZ #22568]
22309         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22310         part of result to imaginary part of argument if it is zero and the
22311         real part of the argument is not finite.
22312         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22313         of result to real part of argument if it is zero and the imaginary
22314         part of the argument is not finite.
22315
22316 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
22317
22318         [BZ #22524]
22319         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22320         and to the list of locales to be built for testing.
22321         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22322         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22323         and build the collation rules upon that.
22324
22325 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22326
22327         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22328         * manual/math.texi (Mathematics): Document support for _Float32.
22329         * math/Makefile (test-types): Add float32.
22330         * math/Versions (GLIBC_2.27): Add _Float32 functions.
22331         * stdlib/Versions (GLIBC_2.27): Likewise.
22332         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22333         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22334         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22335         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22336         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22337         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22338         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22339         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22340         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22341         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22342         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22343         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22344         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22345         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22346         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22347         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22348         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22349         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22350         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22351         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22352         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22353         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22354         Likewise.
22355         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22356         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22357         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22358         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22359         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22361         Likewise.
22362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22363         Likewise.
22364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22365         Likewise.
22366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22367         Likewise.
22368
22369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22370         Likewise.
22371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22372         Likewise.
22373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22374         Likewise.
22375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22376         Likewise.
22377         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22378         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22379         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22380         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22381         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22382         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22383         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22384         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22385         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22386         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22387         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22388         Likewise.
22389         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22390         Likewise.
22391         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22392         Likewise.
22393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22394         Likewise.
22395         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22396         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22397         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22398         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22399         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22400         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22401         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22402         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22403
22404 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22405
22406         * stdlib/strtof.c: Include <bits/floatn.h>
22407         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22408         and later undefine as macro.  Define as weak alias if
22409         [!USE_WIDE_CHAR].
22410         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22411         and later undefine as macro.  Define as weak alias if
22412         [USE_WIDE_CHAR].
22413         * stdlib/strtof_l.c: Include <bits/floatn.h>
22414         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22415         and later undefine as macro.  Define as weak alias if
22416         [!USE_WIDE_CHAR].
22417         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22418         and later undefine as macro.  Define as weak alias if
22419         [USE_WIDE_CHAR].
22420
22421         * stdlib/strfromf.c: Include <bits/floatn.h>.
22422         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22423         and later undefine as macro and define as weak alias.
22424
22425         * math/test-float32.h: New file.
22426
22427         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22428         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22429         (libm_alias_float_other_r): Create f32 alias.
22430         (libm_alias_float_r): Use semicolon before call to
22431         libm_alias_float_other_r.
22432
22433         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22434         second argument to libm_alias_float_other.
22435         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22436         second argument to libm_alias_float_other.
22437         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22438         argument to libm_alias_float_other.
22439
22440         [BZ #22561]
22441         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22442         real part of result for argument 0 + i * NaN.
22443         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22444         results for tests of 0 + i * NaN.
22445
22446 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22447
22448         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22449
22450 2017-12-06  David S. Miller  <davem@davemloft.net>
22451
22452         * sysdeps/sparc/fpu/libm-test-ulps: Update
22453         exp_{downward,towardzero,upward} ulps.
22454
22455 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22456
22457         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22458         variables static.
22459
22460         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22461         (Y0_2D): Likewise.
22462         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22463         (Y0_2D): Likewise.
22464         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22465         (Y0_2D): Likewise.
22466         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22467         (Y0_2D): Likewise.
22468
22469 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
22470
22471         [BZ #22515]
22472         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22473         and to the list of locales to be built for testing.
22474         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22475         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22476         and build the collation rules upon that.
22477
22478 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22479
22480         * NEWS: Add sinf to list of optimized functions.
22481
22482 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22483
22484         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22485         (__HAVE_FLOAT32X): Likewise.
22486         * manual/math.texi (Mathematics): Document support for _Float64
22487         and _Float32x.
22488         * math/Makefile (test-types): Add float64 and float32x.
22489         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22490         functions.
22491         * stdlib/Versions (GLIBC_2.27): Likewise.
22492         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22493         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22494         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22495         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22496         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22497         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22498         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22499         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22500         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22501         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22502         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22503         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22504         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22505         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22506         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22507         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22508         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22509         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22510         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22511         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22512         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22513         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22514         Likewise.
22515         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22516         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22517         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22518         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22519         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22521         Likewise.
22522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22523         Likewise.
22524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22525         Likewise.
22526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22527         Likewise.
22528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22529         Likewise.
22530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22531         Likewise.
22532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22533         Likewise.
22534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22535         Likewise.
22536         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22537         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22538         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22539         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22540         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22541         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22542         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22543         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22544         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22545         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22547         Likewise.
22548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22549         Likewise.
22550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22551         Likewise.
22552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22553         Likewise.
22554         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22555         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22556         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22557         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22558         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22559         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22560         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22561         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22562
22563 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22564
22565         * bits/floatn-common.h: Include <bits/long-double.h>.
22566         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22567         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22568         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22569         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22570         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22571         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22572         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22573         (__builtin_huge_valf64): Use __builtin_huge_vall.
22574         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22575         (__builtin_inff64): Use __builtin_infl.
22576         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22577         (__builtin_nanf64): Use __builtin_nanl.
22578         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22579         (__builtin_nansf64): Use __builtin_nansl.
22580
22581 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
22582             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22583             Carlos O'Donnell  <carlos@redhat.com>
22584
22585         * elf/dl-tunables.list: Add elision parameters.
22586         * manual/tunables.texi: Add entries about elision tunable.
22587         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22588         Add callback functions to dynamically enable/disable elision.
22589         Add multiple callbacks functions to set elision parameters.
22590         Deleted __libc_enable_secure check.
22591         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22592         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22593         * configure: Regenerated.
22594         * configure.ac: Option enable_lock_elision was deleted.
22595         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22596         * config.make.in: Remove references to enable_lock_elision.
22597         * manual/install.texi: Elision configure option was removed.
22598         * INSTALL: Regenerated to remove enable_lock_elision.
22599         * nptl/Makefile:
22600         Disable elision so it can verify error case for destroying a mutex.
22601         * sysdeps/powerpc/nptl/elide.h:
22602         Cleanup ENABLE_LOCK_ELISION check.
22603         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22604         * sysdeps/s390/configure: Regenerated.
22605         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22606         * nptl/tst-mutex8.c:
22607         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22608         * sysdeps/powerpc/powerpc32/sysdep.h:
22609         Deleted all ENABLE_LOCK_ELISION checks.
22610         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22611         * sysdeps/powerpc/sysdep.h: Likewise.
22612         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22613         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22614         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22615         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22616         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22617         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22618         enable-lock-elision.
22619
22620 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22621
22622         * stdlib/strtod.c: Include <bits/floatn.h>.
22623         (BUILD_DOUBLE): New macro.
22624         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22625         (strtof64): Define and later undefine as macro.  Define as weak
22626         alias if [!USE_WIDE_CHAR].
22627         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22628         (wcstof64): Define and later undefine as macro.  Define as weak
22629         alias if [USE_WIDE_CHAR].
22630         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22631         (strtof32x): Define and later undefine as macro.  Define as weak
22632         alias if [!USE_WIDE_CHAR].
22633         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22634         (wcstof32x): Define and later undefine as macro.  Define as weak
22635         alias if [USE_WIDE_CHAR].
22636         * stdlib/strtod_l.c: Include <bits/floatn.h>.
22637         (BUILD_DOUBLE): New macro.
22638         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22639         (strtof64_l): Define and later undefine as macro.  Define as weak
22640         alias if [!USE_WIDE_CHAR].
22641         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22642         (wcstof64_l): Define and later undefine as macro.  Define as weak
22643         alias if [USE_WIDE_CHAR].
22644         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22645         (strtof32x_l): Define and later undefine as macro.  Define as weak
22646         alias if [!USE_WIDE_CHAR].
22647         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22648         (wcstof32x_l): Define and later undefine as macro.  Define as weak
22649         alias if [USE_WIDE_CHAR].
22650
22651 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22652
22653         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22654         (reduced): Use ones as double instead of integer.
22655
22656 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22657
22658         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22659
22660 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22661
22662         * stdlib/strfromd.c: Include <bits/floatn.h>.
22663         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22664         and later undefine as macro and define as weak alias.
22665         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22666         Likewise.
22667
22668         * math/test-float32x.h: New file.
22669         * math/test-float64.h: Likewise.
22670
22671         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22672         (libm_alias_double_other_r_f64): New macro.
22673         (libm_alias_double_other_r_f32x): Likewise.
22674         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22675         libm_alias_double_other_r_f32x.
22676         (libm_alias_double_r): Use semicolon before call to
22677         libm_alias_double_other_r.
22678         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22679         <bits/floatn.h>.
22680         (libm_alias_double_other_r_f64): New macro.
22681         (libm_alias_double_other_r_f32x): Likewise.
22682         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22683         libm_alias_double_other_r_f32x.
22684
22685 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
22686
22687         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22688         int.
22689         (SINF_FUNC): Likewise.  Replace floor with simple casts.
22690
22691 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
22692
22693         [BZ #22517]
22694         * localedata/Makefile: Add et_EE.UTF-8 to test-input
22695         and to the list of locales to be built for testing.
22696         * localedata/et_EE.UTF-8.in: New file for testing the collation.
22697         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22698         and build the collation rules upon that.
22699
22700 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
22701
22702         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22703         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22704         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22705         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22706         instead of __insn__xxx.
22707         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22708         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22709         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22710         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22711         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22712         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22713
22714 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22715
22716         Linux: Implement interfaces for memory protection keys
22717         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22718         xsignal, xsysconf.
22719         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22720         * support/xunistd.h (xsysconf): Declare.
22721         * support/xraise.c: New file.
22722         * support/xsigaction.c: Likewise.
22723         * support/xsignal.c: Likewise.
22724         * support/xsysconf.c: Likewise.
22725         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22726         pkey_set, pkey_get, pkey_mprotect.
22727         [misc] (tests): Add tst-pkey.
22728         (tst-pkey): Link with -lpthread.
22729         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22730         pkey_free, pkey_set, pkey_get, pkey_mprotect.
22731         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22732         (PKEY_DISABLE_WRITE): Define.
22733         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22734         Declare.
22735         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22736         (SEGV_PKUERR): Add.
22737         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22738         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22739         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22740         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22741         Add.
22742         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22743         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22744         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22745         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22746         * sysdeps/unix/sysv/linux/**.abilist: Update.
22747
22748 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22749
22750         * support/tst-test_compare.c (subprocess): Use long long instead
22751         of long argument for consistent type width across 32-bit and
22752         64-bit architectures.
22753         (do_test): Adjust expected output.
22754
22755 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22756
22757         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22758         (cosf): Define using libm_alias_float.
22759         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22760         (fabsf): Define using libm_alias_float.
22761         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22762         (fmaf): Define using libm_alias_float.
22763         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22764         (rintf): Define using libm_alias_float.
22765         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22766         (sinf): Define using libm_alias_float.
22767         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22768         <libm-alias-float.h>.
22769         (modff): Define using libm_alias_float.
22770         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22771         <libm-alias-float.h>.
22772         (logbf): Define using libm_alias_float.
22773         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22774         <libm-alias-float.h>.
22775         (ceilf): Define using libm_alias_float.
22776         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22777         <libm-alias-float.h>.
22778         (copysignf): Define using libm_alias_float.
22779         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22780         <libm-alias-float.h>.
22781         (floorf): Define using libm_alias_float.
22782         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22783         <libm-alias-float.h>.
22784         (llrintf): Define using libm_alias_float.
22785         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22786         <libm-alias-float.h>.
22787         (llroundf): Define using libm_alias_float.
22788         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22789         <libm-alias-float.h>.
22790         (lrintf): Define using libm_alias_float.
22791         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22792         <libm-alias-float.h>.
22793         (lroundf): Define using libm_alias_float.
22794         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22795         <libm-alias-float.h>.
22796         (nearbyintf): Define using libm_alias_float.
22797         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22798         <libm-alias-float.h>.
22799         (rintf): Define using libm_alias_float.
22800         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22801         <libm-alias-float.h>.
22802         (roundf): Define using libm_alias_float.
22803         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22804         <libm-alias-float.h>.
22805         (truncf): Define using libm_alias_float.
22806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22807         Include <libm-alias-float.h>.
22808         (ceilf): Define using libm_alias_float.
22809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22810         Include <libm-alias-float.h>.
22811         (copysignf): Define using libm_alias_float.
22812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22813         Include <libm-alias-float.h>.
22814         (floorf): Define using libm_alias_float.
22815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22816         Include <libm-alias-float.h>.
22817         (llrintf): Define using libm_alias_float.
22818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22819         Include <libm-alias-float.h>.
22820         (llroundf): Define using libm_alias_float.
22821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22822         Include <libm-alias-float.h>.
22823         (logbf): Define using libm_alias_float.
22824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22825         Include <libm-alias-float.h>.
22826         (lrintf): Define using libm_alias_float.
22827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22828         Include <libm-alias-float.h>.
22829         (lroundf): Define using libm_alias_float.
22830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22831         Include <libm-alias-float.h>.
22832         (modff): Define using libm_alias_float.
22833         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22834         Include <libm-alias-float.h>.
22835         (roundf): Define using libm_alias_float.
22836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22837         Include <libm-alias-float.h>.
22838         (truncf): Define using libm_alias_float.
22839         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22840         <libm-alias-float.h>.
22841         (llrintf): Define using libm_alias_float.
22842         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22843         <libm-alias-float.h>.
22844         (llroundf): Define using libm_alias_float.
22845         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22846         <libm-alias-float.h>.
22847         (ceilf): Define using libm_alias_float.
22848         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22849         <libm-alias-float.h>.
22850         (floorf): Define using libm_alias_float.
22851         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22852         <libm-alias-float.h>.
22853         (llroundf): Define using libm_alias_float.
22854         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22855         <libm-alias-float.h>.
22856         (lroundf): Define using libm_alias_float.
22857         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22858         <libm-alias-float.h>.
22859         (roundf): Define using libm_alias_float.
22860         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22861         <libm-alias-float.h>.
22862         (truncf): Define using libm_alias_float.
22863         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22864         <libm-alias-float.h>.
22865         (copysignf): Define using libm_alias_float.
22866         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22867         <libm-alias-float.h>.
22868         (llrintf): Define using libm_alias_float.
22869         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22870         <libm-alias-float.h>.
22871         (llroundf): Define using libm_alias_float.
22872         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22873         <libm-alias-float.h>.
22874         (lrintf): Define using libm_alias_float.
22875         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22876         <libm-alias-float.h>.
22877         (lroundf): Define using libm_alias_float.
22878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22879         <libm-alias-float.h>.
22880         (ceilf): Define using libm_alias_float.
22881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22882         <libm-alias-float.h>.
22883         (copysignf): Define using libm_alias_float.
22884         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22885         <libm-alias-float.h>.
22886         (cosf): Define using libm_alias_float.
22887         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22888         <libm-alias-float.h>.
22889         (floorf): Define using libm_alias_float.
22890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22891         <libm-alias-float.h>.
22892         (llrintf): Define using libm_alias_float.
22893         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22894         <libm-alias-float.h>.
22895         (llroundf): Define using libm_alias_float.
22896         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22897         <libm-alias-float.h>.
22898         (logbf): Define using libm_alias_float.
22899         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22900         <libm-alias-float.h>.
22901         (modff): Define using libm_alias_float.
22902         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22903         <libm-alias-float.h>.
22904         (roundf): Define using libm_alias_float.
22905         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22906         <libm-alias-float.h>.
22907         (sinf): Define using libm_alias_float.
22908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22909         <libm-alias-float.h>.
22910         (truncf): Define using libm_alias_float.
22911         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22912         <libm-alias-float.h>.
22913         (ceilf): Define using libm_alias_float.
22914         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22915         <libm-alias-float.h>.
22916         (copysignf): Define using libm_alias_float.
22917         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22918         <libm-alias-float.h>.
22919         (floorf): Define using libm_alias_float.
22920         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22921         <libm-alias-float.h>.
22922         (llrintf): Define using libm_alias_float.
22923         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22924         <libm-alias-float.h>.
22925         (llroundf): Define using libm_alias_float.
22926         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22927         <libm-alias-float.h>.
22928         (nearbyintf): Define using libm_alias_float.
22929         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22930         <libm-alias-float.h>.
22931         (rintf): Define using libm_alias_float.
22932         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22933         <libm-alias-float.h>.
22934         (roundf): Define using libm_alias_float.
22935         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22936         <libm-alias-float.h>.
22937         (truncf): Define using libm_alias_float.
22938         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22939         <libm-alias-float.h>.
22940         (ceilf): Define using libm_alias_float.
22941         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22942         <libm-alias-float.h>.
22943         (floorf): Define using libm_alias_float.
22944         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22945         <libm-alias-float.h>.
22946         (llroundf): Define using libm_alias_float.
22947         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22948         <libm-alias-float.h>.
22949         (roundf): Define using libm_alias_float.
22950         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22951         <libm-alias-float.h>.
22952         (truncf): Define using libm_alias_float.
22953         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22954         <libm-alias-float.h>.
22955         (copysignf): Define using libm_alias_float.
22956         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22957         <libm-alias-float.h>.
22958         (llrintf): Define using libm_alias_float.
22959         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22960         <libm-alias-float.h>.
22961         (llroundf): Define using libm_alias_float.
22962         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22963         <libm-alias-float.h>.
22964         (cosf): Define using libm_alias_float.
22965         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22966         <libm-alias-float.h>.
22967         (llrintf): Define using libm_alias_float.
22968         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22969         <libm-alias-float.h>.
22970         (llroundf): Define using libm_alias_float.
22971         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22972         <libm-alias-float.h>.
22973         (sinf): Define using libm_alias_float.
22974
22975 2017-12-04  Florian Weimer  <fweimer@redhat.com>
22976
22977         * support/check.h (TEST_COMPARE): Define.
22978         (support_test_compare_failure): Declare.
22979         * support/Makefile (libsupport-routines): Add
22980         support_test_compare_failure.
22981         (tests): Add tst-test_compare.
22982         * support /support_test_compare_failure.c: New file.
22983         * support/tst-test_compare.c: Likewise.
22984
22985 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22986
22987         [BZ #22527]
22988         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22989         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22990         available, this rewrite of the collation rules does reproduce
22991         the test file in the same order.
22992
22993 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22994
22995         [BZ #10580]
22996         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22997         digraphs in the month and day names. Using single code points for
22998         digraphs is deprecated.  While there are dedicated Unicode
22999         codepoints, for the digraphs, these are included for backwards
23000         compatibility and modern texts use a sequence of Basic Latin
23001         characters. See: https://www.unicode.org/faq/ligature_digraph.html
23002         This makes the month and day names agree exactly with CLDR now,
23003         CLDR does not use the single code points for the digraphs either.
23004
23005 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
23006
23007         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
23008
23009 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
23010
23011         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
23012         of floor.
23013
23014 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23015
23016         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
23017         Define only for libc.so.
23018
23019 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
23020
23021         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23022         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
23023         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
23024         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
23025         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23026
23027 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23028
23029         [BZ #5997]
23030         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
23031
23032 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
23033
23034         [BZ libc/19170]
23035         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
23036         PREINIT_FUNCTION_WEAK is nonzero.
23037         (gmon_initializer): New function.  Put procedure label for it in
23038         .init_array section.
23039         (_init): Don't call PREINIT_FUNCTION.
23040         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
23041         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
23042         value when map argument is null.
23043
23044         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
23045         depi instruction from PIC pc-relative sequence.
23046         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
23047         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
23048         (elf_machine_load_address): Likewise.
23049         (elf_machine_runtime_setup): Likewise.
23050
23051 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
23052
23053         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
23054         <libm-alias-double.h>.
23055         (logb): Define using libm_alias_double.
23056         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
23057         <libm-alias-double.h>.
23058         (copysign): Define using libm_alias_double.
23059         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
23060         <libm-alias-double.h>.
23061         (llrint): Define using libm_alias_double.
23062         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
23063         <libm-alias-double.h>.
23064         (llround): Define using libm_alias_double.
23065         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
23066         <libm-alias-double.h>.
23067         (lrint): Define using libm_alias_double.
23068         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
23069         <libm-alias-double.h>.
23070         (lround): Define using libm_alias_double.
23071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23072         Include <libm-alias-double.h>.
23073         (copysign): Define using libm_alias_double.
23074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
23075         Include <libm-alias-double.h>.
23076         (llrint): Define using libm_alias_double.
23077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
23078         Include <libm-alias-double.h>.
23079         (llround): Define using libm_alias_double.
23080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
23081         <libm-alias-double.h>.
23082         (logb): Define using libm_alias_double.
23083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
23084         Include <libm-alias-double.h>.
23085         (lrint): Define using libm_alias_double.
23086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
23087         Include <libm-alias-double.h>.
23088         (lround): Define using libm_alias_double.
23089         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
23090         <libm-alias-double.h>.
23091         (llrint): Define using libm_alias_double.
23092         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
23093         <libm-alias-double.h>.
23094         (llround): Define using libm_alias_double.
23095         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
23096         <libm-alias-double.h>.
23097         (llround): Define using libm_alias_double.
23098         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
23099         <libm-alias-double.h>.
23100         (lround): Define using libm_alias_double.
23101         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
23102         <libm-alias-double.h>.
23103         (copysign): Define using libm_alias_double.
23104         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
23105         <libm-alias-double.h>.
23106         (llrint): Define using libm_alias_double.
23107         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
23108         <libm-alias-double.h>.
23109         (llround): Define using libm_alias_double.
23110         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
23111         <libm-alias-double.h>.
23112         (lrint): Define using libm_alias_double.
23113         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
23114         <libm-alias-double.h>.
23115         (lround): Define using libm_alias_double.
23116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
23117         <libm-alias-double.h>.
23118         (copysign): Define using libm_alias_double.
23119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
23120         <libm-alias-double.h>.
23121         (llrint): Define using libm_alias_double.
23122         (lrint): Likewise.
23123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
23124         <libm-alias-double.h>.
23125         (llround): Define using libm_alias_double.
23126         (lround): Likewise.
23127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
23128         <libm-alias-double.h>.
23129         (logb): Define using libm_alias_double.
23130         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
23131         <libm-alias-double.h>.
23132         (copysign): Define using libm_alias_double.
23133         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
23134         <libm-alias-double.h>.
23135         (llrint): Define using libm_alias_double.
23136         (lrint): Likewise.
23137         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
23138         <libm-alias-double.h>.
23139         (llround): Define using libm_alias_double.
23140         (lround): Likewise.
23141         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
23142         <libm-alias-double.h>.
23143         (llround): Define using libm_alias_double.
23144         (lround): Likewise.
23145         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
23146         <libm-alias-double.h>.
23147         (copysign): Define using libm_alias_double.
23148         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
23149         <libm-alias-double.h>.
23150         (llrint): Define using libm_alias_double.
23151         (lrint): Likewise.
23152         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
23153         <libm-alias-double.h>.
23154         (llround): Define using libm_alias_double.
23155         (lround): Likewise.
23156         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
23157         <libm-alias-double.h>.
23158         (llrint): Define using libm_alias_double.
23159         (lrint): Likewise.
23160         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
23161         <libm-alias-double.h>.
23162         (llround): Define using libm_alias_double.
23163         (lround): Likewise.
23164
23165 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
23166
23167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
23168         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
23169         compat symbol based on llround.
23170
23171         * sysdeps/powerpc/power7/fpu/s_logb.c
23172         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
23173         symbol based on __logb, not on logb.
23174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
23175         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
23177         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
23178
23179         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
23180         (rint): Define using libm_alias_double.
23181         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
23182         <libm-alias-double.h>.
23183         (modf): Define using libm_alias_double.
23184         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
23185         <libm-alias-double.h>.
23186         (ceil): Define using libm_alias_double.
23187         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
23188         <libm-alias-double.h>.
23189         (floor): Define using libm_alias_double.
23190         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
23191         <libm-alias-double.h>.
23192         (nearbyint): Define using libm_alias_double.
23193         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
23194         <libm-alias-double.h>.
23195         (rint): Define using libm_alias_double.
23196         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
23197         <libm-alias-double.h>.
23198         (round): Define using libm_alias_double.
23199         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
23200         <libm-alias-double.h>.
23201         (trunc): Define using libm_alias_double.
23202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
23203         <libm-alias-double.h>.
23204         (ceil): Define using libm_alias_double.
23205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
23206         Include <libm-alias-double.h>.
23207         (floor): Define using libm_alias_double.
23208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
23209         <libm-alias-double.h>.
23210         (modf): Define using libm_alias_double.
23211         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
23212         Include <libm-alias-double.h>.
23213         (round): Define using libm_alias_double.
23214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
23215         Include <libm-alias-double.h>.
23216         (trunc): Define using libm_alias_double.
23217         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
23218         <libm-alias-double.h>.
23219         (ceil): Define using libm_alias_double.
23220         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
23221         <libm-alias-double.h>.
23222         (floor): Define using libm_alias_double.
23223         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
23224         <libm-alias-double.h>.
23225         (round): Define using libm_alias_double.
23226         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
23227         <libm-alias-double.h>.
23228         (trunc): Define using libm_alias_double.
23229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
23230         <libm-alias-double.h>.
23231         (ceil): Define using libm_alias_double.
23232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
23233         <libm-alias-double.h>.
23234         (floor): Define using libm_alias_double.
23235         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
23236         <libm-alias-double.h>.
23237         (modf): Define using libm_alias_double.
23238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
23239         <libm-alias-double.h>.
23240         (round): Define using libm_alias_double.
23241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
23242         <libm-alias-double.h>.
23243         (trunc): Define using libm_alias_double.
23244         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
23245         <libm-alias-double.h>.
23246         (ceil): Define using libm_alias_double.
23247         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
23248         <libm-alias-double.h>.
23249         (floor): Define using libm_alias_double.
23250         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
23251         <libm-alias-double.h>.
23252         (nearbyint): Define using libm_alias_double.
23253         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
23254         <libm-alias-double.h>.
23255         (rint): Define using libm_alias_double.
23256         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
23257         <libm-alias-double.h>.
23258         (round): Define using libm_alias_double.
23259         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
23260         <libm-alias-double.h>.
23261         (trunc): Define using libm_alias_double.
23262         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
23263         <libm-alias-double.h>.
23264         (ceil): Define using libm_alias_double.
23265         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
23266         <libm-alias-double.h>.
23267         (floor): Define using libm_alias_double.
23268         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
23269         <libm-alias-double.h>.
23270         (round): Define using libm_alias_double.
23271         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
23272         <libm-alias-double.h>.
23273         (trunc): Define using libm_alias_double.
23274
23275         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
23276         (fabs): Define using libm_alias_double.
23277         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
23278         (fma): Define using libm_alias_double.
23279         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
23280         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
23281         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
23282         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
23283
23284 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23285
23286         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
23287
23288         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
23289         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
23290         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23291
23292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
23293         due redirect macro.
23294
23295 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
23296
23297         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
23298
23299 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23300
23301         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23302         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23303         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23304         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23305
23306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23307         (libm-sysdep_routines): Add s_nearbyintf-generic and
23308         s_nearbyint-generic.
23309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23310         New file.
23311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23313         Likewise.
23314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23315         Likewise.
23316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23317         file.
23318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23319         Likewise.
23320
23321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23322         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23324         file.
23325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23327         Likewise.
23328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23331
23332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23333         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23335         file.
23336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23338         Likewise.
23339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23342
23343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23344         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23346         file.
23347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23349         Likewise.
23350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23353
23354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23355         (sysdep_calls): New rule.
23356         (sysdep_routines): Use sysdep_calls as base.
23357         (libm-sysdep_routines): Add generic rule for symbols shared with
23358         libc.  Add s_copysign-generic and s_copysign-generic objects.
23359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23360         New file.
23361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23363         Likewise.
23364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23367
23368 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
23369
23370         [BZ #22519]
23371         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23372         the list of locales to be built for testing.
23373         * localedata/is_IS.UTF-8.in: New file.
23374         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23375         on iso14651_t1.
23376
23377 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
23378
23379         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23380         <libm-alias-float.h>.
23381         (fabsf): Define using libm_alias_float.
23382
23383 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23384
23385         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23386
23387 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23388
23389         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23390         <libm-alias-float.h>.
23391         (fabsf): Define using libm_alias_float.
23392         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23393         <libm-alias-float.h>.
23394         (lrintf): Define using libm_alias_float.
23395         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23396         <libm-alias-float.h>.
23397         (rintf): Define using libm_alias_float.
23398
23399         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23400         <libm-alias-double.h>.
23401         (fabs): Define using libm_alias_double.
23402         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23403         <libm-alias-double.h>.
23404         (lrint): Define using libm_alias_double.
23405         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23406         <libm-alias-double.h>.
23407         (rint): Define using libm_alias_double.
23408
23409         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23410         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23411         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23412         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23413         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23414         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23415         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23416         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23417         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23418         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23419         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23420         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23421         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23422         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23423         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23424         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23425         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23426         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23427         s_atan_template.c.
23428         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23429         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23430         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23431         s_ceil_template.c.
23432         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23433         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23434         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23435         s_cos_template.c.
23436         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23437         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23438         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23439         s_expm1_template.c.
23440         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23441         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23442         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23443         s_fabs_template.c.
23444         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23445         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23446         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23447         s_floor_template.c.
23448         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23449         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23450         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23451         s_frexp_template.c.
23452         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23453         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23454         s_lrint_template.c.
23455         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23456         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23457         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23458         s_modf_template.c.
23459         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23460         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23461         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23462         s_nearbyint_template.c.
23463         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23464         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23465         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23466         s_remquo_template.c.
23467         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23468         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23469         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23470         s_rint_template.c.
23471         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23472         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23473         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23474         s_sin_template.c.
23475         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23476         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23477         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23478         s_sincos_template.c.
23479         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23480         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23481         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23482         s_tan_template.c.
23483         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23484         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23485         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23486         s_tanh_template.c.
23487         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23488         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23489         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23490         s_trunc_template.c.
23491         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23492         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23493         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23494         s_atan.c instead of including s_atan.c.
23495         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23496         s_atanf.c instead of including s_atanf.c.
23497         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23498         s_atanl.c instead of including s_atanl.c.
23499         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23500         instead of s_atan.c.
23501         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23502         instead of s_atanf.c.
23503         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23504         instead of s_atanl.c.
23505
23506         * scripts/update-copyrights: Do not handle intl/plural.c
23507         specially.
23508
23509 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
23510
23511         [BZ #22432]
23512         * configure.ac (BISON): Require to be present.
23513         * configure: Regenerated.
23514         * intl/Makefile (generated): Add plural.c.
23515         [$(BISON) != no]: Make code unconditional.
23516         (plural.c): Change rule to $(objpfx)plural.c.
23517         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23518         * intl/plural.c: Remove.
23519         * manual/install.texi (Tools for Compilation): Document bison as
23520         required.
23521         * INSTALL: Regenerated.
23522
23523 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23524
23525         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23526         <libm-alias-double.h>.
23527         (llrint): Define using libm_alias_double.
23528         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23529         <libm-alias-float.h>.
23530         (llrintf): Define using libm_alias_float.
23531         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23532         <libm-alias-ldouble.h>.
23533         (llrintl): Define using libm_alias_ldouble.
23534
23535         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23536         declare_mgen_alias instead of weak_alias.
23537         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23538         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23539         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23540
23541 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23542
23543         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23544         Add add_n-generic.
23545         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23546         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23547         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23548
23549         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23550         Add submul_1-generic.
23551         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23552         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23553         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23554
23555         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23556         Add addmul_1-generic.
23557         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23558         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23559         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23560
23561         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23562         Add sub_n-generic.
23563         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23564         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23565         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23566
23567         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23568         Add mul_1-generic.
23569         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23570         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23571         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23572
23573 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23574
23575         According to CLDR, collation rules for Serbian and Bosnian
23576         should be the same as for Croatian.
23577
23578         [BZ #22534]
23579         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23580         and to the list of locales to be built for testing.
23581         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23582         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23583         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23584         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23585
23586 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23587
23588         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23589         to make test case pass.
23590         * localedata/hr_HR.UTF-8.in: Add more test strings.
23591
23592 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23593
23594         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23595
23596 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23597
23598         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23599         the list of locales to built for testing.
23600         * localedata/hr_HR.UTF-8.in: New file.
23601
23602 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23603
23604         [BZ #10580]
23605         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23606         iso14651_t1.
23607         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23608         CLDR (except use ligatures for the digraphs, CLDR does not use
23609         the ligatures), add first_workday, some fixes in the date and time
23610         formats.
23611         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23612         for Đ and đ.
23613         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23614         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23615         Add int_p_cs_precedes and int_n_cs_precedes.
23616         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23617         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23618         LC_MONETARY now).
23619         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23620         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23621         name_miss.
23622         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23623         and lang_lib. Change postal_fmt.
23624
23625 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23626
23627         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23628         <setjmp.h>.
23629         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23630         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23631         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23632         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23633         * sysdeps/generic/setjmpP.h: New file.
23634         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23635         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23636         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23637         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23638         Add jmp_buf-ssp.sym.
23639         (tests): Add tst-saved_mask-1.
23640
23641 2017-11-30  Arjun Shankar  <arjun@redhat.com>
23642
23643         [BZ #22375]
23644         CVE-2017-17426
23645         * malloc/malloc.c (__libc_malloc): Use checked_request2size
23646         instead of request2size.
23647
23648 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23649
23650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23651         (__lllrint): Remove alias.
23652         (lllrint): Likewise.
23653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23654         (__lllrintf): Likewise.
23655         (lllrintf): Likewise.
23656
23657         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23658         <libm-alias-float.h>.
23659         (copysignf): Define using libm_alias_float.
23660         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23661         <libm-alias-float.h>.
23662         (fabsf): Define using libm_alias_float.
23663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23664         Include <libm-alias-float.h>.
23665         (copysignf): Define using libm_alias_float.
23666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23667         <libm-alias-float.h>.
23668         (fabsf): Define using libm_alias_float.
23669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23670         <libm-alias-float.h>.
23671         (fdimf): Define using libm_alias_float.
23672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23673         <libm-alias-float.h>.
23674         (fmaf): Define using libm_alias_float.
23675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23676         <libm-alias-float.h>.
23677         (llrintf): Define using libm_alias_float.
23678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23679         Include <libm-alias-float.h>.
23680         (nearbyintf): Define using libm_alias_float.
23681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23682         <libm-alias-float.h>.
23683         (rintf): Define using libm_alias_float.
23684         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23685         <libm-alias-float.h>.
23686         (llrintf): Define using libm_alias_float.
23687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23688         <libm-alias-float.h>.
23689         (lrintf): Define using libm_alias_float.
23690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23691         <libm-alias-float.h>.
23692         (nearbyintf): Define using libm_alias_float.
23693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23694         <libm-alias-float.h>.
23695         (rintf): Define using libm_alias_float.
23696         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23697         <libm-alias-float.h>.
23698         (ceilf): Define using libm_alias_float.
23699         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23700         <libm-alias-float.h>.
23701         (floorf): Define using libm_alias_float.
23702         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23703         <libm-alias-float.h>.
23704         (fmaf): Define using libm_alias_float.
23705         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23706         <libm-alias-float.h>.
23707         (lrintf): Define using libm_alias_float.
23708         (llrintf): Likewise.
23709         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23710         <libm-alias-float.h>.
23711         (nearbyintf): Define using libm_alias_float.
23712         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23713         <libm-alias-float.h>.
23714         (rintf): Define using libm_alias_float.
23715         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23716         <libm-alias-float.h>.
23717         (truncf): Define using libm_alias_float.
23718         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23719         <libm-alias-float.h>.
23720         (copysignf): Define using libm_alias_float.
23721         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23722         <libm-alias-float.h>.
23723         (fabsf): Define using libm_alias_float.
23724         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23725         <libm-alias-float.h>.
23726         (lrintf): Define using libm_alias_float.
23727         (llrintf): Likewise.
23728         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23729         <libm-alias-float.h>.
23730         (nearbyintf): Define using libm_alias_float.
23731         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23732         <libm-alias-float.h>.
23733         (rintf): Define using libm_alias_float.
23734
23735 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23736
23737         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23738         <libm-alias-double.h>.
23739         (copysign): Define using libm_alias_double.
23740         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23741         <libm-alias-double.h>.
23742         (fabs): Define using libm_alias_double.
23743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23744         Include <libm-alias-double.h>.
23745         (copysign): Define using libm_alias_double.
23746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23747         <libm-alias-double.h>.
23748         (fabs): Define using libm_alias_double.
23749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23750         <libm-alias-double.h>.
23751         (fdim): Define using libm_alias_double.
23752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23753         <libm-alias-double.h>.
23754         (fma): Define using libm_alias_double.
23755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23756         <libm-alias-double.h>.
23757         (llrint): Define using libm_alias_double.
23758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23759         Include <libm-alias-double.h>.
23760         (nearbyint): Define using libm_alias_double.
23761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23762         <libm-alias-double.h>.
23763         (rint): Define using libm_alias_double.
23764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23765         <libm-alias-double.h>.
23766         (fabs): Define using libm_alias_double.
23767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23768         <libm-alias-double.h>.
23769         (llrint): Define using libm_alias_double.
23770         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23771         <libm-alias-double.h>.
23772         (nearbyint): Define using libm_alias_double.
23773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23774         <libm-alias-double.h>.
23775         (rint): Define using libm_alias_double.
23776         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23777         <libm-alias-double.h>.
23778         (ceil): Define using libm_alias_double.
23779         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23780         <libm-alias-double.h>.
23781         (floor): Define using libm_alias_double.
23782         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23783         <libm-alias-double.h>.
23784         (fma): Define using libm_alias_double.
23785         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23786         <libm-alias-double.h>.
23787         (lrint): Define using libm_alias_double.
23788         (llrint): Likewise.
23789         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23790         <libm-alias-double.h>.
23791         (nearbyint): Define using libm_alias_double.
23792         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23793         <libm-alias-double.h>.
23794         (rint): Define using libm_alias_double.
23795         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23796         <libm-alias-double.h>.
23797         (trunc): Define using libm_alias_double.
23798         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23799         <libm-alias-double.h>.
23800         (copysign): Define using libm_alias_double.
23801         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23802         <libm-alias-double.h>.
23803         (fabs): Define using libm_alias_double.
23804         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23805         <libm-alias-double.h>.
23806         (lrint): Define using libm_alias_double.
23807         (llrint): Likewise.
23808         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23809         <libm-alias-double.h>.
23810         (nearbyint): Define using libm_alias_double.
23811         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23812         <libm-alias-double.h>.
23813         (rint): Define using libm_alias_double.
23814
23815         [BZ #22229]
23816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23817         <math_ldbl_opt.h>.
23818         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23819
23820         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23821         SPARC --disable-multi-arch glibc variants.
23822
23823         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23824         <libm-alias-float.h>.
23825         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23826         if [SHARED].
23827         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23828         <libm-alias-float.h>.
23829         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23830         if [SHARED].
23831         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23832         <libm-alias-float.h>.
23833         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23834         if [SHARED].
23835         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23836         <libm-alias-float.h>.
23837         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23838         if [SHARED].
23839         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23840         <libm-alias-float.h>.
23841         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23842         if [SHARED].
23843         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23844         <libm-alias-float.h>.
23845         (ceilf): Define using libm_alias_float.
23846         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23847         <libm-alias-float.h>.
23848         (floorf): Define using libm_alias_float.
23849         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23850         <libm-alias-float.h>.
23851         (fmaf): Define using libm_alias_float.
23852         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23853         <libm-alias-float.h>.
23854         (nearbyintf): Define using libm_alias_float.
23855         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23856         <libm-alias-float.h>.
23857         (rintf): Define using libm_alias_float.
23858         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23859         <libm-alias-float.h>.
23860         (truncf): Define using libm_alias_float.
23861         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23862         (copysignf): Define using libm_alias_float.
23863         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23864         (cosf): Define using libm_alias_float.
23865         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23866         (fabsf): Define using libm_alias_float.
23867         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23868         (fmaxf): Define using libm_alias_float.
23869         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23870         (fminf): Define using libm_alias_float.
23871         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23872         (llrintf): Define using libm_alias_float.
23873         [!__ILP32__] (lrintf): Likewise.
23874         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23875         (sincosf): Define using libm_alias_float.
23876         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23877         (sinf): Define using libm_alias_float.
23878         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23879         (lrintf): Define using libm_alias_float.
23880
23881         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23882         <libm-alias-double.h>.
23883         (atan): Define using libm_alias_double.
23884         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23885         <libm-alias-double.h>.
23886         (ceil): Define using libm_alias_double.
23887         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23888         <libm-alias-double.h>.
23889         (floor): Define using libm_alias_double.
23890         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23891         <libm-alias-double.h>.
23892         (fma): Define using libm_alias_double.
23893         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23894         <libm-alias-double.h>.
23895         (nearbyint): Define using libm_alias_double.
23896         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23897         <libm-alias-double.h>.
23898         (rint): Define using libm_alias_double.
23899         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23900         <libm-alias-double.h>.
23901         (sin): Define using libm_alias_double.
23902         (cos): Likewise.
23903         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23904         <libm-alias-double.h>.
23905         (tan): Define using libm_alias_double.
23906         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23907         <libm-alias-double.h>.
23908         (trunc): Define using libm_alias_double.
23909         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23910         (copysign): Define using libm_alias_double.
23911         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23912         (fabs): Define using libm_alias_double.
23913         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23914         (fmax): Define using libm_alias_double.
23915         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23916         (fmin): Define using libm_alias_double.
23917         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23918         (llrint): Define using libm_alias_double.
23919         [!__ILP32__] (lrint): Likewise.
23920         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23921         (lrint): Define using libm_alias_double.
23922
23923 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23924
23925         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23926         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23927         objects.
23928         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23929         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23930         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23931         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23932         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23933         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23934
23935         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23936         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23937         objects.
23938         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23939         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23940         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23941         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23942         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23943         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23944
23945         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23946         (libm-sysdep_routines): Add s_nearbyint-generic and
23947         s_nearbyintf-generic objects.
23948         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23949         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23950         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23951         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23952         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23953         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23954
23955         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23956         Add s_finitef-generic and s_finite-generic objects.
23957         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23958         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23959         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23960         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23961         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23962         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23963
23964         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23965         Add s_isinff-generic and s_isinf-generic objects.
23966         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23967         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23968         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23969         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23970         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23971         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23972
23973         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23974         Add s_isnanf-generic and s_isnan-generic objects.
23975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23977         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23978         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23979         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23980         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23981
23982         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23983         macro.
23984         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23985         rule.
23986         (sysdep_routines): Use sysdep_calls as base.
23987         (libm-sysdep_routines): Add generic rule for symbols shared with
23988         libc.  Add s_signbit-generic and s_signbitf-generic objects.
23989         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23990         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23991         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23992         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23993         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23994         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23995
23996 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23997
23998         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23999         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
24000         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
24001         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
24002         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
24003         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
24004         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
24005         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
24006         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
24007         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
24008         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
24009         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
24010         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
24011         libm_alias_float_r.
24012         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
24013         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
24014         (logf): Likewise.
24015         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
24016         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
24017         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
24018         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
24019         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
24020         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
24021         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
24022         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
24023         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
24024         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
24025         libm_alias_float.
24026         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
24027         (cosf): Likewise.
24028         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
24029         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
24030         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
24031         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
24032         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
24033         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
24034         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
24035         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
24036         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
24037         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
24038         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
24039         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
24040         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
24041         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
24042         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
24043         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
24044         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
24045         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
24046         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
24047         libm_alias_float.
24048         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
24049         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
24050         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
24051         * sysdeps/ia64/fpu/w_lgammaf_main.c
24052         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
24053         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
24054
24055 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24056             Alexandre Oliva  <aoliva@redhat.com>
24057
24058         [BZ #17750]
24059         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
24060         * localedata/fr_CA.UTF-8.in: New file with test data for backward
24061         accents sorting.
24062         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
24063         sorting.
24064         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
24065         * localedata/locales/de_DE (LC_COLLATE): Likewise.
24066         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
24067         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
24068         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
24069         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
24070         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
24071         instead of “ifdef DIACRIT_BACKWARD”.
24072
24073 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24074
24075         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
24076         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
24077         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
24078         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
24079         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
24080         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
24081         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
24082         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
24083         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
24084         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
24085         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
24086         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
24087         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
24088         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
24089         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
24090         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
24091         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
24092         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
24093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
24094         ($(have-as-vis3) == yes): Remove conditional.
24095         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
24096         Likewise.
24097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
24098         file.
24099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
24100         file.
24101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
24102         file.
24103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
24104         file.
24105         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
24106         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
24107         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
24108         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
24109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
24110         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
24111         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
24112         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
24113
24114 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
24115
24116         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
24117         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
24118         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
24119         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
24120         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
24121         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
24122         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
24123         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
24124         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
24125         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
24126         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
24127         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
24128         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
24129         libm_alias_double_r.
24130         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
24131         (log): Likewise.
24132         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
24133         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
24134         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
24135         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
24136         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
24137         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
24138         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
24139         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
24140         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
24141         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
24142         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
24143         libm_alias_double.
24144         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
24145         (cos): Likewise.
24146         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
24147         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
24148         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
24149         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
24150         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
24151         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
24152         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
24153         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
24154         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
24155         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
24156         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
24157         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
24158         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
24159         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
24160         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
24161         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
24162         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
24163         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
24164         libm_alias_double.
24165         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
24166         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
24167         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
24168         * sysdeps/ia64/fpu/w_lgamma_main.c
24169         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
24170         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
24171
24172 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
24173
24174         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
24175         address of $global$ into %dp register earlier.  Use pc-relative
24176         instruction sequence for PIC case.
24177
24178 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24179
24180         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
24181         (asinhf): Define using libm_alias_float.
24182         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
24183         (atanf): Define using libm_alias_float.
24184         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
24185         (cbrtf): Define using libm_alias_float.
24186         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
24187         (ceilf): Define using libm_alias_float.
24188         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
24189         (copysignf): Define using libm_alias_float.
24190         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
24191         (expm1f): Define using libm_alias_float.
24192         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
24193         (fabsf): Define using libm_alias_float.
24194         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
24195         (floorf): Define using libm_alias_float.
24196         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24197         (fmaxf): Define using libm_alias_float.
24198         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
24199         (fminf): Define using libm_alias_float.
24200         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
24201         (frexpf): Define using libm_alias_float.
24202         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
24203         (llrintf): Define using libm_alias_float.
24204         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
24205         (logbf): Define using libm_alias_float.
24206         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
24207         (lrintf): Define using libm_alias_float.
24208         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
24209         (nearbyintf): Define using libm_alias_float.
24210         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
24211         (remquof): Define using libm_alias_float.
24212         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
24213         (rintf): Define using libm_alias_float.
24214         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
24215         (truncf): Define using libm_alias_float.
24216         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
24217         <libm-alias-float.h>.
24218         (exp2f): Define using libm_alias_float, or libm_alias_float_other
24219         if [SHARED].
24220         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
24221         <libm-alias-float.h>.
24222         (expf): Define using libm_alias_float, or libm_alias_float_other
24223         if [SHARED].
24224         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
24225         <libm-alias-float.h>.
24226         (log2f): Define using libm_alias_float, or libm_alias_float_other
24227         if [SHARED].
24228         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
24229         <libm-alias-float.h>.
24230         (logf): Define using libm_alias_float, or libm_alias_float_other
24231         if [SHARED].
24232         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
24233         <libm-alias-float.h>.
24234         (powf): Define using libm_alias_float, or libm_alias_float_other
24235         if [SHARED].
24236         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
24237         <libm-alias-float.h>.
24238         (cosf): Define using libm_alias_float.
24239         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
24240         <libm-alias-float.h>.
24241         (sincosf): Define using libm_alias_float.
24242         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
24243         <libm-alias-float.h>.
24244         (sinf): Define using libm_alias_float.
24245         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24246         (fmaxf): Define using libm_alias_float.
24247         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
24248         (fminf): Define using libm_alias_float.
24249         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24250         <libm-alias-float.h>.
24251         (fmaf): Define using libm_alias_float.
24252
24253         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
24254         (asinh): Define using libm_alias_double.
24255         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
24256         (atan): Define using libm_alias_double.
24257         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
24258         (cbrt): Define using libm_alias_double.
24259         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
24260         (ceil): Define using libm_alias_double.
24261         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
24262         (copysign): Define using libm_alias_double.
24263         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
24264         (expm1): Define using libm_alias_double.
24265         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
24266         (fabs): Define using libm_alias_double.
24267         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
24268         (fdim): Define using libm_alias_double.
24269         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
24270         (floor): Define using libm_alias_double.
24271         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
24272         (fmax): Define using libm_alias_double.
24273         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
24274         (fmin): Define using libm_alias_double.
24275         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
24276         (frexp): Define using libm_alias_double.
24277         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
24278         (llrint): Define using libm_alias_double.
24279         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
24280         (logb): Define using libm_alias_double.
24281         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
24282         (lrint): Define using libm_alias_double.
24283         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
24284         (nearbyint): Define using libm_alias_double.
24285         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
24286         (remquo): Define using libm_alias_double.
24287         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
24288         (rint): Define using libm_alias_double.
24289         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
24290         (trunc): Define using libm_alias_double.
24291         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
24292         (fmax): Define using libm_alias_double.
24293         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
24294         (fmin): Define using libm_alias_double.
24295         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
24296         (fma): Define using libm_alias_double.
24297
24298 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
24299
24300         [BZ #22370]
24301         * elf/dl-hwcaps.c (ROUND): Removed.
24302         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24303         and ELF_NOTE_NEXT_OFFSET.
24304         * elf/dl-load.c (ROUND): Removed.
24305         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24306         * elf/readelflib.c (ROUND): Removed.
24307         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24308         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24309         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24310         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24311
24312 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24313
24314         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24315         [!__fmaf] (fmaf): Define using libm_alias_float.
24316
24317         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24318         [!__fma] (fma): Define using libm_alias_double.
24319         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24320
24321 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24322
24323         [BZ #22336]
24324         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24325         and implement the collation rules for cs from CLDR on top of that.
24326         * Makefile: Add cs_CZ.UTF-8 to test-input.
24327         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24328
24329 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24330
24331         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24332
24333 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24334             Icarus Sparry  <icarus.w.sparry@intel.com>
24335
24336         * benchtests/Makefile:Add BENCHSET to allow subsets of
24337         benchmarks to be run.
24338         * benchtests/README: Add documentation for: Running subsets of
24339         benchmarks.
24340
24341 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24342
24343         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24344         range of tests names.
24345
24346         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24347         result from property and remove "max", min" and "mean" from
24348         required properties based on benchtests/bench-skeleton.c.
24349
24350 2017-11-28  Florian Weimer  <fweimer@redhat.com>
24351
24352         [BZ #20826]
24353         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24354         due to Internet requirement.
24355         * posix/Makefile (tests): Remove tst-getaddrinfo4,
24356         tst-getaddrinfo5.
24357         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24358
24359 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24360
24361         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24362         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24363         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24364         (sysdep_routines): Add memset-ultra1.
24365         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24366         file.
24367         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24368         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24369         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24370         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24371         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24372         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24373         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24374         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24375
24376         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24377         file.
24378         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24379         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24380         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24381         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24382         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24383         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24384         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24385         macro.
24386         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24387         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24388         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24389         (sysdep_routines): Add memcpy-ultra1.
24390         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24391         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24392
24393 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24394
24395         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24396         (cfloat_versions): Take function argument without trailing 'f'.
24397         Call libm_alias_float_other.
24398         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24399         * sysdeps/alpha/fpu/cargf.c: Likewise.
24400         * sysdeps/alpha/fpu/cimagf.c: Likewise.
24401         * sysdeps/alpha/fpu/conjf.c: Likewise.
24402         * sysdeps/alpha/fpu/crealf.c: Likewise.
24403         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24404         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24405         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24406         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24407         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24408         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24409         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24410         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24411         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24412         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24413         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24414         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24415         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24416         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24417         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24418         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24419         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24420         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24421         (clog10f): Use libm_alias_float_other.
24422         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24423         (ceilf): Define using libm_alias_float.
24424         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24425         (copysignf): Define using libm_alias_float.
24426         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24427         (fabsf): Define using libm_alias_float.
24428         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24429         (floorf): Define using libm_alias_float.
24430         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24431         (fmaxf): Define using libm_alias_float.
24432         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24433         (fminf): Define using libm_alias_float.
24434         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24435         (lrintf): Define using libm_alias_float.
24436         (llrintf): Likewise.
24437         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24438         (lroundf): Define using libm_alias_float.
24439         (llroundf): Likewise.
24440         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24441         (rintf): Define using libm_alias_float.
24442         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24443         (truncf): Define using libm_alias_float.
24444
24445         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24446         (ceilf): Define using libm_alias_float.
24447         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24448         (floorf): Define using libm_alias_float.
24449         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24450         (fmaf): Define using libm_alias_float.
24451         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24452         (fmaxf): Define using libm_alias_float.
24453         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24454         (fminf): Define using libm_alias_float.
24455         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24456         (llrintf): Define using libm_alias_float.
24457         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24458         (llroundf): Define using libm_alias_float.
24459         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24460         (lrintf): Define using libm_alias_float.
24461         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24462         (lroundf): Define using libm_alias_float.
24463         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24464         <libm-alias-float.h>.
24465         (nearbyintf): Define using libm_alias_float.
24466         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24467         (rintf): Define using libm_alias_float.
24468         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24469         (roundf): Define using libm_alias_float.
24470         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24471         (truncf): Define using libm_alias_float.
24472
24473         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24474         (ceil): Define using libm_alias_double.
24475         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24476         (copysign): Define using libm_alias_double.
24477         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24478         (fabs): Define using libm_alias_double.
24479         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24480         (floor): Define using libm_alias_double.
24481         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24482         (fmax): Define using libm_alias_double.
24483         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24484         (fmin): Define using libm_alias_double.
24485         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24486         (lrint): Define using libm_alias_double.
24487         (llrint): Likewise.
24488         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24489         (lround): Define using libm_alias_double.
24490         (llround): Likewise.
24491         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24492         (rint): Define using libm_alias_double.
24493         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24494         (trunc): Define using libm_alias_double.
24495
24496         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24497         (libm_alias_double_r): Add semicolon after weak_alias call.
24498
24499 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24500
24501         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24502         (ceil): Define using libm_alias_double.
24503         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24504         (floor): Define using libm_alias_double.
24505         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24506         (fma): Define using libm_alias_double.
24507         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24508         (fmax): Define using libm_alias_double.
24509         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24510         (fmin): Define using libm_alias_double.
24511         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24512         (llrint): Define using libm_alias_double.
24513         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24514         (llround): Define using libm_alias_double.
24515         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24516         (lrint): Define using libm_alias_double.
24517         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24518         (lround): Define using libm_alias_double.
24519         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24520         (nearbyint): Define using libm_alias_double.
24521         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24522         (rint): Define using libm_alias_double.
24523         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24524         (round): Define using libm_alias_double.
24525         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24526         (trunc): Define using libm_alias_double.
24527
24528 2017-11-27  Florian Weimer  <fweimer@redhat.com>
24529
24530         * sysdeps/unix/sysv/linux/mlock2.c: New file.
24531         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24532         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24533         (tests): Add tst-mlock2.
24534         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24535         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24536         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24537         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24538         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24539         for mlock.  Document mlock2.
24540
24541 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24542
24543         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24544         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24545         Likewise.
24546         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24547         Likewise.
24548         * sysdeps/x86/Makeconfig: New file.
24549         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24550         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24551         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24552         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24553         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24554         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24555         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24556         Likewise.
24557         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24558         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24559         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24560         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24561         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24562         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24563         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24564         * manual/math.texi (Mathematics): Document support for _Float64x.
24565         * math/Versions (GLIBC_2.27): Add _Float64x functions.
24566         * stdlib/Versions (GLIBC_2.27): Likewise.
24567         * wcsmbs/Versions (GLIBC_2.27): Likewise.
24568         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24569         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24570         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24571         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24572         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24573         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24574         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24575         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24576         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24577         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24578         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24580         Likewise.
24581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24582         Likewise.
24583         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24584         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24585         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24586         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24587         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24588         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24589         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24590         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24591         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24592         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24593         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24594         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24595         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24596         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24597
24598 2017-11-27  Andreas Schwab  <schwab@suse.de>
24599
24600         * elf/Makefile (dl-routines): Add dl-sort-maps.
24601         * elf/dl-sort-maps.c: New file.
24602         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24603         (_dl_sort_maps): Declare.
24604         * elf/dl-fini.c (_dl_sort_fini): Remove.
24605         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24606         * elf/dl-close.c (_dl_close_worker): Likewise.
24607         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24608         open-coding it.
24609         * elf/dl-open.c (dl_open_worker): Likewise.
24610
24611 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
24612
24613         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24614         using libm_alias_float128.
24615         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24616         Likewise.
24617         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24618         Likewise.
24619         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24620         (setpayloadsigf128): Likewise.
24621         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24622         Likewise.
24623         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24624         Likewise.
24625
24626         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24627         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24628         -mfloat128 to CFLAGS.
24629         ($(foreach
24630         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24631         Likewise.
24632         (CFLAGS-libm-test-support-float64x.c): New variable.
24633         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24634         $(f128-loader-link) to gnulib-tests.
24635
24636         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24637         (libm_alias_float128_other_r): If
24638         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24639         alias.
24640         (libm_alias_float128_r): Add semicolon after weak_alias call.
24641         * sysdeps/generic/libm-alias-ldouble.h
24642         (libm_alias_ldouble_other_r_f128): New macro.
24643         (libm_alias_ldouble_other_r_f64x): Likewise.
24644         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24645         and libm_alias_ldouble_other_r_f64x.
24646         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24647         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24648         (libm_alias_ldouble_other_r_f128): New macro.
24649         (libm_alias_ldouble_other_r_f64x): Likewise.
24650         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24651         and libm_alias_ldouble_other_r_f64x.
24652
24653         * stdlib/strfroml.c: Always include <stdlib.h>.
24654         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24655         undefine as macro and define as weak alias.
24656         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24657         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24658         <stdlib.h>.
24659         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24660         Define and later undefine as macro and define as weak alias.
24661
24662         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24663         Define and later undefine as macro.  Define as weak alias if
24664         [!USE_WIDE_CHAR].
24665         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24666         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24667         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24668         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24669         Define and later undefine as macro.  Define as weak alias if
24670         [!USE_WIDE_CHAR].
24671         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24672         Define and later undefine as macro.  Define as weak alias if
24673         [USE_WIDE_CHAR].
24674         * sysdeps/ieee754/float128/strtof128_l.c
24675         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24676         Define and later undefine as macro.  Define as weak alias if
24677         [!USE_WIDE_CHAR].
24678         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24679         Define and later undefine as macro.  Define as weak alias if
24680         [USE_WIDE_CHAR].
24681         * sysdeps/ieee754/ldbl-128/strtold_l.c
24682         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24683         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24684         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24685         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24686         * sysdeps/ieee754/ldbl-64-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-96/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
24697         * math/test-float64x.h: New file.
24698         * math/Makefile (type-float64x-yes): New variable.
24699         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24700
24701         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24702         function-like macro.
24703         (min_of_type_): Likewise.
24704         (min_of_type_l): Likewise.
24705         (min_of_type_f128): Likewise.
24706         (min_of_type): Pass () as last argument of __MATH_TG.
24707
24708         * stdlib/tst-strtod-round-skeleton.c
24709         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24710         headers.
24711
24712         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24713         for combinations of long double with _Float64 and _Float64x.
24714
24715         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24716         (__DECL_SIMD_cosf32): Likewise.
24717         (__DECL_SIMD_cosf64): Likewise.
24718         (__DECL_SIMD_cosf32x): Likewise.
24719         (__DECL_SIMD_cosf64x): Likewise.
24720         (__DECL_SIMD_cosf128x): Likewise.
24721         (__DECL_SIMD_sinf16): Likewise.
24722         (__DECL_SIMD_sinf32): Likewise.
24723         (__DECL_SIMD_sinf64): Likewise.
24724         (__DECL_SIMD_sinf32x): Likewise.
24725         (__DECL_SIMD_sinf64x): Likewise.
24726         (__DECL_SIMD_sinf128x): Likewise.
24727         (__DECL_SIMD_sincosf16): Likewise.
24728         (__DECL_SIMD_sincosf32): Likewise.
24729         (__DECL_SIMD_sincosf64): Likewise.
24730         (__DECL_SIMD_sincosf32x): Likewise.
24731         (__DECL_SIMD_sincosf64x): Likewise.
24732         (__DECL_SIMD_sincosf128x): Likewise.
24733         (__DECL_SIMD_logf16): Likewise.
24734         (__DECL_SIMD_logf32): Likewise.
24735         (__DECL_SIMD_logf64): Likewise.
24736         (__DECL_SIMD_logf32x): Likewise.
24737         (__DECL_SIMD_logf64x): Likewise.
24738         (__DECL_SIMD_logf128x): Likewise.
24739         (__DECL_SIMD_expf16): Likewise.
24740         (__DECL_SIMD_expf32): Likewise.
24741         (__DECL_SIMD_expf64): Likewise.
24742         (__DECL_SIMD_expf32x): Likewise.
24743         (__DECL_SIMD_expf64x): Likewise.
24744         (__DECL_SIMD_expf128x): Likewise.
24745         (__DECL_SIMD_powf16): Likewise.
24746         (__DECL_SIMD_powf32): Likewise.
24747         (__DECL_SIMD_powf64): Likewise.
24748         (__DECL_SIMD_powf32x): Likewise.
24749         (__DECL_SIMD_powf64x): Likewise.
24750         (__DECL_SIMD_powf128x): Likewise.
24751
24752         * stdlib/Versions (libc): Move entries for wcstof128 and
24753         wcstof128_l to ....
24754         * wcsmbs/Versions (libc): ... here.
24755         Include <float128-abi.h>.
24756
24757 2017-11-24  Florian Weimer  <fweimer@redhat.com>
24758
24759         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24760         bits/mman-shared.h.
24761         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24762         <bits/mman-shared.h>.
24763         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24764         to ...
24765         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24766         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24767         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24768         <bits/mman-shared.h>.
24769
24770 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24771
24772         [BZ #22457]
24773         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24774         posix_memalign/free.
24775         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24776
24777 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
24778
24779         [BZ #22469]
24780         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24781         and implement the collation rules for pl from CLDR on top of that.
24782         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24783         of locales to be built for testing.
24784         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24785
24786 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
24787
24788         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24789         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24790         libm_alias_ldouble_other.
24791         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24792         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24793         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24794         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24795         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24796         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24797         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24798         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24799         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24800         libm_alias_ldouble_r.
24801         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24802         libm_alias_ldouble_other.
24803         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24804         (log10l): Likewise.
24805         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24806         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24807         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24808         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24809         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24810         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24811         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24812         (atan2l): Likewise.
24813         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24814         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24815         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24816         libm_alias_ldouble.
24817         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24818         (cosl): Likewise.
24819         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24820         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24821         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24822         (expl): Likewise.
24823         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24824         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24825         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24826         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24827         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24828         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24829         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24830         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24831         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24832         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24833         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24834         libm_alias_ldouble.
24835         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24836         libm_alias_ldouble_other.
24837         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24838         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24839         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24840         libm_alias_ldouble.
24841         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24842         libm_alias_ldouble_other.
24843         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24844         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24845         * sysdeps/ia64/fpu/w_lgammal_main.c
24846         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24847         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24848
24849 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24850
24851         * malloc/malloc.c (tcache_thread_shutdown): Rename from
24852         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
24853         alike.  Remove freeres marker.
24854         * malloc/arena.c (arena_thread_freeres): Call
24855         tcache_thread_shutdown.
24856
24857 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24858
24859         [BZ #22459]
24860         Export nscd hash function as __nss_hash.
24861         * include/nss.h (__nss_hash): Declare.
24862         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
24863         symbol.
24864         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24865         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24866         of __nscd_hash.
24867         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24868         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24869         * nss/Makefiles (routines): Add nss_hash.
24870         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24871         * nss/nss_hash.c: Rename from nis/nis_hash.c.
24872         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
24873         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24874
24875 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24876
24877         [BZ #22478]
24878         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24879         Return error code, not -1.
24880         * signal/tst-sigwait-eintr.c: New file.
24881         * signal/Makefile (tests): Add tst-sigwait-eintr.
24882
24883 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24884
24885         Linux: Add memfd_create system call wrapper
24886         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24887         tst-memfd_create.
24888         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24889         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24890         [__USE_GNU] (memfd_create): Declare.
24891         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24892         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24893         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24894         * sysdeps/unix/sysv/linux/**.abilist: Update.
24895         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24896
24897 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24898
24899         * localedata/gen-locale.sh: Fix typo in variable name.
24900
24901         * resolv/res_debug.c (p_secstodate): Condition definition on
24902         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
24903         directly as __p_secstodate, and as a compat symbol.  Do not use
24904         libresolv_hidden_def.
24905         * resolv/resolv.h (p_secstodate): Remove macro and function
24906         declaration.
24907         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24908         using p_secstodate.
24909         * include/resolv.h (__p_secstodate): Do not use
24910         libresolv_hidden_proto.
24911         * resolv/Makefile (tests): Move tst-p_secstodate to ....
24912         (tests-internal): ... here.
24913         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
24914         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24915         and declare and use __p_secstodate and use compat_symbol_reference
24916         in that case.
24917         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24918         implementation returning 77.
24919
24920         [BZ #22463]
24921         * resolv/res_debug.c: Include <libc-diag.h>.
24922         (p_secstodate): Assert time_t at least as wide as u_long.  On
24923         overflow, use integer seconds since the epoch as output, or use
24924         "<overflow>" as output and set errno to EOVERFLOW if integer
24925         seconds since the epoch would be 14 or more characters.
24926         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24927         for sprintf call.
24928         * resolv/tst-p_secstodate.c: New file.
24929         * resolv/Makefile (tests): Add tst-p_secstodate.
24930         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24931
24932         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24933         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24934         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24935
24936 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24937
24938         * posix/regcomp.c (init_word_char): Add comments.
24939
24940 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24941
24942         [BZ #22447]
24943         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24944         strlen to compute length of ut_user and set trailing NUL byte of
24945         result explicitly.
24946
24947 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
24948
24949         [BZ #15537]
24950         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24951         using “copy "iso14651_t1"” and then implementing the
24952         collation rules for lv from CLDR on top of that.
24953         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24954         of locales to be built for testing.
24955         * lv_LV.UTF-8.in: New file with test data to test the Latvian
24956         sorting.
24957
24958 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
24959
24960         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24961         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24962         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24963         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24964         [__USE_MISC] (MADV_HWPOISON): New macro.
24965         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24966
24967 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24968
24969         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24970         -Wmissing-braces on GCC 4.9.
24971
24972 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24973
24974         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24975         * sysdeps/s390/s390-32/start.S (_start): Likewise
24976         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24977         (thread_start): Likewise.
24978         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24979         (thread_start): Likewise.
24980         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24981         (__makecontext_ret): Likewise.
24982         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24983         (__makecontext_ret): Likewise.
24984
24985 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24986
24987         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24988         __wcschrnul): Remove attribute_hidden.
24989
24990 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24991
24992         regex: don't assume uint64_t or uint32_t
24993         This avoids -Werror=overflow errors for 32-bit systems in
24994         the 64-bit case.  Problem reported by Joseph Myers in:
24995         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24996         Also, when this code is used in Gnulib it ports to platforms
24997         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
24998         them, and on some 32-bit compilers there is no uint64_t.
24999         Problem reported by Gianluigi Tiesi in:
25000         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
25001         * posix/regcomp.c (init_word_char): Don't assume that the types
25002         uint64_t and uint32_t exist.  Adapted from Gnulib patch
25003         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
25004         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
25005
25006 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25007
25008         * sysdeps/aarch64/memset-reg.h: New file.
25009         * sysdeps/aarch64/memset.S: Use it.
25010         (__memset): Rename to MEMSET macro.
25011         [ZVA_MACRO]: Use zva_macro.
25012         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
25013         Add memset_generic and memset_falkor.
25014         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25015         (__libc_ifunc_impl_list): Add memset ifuncs.
25016         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
25017         local variable zva_size.
25018         * sysdeps/aarch64/multiarch/memset.c: New file.
25019         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
25020         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
25021         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
25022         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
25023         (DCZID_DZP_MASK): New macro.
25024         (DCZID_BS_MASK): Likewise.
25025         (init_cpu_features): Read and set zva_size.
25026         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
25027         (struct cpu_features): New member zva_size.
25028
25029         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
25030         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
25031         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
25032
25033         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
25034         backwards.  Fix timing computation.
25035         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
25036         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
25037         on memset by N at a time.  Fix timing computation.
25038
25039 2017-11-20  Florian Weimer  <fweimer@redhat.com>
25040
25041         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
25042         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
25043
25044 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25045
25046         manual: Document mprotect
25047         * manual/memory.texi (Memory Protection): New section.
25048         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
25049         documentation of PROT_* flags and reference the Memory Protection
25050         section instead.
25051
25052 2017-11-19  Florian Weimer  <fweimer@redhat.com>
25053
25054         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
25055         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
25056         (Scatter-Gather): ... to here.  Remove misleading comment.
25057
25058 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
25059
25060         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
25061         style.
25062
25063         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
25064         when /proc/<pid>/setgroups does not exist.
25065
25066 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25067
25068         * sysdeps/unix/sysv/linux/tst-ttyname.c
25069         (become_root_in_mount_ns): Remove.
25070         (do_in_chroot_1): Call support_enter_mount_namespace.
25071         (do_in_chroot_2): Likewise.
25072         (do_test): Call support_become_root early.
25073
25074 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25075
25076         * support/namespace.h (support_enter_mount_namespace): Declare.
25077         * support/support_enter_mount_namespace.c: New file.
25078         * support/Makefile (libsupport-routines): Add
25079         support_enter_mount_namespace.
25080
25081 2017-11-18  Florian Weimer  <fweimer@redhat.com>
25082
25083         * support/temp_file.c (support_create_temp_directory): Use
25084         test_dir and do not rely on the presence of the XXXXXX suffix.
25085         * support/temp_file.h (support_create_temp_directory): Update
25086         comment.
25087         * support/tst-xreadlink.c (do_test): Adjust.
25088         * support/support_chroot.c (support_chroot_create): Likewise.
25089
25090 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25091
25092         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
25093         macro.
25094         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
25095         htm-no-suspend.
25096
25097 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
25098
25099         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25100         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25101         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25102         (ceill): Define using libm_alias_ldouble.
25103         * sysdeps/x86_64/fpu/s_copysignl.S: Include
25104         <libm-alias-ldouble.h>.
25105         (copysignl): Define using libm_alias_ldouble.
25106         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25107         (fabsl): Define using libm_alias_ldouble.
25108         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25109         (floorl): Define using libm_alias_ldouble.
25110         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25111         (fmaxl): Define using libm_alias_ldouble.
25112         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25113         (fminl): Define using libm_alias_ldouble.
25114         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25115         (llrintl): Define using libm_alias_ldouble.
25116         (lrintl): Likewise.
25117         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
25118         <libm-alias-ldouble.h>.
25119         (nearbyintl): Define using libm_alias_ldouble.
25120         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25121         (truncl): Define using libm_alias_ldouble.
25122         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
25123         <libm-alias-ldouble.h>.
25124         (lrintl): Define using libm_alias_ldouble.
25125
25126         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
25127         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
25128         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
25129         (asinhl): Define using libm_alias_ldouble.
25130         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
25131         (atanl): Define using libm_alias_ldouble.
25132         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
25133         (cbrtl): Define using libm_alias_ldouble.
25134         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
25135         (ceill): Define using libm_alias_ldouble.
25136         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
25137         (copysignl): Define using libm_alias_ldouble.
25138         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
25139         (fabsl): Define using libm_alias_ldouble.
25140         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
25141         (floorl): Define using libm_alias_ldouble.
25142         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25143         (fmaxl): Define using libm_alias_ldouble.
25144         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25145         (fminl): Define using libm_alias_ldouble.
25146         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
25147         (frexpl): Define using libm_alias_ldouble.
25148         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
25149         (llrintl): Define using libm_alias_ldouble.
25150         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
25151         (logbl): Define using libm_alias_ldouble.
25152         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
25153         (lrintl): Define using libm_alias_ldouble.
25154         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
25155         (nearbyintl): Define using libm_alias_ldouble.
25156         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
25157         (nextafterl): Define using libm_alias_ldouble.
25158         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
25159         (remquol): Define using libm_alias_ldouble.
25160         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
25161         (rintl): Define using libm_alias_ldouble.
25162         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
25163         (truncl): Define using libm_alias_ldouble.
25164         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
25165         (fmaxl): Define using libm_alias_ldouble.
25166         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
25167         (fminl): Define using libm_alias_ldouble.
25168
25169         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
25170         to C syntax instead of availability and properties of types.
25171         * bits/floatn.h [!__ASSEMBLER]: Likewise.
25172         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
25173         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
25174         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
25175         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
25176         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
25177
25178 2017-11-17  Florian Weimer  <fweimer@redhat.com>
25179
25180         support_become_root: Enable file creation in namespaces.
25181         * support/support_become_root.c (setup_mapping): New function.
25182         (support_become_root): Call it.
25183
25184 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
25185
25186         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
25187         macro.
25188
25189 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25190
25191         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
25192         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
25193
25194 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
25195
25196         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
25197
25198         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25199         version to 4.14.
25200
25201 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
25202
25203         * INSTALL: Fix botched up regeneration.
25204
25205         * NEWS: Update sourceare link to https.
25206         * configure.ac: Likewise.
25207         * crypt/md5test-giant.c: Likewise.
25208         * dlfcn/bug-atexit1.c: Likewise.
25209         * dlfcn/bug-atexit2.c: Likewise.
25210         * localedata/README: Likewise.
25211         * malloc/tst-mallocfork.c: Likewise.
25212         * manual/install.texi: Likewise.
25213         * nptl/tst-pthread-getattr.c: Likewise.
25214         * stdio-common/tst-fgets.c: Likewise.
25215         * stdio-common/tst-fwrite.c: Likewise.
25216         * sunrpc/Makefile: Likewise.
25217         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
25218         * wcsmbs/tst-mbrtowc2.c: Likewise.
25219         * configure: Regenerate.
25220         * INSTALL: Regenerate.
25221
25222 2017-11-15  Martin Sebor  <msebor@redhat.com>
25223
25224         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
25225         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
25226         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
25227
25228 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
25229
25230         [BZ #22145]
25231         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
25232         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
25233
25234         [BZ #22145]
25235         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
25236         Defer is_pty check until end of the function.
25237         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25238
25239         [BZ #22145]
25240         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
25241         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
25242         (ttyname): Likewise.
25243         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25244         (__ttyname_r): Likewise.
25245
25246         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
25247         int to bool.
25248
25249         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
25250
25251         * manual/terminal.texi (Is It a Terminal):
25252         Mention ENODEV for ttyname and ttyname_r.
25253
25254 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25255
25256         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
25257         constant and macro.
25258
25259         * sysdeps/unix/sysv/linux/bits/mman-linux.h
25260         [__USE_MISC] (MADV_WIPEONFORK): New macro.
25261         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25262         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25263         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
25264         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25265
25266 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25267
25268         * signal/sigrelse.c (sigrelse): Optimize implementation.
25269
25270         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
25271         (__sigpause): Rely on __sigsuspend to implement single thread
25272         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
25273
25274 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25275
25276         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25277         kernel version to 4.14.
25278
25279 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
25280
25281         [BZ #22442]
25282         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
25283         Check if ifname is too long.
25284
25285 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
25286
25287         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
25288
25289 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
25290
25291         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
25292         was accidentally lost.
25293
25294 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
25295
25296         * localedata/locales/az_IR: Add standard copyright header.
25297
25298 2017-11-15  Florian Weimer  <fweimer@redhat.com>
25299
25300         [BZ #22439]
25301         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25302         not just the top one.  Output a new "subheaps" statistic.
25303
25304 2017-11-15  Florian Weimer  <fweimer@redhat.com>
25305
25306         [BZ #22408]
25307         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25308         under the per-arena lock.
25309         * malloc/Makefile (tests): Add tst-malloc_info.
25310         (tst-malloc_info): Link with libpthread.
25311         * malloc/tst-malloc_info.c: New file.
25312
25313 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25314
25315         [BZ #21660]
25316         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25317         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25318         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25319         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25320         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25321         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25322         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25323         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25324         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25325         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25326         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25327         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25328         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25329         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25330         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25331         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25332         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25333         (__floating_type): Likewise.
25334         (__real_integer_type): Likewise.
25335         (__complex_integer_type): Likewise.
25336         (__expr_is_real): Likewise.
25337         (__tgmath_real_type_sub): Likewise.
25338         (__tgmath_real_type): Likewise.
25339         (__tgmath_complex_type_sub): Likewise.
25340         (__tgmath_complex_type): Likewise.
25341         (__TGMATH_F128): Likewise.
25342         (__TGMATH_CF128): Likewise.
25343         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25344         new macros.
25345         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25346         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25347         Likewise.
25348         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25349         Likewise.
25350         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25351         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25352         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25353         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25354         Likewise.
25355         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25356         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25357         Likewise.
25358         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25359         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25360         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25361         Likewise.
25362         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25363         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25364         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25365         (cimag): Likewise.
25366         (creal): Likewise.
25367
25368 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
25369
25370         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25371         for stpncpy calls for GCC 8.
25372         (test_strncat): Disable -Wstringop-truncation warning for strncat
25373         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
25374         strncat call for GCC 7.
25375         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25376         calls for GCC 8.
25377         (test_memcmp): Use memcpy instead of strncpy for calls not copying
25378         trailing NUL.
25379
25380         * string/bug-strncat1.c: Include <libc-diag.h>.
25381         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25382
25383 2017-11-13  Claude Paroz  <claude@2xlibre.net>
25384
25385         [BZ #22387]
25386         * localedata/locales/aa_DJ: Improved readibility by replacing
25387         <Uxxxx> sequences in the ASCII printable range by their ASCII
25388         character equivalents.
25389         * localedata/locales/aa_ER: Likewise.
25390         * localedata/locales/aa_ER@saaho: Likewise.
25391         * localedata/locales/aa_ET: Likewise.
25392         * localedata/locales/af_ZA: Likewise.
25393         * localedata/locales/agr_PE: Likewise.
25394         * localedata/locales/ak_GH: Likewise.
25395         * localedata/locales/am_ET: Likewise.
25396         * localedata/locales/anp_IN: Likewise.
25397         * localedata/locales/ar_AE: Likewise.
25398         * localedata/locales/ar_BH: Likewise.
25399         * localedata/locales/ar_DZ: Likewise.
25400         * localedata/locales/ar_EG: Likewise.
25401         * localedata/locales/ar_IN: Likewise.
25402         * localedata/locales/ar_IQ: Likewise.
25403         * localedata/locales/ar_JO: Likewise.
25404         * localedata/locales/ar_KW: Likewise.
25405         * localedata/locales/ar_LB: Likewise.
25406         * localedata/locales/ar_LY: Likewise.
25407         * localedata/locales/ar_MA: Likewise.
25408         * localedata/locales/ar_OM: Likewise.
25409         * localedata/locales/ar_QA: Likewise.
25410         * localedata/locales/ar_SA: Likewise.
25411         * localedata/locales/ar_SD: Likewise.
25412         * localedata/locales/ar_SS: Likewise.
25413         * localedata/locales/ar_SY: Likewise.
25414         * localedata/locales/ar_TN: Likewise.
25415         * localedata/locales/ar_YE: Likewise.
25416         * localedata/locales/as_IN: Likewise.
25417         * localedata/locales/ast_ES: Likewise.
25418         * localedata/locales/ayc_PE: Likewise.
25419         * localedata/locales/az_AZ: Likewise.
25420         * localedata/locales/az_IR: Likewise.
25421         * localedata/locales/be_BY: Likewise.
25422         * localedata/locales/be_BY@latin: Likewise.
25423         * localedata/locales/bem_ZM: Likewise.
25424         * localedata/locales/ber_DZ: Likewise.
25425         * localedata/locales/ber_MA: Likewise.
25426         * localedata/locales/bg_BG: Likewise.
25427         * localedata/locales/bhb_IN: Likewise.
25428         * localedata/locales/bho_IN: Likewise.
25429         * localedata/locales/bi_VU: Likewise.
25430         * localedata/locales/bn_BD: Likewise.
25431         * localedata/locales/bn_IN: Likewise.
25432         * localedata/locales/bo_CN: Likewise.
25433         * localedata/locales/bo_IN: Likewise.
25434         * localedata/locales/br_FR: Likewise.
25435         * localedata/locales/brx_IN: Likewise.
25436         * localedata/locales/bs_BA: Likewise.
25437         * localedata/locales/byn_ER: Likewise.
25438         * localedata/locales/ca_AD: Likewise.
25439         * localedata/locales/ca_ES: Likewise.
25440         * localedata/locales/ca_FR: Likewise.
25441         * localedata/locales/ca_IT: Likewise.
25442         * localedata/locales/ce_RU: Likewise.
25443         * localedata/locales/chr_US: Likewise.
25444         * localedata/locales/cmn_TW: Likewise.
25445         * localedata/locales/crh_UA: Likewise.
25446         * localedata/locales/cs_CZ: Likewise.
25447         * localedata/locales/csb_PL: Likewise.
25448         * localedata/locales/cv_RU: Likewise.
25449         * localedata/locales/cy_GB: Likewise.
25450         * localedata/locales/da_DK: Likewise.
25451         * localedata/locales/de_AT: Likewise.
25452         * localedata/locales/de_BE: Likewise.
25453         * localedata/locales/de_CH: Likewise.
25454         * localedata/locales/de_DE: Likewise.
25455         * localedata/locales/de_IT: Likewise.
25456         * localedata/locales/de_LI: Likewise.
25457         * localedata/locales/de_LU: Likewise.
25458         * localedata/locales/doi_IN: Likewise.
25459         * localedata/locales/dv_MV: Likewise.
25460         * localedata/locales/dz_BT: Likewise.
25461         * localedata/locales/el_CY: Likewise.
25462         * localedata/locales/el_GR: Likewise.
25463         * localedata/locales/en_AG: Likewise.
25464         * localedata/locales/en_AU: Likewise.
25465         * localedata/locales/en_BW: Likewise.
25466         * localedata/locales/en_CA: Likewise.
25467         * localedata/locales/en_DK: Likewise.
25468         * localedata/locales/en_GB: Likewise.
25469         * localedata/locales/en_HK: Likewise.
25470         * localedata/locales/en_IE: Likewise.
25471         * localedata/locales/en_IL: Likewise.
25472         * localedata/locales/en_IN: Likewise.
25473         * localedata/locales/en_NG: Likewise.
25474         * localedata/locales/en_NZ: Likewise.
25475         * localedata/locales/en_PH: Likewise.
25476         * localedata/locales/en_SG: Likewise.
25477         * localedata/locales/en_US: Likewise.
25478         * localedata/locales/en_ZA: Likewise.
25479         * localedata/locales/en_ZM: Likewise.
25480         * localedata/locales/en_ZW: Likewise.
25481         * localedata/locales/eo: Likewise.
25482         * localedata/locales/es_AR: Likewise.
25483         * localedata/locales/es_BO: Likewise.
25484         * localedata/locales/es_CL: Likewise.
25485         * localedata/locales/es_CO: Likewise.
25486         * localedata/locales/es_CR: Likewise.
25487         * localedata/locales/es_CU: Likewise.
25488         * localedata/locales/es_DO: Likewise.
25489         * localedata/locales/es_EC: Likewise.
25490         * localedata/locales/es_ES: Likewise.
25491         * localedata/locales/es_GT: Likewise.
25492         * localedata/locales/es_HN: Likewise.
25493         * localedata/locales/es_MX: Likewise.
25494         * localedata/locales/es_NI: Likewise.
25495         * localedata/locales/es_PA: Likewise.
25496         * localedata/locales/es_PE: Likewise.
25497         * localedata/locales/es_PR: Likewise.
25498         * localedata/locales/es_PY: Likewise.
25499         * localedata/locales/es_SV: Likewise.
25500         * localedata/locales/es_US: Likewise.
25501         * localedata/locales/es_UY: Likewise.
25502         * localedata/locales/es_VE: Likewise.
25503         * localedata/locales/et_EE: Likewise.
25504         * localedata/locales/eu_ES: Likewise.
25505         * localedata/locales/eu_ES@euro: Likewise.
25506         * localedata/locales/fa_IR: Likewise.
25507         * localedata/locales/ff_SN: Likewise.
25508         * localedata/locales/fi_FI: Likewise.
25509         * localedata/locales/fil_PH: Likewise.
25510         * localedata/locales/fo_FO: Likewise.
25511         * localedata/locales/fr_BE: Likewise.
25512         * localedata/locales/fr_CA: Likewise.
25513         * localedata/locales/fr_CH: Likewise.
25514         * localedata/locales/fr_FR: Likewise.
25515         * localedata/locales/fr_LU: Likewise.
25516         * localedata/locales/fur_IT: Likewise.
25517         * localedata/locales/fy_DE: Likewise.
25518         * localedata/locales/fy_NL: Likewise.
25519         * localedata/locales/ga_IE: Likewise.
25520         * localedata/locales/gd_GB: Likewise.
25521         * localedata/locales/gez_ER: Likewise.
25522         * localedata/locales/gez_ET: Likewise.
25523         * localedata/locales/gl_ES: Likewise.
25524         * localedata/locales/gu_IN: Likewise.
25525         * localedata/locales/gv_GB: Likewise.
25526         * localedata/locales/ha_NG: Likewise.
25527         * localedata/locales/hak_TW: Likewise.
25528         * localedata/locales/he_IL: Likewise.
25529         * localedata/locales/hi_IN: Likewise.
25530         * localedata/locales/hif_FJ: Likewise.
25531         * localedata/locales/hne_IN: Likewise.
25532         * localedata/locales/hr_HR: Likewise.
25533         * localedata/locales/hsb_DE: Likewise.
25534         * localedata/locales/ht_HT: Likewise.
25535         * localedata/locales/hu_HU: Likewise.
25536         * localedata/locales/hy_AM: Likewise.
25537         * localedata/locales/i18n: Likewise.
25538         * localedata/locales/ia_FR: Likewise.
25539         * localedata/locales/id_ID: Likewise.
25540         * localedata/locales/ig_NG: Likewise.
25541         * localedata/locales/ik_CA: Likewise.
25542         * localedata/locales/is_IS: Likewise.
25543         * localedata/locales/it_CH: Likewise.
25544         * localedata/locales/it_IT: Likewise.
25545         * localedata/locales/iu_CA: Likewise.
25546         * localedata/locales/ja_JP: Likewise.
25547         * localedata/locales/ka_GE: Likewise.
25548         * localedata/locales/kk_KZ: Likewise.
25549         * localedata/locales/kl_GL: Likewise.
25550         * localedata/locales/kn_IN: Likewise.
25551         * localedata/locales/ko_KR: Likewise.
25552         * localedata/locales/kok_IN: Likewise.
25553         * localedata/locales/ks_IN: Likewise.
25554         * localedata/locales/ks_IN@devanagari: Likewise.
25555         * localedata/locales/ku_TR: Likewise.
25556         * localedata/locales/kw_GB: Likewise.
25557         * localedata/locales/ky_KG: Likewise.
25558         * localedata/locales/lb_LU: Likewise.
25559         * localedata/locales/lg_UG: Likewise.
25560         * localedata/locales/li_BE: Likewise.
25561         * localedata/locales/li_NL: Likewise.
25562         * localedata/locales/lij_IT: Likewise.
25563         * localedata/locales/ln_CD: Likewise.
25564         * localedata/locales/lo_LA: Likewise.
25565         * localedata/locales/lt_LT: Likewise.
25566         * localedata/locales/lv_LV: Likewise.
25567         * localedata/locales/lzh_TW: Likewise.
25568         * localedata/locales/mag_IN: Likewise.
25569         * localedata/locales/mai_IN: Likewise.
25570         * localedata/locales/mg_MG: Likewise.
25571         * localedata/locales/mhr_RU: Likewise.
25572         * localedata/locales/mi_NZ: Likewise.
25573         * localedata/locales/mk_MK: Likewise.
25574         * localedata/locales/ml_IN: Likewise.
25575         * localedata/locales/mn_MN: Likewise.
25576         * localedata/locales/mni_IN: Likewise.
25577         * localedata/locales/mr_IN: Likewise.
25578         * localedata/locales/ms_MY: Likewise.
25579         * localedata/locales/mt_MT: Likewise.
25580         * localedata/locales/my_MM: Likewise.
25581         * localedata/locales/nan_TW: Likewise.
25582         * localedata/locales/nan_TW@latin: Likewise.
25583         * localedata/locales/nb_NO: Likewise.
25584         * localedata/locales/nds_DE: Likewise.
25585         * localedata/locales/nds_NL: Likewise.
25586         * localedata/locales/ne_NP: Likewise.
25587         * localedata/locales/nhn_MX: Likewise.
25588         * localedata/locales/niu_NU: Likewise.
25589         * localedata/locales/niu_NZ: Likewise.
25590         * localedata/locales/nl_AW: Likewise.
25591         * localedata/locales/nl_BE: Likewise.
25592         * localedata/locales/nl_NL: Likewise.
25593         * localedata/locales/nn_NO: Likewise.
25594         * localedata/locales/nr_ZA: Likewise.
25595         * localedata/locales/nso_ZA: Likewise.
25596         * localedata/locales/oc_FR: Likewise.
25597         * localedata/locales/om_ET: Likewise.
25598         * localedata/locales/om_KE: Likewise.
25599         * localedata/locales/or_IN: Likewise.
25600         * localedata/locales/os_RU: Likewise.
25601         * localedata/locales/pa_IN: Likewise.
25602         * localedata/locales/pa_PK: Likewise.
25603         * localedata/locales/pap_AW: Likewise.
25604         * localedata/locales/pap_CW: Likewise.
25605         * localedata/locales/pl_PL: Likewise.
25606         * localedata/locales/ps_AF: Likewise.
25607         * localedata/locales/pt_BR: Likewise.
25608         * localedata/locales/pt_PT: Likewise.
25609         * localedata/locales/quz_PE: Likewise.
25610         * localedata/locales/raj_IN: Likewise.
25611         * localedata/locales/ro_RO: Likewise.
25612         * localedata/locales/ru_RU: Likewise.
25613         * localedata/locales/ru_UA: Likewise.
25614         * localedata/locales/rw_RW: Likewise.
25615         * localedata/locales/sa_IN: Likewise.
25616         * localedata/locales/sat_IN: Likewise.
25617         * localedata/locales/sc_IT: Likewise.
25618         * localedata/locales/sd_IN: Likewise.
25619         * localedata/locales/sd_IN@devanagari: Likewise.
25620         * localedata/locales/se_NO: Likewise.
25621         * localedata/locales/sgs_LT: Likewise.
25622         * localedata/locales/shs_CA: Likewise.
25623         * localedata/locales/si_LK: Likewise.
25624         * localedata/locales/sid_ET: Likewise.
25625         * localedata/locales/sk_SK: Likewise.
25626         * localedata/locales/sl_SI: Likewise.
25627         * localedata/locales/sm_WS: Likewise.
25628         * localedata/locales/so_DJ: Likewise.
25629         * localedata/locales/so_ET: Likewise.
25630         * localedata/locales/so_KE: Likewise.
25631         * localedata/locales/so_SO: Likewise.
25632         * localedata/locales/sq_AL: Likewise.
25633         * localedata/locales/sq_MK: Likewise.
25634         * localedata/locales/sr_ME: Likewise.
25635         * localedata/locales/sr_RS: Likewise.
25636         * localedata/locales/sr_RS@latin: Likewise.
25637         * localedata/locales/ss_ZA: Likewise.
25638         * localedata/locales/st_ZA: Likewise.
25639         * localedata/locales/sv_FI: Likewise.
25640         * localedata/locales/sv_SE: Likewise.
25641         * localedata/locales/sw_KE: Likewise.
25642         * localedata/locales/sw_TZ: Likewise.
25643         * localedata/locales/szl_PL: Likewise.
25644         * localedata/locales/ta_IN: Likewise.
25645         * localedata/locales/ta_LK: Likewise.
25646         * localedata/locales/tcy_IN: Likewise.
25647         * localedata/locales/te_IN: Likewise.
25648         * localedata/locales/tg_TJ: Likewise.
25649         * localedata/locales/th_TH: Likewise.
25650         * localedata/locales/the_NP: Likewise.
25651         * localedata/locales/ti_ER: Likewise.
25652         * localedata/locales/ti_ET: Likewise.
25653         * localedata/locales/tig_ER: Likewise.
25654         * localedata/locales/tk_TM: Likewise.
25655         * localedata/locales/tl_PH: Likewise.
25656         * localedata/locales/tn_ZA: Likewise.
25657         * localedata/locales/to_TO: Likewise.
25658         * localedata/locales/tpi_PG: Likewise.
25659         * localedata/locales/tr_CY: Likewise.
25660         * localedata/locales/tr_TR: Likewise.
25661         * localedata/locales/ts_ZA: Likewise.
25662         * localedata/locales/tt_RU: Likewise.
25663         * localedata/locales/tt_RU@iqtelif: Likewise.
25664         * localedata/locales/ug_CN: Likewise.
25665         * localedata/locales/uk_UA: Likewise.
25666         * localedata/locales/unm_US: Likewise.
25667         * localedata/locales/ur_IN: Likewise.
25668         * localedata/locales/ur_PK: Likewise.
25669         * localedata/locales/uz_UZ: Likewise.
25670         * localedata/locales/uz_UZ@cyrillic: Likewise.
25671         * localedata/locales/ve_ZA: Likewise.
25672         * localedata/locales/vi_VN: Likewise.
25673         * localedata/locales/wa_BE: Likewise.
25674         * localedata/locales/wae_CH: Likewise.
25675         * localedata/locales/wal_ET: Likewise.
25676         * localedata/locales/wo_SN: Likewise.
25677         * localedata/locales/xh_ZA: Likewise.
25678         * localedata/locales/yi_US: Likewise.
25679         * localedata/locales/yo_NG: Likewise.
25680         * localedata/locales/yue_HK: Likewise.
25681         * localedata/locales/yuw_PG: Likewise.
25682         * localedata/locales/zh_CN: Likewise.
25683         * localedata/locales/zh_HK: Likewise.
25684         * localedata/locales/zh_SG: Likewise.
25685         * localedata/locales/zh_TW: Likewise.
25686         * localedata/locales/zu_ZA: Likewise.
25687
25688 2017-11-13  Florian Weimer  <fweimer@redhat.com>
25689
25690         * support/next_to_fault.h, support/next_to_fault.c: New files.
25691         * support/Makefile (libsupport-routines): Add next_to_fault.
25692         * resolv/tst-inet_pton.c (struct next_to_fault)
25693         (next_to_fault_allocate, next_to_fault_free): Remove.
25694         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25695
25696 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
25697
25698         * elf/dl-support.c: Include <dl-procruntime.c>.
25699         * include/link.h: Include <link_map.h>.
25700         * sysdeps/generic/dl-procruntime.c: New file.
25701         * sysdeps/generic/link_map.h: Likewise.
25702         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25703         the writable ld.so namespace.
25704
25705 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         timezone: pacify GCC -Wstringop-truncation
25708         Problem reported by Martin Sebor in:
25709         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25710         * timezone/zic.c (writezone): Use memcpy, not strncpy.
25711
25712 2017-11-12  Florian Weimer  <fweimer@redhat.com>
25713
25714         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25715         tst-xreadlink.
25716         (tests): Add tst-xreadlink.
25717         * support/support.h (xstrndup): Declare.
25718         * support/xunistd.h (xunlink, xreadlink): Declare.
25719         * support/temp_file.h (support_create_temp_directory): Declare.
25720         * support/temp_file.c (support_create_temp_directory): New function.
25721         * support/support_chroot.c (support_chroot_create): Use it.
25722         * support/xreadlink.c: New file.
25723         * support/xstrndup.c: Likewise.
25724         * support/xunlink.c: Likewise.
25725         * support/tst-xreadlink.c: Likewise.
25726
25727 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
25728
25729         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25730
25731 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25732
25733         [BZ #22409]
25734         [BZ #22412]
25735         * resolv/res_comp.c (printable_string, binary_hnok)
25736         (binary_leading_dash): New functions.
25737         (res_hnok): Reimplement using these functions and ns_name_pton.
25738         (res_ownok): Likewise.
25739         (res_mailok): Reimplement using printable_string, ns_name_pton and
25740         binary_hnok.
25741         (res_dnok): Reimplement using printable_string and ns_name_pton.
25742         * resolv/tst-res_hnok.c (tests): Add additional tests.
25743         (LETTERDIGITS, PRINTABLE): Define.
25744         (do_test): Adjust one_char results.
25745
25746 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25747
25748         [BZ #22413]
25749         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25750         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25751
25752 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25753
25754         * resolv/tst-ns_name_pton.c: New file.
25755         * resolv/Makefile (tests): Add tst-ns_name_pton.
25756         (tst-ns_name_pton): Link against libresolv.
25757
25758 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25759
25760         * resolv/tst-res_hnok.c: New file.
25761         * resolv/Makefile (tests): Add tst-res_hnok.
25762         (tst-res_hnok): Link against libresolv.
25763
25764 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25765
25766         * resolv/tst-resolv-network.c: Use test framework instead explicit
25767         main function.
25768
25769 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25770
25771         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25772         <jmp_buf-macros.h>.
25773         [!_ISOMAC] (STR_HELPER): New.
25774         [!_ISOMAC] (STR): Likewise.
25775         [!_ISOMAC] (TEST_SIZE): Likewise.
25776         [!_ISOMAC] (TEST_ALIGN): Likewise.
25777         [!_ISOMAC] (TEST_OFFSET): Likewise.
25778         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25779         field offsets of jmp_buf as well as sigjmp_buf.
25780         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25781         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25782         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25783         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25784         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25785         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25786         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25787         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25788         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25789         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25790         Likewise.
25791         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25792         Likewise.
25793         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25795         Likewise.
25796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25797         Likewise.
25798         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25799         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25800         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25801         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25802         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25804         Likewise.
25805         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25806         Likewise.
25807         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25808         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25809         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25810
25811 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
25812
25813         * include/float.h
25814         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25815         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25816         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25817         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25818         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25819         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25820         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25821         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25822         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25823         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25824         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25825         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25826         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25827         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25828         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25829         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25830         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25831         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25832         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25833         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25834         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25835         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25836         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25837         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25838         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25839         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25840         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25841         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25842         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25843         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25844         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25845         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25846         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25847         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25848         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25849         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25850         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25851         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25852         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25853         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25854         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25855         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25856         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25857         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25858         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25859         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25860         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25861         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25862         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25863         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25864         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25865         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25866         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25867         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25868         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25869         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25870         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25871         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25872         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25873         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25874         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25875         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25876         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25877         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25878         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25879         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25880         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25881         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25882         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25883         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25884         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25885         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25886         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25887         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25888         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25889         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25890         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25891         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25892         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25893         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25894         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25895         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25896         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25897         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25898         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25899         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25900         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25901         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25902
25903         * stdlib/tst-strtod.h (F16): New macro.
25904         (F32): Likewise.
25905         (F64): Likewise.
25906         (F32X): Likewise.
25907         (F64X): Likewise.
25908         (F128X): Likewise.
25909         (IF_FLOAT16): Likewise.
25910         (IF_FLOAT32): Likewise.
25911         (IF_FLOAT64): Likewise.
25912         (IF_FLOAT32X): Likewise.
25913         (IF_FLOAT64X): Likewise.
25914         (IF_FLOAT128X): Likewise.
25915         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25916         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25917         (STRTOD_TEST_FOREACH): Likewise.
25918         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25919         (CHOOSE_f64): Likewise.
25920         (CHOOSE_f32x): Likewise.
25921         (CHOOSE_f64x): Likewise.
25922
25923 2017-11-07  Andreas Schwab  <schwab@suse.de>
25924
25925         * nptl/Makefile (tests-internal): Remove tst-typesizes.
25926
25927 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
25928
25929         [BZ #22403]
25930         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25931         to be escaped.
25932         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25933         to be escaped.
25934
25935 2017-11-07  Claude Paroz  <claude@2xlibre.net>
25936
25937         [BZ #22403]
25938         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25939         to be escaped.
25940         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25941         to be escaped.
25942         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25943         to be escaped.
25944
25945 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25946
25947         [BZ #22298]
25948         * nptl/allocatestack.c (allocate_stack): Check if
25949         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25950         __PTHREAD_MUTEX_HAVE_PREV is defined.
25951         * nptl/descr.h (pthread): Likewise.
25952         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25953         Likewise.
25954         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25955         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25956         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25957         * sysdeps/nptl/bits/thread-shared-types.h
25958         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25959         defines.
25960         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25961         of __WORDSIZE for internal layout.
25962         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25963         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25964         instead of __WORDSIZE whether to use an union for __spins and __list
25965         fields.
25966         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25967         case.
25968         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25969         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25970         defines.
25971         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25972         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25973         Likewise.
25974         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25975         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25976         Likewise.
25977         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25978         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25979         Likewise.
25980         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25981         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25982         Likewise.
25983         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25984         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25985         Likewise.
25986         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25987         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25988         Likewise.
25989         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25990         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25991         Likewise.
25992         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25993         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25994         Likewise.
25995         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25996         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25997         Likewise.
25998         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25999         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26000         Likewise.
26001         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
26002         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26003         Likewise.
26004         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
26005         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26006         Likewise.
26007         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
26008         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26009         Likewise.
26010         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
26011         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
26012         Likewise.
26013
26014         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
26015         New macros.
26016         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
26017         checks for expected input type size.
26018         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
26019         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
26020         Likewise.
26021         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
26022         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
26023         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
26024         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
26025         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
26026         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
26027         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
26028         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
26029         superflous runtime assert check.
26030         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
26031         Likewise.
26032         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
26033         Likewise.
26034         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
26035         Likewise.
26036         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
26037         Likewise.
26038         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
26039         Likewise.
26040         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
26041         Likewise.
26042         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
26043         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
26044         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
26045         Likewise.
26046         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
26047         Likewise.
26048         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
26049         Likewise.
26050         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
26051         Likewise.
26052         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
26053         Likewise.
26054         * nptl/pthread_attr_setinheritsched.c
26055         (__pthread_attr_setinheritsched): Likewise.
26056         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
26057         Likewise.
26058         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
26059         Likewise.
26060         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
26061         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
26062         __old_pthread_attr_setstack): Likewise.
26063         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
26064         Likewise.
26065         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
26066         Likewise.
26067         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
26068         Likewise.
26069         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
26070         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
26071         Likewise.
26072         * nptl/tst-typesizes.c: Remove file.
26073
26074         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
26075         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
26076         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
26077         checks for internal pthread_mutex_t offsets.
26078         * sysdeps/aarch64/nptl/pthread-offsets.h
26079         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
26080         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
26081         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
26082         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
26083         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
26084         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
26085         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
26086         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
26087         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
26088         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
26089         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
26090         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
26091         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
26092         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
26093         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
26094         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
26095         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
26096         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
26097
26098 2017-11-07  Florian Weimer  <fweimer@redhat.com>
26099
26100         * bits/mman-linux.h: Move ...
26101         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
26102         comment.
26103         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
26104         outdated comment.
26105
26106 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26107
26108         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
26109         Redefine STRNLEN as __strnlen_power8.
26110
26111 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26112
26113         * signal/sighold.c (sighold): Optimize implementation.
26114
26115         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
26116         __NR_rt_sigqueueinfo.
26117
26118         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
26119         __sigtimedwait.
26120         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
26121         assume __NR_rt_sigtimedwait.
26122         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
26123         and add LIBC_CANCEL_HANDLED for cancellation marking.
26124         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
26125
26126         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26127         (sysdeps_routines): Add memchr_noneon.
26128         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
26129         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
26130         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
26131         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
26132         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
26133         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
26134         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
26135
26136         * sysdeps/arm/arm-ifunc.h: New file.
26137         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
26138         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
26139         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
26140         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
26141         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
26142         (__memcpy_neon): Avoid create hidden alias.
26143         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
26144         (__memcpy_vfp): Likewise.
26145         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
26146         (sysdep_routines): Add memcpy_arm.
26147         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
26148
26149 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
26150
26151         [BZ #22362]
26152         * Makerules (make-link-multidir): New.
26153         * config.make.in (multidir): New.
26154         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
26155         * configure: Regenerated.
26156         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
26157         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
26158         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
26159         New target.
26160
26161 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
26162
26163         [BZ #22402]
26164         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
26165         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
26166
26167 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
26168
26169         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
26170         to be escaped.
26171
26172 2017-11-04  Florian Weimer  <fweimer@redhat.com>
26173
26174         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
26175
26176 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
26177
26178         * math/math.h [__HAVE_DISTINCT_FLOAT16
26179         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26180         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26181         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26182         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
26183         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
26184         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
26185         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26186         (__MATH_TG_F32): New macro.
26187         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26188         (__MATH_TG_F64X): Likewise.
26189         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26190         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
26191
26192 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
26193
26194         * po/de.po: Update translations.
26195         * po/ru.po: Likewise.
26196
26197 2017-11-03  Florian Weimer  <fweimer@redhat.com>
26198
26199         * manual/filesys.texi (Hard Links): Document linkat.
26200
26201 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
26202
26203         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
26204         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
26205         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
26206         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
26207         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26208         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26209         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
26210         the same as _Float128.
26211         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
26212         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
26213         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
26214
26215         * stdlib/stdlib.h
26216         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
26217         Declare.
26218         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
26219         Likewise.
26220         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
26221         Likewise.
26222         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26223         (strtof32x): Likewise.
26224         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26225         (strtof64x): Likewise.
26226         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26227         (strtof128x): Likewise.
26228         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26229         (strfromf16): Likewise.
26230         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26231         (strfromf32): Likewise.
26232         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26233         (strfromf64): Likewise.
26234         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26235         (strfromf32x): Likewise.
26236         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26237         (strfromf64x): Likewise.
26238         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26239         (strfromf128x): Likewise.
26240         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
26241         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
26242         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
26243         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
26244         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
26245         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
26246
26247 2017-11-03  Richard Henderson  <rth@twiddle.net>
26248
26249         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
26250
26251 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26252
26253         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
26254
26255 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26256
26257         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
26258         DT_TLSDESC_GOT initialization.
26259         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
26260         (_dl_tlsdesc_resolve_hold): Likewise.
26261         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
26262         (_dl_tlsdesc_resolve_hold): Likewise.
26263         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
26264         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26265
26266 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26267
26268         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
26269
26270 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26271
26272         [BZ #18572]
26273         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
26274         non-lazily for R_ARM_TLS_DESC.
26275
26276 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26277
26278         [BZ #17078]
26279         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
26280         R_ARM_TLS_DESC case.
26281         (elf_machine_lazy_rel): Remove the prelink check.
26282
26283 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26284
26285         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
26286         DT_TLSDESC_GOT initialization.
26287         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
26288         (_dl_tlsdesc_resolve_rela): Likewise.
26289         (_dl_tlsdesc_resolve_hold): Likewise.
26290         (_dl_tlsdesc_undefweak): Remove ldar.
26291         (_dl_tlsdesc_dynamic): Likewise.
26292         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
26293         (_dl_tlsdesc_resolve_rela): Likewise.
26294         (_dl_tlsdesc_resolve_hold): Likewise.
26295         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
26296         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26297         (_dl_tlsdesc_resolve_rela): Likewise.
26298         (_dl_tlsdesc_resolve_hold): Likewise.
26299
26300 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26301
26302         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26303         binding and initialization non-lazily for R_AARCH64_TLSDESC.
26304
26305 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26306
26307         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26308         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26309
26310 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
26311
26312         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26313         Declare.
26314         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26315         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26316         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26317         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26318         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26319         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26320         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26321         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26322         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26323         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26324         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26325
26326 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
26327
26328         [BZ #22382]
26329         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26330         * localedata/locales/tpi_PG: Add standard header.
26331
26332 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26333
26334         test-errno-linux: quotactl can fail with EPERM in containers.
26335         * sysdeps/unix/sysv/linux/test-errno-linux.c
26336         (LIST, LIST_FORWARD): New macros.
26337         (check_error_in_list): New function.
26338         (test_wrp_rv): Accept list of permitted error codes.
26339         (test_wrp_rv2): Remove.
26340         (test_wrp): Call test_wrp_rv with list of error codes.
26341         (test_wrp2): Accept list of error codes.
26342         (do_test): Adjust.  Allow EPERM for quotactl.
26343
26344 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26345
26346         * stdio-common/bug16.c (do_test): Use array_length.
26347         * stdio-common/errlist.c (_sys_nerr): Likewise.
26348         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26349         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26350         * stdio-common/psiginfo.c (psiginfo): Use array_length.
26351         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26352         (do_test): Use array_length.
26353         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26354         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26355         * stdio-common/tst-printf-round.c (do_test): Likewise.
26356         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26357         (CHECK): Use array_length.
26358         * stdio-common/tstdiomisc.c (t3, F): Likewise.
26359         * stdio-common/tstscanf.c (main): Likewise.
26360         * stdio-common/vfprintf.c (process_string_arg): Likewise.
26361
26362 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26363
26364         Add array_length and array_end macros.
26365         * include/array_length.h: New file.
26366
26367 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26368
26369         [BZ #22332]
26370         * posix/tst-glob-tilde.c (do_noescape): New variable.
26371         (one_test): Process it.
26372         (do_test): Set do_noescape.  Add unescaping test case.
26373
26374 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
26375
26376         * math/complex.h
26377         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26378         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26379         with appropriate macros defined and undefined.
26380         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26381         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26382         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26383         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26384         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26385         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26386         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26387         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26388         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26389         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26390
26391         * math/complex.h
26392         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26393         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26394         that for long double.  Do not condition define and undefine of
26395         _Mdouble_complex_ on [__CFLOAT128].
26396
26397 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26398
26399         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26400         of <sysdeps/generic/sysdep.h>.
26401         (ALIGNARG): Removed.
26402         (ASM_SIZE_DIRECTIVE): Likewise.
26403         (ENTRY): Likewise.
26404         (END): Likewise.
26405         (ENTRY_CHK): Likewise.
26406         (END_CHK): Likewise.
26407         (syscall_error): Likewise.
26408         (mcount): Likewise.
26409         (PSEUDO_END): Likewise.
26410         (L): Likewise.
26411         (atom_text_section): Likewise.
26412         * sysdeps/x86/sysdep.h: New file.
26413         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26414         of <sysdeps/generic/sysdep.h>.
26415         (ALIGNARG): Removed.
26416         (ASM_SIZE_DIRECTIVE): Likewise.
26417         (ENTRY): Likewise.
26418         (END): Likewise.
26419         (ENTRY_CHK): Likewise.
26420         (END_CHK): Likewise.
26421         (syscall_error): Likewise.
26422         (mcount): Likewise.
26423         (PSEUDO_END): Likewise.
26424         (L): Likewise.
26425         (atom_text_section): Likewise.
26426
26427 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
26428
26429         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26430         category of LC_CTYPE set to "i18n:2012".
26431         * localedata/locales/i18n_ctype: Regenerate.
26432
26433 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
26434
26435         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26436         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26437         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26438         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26439
26440         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26441         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26442         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26443         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26444
26445 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
26446
26447         * math/complex.h
26448         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26449         New macro.
26450         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26451         Likewise.
26452         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26453         Likewise.
26454         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26455         (CMPLXF32X): Likewise.
26456         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26457         (CMPLXF64X): Likewise.
26458         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26459         (CMPLXF128X): Likewise.
26460
26461         * math/math.h
26462         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26463         (__MATH_EVAL_FMT2): Define to add 0.0f.
26464
26465 2017-10-31  Alan Modra  <amodra@gmail.com>
26466
26467         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26468         include sysdep.h.
26469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26473         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26475         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26482         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26483         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26484         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26485         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26486         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26487         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26488         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26489         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26490         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26491         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26492         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26493         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26494         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26495         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26496         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26497         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26498         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26499         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26500         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26501         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26502         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26503         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26504         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26505         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26506         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26507         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26508         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26509         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26510         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26511         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26512         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26513         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26514         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26515         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26516         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26517         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26518         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26519         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26520         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26521         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26522         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26523         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26524         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26525         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26526         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26527         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26528         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26529         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26530         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26531         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26532         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26533         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26534         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26535         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26536         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26537         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26538
26539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26540         include sysdep.h and math_ldbl_opt.h.
26541
26542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26543         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
26544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26550         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26551         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26568
26569 2017-10-31  Alan Modra  <amodra@gmail.com>
26570
26571         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26572         string/strncase_l.c, not string/strncase.c.
26573         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26574         (libc_hidden_def): Redefine.
26575
26576 2017-10-31  Alan Modra  <amodra@gmail.com>
26577
26578         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26579         (__STRCMP, STRCMP, __strcasecmp_l): Define.
26580         (__strcasecmp): Don't define.
26581
26582 2017-10-31  Alan Modra  <amodra@gmail.com>
26583
26584         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26585         IS_IN (libc).
26586         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26587         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26588         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26589
26590 2017-10-31  Alan Modra  <amodra@gmail.com>
26591
26592         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26593         USE_AS_STPNCPY.
26594
26595 2017-10-31  Alan Modra  <amodra@gmail.com>
26596
26597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26598         Redefine only when SHARED.
26599
26600 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26601
26602         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26603         Include <bits/math-finite.h> with appropriate macros defined and
26604         undefined.
26605         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26606         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26607         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26608         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26609         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26610
26611         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26612         [!_Mlong_double_] (_Mlong_double_): Likewise.
26613         [!_Mfloat16_] (_Mfloat16_): Likewise.
26614         [!_Mfloat32_] (_Mfloat32_): Likewise.
26615         [!_Mfloat64_] (_Mfloat64_): Likewise.
26616         [!_Mfloat128_] (_Mfloat128_): Likewise.
26617         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26618         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26619         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26620         (_Mdouble_): Define without indirection through those macros.
26621         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26622         [!_Mfloat128_] (_Mfloat128_): Likewise.
26623         [_Mlong_double_] (_Mlong_double_): Likewise.
26624         (_Mdouble_): Define without indirection through those macros.
26625         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26626         not add -D_Mlong_double_=double.
26627         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26628         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26629
26630 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26631
26632         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26633
26634 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26635
26636         * sysdeps/x86/libc-start.c: Reformat.
26637
26638 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26639
26640         [BZ #22353]
26641         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26642         (1): Renamed to ...
26643         (L(Src0)): This.
26644         (L(Src1)): New.
26645         (L(Src2)): Likewise.
26646         (L(1)): Renamed to ...
26647         (L(Src3)): This.
26648
26649 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26650
26651         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26652         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26653         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26654         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26655         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26656         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26657         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26658         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26659         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26660         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26661         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26662         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26663         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26664         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26665         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26666         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26667         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26668         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26669         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26670         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26671         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26672         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26673         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26674         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26675         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26676         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26677         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26678         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26679         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26680         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26681         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26682         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26683         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26684         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26685         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26686         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26687         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26688         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26689         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26690         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26691         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26692         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26693         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26694         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26695         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26696         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26697         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26698         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26699         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26700         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26701         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26702         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26703         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26704         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26705         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26706         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26707         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26708         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26709         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26710         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26711         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26712         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26713         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26714         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26715         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26716         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26717
26718 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26719
26720         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26721         always defined.
26722         * io/tst-mkdirat.c (do_test): Likewise.
26723         * io/tst-mkfifoat.c (do_test): Likewise.
26724         * io/tst-mknodat.c (do_test): Likewise.
26725         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26726         * locale/programs/locale.c (select_dirs): Likewise.
26727         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26728         * posix/bug-glob2.c (my_readdir): Likewise.
26729         * posix/tst-dir.c (main): Likewise.
26730         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26731         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26732
26733 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26734
26735         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26736         just __USE_GNU.
26737
26738 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26739
26740         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26741         Convert to support/test-driver.c.
26742         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26743         New macro parameters.
26744         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
26745         * posix/tst-gnuglob.c: New file.
26746         * posix/tst-gnuglob64.c: Likewise.
26747         * posix/Makefile (tests): Add tst-gnuglob64.
26748
26749 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
26750
26751         [BZ #19485]
26752         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26753         and use a better translation for March in “mon”.
26754         * localedata/locales/csb_PL: Use more ASCII to improve the
26755         readability of the source.
26756
26757 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
26758
26759         [BZ #13953]
26760         * localedata/locales/km_KH: Use ASCII as much
26761         as possible for better readability of the source and
26762         remove useless comments.
26763         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26764         was commented out and apparently wrong anyway because it was
26765         using Lao characters. If Buddhist era should be used
26766         for km_KH, a native speaker should write the correct formaat
26767         for Khmer.
26768         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26769         (According to CLDR, the first weekday for Cambodia is Sunday).
26770         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26771         (These were using Lao characters which must be wrong. If we get
26772         the correct data from a native speaker, we could add it back, until
26773         then it is better not to have name_mr and name_mrs at all than
26774         having it wrong).
26775
26776 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
26777
26778         * locale/loadlocale.c: Correct size of
26779         _nl_value_type_LC_<category> arrays.
26780
26781 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
26782
26783         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26784         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26785         with appropriate macros defined and undefined.
26786         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26787         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26788         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26789         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26790         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26791
26792 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
26793
26794         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26795         "-O2 -march=i586".
26796
26797 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26798
26799         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26800         with lowercase letters to make it agree with CLDR.
26801
26802 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26803
26804         [BZ #15260]
26805         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26806         first letters of yesstr and nostr in yesexpr and noexpr,
26807         not for the full words.
26808         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26809         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26810         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26811         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26812         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26813         first letters of yesstr and nostr in yesexpr and noexpr,
26814         until now only English was matched in yesexpr and noexpr.
26815         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26816         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26817         fil but not for tl. As tl and fil are very similar, using fil
26818         is probably better than using English.
26819
26820 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
26821
26822         [BZ #21706]
26823         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26824         in yesstr and nostr.
26825
26826 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
26827
26828         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26829         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26830         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26831         Likewise.
26832         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26833         Likewise.
26834         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26835         Likewise.
26836         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26837         Likewise.
26838         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26839         (SNANF128X): Likewise.
26840
26841         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26842         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26843         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26844         (HUGE_VAL_F32): Likewise.
26845         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26846         (HUGE_VAL_F64): Likewise.
26847         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26848         (HUGE_VAL_F32X): Likewise.
26849         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26850         (HUGE_VAL_F64X): Likewise.
26851         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26852         (HUGE_VAL_F128X): Likewise.
26853
26854 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26855
26856         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26857         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26858         for the br_FR locale.
26859
26860 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26861
26862         [BZ #21706]
26863         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26864
26865 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
26866
26867         * locale/programs/record-status.h: Define globals, and function
26868         prototypes. Move function bodies...
26869         * locale/programs/record-status.c: ... to here. New file.
26870         * iconv/Makefile (iconv_prog-modules): Add record-status.
26871         * locale/Makefile (lib-modules): Likewise.
26872         * iconv/iconv_prog.c: Remove verbose.
26873         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26874         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26875         record a warning about ASCII compatibility.
26876         * locale/programs/ld-monetary.c (monetary_finish): If
26877         warn_int_curr_symbol is true then record a warning about the symbol
26878         not being in our ISO 4217 list.
26879         * locale/programs/locale.c: Include record-status.h. Remove verbose.
26880         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26881         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26882         (OPT_NO_WARN): Define.
26883         (OPT_WARN): Define.
26884         (options): Add entry for --no-warnings, and --warnings.
26885         (set_warnings): New function to enable/disable warnings.
26886         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26887         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26888         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26889         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26890         Pass flags to generate_locale.
26891         (generate_locale): Accept new flag argument and pass it to localedef
26892         invocation.
26893         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26894         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26895
26896         * localedata/Makefile (test-input-data): Use full file name.
26897         * localedata/da_DK.in: Rename to...
26898         * localedata/da_DK.ISO-8859-1.in: ...this.
26899         * localedata/de_DE.in: Rename to...
26900         * localedata/de_DE.ISO-8859-1.in: ...this.
26901         * localedata/en_US.in: Rename to...
26902         * localedata/en_US.ISO-8859-1.in: ...this.
26903         * localedata/fr_FR.in: Rename to...
26904         * localedata/fr_FR.UTF-8.in: ... this.
26905         * localedata/hr_HR.in: Rename to...
26906         * localedata/hr_HR.ISO-8859-2.in: ...this.
26907         * localedata/hu_HU.in: Rename to...
26908         * localedata/hu_HU.UTF-8.in: ...this.
26909         * localedata/si_LK.in: Rename to...
26910         * localedata/si_LK.UTF-8.in: ...this.
26911         * localedata/sv_SE.in: Rename to...
26912         * localedata/sv_SE.ISO-8859-1.in: ...this.
26913         * localedata/tr_TR.in: Rename to...
26914         * localedata/tr_TR.UTF-8.in: ...this.
26915         * localedata/uk_UA.in: Rename to...
26916         * localedata/uk_UA.UTF-8.in: ...this.
26917         * localedata/sort-test.sh: Test file is locale name with the
26918         suffix.
26919
26920         * localedata/unicode-gen/Makefile (check_i18n): Rename to
26921         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26922         file.
26923         * localedata/locales/i18n_ctype: Regenerate.
26924         * localedata/locales/tr_TR: Likewise.
26925         * localedata/locales/translit_circle: Likewise.
26926         * localedata/locales/translit_cjk_compat: Likewise.
26927         * localedata/locales/translit_combining: Likewise.
26928         * localedata/locales/translit_compat: Likewise.
26929         * localedata/locales/translit_font: Likewise.
26930         * localedata/locales/translit_fraction: Likewise.
26931
26932 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26933
26934         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26935         lxvd2x/stxvd2x with lvx/stvx.
26936         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26937
26938 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
26939
26940         * include/alloc_buffer.h: Replace "if if " with "if " in
26941         comments.
26942         * sysdeps/mips/memcpy.S: Likkewise.
26943         * sysdeps/mips/memset.S: Likewise.
26944         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26945         Likewise.
26946         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26947         Likewise.
26948         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26949         Likewise.
26950
26951 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26952
26953         [BZ #15261]
26954         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26955         yesexpr and noexpr.
26956         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26957         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26958         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26959         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26960         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26961         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26962         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26963
26964 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26965
26966         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26967         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26968         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26969         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26970         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26971         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26972         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26973         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26974         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26975         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26976         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26977         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26978
26979 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26980
26981         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26982         as possible for better readability of the source.
26983         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26984         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26985         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26986         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26987         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26988         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26989         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26990         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26991         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26992         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26993         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26994         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26995         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26996         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26997         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26998         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26999         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
27000         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
27001         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
27002         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
27003         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
27004         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
27005         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
27006         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
27007         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
27008         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
27009         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
27010         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
27011         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
27012         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
27013         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
27014         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
27015         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
27016         * localedata/locales/en_US (LC_MESSAGES): Likewise.
27017         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
27018         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
27019         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
27020         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
27021         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
27022         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
27023         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
27024         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
27025         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
27026         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
27027         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
27028         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
27029         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
27030         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
27031         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
27032         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
27033         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
27034         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
27035         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
27036         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
27037         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
27038         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
27039         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
27040         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
27041         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
27042         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
27043         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
27044         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
27045         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
27046         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
27047         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
27048         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
27049         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
27050         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
27051         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
27052         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
27053         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
27054         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
27055         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
27056         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
27057         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
27058         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
27059         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
27060         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
27061         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
27062         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
27063         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
27064         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
27065         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
27066         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
27067         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
27068         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
27069         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
27070         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
27071         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
27072         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
27073         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
27074         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
27075         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
27076         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
27077         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
27078         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
27079         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
27080         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
27081         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
27082         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
27083         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
27084         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
27085         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
27086         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
27087         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
27088         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
27089         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
27090         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
27091         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
27092         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
27093         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
27094         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
27095         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
27096         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
27097         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
27098         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
27099         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
27100         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
27101         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
27102         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
27103         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
27104         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
27105         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
27106         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
27107         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
27108         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
27109         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
27110         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
27111         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
27112         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
27113         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
27114         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
27115         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
27116         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
27117         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
27118         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
27119         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
27120         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
27121         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
27122         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
27123         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
27124         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
27125         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
27126         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
27127         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
27128         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
27129         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
27130         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
27131         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
27132         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
27133         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
27134         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
27135         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
27136         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
27137         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
27138         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
27139         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
27140         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
27141         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
27142         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
27143         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
27144         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
27145         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
27146         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
27147         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
27148         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
27149         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
27150         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
27151         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
27152         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
27153         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
27154         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
27155         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
27156         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
27157
27158 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27159
27160         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
27161         (Use first letters of yesstr and nostr correctly instead of using
27162         full words).
27163
27164 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27165
27166         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
27167         (Use first letters of yesstr and nostr correctly).
27168
27169 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27170
27171         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
27172         also check for the first characters of yesstr and nostr.
27173         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
27174         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
27175
27176 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27177
27178         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
27179         also check for Chinese characters.
27180
27181 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27182
27183         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
27184         match also for the contents of yesstr and nostr. As the first letter
27185         of yesstr and nostr is equal, checking only for the first letter
27186         is not enough.
27187
27188 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27189
27190         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
27191         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
27192
27193 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27194
27195         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
27196         of main contributor.
27197
27198 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27199
27200         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
27201         instead of using English.
27202
27203 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27204
27205         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
27206         by including the first letters of nostr and yesexpr in the regexp.
27207         Also make it more readable by using ASCII where possible.
27208
27209 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
27210
27211         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
27212         the first letter of nostr in the regexp. It agrees with CLDR now.
27213         Also make it more readable by using ASCII where possible.
27214
27215 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27216
27217         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
27218         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
27219         these strings contain a U+17D6 (which somewhat looks like a colon)
27220         instead of a real colon to separate the full words for “yes”
27221         and “no” from the single letter responses.
27222
27223 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27224
27225         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
27226         it agree with CLDR (include the first letter of yesstr).
27227         Also make it more readable by using ASCII where possible.
27228
27229 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27230
27231         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
27232         and improve yesexpr and noexpr. The yesstr and nostr apparently
27233         came from CLDR. And CLDR has a bug there: these strings contain
27234         a U+0903 (which looks like a colon) instead of a real colon
27235         to separate the full words for “yes” and “no” from the single
27236         letter responses.
27237
27238 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27239
27240         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
27241         letters of the full yesstr and nostr in yesexpr and noexpr.
27242
27243 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27244
27245         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
27246         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
27247         * localedata/locales/an_ES: Make source more readable by using ASCII
27248         where possible.
27249
27250 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
27251
27252         [BZ #20952]
27253         * localedata/locales/yuw_PG: New file.
27254         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
27255         * locale/iso-639.def: Add Yau (Uruwa).
27256
27257 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
27258
27259         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
27260
27261 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
27262
27263         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
27264         (__libc_realloc): Likewise.
27265         (_mid_memalign): Likewise.
27266         (__libc_calloc): Likewise.
27267
27268 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
27269
27270         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
27271         by adding the generic +1 and -0 as in all other locales.
27272         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
27273         day names and make it more readable by using ASCII where possible.
27274
27275 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
27276
27277         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
27278         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
27279
27280 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27281
27282         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
27283         WNOHANG in waitpid call.
27284
27285 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27286
27287         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
27288         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
27289
27290         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
27291         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
27292         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
27293         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
27294         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
27295         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
27296         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
27297         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
27298         variables.
27299
27300 2017-10-23  Michael Collison  <michael.collison@arm.com>
27301
27302         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27303         with __builtin_sqrt.
27304         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27305         with __builtin_sqrtf.
27306         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27307         with __builtin_ceil.
27308         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27309         with __builtin_ceilf.
27310         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27311         with __builtin_floor.
27312         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27313         with __builtin_floorf.
27314         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27315         with __builtin_fma.
27316         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27317         with __builtin_fmaf.
27318         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27319         with __builtin_fmax.
27320         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27321         with __builtin_fmaxf.
27322         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27323         with __builtin_fmin.
27324         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27325         with __builtin_fminf.
27326         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27327         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27328         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27329         with builtin_rint and conversion to int.
27330         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27331         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27332         with builtin_llround.
27333         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27334         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27335         with builtin_rint and conversion to long int.
27336         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27337         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27338         with builtin_lround.
27339         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27340         with builtin_lroundf.
27341         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27342         statements with __builtin_nearbyint.
27343         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27344         statements with __builtin_nearbyintf.
27345         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27346         with __builtin_rint.
27347         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27348         with __builtin_rintf.
27349         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27350         with __builtin_round.
27351         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27352         with __builtin_roundf.
27353         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27354         with __builtin_trunc.
27355         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27356         with __builtin_truncf.
27357         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27358         and s_l[l]round[f].c too.
27359
27360 2017-10-23  Alan Modra  <amodra@gmail.com>
27361
27362         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27363         Adjust stack after restoring regs.  Add missing LR cfi_restore.
27364
27365 2017-10-23  Alan Modra  <amodra@gmail.com>
27366
27367         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27368         Move LR save and frame setup/teardown and LR restore to
27369         immediately around memset call.  Provide cfi.
27370
27371 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27372
27373         * sysdeps/i386/fpu/e_powf.S: Removed.
27374         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27375         * sysdeps/i386/fpu/w_powf.c: Likewise.
27376         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27377         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27378         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27379         Add e_powf-sse2.
27380         (CFLAGS-e_powf-sse2.c): New.
27381         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27382         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27383
27384 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27385
27386         * sysdeps/i386/fpu/e_log2f.S: Removed.
27387         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27388         * sysdeps/i386/fpu/w_log2f.c: Likewise.
27389         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27390         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27391         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27392         Add e_log2f-sse2.
27393         (CFLAGS-e_log2f-sse2.c): New.
27394         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27395         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27396
27397 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27398
27399         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27400         Add e_powf-fma.
27401         (CFLAGS-e_powf-fma.c): New.
27402         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27403         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27404
27405 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27406
27407         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27408         Add e_log2f-fma.
27409         (CFLAGS-e_log2f-fma.c): New.
27410         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27411         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27412
27413 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27414
27415         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27416         Add e_logf-fma.
27417         (CFLAGS-e_logf-fma.c): New.
27418         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27419         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27420
27421 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27422
27423         * sysdeps/i386/fpu/e_logf.S: Removed.
27424         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27425         * sysdeps/i386/fpu/w_logf.c: Likewise.
27426         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27427         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27428         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27429         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27430         Add e_logf-sse2.
27431         (CFLAGS-e_logf-sse2.c): New.
27432         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27433         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27434
27435 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27436
27437         * sysdeps/i386/fpu/e_exp2f.S: Removed.
27438         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27439         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27440         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27441         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27442         Add e_exp2f-sse2.
27443         (CFLAGS-e_exp2f-sse2.c): New.
27444         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27445         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27446
27447 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27448
27449         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27450         Add e_exp2f-fma.
27451         (CFLAGS-e_exp2f-fma.c): New.
27452         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27453         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27454
27455 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27456
27457         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27458         * sysdeps/i386/fpu/e_expf.S: Likewise.
27459         * sysdeps/i386/fpu/math_errf.c: Likewise.
27460         * sysdeps/i386/fpu/w_expf.c: Likewise.
27461         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27462         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27463         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27464         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27465         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27466         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27467         Remove e_expf-ia32.
27468         (CFLAGS-e_expf-sse2.c): New.
27469         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27470         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27471
27472 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27473
27474         * sysdeps/x86_64/fpu/e_expf.S: Removed.
27475         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27476         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27477         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27478         e_expf.c.
27479         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27480         New.
27481         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27482         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27483         Renamed to ...
27484         (__redirect_expf): This.
27485         (SYMBOL_NAME): Changed to expf.
27486         (__ieee754_expf): Renamed to ...
27487         (__expf): This.
27488         (__GI___expf): This.
27489         (__ieee754_expf): Add strong_alias.
27490         (__expf_finite): Likewise.
27491         (__expf): New.
27492         Include <sysdeps/ieee754/flt-32/e_expf.c>.
27493
27494 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27495
27496         [BZ #22332]
27497         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27498         unescaping.
27499
27500 2017-10-21  Florian Weimer  <fweimer@redhat.com>
27501
27502         * posix/Makefile (tests): Add tst-glob-tilde.
27503         (tests-special): Add tst-glob-tilde-mem.out
27504         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27505         (tst-glob-tilde-mem.out): Add mtrace check.
27506         * posix/tst-glob-tilde.c: New file.
27507
27508 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
27509
27510         * bits/floatn-common.h: New file.
27511         * math/Makefile (headers): Add bits/floatn-common.h.
27512         * bits/floatn.h: Include <bits/floatn-common.h>.
27513         * sysdeps/ia64/bits/floatn.h: Likewise.
27514         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27515         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27516         * sysdeps/powerpc/bits/floatn.h: Likewise.
27517         * sysdeps/x86/bits/floatn.h: Likewise.
27518
27519 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27520
27521         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27522         indicates whether compiler emits an warning for alias for
27523         functions with incompatible types.
27524
27525         [BZ #22273]
27526         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27527         the auxiliary process is terminated by a signal before calling _exit
27528         or execve.
27529
27530 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27531
27532         [BZ #21265]
27533         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27534         New.
27535         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27536         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27537         and bit_arch_XSAVEC_Usable if needed.
27538         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27539         and bit_arch_Use_dl_runtime_resolve_opt.
27540         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27541         Removed.
27542         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27543         (bit_arch_Prefer_No_AVX512): Updated.
27544         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27545         (bit_arch_XSAVEC_Usable): New.
27546         (STATE_SAVE_OFFSET): Likewise.
27547         (STATE_SAVE_MASK): Likewise.
27548         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27549         (cpu_features): Add xsave_state_size and xsave_state_full_size.
27550         (index_arch_Use_dl_runtime_resolve_opt): Removed.
27551         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27552         (index_arch_XSAVEC_Usable): New.
27553         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27554         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
27555         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27556         is enabled.
27557         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27558         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27559         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27560         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27561         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27562         _dl_runtime_resolve_xsavec.
27563         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27564         Removed.
27565         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27566         instead of VEC_SIZE.
27567         (REGISTER_SAVE_BND0): Removed.
27568         (REGISTER_SAVE_BND1): Likewise.
27569         (REGISTER_SAVE_BND3): Likewise.
27570         (REGISTER_SAVE_RAX): Always defined to 0.
27571         (VMOV): Removed.
27572         (_dl_runtime_resolve_avx): Likewise.
27573         (_dl_runtime_resolve_avx_slow): Likewise.
27574         (_dl_runtime_resolve_avx_opt): Likewise.
27575         (_dl_runtime_resolve_avx512): Likewise.
27576         (_dl_runtime_resolve_avx512_opt): Likewise.
27577         (_dl_runtime_resolve_sse): Likewise.
27578         (_dl_runtime_resolve_sse_vex): Likewise.
27579         (USE_FXSAVE): New.
27580         (_dl_runtime_resolve_fxsave): Likewise.
27581         (USE_XSAVE): Likewise.
27582         (_dl_runtime_resolve_xsave): Likewise.
27583         (USE_XSAVEC): Likewise.
27584         (_dl_runtime_resolve_xsavec): Likewise.
27585         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27586         Removed.
27587         (_dl_runtime_resolve_avx512_opt): Likewise.
27588         (_dl_runtime_resolve_avx): Likewise.
27589         (_dl_runtime_resolve_avx_opt): Likewise.
27590         (_dl_runtime_resolve_sse): Likewise.
27591         (_dl_runtime_resolve_sse_vex): Likewise.
27592         (_dl_runtime_resolve_fxsave): New.
27593         (_dl_runtime_resolve_xsave): Likewise.
27594         (_dl_runtime_resolve_xsavec): Likewise.
27595
27596 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27597
27598         [BZ #22320]
27599         CVE-2017-15670
27600         * posix/glob.c (__glob): Fix one-byte overflow.
27601
27602 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27603
27604         * malloc/malloc.c (sysdep-cancel.h): Add include.
27605
27606 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27607
27608         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27609
27610 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
27611
27612         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27613         (tests): Remove $(objpfx)ga_test depdendency.
27614         * resolv/ga_test.c: Remove file.
27615
27616 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27617
27618         [BZ #18812]
27619         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27620         * localedata/locales/kab_DZ: New file.
27621
27622 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27623
27624         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27625         _dl_relocate_static_pie instead of _dl_start to compute load
27626         address in static PIE.
27627
27628 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27629
27630         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27631
27632 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27633
27634         [BZ #13605]
27635         * localedata/SUPPORTED: Add shn_MM/UTF-8.
27636         * localedata/locales/shn_MM: New file.
27637
27638 2017-10-20  Florian Weimer  <fweimer@redhat.com>
27639
27640         [BZ #22321]
27641         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27642         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27643         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27644         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27645         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27646         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27647
27648 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
27649
27650         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27651
27652 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
27653
27654         * sysdeps/mips/ieee754/bits/floatn.h: New file.
27655
27656         [BZ #22322]
27657         * sysdeps/mips/bits/long-double.h: Move to ....
27658         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27659
27660 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
27661
27662         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27663
27664 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
27665             H.J. Lu  <hongjiu.lu@intel.com>
27666
27667         [BZ #22299]
27668         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27669         GLRO(dl_platform) to NULL.
27670         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27671         (modules-names): Add tst-platformmod-1 and
27672         x86_64/tst-platformmod-2.
27673         (CFLAGS-tst-platform-1.c): New.
27674         (CFLAGS-tst-platformmod-1.c): Likewise.
27675         (CFLAGS-tst-platformmod-2.c): Likewise.
27676         (LDFLAGS-tst-platformmod-2.so): Likewise.
27677         ($(objpfx)tst-platform-1): Likewise.
27678         ($(objpfx)tst-platform-1.out): Likewise.
27679         (tst-platform-1-ENV): Likewise.
27680         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27681         * sysdeps/x86_64/tst-platform-1.c: New file.
27682         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27683         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27684
27685 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
27686
27687         [BZ #13994]
27688         * locale/iso-639.def: Add Karbi.
27689         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27690         * localedata/locales/mjw_IN: New file.
27691
27692 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
27693
27694         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27695         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27696         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27697         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27698         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27699         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27700         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27701         <bits/floatn.h>.
27702         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27703         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27704         * manual/math.texi (Mathematics): Document additional architecture
27705         support for _Float128.
27706         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27707         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27708         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27709         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27710         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27711         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27712         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27713         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27714         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27715         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27716         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27717         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27718         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27719         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27720         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27721
27722 2017-10-18  Renlin Li  <renlin.li@arm.com>
27723
27724         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27725         _DYNAMIC symbol to calculate load address.
27726
27727 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
27728
27729         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27730         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27731         summary bits.
27732         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27733         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27734
27735 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
27736
27737         [BZ #16777]
27738         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27739         and improve readability by using more ASCII.
27740         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27741         and improve readability by using more ASCII.
27742
27743 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
27744
27745         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27746         not all targets support atomics on bool.
27747
27748 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
27749
27750         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27751         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27752         __f128.
27753         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27754         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27755         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27756         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27757         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27758         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27759
27760 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27761
27762         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27763         defines.
27764
27765 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27766
27767         [BZ #22159]
27768         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27769         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27770         (do_check_remalloced_chunk): Fix build bug.
27771         (do_check_malloc_state): Add assert that checks arena->top.
27772         (malloc_consolidate): Remove initialization.
27773         (int_mallinfo): Remove call to malloc_consolidate.
27774         (__libc_mallopt): Clarify why malloc_consolidate is needed.
27775
27776 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27777
27778         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27779         (have_fastchunks): Remove.
27780         (clear_fastchunks): Remove.
27781         (set_fastchunks): Remove.
27782         (malloc_state): Add have_fastchunks.
27783         (malloc_init_state): Use have_fastchunks.
27784         (do_check_malloc_state): Remove incorrect invariant checks.
27785         (_int_malloc): Use have_fastchunks.
27786         (_int_free): Likewise.
27787         (malloc_consolidate): Likewise.
27788
27789 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27790
27791         * malloc/malloc.c (tcache_put): Inline.
27792         (tcache_get): Inline.
27793
27794 2017-10-17  Jordi Mallach  <jordi@gnu.org>
27795
27796         Aurelien Jarno  <aurelien@aurel32.net>
27797         [BZ #2522]
27798         * localedata/locales/ca_ES@valencia: New file.
27799         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27800
27801 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
27802
27803         [BZ #22296]
27804         * math/math.h: Let signbit use the builtin in C++ mode with gcc
27805         < 6.x
27806
27807 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27808
27809         * scripts/build-many-glibcs.py (Context.add_all_configs):
27810         Add arm-linux-gnueabihf multiarch extra_glibcs.
27811
27812         * sysdeps/generic/ifunc-init.h: New file.
27813         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27814
27815 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
27816
27817         [BZ #22019]
27818         * localedata/locales/el_GR: Set n_cs_precedes to 0.
27819         * localedata/locales/el_CY: copy "el_GR" because it is identical.
27820         * stdlib/tst-strfmon_l.c: adapt test case.
27821
27822 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27823
27824         * sysdeps/generic/float128-abi.h: New file.
27825         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27826         non-__prefixed symbols to ....
27827         * math/Versions: ... here.  Include <float128-abi.h>.
27828         * stdlib/Versions ... and here.  Include <float128-abi.h>
27829
27830 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27831
27832         * version.h (VERSION): Switch to ".9000" as the development
27833         version suffix.
27834
27835 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27836
27837         [BZ #22050]
27838         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27839         compat_symbol_reference to access non-default version.
27840
27841 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27842
27843         * malloc/Makefile (others-extras): Set to mcheck-init.o.
27844
27845 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
27846
27847         * include/shlib-compat.h (compat_symbol_reference): Update
27848         comment.
27849
27850 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27851
27852         * math/Makefile (test-types): Add
27853         $(type-float128-$(float128-alias-fcts)).
27854         * math/test-float128.h (TYPE_STR): Define conditional on
27855         [FLT128_MANT_DIG == LDBL_MANT_DIG].
27856         (ULP_IDX): Likewise.
27857         (ULP_I_IDX): Likewise.
27858
27859         * stdlib/strtold.c: Include <bits/floatn.h>
27860         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27861         and later undefine as macro.  Define as weak alias if
27862         [!USE_WIDE_CHAR].
27863         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27864         and later undefine as macro.  Define as weak alias if
27865         [USE_WIDE_CHAR].
27866         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27867         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27868         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
27869         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27870         Define and later undefine as macro.  Define as weak alias if
27871         [USE_WIDE_CHAR].
27872         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27873         <bits/floatn.h>.
27874         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27875         Define and later undefine as macro.  Define as weak alias if
27876         [!USE_WIDE_CHAR].
27877         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27878         Define and later undefine as macro.  Define as weak alias if
27879         [USE_WIDE_CHAR].
27880
27881 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
27882
27883         * localedata/collate-test.c (allocate_arrays): Don't use \n in
27884         record_verbose messages.
27885
27886 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27887
27888         [BZ #22052]
27889         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27890         to silence -O3 -Wall warning with GCC 7.
27891
27892 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27893
27894         * Makeconfig (+link-static-before-libc): Use the first of
27895         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27896         * gmon/Makefile (tests): Add tst-gmon-static.
27897         (tests-static): Likewise.
27898         (CFLAGS-tst-gmon-static.c): New.
27899         (CRT-tst-gmon-static): Likewise.
27900         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27901         (tst-gmon-static-ENV): Likewise.
27902         (tests-special): Likewise.
27903         ($(objpfx)tst-gmon-static.out): Likewise.
27904         (clean-tst-gmon-static-data): Likewise.
27905         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27906         * gmon/tst-gmon-static-gprof.sh: New file.
27907         * gmon/tst-gmon-static.c: Likewise.
27908
27909 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
27910
27911         [BZ #22295]
27912         * locale/programs/linereader.c (get_string): Don't warn on
27913         non-symbolic character.
27914
27915         [BZ #22294]
27916         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27917         int_curr_symbol.
27918
27919         [BZ #22292]
27920         * locale/programs/record-status.h: New file
27921         * locale/programs/locale.c: Add comment.
27922         * locale/programs/charmap-dir.c: Don't include error.h.
27923         (charmap_opendir): Use record_error.
27924         * locale/programs/charmap.c: Don't include error.h.
27925         (charmap_read): Use record_error, and record_warning.
27926         (parse_charmap): Likewise.
27927         * locale/programs/ld-address.c: Don't include error.h.
27928         (address_finish): Use record_error, and record_warning.
27929         * locale/programs/ld-collate.c: Don't include error.h.
27930         (collate_finish): Use record_error, and record_error_at_line.
27931         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27932         (ctype_class_new): Likewise.
27933         (ctype_map_new): Likewise.
27934         (set_one_default): Likewise.
27935         (set_class_defaults): Likewise.
27936         (translit_flatten): Likewise.
27937         (allocate_arrays): Use record_error, and record_verbose.
27938         * locale/programs/ld-identification.c: Don't include error.h.
27939         (indentation_finish): Use record_error and record_warning.
27940         * locale/programs/ld-measurement.c: Don't include error.h.
27941         (measurement_finish): Use record_error.
27942         * locale/programs/ld-messages.c
27943         (message_finish): Likewise.
27944         * locale/programs/ld-monetary.c
27945         (monetary_finish): Likewise.
27946         * locale/programs/ld-name.c (name_finish): Use record_error
27947         and record_warning.
27948         * locale/programs/ld-numeric.c
27949         (numeric_finish): Use record_error.
27950         * locale/programs/ld-paper.c: Don't include error.h.
27951         (paper_finish): Use record_error.
27952         * locale/programs/ld-telephone.c: Don't include error.h.
27953         (telephone_finish): Use record_error.
27954         * locale/programs/ld-time.c (time_finish): Likewise.
27955         * locale/programs/linereader.h (lr_error): Make inline func.
27956         * locale/programs/localedef.c: Define recorded_warning_count,
27957         and recorded_error_count.
27958         (main): Use record_error. Use recorded_error_count and
27959         recorded_warning_count to issue correct error returns.
27960         (add_to_readlist): Use record_error.
27961         (find_locale): Likewise.
27962         (load_locale): Likewise.
27963         * locale/programs/localedef.h: Remove be_quiet
27964         and WITH_CUR_LOCALE.
27965         * locale/programs/locarchive.c (compare_from_file): Use
27966         record_error.
27967         * locale/programs/locfile.c (write_locale_data): Use
27968         record_error.
27969         * locale/programs/repertoire.c: Dont include error.h.
27970         (repertoire_complain): Use record_error.
27971         * localedata/tst-fmon.sh: Expect failures from localedef.
27972         * localedata/tst-locale.sh: Likewise.
27973         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27974
27975         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27976         (REPORTS): Likewise.
27977         (check): Likewise.
27978         (i18n): Rename to...
27979         (i18n_ctype): ...this.
27980         (i18n-report): Rename to...
27981         (i18n_ctype-report): ...this.
27982         * localedata/locales/i18n_ctype: Regenerate.
27983         * localedata/locales/i18n: copy i18n_ctype.
27984
27985 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27986
27987         * stdlib/strfroml.c: Include <bits/floatn.h>.
27988         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27989         Define before include of <stdlib.h> and undefine afterwards, then
27990         define as weak alias.
27991
27992         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27993         Undefine and restore default definition.  Use
27994         libm_alias_ldouble_other.
27995
27996 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
27997
27998         [BZ #22153]
27999         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
28000         in coredumps.
28001
28002 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
28003
28004         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28005         Assign sym_map to be map for local symbols, as TLS relocations
28006         use sym_map to determine whether the symbol is defined and to
28007         extract the TLS information.
28008         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28009         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28010
28011 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28012
28013         [BZ #22189]
28014         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
28015         (math_force_eval): Add powerpc version.
28016
28017         [BZ #22142]
28018         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
28019         -DBL_MAX.
28020         (do_test): Likewise.
28021         * stdio-common/tst-printf.sh: Likewise.
28022         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
28023         ifdef clause in order to set the carry bit right.  Replace r0 by
28024         0 without changing the behavior.
28025
28026 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
28027
28028         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
28029         <libm-alias-ldouble.h>.
28030         (fabsl): Define using libm_alias_ldouble.
28031         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
28032         <libm-alias-ldouble.h>.
28033         (fabsl): Define using libm_alias_ldouble.
28034
28035         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
28036         Remove conditional code.
28037
28038         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
28039         Rename to __clog10_internal_l.
28040         (__clog10_internal_l): Define aliases using
28041         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
28042         with __clog10.
28043
28044 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28045
28046         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
28047         * benchtests/sincosf-inputs: New file.
28048         * benchtests/cosf-inputs: New file.
28049         * benchtests/sinf-inputs: New file.
28050
28051 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28052
28053         * posix/tst-spawn.c (do_test): Wait for both children.
28054
28055 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
28056
28057         [BZ #22284]
28058         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
28059         tests-pie): Add tst-gmon-pie.
28060         (CFLAGS-tst-gmon-pie.c): New.
28061         (CRT-tst-gmon-pie): Likewise.
28062         (tst-gmon-pie-ENV): Likewise.
28063         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
28064         ($(objpfx)tst-gmon-pie.out): Likewise.
28065         (clean-tst-gmon-pie-data): Likewise.
28066         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
28067         * gmon/gmon.c [PIC]: Include <link.h>.
28068         [PIC] (callback): New function.
28069         (write_hist): Add an argument for load address.  Subtract load
28070         address from PCs.
28071         (write_call_graph): Likewise.
28072         (write_gmon): Call __dl_iterate_phdr to get load address, pass
28073         it to write_hist and write_call_graph.
28074         * gmon/tst-gmon-pie.c: New file.
28075
28076 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
28077
28078         * math/Makefile (test-types-basic): New variable.
28079         (test-types): Likewise.
28080         (libm-test-support): Use $(test-types) instead of $(types).
28081         (libm-tests-base-normal): Likewise.
28082         (libm-tests-base-finite): Likewise.
28083         (libm-tests-base-inline): Likewise.
28084         (generated): Likewise.
28085         ($(objpfx)libm-test-support-$(t).c): Likewise.
28086         (libm-tests-for-type iterator): Likewise.
28087         (libm-test-support iterator): Likewise.
28088         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
28089         (ulp_idx): Use ULP_IDX.
28090         * math/test-ldouble.h: Include <float.h>.
28091         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
28092         (ULP_IDX): New macro.
28093         (ULP_I_IDX): Likewise.
28094         * math/test-double.h (ULP_IDX): Likewise.
28095         (ULP_I_IDX): Likewise.
28096         * math/test-float.h (ULP_IDX): Likewise.
28097         (ULP_I_IDX): Likewise.
28098         * math/test-float128.h (ULP_IDX): Likewise.
28099         (ULP_I_IDX): Likewise.
28100
28101 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28102
28103         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
28104         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
28105         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
28106         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
28107         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
28108         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
28109         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
28110         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
28111         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
28112         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
28113         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
28114         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
28115         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
28116         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
28117         (SINGLE_THREAD_BY_GLOBAL): Define.
28118         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28119         Likewise.
28120         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28121         Likewise.
28122         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28123         Likewise.
28124         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28125         Likewise.
28126         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
28127         (SINGLE_THREAD_BY_GLOBAL): Likewise.
28128         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
28129         Likewise.
28130
28131 2017-10-11  Andreas Schwab  <schwab@suse.de>
28132
28133         * nis/Makefile (aux): Remove.
28134         * nscd/Makefile (aux): Add nscd_hash.
28135         (nscd-modules): Likewise.
28136         ($(objpfx)nscd): Don't depend on libnsl.
28137         * nscd/nscd_hash.c: New file.
28138         * nscd/nscd_hash.h: Likewise.
28139         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
28140         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
28141         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
28142         instead of <nis/rpcsvc/nis.h>.
28143         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
28144
28145 2017-10-11  Florian Weimer  <fweimer@redhat.com>
28146
28147         [BZ #22078]
28148         Avoid large NSS buffers with many addresses, aliases.
28149         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
28150         using dynarrays and struct alloc_buffer.
28151         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
28152         (tst-nss-files-hosts-multi): Link with -ldl.
28153         * nss/tst-nss-files-hosts-multi.c: New file.
28154
28155 2017-10-11  Florian Weimer  <fweimer@redhat.com>
28156
28157         [BZ #18023]
28158         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
28159         scratch_buffer.  Eliminate gotos.
28160
28161 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
28162
28163         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
28164         libm_alias_ldouble_other.
28165         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
28166         undefine and redefine.
28167         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28168         (exp10l): Do not define here.
28169         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
28170         (weak_alias): Undefine and redefine.
28171         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
28172         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28173         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
28174         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
28175
28176         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
28177         [!__fma] (fma): Define using libm_alias_double.
28178         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
28179         [!__fmaf] (fmaf): Define using libm_alias_float.
28180         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
28181         (fmal): Define using libm_alias_ldouble.
28182
28183 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
28184
28185         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
28186         New macro.
28187         (libm_alias_double_other): Likewise.
28188         (libm_alias_double_r): Use libm_alias_double_other_r.
28189         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
28190         New macro.
28191         (libm_alias_float_other): Likewise.
28192         (libm_alias_float_r): Use libm_alias_float_other_r.
28193         * sysdeps/generic/libm-alias-float128.h
28194         (libm_alias_float128_other_r): New macro.
28195         (libm_alias_float128_other): Likewise.
28196         (libm_alias_float128_r): Use libm_alias_float128_other_r.
28197         * sysdeps/generic/libm-alias-ldouble.h
28198         (libm_alias_ldouble_other_r): New macro.
28199         (libm_alias_ldouble_other): Likewise.
28200         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28201         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
28202         (libm_alias_double_other_r): New macro.
28203         (libm_alias_double_other): Likewise.
28204         (libm_alias_double_r): Use libm_alias_double_other_r.
28205         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
28206         (libm_alias_ldouble_other_r): New macro.
28207         (libm_alias_ldouble_other): Likewise.
28208         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
28209         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
28210         [!USE_AS_COMPAT]: Use libm_alias_double_other.
28211         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
28212         [!USE_AS_COMPAT]: Use libm_alias_float_other.
28213         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
28214         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
28215         * math/w_exp2f.c: Use libm_alias_float_other.
28216         * math/w_expf.c: Likewise.
28217         * math/w_log2f.c: Likewise.
28218         * math/w_logf.c: Likewise.
28219         * math/w_powf.c: Likewise.
28220         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
28221         [!__exp2f]: Use libm_alias_float_other.
28222         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
28223         [!__expf]: Use libm_alias_float_other.
28224         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
28225         [!__log2f]: Use libm_alias_float_other.
28226         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
28227         [!__logf]: Use libm_alias_float_other.
28228         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
28229         [!__powf]: Use libm_alias_float_other.
28230
28231 2017-10-10  Florian Weimer  <fweimer@redhat.com>
28232
28233         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
28234         function.
28235         (_nss_files_gethostbyname3_r): Call it.
28236
28237 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
28238
28239         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
28240         error.  Remove default definition of declare_mgen_alias.
28241         [!declare_mgen_alias_r]: Likewise.
28242         * sysdeps/generic/math-type-macros-double.h
28243         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
28244         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
28245         (declare_mgen_alias_r): Likewise.
28246         * sysdeps/generic/math-type-macros-float128.h
28247         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28248         * sysdeps/generic/math-type-macros-ldouble.h
28249         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28250         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
28251         macro.
28252         (declare_mgen_alias_r_s): Likewise.
28253         (declare_mgen_alias_r): Likewise.
28254         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
28255         (lgamma_r): Define using libm_alias_double_r.
28256         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
28257         (lgammaf_r): Define using libm_alias_float_r.
28258         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
28259         (lgammal_r): Define using libm_alias_ldouble_r.
28260         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
28261         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28262
28263 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28264
28265         * lib/glob.c (__glob_pattern_type): Remove now-spurious
28266         extern declaration.
28267
28268 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
28269
28270         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
28271
28272 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
28273
28274         [BZ #21326]
28275         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
28276         [__cplusplus >= 201103] (__USE_ISOC99): Define.
28277         * math/Makefile (test-math-cxx11): New test.
28278         * math/test-math-cxx11.cc: New file.
28279
28280 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
28281
28282         * login/openpty.c (openpty): Close slave pty file descriptor on error.
28283
28284         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
28285         call to allocate the slave pty file descriptor.
28286
28287 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
28288
28289         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
28290         [!__fma] (fma): Define using libm_alias_double.
28291         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
28292         [!__fma] (fma): Define using libm_alias_double.
28293
28294         * sysdeps/ieee754/float128/float128_private.h: Include
28295         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
28296         (libm_alias_ldouble_r): Undefine and redefine.
28297         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
28298         <libm-alias-ldouble.h>.
28299         (asinhl): Define using libm_alias_ldouble.
28300         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28301         <libm-alias-ldouble.h>.
28302         (atanl): Define using libm_alias_ldouble.
28303         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28304         <libm-alias-ldouble.h>.
28305         (cbrtl): Define using libm_alias_ldouble.
28306         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28307         <libm-alias-ldouble.h>.
28308         (ceill): Define using libm_alias_ldouble.
28309         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28310         <libm-alias-ldouble.h>.
28311         (copysignl): Define using libm_alias_ldouble.
28312         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28313         <libm-alias-ldouble.h>.
28314         (cosl): Define using libm_alias_ldouble.
28315         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28316         <libm-alias-ldouble.h>.
28317         (erfl): Define using libm_alias_ldouble.
28318         (erfcl): Likewise.
28319         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28320         <libm-alias-ldouble.h>.
28321         (expm1l): Define using libm_alias_ldouble.
28322         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28323         <libm-alias-ldouble.h>.
28324         (fabsl): Define using libm_alias_ldouble.
28325         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28326         <libm-alias-ldouble.h>.
28327         (floorl): Define using libm_alias_ldouble.
28328         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28329         <libm-alias-ldouble.h>.
28330         (fmal): Define using libm_alias_ldouble.
28331         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28332         <libm-alias-ldouble.h>.
28333         (frexpl): Define using libm_alias_ldouble.
28334         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28335         libm_alias_ldouble.
28336         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28337         <libm-alias-ldouble.h>.
28338         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28339         libm_alias_ldouble.
28340         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28341         <libm-alias-ldouble.h>.
28342         (getpayloadl): Define using libm_alias_ldouble.
28343         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28344         <libm-alias-ldouble.h>.
28345         (llrintl): Define using libm_alias_ldouble.
28346         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28347         <libm-alias-ldouble.h>.
28348         (llroundl): Define using libm_alias_ldouble.
28349         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28350         <libm-alias-ldouble.h>.
28351         (logbl): Define using libm_alias_ldouble.
28352         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28353         <libm-alias-ldouble.h>.
28354         (lrintl): Define using libm_alias_ldouble.
28355         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28356         <libm-alias-ldouble.h>.
28357         (lroundl): Define using libm_alias_ldouble.
28358         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28359         <libm-alias-ldouble.h>.
28360         (modfl): Define using libm_alias_ldouble.
28361         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28362         <libm-alias-ldouble.h>.
28363         (nearbyintl): Define using libm_alias_ldouble.
28364         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28365         <libm-alias-ldouble.h>.
28366         (nextafterl): Define using libm_alias_ldouble.
28367         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28368         <libm-alias-ldouble.h>.
28369         (nextupl): Define using libm_alias_ldouble.
28370         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28371         <libm-alias-ldouble.h>.
28372         (remquol): Define using libm_alias_ldouble.
28373         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28374         <libm-alias-ldouble.h>.
28375         (rintl): Define using libm_alias_ldouble.
28376         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28377         <libm-alias-ldouble.h>.
28378         (roundevenl): Define using libm_alias_ldouble.
28379         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28380         <libm-alias-ldouble.h>.
28381         (roundl): Define using libm_alias_ldouble.
28382         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28383         using libm_alias_ldouble.
28384         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28385         <libm-alias-ldouble.h>.
28386         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28387         Define using libm_alias_ldouble.
28388         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28389         <libm-alias-ldouble.h>.
28390         (sincosl): Define using libm_alias_ldouble.
28391         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28392         <libm-alias-ldouble.h>.
28393         (sinl): Define using libm_alias_ldouble.
28394         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28395         <libm-alias-ldouble.h>.
28396         (tanhl): Define using libm_alias_ldouble.
28397         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28398         <libm-alias-ldouble.h>.
28399         (tanl): Define using libm_alias_ldouble.
28400         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28401         <libm-alias-ldouble.h>.
28402         (totalorderl): Define using libm_alias_ldouble.
28403         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28404         <libm-alias-ldouble.h>.
28405         (totalordermagl): Define using libm_alias_ldouble.
28406         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28407         <libm-alias-ldouble.h>.
28408         (truncl): Define using libm_alias_ldouble.
28409         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28410         libm_alias_ldouble.
28411         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28412         libm_alias_ldouble.
28413         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28414         <libm-alias-ldouble.h>.
28415         (weak_alias): Do not undefine and redefine.
28416         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28417         (copysignl): Define with long_double_symbol only if [IS_IN
28418         (libc)].
28419         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28420         <libm-alias-ldouble.h>.
28421         (weak_alias): Do not undefine and redefine.
28422         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28423         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28424         * sysdeps/ieee754/ldbl-64-128/s_modfl.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         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28429         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28430         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28431         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28432         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28433         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28434         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28435         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28436         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28437         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28438         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28439         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28440         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28441         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28442         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28443         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28444         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28445         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28446         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28447         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28448         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28449         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28450         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28451         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28452         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28453
28454 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
28455
28456         [BZ #22111]
28457         * malloc/malloc.c (tcache_shutting_down): Use bool type.
28458         (tcache_thread_freeres): Set tcache_shutting_down before
28459         freeing the tcache.
28460         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28461         * malloc/tst-malloc-tcache-leak.c: New file.
28462
28463 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28464
28465         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28466         back to powerpc32 file.
28467         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28468         (memrchr): Add __memrchr_power8 to ifunc list.
28469         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28470         extra bytes for unaligned inputs.
28471
28472 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
28473
28474         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28475         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28476         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28477         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28478         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28479
28480 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28481
28482         * sysdeps/arm/libm-test-ulps: Update.
28483
28484         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28485         <libm-alias-ldouble.h>.
28486         (asinhl): Define using libm_alias_ldouble.
28487         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28488         <libm-alias-ldouble.h>.
28489         (cbrtl): Define using libm_alias_ldouble.
28490         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28491         <libm-alias-ldouble.h>.
28492         (copysignl): Define using libm_alias_ldouble.
28493         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28494         <libm-alias-ldouble.h>.
28495         (cosl): Define using libm_alias_ldouble.
28496         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28497         <libm-alias-ldouble.h>.
28498         (erfl): Define using libm_alias_ldouble.
28499         (erfcl): Likewise.
28500         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28501         <libm-alias-ldouble.h>.
28502         (fmal): Define using libm_alias_ldouble.
28503         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28504         <libm-alias-ldouble.h>.
28505         (frexpl): Define using libm_alias_ldouble.
28506         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28507         libm_alias_ldouble.
28508         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28509         <libm-alias-ldouble.h>.
28510         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28511         libm_alias_ldouble.
28512         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28513         <libm-alias-ldouble.h>.
28514         (getpayloadl): Define using libm_alias_ldouble.
28515         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28516         <libm-alias-ldouble.h>.
28517         (llrintl): Define using libm_alias_ldouble.
28518         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28519         <libm-alias-ldouble.h>.
28520         (llroundl): Define using libm_alias_ldouble.
28521         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28522         <libm-alias-ldouble.h>.
28523         (lrintl): Define using libm_alias_ldouble.
28524         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28525         <libm-alias-ldouble.h>.
28526         (lroundl): Define using libm_alias_ldouble.
28527         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28528         <libm-alias-ldouble.h>.
28529         (modfl): Define using libm_alias_ldouble.
28530         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28531         <libm-alias-ldouble.h>.
28532         (nextupl): Define using libm_alias_ldouble.
28533         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28534         <libm-alias-ldouble.h>.
28535         (remquol): Define using libm_alias_ldouble.
28536         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28537         <libm-alias-ldouble.h>.
28538         (roundevenl): Define using libm_alias_ldouble.
28539         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28540         <libm-alias-ldouble.h>.
28541         (roundl): Define using libm_alias_ldouble.
28542         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28543         using libm_alias_ldouble.
28544         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28545         <libm-alias-ldouble.h>.
28546         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28547         <libm-alias-ldouble.h>.
28548         (setpayloadsigl): Define using libm_alias_ldouble.
28549         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28550         <libm-alias-ldouble.h>.
28551         (sincosl): Define using libm_alias_ldouble.
28552         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28553         <libm-alias-ldouble.h>.
28554         (sinl): Define using libm_alias_ldouble.
28555         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28556         <libm-alias-ldouble.h>.
28557         (tanhl): Define using libm_alias_ldouble.
28558         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28559         <libm-alias-ldouble.h>.
28560         (tanl): Define using libm_alias_ldouble.
28561         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28562         <libm-alias-ldouble.h>.
28563         (totalorderl): Define using libm_alias_ldouble.
28564         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28565         <libm-alias-ldouble.h>.
28566         (totalordermagl): Define using libm_alias_ldouble.
28567         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28568         libm_alias_ldouble.
28569         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28570         libm_alias_ldouble.
28571
28572 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28573
28574         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28575         memmove_falkor.
28576         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28577         (__libc_ifunc_impl_list): Likewise.
28578         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28579         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28580
28581         * benchtests/bench-memmove-walk.c: New file.
28582         * benchtests/Makefile (string-benchset): Add it.
28583
28584         * benchtests/bench-memset-walk.c: New file.
28585         * benchtests/Makefile (string-benchset): Add it.
28586
28587         * benchtests/bench-memcpy-walk.c: New file.
28588         * benchtests/Makefile (string-benchset): Add it.
28589
28590 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28591
28592         nscd: Eliminate compilation time dependency in the build output.
28593         * nscd/nscd_stat.c (STATDATA_VERSION)
28594         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28595         (STATDATA_VERSION_FULL): New macro definitions.
28596         (compilation): Remove.
28597         (struct statdata): Adjust version member.
28598         (send_stats): Set version from STATDATA_VERSION_FULL.
28599         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28600
28601 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28602
28603         * configure.ac (--enable-add-ons): Remove option.
28604         (machine): Do not mention add-ons in comment.
28605         (LIBC_PRECONFIGURE): Likewise.
28606         (add_ons): Remove variable and sanity checks and logic to locate
28607         add-ons.
28608         (add_ons_automatic): Remove variable.
28609         (configured_add_ons): Likewise.
28610         (add_ons_sfx): Likewise.
28611         (add_ons_pfx): Likewise.
28612         (add_on_subdirs): Likewise.
28613         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
28614         consideration of add-ons in Implies handling.
28615         (sysdeps_add_ons): Likewise.
28616         * configure: Regenerated.
28617         * libidn/configure.ac: Remove.
28618         * libidn/configure: Likewise.
28619         * sysdeps/unix/inet/configure.ac: New file.
28620         * sysdeps/unix/inet/configure: New generated file.
28621         * sysdeps/unix/inet/Subdirs: Add libidn.
28622         * Makeconfig (sysdeps-srcdirs): Remove variable.
28623         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28624         ($(common-objpfx)config.status): Do not depend on add-on files.
28625         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28626         comment.
28627         (all-subdirs): Do not include $(add-on-subdirs).
28628         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28629         * config.make.in (add-ons): Remove variable.
28630         (add-on-subdirs): Likewise.
28631         (sysdeps-add-ons): Likewise.
28632         * manual/Makefile (add-chapters): Remove.
28633         ($(objpfx)texis): Do not depend on $(add-chapters).
28634         (nonexamples): Do not handle $(add-chapters).
28635         (examples): Do not handle $(add-ons).
28636         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28637         libc-texinfo.sh.
28638         * manual/install.texi (Installation): Do not mention add-ons.
28639         (--enable-add-ons): Do not document configure option.
28640         * INSTALL: Regenerated.
28641         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28642         * manual/maint.texi (Hierarchy Conventions): Do not mention
28643         add-ons.
28644         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28645         --enable-add-ons.
28646         * scripts/gen-sorted.awk: Do not handle Subdirs files from
28647         add-ons.
28648         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28649         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28650
28651 2017-10-05  Andreas Schwab  <schwab@suse.de>
28652
28653         [BZ #15142]
28654         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
28655         (_IO_flush_all_lockp): Always lock list_all_lock.
28656         (_IO_flush_all_linebuffered): Likewise.
28657         (_IO_unbuffer_all): Likewise.
28658
28659 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28660
28661         [BZ #15436]
28662         Do not flush stdio streams on abort.
28663         * stdlib/abort.c (fflush): Remove macro definition.
28664         (abort): Remove stages related to stdio flushing.
28665
28666 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28667
28668         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28669
28670 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
28671
28672         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28673
28674 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28675
28676         * support/support_format_hostent.c (support_format_hostent): Add
28677         more error information for NETDB_INTERNAL.
28678
28679 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28680
28681         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28682         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28683         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28684         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28685         AC_DEFINE if multi-arch is enabled.
28686         * sysdeps/i386/configure: Regenerated.
28687
28688 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28689
28690         * Makeconfig (+link-static-before-libc): Use
28691         $(DEFAULT-LDFLAGS-$(@F)).
28692         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28693         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28694         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28695
28696 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28697
28698         * elf/Makefile (tests): Add tst-main1.
28699         (modules-names): Add tst-main1mod.
28700         ($(objpfx)tst-main1): New.
28701         (CRT-tst-main1): Likewise.
28702         (LDFLAGS-tst-main1): Likewise.
28703         (LDLIBS-tst-main1): Likewise.
28704         (tst-main1mod.so-no-z-defs): Likewise.
28705         * elf/tst-main1.c: New file.
28706         * elf/tst-main1mod.c: Likewise.
28707
28708 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28709
28710         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28711
28712 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28713
28714         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28715         (fma): Define using libm_alias_double.
28716         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28717         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28718         <math_ldbl_opt.h>.
28719         (fmal): Do not define as compat symbol here.
28720         * sysdeps/alpha/fpu/s_fma.c: New file.
28721
28722 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28723
28724         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28725
28726 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28727
28728         [BZ #22229]
28729         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28730         <math_ldbl_opt.h>
28731         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28732         and libc.
28733         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28734         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28735         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28736         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28738         Include <math_ldbl_opt.h>
28739         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28740         and libc.
28741         (compat_symbol): Undefine and redefine.
28742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28743         <math_ldbl_opt.h>
28744         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28745         (compat_symbol): Undefine and redefine.
28746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28747         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28748         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28749         GLIBC_2_1 for libm.
28750         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28751         GLIBC_2.0 copysignl symbol.
28752         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28753         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28754
28755         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28756
28757 2017-10-04  Florian Weimer  <fweimer@redhat.com>
28758
28759         * scripts/check-local-headers.sh: Ignore nspr4 header file
28760         directory in addition to nspr.
28761
28762 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
28763
28764         [BZ #17956]
28765         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28766         * configure: Regenerate.
28767         * crypt/Makefile (nss-cpp-flags): New variable.
28768         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28769         (CPPFLAGS-md5-crypt.c): Use it.
28770         * scripts/check-local-headers.sh: Ignore nspr header file
28771         directory.
28772
28773 2017-10-04  Andreas Schwab  <schwab@suse.de>
28774
28775         * nis/Makefile (services): Remove compat.
28776         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28777         ($(objpfx)libnss_compat.so): Remove rule.
28778         * nis/Versions (libnss_compat): Remove.
28779         * nss/Makefile (services): Add compat.
28780         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28781         * nss/Versions (libnss_compat): Define.
28782         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28783         Don't include <rpc/types.h>.  Replace bool_t by bool.
28784         * nss/nss_compat/compat-initgroups.c: Likewise.
28785         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
28786         instead of <rpcsrv/ypclnt.h>.
28787         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28788         yp_get_default_domain.
28789         * nss/nss_compat/compat-pwd.c: Likewise.
28790         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28791         yp_get_default_domain.
28792         * nss/nss_compat/nisdomain.c: New file.
28793         * nss/nss_compat/nisdomain.h: Likewise.
28794
28795 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28796
28797         [BZ #22244]
28798         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28799         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28800
28801 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28802
28803         [BZ #22243]
28804         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28805         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28806
28807 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28808
28809         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28810         "movl main@GOTOFF(%ebx), %eax".
28811
28812 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28813
28814         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28815         allow undefined _DYNAMIC in PIE libc.a.
28816         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28817         Likewse.
28818
28819 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28820
28821         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28822         check _DYNAMIC.
28823
28824 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28825
28826         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28827         check _DYNAMIC.
28828
28829 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28830
28831         * math/test-math-iscanonical.cc (error): Replace bool with int.
28832
28833 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28834
28835         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28836         (modf): Define using libm_alias_double, only if [!__modf].
28837         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28838         <libm-alias-double.h>.
28839         (modf): Define using libm_alias_double, only if [!__modf].
28840         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28841         compat symbol here.
28842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28843         (weak_alias): Do not undefine and redefine.
28844         (strong_alias): Likewise.
28845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28846         (weak_alias): Likewise.
28847         (strong_alias): Likewise.
28848
28849         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28850         (logb): Define using libm_alias_double, only if [!__logb].
28851         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28852         <libm-alias-double.h>.
28853         (logb): Define using libm_alias_double, only if [!__logb].
28854         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28856         (weak_alias): Do not undefine and redefine.
28857         (strong_alias): Likewise.
28858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28859         (weak_alias): Likewise.
28860         (strong_alias): Likewise.
28861
28862 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28863
28864         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28865         Check SHARED instead PIC.
28866
28867 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28868
28869         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28870         [!__fmaf] (fmaf): Define using libm_alias_float.
28871
28872         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28873         (frexp): Define using libm_alias_double.
28874         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28875         <libm-alias-double.h>.
28876         (frexp): Define using libm_alias_double.
28877         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28878         compat symbol here.
28879
28880 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28881
28882         [BZ #22235]
28883         * math/math.h: Trivial fix for unbalanced parentheses in comment.
28884         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28885         (CFLAGS-test-math-iscanonical.cc): New variable.
28886         * math/test-math-iscanonical.cc: New file.
28887         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28888         Provide a C++ implementation based on function overloading,
28889         rather than using __MATH_TG, which uses C-only builtins.
28890         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28891         Likewise.
28892         * sysdeps/powerpc/powerpc64le/Makefile
28893         (CFLAGS-test-math-iscanonical.cc): New variable.
28894
28895 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28896
28897         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28898         (ceil): Define using libm_alias_double.
28899         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28900         (floor): Define using libm_alias_double.
28901         * sysdeps/ieee754/dbl-64/s_llround.c: Include
28902         <libm-alias-double.h>.
28903         (llround): Define using libm_alias_double.
28904         * sysdeps/ieee754/dbl-64/s_lround.c: Include
28905         <libm-alias-double.h>.
28906         (lround): Define using libm_alias_double.
28907         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28908         <libm-alias-double.h>.
28909         (nearbyint): Define using libm_alias_double.
28910         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28911         <libm-alias-double.h>.
28912         (remquo): Define using libm_alias_double.
28913         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28914         (rint): Define using libm_alias_double.
28915         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28916         (round): Define using libm_alias_double.
28917         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28918         (trunc): Define using libm_alias_double.
28919         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28920         <libm-alias-double.h>.
28921         (ceil): Define using libm_alias_double.
28922         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28923         <libm-alias-double.h>.
28924         (floor): Define using libm_alias_double.
28925         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28926         <libm-alias-double.h>.
28927         (llround): Define using libm_alias_double.
28928         [_LP64] (lround): Likewise.
28929         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28930         <libm-alias-double.h>.
28931         [!_LP64] (lround): Define using libm_alias_double.
28932         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28933         <libm-alias-double.h>.
28934         (nearbyint): Define using libm_alias_double.
28935         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28936         <libm-alias-double.h>.
28937         (remquo): Define using libm_alias_double.
28938         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28939         <libm-alias-double.h>.
28940         (rint): Define using libm_alias_double.
28941         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28942         <libm-alias-double.h>.
28943         (round): Define using libm_alias_double.
28944         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28945         <libm-alias-double.h>.
28946         (trunc): Define using libm_alias_double.
28947         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28948         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28949         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28950         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28951         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28952         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28953         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28954         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28955         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28956
28957 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28958
28959         * math/w_remainder.c: New file.
28960         * math/w_remainderf.c: New file.
28961         * math/w_remainderl.c: New file.
28962
28963 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28964
28965         * elf/rtld.c (BOOTSTRAP_MAP): New.
28966         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28967         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28968         Likewise.
28969         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28970         Likewise.
28971         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28972         Likewise.
28973
28974 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28975
28976         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28977         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28978         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28979         rtld_hidden_data_ver): Define to empty.
28980         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28981         __assert_perror_fail): Likewise.
28982         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28983         (__rewinddir): Likewise.
28984         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28985         (__profile_frequency): Likewise.
28986         * include/setjmp.h (__sigsetjmp): Likewise.
28987         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28988         __libc_sigaction): Likewise.
28989         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28990         not set hidden attribute.
28991         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28992         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28993         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28994         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28995         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28996         __fxstatat64): Likewise.
28997         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28998         (__uname): Likewise.
28999         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
29000         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
29001         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
29002         (NO_RTLD_HIDDEN): Set.
29003         * sysdeps/mach/hurd/configure: Refresh.
29004         * config.h.in: Refresh.
29005
29006 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
29007
29008         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
29009         (atan): Define using libm_alias_double.
29010         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
29011         (tan): Define using libm_alias_double.
29012         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
29013         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
29014
29015         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
29016         define as weak alias of __atan.  Do not define any aliases if
29017         [__atan].
29018         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
29019         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
29020         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
29021         as weak alias of __tan.  Do not define any aliases if [__tan].
29022         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
29023         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
29024         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
29025         __atan.
29026         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
29027         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
29028         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
29029         and define as weak alias of __atan.
29030         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
29031         __atan.
29032         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
29033         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
29034         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
29035         define as weak alias of __tan.
29036
29037 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29038
29039         * math/w_lgamma.c: New file.
29040         * math/w_lgammaf.c: New file.
29041         * math/w_lgammal.c: New file.
29042
29043 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29044
29045         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
29046         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
29047         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
29048         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
29049         * sysdeps/ieee754/flt-32/w_logf.c: New file.
29050         * sysdeps/ieee754/flt-32/w_powf.c: New file.
29051         * sysdeps/i386/fpu/w_log2f.c: New file.
29052         * sysdeps/i386/fpu/w_logf.c: New file.
29053         * sysdeps/i386/fpu/w_powf.c: New file.
29054         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
29055         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
29056         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
29057
29058 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29059             H.J. Lu  <hongjiu.lu@intel.com>
29060
29061         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
29062         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
29063         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
29064         * sysdeps/ieee754/flt-32/w_expf.c: New file.
29065         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
29066         the new expf code.
29067         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
29068         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
29069         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
29070         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
29071         * sysdeps/i386/fpu/w_exp2f.c: New file.
29072         * sysdeps/i386/fpu/w_expf.c: New file.
29073         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
29074         * sysdeps/x86_64/fpu/w_expf.c: New file.
29075
29076 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29077
29078         * math/Versions (logf): New libm symbol at GLIBC_2.27.
29079         (log2f): Likewise.
29080         (powf): Likewise.
29081         * math/w_log2f.c: New file.
29082         * math/w_logf.c: New file.
29083         * math/w_powf.c: New file.
29084         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
29085         * math/w_logf_compat.c (__logf_compat): Likewise.
29086         * math/w_powf_compat.c (__powf_compat): Likewise.
29087         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
29088         * sysdeps/ia64/fpu/e_logf.S: Likewise.
29089         * sysdeps/ia64/fpu/e_powf.S: Likewise.
29090         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29091         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29092         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29093         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29094         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29095         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29096         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29097         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29098         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29099         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29100         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29101         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29103         Likewise.
29104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29105         Likewise.
29106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29107         Likewise.
29108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29109         Likewise.
29110         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29111         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29112         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29113         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29114         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29116         Likewise.
29117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29118         Likewise.
29119         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29120         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29121         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29122
29123 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29124
29125         * sysdeps/powerpc/powerpc64/multiarch/Makefile
29126         (sysdep_routines): Add memrchr_power8.
29127         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29128         (memrchr): Add __memrchr_power8 to list of memrchr functions.
29129         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
29130         New file.
29131         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
29132         (memrchr): Add __memrchr_power8 to ifunc list.
29133         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
29134
29135 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29136
29137         [BZ #18822]
29138         * sysdeps/unix/sysv/linux/posix_fadvise64.c
29139         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
29140         libc_hidden_def.
29141         * sysdeps/unix/sysv/linux/posix_fallocate64.c
29142         (__posix_fallocate64_l64): Likewise.
29143
29144 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29145
29146         [BZ #18822]
29147         * sysdeps/unix/sysv/linux/sched_setaffinity.c
29148         (__sched_setaffinity_new): Add libc_hidden_proto and
29149         libc_hidden_def.
29150
29151 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29152
29153         [BZ #18822]
29154         * include/glob.h (__glob64): Add libc_hidden_proto.
29155         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
29156         libc_hidden_def.
29157
29158 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29159
29160         [BZ #18822]
29161         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
29162         attribute_hidden.
29163
29164 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29165
29166         [BZ #18822]
29167         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
29168
29169 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29170
29171         [BZ #18822]
29172         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
29173         libc_hidden_def.
29174
29175 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29176
29177         [BZ #18822]
29178         * csu/version.c (__libc_print_version): Add attribute_hidden.
29179
29180 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29181
29182         [BZ #18822]
29183         * include/libc-internal.h (__init_misc): Add attribute_hidden.
29184
29185 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29186
29187         [BZ #18822]
29188         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
29189
29190 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29191
29192         [BZ #18822]
29193         * nscd/nscd_helper.c (__nis_hash): New prototype.
29194
29195 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29196
29197         [BZ #18822]
29198         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
29199         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
29200         libc_hidden_def.
29201         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
29202         * termios/tcgetattr.c (__tcgetattr): Likewise.
29203
29204 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29205
29206         [BZ #18822]
29207         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
29208         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
29209         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
29210         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
29211         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
29212
29213 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29214
29215         [BZ #18822]
29216         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
29217
29218 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29219
29220         [BZ #18822]
29221         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
29222         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
29223
29224 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29225
29226         [BZ #18822]
29227         * intl/hash-string.h (__hash_string): Add attribute_hidden.
29228
29229 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29230
29231         [BZ #18822]
29232         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
29233         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
29234
29235 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29236
29237         [BZ #18822]
29238         * include/ifreq.h: New file.
29239         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
29240         (__ifreq): Likewise.
29241         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
29242         (__ifreq): Likewise.
29243
29244 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29245
29246         [BZ #18822]
29247         * include/idna.h: New file.
29248         * inet/getnameinfo.c: Include <idna.h> instead of
29249         <libidn/idna.h>.
29250         (__idna_to_unicode_lzlz): Removed.
29251         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
29252         <libidn/idna.h>.
29253         (__idna_to_ascii_lz): Removed.
29254         (__idna_to_unicode_lzlz): Likewise.
29255
29256 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29257
29258         [BZ #18822]
29259         * include/plural-exp.h: New file.
29260         * intl/plural-exp.c: Include <plural-exp.h> instead of
29261         "plural-exp.h".
29262
29263 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29264
29265         [BZ #18822]
29266         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
29267         "getsourcefilter.h".
29268         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
29269         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
29270         "getsourcefilter.h".
29271         (__get_sol): Removed.
29272
29273 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29274
29275         [BZ #18822]
29276         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
29277         to ...
29278         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
29279
29280 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29281
29282         [BZ #18822]
29283         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
29284         attribute_hidden.
29285
29286 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29287
29288         [BZ #18822]
29289         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
29290
29291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29292
29293         [BZ #18822]
29294         * include/search.h (__tdestroy): Add libc_hidden_proto.
29295         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
29296
29297 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29298
29299         [BZ #18822]
29300         * include/assert.h (__assert_fail_base): Add attribute_hidden.
29301
29302 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29303
29304         [BZ #18822]
29305         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29306         attribute_hidden.
29307
29308 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29309
29310         [BZ #18822]
29311         * include/signal.h (__kill): Add libc_hidden_proto.
29312         (__sigblock): Likewise.
29313         (__sigprocmask): Likewise.
29314         (__sigaltstack): Likewise.
29315         * signal/kill.c (__kill): Add libc_hidden_def.
29316         * signal/sigblock.c (__sigblock): Likewise.
29317         * signal/sigprocmask.c (__sigprocmask): Likewise.
29318         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29319         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29320         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29321         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29322         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29323         Likewise.
29324         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29325         Likewise.
29326         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29327         (__sigprocmask): Likewise.
29328         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29329         Likewise.
29330         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29331         (__sigprocmask): Likewise.
29332         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29333         Likewise.
29334
29335 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29336
29337         [BZ #18822]
29338         * include/string.h (__strsep): Add libc_hidden_proto.
29339         * string/strsep.c (__strsep): Add libc_hidden_def.
29340
29341 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29342
29343         [BZ #18822]
29344         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29345         attribute_hidden.
29346         (__spawni): Likewise.
29347
29348 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29349
29350         [BZ #18822]
29351         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29352         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29353         libc_hidden_def.
29354
29355 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29356
29357         [BZ #18822]
29358         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29359
29360 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29361
29362         [BZ #18822]
29363         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29364         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29365         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29366         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29367         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29368         Likewise.
29369         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29370         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29371
29372 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29373
29374         [BZ #18822]
29375         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29376         (__dcigettext): Likewise.
29377
29378 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29379
29380         [BZ #18822]
29381         * include/sys/sysinfo.h (__get_nprocs_conf): Add
29382         libc_hidden_proto.
29383         (__get_nprocs): Likewise.
29384         (__get_phys_pages): Likewise.
29385         (__get_avphys_pages): Likewise.
29386         (__get_child_max): Add attribute_hidden.
29387         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29388         (__get_nprocs): Likewise.
29389         (__get_phys_pages): Likewise.
29390         (__get_avphys_pages): Likewise.
29391         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29392         libc_hidden_def.
29393         (__get_nprocs): Likewise.
29394         (__get_phys_pages): Likewise.
29395         (__get_avphys_pages): Likewise.
29396         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29397         libc_hidden_def.
29398         (__get_nprocs_conf): Likewise.
29399         (__get_phys_pages): Likewise.
29400         (__get_avphys_pages): Likewise.
29401
29402 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29403
29404         [BZ #18822]
29405         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29406         attribute_hidden.
29407         (__netlink_close): Likewise.
29408         (__netlink_free_handle): Likewise.
29409         (__netlink_request): Likewise.
29410
29411 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29412
29413         [BZ #18822]
29414         * include/rpc/rpc.h (__rpc_thread_variables): Add
29415         attribute_hidden.
29416         (__rpc_thread_svc_cleanup): Likewise.
29417         (__rpc_thread_clnt_cleanup): Likewise.
29418         (__rpc_thread_key_cleanup): Likewise.
29419
29420 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29421
29422         [BZ #18822]
29423         * include/sys/uio.h (__readv): Add libc_hidden_proto.
29424         (__writev): Likewise.
29425         * misc/readv.c (__readv): Add libc_hidden_def.
29426         * misc/writev.c (__writev): Likewise.
29427         * sysdeps/posix/readv.c (__readv): Likewise.
29428         * sysdeps/posix/writev.c (__writev): Likewise.
29429         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29430         (__readv): Likewise.
29431         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29432         (__writev): Likewise.
29433
29434 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29435
29436         [BZ #18822]
29437         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29438         (__regcomp): Add libc_hidden_proto.
29439         (__regexec): Likewise.
29440         (__regfree): Likewise.
29441         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29442         (__regfree): Likewise.
29443         * posix/regexec.c (__regexec): Likewise.
29444
29445 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29446
29447         [BZ #18822]
29448         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29449         (__getutent): Likewise.
29450         (__getutid): Likewise.
29451         (__getutline): Likewise.
29452         (__pututline): Likewise.
29453         (__getutent_r): Likewise.
29454         (__getutid_r): Likewise.
29455         (__getutline_r): Likewise.
29456         (__utmpname): Add attribute_hidden.
29457         (__setutent): Likewise.
29458         (__endutent): Likewise.
29459         * login/getutent.c (__getutent): Add libc_hidden_def.
29460         * login/getutent_r.c (__getutent_r): Likewise.
29461         (__pututline): Likewise.
29462         * login/getutid.c (__getutid): Likewise.
29463         * login/getutid_r.c (__getutid_r): Likewise.
29464         * login/getutline.c (__getutline): Likewise.
29465         * login/getutline_r.c (__getutline_r): Likewise.
29466         * login/updwtmp.c (__updwtmp): Likewise.
29467
29468 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29469
29470         [BZ #18822]
29471         * include/dirent.h (__opendir): Always add attribute_hidden.
29472         (__fdopendir): Likewise.
29473         (__closedir): Likewise.
29474         (__readdir): Likewise.
29475         (__readdir64): Add libc_hidden_proto.
29476         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29477         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29478         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29479         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29480         New alias.
29481
29482 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29483
29484         [BZ #18822]
29485         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29486         * include/netdb.h (__gethostbyaddr_r): Likewise.
29487         (__gethostbyname_r): Likewise.
29488         (__gethostbyname2_r): Likewise.
29489         (__getnetbyaddr_r): Likewise.
29490         (__getnetbyname_r): Likewise.
29491         (__getservbyname_r): Likewise.
29492         (__getservbyport_r): Likewise.
29493         (__getprotobyname_r): Likewise.
29494         (__getprotobynumber_r): Likewise.
29495         (__getnetgrent_r): Likewise.
29496         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29497         (__getrpcbynumber_r): Likewise.
29498         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29499
29500 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29501
29502         [BZ #18822]
29503         * include/stdio.h (__fcloseall): Add attribute_hidden.
29504         (__getline): Likewise.
29505         (__path_search): Likewise.
29506         (__gen_tempname): Likewise.
29507         (__libc_message): Likewise.
29508         (__flockfile): Likewise.
29509         (__funlockfile): Likewise.
29510         (__fxprintf): Likewise.
29511         (__fxprintf_nocancel): Likewise.
29512
29513 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29514
29515         [BZ #18822]
29516         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29517         (__sgetsgent_r): Likewise.
29518
29519 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29520
29521         [BZ #18822]
29522         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29523         (__statfs64): Likewise.
29524         (__fstatfs64): Likewise.
29525         * include/sys/statvfs.h (__statvfs64): Likewise.
29526         (__fstatvfs64): Likewise.
29527         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29528         (__statfs_filesize_max): Likewise.
29529         (__statfs_symlinks): Likewise.
29530         (__statfs_chown_restricted): Likewise.
29531
29532 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29533
29534         [BZ #18822]
29535         * include/time.h (__tzstring): Add attribute_hidden.
29536         (__tzfile_read): Likewise.
29537         (__tzfile_compute): Likewise.
29538         (__tzfile_default): Likewise.
29539         (__tzset_parse_tz): Likewise.
29540         (__offtime): Likewise.
29541         (__asctime_r): Likewise.
29542         (__tzset): Likewise.
29543         (__tz_convert): Likewise.
29544         (__getdate_r): Likewise.
29545         (__getclktck): Likewise.
29546
29547 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29548
29549         [BZ #18822]
29550         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29551         (__nscd_unmap): Likewise.
29552         (__nscd_cache_search): Likewise.
29553         (__nscd_get_nl_timestamp): Likewise.
29554         (__nscd_getpwnam_r): Likewise.
29555         (__nscd_getpwuid_r): Likewise.
29556         (__nscd_getgrnam_r): Likewise.
29557         (__nscd_getgrgid_r): Likewise.
29558         (__nscd_gethostbyname_r): Likewise.
29559         (__nscd_gethostbyname2_r): Likewise.
29560         (__nscd_gethostbyaddr_r): Likewise.
29561         (__nscd_getai): Likewise.
29562         (__nscd_getgrouplist): Likewise.
29563         (__nscd_getservbyname_r): Likewise.
29564         (__nscd_getservbyport_r): Likewise.
29565         (__nscd_innetgr): Likewise.
29566         (__nscd_setnetgrent): Likewise.
29567
29568 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29569
29570         [BZ #18822]
29571         * include/gmp.h: Declare internal functions only if _ISOMAC is
29572         undefined.
29573         (__mpn_extract_double): Add attribute_hidden.
29574         (__mpn_extract_long_double): Likewise.
29575         (__mpn_extract_float128): Likewise.
29576         (__mpn_construct_float): Likewise.
29577         (__mpn_construct_double): Likewise.
29578         (__mpn_construct_long_double): Likewise.
29579         (__mpn_construct_float128): Likewise.
29580         (mpn_add_1): Likewise.
29581         (mpn_addmul_1): Likewise.
29582         (mpn_add_n): Likewise.
29583         (mpn_cmp): Likewise.
29584         (mpn_divrem): Likewise.
29585         (mpn_lshift): Likewise.
29586         (mpn_mul): Likewise.
29587         (mpn_mul_1): Likewise.
29588         (mpn_rshift): Likewise.
29589         (mpn_sub_1): Likewise.
29590         (mpn_submul_1): Likewise.
29591         (mpn_sub_n): Likewise.
29592
29593 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29594
29595         [BZ #18822]
29596         * include/wchar.h (__wcsnlen): Add attribute_hidden.
29597         (__wcscat): Likewise.
29598         (__btowc): Likewise.
29599         (__wcrtomb): Likewise.
29600         (__mbsrtowcs): Likewise.
29601         (__wcsrtombs): Likewise.
29602         (__mbsnrtowcs): Likewise.
29603         (__wcsnrtombs): Likewise.
29604         (__wcsncpy): Likewise.
29605         (__wcpncpy): Likewise.
29606         (__wmemcpy): Likewise.
29607         (__wmempcpy): Likewise.
29608         (__wmemmove): Likewise.
29609         (__wcschrnul): Likewise.
29610         (__vfwscanf): Likewise.
29611         (__vswprintf): Likewise.
29612         (__fwprintf): Likewise.
29613         (__vfwprintf): Likewise.
29614
29615 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29616
29617         [BZ #18822]
29618         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29619         (__getgrgid_r): Likewise.
29620         (__getgrnam_r): Likewise.
29621         * include/pwd.h (__getpwuid_r): Likewise.
29622         (__getpwnam_r): Likewise.
29623         (__fgetpwent_r): Likewise.
29624         * include/shadow.h (__getspnam_r): Likewise.
29625         (__sgetspent_r): Likewise.
29626         (__fgetspent_r): Likewise.
29627
29628 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29629
29630         [BZ #18822]
29631         * include/unistd.h (__access): Add attribute_hidden.
29632         (__lseek64): Likewise.
29633         (__libc_pread64): Likewise.
29634         (__pipe2): Likewise.
29635         (__sleep): Likewise.
29636         (__chdir): Likewise.
29637         (__fchdir): Likewise.
29638         (__getcwd): Likewise.
29639         (__rmdir): Likewise.
29640         (__execvpe): Likewise.
29641         (__execve): Likewise.
29642         (__setsid): Likewise.
29643         (__getuid): Likewise.
29644         (__geteuid): Likewise.
29645         (__getgid): Likewise.
29646         (__getegid): Likewise.
29647         (__getgroups): Likewise.
29648         (__group_member): Likewise.
29649         (__ttyname_r): Likewise.
29650         (__isatty): Likewise.
29651         (__readlink): Likewise.
29652         (__unlink): Likewise.
29653         (__gethostname): Likewise.
29654         (__profil): Likewise.
29655         (__getdtablesize): Likewise.
29656         (__brk): Likewise.
29657         (__ftruncate): Likewise.
29658         (__ftruncate64): Likewise.
29659
29660 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29661
29662         [BZ #18822]
29663         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29664         * argp/argp-fs-xinl.c: Likewise.
29665         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29666         * argp/argp-parse.c: Include <argp.h>.
29667         * argp/argp-xinl.c: Likewise.
29668         * include/argp-fmtstream.h: New file.
29669         * include/argp.h (__argp_error): Add attribute_hidden.
29670         (__argp_failure): Likewise.
29671         (__argp_input): Likewise.
29672         (__argp_state_help): Likewise.
29673
29674 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29675
29676         [BZ #18822]
29677         * include/wchar.h (____wcstof_l_internal): New prototype.
29678         (____wcstod_l_internal): Likewise.
29679         (____wcstold_l_internal): Likewise.
29680         (____wcstol_l_internal): Likewise.
29681         (____wcstoul_l_internal): Likewise.
29682         (____wcstoll_l_internal): Likewise.
29683         (____wcstoull_l_internal): Likewise.
29684         (____wcstof128_l_internal): Likewise.
29685         * sysdeps/ieee754/float128/wcstof128.c
29686         (____wcstof128_l_internal): Removed.
29687         * sysdeps/ieee754/float128/wcstof128_l.c
29688         (____wcstof128_l_internal): Likewise.
29689         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29690         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29691         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29692         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29693         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29694         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29695         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29696         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29697         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29698         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29699
29700 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29701
29702         [BZ #18822]
29703         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29704         instead of <sys/statvfs.h>.
29705         (__internal_statvfs): Removed.
29706         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29707         instead of <sys/statvfs.h>.
29708         (__internal_statvfs64): Removed.
29709         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29710         "internal_statvfs.h" instead of <sys/statvfs.h>.
29711         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29712         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29713         instead of <sys/statvfs.h>.
29714         (__internal_statvfs): Removed.
29715         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29716         instead of <sys/statvfs.h>.
29717         (__internal_statvfs64): Removed.
29718
29719 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29720
29721         [BZ #18822]
29722         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29723         (__gconv_close): Likewise.
29724         (__gconv): Likewise.
29725         (__gconv_find_transform): Likewise.
29726         (__gconv_lookup_cache): Likewise.
29727         (__gconv_compare_alias_cache): Likewise.
29728         (__gconv_load_cache): Likewise.
29729         (__gconv_get_path): Likewise.
29730         (__gconv_close_transform): Likewise.
29731         (__gconv_release_cache): Likewise.
29732         (__gconv_find_shlib): Likewise.
29733         (__gconv_release_shlib): Likewise.
29734         (__gconv_get_builtin_trans): Likewise.
29735         (__gconv_compare_alias): Likewise.
29736         * include/dlfcn.h (_dlerror_run): Likewise.
29737         * include/stdio.h (__fortify_fail_abort): Likewise.
29738         * include/time.h (__tz_compute): Likewise.
29739         (__strptime_internal): Likewise.
29740         * intl/gettextP.h (_nl_find_domain): Likewise.
29741         (_nl_load_domain): Likewise.
29742         (_nl_find_msg): Likewise.
29743         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29744         (EXTRACT_PLURAL_EXPRESSION): Likewise.
29745         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29746         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29747         (__gai_find_request): Likewise.
29748         (__gai_remove_request): Likewise.
29749         (__gai_notify): Likewise.
29750         (__gai_notify_only): Likewise.
29751         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29752         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29753         (_dl_non_dynamic_init): Likewise.
29754         (_dl_aux_init): Likewise.
29755         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29756         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29757         Likewise.
29758         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29759         (__wcsmbs_clone_conv): Likewise.
29760         (__wcsmbs_named_conv): Likewise.
29761
29762 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29763
29764         [BZ #18822]
29765         * include/stdlib.h (__random): Add attribute_hidden.
29766         (__random_r): Likewise.
29767         (__srandom_r): Likewise.
29768         (__initstate_r): Likewise.
29769         (__setstate_r): Likewise.
29770         (__erand48_r): Likewise.
29771         (__nrand48_r): Likewise.
29772         (__jrand48_r): Likewise.
29773         (__srand48_r): Likewise.
29774         (__seed48_r): Likewise.
29775         (__lcong48_r): Likewise.
29776         (__drand48_iterate): Likewise.
29777         (__setenv): Likewise.
29778         (__unsetenv): Likewise.
29779         (__clearenv): Likewise.
29780         (__ptsname_r): Likewise.
29781         (__posix_openpt): Likewise.
29782         (__add_to_environ): Likewise.
29783         (__realpath): Add libc_hidden_proto.
29784         (__ecvt_r): Likewise.
29785         (__fcvt_r): Likewise.
29786         (__qecvt_r): Likewise.
29787         (__qfcvt_r): Likewise.
29788         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29789         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29790
29791 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29792
29793         [BZ #18822]
29794         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29795         * include/time.h (__mktime_internal): Likewise.
29796         * libio/iolibio.h (__fopen_internal): Likewise.
29797
29798 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
29799
29800         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29801         pointer in frame.
29802         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29803         Correct offset used to restore PIC register.
29804
29805 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
29806
29807         [BZ libc/22165]
29808         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29809         code to load address of __getcontext_ret when generating PIC code.
29810
29811 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
29812
29813         * elf/Makefile (tests-static-internal): Add
29814         tst-tls1-static-non-pie.
29815         (LDFLAGS-tst-tls1-static-non-pie): New.
29816         * elf/tst-tls1-static-non-pie.c: New file.
29817
29818 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29819
29820         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29821         (asinh): Define using libm_alias_double.
29822         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29823         (cbrt): Define using libm_alias_double.
29824         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29825         <libm-alias-double.h>.
29826         (copysign): Define using libm_alias_double.
29827         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29828         (erf): Define using libm_alias_double.
29829         (erfc): Likewise.
29830         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29831         (expm1): Define using libm_alias_double.
29832         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29833         (fabs): Define using libm_alias_double.
29834         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29835         libm_alias_double.
29836         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29837         <libm-alias-double.h>.
29838         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29839         libm_alias_double.
29840         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29841         <libm-alias-double.h>.
29842         (getpayload): Define using libm_alias_double.
29843         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29844         <libm-alias-double.h>.
29845         (llrint): Define using libm_alias_double.
29846         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29847         (lrint): Define using libm_alias_double.
29848         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29849         <libm-alias-double.h>.
29850         (nextup): Define using libm_alias_double.
29851         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29852         <libm-alias-double.h>.
29853         (roundeven): Define using libm_alias_double.
29854         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29855         libm_alias_double.
29856         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29857         <libm-alias-double.h>.
29858         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29859         using libm_alias_double.
29860         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29861         (cos): Define using libm_alias_double.
29862         (sin): Likewise.
29863         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29864         <libm-alias-double.h>.
29865         (sincos): Define using libm_alias_double.
29866         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29867         (tanh): Define using libm_alias_double.
29868         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29869         <libm-alias-double.h>.
29870         (totalorder): Define using libm_alias_double.
29871         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29872         <libm-alias-double.h>.
29873         (totalordermag): Define using libm_alias_double.
29874         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29875         libm_alias_double.
29876         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29877         libm_alias_double.
29878         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29879         <libm-alias-double.h>.
29880         (getpayload): Define using libm_alias_double.
29881         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29882         <libm-alias-double.h>.
29883         (roundeven): Define using libm_alias_double.
29884         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29885         <libm-alias-double.h>.
29886         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29887         <libm-alias-double.h>.
29888         (totalorder): Define using libm_alias_double.
29889         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29890         <libm-alias-double.h>.
29891         (totalordermag): Define using libm_alias_double.
29892         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29893         libc compat symbol here.
29894         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29895         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29896         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29897         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29898         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29899         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29900         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29901         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29902         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29903         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29904
29905 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29906
29907         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29908         _dl_relocate_static_pie instead of _dl_start to compute load
29909         address in static PIE.  Return 0 if _DYNAMIC is undefined for
29910         static executable.
29911
29912 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29913
29914         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29915         _DYNAMIC is undefined for static executable.
29916
29917 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29918
29919         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29920
29921 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29922
29923         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29924
29925 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29926
29927         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29928         (__ieee754_lgamma_r): Use fabs rather than __fabs.
29929         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29930         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29931         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29932         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29933         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29934         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29935         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29936         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29937         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29938         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29939         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29940         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29941         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29942         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29943         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29944
29945 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29946
29947         * math/bits/cmathcalls.h (cimag): Remove inline.
29948         (creal): Remove inline.
29949         (conj): Remove inline.
29950
29951 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29952
29953         * math/Makefile (type-float-routines): Add e_powf_log2_data.
29954         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29955         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29956         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29957         (issignalingf_inline): Likewise.
29958         (POWF_LOG2_TABLE_BITS): Likewise.
29959         (POWF_LOG2_POLY_ORDER): Likewise.
29960         (POWF_SCALE_BITS): Likewise.
29961         (POWF_SCALE): Likewise.
29962         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29963         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29964         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29965
29966 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29967
29968         * math/Makefile (type-float-routines): Add e_log2f_data.
29969         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29970         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29971         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29972         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29973         * sysdeps/i386/fpu/e_log2f_data.c: New file.
29974         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29975         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29976
29977 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29978
29979         * math/Makefile (type-float-routines): Add e_logf_data.
29980         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29981         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29982         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29983         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29984         * sysdeps/i386/fpu/e_logf_data.c: New file.
29985         * sysdeps/ia64/fpu/e_logf_data.c: New file.
29986         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29987
29988 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
29989
29990         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29991         undefined _DYNAMIC in PIE libc.a.
29992         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29993         Likewse.
29994
29995 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29996
29997         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29998         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29999         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
30000         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
30001         (__signbit): Remove.
30002         (__signbitl): Remove.
30003         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
30004         (__signbit): Remove.
30005         (__signbitl): Remove.
30006         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
30007         (__signbit): Remove.
30008         (__signbitl): Remove.
30009         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
30010         (__signbit): Remove.
30011         (__signbitl): Remove.
30012         * sysdeps/tile/bits/mathinline.h: Delete file.
30013         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
30014         (__signbit): Remove.
30015         (__signbitl): Remove.
30016
30017 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
30018
30019         * math/math.h: Improve handling of C99 isgreater macros.
30020         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
30021         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
30022         * sysdeps/powerpc/bits/mathinline.h: Likewise.
30023         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30024         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
30025
30026 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30027
30028         * sysdeps/aarch64/libm-test-ulps: Update.
30029
30030 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
30031
30032         [BZ #22225]
30033         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
30034         math_opt_barrier on argument when doing arithmetic on it.
30035         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
30036         Likewise.  Use math_force_eval not math_opt_barrier after
30037         arithmetic.
30038         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
30039         math_opt_barrier on argument when doing arithmetic on it.
30040         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
30041         Likewise.
30042
30043 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
30044
30045         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
30046         libc_hidden_def.
30047         (__freeifaddrs): Likewise.
30048
30049 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30050
30051         * include/dirent.h (__dirfd): New declaration.
30052         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
30053         alias.
30054         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
30055         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
30056         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
30057         * include/unistd.h (__revoke): New declaration.
30058         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
30059         alias.
30060         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
30061         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
30062         revoke.
30063         * include/dirent.h (__seekdir): New declaration.
30064         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
30065         redefine as weak alias.
30066         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
30067         of seekdir.
30068         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
30069         and use libc_hidden_def on them.
30070         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
30071         them.
30072         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
30073         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
30074         instead of getifaddrs and freeifaddrs.
30075
30076 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
30077
30078         [BZ #18822]
30079         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
30080         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
30081         (__dso_handle): Remove declaration.
30082         * dlfcn/tstatexit.c (__dso_handle): Removed.
30083         (main): Don't check __dso_handle.
30084         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
30085         (main): Don't check __dso_handle.
30086         * include/dso_handle.h: New file.
30087         * malloc/mtrace.c: Include <dso_handle.h>.
30088         (mtrace): Pass __dso_handle directly.
30089         * nptl/pthread_atfork.c: Include <dso_handle.h>.
30090         (__dso_handle): Remove declaration.
30091         (__pthread_atfork): Pass __dso_handle directly.
30092         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
30093         (__dso_handle): Removed.
30094         * posix/wordexp-test.c: Include <dso_handle.h>.
30095         (__dso_handle): Remove declaration.
30096         (__app_register_atfork): Pass __dso_handle directly.
30097         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
30098         (__dso_handle): Remove declaration.
30099         (at_quick_exit): Pass __dso_handle directly.
30100         * stdlib/atexit.c: Include <dso_handle.h>.
30101         (__dso_handle): Remove declaration.
30102         (atexit): Pass __dso_handle directly.
30103         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
30104         (__dso_handle): Removed.
30105
30106 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30107
30108         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
30109         using VDSO.
30110
30111 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
30112
30113         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
30114         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
30115         values to correct default value for given type.
30116
30117 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
30118
30119         [BZ #22101]
30120         * elf/Makefile (tests): Add tst-debug1.
30121         ($(objpfx)tst-debug1): New.
30122         ($(objpfx)tst-debug1.out): Likewise.
30123         ($(objpfx)tst-debug1mod1.so): Likewise.
30124         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
30125         with p_filesz == 0.
30126         * elf/tst-debug1.c: New file.
30127
30128 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30129
30130         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
30131         Define using __ifunc.
30132
30133 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30134
30135         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
30136         exp2f() values.
30137
30138 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
30139
30140         [BZ #22156]
30141         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
30142
30143 2017-09-26  Florian Weimer  <fweimer@redhat.com>
30144
30145         * resolv/Makefile (tests-internal): Fix typo in comment.
30146
30147 2017-09-26  Florian Weimer  <fweimer@redhat.com>
30148
30149         * resolv/nss_dns/dns-host.c: Fix typo in comment.
30150
30151 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30152
30153         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
30154         Use an union instead of a max_align_t array for __space,
30155         so that __space is the same size on all platforms.
30156         * malloc/scratch_buffer_grow_preserve.c
30157         (__libc_scratch_buffer_grow_preserve): Likewise.
30158
30159         [BZ #22183]
30160         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
30161         version to 2.
30162         * posix/Makefile (routines): Add glob-lstat-compat and
30163         glob64-lstat-compat.
30164         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
30165         * posix/glob-lstat-compat.c: New file.
30166         * posix/glob64-lstat-compat.c: Likewise.
30167         * posix/tst-glob_lstat_compat.c: Likewise.
30168         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
30169         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
30170         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
30171         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
30172         Likewise.
30173         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
30174         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30175         * posix/glob.c (glob_lstat): New function.
30176         (glob): Rename to __glob and add versioned symbol to 2.27.
30177         (glob_in_dir): Use glob_lstat.
30178         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
30179         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
30180         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
30181         2.27.
30182         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
30183         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
30184         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
30185         gl_lstat on glob call.
30186         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
30187         and glob64 symbols.
30188         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30189         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
30190         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
30191         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
30192         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
30193         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
30194         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
30195         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
30196         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
30197         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30198         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30199         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
30200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
30201         Likewise.
30202         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
30203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
30204         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30205         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30206         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
30207         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30208         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30209         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
30210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
30211         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
30212         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
30213         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
30214
30215 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
30216
30217         * configure.ac (AS): Require binutils 2.25 or later.
30218         * configure: Regenerated.
30219
30220 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
30221
30222         [BZ #22207]
30223         * stdlib/test-atexit-race-common.c (do_test): Minimize required
30224         VM size.
30225
30226 2017-09-25  DJ Delorie  <dj@redhat.com>
30227
30228         [BZ #22161]
30229         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
30230         resetting timeout.
30231
30232 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
30233
30234         * sysdeps/ieee754/dbl-64/sincos32.h
30235         [SINCCOS32_H]: Remove define.
30236         [SINCOS32_H]: Define.
30237
30238 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30239
30240         * math/Versions (expf): New libm symbol at GLIBC_2.27.
30241         (exp2f): Likewise.
30242         * math/w_exp2f.c: New file.
30243         * math/w_expf.c: New file.
30244         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
30245         * math/w_expf_compat.c (__expf_compat): Likewise.
30246         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
30247         * sysdeps/ia64/fpu/e_expf.S: Likewise.
30248         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30249         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30250         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30251         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30252         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30253         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30254         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30255         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30256         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30257         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30258         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30259         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30261         Likewise.
30262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30263         Likewise.
30264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30265         Likewise.
30266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30267         Likewise.
30268         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30269         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30270         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30271         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30272         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30274         Likewise.
30275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30276         Likewise.
30277         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30278         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30279         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30280
30281 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30282
30283         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
30284         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
30285         (roundtoint, converttoint): Likewise.
30286         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
30287         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
30288         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
30289         * sysdeps/ieee754/flt-32/math_config.h: New file.
30290         * sysdeps/ieee754/flt-32/math_errf.c: New file.
30291         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
30292         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
30293         * sysdeps/i386/fpu/math_errf.c: New file.
30294         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
30295         * sysdeps/ia64/fpu/math_errf.c: New file.
30296         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
30297         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
30298
30299 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30300
30301         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30302         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30303         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30304         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30305         to make sure that these symbols are defined.
30306         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30307         of <limits.h>
30308         (__need_NULL): Do not define.
30309         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30310         alignment.
30311         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30312         CMGROUP_MAX, cmsgcred): Do not define.
30313         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30314         NULL.
30315         * bits/socket.h: Likewise.
30316         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30317         __gettimeofday instead of gettimeofday.
30318         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30319         instead of settimeofday.
30320
30321 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30322
30323         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30324         (asinhf): Define using libm_alias_float.
30325         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30326         (atanf): Define using libm_alias_float.
30327         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30328         (cbrtf): Define using libm_alias_float.
30329         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30330         (ceilf): Define using libm_alias_float.
30331         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30332         <libm-alias-float.h>.
30333         (copysignf): Define using libm_alias_float.
30334         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30335         (cosf): Define using libm_alias_float.
30336         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30337         (erff): Define using libm_alias_float.
30338         (erfcf): Likewise.
30339         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30340         (expm1f): Define using libm_alias_float.
30341         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30342         (fabsf): Define using libm_alias_float.
30343         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30344         (floorf): Define using libm_alias_float.
30345         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30346         (frexpf): Define using libm_alias_float.
30347         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30348         libm_alias_float.
30349         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30350         <libm-alias-float.h>.
30351         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30352         libm_alias_float.
30353         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30354         <libm-alias-float.h>.
30355         (getpayloadf): Define using libm_alias_float.
30356         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30357         <libm-alias-float.h>.
30358         (llrintf): Define using libm_alias_float.
30359         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30360         <libm-alias-float.h>.
30361         (llroundf): Define using libm_alias_float.
30362         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30363         (logbf): Define using libm_alias_float.
30364         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30365         (lrintf): Define using libm_alias_float.
30366         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30367         (lroundf): Define using libm_alias_float.
30368         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30369         (modff): Define using libm_alias_float.
30370         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30371         <libm-alias-float.h>.
30372         (nearbyintf): Define using libm_alias_float.
30373         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30374         <libm-alias-float.h>.
30375         (nextafterf): Define using libm_alias_float.
30376         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30377         <libm-alias-float.h>.
30378         (nextupf): Define using libm_alias_float.
30379         * sysdeps/ieee754/flt-32/s_remquof.c: Include
30380         <libm-alias-float.h>.
30381         (remquof): Define using libm_alias_float.
30382         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30383         (rintf): Define using libm_alias_float.
30384         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30385         <libm-alias-float.h>.
30386         (roundevenf): Define using libm_alias_float.
30387         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30388         (roundf): Define using libm_alias_float.
30389         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30390         using libm_alias_float.
30391         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30392         <libm-alias-float.h>.
30393         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30394         Define using libm_alias_float.
30395         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30396         <libm-alias-float.h>.
30397         (sincosf): Define using libm_alias_float.
30398         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30399         (sinf): Define using libm_alias_float.
30400         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30401         (tanf): Define using libm_alias_float.
30402         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30403         (tanhf): Define using libm_alias_float.
30404         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30405         <libm-alias-float.h>.
30406         (totalorderf): Define using libm_alias_float.
30407         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30408         <libm-alias-float.h>.
30409         (totalordermagf): Define using libm_alias_float.
30410         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30411         (truncf): Define using libm_alias_float.
30412         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30413         libm_alias_float.
30414         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30415         libm_alias_float.
30416
30417 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30418
30419         [BZ #22146]
30420         math/math.h: Let fpclassify use the builtin in C++ mode, even
30421         when optimazing for size.
30422
30423 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30424
30425         * csu/Makefile (generated): Do not add version-info.h.
30426         (before-compile): Likewise.
30427         (all-Banner-files): Remove variable.
30428         ($(objpfx)version-info.h): Remove rule.
30429         * csu/version.c (banner): Do not include "version-info.h".
30430         * libidn/Banner: Remove.
30431         * manual/contrib.texi (Simon Josefsson): New entry.
30432
30433 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30434
30435         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30436         Remove conditionals on LDBL_MANT_DIG.
30437         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30438         (__ieee754_lgammal_r): Likewise.
30439
30440 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30441
30442         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30443         _Float128 and L().
30444         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30445         _Float128 and L(). Replace _Float128 with long double and L(x)
30446         with xL, throughout the file.
30447         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30448         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30449         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30450         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30451
30452 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30453
30454         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30455         sysdeps/ieee754/ldbl-128ibm.
30456         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30457         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30458         of including it.  Keep _Float128 and L() intact.  These will be
30459         reviewed by a separate patch.
30460         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30461         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30462         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30463         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30464
30465 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30466
30467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30468         (__finitef128): Define to __redirect___finitef128.
30469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30470         (__isinff128): Define to __redirect___isinff128.
30471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30472         (__isnanf128): Define to __redirect___isnanf128.
30473
30474 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30475
30476         * sysdeps/powerpc/powerpc64le/Makefile
30477         (CFLAGS-tst-strtod-nan-locale.c): New variable.
30478         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30479
30480 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
30481             Carlos O'Donell  <carlos@redhat.com>
30482
30483         [BZ #22180]
30484         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30485         * stdlib/test-dlclose-exit-race.c: New file.
30486         * stdlib/test-dlclose-exit-race-helper.c: New file.
30487         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30488
30489 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
30490
30491         * crypt/Banner: Remove file.
30492         * nptl/Banner: Likewise.
30493         * resolv/Banner: Likewise.
30494         * soft-fp/Banner: Likewise.
30495         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30496         ($(objpfx)version.d): Remove dependency on banner.h.
30497         ($(objpfx)version.os): Likewise.
30498         * nptl/version.c (banner): Do not include banner.h.
30499         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30500         Jelinek and BIND code.
30501
30502 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30503             Carlos O'Donell  <carlos@redhat.com>
30504
30505         * support/xdlfcn.h: New file.
30506         * support/xdlfcn.c: New file.
30507         * support/Makefile (libsupport-routines): Add xdlfcn.
30508         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30509
30510 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
30511
30512         [BZ #20142]
30513         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30514         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30515         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30516         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30517         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30518         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30519         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30520         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30521
30522 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30523             Ricky Zhou  <rickyz@google.com>
30524             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
30525
30526         [BZ #14333]
30527         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30528         Remove atomics.
30529         (__new_exitfn): Fail registration when we finished at_exit processing.
30530         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30531         * stdlib/on_exit.c (__on_exit): Likewise.
30532         * stdlib/exit.c (__exit_funcs_done): New variable.
30533         (__run_exit_handlers): Use __exit_funcs_lock.
30534         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30535         declarations.
30536         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30537         (test-cxa_atexit-race, test-on_exit-race): New tests.
30538         * stdlib/test-atexit-race-common.c: New file.
30539         * stdlib/test-atexit-race.c: New file.
30540         * stdlib/test-at_quick_exit-race.c: New file.
30541         * stdlib/test-cxa_atexit-race.c: New file.
30542         * stdlib/test-on_exit-race.c: New file.
30543
30544 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30545
30546         * benchtests/Makefile: Add exp2f and log2f benchmarks.
30547         * benchtests/exp2f-inputs: Copy of expf-inputs.
30548         * benchtests/log2f-inputs: Copy of logf-inputs.
30549
30550 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30551
30552         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30553         Explicitly take address of first element of array arguments in
30554         call to INLINE_SYSCALL.
30555
30556 2017-09-19  Andreas Schwab  <schwab@suse.de>
30557
30558         [BZ #22134]
30559         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30560         execveat first.
30561         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30562         unimplemented.
30563         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30564         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30565         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30566         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30567         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30568         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30569         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30570         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30571         * posix/Makefile (tests): Add tst-fexecve.
30572         * posix/tst-fexecve.c: New file.
30573
30574 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30575
30576         * benchtests/Makefile: Add logf benchmark.
30577         * benchtests/logf-inputs: Add reduced trace from wrf_r.
30578
30579 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30580
30581         * benchtests/Makefile: Add expf benchmark.
30582         * benchtests/expf-inputs: Add reduced trace from wrf_r.
30583
30584 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30585
30586         * csu/Makefile: Add -funwind-tables to libc-start.c.
30587         * debug/Makefile: Add -funwind-tables to backtrace.c.
30588         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30589         * sysdeps/arm/Makefile: Likewise.
30590         * sysdeps/i386/Makefile: Likewise.
30591         * sysdeps/m68k/Makefile: Likewise.
30592         * sysdeps/mips/Makefile: Likewise.
30593         * sysdeps/nios2/Makefile: Likewise.
30594         * sysdeps/sh/Makefile: Likewise.
30595         * sysdeps/sparc/Makefile: Likewise.
30596
30597 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30598
30599         * benchtests/Makefile (bench-math): Add trunc and truncf.
30600         (CFLAGS-bench-trunc.c): New variable.
30601         (CFLAGS-bench-truncf.c): Likewise.
30602         * benchtests/trunc-inputs: New file.
30603         * benchtests/truncf-inputs: Likewise.
30604
30605 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30606
30607         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30608
30609 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
30610
30611         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30612         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30613         redefine.
30614         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30615         (exp10l): Define as weak alias.
30616         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30617         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30618         and redefine.
30619         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30620         (remainderl): Define as weak alias.
30621
30622         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30623         (fmal): Define using libm_alias_ldouble.
30624         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30625         (acoshl): Define using libm_alias_ldouble.
30626         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30627         (acosl): Define using libm_alias_ldouble.
30628         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30629         (asinl): Define using libm_alias_ldouble.
30630         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30631         (atan2l): Define using libm_alias_ldouble.
30632         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30633         (atanhl): Define using libm_alias_ldouble.
30634         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30635         (coshl): Define using libm_alias_ldouble.
30636         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30637         (exp10l): Define using libm_alias_ldouble.
30638         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30639         (exp2l): Define using libm_alias_ldouble.
30640         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30641         (expl): Define using libm_alias_ldouble.
30642         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30643         (fmodl): Define using libm_alias_ldouble.
30644         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30645         (hypotl): Define using libm_alias_ldouble.
30646         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30647         (j0l): Define using libm_alias_ldouble.
30648         (y0l): Likewise.
30649         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30650         (j1l): Define using libm_alias_ldouble.
30651         (y1l): Likewise.
30652         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30653         (jnl): Define using libm_alias_ldouble.
30654         (ynl): Likewise.
30655         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30656         (log10l): Define using libm_alias_ldouble.
30657         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30658         (log2l): Define using libm_alias_ldouble.
30659         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30660         (logl): Define using libm_alias_ldouble.
30661         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30662         (powl): Define using libm_alias_ldouble.
30663         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30664         (remainderl): Define using libm_alias_ldouble.
30665         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30666         (sinhl): Define using libm_alias_ldouble.
30667         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30668         (sqrtl): Define using libm_alias_ldouble.
30669         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30670         (tgammal): Define using libm_alias_ldouble.
30671         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30672         (exp10l): Do not use long_double_symbol here.
30673         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30674         [LIBM_SVID_COMPAT] (remainderl): Likewise.
30675         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30676         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30677         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30678         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30679         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30680         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30681         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30682         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30683         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30684         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30685         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30686         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30687         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30688         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30689         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30690         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30691         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30692         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30693         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30694         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30695
30696 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
30697
30698         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30699         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30700
30701 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30702
30703         * io/read.c (read): Add libc_hidden_weak.
30704         * sysdeps/mach/hurd/read.c (read): Likewise.
30705         * io/write.c (write): Likewise.
30706         * sysdeps/mach/hurd/write.c (write): Likewise.
30707         * io/pread64.c (__pread64): Likewise.
30708         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30709         * posix/pread64.c (__pread64): Add libc_hidden_def.
30710
30711 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30712
30713         * benchtests/scripts/compare_strings.py: New option -g.
30714         (draw_graph): Print a message that a graph is being generated.
30715         (process_results): Generate graph only if -g is passed.
30716         (main): Process option -g.
30717
30718         * benchtests/scripts/compare_strings.py (process_results):
30719         Better spacing for output.
30720
30721         * benchtests/scripts/compare_strings.py: Use argparse.
30722         * benchtests/README: Document existence of compare_strings.py.
30723
30724 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30725
30726         * math/s_fma.c: Include <libm-alias-double.h>.
30727         (fma): Define using libm_alias_double.
30728         * math/s_nextafter.c: Include <libm-alias-double.h>.
30729         (nextafter): Define using libm_alias_double.
30730         * math/w_acos_compat.c: Include <libm-alias-double.h>.
30731         (acos): Define using libm_alias_double.
30732         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30733         (aocsh): Define using libm_alias_double.
30734         * math/w_asin_compat.c: Include <libm-alias-double.h>.
30735         (asin): Define using libm_alias_double.
30736         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30737         (atan2): Define using libm_alias_double.
30738         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30739         (atanh): Define using libm_alias_double.
30740         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30741         (cosh): Define using libm_alias_double.
30742         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30743         (exp10): Define using libm_alias_double.
30744         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30745         (exp2): Define using libm_alias_double.
30746         * math/w_exp_compat.c: Include <libm-alias-double.h>.
30747         (exp): Define using libm_alias_double.
30748         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30749         (fmod): Define using libm_alias_double.
30750         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30751         (hypot): Define using libm_alias_double.
30752         * math/w_j0_compat.c: Include <libm-alias-double.h>.
30753         (j0): Define using libm_alias_double.
30754         (y0): Likewise.
30755         * math/w_j1_compat.c: Include <libm-alias-double.h>.
30756         (j1): Define using libm_alias_double.
30757         (y1): Likewise.
30758         * math/w_jn_compat.c: Include <libm-alias-double.h>.
30759         (jn): Define using libm_alias_double.
30760         (yn): Likewise.
30761         * math/w_log10_compat.c: Include <libm-alias-double.h>.
30762         (log10): Define using libm_alias_double.
30763         * math/w_log2_compat.c: Include <libm-alias-double.h>.
30764         (log2): Define using libm_alias_double.
30765         * math/w_log_compat.c: Include <libm-alias-double.h>.
30766         (log): Define using libm_alias_double.
30767         * math/w_pow_compat.c: Include <libm-alias-double.h>.
30768         (pow): Define using libm_alias_double.
30769         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30770         (remainder): Define using libm_alias_double.
30771         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30772         (sinh): Define using libm_alias_double.
30773         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30774         (sqrt): Define using libm_alias_double.
30775         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30776         (tgamma): Define using libm_alias_double.
30777         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30778         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30779         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30780         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30781         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30782         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30783         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30784         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30785         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30786         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30787         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30788         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30789         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30790         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30791         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30792         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30793         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30794         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30795         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30796         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30797         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30798         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30799         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30800         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30801         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30802
30803         * math/e_acoshl.c: Remove.
30804         * math/e_acosl.c: Likewise.
30805         * math/e_asinl.c: Likewise.
30806         * math/e_atan2l.c: Likewise.
30807         * math/e_atanhl.c: Likewise.
30808         * math/e_coshl.c: Likewise.
30809         * math/e_expl.c: Likewise.
30810         * math/e_fmodl.c: Likewise.
30811         * math/e_gammal_r.c: Likewise.
30812         * math/e_hypotl.c: Likewise.
30813         * math/e_j0l.c: Likewise.
30814         * math/e_j1l.c: Likewise.
30815         * math/e_jnl.c: Likewise.
30816         * math/e_lgammal_r.c: Likewise.
30817         * math/e_log10l.c: Likewise.
30818         * math/e_log2l.c: Likewise.
30819         * math/e_logl.c: Likewise.
30820         * math/e_powl.c: Likewise.
30821         * math/e_rem_pio2l.c: Likewise.
30822         * math/e_sinhl.c: Likewise.
30823         * math/e_sqrtf128.c: Likewise.
30824         * math/e_sqrtl.c: Likewise.
30825         * math/k_cosl.c: Likewise.
30826         * math/k_sinl.c: Likewise.
30827         * math/k_tanl.c: Likewise.
30828         * math/s_asinhl.c: Likewise.
30829         * math/s_atanl.c: Likewise.
30830         * math/s_cbrtl.c: Likewise.
30831         * math/s_erfl.c: Likewise.
30832         * math/s_expm1l.c: Likewise.
30833         * math/s_log1pl.c: Likewise.
30834         * math/s_tanhl.c: Likewise.
30835
30836 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30837
30838         [BZ #21745]
30839         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30840         [$(subdir) = math] (sysdep_calls): New variable.  Has the
30841         previous contents of sysdep_routines, but re-sorted..
30842         [$(subdir) = math] (sysdep_routines): Re-use the contents from
30843         sysdep_calls.
30844         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30845         defined in sysdep_calls and replace by the respective m_* names.
30846         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30847         (compat_symbol): Undefine to avoid duplicated compat symbols in
30848         libc.
30849
30850 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30851
30852         * math/s_fmaf.c: Include <libm-alias-float.h>.
30853         (fmaf): Define using libm_alias_float.
30854         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30855         (acosf): Define using libm_alias_float.
30856         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30857         (acoshf): Define using libm_alias_float.
30858         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30859         (asinf): Define using libm_alias_float.
30860         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30861         (atan2f): Define using libm_alias_float.
30862         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30863         (atanhf): Define using libm_alias_float.
30864         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30865         (coshf): Define using libm_alias_float.
30866         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30867         (exp10f): Define using libm_alias_float.
30868         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30869         (fmodf): Define using libm_alias_float.
30870         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30871         (hypotf): Define using libm_alias_float.
30872         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30873         (j0f): Define using libm_alias_float.
30874         (y0f): Likewise.
30875         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30876         (j1f): Define using libm_alias_float.
30877         (y1f): Likewise.
30878         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30879         (jnf): Define using libm_alias_float.
30880         (ynf): Likewise.
30881         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30882         (log10f): Define using libm_alias_float.
30883         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30884         (log2f): Define using libm_alias_float.
30885         * math/w_logf_compat.c: Include <libm-alias-float.h>.
30886         (logf): Define using libm_alias_float.
30887         * math/w_powf_compat.c: Include <libm-alias-float.h>.
30888         (powf): Define using libm_alias_float.
30889         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30890         (remainderf): Define using libm_alias_float.
30891         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30892         (sinhf): Define using libm_alias_float.
30893         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30894         (sqrtf): Define using libm_alias_float.
30895         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30896         (tgammaf): Define using libm_alias_float.
30897
30898 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30899
30900         * include/math.h (roundeven): Change hidden_proto call to
30901         __roundeven.
30902         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30903         alias.
30904         [NO_LONG_DOUBLE] (__j0l): New strong alias.
30905         (y0): Rename to __y0 and define as weak alias.
30906         [NO_LONG_DOUBLE] (__y0l): New strong alias.
30907         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30908         alias.
30909         (y0f): Rename to __y0f and define as weak alias.
30910         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30911         alias.
30912         [NO_LONG_DOUBLE] (__j1l): New strong alias.
30913         (y1): Rename to __y1 and define as weak alias.
30914         [NO_LONG_DOUBLE] (__y1l): New strong alias.
30915         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30916         alias.
30917         (y1f): Rename to __y1f and define as weak alias.
30918         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30919         alias.
30920         [NO_LONG_DOUBLE] (__jnl): New strong alias.
30921         (yn): Rename to __yn and define as weak alias.
30922         [NO_LONG_DOUBLE] (__ynl): New strong alias.
30923         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30924         alias.
30925         (ynf): Rename to __ynf and define as weak alias.
30926         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30927         (fromfp): Define as weak alias.
30928         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30929         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30930         (fromfpx): Define as weak alias.
30931         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30932         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30933         __getpayload and define as weak alias.
30934         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30935         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30936         __roundeven and define as weak alias.
30937         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30938         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30939         __setpayload.
30940         (setpayload): Define as weak alias.
30941         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30942         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30943         __setpayloadsig.
30944         (setpayloadsig): Define as weak alias.
30945         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30946         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30947         __totalorder and define as weak alias.
30948         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30949         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30950         to __totalordermag and define as weak alias.
30951         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30952         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30953         (ufromfp): Define as weak alias.
30954         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30955         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30956         __ufromfpx.
30957         (ufromfpx): Define as weak alias.
30958         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30959         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30960         Rename to __getpayload and define as weak alias.
30961         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30962         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30963         Rename to __roundeven and define as weak alias.
30964         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30965         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30966         Rename to __totalorder and define as weak alias.
30967         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30968         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30969         (totalordermag): Rename to __totalordermag and define as weak
30970         alias.
30971         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30972         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30973         macro.
30974         (__roundevenl): Likewise.
30975         (__totalorderl): Likewise.
30976         (__totalordermagl): Likewise
30977         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30978         __fromfpf128.
30979         (fromfpf128): Define as weak alias.
30980         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30981         __fromfpxf128.
30982         (fromfpxf128): Define as weak alias.
30983         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30984         __setpayloadf128.
30985         (setpayloadf128): Define as weak alias.
30986         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30987         __setpayloadsigf128.
30988         (setpayloadsigf128): Define as weak alias.
30989         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30990         __ufromfpf128.
30991         (ufromfpf128): Define as weak alias.
30992         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30993         __ufromfpxf128.
30994         (ufromfpxf128): Define as weak alias.
30995         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30996         (fromfpf): Define as weak alias.
30997         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30998         __fromfpxf.
30999         (fromfpxf): Define as weak alias.
31000         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
31001         __getpayloadf and define as weak alias.
31002         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
31003         __roundevenf and define as weak alias.
31004         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
31005         __setpayloadf.
31006         (setpayloadf): Define as weak alias.
31007         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
31008         __setpayloadsigf.
31009         (setpayloadsigf): Define as weak alias.
31010         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
31011         __totalorderf and define as weak alias.
31012         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
31013         Rename to __totalordermagf and define as weak alias.
31014         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
31015         __ufromfpf.
31016         (ufromfpf): Define as weak alias.
31017         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
31018         __ufromfpxf.
31019         (ufromfpxf): Define as weak alias.
31020         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
31021         __fromfpl.
31022         (fromfpl): Define as weak alias.
31023         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
31024         __fromfpxl.
31025         (fromfpxl): Define as weak alias.
31026         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
31027         to __getpayloadl and define as weak alias.
31028         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
31029         __roundevenl and define as weak alias.
31030         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
31031         __setpayloadl.
31032         (setpayloadl): Define as weak alias.
31033         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
31034         __setpayloadsigl.
31035         (setpayloadsigl): Define as weak alias.
31036         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
31037         to __totalorderl and define as weak alias.
31038         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
31039         Rename to __totalordermagl and define as weak alias.
31040         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
31041         __ufromfpl.
31042         (ufromfpl): Define as weak alias.
31043         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
31044         __ufromfpxl.
31045         (ufromfpxl): Define as weak alias.
31046         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
31047         __fromfpl.
31048         (fromfpl): Define as weak alias.
31049         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
31050         __fromfpxl.
31051         (fromfpxl): Define as weak alias.
31052         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
31053         Rename to __getpayloadl and define as weak alias.
31054         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
31055         to __roundevenl and define as weak alias.  Call __roundeven
31056         instead of roundeven.
31057         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
31058         __setpayloadl.
31059         (setpayloadl): Define as weak alias.
31060         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
31061         __setpayloadsigl.
31062         (setpayloadsigl): Define as weak alias.
31063         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
31064         Rename to __totalorderl and define as weak alias.
31065         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
31066         Rename to __totalordermagl and define as weak alias.
31067         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
31068         __ufromfpl.
31069         (ufromfpl): Define as weak alias.
31070         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
31071         __ufromfpxl.
31072         (ufromfpxl): Define as weak alias.
31073         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
31074         __fromfpl.
31075         (fromfpl): Define as weak alias.
31076         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
31077         __fromfpxl.
31078         (fromfpxl): Define as weak alias.
31079         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
31080         __getpayloadl and define as weak alias.
31081         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
31082         __roundevenl and define as weak alias.
31083         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
31084         __setpayloadl.
31085         (setpayloadl): Define as weak alias.
31086         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
31087         __setpayloadsigl.
31088         (setpayloadsigl): Define as weak alias.
31089         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
31090         __totalorderl and define as weak alias.
31091         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
31092         Rename to __totalordermagl and define as weak alias.
31093         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
31094         __ufromfpl.
31095         (ufromfpl): Define as weak alias.
31096         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
31097         __ufromfpxl.
31098         (ufromfpxl): Define as weak alias.
31099
31100 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31101
31102         * benchtests/bench-string.h (realloc_bufs): New function.
31103         (test_init): Call it.
31104         * benchtests/bench-memset-large.c (do_test): Likewise.
31105         * benchtests/bench-memset.c (do_test): Likewise.
31106
31107         * benchtests/bench-memset-large.c: Print output in JSON
31108         format.
31109         * benchtests/bench-memset.c: Likewise.
31110
31111 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
31112
31113         [BZ #21084]
31114         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
31115         * iconvdata/Makefile: Add IBM858.
31116         * iconvdata/gconv-modules: Likewise.
31117         * iconvdata/tst-tables.sh: Likewise.
31118         * iconvdata/ibm858.c: New file.
31119         * localedata/charmaps/IBM858: Likewise.
31120
31121 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
31122
31123         [BZ #22023]
31124         * locales/niu_NZ (LC_TIME): copy "niu_NU".
31125         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
31126
31127 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
31128
31129         [BZ #22112]
31130         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
31131         and add tel_int_fmt.
31132
31133 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
31134
31135         * sysdeps/generic/libm-alias-float128.h: New file.
31136         * sysdeps/generic/math-type-macros-float128.h: Include
31137         <libm-alias-float128.h>.
31138         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31139
31140 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31141
31142         * sysdeps/generic/libm-alias-ldouble.h: New file.
31143         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
31144         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
31145         * sysdeps/generic/math-type-macros-ldouble.h: Include
31146         <libm-alias-ldouble.h>.
31147         [!declare_mgen_alias] (declare_mgen_alias): Define to use
31148         libm_alias_ldouble.
31149
31150 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31151
31152         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
31153         * math/w_exp_compat.c: ... here.
31154         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
31155         * math/w_expf_compat.c: ... here.
31156         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
31157         * math/w_expl_compat.c: ... here.
31158         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
31159         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
31160         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
31161         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
31162
31163 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31164
31165         * math/w_scalbln_template.c (strong_alias): Do not undefine and
31166         redefine.
31167         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
31168         macro.
31169         (ldexpl): Only define as compat symbol for libc, not libm.
31170         (scalbnl): Define as compat symbol for libc here.
31171         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
31172         define for [IS_IN (libc)].
31173         (__ldexpl_2): Remove alias.
31174         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
31175         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
31176         name in long_double_symbol call.
31177         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
31178         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
31179         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
31180         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
31181         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
31182         Remove macro.
31183         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
31184         Define as compat symbol.
31185
31186 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31187
31188         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
31189         * sysdeps/unix/sysv/linux/alpha/Makefile
31190         [$(subdir) = csu] (sysdep_routines): Remove rule.
31191
31192 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
31193
31194         * sysdeps/generic/libm-alias-double.h: New file.
31195         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
31196         * sysdeps/generic/math-type-macros-double.h: Include
31197         <libm-alias-double.h>.
31198         [declare_mgen_alias] (declare_mgen_alias): Define to use
31199         libm_alias_double.
31200         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
31201         (M_LIBM_NEED_COMPAT): Remove macro.
31202         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
31203         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
31204         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
31205         code.
31206         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31207         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31208         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31209         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31210         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31211         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31212         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31213         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31214         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31215         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31216         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31217         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31218         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31219         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31220         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31221         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31222         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31223         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31224         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31225         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31226         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31227         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31228         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31229         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31230         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31231         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31232         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31233         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
31234         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
31235         macro.
31236         (declare_mgen_alias): New macro.
31237         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
31238         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
31239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
31240         (M_LIBM_NEED_COMPAT): Remove macro.
31241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
31242         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
31243         <first-versions.h>.
31244         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
31245         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
31246
31247 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
31248
31249         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
31250         (declare_mgen_alias_2): Remove.
31251         * sysdeps/generic/math-type-macros-double.h
31252         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
31253         Likewise.
31254         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
31255         alias.
31256         (ldexp): Define with declare_mgen_alias.
31257         (scalbn): Likewise.
31258
31259 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
31260
31261         * grp/initgroups.c: Include config.h.
31262         (DEFAULT_CONFIG): New macro.
31263         (internal_getgrouplist): Use DEFAULT_CONFIG.
31264         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31265         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
31266         (DEFAULT_DEFCONFIG): New macro.
31267         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
31268         * nss/grp-lookup.c: Include config.h
31269         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
31270         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
31271         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
31272         * manual/nss.texi: Update default values section.
31273
31274 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
31275
31276         [BZ #21967]
31277         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
31278         New.
31279         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
31280         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31281         Handle MathVec_Prefer_No_AVX512.
31282         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
31283         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
31284         is set.
31285
31286 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31287
31288         * posix/sched_primax.c (__sched_get_priority_max): Add
31289         libc_hidden_def.
31290         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
31291         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31292         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31293         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
31294         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
31295         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
31296         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
31297         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
31298         Add aliases.
31299
31300 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
31301
31302         * sysdeps/generic/libm-alias-float.h: New file.
31303         * sysdeps/generic/math-type-macros-float.h: Include
31304         <libm-alias-float.h>.
31305         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31306
31307 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
31308
31309         [BZ #22093]
31310         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31311         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31312         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31313         (HWCAP_IMPORTANT): Likewise.
31314         (HWCAP_X86_64): New enum.
31315         (HWCAP_X86_AVX512_1): Updated.
31316         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31317         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31318         (modules-names): Add x86_64/tst-x86_64mod-1.
31319         (LDFLAGS-tst-x86_64mod-1.so): New.
31320         ($(objpfx)tst-x86_64-1): Likewise.
31321         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31322         (tst-x86_64-1-clean): Likewise.
31323         * sysdeps/x86_64/tst-x86_64-1.c: New file.
31324         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31325
31326 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31327
31328         * po/sv.po: Update translations.
31329         * po/fr.po: Likewise.
31330
31331 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31332
31333         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31334         seconds.
31335         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31336         seconds.
31337         * elf/rtld-Rules: Fix $(error) use.
31338
31339 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
31340
31341         [BZ #14925]
31342         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31343         * locale/iso-639.def: Change “Bengali” to “Bangla”.
31344         * localedata/locales/bn_BD: “Bengali” was still used in some
31345         comments. Change it to “Bangla”.
31346
31347 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
31348
31349         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31350
31351 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31352
31353         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31354         thunderx2t99p1 to list of cpu names.
31355         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31356         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31357
31358 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31359
31360         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31361         Use strcmp instead of tunable_is_name.
31362
31363 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
31364
31365         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31366         (F_GET_RW_HINT): New macro.
31367         [__USE_GNU] (F_SET_RW_HINT): Likewise.
31368         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31369         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31370         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31371         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31372         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31373         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31374         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31375         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31376
31377         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31378         (F_ADD_SEALS): New macro.
31379         [__USE_GNU] (F_GET_SEALS): Likewise.
31380         [__USE_GNU] (F_SEAL_SEAL): Likewise.
31381         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31382         [__USE_GNU] (F_SEAL_GROW): Likewise.
31383         [__USE_GNU] (F_SEAL_WRITE): Likewise.
31384
31385 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31386
31387         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31388         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31389         * posix/glob_internal.h (__glob_pattern_type):
31390         * posix/glob.c (glob):
31391         * posix/glob_pattern_p.c (__glob_pattern_p):
31392         Use them.
31393
31394         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31395         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31396         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31397         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31398         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31400         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31401         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31402         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31403         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31404         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31405         * sysdeps/wordsize-64/glob.c: Likewise.
31406         * sysdeps/wordsize-64/glob64.c: Likewise.
31407         * sysdeps/wordsize-64/globfree.c: Likewise.
31408         * sysdeps/wordsize-64/globfree64.c: Likewise.
31409         * sysdeps/unix/sysv/linux/glob.c: New file.
31410         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31411         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31412         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31413         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31414         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31415         adds !GLOB_NO_OLD_VERSION as an extra condition.
31416         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31417         using relative path instead of absolute one.
31418         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31419         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31420         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31421         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31422         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31423         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31424
31425         [BZ #1062]
31426         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31427         (glob): Use the same scratch buffer for both getlogin_r and
31428         getpwnam_r.  Don’t require preallocation of the login name.  This
31429         simplifies storage allocation, and corrects the handling of
31430         long login names.
31431
31432         [BZ #1062]
31433         * posix/glob.c (glob): Port recent patches to platforms
31434         lacking getpwnam_r.
31435         (glob): Fix longstanding misuse of errno after getpwnam_r, which
31436         returns an error number rather than setting errno.
31437
31438         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31439         instead of GCC extension.
31440         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31441         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31442         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31443
31444         [BZ #866]
31445         [BZ #1062]
31446         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31447         * posix/bug-glob1.c: Remove file.
31448         * posix/tst-glob_symlinks.c: New file.
31449         * posix/glob.c (__lstat64): New macro.
31450         (is_dir): New function.
31451         (glob, glob_in_dir): Match symlinks even if they are dangling.
31452         (link_stat, link_exists_p): Remove.  All uses removed.
31453
31454         [BZ #1062]
31455         [BZ #19971]
31456         * posix/glob.c (struct readdir_result): Remove skip_entry member.
31457         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31458         All uses removed.
31459
31460         [BZ #1062]
31461         CVE-2017-15671
31462         * posix/Makefile (routines): Add globfree, globfree64, and
31463         glob_pattern_p.
31464         * posix/flexmember.h: New file.
31465         * posix/glob_internal.h: Likewise.
31466         * posix/glob_pattern_p.c: Likewise.
31467         * posix/globfree.c: Likewise.
31468         * posix/globfree64.c: Likewise.
31469         * sysdeps/gnu/globfree64.c: Likewise.
31470         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31471         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31472         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31473         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31474         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31475         * sysdeps/wordsize-64/globfree.c: Likewise.
31476         * sysdeps/wordsize-64/globfree64.c: Likewise.
31477         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31478         [NDEBUG): Remove comments.
31479         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31480         (dirent_type): New type.  Use uint_fast8_t not
31481         uint8_t, as C99 does not require uint8_t.
31482         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31483         (struct readdir_result): Use dirent_type.  Do not define skip_entry
31484         unless it is needed; this saves a byte on platforms lacking d_ino.
31485         (readdir_result_type, readdir_result_skip_entry):
31486         New functions, replacing ...
31487         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31488         these functions, which were removed.  This makes the callers
31489         easier to read.  All callers changed.
31490         (D_INO_TO_RESULT): Now empty if there is no d_ino.
31491         (size_add_wrapv, glob_use_alloca): New static functions.
31492         (glob, glob_in_dir): Check for size_t overflow in several places,
31493         and fix some size_t checks that were not quite right.
31494         Remove old code using SHELL since Bash no longer
31495         uses this.
31496         (glob, prefix_array): Separate MS code better.
31497         (glob_in_dir): Remove old Amiga and VMS code.
31498         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31499         separate files.
31500         (glob_in_dir): Do not rely on undefined behavior in accessing
31501         struct members beyond their bounds.  Use a flexible array member
31502         instead
31503         (link_stat): Rename from link_exists2_p and return -1/0 instead of
31504         0/1.  Caller changed.
31505         (glob): Fix memory leaks.
31506         * posix/glob64 (globfree64): Move to separate file.
31507         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31508         (globfree64): Remove hidden alias.
31509         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31510         oldglob.
31511         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31512         separate file.
31513         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31514         define.
31515         Move compat code to separate file.
31516         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31517         separate file.
31518
31519 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
31520
31521         * resolv/tst-resolv-qtypes.c (domain): Changed to
31522         "const char domain[] =".
31523
31524 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
31525
31526         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31527         version to 3.1.6.
31528
31529         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31530         (TCP_MD5SIG_EXT): Likewise.
31531         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31532         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31533         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
31534
31535         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31536
31537 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
31538
31539         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31540
31541 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
31542
31543         [BZ #22100]
31544         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31545
31546 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31547
31548         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31549         before assuming that the file is empty.  Avoid testing buffer content
31550         when nread == 0.
31551
31552 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31553
31554         [BZ #18858]
31555         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31556         Remove define.
31557         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31558         Likewise.
31559         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31560         Likewise.
31561         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31562         Likewise.
31563         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31564         Likewise.
31565         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31566         Likewise.
31567         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31568         Likewise.
31569
31570 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31571
31572         * malloc/dynarray_emplace_enlarge.c
31573         (__libc_dynarray_emplace_enlarge): Add missing else.
31574
31575 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31576
31577         [BZ #22096]
31578         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31579         case of failure to obtain the global conf object.
31580
31581 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31582
31583         [BZ #22095]
31584         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31585         dynarray allocation failure.
31586
31587 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31588
31589         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31590         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31591         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31592         New functions.
31593         (response): Call them.  Add 'p', '6' flag processing.
31594         (test_reverse): New function.
31595         (test_get2_any): Call it.
31596         (test_no_inet6): Add 'p' test.
31597         (test_inet6): Likewise.
31598
31599 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31600
31601         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31602         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31603         the QNAME.
31604         (test_gai): Adjust query names.  Add additional tests.
31605         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31606         test_get2.  Adjust query names.  Add additional tests.
31607         (test_no_inet6): New function, extracted from threadfunc.
31608         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31609         Add additional tests.
31610
31611 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31612
31613         [BZ #22070]
31614         * localedata/unicode-gen/utf8_gen.py: Set the width for
31615         characters with Prepended_Concatenation_Mark property to 1
31616         * localedata/charmaps/UTF-8: Updated using the improved script.
31617
31618 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31619
31620         [BZ #21750]
31621         * localedata/unicode-gen/utf8_gen.py: Improve the script to
31622         use the range notation for all ranges of neighbouring characters
31623         with the same width.
31624
31625 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31626
31627         * sysdeps/generic/math-type-macros-double.h: Include
31628         <math-svid-compat.h>.
31629         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31630         * sysdeps/generic/math-type-macros-float.h: Include
31631         <math-svid-compat.h>.
31632         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31633         * sysdeps/generic/math-type-macros-ldouble.h: Include
31634         <math-svid-compat.h>.
31635         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31636         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31637         condition.
31638         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31639         * math/w_acosf_compat.c: Likewise.
31640         * math/w_acosh_compat.c: Likewise.
31641         * math/w_acoshf_compat.c: Likewise.
31642         * math/w_acoshl_compat.c: Likewise.
31643         * math/w_acosl_compat.c: Likewise.
31644         * math/w_asin_compat.c: Likewise.
31645         * math/w_asinf_compat.c: Likewise.
31646         * math/w_asinl_compat.c: Likewise.
31647         * math/w_atan2_compat.c: Likewise.
31648         * math/w_atan2f_compat.c: Likewise.
31649         * math/w_atan2l_compat.c: Likewise.
31650         * math/w_atanh_compat.c: Likewise.
31651         * math/w_atanhf_compat.c: Likewise.
31652         * math/w_atanhl_compat.c: Likewise.
31653         * math/w_cosh_compat.c: Likewise.
31654         * math/w_coshf_compat.c: Likewise.
31655         * math/w_coshl_compat.c: Likewise.
31656         * math/w_exp10_compat.c: Likewise.
31657         * math/w_exp10f_compat.c: Likewise.
31658         * math/w_exp10l_compat.c: Likewise.
31659         * math/w_exp2_compat.c: Likewise.
31660         * math/w_exp2f_compat.c: Likewise.
31661         * math/w_exp2l_compat.c: Likewise.
31662         * math/w_fmod_compat.c: Likewise.
31663         * math/w_fmodf_compat.c: Likewise.
31664         * math/w_fmodl_compat.c: Likewise.
31665         * math/w_hypot_compat.c: Likewise.
31666         * math/w_hypotf_compat.c: Likewise.
31667         * math/w_hypotl_compat.c: Likewise.
31668         * math/w_j0_compat.c: Likewise.
31669         * math/w_j0f_compat.c: Likewise.
31670         * math/w_j0l_compat.c: Likewise.
31671         * math/w_j1_compat.c: Likewise.
31672         * math/w_j1f_compat.c: Likewise.
31673         * math/w_j1l_compat.c: Likewise.
31674         * math/w_jn_compat.c: Likewise.
31675         * math/w_jnf_compat.c: Likewise.
31676         * math/w_jnl_compat.c: Likewise.
31677         * math/w_lgamma_r_compat.c: Likewise.
31678         * math/w_lgammaf_r_compat.c: Likewise.
31679         * math/w_lgammal_r_compat.c: Likewise.
31680         * math/w_log10_compat.c: Likewise.
31681         * math/w_log10f_compat.c: Likewise.
31682         * math/w_log10l_compat.c: Likewise.
31683         * math/w_log2_compat.c: Likewise.
31684         * math/w_log2f_compat.c: Likewise.
31685         * math/w_log2l_compat.c: Likewise.
31686         * math/w_log_compat.c: Likewise.
31687         * math/w_logf_compat.c: Likewise.
31688         * math/w_logl_compat.c: Likewise.
31689         * math/w_pow_compat.c: Likewise.
31690         * math/w_powf_compat.c: Likewise.
31691         * math/w_powl_compat.c: Likewise.
31692         * math/w_remainder_compat.c: Likewise.
31693         * math/w_remainderf_compat.c: Likewise.
31694         * math/w_remainderl_compat.c: Likewise.
31695         * math/w_sinh_compat.c: Likewise.
31696         * math/w_sinhf_compat.c: Likewise.
31697         * math/w_sinhl_compat.c: Likewise.
31698         * math/w_sqrt_compat.c: Likewise.
31699         * math/w_sqrtf_compat.c: Likewise.
31700         * math/w_sqrtl_compat.c: Likewise.
31701         * math/w_tgamma_compat.c: Likewise.
31702         * math/w_tgammaf_compat.c: Likewise.
31703         * math/w_tgammal_compat.c: Likewise.
31704         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31705         [LIBM_SVID_COMPAT].
31706         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31707         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31708         [LIBM_SVID_COMPAT].
31709         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31710         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31711         [LIBM_SVID_COMPAT].
31712         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31713         * sysdeps/i386/fpu/w_sqrt.c: New file.
31714         * sysdeps/ia64/fpu/w_acos.c: Likewise.
31715         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31716         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31717         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31718         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31719         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31720         * sysdeps/ia64/fpu/w_asin.c: Likewise.
31721         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31722         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31723         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31724         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31725         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31726         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31727         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31728         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31729         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31730         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31731         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31732         * sysdeps/ia64/fpu/w_exp.c: Likewise.
31733         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31734         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31735         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31736         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31737         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31738         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31739         * sysdeps/ia64/fpu/w_expf.c: Likewise.
31740         * sysdeps/ia64/fpu/w_expl.c: Likewise.
31741         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31742         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31743         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31744         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31745         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31746         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31747         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31748         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31749         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31750         * sysdeps/ia64/fpu/w_log.c: Likewise.
31751         * sysdeps/ia64/fpu/w_log10.c: Likewise.
31752         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31753         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31754         * sysdeps/ia64/fpu/w_log2.c: Likewise.
31755         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31756         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31757         * sysdeps/ia64/fpu/w_logf.c: Likewise.
31758         * sysdeps/ia64/fpu/w_logl.c: Likewise.
31759         * sysdeps/ia64/fpu/w_pow.c: Likewise.
31760         * sysdeps/ia64/fpu/w_powf.c: Likewise.
31761         * sysdeps/ia64/fpu/w_powl.c: Likewise.
31762         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31763         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31764         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31765         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31766         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31767         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31768         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31769         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31770         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31771         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31772         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31773         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31774         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31775         [LIBM_SVID_COMPAT].
31776         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31777         * sysdeps/ieee754/k_standard.c: Likewise.
31778         * sysdeps/ieee754/k_standardf.c: Likewise.
31779         * sysdeps/ieee754/k_standardl.c: Likewise.
31780         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31781         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31782         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31783         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31784         long_double_symbol call on [LIBM_SVID_COMPAT].
31785         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31786         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31787         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31788         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31789         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31790         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31791         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31792         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31793         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31794         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31795         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31796         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31797         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31798         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31799         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31800         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31801         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31802         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31803         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31804         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31805         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31806         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31807
31808 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
31809
31810         * include/shlib-compat.h (TEST_COMPAT): New Macro.
31811         * malloc/tst-mallocstate.c: Convert from test-skeleton
31812         to test-driver.  Ifdef code using TEST_COMPAT macro.
31813         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31814         * math/test-matherr.c: Likewise.
31815
31816 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31817
31818         [BZ #22086]
31819         * debug/pcprofiledump.c (main): Use byte-swapped mask when
31820         comparing word with byte-swapped constant.
31821
31822 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
31823
31824         [BZ #20498]
31825         * locale/iso-639.def: add Miskito.
31826         * localedata/SUPPORTED: Add miq_NI/UTF-8.
31827         * localedata/locales/miq_NI: New file.
31828
31829 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
31830
31831         [BZ #18822]
31832         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31833         (__mkdir): Likewise.
31834         * io/chmod.c (__chmod): Add libc_hidden_def.
31835         * io/mkdir.c (__mkdir): Likewise.
31836         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31837         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31838         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31839         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31840
31841 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31842
31843         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31844         version to 4.13.
31845
31846         [BZ #22082]
31847         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31848         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31849
31850 2017-09-04  Florian Weimer  <fweimer@redhat.com>
31851
31852         * math/math.h: Issue warning if log is defined.
31853
31854 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31855
31856         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31857         kernel version to 4.13.
31858
31859 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31860
31861         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31862         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31863         parameter.
31864         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31865         just <bits/types.h>.
31866         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31867         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31868         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31869         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31870         * misc/preadv2.c: Include <errno.h>.
31871         * misc/preadv64v2.c: Include <errno.h>.
31872         * misc/pwritev2.c: Include <errno.h>.
31873         * misc/pwritev64v2.c: Include <errno.h>.
31874         * sysdeps/posix/preadv2.c: Include <errno.h>.
31875         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31876         Fix <unistd.h> inclusion.
31877         * sysdeps/posix/pwritev2.c: Include <errno.h>.
31878         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31879         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31880         __strtoul_internal): New functions.
31881         * sysdeps/posix/pause.c: Include <sigsetops.h>.
31882         * sysdeps/posix/system.c: Include <sigsetops.h>.
31883         * sysdeps/mach/hurd/i386/Makefile
31884         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31885         [$(subdir) = csu] (sysdep-only-routines): Likewise.
31886         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31887         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31888         __feraiseexcept_renamed to feraiseexcept instead of
31889         __GI_feraiseexcept.
31890         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31891         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31892         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31893         RWF_NOWAIT): Define to 0 if undefined already.
31894         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31895         boils down to 0.
31896         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31897         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31898
31899 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31900
31901         * manual/math.texi (pow10): Do not document.
31902         (pow10f): Likewise.
31903         (pow10l): Likewise.
31904         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31905         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31906         * math/libm-test-exp10.inc (pow10_test): Remove.
31907         (do_test): Do not call pow10.
31908         * math/w_exp10_compat.c (pow10): Make into compat symbol.
31909         [NO_LONG_DOUBLE] (pow10l): Likewise.
31910         * math/w_exp10f_compat.c (pow10f): Likewise.
31911         * math/w_exp10l_compat.c (pow10l): Likewise.
31912         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31913         (pow10): Make into compat symbol.
31914         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31915         (pow10f): Make into compat symbol.
31916         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31917         (pow10l): Make into compat symbol.
31918         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31919         pow10.
31920         (CFLAGS-nldbl-pow10.c): Remove variable..
31921         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31922         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31923         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31924         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31925         Undefine and redefine.
31926         (pow10l): Make into compat symbol.
31927         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31928         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31929         * sysdeps/arm/libm-test-ulps: Likewise.
31930         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31931         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31932         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31933         * sysdeps/microblaze/libm-test-ulps: Likewise.
31934         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31935         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31936         * sysdeps/nios2/libm-test-ulps: Likewise.
31937         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31938         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31939         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31940         * sysdeps/sh/libm-test-ulps: Likewise.
31941         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31942         * sysdeps/tile/libm-test-ulps: Likewise.
31943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31944
31945 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31946
31947         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31948
31949 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31950
31951         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31952         "../ChangeLog.old/ChangeLog.8".
31953         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31954         "../ChangeLog.old/ChangeLog.14".
31955
31956 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31957
31958         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31959         Threads Library.
31960
31961 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31962
31963         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31964
31965 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31966
31967         * csu/version.c (banner): Remove "by Roland McGrath et al.".
31968         * nptl/Banner: Remove "by Ulrich Drepper et al.".
31969
31970 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31971
31972         * stdlib/tst-atexit-common.c (do_test): Test support for at least
31973         32 atexit handlers.
31974
31975 2017-09-01  Zack Weinberg  <zackw@panix.com>
31976
31977         * math/math.h (HUGE_VAL): Improve commentary.
31978
31979 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31980             Andreas Schwab  <schwab@suse.de>
31981
31982         [BZ #21530]
31983         * include/stdio.h (__gen_tempfd): New function.
31984         * stdio-common/Makefile (routines): Add gentempfd.
31985         * stdio-common/gentempfd.c: New file.
31986         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31987         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31988         unnamed file first.
31989
31990 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31991
31992         [BZ #21915]
31993         [BZ #21922]
31994         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31995         result to determine success or failure, not the errno value.
31996         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31997         (tst-nss-files-hosts-erange): Link with -ldl.
31998         * nss/tst-nss-files-hosts-erange.c: New file.
31999         * nss/tst-resolv-basic.c (response): Handle nodata.example.
32000         (do_test): Add NO_DATA tests.
32001         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
32002         (do_test): Call it.
32003
32004 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32005
32006         [BZ #21922]
32007         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
32008         coming from gethostbyname2_r.
32009
32010 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32011
32012         * support/namespace.h (struct support_chroot_configuration): Add
32013         hosts, host_conf.
32014         (struct support_chroot): Add path_hosts, path_host_conf.
32015         * support/support_chroot.c (write_file): New function.
32016         (support_chroot_create): Call it to process /etc/resolv.conf,
32017         /etc/hosts, /etc/host.conf.
32018         (support_chroot_free): Update.
32019
32020 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32021
32022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
32023         status indicates it is set.
32024
32025 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32026
32027         [BZ #20532]
32028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
32029         function lookup failures more reliable.
32030
32031 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32032
32033         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
32034         (getcanonname): Likewise.
32035         (gaih_inet): Likewise.
32036
32037 2017-09-01  Florian Weimer  <fweimer@redhat.com>
32038
32039         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
32040         (getcanonname): Likewise.
32041         (gaih_inet): Likewise.
32042
32043 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
32044             Richard Henderson  <rth@twiddle.net>
32045
32046         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
32047         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
32048         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
32049         (IREG_SIZE, OREG_SIZE): New macros.
32050         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
32051         (IREG_SIZE, OREG_SIZE): New macros.
32052         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
32053         (IREG_SIZE): New macro.
32054         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
32055         (IREG_SIZE): New macro.
32056         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
32057         New includes.
32058         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
32059         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32060         (__CONCATX): Handle exceptions correctly on large values that may
32061         set FE_INVALID.
32062         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
32063         Initialize if not already set.
32064         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
32065
32066 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32067
32068         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
32069         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
32070         Likewise.
32071         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
32072         Likewise.
32073         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
32074         Likewise.
32075         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
32076         Likewise.
32077         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
32078         Likewise.
32079         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
32080         Likewise.
32081         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
32082         Likewise.
32083         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
32084         (NO_CANCELLATION): Likewise.
32085         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
32086         Likewise.
32087         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
32088         Likewise.
32089         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
32090         Likewise.
32091         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
32092         (NO_CANCELLATION): Likewise.
32093         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
32094         (NO_CANCELLATION): Likewise.
32095         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
32096         Likewise
32097         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
32098         Likewise.
32099         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
32100         Likewise.
32101         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
32102         Likewise.
32103         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
32104         hidden prototype.
32105         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
32106         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
32107
32108 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
32109
32110         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
32111         in resolver call.
32112
32113 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32114
32115         * include/libc-symbols.h (internal_function): Remove.
32116
32117 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32118
32119         * stdlib/fmtmsg.c (internal_addseverity): Remove
32120         internal_function.
32121
32122 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32123
32124         * stdio-common/printf_fp.c (group_number): Remove
32125         internal_function.
32126         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
32127
32128 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32129
32130         * posix/fnmatch.c (internal_function): Remove definition.
32131         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
32132         * posix/regcomp.c (peek_token, init_word_char)
32133         (duplicate_node_closure, fetch_token, peek_token)
32134         (peek_token_bracket, build_range_exp, build_collating_symbol):
32135         Likewise.
32136         * posix/regex_internal.c (re_string_construct_common)
32137         (create_ci_newstate, create_cd_newstate, re_string_allocate)
32138         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
32139         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
32140         (re_string_translate_buffer, re_string_reconstruct)
32141         (re_string_peek_byte_case, re_string_fetch_byte_case)
32142         (re_string_destruct, re_string_context_at, re_node_set_alloc)
32143         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
32144         (re_node_set_add_intersect, re_node_set_init_union)
32145         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
32146         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
32147         (re_dfa_add_node, calc_state_hash, re_acquire_state)
32148         (re_acquire_state_context): Likewise.
32149         * posix/regex_internal.h (internal_function): Remove definition.
32150         (re_string_realloc_buffers, build_wcs_buffer)
32151         (build_wcs_upper_buffer, build_upper_buffer)
32152         (re_string_translate_buffer, re_string_context_at)
32153         (re_string_char_size_at, re_string_wchar_at)
32154         (re_string_elem_size_at): Likewise.
32155         * posix/regexec.c (match_ctx_init, match_ctx_clean)
32156         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
32157         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
32158         (re_search_internal, re_search_2_stub, re_search_stub)
32159         (re_copy_regs, prune_impossible_nodes, check_matching)
32160         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
32161         (free_fail_stack_return, sift_states_iter_mb)
32162         (sift_states_backward, build_sifted_states)
32163         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
32164         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
32165         (check_subexp_limits, sift_states_bkref, merge_state_array)
32166         (find_recover_state, transit_state, merge_state_with_log)
32167         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
32168         (transit_state_mb, transit_state_bkref, get_subexp)
32169         (get_subexp_sub, find_subexp_node, check_arrival)
32170         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
32171         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
32172         (check_node_accept_bytes, find_collation_sequence_value)
32173         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
32174         (acquire_init_state_context, check_halt_node_context)
32175         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
32176         (sub_epsilon_src_nodes): Likewise.
32177         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
32178         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
32179         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
32180         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
32181         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
32182         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
32183         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
32184         * sysdeps/posix/ttyname.c (getttyname): Likewise.
32185         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
32186         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
32187         (PREADV): Likewise.
32188         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
32189         (PREADV): Likewise.
32190         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
32191         (PWRITEV): Likewise.
32192         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
32193         (PWRITEV): Likewise.
32194         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
32195         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
32196
32197 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32198
32199         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
32200         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
32201         Remove internal_function.
32202         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
32203         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
32204         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
32205         (__deallocate_stack, __libc_pthread_init)
32206         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
32207         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
32208         (__libc_disable_asynccancel, __librt_disable_asynccancel):
32209         Likewise.
32210         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
32211         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
32212         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
32213         Likewise.
32214         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
32215         (__pthread_mutex_unlock_usercnt): Likewise.
32216
32217 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32218
32219         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
32220         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
32221         (fts_safe_changedir): Remove internal_function.
32222         * io/ftw.c (internal_function): Remove definition.
32223         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
32224
32225 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32226
32227         * inet/deadline.c (__deadline_current_time)
32228         (__deadline_from_timeval, __deadline_to_ms): Remove
32229         internal_function.
32230         * inet/getnameinfo.c (nrl_domainname): Likewise.
32231         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
32232         * inet/inet6_option.c (add_pad): Likewise.
32233         * inet/net-internal.h (__deadline_current_time)
32234         (__deadline_from_timeval, __deadline_to_ms): Likewise.
32235         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
32236         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
32237         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
32238
32239 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
32240
32241         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
32242         include <bits/nan.h>.
32243         * math/Makefile (headers): Remove bits/nan.h.
32244         * bits/nan.h: Remove.
32245         * sysdeps/ieee754/bits/nan.h: Likewise.
32246         * sysdeps/mips/bits/nan.h: Likewise.
32247
32248         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
32249         not include <bits/inf.h>.
32250         * math/Makefile (headers): Remove bits/inf.h.
32251         * bits/inf.h: Remove.
32252         * sysdeps/ieee754/bits/inf.h: Likewise.
32253
32254         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
32255         bits/huge_vall.h or bits/huge_val_flt128.h.
32256         (HUGE_VAL): Define directly here.
32257         [__USE_ISOC99] (HUGE_VALF): Likewise.
32258         [__USE_ISOC99] (HUGE_VALL): Likewise.
32259         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32260         (HUGE_VAL_F128): Likewise.
32261         * math/Makefile (headers): Remove bits/huge_val.h,
32262         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
32263         * bits/huge_val.h: Remove.
32264         * bits/huge_val_flt128.h: Likewise.
32265         * bits/huge_valf.h: Likewise.
32266         * bits/huge_vall.h: Likewise.
32267         * sysdeps/ia64/bits/huge_vall.h: Likewise.
32268         * sysdeps/ieee754/bits/huge_val.h: Likewise.
32269         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
32270         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
32271         * sysdeps/sh/bits/huge_val.h: Likewise.
32272         * sysdeps/sparc/bits/huge_vall.h: Likewise.
32273         * sysdeps/x86/bits/huge_vall.h: Likewise.
32274
32275 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32276
32277         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
32278         internal_function.
32279         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
32280         Likewise.
32281         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
32282         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
32283         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
32284         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
32285         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32286         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
32287         * elf/dl-libc.c (dlerror_run): Likewise.
32288         * elf/dl-load.c (add_name_to_object, decompose_rpath)
32289         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
32290         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
32291         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
32292         Likewise.
32293         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
32294         (_dl_higher_prime_number, _dl_strtoul): Likewise.
32295         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
32296         * elf/dl-profile.c (_dl_start_profile): Likewise.
32297         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
32298         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
32299         Likewise.
32300         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32301         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32302         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32303         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32304         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32305         (_dl_allocate_tls_storage): Likewise.
32306         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32307         (_dl_check_all_versions): Likewise.
32308         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32309         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32310         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32311         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32312         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32313         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32314         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32315         internal_function from __dl_start.
32316         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32317         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32318         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32319         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32320         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32321         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32322         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32323         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32324         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32325         (_dl_next_ld_env_entry, _dl_important_hwcaps)
32326         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32327         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32328         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32329         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32330         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32331         Likewise.
32332         (struct rtld_global_ro): Remove internal_function from the
32333         _dl_lookup_symbol_x member.
32334         (_dl_symbol_value): Remove.  No longer defined anywhere.
32335         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32336         internal_function.
32337         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32338         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32339         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32340         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32341         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32342         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32343         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32344         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32345         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32346         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32347         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32348         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32349
32350 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32351
32352         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32353         Remove internal_function.
32354         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32355         Likewise.
32356         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32357         Likewise.
32358
32359 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32360
32361         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32362         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32363         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32364
32365 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32366
32367         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32368         (__gai_enqueue_request): Remove internal_function.
32369         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32370         (__gai_remove_request, __gai_notify, __gai_notify_only)
32371         (__gai_sigqueue): Likewise.
32372         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32373         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32374         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32375         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32376         Likewise.
32377
32378 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32379
32380         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32381         * include/dirent.h (__opendirat, __getdents, __getdents64)
32382         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32383         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32384         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32385         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32386         Likewise.
32387         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32388
32389 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32390
32391         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32392         internal_function.
32393         (GETCWD_RETURN_TYPE): Likewise.
32394
32395 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32396
32397         * include/time.h (__tz_compute, __strptime_internal): Remove
32398         internal_function.
32399         * time/strptime_l.c (__strptime_internal): Likewise.
32400         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32401
32402 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32403
32404         * iconv/gconv.c (__gconv): Remove internal_function.
32405         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32406         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32407         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32408         (__gconv_release_cache): Likewise.
32409         * iconv/gconv_close.c (__gconv_close): Likewise.
32410         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32411         (read_conf_file, __gconv_get_path): Likewise.
32412         * iconv/gconv_db.c (derivation_lookup, add_derivation)
32413         (__gconv_release_step, gen_steps, increment_counter)
32414         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32415         (__gconv_close_transform, free_modules_db): Likewise.
32416         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32417         Likewise.
32418         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32419         (__gconv_find_transform, __gconv_lookup_cache)
32420         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32421         (__gconv_close_transform, __gconv_release_cache)
32422         (__gconv_loaded_object, __gconv_release_shlib)
32423         (__gconv_compare_alias): Likewise.
32424         * iconv/gconv_open.c (__gconv_open): Likewise.
32425         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32426         * iconv/iconvconfig.c (add_module): Likewise.
32427         * intl/dcigettext.c (plural_lookup, guess_category_value)
32428         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32429         * intl/eval-plural.h (plural_eval): Likewise.
32430         * intl/finddomain.c (_nl_find_domain): Likewise.
32431         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32432         (_nl_load_domain, _nl_find_msg): Likewise.
32433         (internal_function): Remove definition.
32434         * intl/loadinfo.h (internal_function): Likewise.
32435         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32436         internal_function.
32437         * intl/localealias.c (internal_function): Remove definition.
32438         (read_alias_file): Remove internal_function.
32439         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32440         * intl/plural-exp.h (internal_function): Remove definition.
32441         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32442         internal_function.
32443         * intl/plural.c: Regenerate.
32444         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32445         * locale/coll-lookup.c (__collidx_table_lookup)
32446         (__collseq_table_lookup): Likewise.
32447         * locale/coll-lookup.h (__collidx_table_lookup)
32448         (__collseq_table_lookup): Likewise.
32449         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32450         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32451         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32452         (_nl_unload_locale): Likewise.
32453         * locale/localeinfo.h (struct __locale_data): Remove
32454         internal_function from cleanup member.
32455         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32456         (_nl_remove_locale, _nl_load_locale_from_archive)
32457         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32458         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32459         (_nl_cleanup_time): Remove internal_function.
32460         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32461         (_nl_parse_alt_digit): Likewise.
32462         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32463         (_nl_select_era_entry): Likewise.
32464         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32465         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32466         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32467         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32468         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32469
32470 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32471
32472         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32473         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32474         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32475         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32476         Likewise.
32477         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32478         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32479         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32480         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32481         Likewise.
32482         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32483
32484 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32485
32486         * misc/getttyent.c (skip, value): Remove internal_function.
32487         * misc/syslog.c (openlog_internal): Likewise.
32488         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32489
32490 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32491
32492         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32493         (__nss_rewrite_field): Remove internal_function.
32494         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32495         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32496         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32497         * nss/nsswitch.c (nss_parse_file, nss_getline)
32498         (nss_parse_service_list, nss_new_service): Likewise.
32499         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32500         * nss/valid_field.c (__nss_valid_field): Likewise.
32501         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32502
32503 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32504
32505         * malloc/arena.c (__malloc_fork_lock_parent)
32506         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32507         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32508         internal_function from defintions.
32509         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32510         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32511         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32512         internal_function from declarations.
32513         * malloc/malloc.c (internal_function): Do not define.
32514         (mem2mem_check): Remove internal_function from declaration.
32515         (munmap_chunk, mremap_chunk): Remove internal_function.
32516         * malloc/mtrace.c (tr_where): Likewise.
32517
32518 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32519
32520         * include/rpc/pmap_clnt.h (__get_socket): Remove
32521         internal_function.
32522         * sunrpc/auth_des.c (synchronize): Likewise.
32523         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32524         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32525         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32526         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32527         (key_call): Likewise.
32528         * sunrpc/pm_getport.c (__get_socket): Likewise.
32529         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32530         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32531         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32532         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32533         (invalidate): Likewise.
32534         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32535         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32536         (set_input_fragment, get_input_bytes): Likewise.
32537
32538 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32539
32540         * malloc/malloc.c (_int_free): Remove locked variable and related
32541         asserts.
32542
32543 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
32544
32545         [BZ #22051]
32546         * Makerules (build-module-helper-objlist): Filter out
32547         $(elf-objpfx)sofini.os.
32548         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32549         needed.
32550
32551 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32552
32553         * libio/fcloseall.c: Assume weak_alias is defined.
32554         * libio/feof.c: Likewise.
32555         * libio/fileno.c: Likewise.
32556         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32557         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32558         definitions.
32559         (_IO_file_open): Call __open directly.
32560         (_IO_new_file_sync): Assume ESPIPE is defined.
32561         (_IO_file_seekoff_maybe_mmap): Call __read directly.
32562         (_IO_new_file_write): Call __write directly.
32563         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32564         * libio/ftello64.c (__ftello64): Assume EIO is defined.
32565         * libio/genops.c: Assume _LIBC is defined.
32566         (save_for_backup): Remove internal_function.
32567         * libio/getc.c: Assume weak_alias is defined.
32568         * libio/getwc.c: Likewise.
32569         * libio/iofclose.c: Assume _LIBC is defined.
32570         * libio/iofdopen.c: Likewise.
32571         (_IO_fcntl): Remove macro definition.
32572         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32573         Call __fcntl directly.
32574         * libio/iofflush.c: Assume weak_alias is defined.
32575         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32576         defined.
32577         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32578         * libio/iofgets.c: Likewise.
32579         * libio/iofopen.c: Assume _LIBC is defined.
32580         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32581         * libio/iofputs.c: Assume weak_alias is defined.
32582         * libio/iofread.c: Likewise.
32583         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32584         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32585         * libio/ioftell.c: Assume weak_alias is defined.
32586         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32587         * libio/iofwide.c: Assume _LIBC is defined.
32588         (_IO_fwide): Drop SHARED conditional because it is implied by
32589         SHLIB_COMPAT.
32590         * libio/iofwrite.c: Assume weak_alias is defined.
32591         * libio/iogetdelim.c: Likewise.
32592         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32593         * libio/iogetwline.c (wmemcpy): Remove macro definition.
32594         (_IO_getwline): Call __wmemcpy directly.
32595         * libio/iopopen.c: Assume _LIBC is defined.
32596         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32597         (_IO_close): Remove macro definitions.
32598         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32599         _exit directly.
32600         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32601         directly.
32602         * libio/ioputs.c: Assume weak_alias is defined.
32603         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32604         * libio/iosetbuffer.c: Assume weak_alias is defined.
32605         * libio/iosetvbuf.c: Likewise.
32606         * libio/ioungetc.c: Likewise.
32607         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32608         libc_hidden_def, libc_hidden_weak, NULL are defined.
32609         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32610         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32611         defined.
32612         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32613         definitions.
32614         (_IO_old_file_init_internal): Drop SHARED conditional because it
32615         is implied by SHLIB_COMPAT.
32616         (_IO_old_file_fopen): Call __open directly.
32617         (_IO_old_file_sync): Assume ESPIPE is defined.
32618         (_IO_old_file_write): Call __write directly.
32619         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32620         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32621         Call __fcntl directly.
32622         * libio/oldiofgetpos.c: Assume weak_alias is defined.
32623         (_IO_old_fgetpos): Assume EIO is defined.
32624         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32625         (_IO_old_fgetpos64): Assume EIO is defined.
32626         * libio/oldiofsetpos.c: Assume weak_alias is defined.
32627         (_IO_old_fsetpos): Assume EIO is defined.
32628         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32629         (_IO_old_fsetpos64): Assume EIO is defined.
32630         * libio/oldiopopen.c:  Assume _LIBC is defined.
32631         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32632         (_IO_close): Remove macro definitions.
32633         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32634         directly.
32635         (_IO_old_proc_close): Call __close, __waitpid directly.
32636         * libio/put.c: Assume weak_alias is defined.
32637         * libio/stdfiles.c: Assume _LIBC is defined.
32638         * libio/stdio.c: Likewise.
32639         * libio/wfileops.c: Likewise.
32640         (_IO_wfile_sync): Assume ESPIPE is defined.
32641         * libio/wgenops.c: Assume _LIBC is defined.
32642         (save_for_wbackup): Remove internal_function.
32643
32644 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32645
32646         * malloc/malloc.c (top_check): Change return type to void.  Remove
32647         internal_function.
32648         * malloc/hooks.c (top_check): Likewise.
32649         (malloc_check, realloc_check, memalign_check): Adjust.
32650
32651 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
32652
32653         [BZ #21457]
32654         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32655         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32656         sigcontext and namespace requirements.
32657         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32658         * sysdeps/m68k/sys/ucontext.h: Likewise.
32659         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
32660         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32661         <bits/sigcontext.h>.
32662         (__ctx): Define earlier.
32663         (mcontext_t): Define structure contents rather than using struct
32664         sigcontext.
32665         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32666         __glibc_reserved1 instead of __reserved.
32667         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32668         <bits/sigcontext.h>.
32669         (__ctx): Define earlier.
32670         (mcontext_t): Define structure contents rather than using struct
32671         sigcontext.
32672         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32673         mcontext_t instead of struct sigcontext.
32674         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32675         <bits/sigcontext.h>.
32676         (__ctx): Define earlier.
32677         (mcontext_t): Define structure contents rather than using struct
32678         sigcontext.
32679         * sysdeps/unix/sysv/linux/hppa/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/ia64/makecontext.c (__makecontext): Use
32685         mcontext_t instead of struct sigcontext.
32686         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32687         mcontext_t instead of struct sigcontext.
32688         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32689         <bits/sigcontext.h>.
32690         (__ctx): New macro.
32691         (struct __ia64_fpreg_mcontext): New type.
32692         (mcontext_t): Define structure contents rather than using struct
32693         sigcontext.
32694         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32695         (uc_sigmask): Define using __ctx.
32696         (uc_stack): Likewise.
32697         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32698         <bits/sigcontext.h>.
32699         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32700         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32701         <bits/sigcontext.h>.
32702         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32703         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32704         <bits/sigcontext.h>.
32705         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32706         <bits/sigcontext.h>.
32707         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32708         <bits/sigcontext.h>.
32709         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32710         <bits/sigcontext.h>.
32711         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32712         <bits/sigcontext.h>.
32713         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32714         <bits/sigcontext.h>.
32715         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32716         <bits/sigcontext.h>.
32717         (__ctx): Define earlier.
32718         (mcontext_t): Define structure contents rather than using struct
32719         sigcontext.
32720         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32721         <bits/sigcontext.h>.  Include <bits/types.h>.
32722         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32723         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32724         (test-xfail-XPG42/ucontext.h/conform): Likewise.
32725         (test-xfail-UNIX98/signal.h/conform): Likewise.
32726         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32727         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32728         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32729         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32730         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32731         (test-xfail-POSIX2008/signal.h/conform): Likewise.
32732         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32733         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32734         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32735
32736 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32737
32738         * malloc/dynarray_emplace_enlarge.c
32739         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32740         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32741         * malloc/tst-dynarray.c (test_long_overflow): New function.
32742         (do_test): Call it.
32743
32744 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32745
32746         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32747         (set_arena_corrupt): Remove definitions.
32748         (mtrim): Do not check for corrupt arena.
32749         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32750         Likewise.
32751
32752 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32753
32754         [BZ #21754]
32755         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32756         check_action.
32757         (ptmalloc_init): Do not set or use check_action.
32758         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32759         call to malloc_printerr.  Remove return statement.
32760         (free_check): Likewise.  Remove arena unlock.
32761         (top_check): Update comment.  Adjust call to malloc_printerr.
32762         Remove heap repair code.
32763         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32764         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32765         (sysmalloc): Adjust call to malloc_printerr.
32766         (munmap_chunk, __libc_realloc): Likewise.  Remove return
32767         statement.
32768         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
32769         Remove errout label and corresponding gotos.
32770         (_int_free): Likewise.  Remove arena unlock.
32771         (do_set_mallopt_check): Do not set check_action.
32772         (malloc_printerr): Adjust parameter list.  Do not mark arena as
32773         corrupt.
32774         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32775         comment.
32776         * manual/probes.texi (Memory Allocation Probes): Remove
32777         memory_mallopt_check_action.
32778
32779 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
32780
32781         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32782         Use pointer to uint64_t instead of long int for sp.
32783
32784 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32785
32786         [BZ #21754]
32787         * malloc/malloc.c (malloc_printerr): Always terminate the process,
32788         without printing a backtrace.  Do not leak any information in the
32789         error message.
32790         * manual/memory.texi (Heap Consistency Checking): Update.
32791         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32792
32793 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32794
32795         Do not scale NPTL tests with available number of CPUs.
32796         * nptl/tst-cond16.c (count): Set to constant value of 8.
32797         * nptl/tst-cond18.c (count): Likewise.
32798
32799 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32800
32801         [BZ #22035]
32802         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32803         Define to take a second argument that is a macro that
32804         concatentates a suffix, not the suffix itself.
32805         (__CONCAT_d): New macro.
32806         (__CONCAT_f): Likewise.
32807         (__CONCAT_l): Likewise.
32808
32809 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
32810
32811         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32812         by child.
32813
32814 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32815             Aurelien Jarno  <aurelien@aurel32.net>
32816             Maciej W. Rozycki  <macro@imgtec.com>
32817
32818         [BZ #21956]
32819         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32820         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32821         `mips16-syscall6' and `mips16-syscall7'.
32822         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32823         (CFLAGS-mips16-syscall7.c): Remove.
32824         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32825         Remove `__mips16_syscall5', `__mips16_syscall6' and
32826         `__mips16_syscall7'.
32827         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32828         (__mips16_syscall0): Rename `__mips16_syscall_return' to
32829         `__mips_syscall_return'.
32830         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32831         (__mips16_syscall1): Likewise.
32832         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32833         (__mips16_syscall2): Likewise.
32834         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32835         (__mips16_syscall3): Likewise.
32836         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32837         (__mips16_syscall4): Likewise.
32838         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32839         Remove.
32840         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32841         Remove.
32842         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32843         Remove.
32844         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32845         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32846         `__mips16_syscall5'.  Remove prototype.
32847         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32848         `__mips16_syscall6'.  Remove prototype.
32849         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32850         `__mips16_syscall7'.  Remove prototype.
32851         (__nomips16, __mips16_syscall_return): Move to...
32852         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32853         (__nomips16, __mips_syscall_return): ... here.
32854         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32855         `__mips16_syscall_return' to `__mips_syscall_return'.
32856         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32857         `internal_syscall##nr'.
32858         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32859         `internal_syscall##nr'.
32860         (FORCE_FRAME_POINTER): Remove.
32861         (__mips_syscall5): New prototype.
32862         (internal_syscall5): Rewrite to call `__mips_syscall5'.
32863         (__mips_syscall6): New prototype.
32864         (internal_syscall6): Rewrite to call `__mips_syscall6'.
32865         (__mips_syscall7): New prototype.
32866         (internal_syscall7): Rewrite to call `__mips_syscall7'.
32867         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32868         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32869         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32870         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32871         (sysdep_routines): Add libc-do-syscall.
32872         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32873         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32874
32875 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32876
32877         [BZ #21672]
32878         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32879         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32880         (advise_stack_range): New function.
32881         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32882         stack non required to advise_stack_range at allocatestack.c
32883
32884 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32885
32886         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32887
32888 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32889
32890         [BZ #22026]
32891         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32892         __end_fct.  Mangle __end_fct after setting it to NULL.
32893         * iconv/Makefile (tests): Add tst-gconv-init-failure.
32894         (modules-names, modules-names-tests): Add
32895         tst-gconv-init-failure-mod.
32896         (gconv-modules): New target.
32897         (tst-gconv-init-failure-mod.so): Link against libsupport.
32898         (tst-gconv-init-failure): Depend on gconv-modules,
32899         tst-gconv-init-failure-mod.so.
32900         * iconv/tst-gconv-init-failure-mod.c: New file.
32901         * iconv/tst-gconv-init-failure.c: Likewise.
32902         * iconv/test-gconv-modules: Likewise.
32903
32904 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32905
32906         [BZ #22025]
32907         * iconv/gconv_db.c (free_derivation): Remove redundant
32908         parentheses.
32909         (gen_steps): Unconditionally mangle __btowc_fct after
32910         initialization.
32911         (increment_counter): Likewise.  Do not call init_fct for internal
32912         modules.
32913
32914 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32915
32916         [BZ #22028]
32917         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32918         (_MSUF_): Remove macro.
32919         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32920         Likewise.
32921         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32922         (__REDIRFROM_X): New macro.
32923         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32924         Likewise.
32925         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32926         (__REDIRTO_X): Likewise.
32927         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32928         arguments.
32929         (__MATH_REDIRCALL_2): Likewise.
32930         (__MATH_REDIRCALL_INTERNAL): Likewise.
32931         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32932         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32933         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32934         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32935         * math/test-finite-macros.c: New file.
32936         * math/Makefile (tests): Add test-finite-macros.
32937         (CFLAGS-test-finite-macros.c): New variable.
32938
32939 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
32940             Jeff Law  <law@redhat.com>
32941
32942         [BZ #22025]
32943         Mangle NULL pointers in iconv/gconv.
32944         * iconv/gconv_cache.c (find_module): Demangle init_fct before
32945         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32946         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32947         is non-NULL before demangling the end_fct.  Check for NULL
32948         end_fct after demangling.
32949         (__gconv_release_step): Demangle the end_fct before checking
32950         it for NULL.   Remove assert on __shlibc_handle != NULL.
32951         (gen_steps): Don't check btowc_fct for NULL before mangling.
32952         Demangle init_fct before checking for NULL.
32953         (increment_counter): Likewise.
32954         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32955         end_fct for NULL before mangling.
32956         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32957         for NULL.
32958
32959 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
32960
32961         [BZ #21971]
32962         * locale/iso-639.def: add Morisyen.
32963
32964 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32965
32966         [BZ #21930]
32967         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32968         (iszero): New C++ implementation that does not use
32969         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32970         signaling nans are enabled, since __builtin_types_compatible_p
32971         is a C-only feature.
32972         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32973         defined, include ieee754_float128.h for access to the union and
32974         member ieee854_float128.ieee.
32975         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32976         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32977         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32978         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32979         options of test-math-zero on powerpc64le.
32980
32981 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
32982
32983         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32984         Change double to float.
32985
32986 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
32987
32988         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32989         unconditional.
32990         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32991         conditional code; define contents only for [LIBM_SVID_COMPAT].
32992
32993 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32994
32995         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32996         (abi-lp64_be-options): Remove.
32997         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32998         (abi-hard-options): Likewise.
32999         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
33000         (abi-o32_hard-options, abi-o32_soft_2008-options)
33001         (abi-o32_hard_2008-options, abi-n32_soft-options)
33002         (abi-n32_hard-options, abi-n32_soft_2008-options)
33003         (abi-n32_hard_2008-options, abi-n64_soft-options)
33004         (abi-n64_hard-options, abi-n64_soft_2008-options)
33005         (abi-n64_hard_2008-options): Likewise.
33006         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
33007         (abi-64-v1-options, abi-64-v2-options): Likewise.
33008         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
33009         (abi-64-options): Likewise.
33010         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
33011         (abi-64-options): Likewise.
33012         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
33013         (abi-64-options): Likewise.
33014         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
33015         (abi-64-options, abi-x32-options): Likewise.
33016
33017 2017-08-28  Florian Weimer  <fweimer@redhat.com>
33018
33019         Store supported list of SYS_* system calls in the source tree.
33020         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
33021         (bits/syscall.h): Generate from list file.
33022         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
33023         [$(subdir) = misc] (tests): Add tst-syscall-list.
33024         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
33025         [$(subdir) = misc] (tst-syscall-list-macros.list)
33026         [$(subdir) = misc] (tst-syscall-list-nr.list)
33027         (tst-syscall-list-sys.list): Helper targets for new
33028         tst-syscall-list test.
33029         [$(subdir) = misc] (tst-syscall-list.out): Run test script
33030         tst-syscall-list.sh.
33031         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
33032         target. Do not include bits/syscall.d.
33033         [$(subdir) = misc] (generated): Do not update.
33034         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
33035         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
33036         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
33037         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
33038
33039 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
33040
33041         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
33042         (tst-cxa_atexit, tst-on_exit): Likewise.
33043         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
33044         tst-cxa_atexit, and tst-on_exit.
33045         * stdlib/tst-atexit-common.c: New file.
33046         * stdlib/tst-atexit.c: New file.
33047         * stdlib/tst-at_quick_exit.c: New file.
33048         * stdlib/tst-cxa_atexit.c: New file.
33049         * stdlib/tst-on_exit.c: New file.
33050
33051 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33052
33053         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
33054         * mach/stack_chk_fail_local.c: New file.
33055         * hurd/stack_chk_fail_local.c: New file.
33056         * mach/Machrules ($(interface-library)-routines): Add
33057         stack_chk_fail_local.
33058         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
33059         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
33060         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
33061         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
33062         * hurd/Makefile (CFLAGS-hurdstartup.o,
33063         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
33064
33065 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33066
33067         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
33068         (index_cpu_*, index_arch_*): Removed.
33069
33070 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33071
33072         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
33073         Use uint64_t instead of unsigned long.
33074
33075 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
33076
33077         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
33078         [__HAVE_DISTINCT_FLOAT128].
33079
33080         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
33081         of <bits/math-finite.h>.
33082         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
33083         inclusion of <bits/math-finite.h>.
33084         * math/bits/math-finite.h (__REDIRTO_X): Do not define
33085         conditionally on [__MATH_DECLARING_LDOUBLE && defined
33086         __NO_LONG_DOUBLE_MATH].
33087         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
33088         (__MATH_REDIRCALL_2): Likewise.
33089         (__MATH_REDIRCALL_INTERNAL): Likewise.
33090         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
33091         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
33092         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
33093
33094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
33095         Remove file.
33096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
33097         Likewise.
33098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
33099         Likewise.
33100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
33101         Likewise.
33102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
33103         Likewise.
33104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
33105         Likewise.
33106         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33107         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33108         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33109         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
33111         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
33112         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
33113         w_sqrtf_compat-ppc32.
33114
33115 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33116
33117         * math/math.h [defined __cplusplus] (issignaling): In the long
33118         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
33119         is not defined.  Call __issignaling, otherwise.
33120
33121 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33122
33123         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
33124         syscall definitions and replace __builtin_expect with __glibc_likely.
33125         * sysdeps/unix/syscall-template.S: Update comment about cancellable
33126         syscall.
33127         (SYSCALL_CANCELLABLE): Removedefinition
33128         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
33129         definition.
33130         (PSEUDO_END): Likewise.
33131         [IS_IN (libpthread)] (CENABLE): Likewise.
33132         [IS_IN (libpthread)] (CDISABLE): Likewise.
33133         [IS_IN (libc)] (CENABLE): Likewise.
33134         [IS_IN (libc)] (CENABLE): Likewise.
33135         [IS_IN (librt)] (CDISABLE): Likewise.
33136         [IS_IN (librt)] (CDISABLE): Likewise.
33137         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33138         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
33139         definition.
33140         (PSEUDO_END): Likewise.
33141         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
33142         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
33143         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33144         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
33145         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33146         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
33147         (CENABLE): Likewise.
33148         (CDISABLE): Likewise.
33149         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33150         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
33151         defintion.
33152         (PSEUDO_END): Likewise.
33153         [IS_IN (libpthread)] (CENABLE): Likewise.
33154         [IS_IN (libpthread)] (CDISABLE): Likewise.
33155         [IS_IN (libc)] (CENABLE): Likewise.
33156         [IS_IN (libc)] (CENABLE): Likewise.
33157         [IS_IN (librt)] (CDISABLE): Likewise.
33158         [IS_IN (librt)] (CDISABLE): Likewise.
33159         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33160         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
33161         definition.
33162         (PSEUDO_END): Likewise.
33163         [IS_IN (libpthread)] (CENABLE): Likewise.
33164         [IS_IN (libpthread)] (CDISABLE): Likewise.
33165         [IS_IN (libc)] (CENABLE): Likewise.
33166         [IS_IN (libc)] (CENABLE): Likewise.
33167         [IS_IN (librt)] (CDISABLE): Likewise.
33168         [IS_IN (librt)] (CDISABLE): Likewise.
33169         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33170         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
33171         definition.
33172         (PSEUDO_END): Likewise.
33173         [IS_IN (libpthread)] (CENABLE): Likewise.
33174         [IS_IN (libpthread)] (CDISABLE): Likewise.
33175         [IS_IN (libc)] (CENABLE): Likewise.
33176         [IS_IN (libc)] (CENABLE): Likewise.
33177         [IS_IN (librt)] (CDISABLE): Likewise.
33178         [IS_IN (librt)] (CDISABLE): Likewise.
33179         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33180         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
33181         definition.
33182         (PSEUDO_END): Likewise.
33183         [IS_IN (libpthread)] (CENABLE): Likewise.
33184         [IS_IN (libpthread)] (CDISABLE): Likewise.
33185         [IS_IN (libc)] (CENABLE): Likewise.
33186         [IS_IN (libc)] (CENABLE): Likewise.
33187         [IS_IN (librt)] (CDISABLE): Likewise.
33188         [IS_IN (librt)] (CDISABLE): Likewise.
33189         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33190         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
33191         definition.
33192         (PSEUDO_END): Likewise.
33193         [IS_IN (libpthread)] (CENABLE): Likewise.
33194         [IS_IN (libpthread)] (CDISABLE): Likewise.
33195         [IS_IN (libc)] (CENABLE): Likewise.
33196         [IS_IN (libc)] (CENABLE): Likewise.
33197         [IS_IN (librt)] (CDISABLE): Likewise.
33198         [IS_IN (librt)] (CDISABLE): Likewise.
33199         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33200         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
33201         definition.
33202         (PSEUDO_END): Likewise.
33203         [IS_IN (libpthread)] (CENABLE): Likewise.
33204         [IS_IN (libpthread)] (CDISABLE): Likewise.
33205         [IS_IN (libc)] (CENABLE): Likewise.
33206         [IS_IN (libc)] (CENABLE): Likewise.
33207         [IS_IN (librt)] (CDISABLE): Likewise.
33208         [IS_IN (librt)] (CDISABLE): Likewise.
33209         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33210         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
33211         Remove definition.
33212         (PSEUDO_END): Likewise.
33213         [IS_IN (libpthread)] (CENABLE): Likewise.
33214         [IS_IN (libpthread)] (CDISABLE): Likewise.
33215         [IS_IN (libc)] (CENABLE): Likewise.
33216         [IS_IN (libc)] (CENABLE): Likewise.
33217         [IS_IN (librt)] (CDISABLE): Likewise.
33218         [IS_IN (librt)] (CDISABLE): Likewise.
33219         (SINGLE_THREAD_P): Likewise.
33220         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
33221         definition.
33222         (PSEUDO_END): Likewise.
33223         [IS_IN (libpthread)] (CENABLE): Likewise.
33224         [IS_IN (libpthread)] (CDISABLE): Likewise.
33225         [IS_IN (libc)] (CENABLE): Likewise.
33226         [IS_IN (libc)] (CENABLE): Likewise.
33227         [IS_IN (librt)] (CDISABLE): Likewise.
33228         [IS_IN (librt)] (CDISABLE): Likewise.
33229         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33230         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
33231         definition.
33232         (PSEUDO_END): Likewise.
33233         [IS_IN (libpthread)] (CENABLE): Likewise.
33234         [IS_IN (libpthread)] (CDISABLE): Likewise.
33235         [IS_IN (libc)] (CENABLE): Likewise.
33236         [IS_IN (libc)] (CENABLE): Likewise.
33237         [IS_IN (librt)] (CDISABLE): Likewise.
33238         [IS_IN (librt)] (CDISABLE): Likewise.
33239         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33240         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
33241         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
33242         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
33243         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
33244         definition.
33245         (PSEUDO_END): Likewise.
33246         [IS_IN (libpthread)] (CENABLE): Likewise.
33247         [IS_IN (libpthread)] (CDISABLE): Likewise.
33248         [IS_IN (libc)] (CENABLE): Likewise.
33249         [IS_IN (libc)] (CENABLE): Likewise.
33250         [IS_IN (librt)] (CDISABLE): Likewise.
33251         [IS_IN (librt)] (CDISABLE): Likewise.
33252         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33253         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
33254         definition.
33255         (PSEUDO_END): Likewise.
33256         [IS_IN (libpthread)] (CENABLE): Likewise.
33257         [IS_IN (libpthread)] (CDISABLE): Likewise.
33258         [IS_IN (libc)] (CENABLE): Likewise.
33259         [IS_IN (libc)] (CENABLE): Likewise.
33260         [IS_IN (librt)] (CDISABLE): Likewise.
33261         [IS_IN (librt)] (CDISABLE): Likewise.
33262         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33263         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
33264         definition.
33265         (PSEUDO_END): Likewise.
33266         [IS_IN (libpthread)] (CENABLE): Likewise.
33267         [IS_IN (libpthread)] (CDISABLE): Likewise.
33268         [IS_IN (libc)] (CENABLE): Likewise.
33269         [IS_IN (libc)] (CENABLE): Likewise.
33270         [IS_IN (librt)] (CDISABLE): Likewise.
33271         [IS_IN (librt)] (CDISABLE): Likewise.
33272         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33273         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
33274         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
33275         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
33276         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
33277         definition.
33278         (PSEUDO_END): Likewise.
33279         [IS_IN (libpthread)] (CENABLE): Likewise.
33280         [IS_IN (libpthread)] (CDISABLE): Likewise.
33281         [IS_IN (libc)] (CENABLE): Likewise.
33282         [IS_IN (libc)] (CENABLE): Likewise.
33283         [IS_IN (librt)] (CDISABLE): Likewise.
33284         [IS_IN (librt)] (CDISABLE): Likewise.
33285         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33286         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
33287         definition.
33288         (PSEUDO_END): Likewise.
33289         [IS_IN (libpthread)] (CENABLE): Likewise.
33290         [IS_IN (libpthread)] (CDISABLE): Likewise.
33291         [IS_IN (libc)] (CENABLE): Likewise.
33292         [IS_IN (libc)] (CENABLE): Likewise.
33293         [IS_IN (librt)] (CDISABLE): Likewise.
33294         [IS_IN (librt)] (CDISABLE): Likewise.
33295         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33296
33297 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33298
33299         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33300
33301 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33302
33303         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33304
33305 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33306
33307         [BZ #21982]
33308         * string/stratcliff.c (do_test): Declare size, nchars, inner,
33309         middle and outer with size_t instead of int.  Repleace %d and
33310         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
33311         "MAX (outer, nchars - 64)" to support unsigned outer and
33312         nchars.  Also exit loop when outer == 0.
33313
33314 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33315
33316         * include/fcntl.h (__fcntl_nocancel): Remove definition.
33317         * include/signal.h (__sigsuspend_nocancel): Likewise.
33318         * include/time.h (__nanosleep_nocancel): Likewise.
33319         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33320         * login/utmp_file.c: Include non cancellable syscall header.
33321         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33322         prototype.
33323
33324 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33325
33326         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33327         .byte sequences with AVX512F instructions.
33328         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33329         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33330         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33331         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33332         Likewise.
33333         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33334         Likewise.
33335
33336 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33337             Steve Ellcey  <sellcey@cavium.com>
33338
33339         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33340         Use PTR_REG macro in cmp instruction.
33341
33342 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33343
33344         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33345         Change the return type of the ifunc resolver to match the return
33346         type of the target function.
33347
33348 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33349
33350         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33351         (preadv64): Likewise.
33352         (pwrite64(: Likewise.
33353         (pwritev64): Likewise.
33354
33355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33356         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33357         (LOAD_ARGS_0): Likewise.
33358         (LOAD_ARGS_1): Likewise.
33359         (LOAD_ARGS_2): Likewise.
33360         (LOAD_ARGS_3): Likewise.
33361         (LOAD_ARGS_4): Likewise.
33362         (LOAD_ARGS_5): Likewise.
33363         (LOAD_ARGS_6): Likewise.
33364         (LOAD_REGS_0): Likewise.
33365         (LOAD_REGS_1): Likewise.
33366         (LOAD_REGS_2): Likewise.
33367         (LOAD_REGS_3): Likewise.
33368         (LOAD_REGS_4): Likewise.
33369         (LOAD_REGS_5): Likewise.
33370         (LOAD_REGS_6): Likewise.
33371         (ASM_ARGS_0): Likewise.
33372         (ASM_ARGS_1): Likewise.
33373         (ASM_ARGS_2): Likewise.
33374         (ASM_ARGS_3): Likewise.
33375         (ASM_ARGS_4): Likewise.
33376         (ASM_ARGS_5): Likewise.
33377         (ASM_ARGS_6): Likewise.
33378         (LOAD_ARGS_TYPES_1): Likewise.
33379         (LOAD_ARGS_TYPES_2): Likewise.
33380         (LOAD_ARGS_TYPES_3): Likewise.
33381         (LOAD_ARGS_TYPES_4): Likewise.
33382         (LOAD_ARGS_TYPES_5): Likewise.
33383         (LOAD_ARGS_TYPES_6): Likewise.
33384         (LOAD_REGS_TYPES_1): Likewise.
33385         (LOAD_REGS_TYPES_2): Likewise.
33386         (LOAD_REGS_TYPES_3): Likewise.
33387         (LOAD_REGS_TYPES_4): Likewise.
33388         (LOAD_REGS_TYPES_5): Likewise.
33389         (LOAD_REGS_TYPES_6): Likewise.
33390         (TYPEFY): New define.
33391         (ARGIFY): Likewise.
33392         (internal_syscall0): Likewise.
33393         (internal_syscall1): Likewise.
33394         (internal_syscall2): Likewise.
33395         (internal_syscall3): Likewise.
33396         (internal_syscall4): Likewise.
33397         (internal_syscall5): Likewise.
33398         (internal_syscall6): Likewise.
33399         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33400         (INTERNAL_SYSCALL_NCS): Remove define.
33401         (internal_syscall1): Add define.
33402
33403 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33404
33405         * math/w_remainder_compat.c: Remove duplicate inclusion of
33406         math-svid-compat.h.
33407         * math/w_remainderf_compat.c: Likewise.
33408         * math/w_remainderl_compat.c: Likewise.
33409
33410 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33411
33412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33413
33414 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33415
33416         [BZ #21684]
33417         * math/tgmath.h (__floating_type): Simplify definitions.
33418         (__real_integer_type): New macro.
33419         (__complex_integer_type): Likewise.
33420         (__expr_is_real): Likewise.
33421         (__tgmath_real_type_sub): Update comment to describe handling of
33422         complex types.
33423         (__tgmath_complex_type_sub): New macro.
33424         (__tgmath_complex_type): Likewise.
33425         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33426         (__TGMATH_CF128): Use __expr_is_real.
33427         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33428         __expr_is_real.
33429         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33430         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33431         * math/gen-tgmath-tests.py (Type.create_type): Create complex
33432         integer types.
33433
33434 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33435
33436         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33437         macro.
33438         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33439         alias.
33440         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33441         Likewise.
33442
33443         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33444         nanosleep_not_cancel with __nanosleep_nocancel.
33445         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33446         (__nanosleep_nocancel): New macro.
33447         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33448         function.
33449         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33450         macro.
33451         (__nanosleep_nocancel): New prototype.
33452
33453         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33454         pause_not_cancel with __pause_nocancel.
33455         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33456         (__pause_nocancel): New macro.
33457         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33458         macro.
33459         (__pause_nocancel): New prototype.
33460         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33461
33462 2017-08-22  Martin Sebor  <msebor@redhat.com>
33463
33464         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33465         to return a pointer to the same type as the target function.
33466
33467 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33468
33469         [BZ #18822]
33470         [BZ #21986]
33471         * include/printf.h (__printf_fphex): Add attribute_hidden.
33472         (__guess_grouping): New prototype.
33473         * stdio-common/printf_fp.c (__guess_grouping): Removed.
33474         * stdio-common/reg-printf.c (__register_printf_specifier): Add
33475         libc_hidden_proto and libc_hidden_def.
33476         * stdlib/strfmon_l.c (__guess_grouping): Removed.
33477         (__vstrfmon_l): Remove the third argument passed to
33478         __guess_grouping.
33479
33480 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33481
33482         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33483         definition for issignaling that does not rely on __MATH_TG,
33484         since __MATH_TG uses __builtin_types_compatible_p, which is only
33485         available in C mode.
33486         (CFLAGS-test-math-issignaling.cc): New variable.
33487         * math/Makefile [CXX] (tests): Add test-math-issignaling.
33488         * math/test-math-issignaling.cc: New test for C++ implementation
33489         of type-generic issignaling.
33490         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33491         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33492         options of test-math-issignaling on powerpc64le.
33493
33494 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33495
33496         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33497         building libc.a.
33498         (hidden_proto): Likewise.
33499         (hidden_tls_proto): Likewise.
33500         (__hidden_proto): Likewise.
33501
33502 2017-08-22  Florian Weimer  <fweimer@redhat.com>
33503
33504         math: Statically link tests of internal functionality.
33505         * math/Makefile (tests): Remove atest-exp, atest-sincos,
33506         atest-exp2.
33507         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33508         (gmp-objs): Remove assignment.
33509         (atest-exp, atest-sincos, atest-exp2): Remove targets.
33510
33511 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33512
33513         [BZ #21987]
33514         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33515         and copy to ...
33516         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33517         ... here.
33518         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33519         ... and here.
33520
33521         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33522         variable definitions above inclusion of ../Rules.
33523
33524 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33525
33526         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33527         case calling __builtin_unreachable.
33528
33529 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33530
33531         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33532         __waitpid_nocancel.
33533         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33534         (__waitpid_nocancel): New macro.
33535         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33536         macro.
33537         (__waitpid_nocancel): Replace macro with a function.
33538         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33539         function.
33540
33541         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33542         __fcntl_nocancel.
33543         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33544         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33545
33546         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33547         __writev_nocancel_nostatus.
33548         (write_call_graph): Likewise.
33549         (write_bb_counts): Likewise.
33550         * resolv/herror.c (herror): Likewise.
33551         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33552         macro.
33553         (__writev_nocancel_nostatus): New macro.
33554         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33555         Remove macro.
33556         (__writev_nocancel_nostatus): New function.
33557
33558 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33559
33560         Revert:
33561         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33562
33563         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33564         building libc.a.
33565         (hidden_proto): Likewise.
33566         (hidden_tls_proto): Likewise.
33567         (__hidden_proto): Likewise.
33568
33569         [BZ #21973]
33570         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33571         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33573         Likewise.
33574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33575         Likewise.
33576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33577         Likewise.
33578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33579         Likewise.
33580         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33581         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33582         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33583         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33584         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33585         GLIBC_2.0 sqrtl symbol.
33586
33587         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33588         [__USE_MISC] (_LIB_VERSION): Likewise.
33589         [__USE_MISC] (struct exception): Likewise.
33590         [__USE_MISC] (matherr): Likewise.
33591         [__USE_MISC] (DOMAIN): Likewise.
33592         [__USE_MISC] (SING): Likewise.
33593         [__USE_MISC] (OVERFLOW): Likewise.
33594         [__USE_MISC] (UNDERFLOW): Likewise.
33595         [__USE_MISC] (TLOSS): Likewise.
33596         [__USE_MISC] (PLOSS): Likewise.
33597         [__USE_MISC] (HUGE): Likewise.
33598         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33599         * math/math-svid-compat.h: New file.
33600         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33601         and matherrl.
33602         * include/math.h [!_ISOMAC] (__matherr): Remove.
33603         * manual/arith.texi (FP Exceptions): Do not document matherr.
33604         * math/Makefile (tests): Change test-matherr to test-matherr-3.
33605         (tests-internal): New variable.
33606         (install-lib): Do not add libieee.a.
33607         (non-lib.a): Likewise.
33608         (extra-objs): Do not add libieee.a and ieee-math.o.
33609         (CPPFLAGS-s_lib_version.c): Remove variable.
33610         ($(objpfx)libieee.a): Remove rule.
33611         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33612         * math/ieee-math.c: Remove.
33613         * math/libm-test-support.c (matherr): Remove.
33614         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
33615         and license notices.  Include <math-svid-compat.h> and
33616         <shlib-compat.h>.
33617         (matherr): Undefine as macro.  Use compat_symbol_reference.
33618         (_LIB_VERSION): Likewise.
33619         * math/test-matherr-2.c: New file.
33620         * math/test-matherr-3.c: Likewise.
33621         * sysdeps/generic/math_private.h (__kernel_standard): Remove
33622         declaration.
33623         (__kernel_standard_f): Likewise.
33624         (__kernel_standard_l): Likewise.
33625         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33626         <math_private.h>.  Include <math-svid-compat.h>.
33627         (_LIB_VERSION): Undefine as macro.
33628         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
33629         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
33630         [LIBM_SVID_COMPAT], use compat_symbol.
33631         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33632         <math_private.h>.  Include <math-svid-compat.h>.
33633         (matherr): Undefine as macro.
33634         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
33635         compat_symbol.
33636         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33637         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33638         compat_symbol_reference.
33639         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33640         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33641         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33642         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33643         (MATHERR_D): Remove declaration.
33644         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33645         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33646         [LIBM_BUILD] (pmatherrf): Likewise.
33647         [LIBM_BUILD] (pmatherr): Likewise.
33648         [LIBM_BUILD] (pmatherrl): Likewise.
33649         (DOMAIN): Likewise.
33650         (SING): Likewise.
33651         (OVERFLOW): Likewise.
33652         (UNDERFLOW): Likewise.
33653         (TLOSS): Likewise.
33654         (PLOSS): Likewise.
33655         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33656         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
33657         compat_symbol.
33658         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33659         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
33660         compat_symbol.
33661         * math/lgamma-compat.h: Include <math-svid-compat.h>.
33662         * math/w_acos_compat.c: Likewise.
33663         * math/w_acosf_compat.c: Likewise.
33664         * math/w_acosh_compat.c: Likewise.
33665         * math/w_acoshf_compat.c: Likewise.
33666         * math/w_acoshl_compat.c: Likewise.
33667         * math/w_acosl_compat.c: Likewise.
33668         * math/w_asin_compat.c: Likewise.
33669         * math/w_asinf_compat.c: Likewise.
33670         * math/w_asinl_compat.c: Likewise.
33671         * math/w_atan2_compat.c: Likewise.
33672         * math/w_atan2f_compat.c: Likewise.
33673         * math/w_atan2l_compat.c: Likewise.
33674         * math/w_atanh_compat.c: Likewise.
33675         * math/w_atanhf_compat.c: Likewise.
33676         * math/w_atanhl_compat.c: Likewise.
33677         * math/w_cosh_compat.c: Likewise.
33678         * math/w_coshf_compat.c: Likewise.
33679         * math/w_coshl_compat.c: Likewise.
33680         * math/w_exp10_compat.c: Likewise.
33681         * math/w_exp10f_compat.c: Likewise.
33682         * math/w_exp10l_compat.c: Likewise.
33683         * math/w_exp2_compat.c: Likewise.
33684         * math/w_exp2f_compat.c: Likewise.
33685         * math/w_exp2l_compat.c: Likewise.
33686         * math/w_fmod_compat.c: Likewise.
33687         * math/w_fmodf_compat.c: Likewise.
33688         * math/w_fmodl_compat.c: Likewise.
33689         * math/w_hypot_compat.c: Likewise.
33690         * math/w_hypotf_compat.c: Likewise.
33691         * math/w_hypotl_compat.c: Likewise.
33692         * math/w_j0_compat.c: Likewise.
33693         * math/w_j0f_compat.c: Likewise.
33694         * math/w_j0l_compat.c: Likewise.
33695         * math/w_j1_compat.c: Likewise.
33696         * math/w_j1f_compat.c: Likewise.
33697         * math/w_j1l_compat.c: Likewise.
33698         * math/w_jn_compat.c: Likewise.
33699         * math/w_jnf_compat.c: Likewise.
33700         * math/w_jnl_compat.c: Likewise.
33701         * math/w_lgamma_main.c: Likewise.
33702         * math/w_lgamma_r_compat.c: Likewise.
33703         * math/w_lgammaf_main.c: Likewise.
33704         * math/w_lgammaf_r_compat.c: Likewise.
33705         * math/w_lgammal_main.c: Likewise.
33706         * math/w_lgammal_r_compat.c: Likewise.
33707         * math/w_log10_compat.c: Likewise.
33708         * math/w_log10f_compat.c: Likewise.
33709         * math/w_log10l_compat.c: Likewise.
33710         * math/w_log2_compat.c: Likewise.
33711         * math/w_log2f_compat.c: Likewise.
33712         * math/w_log2l_compat.c: Likewise.
33713         * math/w_log_compat.c: Likewise.
33714         * math/w_logf_compat.c: Likewise.
33715         * math/w_logl_compat.c: Likewise.
33716         * math/w_pow_compat.c: Likewise.
33717         * math/w_powf_compat.c: Likewise.
33718         * math/w_powl_compat.c: Likewise.
33719         * math/w_remainder_compat.c: Likewise.
33720         * math/w_remainderf_compat.c: Likewise.
33721         * math/w_remainderl_compat.c: Likewise.
33722         * math/w_scalb_compat.c: Likewise.
33723         * math/w_scalbf_compat.c: Likewise.
33724         * math/w_scalbl_compat.c: Likewise.
33725         * math/w_sinh_compat.c: Likewise.
33726         * math/w_sinhf_compat.c: Likewise.
33727         * math/w_sinhl_compat.c: Likewise.
33728         * math/w_sqrt_compat.c: Likewise.
33729         * math/w_sqrtf_compat.c: Likewise.
33730         * math/w_sqrtl_compat.c: Likewise.
33731         * math/w_tgamma_compat.c: Likewise.
33732         * math/w_tgammaf_compat.c: Likewise.
33733         * math/w_tgammal_compat.c: Likewise.
33734         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33735         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33736         * sysdeps/ieee754/k_standard.c: Likewise.
33737         * sysdeps/ieee754/k_standardf.c: Likewise.
33738         * sysdeps/ieee754/k_standardl.c: Likewise.
33739         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33740         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33741         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33742         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33743         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33744         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33745         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33746         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33747         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33749         Likewise.
33750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33751         Likewise.
33752         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33753         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33754         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33755         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33756
33757 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33758
33759         [BZ #21864]
33760         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33761         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33762         Move before inclusion of ../Rules.
33763
33764 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33765
33766         [BZ #21972]
33767         * assert/assert.h (assert): Use static_cast (bool) for C++.
33768         Use the ternary operator in the warning branch for GNU C.
33769         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33770         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33771         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33772         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33773         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33774
33775 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33776
33777         [BZ #18822]
33778         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33779         (__syscall_clock_gettime): Add attribute_hidden.
33780         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33781         (__start_context): Likewise.
33782
33783 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33784
33785         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33786         building libc.a.
33787         (hidden_proto): Likewise.
33788         (hidden_tls_proto): Likewise.
33789         (__hidden_proto): Likewise.
33790
33791 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33792
33793         * include/libc-symbols.h (attribute_hidden): Enable hidden
33794         visibility in libc.a compiled with PIE.
33795
33796 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33797
33798         [BZ #18822]
33799         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33800         Add attribute_hidden.
33801
33802 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33803
33804         [BZ #21864]
33805         * Makerules (all-nonlib): Add $(others-extras).
33806         * catgets/Makefile (others-extras): New.
33807         * elf/Makefile (others-extras): Likewise.
33808         * nss/Makefile (others-extras): Likewise.
33809
33810 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33811
33812         [BZ #18822]
33813         * csu/libc-start.c (__libc_multiple_libcs): Removed.
33814         * elf/dl-open.c: Include <libc-internal.h>.
33815         (__libc_multiple_libcs): Removed.
33816         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33817         <hp-timing.h>.
33818         * include/libc-internal.h (__libc_multiple_libcs): New.
33819         * misc/sbrk.c: Include <libc-internal.h>.
33820         (__libc_multiple_libcs): Removed.
33821
33822 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33823
33824         [BZ #18822]
33825         * grp/initgroups.c (__nss_group_database): Removed.
33826         (__nss_initgroups_database): Likewise.
33827         * nscd/gai.c (__nss_hosts_database): Likewise.
33828         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33829         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33830         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33831         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33832         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33833         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33834         attribute_hidden.
33835         * nss/nsswitch.c (__nss_database_custom): Define only if
33836         USE_NSCD is defined.
33837         (__nss_configure_lookup): Use __nss_database_custom only if
33838         USE_NSCD is defined.
33839         * nss/nsswitch.h (__nss_database_custom): Declare only if
33840         USE_NSCD is defined.  Add attribute_hidden.
33841         (__nss_setent): Add attribute_hidden.
33842         (__nss_endent): Likewise.
33843         (__nss_getent_r): Likewise.
33844         (__nss_getent): Likewise.
33845         (DEFINE_DATABASE): Declare __nss_##arg##_database.
33846
33847 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33848
33849         [BZ #18822]
33850         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33851         libc_hidden_proto and libc_hidden_def.
33852
33853 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33854
33855         [BZ #18822]
33856         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33857         Add libc_hidden_proto.
33858         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33859         Add libc_hidden_def.
33860
33861 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33862
33863         [BZ #21974]
33864         * gmon/Makefile (routines): Remove bb_init_func and
33865         bb_exit_func.
33866         (elide-routines.os): Removed.
33867         * gmon/bb_exit_func.c: Likewise.
33868         * gmon/bb_init_func.c: Likewise.
33869         * include/sys/gmon.h (__bb): Likewise.
33870         (__bb_init_func): Likewise.
33871         (__bb_exit_func): Likewise.
33872         * sysdeps/alpha/bb_init_func.S: Likewise.
33873
33874 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33875
33876         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33877         * include/setjmp.h (____longjmp_chk): Here.  Add
33878         attribute_hidden.
33879
33880 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
33881
33882         [BZ #18822]
33883         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33884         attribute_hidden.
33885         (__strspn_sse2): Likewise.
33886
33887 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33888
33889         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33890         (close_not_cancel_no_status): Likewise.
33891         (__close_nocancel): New macro.
33892         (__close_nocancel_nostatus): Likewise.
33893         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33894         macro.
33895         (close_not_cancel): Likewise.
33896         (close_not_cancel_no_status): Likewise.
33897         (__close_nocancel): New prototype.
33898         (__close_nocancel_nostatus): New function.
33899         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33900         * catgets/open_catalog.c (__open_catalog): Replace
33901         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33902         * gmon/gmon.c (write_gmon): Likewise.
33903         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33904         * intl/loadmsgcat.c (close): Likewise.
33905         * io/ftw.c (open_dir_stream): Likewise.
33906         (ftw_startup): Likewise.
33907         * libio/fileops.c (_IO_file_open): Likewise.
33908         (_IO_file_close_mmap): Likewise.
33909         (_IO_file_close): Likewise.
33910         * libio/iopopen.c (_IO_dup2): Likewise.
33911         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33912         * locale/loadlocale.c (_nl_load_locale): Likewise.
33913         * login/utmp_file.c (pututline_file): Likewise.
33914         (endutent_file): Likewise.
33915         * misc/daemon.c (daemon): Likewise.
33916         * nscd/nscd_getai.c (__nscd_getai): Likewise.
33917         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33918         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33919         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33920         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33921         * nscd/nscd_helper.c (open_socket): Likewise.
33922         (__nscd_open_socket): Likewise.
33923         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33924         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33925         (__nscd_innetgr): Likewise.
33926         * nss/nss_db/db-open.c (internal_setent): Likewise.
33927         * resolv/res-close.c (__res_iclose): Likewise.
33928         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33929         * sysdeps/posix/closedir.c (__closedir): Likewise.
33930         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33931         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33932         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33933         (opendir_tail): Likewise.
33934         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33935         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33936         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33937         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33938         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33939         (gethostid): Likewise.
33940         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33941         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33942         Likewise.
33943         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33944         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33945         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33946         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33947         Likewise.
33948         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33949         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33950         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33951         Likewise.
33952         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33953         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33954         Likewise.
33955         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33956         Likewise.
33957         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33958         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33959         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33960         __close_nocancel.
33961
33962         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33963         (openat_not_cancel_3): Likewise.
33964         (openat64_not_cancel_3): Likewise).
33965         (openat_not_cancel_3): Likewise).
33966         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33967         macro.
33968         (openat_not_cancel_3): Likewise.
33969         (openat64_not_cancel): Likewise.
33970         (openat64_not_cancel_3): Likewise.
33971         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33972         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33973         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33974         __open{64}_nocancel.
33975         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33976         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33977         * sysdeps/posix/opendir.c (__opendirat): Likewise.
33978
33979 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33980
33981         [BZ #18822]
33982         * include/argz.h (__argz_create_sep): New function prototype.
33983         (__argz_append): Likewise.
33984         (__argz_add): Likewise.
33985         (__argz_add_sep): Likewise.
33986         (__argz_delete): Likewise.
33987         (__argz_insert): Likewise.
33988         (__argz_replace): Likewise.
33989         * string/argz.h (__argz_create_sep): Removed.
33990         (__argz_append): Likewise.
33991         (__argz_add): Likewise.
33992         (__argz_add_sep): Likewise.
33993         (__argz_delete): Likewise.
33994         (__argz_insert): Likewise.
33995         (__argz_replace): Likewise.
33996
33997 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33998
33999         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
34000         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
34001         (GNU_PROPERTY_STACK_SIZE): Likewie.
34002         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
34003         (GNU_PROPERTY_LOPROC): Likewise.
34004         (GNU_PROPERTY_HIPROC): Likewise.
34005         (GNU_PROPERTY_LOUSER): Likewise.
34006         (GNU_PROPERTY_HIUSER): Likewise.
34007         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
34008         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
34009         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
34010         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
34011         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
34012         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
34013         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
34014         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
34015         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
34016         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
34017         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
34018         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
34019         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
34020         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
34021         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
34022         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
34023         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
34024         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
34025         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
34026         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
34027         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
34028         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
34029         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
34030
34031 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34032
34033         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
34034         in C++ mode.
34035
34036 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34037
34038         [BZ #21930]
34039         * math/math.h (isinf): Check if in C or C++ mode before using
34040         __builtin_types_compatible_p, since this is a C mode feature.
34041
34042 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34043
34044         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
34045         (__write_nocancel): New macro.
34046         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
34047         Rewrite as a function prototype.
34048         (write_not_cancel): Remove macro.
34049         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
34050         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
34051         (write_gmon): Likewise.
34052         * libio/fileops.c (_IO_new_file_write): Likewise.
34053         * login/utmp_file.c (pututline_file): Likewise.
34054         (updwtmp_file): Likewise.
34055         * stdio-common/psiginfo.c (psiginfo): Likewise.
34056         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34057         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34058         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34059         Likewise.
34060         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34061         Likewise.
34062
34063         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
34064         (__read_nocancel): New macro.
34065         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34066         __read_nocancel.
34067         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
34068         macro.
34069         (__read_nocancel): New prototype.
34070         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
34071         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
34072         with __read_nocancel.
34073         * intl/loadmsgcat.c (read): Likewise.
34074         * libio/fileops.c (_IO_file_read): Likewise.
34075         * locale/loadlocale.c (_nl_load_locale): Likewise.
34076         * login/utmp_file.c (getutent_r_file): Likewise.
34077         (internal_getut_r): Likewise.
34078         (getutline_r_file): Likewise.
34079         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34080         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
34081         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34082         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34083         Likewise.
34084         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
34085         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34086         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34087         Likewise.
34088         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34089         Likewise.
34090         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34091         Likewise.
34092         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34093         Likewise.
34094         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34095
34096 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
34097
34098         [BZ #21966]
34099         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
34100         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
34101         usable.
34102
34103 2017-08-17  DJ Delorie  <dj@redhat.com>
34104
34105         * bug17079.c: Update to new test harness.
34106         * test-digits-dots.c: Likewise.
34107         * test-netdb.c: Likewise.
34108         * tst-field.c: Likewise.
34109         * tst-nss-getpwent.c: Likewise.
34110         * tst-nss-static.c: Likewise.
34111         * tst-nss-test1.c: Likewise.
34112         * tst-nss-test2.c: Likewise.
34113         * tst-nss-test3.c: Likewise.
34114         * tst-nss-test4.c: Likewise.
34115         * tst-nss-test5.c: Likewise.
34116
34117 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34118
34119         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
34120         (open_not_cancel_2): Likewise.
34121         (open_nocancel): New macro.
34122         (open64_nocancel): Likewise.
34123         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
34124         (open_not_cancel_2): Likewise.
34125         (__open_nocancel): New prototype.
34126         (__open64_nocancel): Likewise.
34127         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
34128         __open_nocancel.
34129         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
34130         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
34131         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
34132         with __open_nocancel.
34133         * csu/check_fds.c (check_one_fd): Likewise.
34134         * gmon/gmon.c (write_gmon): Likewise.
34135         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
34136         * intl/loadmsgcat.c (open): Likewise.
34137         * libio/fileops.c (_IO_file_open): Likewise.
34138         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34139         * locale/loadlocale.c (_nl_load_locale): Likewise.
34140         * login/utmp_file.c (setutent_file): Likewise.
34141         * misc/daemon.c (daemon): Likewise.
34142         * nss/nss_db/db-open.c (internal_setent): Likewise.
34143         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34144         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
34145         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
34146         (__opendir): Likewise.
34147         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
34148         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
34149         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
34150         (gethostid): Likewise.
34151         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
34152         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34153         Likewise.
34154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
34155         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
34156         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
34157         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
34158         Likewise.
34159         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
34160         Likewise.
34161         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
34162         Likewise.
34163         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
34164         Likewise.
34165         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
34166         Likewise.
34167         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
34168         Likewise.
34169         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
34170         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
34171
34172 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
34173
34174         * benchtests/bench-skeleton.c (main): Add support for
34175         latency benchmarking.
34176         * benchtests/scripts/bench.py: Add support for latency benchmarking.
34177
34178 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
34179
34180         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
34181         the startup object.
34182
34183 2017-08-17  Florian Weimer  <fweimer@redhat.com>
34184
34185         * include/sys/socket.h (__opensock): Remove internal_function.
34186         * socket/opensock.c (__opensock): Likewise.
34187         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
34188
34189 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
34190
34191         [BZ #21944]
34192         * signal/bits/types/__sigval_t.h: New file.
34193         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
34194         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
34195         and define sigval_t using __sigval_t.
34196         * include/bits/types/__sigval_t.h: New file.
34197         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
34198         instead of <bits/types/__sigval_t.h>.
34199         (struct sigevent): Use __sigval_t instead of sigval_t.
34200         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
34201         instead of <bits/types/__sigval_t.h>.
34202         (siginfo_t): Use __sigval_t instead of sigval_t.
34203         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
34204         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34205         (struct sigevent): Use __sigval_t instead of sigval_t.
34206         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
34207         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
34208         (siginfo_t): Use __sigval_t instead of sigval_t.
34209         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
34210
34211 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34212
34213         * NEWS: Remove "[Add new features here]" for 2.27.
34214
34215 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
34216
34217         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
34218         libc.so.
34219
34220 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34221
34222         * NEWS: Mention x86-64 FMA optimization.
34223
34224 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
34225
34226         [BZ #21912]
34227         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34228         Add e_expf-fma.
34229         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
34230         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
34231         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
34232
34233 2017-08-16  Andreas Schwab  <schwab@suse.de>
34234
34235         [BZ #16750]
34236         CVE-2009-5064
34237         * elf/ldd.bash.in: Never run file directly.
34238
34239 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
34240
34241         [BZ #21955]
34242         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
34243         (L(SP_INF_0)): Likewise.
34244
34245 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34246
34247         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
34248         run-built-tests.
34249
34250 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34251
34252         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
34253         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
34254         BROKEN_THREAD_SIGNALS code.
34255         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
34256         request_list): Remove caller_pid member used for
34257         BROKEN_THREAD_SIGNALS.
34258         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
34259         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34260         Remove BROKEN_THREAD_SIGNALS support.
34261         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
34262         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
34263
34264 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34265
34266         * gmon/Makefile (tests): Add tst-gmon.
34267         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
34268         Set.
34269         (tests-special): Add tst-gmon-prof.out.
34270         (tst-gmon.out): Depend on clean-tst-gmon-data.
34271         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
34272         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
34273         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
34274         startup object.
34275         * aclocal.m4 (GPROF): Set and substitute.
34276         * config.amke.in (GPROF): Set.
34277         * configure: Regenerate.
34278
34279 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
34280
34281         * elf/elf.h A (NT_PPC_TAR): New macro.
34282         (NT_PPC_PPR): Likewise.
34283         (NT_PPC_DSCR): Likewise.
34284         (NT_PPC_EBB): Likewise.
34285         (NT_PPC_PMU): Likewise.
34286         (NT_PPC_TM_CGPR): Likewise.
34287         (NT_PPC_TM_CFPR): Likewise.
34288         (NT_PPC_TM_CVMX): Likewise.
34289         (NT_PPC_TM_CVSX): Likewise.
34290         (NT_PPC_TM_SPR): Likewise.
34291         (NT_PPC_TM_CTAR): Likewise.
34292         (NT_PPC_TM_CPPR): Likewise.
34293         (NT_PPC_TM_CDSCR): Likewise.
34294
34295 2017-08-15  Florian Weimer  <fweimer@redhat.com>
34296
34297         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
34298         regparm (2) instead of internal_function.
34299         (_MCOUNT_DECL): Adjust.
34300
34301 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
34302
34303         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34304         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34305
34306 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
34307
34308         * conform/data/sys/wait.h-data (si_value): Do not expect for
34309         XPG42.
34310
34311 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34312
34313         [BZ #21962]
34314         NSS: Create stubs for accidentally exported lookup functions.
34315         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34316         Remove declaration.
34317         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34318         (ether_hostton): Call __nss_ethers_lookup2 instead.
34319         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34320         (ether_ntohost): Call __nss_ethers_lookup2 instead.
34321         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34322         (setup): Call __nss_netgroup_lookup2 instead.
34323         * nss/Makefile (routines): Add compat-lookup.
34324         * nss/Versions (GLIBC_2.27): Add symbol version.
34325         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
34326         (DB_COMPAT_FCT): Remove.
34327         * nss/compat-lookup.c: New file.
34328         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34329         from databases.def.
34330         * nss/service-lookup.c (NO_COMPAT): Remove definition.
34331         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34332         (netname2user): Call __nss_publickey_lookup2 instead.
34333         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34334         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34335         instead.
34336
34337 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34338             Sergei Trofimovich  <slyfox@inbox.ru>
34339
34340         [BZ #21908]
34341         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34342         Rename to MMAP2_PAGE_UNIT.
34343         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34344         __OFF_T_MATCHES_OFF64_T is not defined.
34345         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34346         uint64_t.
34347         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34348         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34349
34350 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34351
34352         i386: Do not set internal_function.
34353         * config.h.in (USE_REGPARMS, internal_function): Remove.
34354         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34355         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34356
34357 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34358
34359         * elf/dl-init.c (_dl_init): Remove internal_function.
34360         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34361         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34362
34363 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34364
34365         * elf/rtld.c (_dl_start): Remove internal_function.
34366         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34367         _dl_start.
34368
34369 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34370
34371         * elf/dl-fini.c (_dl_fini): Remove internal_function
34372         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34373
34374 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
34375
34376         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34377         (bit_cpu_SHSTK): Likewise.
34378         (index_cpu_IBT): Likewise.
34379         (index_cpu_SHSTK): Likewise.
34380         (reg_IBT): Likewise.
34381         (reg_SHSTK): Likewise.
34382         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34383         Handle index_cpu_IBT and index_cpu_SHSTK.
34384
34385 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
34386
34387         [BZ #19982]
34388         * po/fr.po: Fix spelling mistake.
34389
34390 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34391
34392         * elf/dl-addr.c (_dl_addr): Remove internal_function.
34393         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34394         (_dl_catch_error, _dl_receive_error): Likewise.
34395         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34396         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34397         (_dl_deallocate_tls): Likewise.
34398         * include/dlfcn.h (_dl_addr): Likewise.
34399         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34400         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34401         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34402         Likewise.
34403
34404 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34405
34406         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34407         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34408         internal_function.
34409         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34410
34411 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34412
34413         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34414         internal_function.
34415         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34416         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34417         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34418         internal_function from _dl_make_stack_executable_hook member.
34419         (_dl_make_stack_executable): Remove internal_function.
34420         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34421         Likewise.
34422         * sysdeps/unix/sysv/linux/dl-execstack.c
34423         (_dl_make_stack_executable): Likewise.
34424
34425 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34426
34427         * sysdeps/unix/sysv/linux/netlinkaccess.h
34428         (__netlink_assert_response): Remove internal_function.
34429         * sysdeps/unix/sysv/linux/netlink_assert_response.c
34430         (__netlink_assert_response): Likewise.
34431
34432 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34433
34434         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34435         internal_function.
34436         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34437
34438 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34439
34440         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34441         internal_function.
34442         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34443         * inet/netgroup.h (__internal_setnetgrent)
34444         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34445         * inet/getnetgrent_r.c (__internal_setnetgrent)
34446         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34447         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34448         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34449         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34450         * nss/nsswitch.h (db_lookup_function): Likewise.
34451
34452 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34453
34454         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34455         Remove internal_function.
34456         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34457         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34458         message argument on the stack.
34459         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34460         Likeweise.
34461
34462 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
34463
34464         Adapt test case data to the changes in the thousands
34465         separators.
34466
34467         [BZ #20756]
34468         * localedata/tst-langinfo.sh: Adapt test case data.
34469         * stdlib/tst-strfmon_l.c: Likewise.
34470         * stdlib/tst-strtod4.c: Likewise.
34471         * stdlib/tst-strtod5i.c: Likewise.
34472
34473 2017-08-11  Florian Weimer  <fweimer@redhat.com>
34474
34475         [BZ #21242]
34476         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34477         Suppress pedantic warning resulting from statement expression.
34478         (__ASSERT_FUNCTION): Add missing __extension__.
34479
34480 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34481
34482         * benchtests/bench-memmove-large.c: Print output in JSON
34483         format.
34484         * benchtests/bench-memmove.c: Likewise.
34485
34486         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34487         * benchtests/bench-memchr.c (do_one_test): Likewise.
34488         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34489         * benchtests/bench-memcpy.c (do_one_test): Likewise.
34490         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34491         * benchtests/bench-memmove.c (do_one_test): Likewise.
34492         * benchtests/bench-memset-large.c (do_one_test): Likewise.
34493         * benchtests/bench-memset.c (do_one_test): Likewise.
34494         * benchtests/bench-string.h (test_init): Remove memsets.
34495
34496 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34497
34498         * manual/lang.texi
34499         (Computing the Width of an Integer Data Type): Rename section to
34500         "Width of an Integer Type".  Remove inaccurate statement regarding
34501         lack of C language facilities for determining width of integer
34502         types, and reorder content to improve flow and context of
34503         discussion.
34504
34505 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34506
34507         * lang.texi (va_copy): Change standard from ISO to C99.
34508         (__va_copy): Add standard and header annotation.
34509         Update description for clarity of origins and current use.
34510
34511 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34512
34513         [BZ #21941]
34514         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34515         xssqrtqp requires operands to be in Vector Registers
34516         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34517         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34518         (__ieee754_sqrtf128): Likewise.
34519
34520 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
34521
34522         * sysdeps/aarch64/memcmp.S (memcmp):
34523         Rewrite of optimized memcmp.
34524
34525 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34526
34527         Introduce ld.so exceptions.
34528         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34529         (_dl_exception_create, _dl_exception_create_format)
34530         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34531         (_dl_catch_exception): Declare.
34532         (_dl_catch_error): Update comment.
34533         * elf/dl-error-skeleton.c (struct catch): Replace objname,
34534         errstring, malloced members with exception member.
34535         (_dl_out_of_memory): Remove.
34536         (fatal_error): New function, extracted from _dl_signal_error.
34537         (_dl_signal_exception, _dl_signal_cexception): New functions.
34538         (_dl_signal_error): Call _dl_exception_create to allocate an
34539         exception object.
34540         (_dl_catch_exception): New function, based on _dl_catch_error.
34541         (_dl_catch_error): Implement using _dl_catch_exception.
34542         * elf/dl-exception.c: New file.
34543         * elf/Makefile (dl-routines): Add dl-exception.
34544         (elide-routines.os): Likewise.
34545         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34546         _dl_exception_create_format, _dl_exception_free.
34547         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34548         _dl_signal_exception.
34549         * elf/dl-lookup.c (make_string): Remove.
34550         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34551         _dl_signal_cexception, _dl_exception_free.
34552         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34553         _dl_signal_exception.
34554         * elf/dl-sym.c (do_sym): Likewise.
34555         * elf/dl-version.c (make_string): Remove.
34556         (match_symbol): Use _dl_exception_create_format,
34557         _dl_signal_cexception, _dl_exception_free.
34558         (_dl_check_map_versions): Likewise.
34559         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34560         _dl_catch_exception.
34561         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34562         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34563         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34564         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34565         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34566         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34567         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34568         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34569         Likewise.
34570         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34572         (ld.so): Likewise.
34573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34574         (ld.so): Likewise.
34575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34576         Likewise.
34577         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34578         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34579         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34580         Likewise.
34581         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34582         Likewise.
34583         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34584
34585 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34586
34587         * inet/net-internal.h (__inet6_scopeid_pton): Remove
34588         attribute_hidden, internal_function.
34589         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34590         internal_function.
34591
34592 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34593
34594         * malloc/malloc.c (get_max_fast): Reimplement as an inline
34595         function which calls __builtin_unreachable.
34596
34597 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
34598
34599         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34600         Indian monetary formatting
34601         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34602         test cases.
34603
34604 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
34605
34606         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34607         Fix typo in comment.
34608
34609         [BZ #21928]
34610         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34611         PTRACE_SEIZE_DEVEL): Remove.
34612         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34613         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34614         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34615         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34616         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34617
34618 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
34619
34620         * posix/bits/types.h (__qaddr_t): Remove.
34621
34622         [BZ #21457]
34623         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34624         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34625         __glibc_reserved1.
34626         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34627         (ucontext_t): Use __ctx with uc_flags.
34628         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34629         (__ctxt): Likewise.
34630         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34631         __glibc_reserved1.
34632         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34633         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34634         __glibc_reserved1.
34635         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34636         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34637         __glibc_reserved1.
34638         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34639         macro.
34640         (ucontext_t): Use __ctx with uc_flags.
34641         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34642         (ucontext_t): Use __ctx with uc_flags.
34643         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34644         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34645         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34646         (ucontext_t): Use __ctx with uc_flags.
34647         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34648         undefine further down.
34649         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34650         __glibc_reserved1.
34651         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34652         undefine further down.
34653         (ucontext_t): Use __ctx with uc_flags.
34654         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34655         undefine further down.
34656         (ucontext_t): Use __ctx with uc_flags.
34657         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34658         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34659         Rename uc_pad to __glibc_reserved1.
34660         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34661         undefine further down.
34662         (ucontext_t): Use __ctx with uc_flags.
34663         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34664         further down.
34665         (ucontext_t): Use __ctx with uc_flags.
34666         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34667         __ctx with uc_flags.
34668         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34669         (ucontext_t): Use __ctx with uc_flags.
34670         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34671         __ctx with uc_flags.
34672
34673 2017-08-09  Florian Weimer  <fweimer@redhat.com>
34674
34675         [BZ #21932]
34676         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34677         before early return.
34678
34679 2017-08-09  Andreas Schwab  <schwab@suse.de>
34680
34681         [BZ #21041]
34682         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34683         renamed alias.
34684
34685         [BZ #21041]
34686         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34687         tst-compat-forwarder.
34688         (modules-names): Add tst-compat-forwarder-mod.
34689         ($(objpfx)tst-compat-forwarder): Depend on
34690         $(objpfx)tst-compat-forwarder-mod.so.
34691         * nptl/tst-compat-forwarder.c: New file.
34692         * nptl/tst-compat-forwarder-mod.c: New file.
34693
34694 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34695
34696         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34697         comments.
34698
34699         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34700         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34701         memcpy_falkor.
34702         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34703         Bump.
34704         (__libc_ifunc_impl_list): Add __memcpy_falkor.
34705         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34706         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34707         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34708         Add falkor.
34709         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34710         New macro.
34711
34712 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34713
34714         [BZ #759]
34715         * manual/setjmp.texi (getcontex): Document uc_stack value
34716         compatibility differences.
34717
34718 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
34719
34720         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34721         (old_malloc_hook): Likewise.
34722         (old_memalign_hook): Likewise.
34723         (old_realloc_hook): Likewise.
34724         (struct hdr): Likewise.
34725         (flood): Likewise.
34726         (freehook): Likewise.
34727         (mallochook): Likewise.
34728         (memalignhook): Likewise.
34729         (reallochook): Likewise.
34730         (mprobe): Likewise.
34731         * malloc/mtrace.c (mallwatch): Likewise.
34732         (tr_old_free_hook): Likewise.
34733         (tr_old_malloc_hook): Likewise.
34734         (tr_old_realloc_hook): Likewise.
34735         (tr_old_memalign_hook): Likewise.
34736         (tr_where): Likewise.
34737         (lock_and_info): Likewise.
34738         (tr_freehook): Likewise.
34739         (tr_mallochook): Likewise.
34740         (tr_reallochook): Likewise.
34741         (tr_memalignhook): Likewise.
34742         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34743         * misc/mmap.c (__mmap): Likewise.
34744         * misc/mmap64.c (__mmap64): Likewise.
34745         * misc/mprotect.c (__mprotect): Likewise.
34746         * misc/msync.c (msync): Likewise.
34747         * misc/munmap.c (__munmap): Likewise.
34748         * posix/posix_madvise.c (posix_madvise): Likewise.
34749         * socket/send.c (__send): Likewise.
34750         * socket/sendto.c (__sendto): Likewise.
34751         * socket/setsockopt.c (__setsockopt): Likewise.
34752         * string/memcmp.c (__ptr_t): Remove macro.
34753         (MEMCMP): Use void * instead of ptr_t.
34754         * string/memrchr.c (__ptr_t): Remove macro.
34755         (__memrchr): Use void * instead of ptr_t.
34756         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34757         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34758         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34759         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34760         * sysdeps/mach/msync.c (msync): Likewise.
34761         * sysdeps/mach/munmap.c (__munmap): Likewise.
34762         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34763         Likewise.
34764         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34765         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34766         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34767         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34768         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34769         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34770         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34771         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34772         Likewise.
34773         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34774         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34775         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34776         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34777         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34778         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34779         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34780         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34781         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34782         Likewise.
34783         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34784         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34785         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34786         (MEMCMP): Use void * instead of ptr_t.
34787         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34788         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34789
34790 2017-08-08  Florian Weimer  <fweimer@redhat.com>
34791
34792         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34793         return statement.
34794
34795 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
34796
34797         [BZ #21913]
34798         * csu/libc-tls.c: Include <startup.h> first.
34799         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34800         * elf/dl-tunables.c: Include <startup.h> first.
34801         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34802         * sysdeps/generic/startup.h: New file.
34803         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34804         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34805         (I386_USE_SYSENTER): New.  Defined to 0.
34806
34807 2017-08-08  Andreas Schwab  <schwab@suse.de>
34808
34809         [BZ #21041]
34810         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34811         * nptl/pt-system.c (system): Likewise.
34812
34813 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34814
34815         [BZ #21780]
34816         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34817         EOPNOTSUPP.
34818         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34819         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34820         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34821         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34822         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34823         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34824         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34825
34826 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
34827
34828         [BZ #21899]
34829         * bits/sigaction.h (struct sigaction): Define sa_handler and
34830         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34831         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34832         [__USE_XOPEN_EXTENDED].
34833         (SA_RESTART): Likewise.
34834         (SA_NODEFER): Likewise.
34835         (SA_RESETHAND): Likewise.
34836         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34837         (struct sigaction): Define sa_handler and sa_sigaction using union
34838         also for [__USE_XOPEN_EXTENDED].
34839         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34840         [__USE_XOPEN_EXTENDED].
34841         (SA_RESTART): Likewise.
34842         (SA_NODEFER): Likewise.
34843         (SA_RESETHAND): Likewise.
34844         * sysdeps/unix/sysv/linux/bits/sigaction.h
34845         (struct sigaction): Define sa_handler and sa_sigaction using union
34846         also for [__USE_XOPEN_EXTENDED].
34847         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34848         [__USE_XOPEN_EXTENDED].
34849         (SA_RESTART): Likewise.
34850         (SA_NODEFER): Likewise.
34851         (SA_RESETHAND): Likewise.
34852         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34853         (struct sigaction): Define sa_handler and sa_sigaction using union
34854         also for [__USE_XOPEN_EXTENDED].
34855         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34856         [__USE_XOPEN_EXTENDED].
34857         (SA_RESTART): Likewise.
34858         (SA_NODEFER): Likewise.
34859         (SA_RESETHAND): Likewise.
34860         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34861         (struct sigaction): Define sa_handler and sa_sigaction using union
34862         also for [__USE_XOPEN_EXTENDED].
34863         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34864         [__USE_XOPEN_EXTENDED].
34865         (SA_RESTART): Likewise.
34866         (SA_NODEFER): Likewise.
34867         (SA_RESETHAND): Likewise.
34868         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34869         (struct sigaction): Define sa_handler and sa_sigaction using union
34870         also for [__USE_XOPEN_EXTENDED].
34871         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34872         [__USE_XOPEN_EXTENDED].
34873         (SA_RESTART): Likewise.
34874         (SA_NODEFER): Likewise.
34875         (SA_RESETHAND): Likewise.
34876         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34877         (struct sigaction): Define sa_handler and sa_sigaction using union
34878         also for [__USE_XOPEN_EXTENDED].
34879         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34880         [__USE_XOPEN_EXTENDED].
34881         (SA_RESTART): Likewise.
34882         (SA_NODEFER): Likewise.
34883         (SA_RESETHAND): Likewise.
34884         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34885         (struct sigaction): Define sa_handler and sa_sigaction using union
34886         also for [__USE_XOPEN_EXTENDED].
34887         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34888         [__USE_XOPEN_EXTENDED].
34889         (SA_RESTART): Likewise.
34890         (SA_NODEFER): Likewise.  Define directly rather than as alias.
34891         (SA_RESETHAND): Likewise.
34892         (SA_INTERRUPT): Define only for [__USE_MISC].
34893         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34894         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34895         [__USE_MISC].
34896         (SA_STACK): Define only for [__USE_MISC].
34897         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34898         (struct sigaction): Define sa_handler and sa_sigaction using union
34899         also for [__USE_XOPEN_EXTENDED].
34900         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34901         [__USE_XOPEN_EXTENDED].
34902         (SA_RESTART): Likewise.
34903         (SA_NODEFER): Likewise.
34904         (SA_RESETHAND): Likewise.
34905         (SA_NOPTRACE): Define only for [__USE_MISC].
34906
34907         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34908         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34909         (struct catalog_info): Likewise.
34910         * inet/htontest.c (lo): Likewise.
34911         (foo): Likewise.
34912         * inet/inet_lnaof.c (inet_lnaof): Likewise.
34913         * inet/inet_net.c (inet_network): Likewise.
34914         * inet/inet_netof.c (inet_netof): Likewise.
34915         * inet/rcmd.c (__ivaliduser): Likewise.
34916         (iruserok): Likewise.
34917         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34918         * locale/programs/locale-spec.c (locale_special): Likewise.
34919         * nis/nis_findserv.c (struct findserv_req): Likewise.
34920         (__nis_findfastest_with_timeout): Likewise.
34921         * nss/test-netdb.c (test_network): Likewise.
34922         * resolv/inet_neta.c (inet_neta): Likewise.
34923         * resolv/ns_date.c (ns_datetosecs): Likewise.
34924         (SECS_PER_DAY): Likewise.
34925         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34926         Likewise.
34927         * resolv/res_comp.c (__putlong): Likewise.
34928         (__putshort): Likewise.
34929         (_getlong): Likewise.
34930         (_getshort): Likewise.
34931         * resolv/res_debug.c (p_time): Likewise.
34932         (precsize_ntoa): Likewise.
34933         (precsize_aton): Likewise.
34934         (latlon2ul): Likewise.
34935         (loc_aton): Likewise.
34936         (loc_ntoa): Likewise.
34937         * resolv/res_hconf.c (struct netaddr): Likewise.
34938         (_res_hconf_reorder_addrs): Likewise.
34939         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34940         (clnttcp_control): Likewise.
34941         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34942         (clntudp_control): Likewise.
34943         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34944         (clntunix_control): Likewise.
34945         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34946         * sunrpc/rpc/auth.h (union des_block): Likewise.
34947         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34948         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34949         (xdrrec_create): Likewise.
34950         (xdrrec_endofrecord): Likewise.
34951         (flush_out): Likewise.
34952         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34953         (xdrstdio_putlong): Likewise.
34954         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34955         Likewise.
34956
34957         * misc/sys/cdefs.h (__long_double_t): Remove.
34958         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34959         instead of __long_double_t,
34960         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34961
34962 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34963
34964         * benchtests/scripts/compare_strings.py: Avoid display error when
34965         running on a text terminal.
34966
34967         * benchtests/scripts/compare_strings.py (main): Add an
34968         optional -base option.
34969         (process_results): New argument base_func.
34970
34971         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34972         hardcoding memcpy.
34973         * benchtests/bench-memcpy-large.c (test_name): Likewise.
34974         * benchtests/bench-memcpy-random.c (test_name): Likewise.
34975
34976 2017-08-07  Andreas Schwab  <schwab@suse.de>
34977
34978         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34979         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34980         * intl/Makefile ($(objpfx)tst-gettext.out)
34981         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34982         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34983         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34984         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34985         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34986         * posix/Makefile ($(objpfx)globtest.out)
34987         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34988         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34989         ($(objpfx)tst-printf.out): Likewise.
34990         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34991         ($(objpfx)tst-setcontext3.out): Likewise.
34992
34993 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
34994
34995         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34996         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34997         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34998         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34999         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
35000         and mptan-fma.
35001         (CFLAGS-doasin-fma.c): New.
35002         (CFLAGS-dosincos-fma.c): Likewise.
35003         (CFLAGS-e_asin-fma.c): Likewise.
35004         (CFLAGS-e_atan2-fma.c): Likewise.
35005         (CFLAGS-e_exp-fma.c): Likewise.
35006         (CFLAGS-e_log-fma.c): Likewise.
35007         (CFLAGS-e_pow-fma.c): Likewise.
35008         (CFLAGS-halfulp-fma.c): Likewise.
35009         (CFLAGS-mpa-fma.c): Likewise.
35010         (CFLAGS-mpatan-fma.c): Likewise.
35011         (CFLAGS-mpatan2-fma.c): Likewise.
35012         (CFLAGS-mpexp-fma.c): Likewise.
35013         (CFLAGS-mplog-fma.c): Likewise.
35014         (CFLAGS-mpsqrt-fma.c): Likewise.
35015         (CFLAGS-mptan-fma.c): Likewise.
35016         (CFLAGS-s_atan-fma.c): Likewise.
35017         (CFLAGS-sincos32-fma.c): Likewise.
35018         (CFLAGS-slowexp-fma.c): Likewise.
35019         (CFLAGS-slowpow-fma.c): Likewise.
35020         (CFLAGS-s_sin-fma.c): Likewise.
35021         (CFLAGS-s_tan-fma.c): Likewise.
35022         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
35023         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
35024         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
35025         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
35026         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
35027         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
35028         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
35029         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
35030         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
35031         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
35032         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
35033         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
35034         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
35035         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
35036         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
35037         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
35038         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
35039         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
35040         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
35041         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
35042         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
35043         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
35044         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
35045         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
35046         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
35047         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
35048         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
35049         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
35050         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
35051         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
35052         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
35053
35054 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
35055
35056         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
35057         (min_of_type_f): New macro.
35058         (min_of_type_): Likewise.
35059         (min_of_type_l): Likewise.
35060         (min_of_type_f128): Likewise.
35061         (min_of_type): Define using __MATH_TG and taking an expression
35062         argument.
35063         (math_check_force_underflow): Pass expression instead of type to
35064         min_of_type.
35065         (math_check_force_underflow_nonneg): Likewise.
35066
35067 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35068
35069         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35070         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
35071         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
35072
35073 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35074
35075         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35076         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
35077         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
35078         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
35079         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
35080         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
35081         memcpy_chk-nonshared, mempcpy_chk-nonshared,
35082         memmove_chk-nonshared and memset_chk-nonshared
35083         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
35084         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
35085         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
35086         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
35087         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
35088         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
35089         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
35090         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
35091         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
35092         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
35093         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
35094         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
35095         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
35096         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
35097         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
35098         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
35099         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
35100         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
35101         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
35102         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
35103         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
35104         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
35105         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
35106         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
35107         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
35108         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
35109         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
35110         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
35111         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
35112         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
35113         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
35114         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
35115         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
35116         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35117         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
35118         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
35119         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
35120         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
35121         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
35122         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
35123         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
35124         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
35125         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
35126         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
35127         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
35128         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
35129         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
35130         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
35131         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
35132         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
35133         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
35134         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
35135         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
35136         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
35137         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
35138         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
35139         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
35140         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
35141         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
35142         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
35143         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
35144         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
35145         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
35146         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
35147         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
35148         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
35149         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
35150         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
35151         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
35152         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
35153         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
35154         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
35155         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
35156         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
35157         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
35158         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
35159         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
35160         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
35161         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
35162         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
35163         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
35164         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
35165         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
35166         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
35167         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
35168         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
35169         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
35170         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
35171         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
35172         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
35173         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
35174         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
35175         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
35176         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
35177         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
35178         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
35179         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
35180         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
35181         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
35182         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
35183         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
35184         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
35185         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
35186         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
35187         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
35188         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
35189         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
35190         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
35191
35192 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35193
35194         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
35195         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
35196         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
35197         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
35198         svml_d_log2_core-sse2, svml_d_log4_core-sse,
35199         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
35200         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
35201         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
35202         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
35203         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
35204         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
35205         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
35206         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
35207         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
35208         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
35209         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
35210         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
35211         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
35212         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
35213         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
35214         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
35215         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
35216         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
35217         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
35218         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
35219         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
35220         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
35221         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
35222         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
35223         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
35224         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
35225         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
35226         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
35227         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
35228         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
35229         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
35230         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
35231         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
35232         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
35233         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
35234         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
35235         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
35236         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
35237         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
35238         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
35239         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
35240         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
35241         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
35242         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
35243         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
35244         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
35245         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
35246         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
35247         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
35248         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
35249         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
35250         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
35251         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
35252         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
35253         ...
35254         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
35255         Don't include <sysdep.h> nor <init-arch.h>.
35256         (_ZGVbN2v_cos): Removed.
35257         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
35258         ...
35259         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
35260         Don't include <sysdep.h> nor <init-arch.h>.
35261         (_ZGVdN4v_cos): Removed.
35262         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
35263         ...
35264         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
35265         Don't include <sysdep.h> nor <init-arch.h>.
35266         (_ZGVeN8v_cos): Removed.
35267         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
35268         ...
35269         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
35270         Don't include <sysdep.h> nor <init-arch.h>.
35271         (_ZGVbN2v_exp): Removed.
35272         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
35273         ...
35274         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
35275         Don't include <sysdep.h> nor <init-arch.h>.
35276         (_ZGVdN4v_exp): Removed.
35277         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
35278         ...
35279         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
35280         Don't include <sysdep.h> nor <init-arch.h>.
35281         (_ZGVeN8v_exp): Removed.
35282         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
35283         ...
35284         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
35285         Don't include <sysdep.h> nor <init-arch.h>.
35286         (_ZGVbN2v_log): Removed.
35287         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
35288         ...
35289         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
35290         Don't include <sysdep.h> nor <init-arch.h>.
35291         (_ZGVdN4v_log): Removed.
35292         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
35293         ...
35294         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
35295         Don't include <sysdep.h> nor <init-arch.h>.
35296         (_ZGVeN8v_log): Removed.
35297         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
35298         ...
35299         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35300         Don't include <sysdep.h> nor <init-arch.h>.
35301         (_ZGVbN2vv_pow): Removed.
35302         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
35303         ...
35304         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35305         Don't include <sysdep.h> nor <init-arch.h>.
35306         (_ZGVdN4vv_pow): Removed.
35307         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
35308         ...
35309         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35310         Don't include <sysdep.h> nor <init-arch.h>.
35311         (_ZGVeN8vv_pow): Removed.
35312         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
35313         ...
35314         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35315         Don't include <sysdep.h> nor <init-arch.h>.
35316         (_ZGVbN2v_sin): Removed.
35317         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
35318         ...
35319         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35320         Don't include <sysdep.h> nor <init-arch.h>.
35321         (_ZGVbN4v_sin): Removed.
35322         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
35323         ...
35324         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35325         Don't include <sysdep.h> nor <init-arch.h>.
35326         (_ZGVbN8v_sin): Removed.
35327         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
35328         ...
35329         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35330         Don't include <sysdep.h> nor <init-arch.h>.
35331         (_ZGVbN2vvv_sincos): Removed.
35332         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
35333         ...
35334         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35335         Don't include <sysdep.h> nor <init-arch.h>.
35336         (_ZGVdN4vvv_sincos): Removed.
35337         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
35338         ...
35339         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35340         Don't include <sysdep.h> nor <init-arch.h>.
35341         (_ZGVeN8vvv_sincos): Removed.
35342         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
35343         ...
35344         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35345         Don't include <sysdep.h> nor <init-arch.h>.
35346         (_ZGVeN16v_cosf): Removed.
35347         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
35348         ...
35349         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35350         Don't include <sysdep.h> nor <init-arch.h>.
35351         (_ZGVbN4v_cosf): Removed.
35352         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
35353         ...
35354         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35355         Don't include <sysdep.h> nor <init-arch.h>.
35356         (_ZGVdN8v_cosf): Removed.
35357         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
35358         ...
35359         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35360         Don't include <sysdep.h> nor <init-arch.h>.
35361         (_ZGVeN16v_expf): Removed.
35362         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
35363         ...
35364         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35365         Don't include <sysdep.h> nor <init-arch.h>.
35366         (_ZGVbN4v_expf): Removed.
35367         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
35368         ...
35369         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35370         Don't include <sysdep.h> nor <init-arch.h>.
35371         (_ZGVdN8v_expf): Removed.
35372         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
35373         ...
35374         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35375         Don't include <sysdep.h> nor <init-arch.h>.
35376         (_ZGVeN16v_logf): Removed.
35377         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
35378         ...
35379         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35380         Don't include <sysdep.h> nor <init-arch.h>.
35381         (_ZGVbN4v_logf): Removed.
35382         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
35383         ...
35384         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35385         Don't include <sysdep.h> nor <init-arch.h>.
35386         (_ZGVdN8v_logf): Removed.
35387         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
35388         ...
35389         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35390         Don't include <sysdep.h> nor <init-arch.h>.
35391         (_ZGVeN16vv_powf): Removed.
35392         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
35393         ...
35394         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35395         Don't include <sysdep.h> nor <init-arch.h>.
35396         (_ZGVbN4vv_powf): Removed.
35397         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
35398         ...
35399         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35400         Don't include <sysdep.h> nor <init-arch.h>.
35401         (_ZGVdN8vv_powf): Removed.
35402         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
35403         ...
35404         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35405         Don't include <sysdep.h> nor <init-arch.h>.
35406         (_ZGVeN16vvv_sincosf): Removed.
35407         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
35408         ...
35409         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35410         Don't include <sysdep.h> nor <init-arch.h>.
35411         (_ZGVbN4vvv_sincosf): Removed.
35412         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
35413         ...
35414         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35415         Don't include <sysdep.h> nor <init-arch.h>.
35416         (_ZGVdN8vvv_sincosf): Removed.
35417         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
35418         ...
35419         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35420         Don't include <sysdep.h> nor <init-arch.h>.
35421         (_ZGVeN16v_sinf): Removed.
35422         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
35423         ...
35424         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35425         Don't include <sysdep.h> nor <init-arch.h>.
35426         (_ZGVbN4v_sinf): Removed.
35427         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
35428         ...
35429         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35430         Don't include <sysdep.h> nor <init-arch.h>.
35431         (_ZGVdN8v_sinf): Removed.
35432
35433 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35434
35435         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35436         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35437         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35438         s_rint-sse4_1 and s_rintf-sse4_1.
35439         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35440         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35441         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35442         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35443         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35444         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35445         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35446         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35447         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35448         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35449         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
35450         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35451         (__ceil): Removed.
35452         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35453         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
35454         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35455         (__ceilf): Removed.
35456         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35457         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
35458         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35459         (__floor): Removed.
35460         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35461         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
35462         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35463         (__floorf): Removed.
35464         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35465         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
35466         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35467         (__nearbyint): Removed.
35468         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35469         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
35470         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35471         (__nearbyintf): Removed.
35472         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35473         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
35474         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35475         (__rint): Removed.
35476         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35477         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
35478         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35479         (__rintf): Removed.
35480
35481 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35482
35483         * sysdeps/i386/start.S (_start): Check Check PIC instead of
35484         SHARED.  Avoid dynamic relocation against main in static PIE.
35485
35486 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35487
35488         [BZ #21815]
35489         * elf/Makefile (CFLAGS-tst-prelink.c): New.
35490         (LDFLAGS-tst-prelink): Likewise.
35491
35492 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35493
35494         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35495         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35496         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35497         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35498         (INTERNAL_SYSCALL_NCS): Likewise.
35499         (LOADARGS_1): Likewise.
35500         (LOADARGS_5): Likewise.
35501         (RESTOREARGS_1): Likewise.
35502         (RESTOREARGS_5): Likewise.
35503
35504 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35505
35506         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35507         (MEMPCPY_SYMBOL): Likewise.
35508         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35509         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35510         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35511         in libc.a.
35512         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35513         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35514         Likewise.
35515         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35516         (__hidden_ver1): Don't use in libc.a.
35517         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35518         (__mempcpy): Don't create a weak alias in libc.a.
35519         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35520         libc.a.
35521         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35522         (__hidden_ver1): Don't use in libc.a.
35523
35524 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35525
35526         * config.make.in (have-insert): New.
35527         * configure.ac (libc_cv_insert): New.  Set to yes if linker
35528         supports INSERT in linker script.
35529         (AC_SUBST(libc_cv_insert): New.
35530         * configure: Regenerated.
35531         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35532         if $(have-insert) == yes.
35533
35534 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35535
35536         * elf/Makefile (tests): Add vismain only if
35537         $(have-protected-data) == yes.
35538         (tests-pie): Likewise.
35539
35540 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35541
35542         [BZ #21871]
35543         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35544         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35545
35546 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35547
35548         [BZ #21790]
35549         * sysdeps/i386/i586/memset.S
35550         (__memset_zero_constant_len_parameter): Removed.
35551         * sysdeps/i386/i686/memset.S
35552         (__memset_zero_constant_len_parameter): Likewise.
35553         * sysdeps/i386/i686/multiarch/memset_chk.S
35554         (__memset_zero_constant_len_parameter): Likewise.
35555         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35556         Likewise.
35557
35558 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35559
35560         * stdlib/getentropy.c (getentropy): Change return type to int.
35561
35562 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35563
35564         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35565
35566 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
35567
35568         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35569         u_intN_t.
35570         * math/s_nexttowardf.c (__nexttowardf): Likewise.
35571         * sysdeps/generic/math_private.h (ieee_double_shape_type):
35572         Likewise.
35573         (ieee_float_shape_type): Likewise.
35574         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35575         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35576         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35577         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35578         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35579         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35580         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35581         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35582         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35583         Likewise.
35584         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35585         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35586         (__ieee754_yn): Likewise.
35587         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35588         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35589         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35590         Likewise.
35591         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35592         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35593         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35594         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35595         (__erfc): Likewise.
35596         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35597         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35598         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35599         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35600         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35601         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35602         Likewise.
35603         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35604         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35605         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35606         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35607         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35608         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35609         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35610         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35611         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35612         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35613         (__issignaling): Likewise.
35614         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35615         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35616         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35617         Likewise.
35618         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35619         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35620         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35621         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35622         Likewise.
35623         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35624         Likewise.
35625         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35626         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35627         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35628         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35629         (__erfcf): Likewise.
35630         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35631         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35632         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35633         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35634         Likewise.
35635         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35636         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35637         Likewise.
35638         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35639         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35640         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35641         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35642         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35643         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35644         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35645         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35646         Likewise.
35647         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35648         Likewise.
35649         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35650         Likewise.
35651         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35652         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35653         Likewise.
35654         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35655         Likewise.
35656         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35657         (__ieee754_ynl): Likewise.
35658         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35659         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35660         Likewise.
35661         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35662         Likewise.
35663         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35664         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35665         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35666         Likewise.
35667         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35668         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35669         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35670         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35671         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35672         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35673         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35674         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35675         Likewise.
35676         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35677         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35678         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35679         Likewise.
35680         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35681         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35682         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35683         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35684         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35685         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35686         Likewise.
35687         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35688         Likewise.
35689         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35690         Likewise.
35691         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35692         Likewise.
35693         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35694         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35695         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35696         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35697         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35698         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35699         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35700         Likewise.
35701         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35702         Likewise.
35703         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35704         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35705         Likewise.
35706         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35707         (__ieee754_remainderl): Likewise.
35708         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35709         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35710         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35711         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35712         Likewise.
35713         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35714         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35715         Likewise.
35716         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35717         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35718         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35719         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35720         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35721         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35722         Likewise.
35723         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35724         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35725         (__ieee754_y0l): Likewise.
35726         (pzero): Likewise.
35727         (qzero): Likewise.
35728         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35729         (__ieee754_y1l): Likewise.
35730         (pone): Likewise.
35731         (qone): Likewise.
35732         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35733         (__ieee754_ynl): Likewise.
35734         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35735         (__ieee754_lgammal_r): Likewise.
35736         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35737         Likewise.
35738         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35739         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35740         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35741         (__erfcl): Likewise.
35742         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35743         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35744         Likewise.
35745         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35746         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35747         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35748         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35749         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35750         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35751         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35752         Likewise.
35753         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35754         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35755         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35756         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35757         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35758         Likewise.
35759         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35760         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35761         Likewise.
35762         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35763         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35764         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35765         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35766         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35767
35768 2017-08-03  Florian Weimer  <fweimer@redhat.com>
35769
35770         [BZ #21885]
35771         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35772         on memory allocation failure.
35773
35774 2017-08-03  Alan Modra  <amodra@gmail.com>
35775
35776         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35777         tst-tlsopt-powerpc.c with function name change and no test harness.
35778         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35779         Call tls_get_addr_opt_test.
35780         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35781         (modules-names): Add mod-tlsopt-powerpc.
35782         (mod-tlsopt-powerpc.so-no-z-defs): Define.
35783         (tst-tlsopt-powerpc): Depend on .so.
35784         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35785         define.  Expand use in TLS_GD and TLS_LD.
35786
35787 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35788
35789         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35790         function.
35791         * sysdeps/posix/shm_open.c: Include <pthread.h>.
35792
35793 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35794
35795         [BZ #21686]
35796         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35797         comparing size with that of double.
35798         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35799         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35800         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35801         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35802         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35803         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35804         unsigned __int128 types.
35805
35806 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
35807
35808         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35809         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35810         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35811         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35812         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35813
35814 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35815
35816         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35817
35818 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35819
35820         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35821         of SHARED.
35822         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35823         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35824         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35825         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35826         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35827         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35828         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35829
35830 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35831
35832         [BZ #21685]
35833         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35834         bit-field expressions passed to sizeof or typeof.
35835         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35836         (__TGMATH_F128): Likewise.
35837         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35838         (__TGMATH_CF128): Likewise.
35839         (__TGMATH_UNARY_REAL_ONLY): Likewise.
35840         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35841         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35842         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35843         (__TGMATH_BINARY_REAL_ONLY): Likewise.
35844         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35845         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35846         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35847         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35848         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35849         (__TGMATH_UNARY_REAL_IMAG): Likewise.
35850         (__TGMATH_UNARY_IMAG): Likewise.
35851         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35852         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35853         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35854         type.
35855         (define_vars_for_type): Handle bit_field type specially.
35856         (Tests.__init__): Declare structure with bit-field element.
35857
35858 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35859
35860         [BZ #21791]
35861         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35862         (MEMCPY_CHK): Define only if SHARED is defined.
35863         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35864         Likewise.
35865         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35866         Likewise.
35867
35868 See ChangeLog.18 for earlier changes.