a3348ea227b4ae5577e8e7acb73b2a46e0a80f5a
[external/glibc.git] / ChangeLog
1 2019-06-24  Grzegorz Kulik  <gregorykkulik@gmail.com>
2
3         [BZ #24652]
4         * localedata/locales/szl_PL (abday): Spelling corrections.
5         (day): Likewise.
6         (abmon): Likewise.
7         (mon): Rename to...
8         (alt_mon): This, then apply spelling corrections.
9         (mon): New entry, month names in the genitive case.
10
11 2019-06-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
12
13         [BZ #23831]
14         * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
15         * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
16         (thousands_sep): Likewise.
17         (grouping): Set to 3;3.
18
19 2019-06-21  Tobias Klauser  <tklauser@distanz.ch>
20
21         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
22         PREPARE_VERSION_KNOWN.
23         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
24         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
25         define.
26         (VDSO_HASH_LINUX_2_6_39): Likewise.
27         (VDSO_NAME_LINUX_4_9): Likewise.
28         (VDSO_HASH_LINUX_4_9): Likewise.
29         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
30         * sysdeps/unix/sysv/linux/powerpc/init-first.c
31         (_libc_vdso_platform_setup): Likewise.
32         * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
33         * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
34         Likewise.
35         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
36         Likewise.
37
38 2019-06-20  Mike Crowe  <mac@mcrowe.com>
39
40         * nptl/eintr.c: Use libsupport.
41         * nptl/tst-eintr1.c: Likewise.
42         * nptl/tst-eintr2.c: Likewise.
43         * nptl/tst-eintr3.c: Likewise.
44         * nptl/tst-eintr4.c: Likewise.
45         * nptl/tst-eintr5.c: Likewise.
46         * nptl/tst-mutex-errorcheck.c: Likewise.
47         * nptl/tst-mutex5.c: Likewise.
48
49         * support/test-driver.h: Add verbose_printf macro.
50
51         * support/xtime.h: Add xclock_now() helper function.
52
53 2019-06-20  Dmitry V. Levin  <ldv@altlinux.org>
54             Florian Weimer  <fweimer@redhat.com>
55
56         [BZ #24228]
57         * libio/genops.c (_IO_unbuffer_all)
58         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
59         buffers and access _IO_FILE_complete members of legacy libio streams.
60         * libio/tst-bz24228.c: New file.
61         * libio/tst-bz24228.map: Likewise.
62         * libio/Makefile [build-shared] (tests): Add tst-bz24228.
63         [build-shared] (generated): Add tst-bz24228.mtrace and
64         tst-bz24228.check.
65         [run-built-tests && build-shared] (tests-special): Add
66         $(objpfx)tst-bz24228-mem.out.
67         (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
68         ($(objpfx)tst-bz24228-mem.out): New rule.
69
70 2019-06-19  Paul A. Clarke  <pc@us.ibm.com>
71
72         * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
73         * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
74         (__FPU_MFFSL): Likewise.
75         (_FPU_SETCW): Likewise.
76
77 2019-06-19  Stan Shebs  <stanshebs@google.com>
78             Raoni Fassina Firmino  <raoni@linux.ibm.com>
79
80         [BZ #24640]
81         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
82         [!SHARED] (__get_timebase_freq): Fix sense of a test in the
83         static-linking version.
84         * sysdeps/unix/sysv/linux/powerpc/Makefile
85         (tests-static): Add test-gettimebasefreq-static.
86         (tests): Likewise.
87         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
88         New file.
89
90 2019-06-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
91
92         [BZ #24614]
93         * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
94         between the currency symbol and the minus sign).
95         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
96
97 2019-06-19  Stefan Liebler  <stli@linux.ibm.com>
98
99         [BZ #24556]
100         * string/test-strcasestr.c (check_result): Add NULL check.
101         * nss/tst-field.c (check_rewrite): Likewise.
102         * benchtests/bench-strstr.c (do_one_test): Likewise.
103         * string/test-strstr.c (check_result): Likewise.
104         * argp/argp-test.c (popt): Increase size of buf to 12.
105         * benchtests/bench-malloc-simple.c (bench):
106         Do not initialize tests array out of bounds.
107
108 2019-06-19  Florian Weimer  <fweimer@redhat.com>
109
110         [BZ #24166]
111         * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
112         dls_serpath field.
113
114 2019-06-18  Florian Weimer  <fweimer@redhat.com>
115
116         [BZ #24323]
117         * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
118         * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
119         fail when called from dlopen.
120         * elf/Makefile [have-fpie && build-shared] (tests): Add
121         tst-dlopen-pie.
122         (tst-dlopen-pie): Link with -ldl.
123         (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
124         * elf/tst-dlopen-pie.c (do_test): New file.
125
126 2019-06-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
127
128         [BZ #24614]
129         * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
130         * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
131         between the currency symbol and the minus sign).
132         (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
133         * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
134
135 2019-06-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
136
137         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
138         sysdep-rtld-routines): Remove rules.
139         * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
140         Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
141         (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
142         __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
143         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
144         (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
145         vDSO path for SHARED.
146         * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
147         * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
148         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
149         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
150         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
151         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
152
153         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
154         (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
155         s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
156         (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
157         CFLAGS-s_llround-power5+.c): New rule.
158         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
159         New file.
160         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
161         Likewise.
162         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
163         Likewise.
164         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
165         Likewise.
166         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
167         Likewise.
168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
169         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
171         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
173         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
174         * sysdeps/powerpc/powerpc64/fpu/Makefile
175         [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
176         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
177         (libm-sysdep_routines): Remove s_llround-* objects.
178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
179         file.
180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
181         Likewise.
182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
183         Likewise.
184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
185         Likewise.
186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
187         Likewise.
188         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
189         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
190         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
191         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
192         * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
193         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
194         * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
195         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
196         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
197         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
198         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
199         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
200         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
201         * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
202
203         * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
204         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
205         * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
206         * sysdeps/powerpc/powerpc32/fpu/Makefile
207         [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
208         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
209         optimization.
210         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
211         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
212         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
214         (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
215         CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
216         CFLAGS-s_lrint-ppc32.c): New rule.
217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
218         Remove file.
219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
220         Likewise.
221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
222         Likewise.
223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
224         Likewise.
225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
226         Likewise.
227         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
228         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
229         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
230         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
232         New file.
233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
234         Likewise.
235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
236         Likewise.
237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
238         Likewise.
239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
240         Likewise.
241
242         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
243         (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
244         s_llrint-ppc64.
245         (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
246         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
247         file.
248         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
249         Likewise.
250         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
251         Likewise.
252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
253         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
255         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
257         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
258         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
259         * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
260         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
261         (libm-sysdep_routines): Remove s_llrint-* objects.
262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
263         file.
264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
265         Likewise.
266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
267         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
268         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
269         * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
270         * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
271         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
272         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
273         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
274         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
275         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
276
277 2019-06-14  Florian Weimer  <fweimer@redhat.com>
278
279         * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
280         argument to __glibc_has_include to inhibit macro expansion.
281
282 2019-06-14  Florian Weimer  <fweimer@redhat.com>
283
284         * misc/sys/cdefs.h (__glibc_has_include): Do not use a
285         function-like macro, so that __has_include can inhibit expansion
286         of its argument.
287
288 2019-06-13  Joseph Myers  <joseph@codesourcery.com>
289
290         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
291         New macro.
292
293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
294         Allow memset in libc.so.
295
296 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
297
298         * sysdeps/aarch64/dl-dtprocnum.h: New file.
299         * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
300         (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
301         (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
302         symbols at load time.
303         * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
304
305 2019-06-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
306
307         * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
308         (DT_AARCH64_VARIANT_PCS): Define.
309
310 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
311
312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
313         (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
314         objects.
315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
316         Remove file.
317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
318         Likewise.
319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
321         Likewise.
322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
323         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
324         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
325         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
326         Remove s_finite* objects.
327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
333         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
334         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
335         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
336         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
337
338         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
339         * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
340
341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
342         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
343         objects.
344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
345         Remove file.
346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
347         Likewise.
348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
350         Likewise.
351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
352         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
353         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
354         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
355         Remove s_isinf* and s_isinf* objects.
356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
362         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
363         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
364         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
365         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
366
367         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
368         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
369
370         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
371         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
372         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
374         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
375         s_isnanf-* objects.
376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
377         Remove file
378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
379         Likewise.
380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
381         Likewise.
382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
383         Likewise.
384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
386         Likewise.
387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
388         Likewise.
389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
390         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
391         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
392         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
393         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
394         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
395         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
396         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
397         Remove s_isnan-* and s_isnanf-* objects.
398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
401         Likewise.
402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
407         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
408         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
409         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
410         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
411         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
412         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
413         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
414         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
415
416         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
417         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
418
419         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
420         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
421         CFLAGS-bench-isfinite.c): New rule.
422         * benchtests/isnan-input: New file.
423         * benchtests/isinf-input: New file.
424         * benchtests/isfinite-input: New file.
425
426         * sysdeps/powerpc/fpu/s_copysign.c: New file.
427         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
428         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
429         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
431         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
432         s_copysign-ppc32.
433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
434         Remove file.
435         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
436         Likewise.
437         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
438         Likewise.
439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
440         Likewise.
441         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
442         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
443         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
444         Remove s_copysign-power6 s_copysign-ppc64.
445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
446         Remove file.
447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
448         Likewise.
449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
451         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
452         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
453         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
454         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
455
456         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
457         round_to_integer_float, round_mode): Add RINT handling.
458         (reset_fenv_mode): New symbol.
459         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
460         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
461         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
462         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
463         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
464         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
465
466 2019-06-12  Florian Weimer  <fweimer@redhat.com>
467
468         [BZ #24632]
469         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
470         * libio/freopen.c (freopen): Use it.
471
472 2019-06-12  Florian Weimer  <fweimer@redhat.com>
473
474         Linux: Deprecate sysctl.
475         * include/sysctl.h (__sysctl): Remove declaration.
476         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
477         check.
478         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
479         (sysctl): Add deprecation attribute.
480         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
481         directly, to avoid the deprecation warning.  Do not include
482         <string.h>.
483         (__sysctl): Remove hidden alias.
484
485 2019-06-12  Florian Weimer  <fweimer@redhat.com>
486
487         Linux: Use kernel headers for statx definitions if available.
488         * include/bits/statx-generic.h: New file.
489         * include/bits/types/struct_statx.h: Likewise.
490         * include/bits/types/struct_statx_timestamp.h: Likewise.
491         * io/Makefile (headers): Add bits/statx-generic.h.
492         * io/bits/statx-generic.h: New file.  Partly copied from
493         io/bits/statx.h.
494         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
495         define original_statx.
496         * io/bits/types/struct_statx.h: Likewise.
497         * io/bits/types/struct_statx_timestamp.h: Likewise.
498         (statx_generic): Use original_statx.
499         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
500         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
501
502 2019-06-12  Florian Weimer  <fweimer@redhat.com>
503
504         * misc/sys/cdefs.h (__glibc_has_include): Define.
505
506 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
507
508         * string/memmem.c (__memmem): Rewrite to improve performance.
509
510 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
511
512         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
513         warning.
514         (two_way_long_needle): Block inlining.
515         * string/strstr.c (strstr2): Add new function.
516         (strstr3): Likewise.
517         (STRSTR): Completely rewrite strstr to improve performance.
518
519 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
520
521         * benchtests/bench-strstr.c (test_hard_needle): New function.
522
523 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
524
525         * malloc/tst-calloc.c: Include <libc-diag.h>.
526         (null_test): Ignore -Wunused-result around calls to calloc.
527         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
528         (do_test): Ignore -Wunused-result around call to malloc.
529
530 2019-06-07  Florian Weimer  <fweimer@redhat.com>
531
532         Linux: Add getdents64 system call.
533         * include/dirnent.h (getdents): Add comment and change buffer
534         argument type to void *.
535         (getdents64): Likewise.  Add hidden prototype.
536         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
537         getdents64.
538         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
539         Add tst-getdents64.
540         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
541         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
542         argument type to void *.
543         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
544         Add hidden definition and getdents64 alias.
545         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
546         Likewise.
547         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
548         * manual/filesys.texi (Accessing Directories): Add Low-level
549         Directory Access node reference.
550         (Opening a Directory): Cross-reference it.
551         (Low-level Directory Access): New node.
552         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
553         getdents64.
554         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
555         Likewise.
556         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
557         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
558         Likewise.
559         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
560         Likewise.
561         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
562         Likewise.
563         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
564         Likewise.
565         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
566         Likewise.
567         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
568         Likewise.
569         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
570         Likewise.
571         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
572         (GLIBC_2.30): Likewise.
573         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
574         (GLIBC_2.30): Likewise.
575         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
576         (GLIBC_2.30): Likewise.
577         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
578         (GLIBC_2.30): Likewise.
579         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
580         Likewise.
581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
582         (GLIBC_2.30): Likewise.
583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
584         (GLIBC_2.30): Likewise.
585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
586         (GLIBC_2.30): Likewise.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
588         (GLIBC_2.30): Likewise.
589         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
590         Likewise.
591         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
592         Likewise.
593         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
594         Likewise.
595         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
596         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
597         Likewise.
598         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
599         Likewise.
600         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
601         Likewise.
602         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
603         Likewise.
604
605 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
606
607         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
608         (__FPU_MFFS): New.
609         (__FPU_MFFSL): New.
610         (_FPU_GET_RC): New.
611         (_FPU_GETCW): Use __FPU_MFFS().
612         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
613
614 2019-06-06  Florian Weimer  <fweimer@redhat.com>
615
616         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
617         internal GCC preprocessor identifier __has_include__.
618
619 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
620
621         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
622         with call to equivalent function.
623
624 2019-06-04  Florian Weimer  <fweimer@redhat.com>
625
626         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
627         (do_release_shlib): Adjust for __twalk_r.
628         (__gconv_release_shlib): Call __twalk_r.
629
630 2019-06-04  Andreas Schwab  <schwab@suse.de>
631
632         [BZ #18830]
633         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
634         no irreversible characters occurred.
635         * iconv/gconv_simple.c (internal_ucs4_loop)
636         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
637         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
638         (ucs4_internal_loop_single, internal_ucs4le_loop)
639         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
640         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
641         (ucs4le_internal_loop_single): Add const to outend.
642         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
643         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
644         * iconv/Makefile (tests): Add tst-iconv7.
645         * iconv/tst-iconv7.c: New file.
646
647 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
648
649         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
650
651 2019-06-01  Florian Weimer  <fweimer@redhat.com>
652
653         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
654         * sysdeps/unix/sysv/linux/arm/Makefile
655         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
656         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
657         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
658         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
659         compatibility symbols.
660
661 2019-05-31  Florian Weimer  <fweimer@redhat.com>
662
663         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
664         system calls for the arm architecture: breakpoint, get_tls,
665         set_tls, usr26, usr32.
666
667 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
668
669         * sysdeps/powerpc/Makefile
670         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
671         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
672         Declare '.machine power7' to get support for ldbrx.
673         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
674         directive based on the directory of the file.
675         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
676         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
677         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
678         '.machine' directive.
679         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
680         (VADDUQM_V7_V8): Remove.
681         (__STRCASECMP): Replace macros with actual instructions.
682         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
683         '.machine' directive.
684         (VCLZD_V8_v7): Remove.
685         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
686
687 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
688
689         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
690         Remove file.
691         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
692
693 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
694
695         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
696         NEARBYINT handling.
697         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
698         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
699         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
700         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
701         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
702         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
703
704 2019-05-28  mansayk  <6688000@gmail.com>
705
706         [BZ #24370]
707         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
708
709 2019-05-28  mansayk  <6688000@gmail.com>
710
711         [BZ #24369]
712         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
713         (abmon): Likewise, but remove the trailing dots.
714
715 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
716
717         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
718
719 2019-05-27  Florian Weimer  <fweimer@redhat.com>
720
721         * nptl/nptl-init.c: Add comment.
722
723 2019-05-24  Florian Weimer  <fweimer@redhat.com>
724
725         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
726         struct in_addr/struct in6_addr alignment.
727
728 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
729
730         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
731         (F_SEAL_FUTURE_WRITE): New macro.
732
733 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
734
735        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
736        * elf/tst-ldconfig-bad-aux-cache.c: New file.
737        * elf/tst-ldconfig_aux-cache.root: New directory.
738        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
739        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
740        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
741
742 2019-05-22  Zack Weinberg  <zackw@panix.com>
743
744         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
745         host type.
746         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
747         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
748
749         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
752         Delete.
753
754         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
755         Issue an #error if used with a compiler in SPE-float mode.
756         * sysdeps/powerpc/powerpc32/__longjmp_common.S
757         * sysdeps/powerpc/powerpc32/setjmp_common.S
758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
764         Remove code to preserve SPE register state.
765
766         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
767         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
768         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
769         Remove __SPE__ ifndefs.
770
771 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
772
773         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
774         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
775         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
776         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
777         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
778         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
779         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
780         (INNER_LOOP_ITERS_MEDIUM): New define.
781         (INNER_LOOP_ITERS_SMALL): New define.
782         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
783         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
784         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
785         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
786         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
787
788 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
789
790         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
791         New define.
792         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
793         (SEMTIMEDOP_IPC_ARGS): Likewise.
794
795 2019-05-21  Florian Weimer  <fweimer@redhat.com>
796
797         [BZ #24584]
798         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
799         before updating __counter field and release it afterwards.  Add
800         overflow check.
801         * iconv/gconv.h (struct __gconv_step): Mention synchronization
802         requirement for __counter member.
803
804 2019-05-21  Florian Weimer  <fweimer@redhat.com>
805
806         [BZ #24583]
807         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
808         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
809         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
810         instead of __gconv_release_step.
811         * libio/Makefile (tests): Add tst-wfile-gconv.
812         (tests-container): Add tst-wfile-ascii.
813         (tst-wfile-gconv-ENV): Enable mtrace.
814         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
815         (tests-special): Add tst-wfile-gconv-mem.out.
816         (tst-wfile-gconv.out): Depend on locales.
817         (tst-wfile-gconv-mem.out): Add mtrace rule.
818         * libio/tst-wfile-ascii.c: New file.
819         * libio/tst-wfile-gconv.c: Likewise.
820
821 2019-05-20  Florian Weimer  <fweimer@redhat.com>
822
823         [BZ #24588]
824         libio: Remove codecvt vtable.
825         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
826         __libio_codecvt.
827         * libio/iofgetpos.c (_IO_new_fgetpos): Call
828         __libio_codecvt_encoding.
829         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
830         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
831         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
832         * libio/iofwide.c (__libio_codecvt): Remove variable.
833         (_IO_fwide): Do not copy __libio_codecvt.
834         (__libio_codecvt_out): Rename from do_out and export.
835         (do_unshift): Remove function.
836         (__libio_codecvt_in): Rename from do_in and export.
837         (__libio_codecvt_encoding): Rename from do_encoding and export.
838         (do_always_noconv): Remove function.
839         (__libio_codecvt_length): Rename from do_length and export.
840         (do_max_length): Remove function.
841         * libio/libio.h (enum __codecvt_result): Remove definition; moved
842         to libioP.h.
843         (struct _IO_codecvt): Remove fields __codecvt_destr,
844         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
845         __codecvt_do_encoding, __codecvt_do_always_noconv,
846         __codecvt_do_length, __codecvt_do_max_length.
847         * libio/libioP.h (enum __codecvt_result): Define; moved from
848         libio.h.
849         (__libio_codecvt_out, __libio_codecvt_in)
850         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
851         functions.
852         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
853         (_IO_wfile_underflow): Call __libio_codecvt_in.
854         (_IO_wfile_underflow): Likewise.
855         (_IO_wfile_underflow_mmap): Likewise.
856         (_IO_wfile_sync): Call __libio_codecvt_encoding,
857         __libio_codecvt_length.
858         (adjust_wide_data): Call __libio_codecvt_encoding,
859         __libio_codecvt_in.
860         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
861         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
862         __libio_codecvt_length.
863
864 2019-05-20  Florian Weimer  <fweimer@redhat.com>
865
866         * support/support.h (support_sbindir_prefix): Declare.
867         (support_install_rootsbindir): Update comment.
868         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
869         * support/support_paths.c (support_sbindir_prefix): Define.
870
871 2019-05-20  Mike Crowe  <mac@mcrowe.com>
872
873         * support/timespec.c: Add backslash to correct newline in failure
874         message.
875
876         * support/timespec.h: Correct confusing comment.
877
878 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
879
880         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
881         define.
882         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
883         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
884         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
885         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
886
887         [BZ #24570]
888         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
889         usage.
890
891 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
892
893         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
894         (NT_ARM_PACG_KEYS): Likewise.
895
896 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
897
898         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
899         (tcache_put): Remove redundant assert.
900         (tcache_get): Remove redundant asserts.
901         (__libc_malloc): Check tcache count is not zero.
902         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
903
904 2019-05-17  Florian Weimer  <fweimer@redhat.com>
905
906         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
907
908 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
909
910         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
911         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
912         0x050100].
913         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
914         Likewise.
915         * sysdeps/unix/sysv/linux/sh/kernel-features.h
916         (__ASSUME_STATX): Likewise.
917
918 2019-05-16  Florian Weimer  <fweimer@redhat.com>
919
920         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
921         flags argument.
922         (LINE_PARSER): Do not map IPv4 addresses.
923         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
924         to parse_line.
925         (_nss_nis_gethostent_r): Always pass AF_INET to
926         internal_nis_gethostent_r.
927         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
928         to parse_line.
929         (_nss_nis_gethostbyname2_r): Adjust call to
930         internal_nis_gethostent_r.
931         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
932         call to internal_nis_gethostent_r.
933         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
934         from parse_line.
935         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
936         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
937         Remove flags argument.  Do not map IPv4 addresses.
938         (internal_nisplus_gethostent_r): Adjust call to
939         _nss_nisplus_parse_hostent.
940         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
941         to _nss_nisplus_parse_hostent.
942         (_nss_nisplus_gethostbyname2_r): Adjust call to
943         internal_gethostbyname2_r.
944         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
945         Adjust call to internal_gethostbyname2_r.
946         (_nss_nisplus_gethostbyaddr_r): Adjust call to
947         _nss_nisplus_parse_hostent.
948         (_nss_nisplus_gethostbyname4_r): Adjust call to
949         internal_gethostbyname2_r.
950
951 2019-05-16  Florian Weimer  <fweimer@redhat.com>
952
953         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
954         Remove flags.
955         (LINE_PARSER): Remove address mapping.
956         (EXTRA_ARGS_VALUE): Remove flags argument.
957         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
958         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
959         gethostbyname3_multi.
960         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
961         _nss_files_gethostbyname3_r.
962         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
963
964 2019-05-16  Florian Weimer  <fweimer@redhat.com>
965
966         * support/support_test_compare_blob.c (report_blob): Report
967         incorrect NULL blobs.
968
969 2019-05-15  Mark Wielaard  <mark@klomp.org>
970
971         [BZ# 24476]
972         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
973         __libc_once_get (once) and static_buf == NULL.
974         (__dlerror): Check we have a valid key, set result to static_buf
975         otherwise.
976
977 2019-05-15  Andreas Schwab  <schwab@suse.de>
978
979         [BZ #20568]
980         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
981         __codecvt_do_length.
982         * libio/Makefile (tests): Add tst-wfile-sync.
983         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
984         * libio/tst-wfile-sync.c: New file.
985         * libio/tst-wfile-sync.input: New file.
986
987 2019-05-15  Florian Weimer  <fweimer@redhat.com>
988
989         nss: Turn __nss_database_lookup into a compatibility symbol.
990         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
991         __nss_database_lookup.
992         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
993         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
994         __nss_database_lookup.
995         (__nss_next): Move to …
996         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
997         unconditionally.
998         (__nss_database_lookup): New function.
999         * nss/Versions (GLIBC_2.0): Update comment.
1000         (GLIBC_PRIVATE): Export __nss_database_lookup2.
1001         * grp/initgroups.c (internal_getgrouplist): Call
1002         __nss_database_lookup2 instead of __nss_database_lookup.
1003         * nscd/aicache.c (addhstaiX): Likewise.
1004         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1005         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1006         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1007         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1008         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1009         Likewise.
1010         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1011         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1012         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1013
1014 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
1015
1016         * support/support.h (support_install_rootsbindir): New variable.
1017         * support/support_paths.c: Likewise.
1018         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1019
1020 2019-05-15  Florian Weimer  <fweimer@redhat.com>
1021
1022         * iconv/gconv.h (__gconv_transliterate): Move declaration …
1023         * iconv/gconv_int.h (__gconv_transliterate): … here.
1024         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1025         * iconv/skeleton.c: Likewise.
1026
1027 2019-05-14  Florian Weimer  <fweimer@redhat.com>
1028
1029         Linux: Add the tgkill function.
1030         * bits/signal_ext.h: New file.
1031         * manual/signal.texi (Signaling Another Process): Document tgkill.
1032         * signal/Makefile (headers): Add bits/signal_ext.h.
1033         * signal/signal.h: Include <bits/signal_ext.h>.
1034         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1035         (tst-tgkill): Link with libpthread.
1036         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1037         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1038         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1039         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1040         tgkill.
1041         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1042         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1043         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1044         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1045         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1046         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1047         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1048         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1049         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1050         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1051         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1052         Likewise.
1053         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1054         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1055         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1057         Likewise.
1058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1059         Likewise.
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1061         Likewise.
1062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1063         Likewise.
1064         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1065         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1066         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1067         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1068         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1069         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1070         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1071         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1072
1073 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
1074
1075         * manual/search.texi (Tree Search Function): Adjust twalk_r
1076         documentation.
1077
1078 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1079
1080         [BZ #24544]
1081         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1082         pre-defined value.
1083
1084         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1085         * support/support.h (support_bindir_prefix): New variable.
1086         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1087
1088         * config.make.in (bindir): New variable.
1089
1090         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1091         (lll_trylock): Call __lll_trylock.
1092         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1093         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1094         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1095         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1096         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1097         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1098         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1099         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1100         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1101         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1102         lowlevellock-futex.h.
1103
1104         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1105         initialization for LLL_LOCK_INITIALIZER different than 0.
1106         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1107         Assume LLL_LOCK_INITIALIZER being 0.
1108         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1109         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1110         Likewise.
1111         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1112         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1113
1114         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1115         Optimize futex call and add systemtap probe.
1116
1117         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1118         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1119         __libc_disable_asynccancel, __librt_enable_asynccancel,
1120         __libc_disable_asynccancel, __librt_enable_asynccancel,
1121         __librt_disable_asynccancel): Move to ...
1122         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1123         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1124         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1125         * sysdeps/generic/single-thread.h: New file.
1126         * sysdeps/unix/sysdep.h: Include single-thread.h.
1127         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1128         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1129
1130 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
1131
1132         [BZ #24535]
1133         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1134         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1135         Unicode 12.1.0.
1136         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1137         * localedata/unicode-gen/PropList.txt: Likewise.
1138         * localedata/unicode-gen/UnicodeData.txt: Likewise.
1139         * localedata/charmaps/UTF-8: Regenerate.
1140         * localedata/locales/i18n_ctype: Likewise.
1141         * localedata/locales/tr_TR: Likewise.
1142         * localedata/locales/translit_circle: Likewise.
1143         * localedata/locales/translit_cjk_compat: Likewise.
1144         * localedata/locales/translit_combining: Likewise.
1145         * localedata/locales/translit_compat: Likewise.
1146         * localedata/locales/translit_font: Likewise.
1147         * localedata/locales/translit_fraction: Likewise.
1148
1149 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
1150
1151         [BZ #24531]
1152         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1153         (do_set_tcache_count): Only update if count is small enough.
1154         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1155
1156 2019-05-10  Florian Weimer  <fweimer@redhat.com>
1157
1158         * nptl/sem_close.c (struct walk_closure): Define.
1159         (walker): Adjust for __twalk_r.
1160         (sem_close): Call __twalk_r.
1161
1162 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1163
1164         * support/timespec.c (test_timespec_before_impl,
1165         test_timespec_equal_or_after_impl): print timespec member as intmax_t
1166         insted of long int.
1167
1168 2019-05-09  Mike Crowe <mac@mcrowe.com>
1169
1170         * nptl/tst-abstime.c: Use libsupport.
1171
1172         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1173         small bug where only tv.tv_usec was checked which could cause an
1174         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1175         than a second.
1176
1177         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1178         libsupport.
1179
1180         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1181         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1182
1183         * nptl/tst-cond11.c: Use libsupport.
1184
1185         * support/timespec.h: New file.  Provide timespec helper functions
1186         along with macros in the style of those in check.h.
1187         * support/timespec.c: New file.  Implement check functions declared
1188         in support/timespec.h.
1189         * support/timespec-add.c: New file from gnulib containing
1190         timespec_add implementation that handles overflow.
1191         * support/timespec-sub.c: New file from gnulib containing
1192         timespec_sub implementation that handles overflow.
1193         * support/README: Mention timespec.h.
1194
1195 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1196
1197         [BZ #24537]
1198         * nptl/Makefile: Move tst-eintr1 to xtests.
1199
1200 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1201
1202         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1203          TRUNC handling.
1204         (round_mode): Add definition for TRUNC.
1205         * sysdeps/powerpc/fpu/s_trunc.c: New file.
1206         * sysdeps/powerpc/fpu/s_truncf.c: New file.
1207         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1208         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1209         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1210         Likewise.
1211         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1212         Likewise.
1213         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1214         Likewise.
1215         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1216         Likewise.
1217         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1218         file.
1219         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1220         Likewise.
1221         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1222         Likewise.
1223         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1224         Likewise.
1225         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1226         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1227         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1228         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1229         s_truncf-power5+, and s_truncf-ppc64.
1230         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1231         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1232         file.
1233         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1235         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1236         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1237         file.
1238         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1239         Likewise.
1240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1241         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1242         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1243         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1244         s_truncf-power5+, and s_truncf-ppc64.
1245         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1246         file.
1247         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1248         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1249         Likewise.
1250         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1251         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1252         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1253         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1254         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1255
1256         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1257         ROUND handling.
1258         (round_mode): Add definition for ROUND.
1259         (round_to_integer_float): Likewise.
1260         * sysdeps/powerpc/fpu/s_round.c: New file.
1261         * sysdeps/powerpc/fpu/s_roundf.c: New file.
1262         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1263         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1264         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1265         Likewise.
1266         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1267         Likewise.
1268         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1269         Likewise.
1270         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1271         Likewise.
1272         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1273         file.
1274         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1275         Likewise.
1276         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1277         Likewise.
1278         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1279         Likewise.
1280         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1281         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1282         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1283         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1284         s_roundf-power5+, and s_roundf-ppc64.
1285         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1286         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1287         file.
1288         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1290         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1291         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1292         file.
1293         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1294         Likewise.
1295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1296         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1297         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1298         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1299         s_roundf-power5+, and s_roundf-ppc64.
1300         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1301         file.
1302         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1303         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1304         Likewise.
1305         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1307         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1308         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1309         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1310
1311         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1312         Add FLOOR option.
1313         (round_mode): Add definition for FLOOR.
1314         * sysdeps/powerpc/fpu/s_floor.c: New file.
1315         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1316         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1317         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1319         Remove file.
1320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1321         Likewise
1322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1323         Likewise.
1324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1325         Likewise.
1326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1327         New file.
1328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1329         Likewise.
1330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1331         Likewise.
1332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1333         Likewise.
1334         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1335         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1336         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1337         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1338         s_floorf-power5+, and s_floorf-ppc64.
1339         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1340         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1341         file.
1342         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1344         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1345         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1346         file.
1347         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1348         Likewise.
1349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1350         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1351         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1352         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1353         s_floorf-power5+, and s_floorf-ppc64.
1354         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1355         file.
1356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1357         file.
1358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1359         Likewise.
1360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1361         Likewise.
1362         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1363         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1364         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1365         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1366
1367 2019-05-08  Mike Crowe  <mac@mcrowe.com>
1368
1369         * support/xclock_gettime.c (xclock_gettime): New file. Provide
1370         clock_gettime wrapper for use in tests that fails the test rather
1371         than returning failure.
1372
1373         * support/xtime.h: New file to declare xclock_gettime.
1374
1375         * support/Makefile: Add xclock_gettime.c.
1376
1377         * support/README: Mention xtime.h.
1378
1379 2019-05-08  Florian Weimer  <fweimer@redhat.com>
1380
1381         malloc/tst-mallocfork2: Use process-shared barriers.
1382         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1383         (signal_count, sigusr1_sender_pid): Remove.
1384         (iterations): Define constant.
1385         (shared): New variable.
1386         (sigusr1_received): Update comment.
1387         (sigusr1_handler): Do not send SIGSTOP to the sender process.
1388         (signal_sender): Optional use barriers to avoid sending signals
1389         during irrelevant times.
1390         (do_it): Initialize variable shared.  Use xfork for error
1391         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
1392         the iteration count, independent of signal delivery.  Check for
1393         deadlocks in fork.  Introduce barriers for reducing signal
1394         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
1395         replaced by the barriers.  Count signals during fork/free/malloc
1396         and report them.
1397         * malloc/Makefile (tst-mallocfork): Link with libpthread.
1398
1399 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
1400
1401         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1402         version to 5.1.
1403         (clock_adjtime64) New syscall.
1404         (clock_getres_time64) Likewise.
1405         (clock_gettime64) Likewise.
1406         (clock_nanosleep_time64) Likewise.
1407         (clock_settime64) Likewise.
1408         (futex_time64) Likewise.
1409         (io_pgetevents_time64) Likewise.
1410         (io_uring_enter) Likewise.
1411         (io_uring_register) Likewise.
1412         (io_uring_setup) Likewise.
1413         (mq_timedreceive_time64) Likewise.
1414         (mq_timedsend_time64) Likewise.
1415         (pidfd_send_signal) Likewise.
1416         (ppoll_time64) Likewise.
1417         (pselect6_time64) Likewise.
1418         (recvmmsg_time64) Likewise.
1419         (rt_sigtimedwait_time64) Likewise.
1420         (sched_rr_get_interval_time64) Likewise.
1421         (semtimedop_time64) Likewise.
1422         (timer_gettime64) Likewise.
1423         (timer_settime64) Likewise.
1424         (timerfd_gettime64) Likewise.
1425         (timerfd_settime64) Likewise.
1426         (utimensat_time64) Likewise.
1427
1428         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1429         version to 9 branch.
1430
1431 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1432
1433         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1434         __memmove_thunderx2 to the list of implementations
1435         * sysdeps/aarch64/multiarch/memmove.c: Likewise
1436         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1437         (__memmove_thunderx2): Rewritten using SIMD ld/st
1438         (__memcpy_thunderx2): Fixed handling overlapping cases.
1439         Used ldp/stp instead of ldr/str if possible. Made loops
1440         tails branchless.
1441
1442 2019-05-03  Florian Weimer  <fweimer@redhat.com>
1443
1444         * misc/tst-tsearch.c (walk_tree): Add more error checking.
1445
1446 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1447
1448         [BZ #24506]
1449         * elf/tst-pldd.c (in_str_list): New function.
1450         (do_test): Add default names for ld and libc as one option.
1451
1452 2019-05-02  Florian Weimer  <fweimer@redhat.com>
1453
1454         misc: Add twalk_r function.
1455         * include/search.h (__twalk_r): Declare.
1456         * manual/examples/twalk.c: New file.
1457         * manual/search.texi (Tree Search Function): Document twalk_r.
1458         * misc/Versions (2.30): Export twalk_r.
1459         (GLIBC_PRIVATE): Export __twalk_r.
1460         * misc/search.h [__USE_GNU] (twalk_r): Declare.
1461         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1462         (twalk_r): Add weak alias.
1463         * misc/tst-tsearch.c (struct walk_trace_element): Define.
1464         (walk_trace): New variable.
1465         (struct twalk_with_twalk_r_closure): Define.
1466         (twalk_with_twalk_r_action): New function.
1467         (twalk_with_twalk_r): Likewise.
1468         (walk_action): Call walk_trace_add.
1469         (walk_tree_with): Rename from walk_tree.  Add walk argument.
1470         (walk_tree): New function.
1471         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1472         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1473         Likewise.
1474         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1475         Likewise.
1476         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1477         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1478         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1479         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1480         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1481         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1482         Likewise.
1483         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1484         Likewise.
1485         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1486         Likewise.
1487         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1488         (GLIBC_2.30): Likewise.
1489         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1490         (GLIBC_2.30): Likewise.
1491         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1492         (GLIBC_2.30): Likewise.
1493         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1494         (GLIBC_2.30): Likewise.
1495         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1496         Likewise.
1497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1498         (GLIBC_2.30): Likewise.
1499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1500         (GLIBC_2.30): Likewise.
1501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1502         (GLIBC_2.30): Likewise.
1503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1504         (GLIBC_2.30): Likewise.
1505         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1506         Likewise.
1507         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1508         Likewise.
1509         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1510         Likewise.
1511         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1512         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1513         Likewise.
1514         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1515         Likewise.
1516         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1517         Likewise.
1518         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1519         Likewise.
1520
1521 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         Make mktime etc. compatible with __time64_t
1524         Keep these functions compatible with Gnulib while adding
1525         __time64_t support.  The basic idea is to move private API
1526         declarations from include/time.h to time/mktime-internal.h, since
1527         the former file cannot easily be shared with Gnulib whereas the
1528         latter can.
1529         Also, do some other minor cleanup while in the neighborhood.
1530         * include/time.h: Include stdbool.h, time/mktime-internal.h.
1531         (__mktime_internal): Move this prototype to time/mktime-internal.h,
1532         since Gnulib needs it.
1533         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1534         Move these macros to time/mktime-internal.h, since Gnulib needs them.
1535         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1536         (in_time_t_range): New static function.
1537         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1538         so that glibc users are not tempted to use __time64_t.
1539         * time/mktime-internal.h: Rewrite so that it does both glibc
1540         and Gnulib work.  Include time.h if not _LIBC.
1541         (mktime_offset_t) [!_LIBC]: Define for gnulib.
1542         (__time64_t): New type or macro, moved here from
1543         posix/bits/types.h.
1544         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1545         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1546         from include/time.h.
1547         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1548         New macros, taken from GNulib.
1549         (__mktime_internal): New prototype, moved here from include/time.h.
1550         * time/mktime.c (mktime_min, mktime_max, convert_time)
1551         (ranged_convert, __mktime_internal, __mktime64):
1552         * time/timegm.c (__timegm64):
1553         Use __time64_t, not time_t.
1554         * time/mktime.c: Stop worrying about whether time_t is floating-point.
1555         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1556         Rename from mktime.
1557         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1558         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1559         for libc_hidden_def.
1560         Include errno.h.
1561         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1562         Rename from timegm.
1563         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1564
1565 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
1566
1567         [BZ #19444]
1568         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1569         from `-Wmaybe-uninitialized'.
1570         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1571
1572 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1573
1574         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1575         function.
1576         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1577         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1578         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1579         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1580         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1582         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1583         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1584         Remove file.
1585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1586         Likewise.
1587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1588         Likewise.
1589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1590         Likewise.
1591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1592         New file.
1593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1594         Likewise.
1595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1596         Likewise.
1597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1598         Likewise.
1599         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1600         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1601         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1602         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1603         Likewise.
1604         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1605         Likewise.
1606         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1607         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1608         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1609         file.
1610         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1611         Likewise.
1612         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1613         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1614         * here.
1615         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1616         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1617         s_ceilf-power5+, and s_ceilf-ppc64.
1618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1619         file.
1620         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1623         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1624         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1625         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1626         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1627
1628         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1629         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1630         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1631
1632 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
1633
1634         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1635         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1636         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1637         (sem_getvalue): Likewise.
1638
1639 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1640
1641         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1642         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1643
1644 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1645
1646         Makeconfig: Move -Wl,-rpath-link options before library references.
1647         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1648         (link-libc): Remove $(link-libc-rpath-link).
1649
1650 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1651
1652         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1653         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1654         (+link-static-before-libc): Remove $(CC).
1655         (+link-static, +link-static-tests): Add $(CC).
1656         (+link-before-libc): Remove $(CC).
1657         (+link, +link-pie, +link-pie-printers): Add $(CC).
1658
1659 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1660
1661         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1662         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1663         (+link-static-before-libc): Remove $(CC).
1664         (+link-static, +link-static-tests): Add $(CC).
1665         (+link-before-libc): Remove $(CC).
1666         (+link, +link-pie, +link-pie-printers): Add $(CC).
1667
1668 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
1669
1670         [BZ#24484]
1671         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1672
1673 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1674
1675         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1676         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1677         (bench-link-targets): New variable.
1678         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
1679
1680 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1681
1682         Also enable BIND_NOW for programs if --enable-bind-now.
1683         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1684         (+link-pie): Use $(link-extra-flags).
1685         (+link-static): Likewise.
1686         [! $(build-pie-default)] (+link): Likewise.
1687         * manual/install.texi (Configuring and compiling): Update
1688         --enable-bind-now description.
1689         * INSTALL: Regenerated.
1690
1691 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
1692
1693         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1694         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1695
1696 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
1697
1698         [BZ #18465]
1699         * malloc/Makefile (others): Add memusagestat.
1700         ($(objpfx)memusagestat): Delete rule.
1701         (LDLIBS-memusagestat): New variable.
1702
1703 2019-04-24  Florian Weimer  <fweimer@redhat.com>
1704
1705         * locale/Makefile (tests-special): Guard setting by
1706         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1707         to run while cross-compiling.
1708
1709 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1710
1711         [BZ #18035]
1712         * elf/Makefile (tests-container): Add tst-pldd.
1713         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1714         (E(find_maps)): Avoid use alloca, use default read file operations
1715         instead of explicit LFS names, and fix infinite loop.
1716         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1717         (get_process_info): Use _Static_assert instead of assert, use default
1718         directory operations instead of explicit LFS names, and free some
1719         leadek pointers.
1720         * elf/tst-pldd.c: New file.
1721
1722 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1723
1724         * malloc/arena.c (do_set_mallopt_check): Removed.
1725
1726 2019-04-23  Florian Weimer  <fweimer@redhat.com>
1727
1728         locale: Add LOCPATH diagnostics to the locale program.
1729         * locale/programs/locale.c (setlocale_failed): New variable.
1730         (try_setlocale): New function.
1731         (quote_string): Likewise.
1732         (setlocale_diagnostics): Likewise.
1733         (main): Call try_setlocale instead of setlocale.  Call
1734         setlocale_diagnostics.
1735         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1736         (tst-locale-locpath.out): New target.
1737         * locale/tst-locale-locpath.sh: New file.
1738
1739 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1740
1741         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1742         to 2.30 notes.
1743
1744 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1745
1746         [BZ #23741]
1747         * malloc/hooks.c (malloc_check, realloc_check): Use
1748         __builtin_add_overflow on overflow check and adapt to
1749         checked_request2size change.
1750         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1751         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1752         allocation size to PTRDIFF_MAX.
1753         (REQUEST_OUT_OF_RANGE): Remove macro.
1754         (checked_request2size): Change to inline function and limit maximum
1755         requested size to PTRDIFF_MAX.
1756         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1757         maximum allocation size to PTRDIFF_MAX.
1758         (_mid_memalign): Use _int_memalign call for overflow check.
1759         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1760         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1761         limit maximum requested size to PTRDIFF_MAX.
1762         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1763         valloc, pvalloc): Add __attribute_alloc_size__.
1764         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1765         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1766         larger than PTRDIFF_MAX.
1767         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1768         around tests of malloc with negative sizes.
1769         * malloc/tst-posix_memalign.c (do_test): Likewise.
1770         * malloc/tst-pvalloc.c (do_test): Likewise.
1771         * malloc/tst-valloc.c (do_test): Likewise.
1772         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1773         with resulting size allocation larger than PTRDIFF_MAX with
1774         reallocarray_nowarn.
1775         (reallocarray_nowarn): New function.
1776         * NEWS: Mention the malloc function semantic change.
1777
1778 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1779
1780         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1781         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1782
1783         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1784         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1785         * sysdeps/powerpc/fpu/s_fma.c: New file.
1786         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1787
1788         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1789         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1790
1791         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1792         the magic flag store.
1793         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1794         Likewise.
1795         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1796         Likewise.
1797         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1798         Remove rt_sigreturn call.
1799
1800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1801         Remove rt_sigreturn call.
1802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1803         Likewise.
1804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1806
1807         * support/Makefile (libsupport-routines): Add support_subprocess,
1808         xposix_spawn, xposix_spawn_file_actions_addclose, and
1809         xposix_spawn_file_actions_adddup2.
1810         (tst-support_capture_subprocess-ARGS): New rule.
1811         * support/capture_subprocess.h (support_capture_subprogram): New
1812         prototype.
1813         * support/support_capture_subprocess.c (support_capture_subprocess):
1814         Refactor to use support_subprocess and support_capture_poll.
1815         (support_capture_subprogram): New function.
1816         * support/tst-support_capture_subprocess.c (write_mode_to_str,
1817         str_to_write_mode, test_common, parse_int, handle_restart,
1818         do_subprocess, do_subprogram, do_multiple_tests): New functions.
1819         (do_test): Add support_capture_subprogram tests.
1820         * support/subprocess.h: New file.
1821         * support/support_subprocess.c: Likewise.
1822         * support/xposix_spawn.c: Likewise.
1823         * support/xposix_spawn_file_actions_addclose.c: Likewise.
1824         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1825         * support/xspawn.h: Likewise.
1826
1827 2019-04-17  Mike Gerow  <gerow@google.com>
1828
1829         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1830         groups limit.
1831
1832 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1833
1834         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1835         domain with empty string.
1836         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1837
1838 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1839
1840         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1841         comment.
1842         (alloc_buffer_next): Change return type to non-const.  Update
1843         comment.
1844
1845 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1846
1847         * manual/time.texi (Formatting Calendar Time): Add missing percent
1848         sign to conversion specifier.
1849
1850 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
1851             Kwok Cheung Yeung  <kcy@codesourcery.com>
1852
1853         [BZ #16573]
1854         * malloc/mtrace.c: Define prototypes for all hooks.
1855         (set_default_hooks): New function.
1856         (set_trace_hooks): Likewise.
1857         (save_default_hooks): Likewise.
1858         (tr_freehook): Use new s*_hooks functions.
1859         (tr_mallochook): Likewise.
1860         (tr_reallochook): Likewise.
1861         (tr_memalignhook): Likewise.
1862         (mtrace): Likewise.
1863         (muntrace): Likewise.
1864
1865 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1866
1867         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1868         (generic_stpcpy): New function.
1869         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1870         (generic_stpncpy): New function.
1871         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1872         (generic_strcat): New function.
1873         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1874         (generic_strcpy): New function.
1875         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1876         (STUPID_STRNCAT): Remove function.
1877         (generic_strncat): New function.
1878         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1879         (STUPID_STRNCPY): Remove function.
1880         (generic_strncpy): New function.
1881         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1882         (generic_strnlen): New function.
1883         (memchr_strnlen): New function.
1884         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1885         (memchr_strlen): Likewise.
1886
1887 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1888
1889         * benchtests/bench-strstr.c (input): Add realistic input text.
1890         (stupid_strstr): Remove function.
1891         (basic_strstr): Add function.
1892         (twoway_strstr): Add function.
1893         (do_one_test): Add result checking.
1894         (do_test): Use new input text.  Remove accidental early matches.
1895         (test_main): Improve range of tests, reduce unaligned cases.
1896
1897 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1898
1899         * benchtests/bench-memmem.c (simple_memmem): Remove function.
1900         (basic_memmem): Add function.
1901         (twoway_memmem): Add function.
1902
1903 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1904
1905         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1906         * benchtests/bench-malloc-thread.c: Likewise.
1907         * benchtests/bench-skeleton.c: Likewise.
1908         * benchtests/bench-strtod.c: Likewise.
1909         * benchtests/bench-timing.h: Likewise.
1910
1911 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1912
1913         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1914         definitions.
1915         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1916         RES_INSECURE2 security checks.
1917         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1918         RES_INSECURE2 handling.
1919
1920 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1921
1922         resolv: Remove support for RES_USE_INET6 and the inet6 option.
1923         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1924         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1925         GETHOSTBYNAME.
1926         * resolv/Makefile (tests): Remove tst-res_use_inet6.
1927         (tests-internal): Update justification for tst-resolv-res_init,
1928         tst-resolv-res_init-thread.
1929         (tst-res_use_inet6): Remove target.
1930         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1931         * resolv/res_debug.c (p_option): Remove "inet6" support.
1932         * resolv/res_init.c (res_setoptions): Likewise.
1933         * resolv/res_use_inet6.h: Remove file.
1934         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1935         definition.
1936         (res_use_inet6): Always return false.
1937         * resolv/resolv.h (RES_USE_INET6): Remove definition.
1938         * resolv/resolv_context.h: Adjust file comment.
1939         (struct resolv_context): Update comment on __next field.
1940         (__resolv_context_put): Update comment.
1941         * resolv/tst-res_use_inet6.c: Remove file.
1942         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1943         "inet6" support.
1944         (test_cases): Adjust test case.
1945         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1946         (thread_byname2_af_inet6): Use old byname_inet6 code.
1947         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1948         (gai): Remove do_inet6 argument.
1949         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1950         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1951         (thread_gai_unspec_inet6): Remove functions.
1952         (do_test): Adjust thread_funcs.
1953         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1954         RES_USE_INET6 flag.
1955         (gaih_inet): Do not disable RES_USE_INET6 flag.
1956
1957 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1958
1959         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1960         and remove redundant code.
1961
1962 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1963
1964         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1965         New rule.
1966         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1967         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1968         Likewise.
1969         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1970         Likewise.
1971         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1972         Likewise.
1973         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1974         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1975         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1976         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1977         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1978         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1979         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1980         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1981         wcsrchr-power7.
1982         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1983         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1984         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1985         Remove wcsrchr optimizations.
1986         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1987
1988         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1989         the loop unroll.
1990
1991         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1992         New rule.
1993         * sysdeps/powerpc/power6/wcschr.c: Remove file.
1994         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1995         Likewise.
1996         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1997         Likewise.
1998         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1999         Likewise.
2000         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2001         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2002         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2003         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2004         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2005         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2006         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2007         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2008         wcschr-power7.
2009         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2010         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2011         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2012         Remove wcschr optimizations.
2013         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2014
2015         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2016         the loop unroll.
2017
2018         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2019         New rule.
2020         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2021         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2022         Likewise.
2023         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2024         Likewise.
2025         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2026         Likewise.
2027         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2028         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2029         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2030         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2031         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2032         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2033         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2034         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2035         wcscpy-power7.
2036         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2037         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2038         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2039         Remove wcscpy optimizations.
2040         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2041
2042         * include/loop_unroll.h: New file.
2043         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2044         besides generic implementation.
2045
2046 2019-04-03  DJ Delorie  <dj@redhat.com>
2047
2048         * time/tst-strftime3.c (tm_to_printed): Disable warning about
2049         snprintf truncating output.
2050
2051 2019-04-02  DJ Delorie  <dj@redhat.com>
2052
2053         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
2054         warning.
2055
2056 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2057
2058         [BZ #22964]
2059         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2060         era.
2061         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2062         (mkreftable): Add rules for the new Japanese era and the new dates.
2063
2064 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2065             Rafal Luzynski  <digitalfreak@lingonborough.com>
2066
2067         * time/tst-strftime2.c (date_t): Explicitly define the type.
2068         (dates): Use natural month and year numbers to express a date.
2069         (is_before): New function to compare dates.
2070         (mkreftable): Minor improvements to simplify maintenance.
2071         (do_test): Reflect the changes in dates array.
2072
2073         [BZ #24293]
2074         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2075         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2076         * time/tst-strftime2.c (locales): Likewise.
2077         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2078         2010-04-01, and 2011-04-01.
2079         (mkreftable): Add rules for the new locales and the new dates.
2080
2081 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
2082
2083         * localedata/locales/ja_JP: Add comments to era entries.
2084
2085 2019-04-01  DJ Delorie  <dj@redhat.com>
2086
2087         [BZ #24394]
2088         * time/strptime_l.c (%Ey): Fix fencepost error.
2089         * time/tst-strftime3.c: New.
2090         * time/Makefile (tests): Add tst-strftime3.
2091
2092 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
2093
2094         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2095         conditional branch to DIVBYZERO.  Fix unwind info.
2096         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2097         excb after conditional branch to $powerof2.  Add missing unop
2098         instructions and .align directives and reorder instructions to
2099         match __divqu.
2100
2101 2019-04-01  Richard Henderson  <rth@twiddle.net>
2102
2103         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2104         Do not redefine.
2105         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2106         Do not redefine.
2107
2108 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
2109
2110         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2111         $libc_cv_riscv_float_abi in `test' invocation.
2112         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2113
2114 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
2115
2116         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2117         asm with builtin.
2118         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2119         Likewise.
2120         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2121         (_GET_SI_FPSCR): Likewise.
2122         (_SET_SI_FPSCR): Likewise.
2123
2124 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2125
2126         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2127         clang 2.8.
2128         (signbit): Use builtin for clang 3.3.
2129         (isinf): Use builtin for clang 3.7.
2130
2131 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2132
2133         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2134
2135 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
2136
2137         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2138         quote in printf.
2139
2140 2019-03-25  Mike Crowe  <mac@mcrowe.com>
2141
2142         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2143         pthread_rwlock_timedrdlock with calls to
2144         pthread_rwlock_timedwrlock to ensure that the latter is tested
2145         too. Use new function name in diagnostic messages too.
2146
2147         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2148         (do_test) Use libsupport test macros rather than hand-coded
2149         conditionals and error messages. Ensure that sem_init returns zero
2150         rather than not -1. Use <support/test-driver.c> rather than
2151         test-skeleton.c.
2152
2153         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2154         test macros rather than hand-coded conditionals and error messages.
2155         Use <support/test-driver.c> rather than test-skeleton.c.
2156
2157 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
2158
2159         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2160
2161         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2162         (NT_MIPS_MSA): Likewise.
2163
2164 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2165
2166         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2167         * benchtests/README: Update description.
2168         * benchtests/bench-timing.h: Default to hp-timing.
2169         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2170         HP_TIMING_PRINT): Remove.
2171         (HP_TIMING_NOW): Add generic implementation.
2172         (hp_timing_t): Change to uint64_t.
2173
2174         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2175         HP_TIMING_INLINE.
2176         * nptl/descr.h: Likewise.
2177         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2178         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2179         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2180         Abstract hp-timing usage with RTLD_* macros.
2181         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2182         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2183         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2184         HP_TIMING_NONAVAIL): Likewise.
2185         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2186         Likewise.
2187         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2188         HP_SMALL_TIMING_AVAIL): Likewise.
2189         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2190         HP_SMALL_TIMING_AVAIL): Likewise.
2191         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2192         HP_SMALL_TIMING_AVAIL): Likewise.
2193         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2194         HP_SMALL_TIMING_AVAIL): Likewise.
2195         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2196         Likewise.
2197         * sysdeps/generic/hp-timing-common.h: Update comment with
2198         HP_TIMING_AVAIL removal.
2199
2200         * include/random-bits.h: New file.
2201         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2202         (__res_context_mkquery): Remove usage hp-timing usage and replace with
2203         random_bits.
2204         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2205         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2206         Likewise.
2207
2208         * include/libc-internal.h (__get_clockfreq): Remove prototype.
2209         * rt/Makefile (clock-routines): Remove get_clockfreq.
2210         * rt/get_clockfreq.c: Remove file.
2211         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2212         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2213         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2214         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2215         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2216
2217         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2218         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2219         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2220         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2221         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2222
2223         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2224         pthread_clock_settime.
2225         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2226         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2227         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2228         * elf/rtld.c (_dl_start_final): Likewise.
2229         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2230         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2231         Remove.
2232         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2233         (_dl_cpuclock_offset): Remove.
2234         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2235         cpuclock_offset_ununsed.
2236         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2237         cpuclock_offset set.
2238         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2239         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2240         * nptl/pthread_clock_gettime.c: Remove file.
2241         * nptl/pthread_clock_settime.c: Likewise.
2242         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2243         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2244         and CLOCK_PROCESS_CPUTIME_ID support.
2245         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2246         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2247         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2248         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2249         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2250         Likewise.
2251         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2252
2253 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2254
2255         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2256         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2257         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2258         New defines.
2259         * sysdeps/s390/memmem-arch13.S: New file.
2260         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2261         if it is only used as fallback.
2262         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2263         * sysdeps/s390/multiarch/ifunc-impl-list.c
2264         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2265
2266 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2267
2268         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2269         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2270         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2271         New defines.
2272         * sysdeps/s390/multiarch/ifunc-impl-list.c
2273         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2274         * sysdeps/s390/strstr-arch13.S: New file.
2275         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2276         if it is only used as fallback.
2277         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2278
2279 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2280
2281         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2282         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2283         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2284         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2285         ifunc selector.
2286         * sysdeps/s390/multiarch/ifunc-impl-list.c
2287         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2288         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2289         S390_IS_ARCH13_MIE3): New defines.
2290
2291 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2292
2293         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2294         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2295         * sysdeps/s390/configure.ac: Add checks for arch13 support.
2296         * sysdeps/s390/configure: Regenerated.
2297
2298 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
2299
2300         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2301         Add vxe2, vxp, dflt, sort flags.
2302         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2303         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2304         capabilities.
2305         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2306         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2307         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2308         HWCAP_S390_DFLT): Define.
2309
2310 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2311
2312         [BZ #24372]
2313         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2314         of compiler warning.
2315         * locale/programs/ld-collate.c (collate_output): Likewise.
2316
2317 2019-03-21  DJ Delorie  <dj@redhat.com>
2318
2319         [BZ #24372]
2320         * iconv/iconvconfig.c (write_output): Replace floating point math
2321         with integer math to avoid imprecise results.
2322         * locale/programs/ld-collate.c (collate_output): Likewise.
2323
2324 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
2325
2326         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2327         Add HWCAP_S390_VX and HWCAP_S390_VXE.
2328
2329 2019-03-20  mansayk  <6688000@gmail.com>
2330
2331         [BZ #24296]
2332         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2333         (abday): Likewise, but remove the trailing dots.
2334
2335 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
2336
2337         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2338         macro.
2339         (HWCAP_PACA): Likewise.
2340         (HWCAP_PACG): Likewise.
2341         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2342         Increase to 32.
2343         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2344
2345 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2346
2347         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2348         should be handled.
2349
2350 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
2351
2352         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2353         version to 5.0.
2354         (old_getpagesize): New syscall.
2355
2356 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
2357
2358         [BZ #24293]
2359         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2360         * localedata/locales/cmn_TW (era): Likewise.
2361         * localedata/locales/hak_TW (era): Likewise.
2362         * localedata/locales/lzh_TW (era): Likewise.
2363         * localedata/locales/nan_TW (era): Likewise.
2364
2365 2019-03-14  Adam Maris  <amaris@redhat.com>
2366
2367         * malloc/malloc.c (_int_malloc): Check for large bin list
2368         corruption when inserting unsorted chunk.
2369
2370 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2371
2372         Remove obsolete, never-implemented XSI STREAMS declarations.
2373         * manual/terminal.texi (Allocation): Remove portability note and
2374         adjust example.
2375         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2376         _SC_STREAMS.
2377         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2378         * sysdeps/unix/inet/Subdirs (streams): Remove.
2379         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2380         (conformtest-headers-UNIX98): Likewise.
2381         (conformtest-headers-XOPEN2K): Likewise.
2382         (conformtest-headers-POSIX2008): Likewise.
2383         * posix/compat-streams.c: New file.
2384         * posix/Makefile (routines): Add it.
2385         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2386         getpmsg, isastream, putmsg, putpmsg.
2387         (GLIBC_2.30): New section.
2388         * bits/stropts.h: Remove file.
2389         * bits/xtitypes.h: Likewise.
2390         * conform/data/stropts.h-data: Likewise.
2391         * include/stropts.h: Likewise.
2392         * include/sys/stropts.h: Likewise.
2393         * include/xtitypes.h: Likewise.
2394         * streams/Makefile: Likewise.
2395         * streams/fattach.c: Likewise.
2396         * streams/fdetach.c: Likewise.
2397         * streams/getmsg.c: Likewise.
2398         * streams/getpmsg.c: Likewise.
2399         * streams/isastream.c: Likewise.
2400         * streams/putmsg.c: Likewise.
2401         * streams/putpmsg.c: Likewise.
2402         * streams/stropts.h: Likewise.
2403         * streams/sys/stropts.h: Likewise.
2404         * sysdeps/ia64/bits/xtitypes.h: Likewise.
2405         * sysdeps/s390/bits/xtitypes.h: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2407         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2408         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2409         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2410         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2411         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2412         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2413         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2414         * sysdeps/x86/bits/xtitypes.h: Likewise.
2415
2416 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2417
2418         * nss/tst-nss-files-alias-truncated.c (do_test): Load
2419         libnss_files.
2420         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2421         but not with libnss_files.
2422         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2423
2424 2019-03-14  Zack Weinberg  <zackw@panix.com>
2425
2426         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2427         Specify encoding="utf-8" when opening headers to check.
2428
2429 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
2430
2431         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2432         version to 5.0.
2433         (Context.checkout_tar): Handle variable major version for Linux
2434         kernel.
2435
2436 2019-03-13  Florian Weimer  <fweimer@redhat.com>
2437
2438         [BZ #24047]
2439         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2440
2441 2019-03-13  Zack Weinberg  <zackw@panix.com>
2442
2443         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2444         Move to stdlib.
2445         * include/inttypes.h: Adjust to match.
2446         * include/stdint.h: New wrapper.
2447
2448 2019-03-13  Zack Weinberg  <zackw@panix.com>
2449
2450         * scripts/check-obsolete-constructs.py: New test script.
2451         * scripts/check-installed-headers.sh: Remove tests for
2452         obsolete typedefs, superseded by check-obsolete-constructs.py.
2453         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2454         as a special test.  Update commentary.
2455         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2456         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2457         Update commentary.
2458         * posix/sys/types.h (__u_intN_t): Remove.
2459         (u_int8_t): Typedef using __uint8_t.
2460         (u_int16_t): Typedef using __uint16_t.
2461         (u_int32_t): Typedef using __uint32_t.
2462         (u_int64_t): Typedef using __uint64_t.
2463
2464 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
2465
2466         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2467         call _dl_procinfo.
2468         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2469         Ignore types other than AT_HWCAP.
2470         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2471         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2472         Likewise.
2473         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2474         in the case of falling back to generic output mechanism.
2475         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2476         Likewise.
2477
2478 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2479
2480         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2481
2482 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2483
2484         [BZ #24047]
2485         resolv: Enable full ICMP errors for UDP DNS sockets
2486         * resolv/res_enable_icmp.c: New file.
2487         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2488         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2489         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2490         socket.
2491
2492 2019-03-11  Mao Han  <han_mao@c-sky.com>
2493
2494         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2495         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2496
2497 2019-03-11  Mao Han  <han_mao@c-sky.com>
2498
2499         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2500         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2501         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2502
2503 2019-03-11  Mao Han  <han_mao@c-sky.com>
2504
2505         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2506         directly.
2507         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2508         definition.
2509
2510 2019-03-11  Mao Han  <han_mao@c-sky.com>
2511
2512         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2513         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2514         in mcontext_t
2515
2516 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
2517
2518         [BZ #24307]
2519         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2520         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2521         Unicode 12.0.0.
2522         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2523         * localedata/unicode-gen/PropList.txt: Likewise.
2524         * localedata/unicode-gen/UnicodeData.txt: Likewise.
2525         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2526         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2527         * localedata/charmaps/UTF-8: Regenerate.
2528         * localedata/locales/i18n_ctype: Likewise.
2529         * localedata/locales/tr_TR: Likewise.
2530         * localedata/locales/translit_circle: Likewise.
2531         * localedata/locales/translit_cjk_compat: Likewise.
2532         * localedata/locales/translit_combining: Likewise.
2533         * localedata/locales/translit_compat: Likewise.
2534         * localedata/locales/translit_font: Likewise.
2535         * localedata/locales/translit_fraction: Likewise.
2536
2537 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
2538
2539         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2540         than after operators.
2541         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2542         (setitimer_locked): Likewise.
2543         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2544         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2545         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2546         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2547         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2548         (PPC_CPU_SUPPORTED): Likewise.
2549         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2550         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2551         (stat_overflow): Likewise.
2552         (statfs_overflow): Likewise.
2553         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2554         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2555         (eq_ttyname_r): Likewise.
2556         (run_chroot_tests): Likewise.
2557
2558 2019-03-07  Florian Weimer  <fweimer@redhat.com>
2559
2560         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2561         header check.
2562
2563 2019-03-07  Martin Liska  <mliska@suse.cz>
2564
2565         * math/Makefile: Change location where math-vector-fortran.h is
2566         installed.
2567         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2568         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2569         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2570         * scripts/check-installed-headers.sh: Skip Fortran header files.
2571         * scripts/check-wrapper-headers.py: Likewise.
2572
2573 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2574
2575         * nptl/nptl-init.c (__have_futex_clock_realtime,
2576         __have_futex_clock_realtime): Remove definition.
2577         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2578         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2579         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2580         __ASSUME_FUTEX_CLOCK_REALTIME support.
2581         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2582         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2583         * sysdeps/unix/sysv/linux/kernel-features.h
2584         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2585         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2586         Adjust comment.
2587
2588 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2589
2590         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2591         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2592         __GI___wcscpy and wcscpy.
2593
2594 2019-03-04  Florian Weimer  <fweimer@redhat.com>
2595
2596         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2597         declaration.
2598         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2599         defined.
2600
2601 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
2602
2603         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2604         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2605
2606 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2607
2608         [BZ #24162]
2609         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2610         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
2611
2612 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2613
2614         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2615         tests.
2616         (do_test): Likewise.
2617         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2618         (do_test_call_varg): Likewise.
2619         (do_test_call_rarg): Likewise.
2620         * sysdeps/ieee754/ldbl-opt/Makefile
2621         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2622         tst-nldbl-error.
2623         ($(objpfx)tst-nldbl-warn.c): New rule.
2624         ($(objpfx)tst-nldbl-error.c): Likewise.
2625         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2626         New variables.
2627
2628 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2629
2630         [BZ #23984]
2631         * include/bits/error-ldbl.h: New file.
2632         * include/error.h: Include stdarg.h.  Declare internal functions
2633         __error_internal and __error_at_line_internal.
2634         * misc/Makefile (headers): Add bits/error-ldbl.h.
2635         * misc/bits/error-ldbl.h: New file.
2636         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2637         avoid the inclusion of bits/error.h.
2638         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2639         and __nldbl_error_at_line.
2640         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2641         (__nldbl_error, __ndlbl_error_at_line): New functions.
2642         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2643         Redirect error and error_at_line.
2644         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2646         Likewise.
2647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2648         Likewise.
2649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2650         Likewise.
2651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2652         Likewise.
2653         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2654         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2655         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2656
2657 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2658
2659         [BZ #23984]
2660         * include/bits/err-ldbl.h: New file.
2661         * include/err.h: Add prototypes for the internal functions:
2662         __vwarnx_internal and __vwarn_internal.
2663         * misc/Makefile (headers): Add bits/err-ldbl.h.
2664         * misc/bits/err-ldbl.h: New file.
2665         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2666         defined, i.e.: when -mlong-double-64 is in use.
2667         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2668         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2669         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2670         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2671         (VA_CALL): New macro.
2672         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2673         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2674         functions.
2675         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2676         declare prototypes for the new functions.
2677         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2679         Likewise.
2680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2681         Likewise.
2682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2683         Likewise.
2684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2685         Likewise.
2686         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2687         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2688         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2689
2690 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2691
2692         * sysdeps/ieee754/ldbl-opt/Makefile
2693         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2694         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2695         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2696
2697 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2698
2699         [BZ #23983]
2700         * argp/Makefile (headers): Add bits/argp-ldbl.h.
2701         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2702         * argp/bits/argp-ldbl.h: New file.
2703         * include/argp.h: Include stdarg.h.  Add prototypes for internal
2704         functions: __argp_error_internal and __argp_failure_internal.
2705         * include/bits/argp-ldbl.h: New file.
2706         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2707         __nldbl_argp_error and __nldbl_argp_failure.
2708         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2709         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2710         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2711         Redirect argp_error and argp_failure calls.
2712         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2714         Likewise.
2715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2716         Likewise.
2717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2718         Likewise.
2719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2720         Likewise.
2721         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2722         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2723         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2724
2725 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2726
2727         [BZ #20419]
2728         * elf/tst-big-note-lib.S: Create a syntactically valid note.
2729         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2730         code, to avoid creating an ABI tag note.
2731         (modules-names-nobuild): Add tst-big-note-lib.
2732
2733 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
2734
2735         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2736         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2737
2738 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2739
2740         [BZ #20271]
2741         * sysdeps/unix/sysv/linux/netlink_assert_response.c
2742         (__netlink_assert_response): Add additional missing newlines.
2743
2744 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
2745
2746         * sysdeps/powerpc/powerpc32/dl-machine.c
2747         (__elf_machine_fixup_plt): Use space before '('.
2748         (__process_machine_rela): Likewise.
2749         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2750         Likewise.
2751         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2752         Likewise.
2753         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2754         Likewise.
2755         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2756         (pattern): Likewise.
2757         (delta): Likewise.
2758         (check_result): Likewise.
2759         (check_excepts): Likewise.
2760         (check_op): Likewise.
2761         (fail_xr): Likewise.
2762         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2763         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2764         (SCNHSZ): Likewise.
2765         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2766         Likewise.
2767         (ARGS): Likewise.
2768         (__makecontext): Likewise.
2769         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2770         Likewise.
2771
2772 2019-02-28  Florian Weimer  <fweimer@redhat.com>
2773
2774         [BZ #23937]
2775         elf: Add test with a local IFUNC resolver.
2776         * elf/ifuncmain9.c: New file.
2777         * elf/ifuncmain9pic.c: Likewise.
2778         * elf/ifuncmain9picstatic.c: Likewise.
2779         * elf/ifuncmain9pie.c: Likewise.
2780         * elf/ifuncmain9static.c: Likewise.
2781         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2782         ifuncmain9static, ifuncmain9picstatic.
2783         * elf/Makefile [multi-arch && build-shared] (tests-internal):
2784         Add ifuncmain9, ifuncmain9pic.
2785         * elf/Makefile [multi-arch && build-shared && have-fpie]
2786         (ifunc-pie-tests): Add ifuncmain9pie.
2787         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2788         (CFLAGS-ifuncmain9picstatic.c): Likewise.
2789         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2790
2791 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
2792
2793         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2794         * configure: Regenerated.
2795         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2796
2797 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2798
2799         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2800         symbol as __wcspcy instead of wcscpy.
2801
2802 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2803
2804         * include/stdio.h (__renameat2): New hidden prototype.
2805         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2806         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2807         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2808         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2809
2810 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
2811
2812         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2813         if statement.
2814
2815         * benchtests/bench-strcpy.c (do_test): Use space before '('.
2816         * benchtests/bench-string.h (cmdline_process_function): Likewise.
2817         * benchtests/bench-strlen.c (do_test): Likewise.
2818         (test_main): Likewise.
2819         * catgets/gencat.c (read_old): Likewise.
2820         * elf/cache.c (load_aux_cache): Likewise.
2821         * iconvdata/bug-iconv8.c (do_test): Likewise.
2822         * math/test-tgmath-ret.c (do_test): Likewise.
2823         * nis/nis_call.c (rec_dirsearch): Likewise.
2824         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2825         * nptl/tst-audit-threads.c (do_test): Likewise.
2826         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2827         * nss/nss_test1.c (init): Likewise.
2828         * nss/test-netdb.c (test_hosts): Likewise.
2829         * posix/execvpe.c (maybe_script_execute): Likewise.
2830         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2831         * stdio-common/tst-printf.c (do_test): Likewise.
2832         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2833         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2834         * stdlib/qsort.c (STACK_SIZE): Likewise.
2835         * stdlib/test-canon.c (do_test): Likewise.
2836         * stdlib/tst-swapcontext1.c (do_test): Likewise.
2837         * string/memcmp.c (OPSIZ): Likewise.
2838         * string/test-strcpy.c (do_test): Likewise.
2839         (do_random_tests): Likewise.
2840         * string/test-strlen.c (do_test): Likewise.
2841         (test_main): Likewise.
2842         * string/test-strrchr.c (do_test): Likewise.
2843         (do_random_tests): Likewise.
2844         * string/tester.c (test_memrchr): Likewise.
2845         (test_memchr): Likewise.
2846         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2847         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2848         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2849         (read_encoded_value_with_base): Likewise.
2850         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2851         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2852         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2853         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2854         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2855         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2856         Likewise.
2857         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2858         Likewise.
2859         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2860         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2861         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2862         Likewise.
2863         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2864         Likewise.
2865         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2866         Likewise.
2867         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2868         Likewise.
2869         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2870         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2871         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2872         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2873         * time/test_time.c (main): Likewise.
2874
2875 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2876
2877         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2878
2879         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2880         wmemcpy.
2881
2882         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2883         wmemcpy.
2884
2885         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2886
2887         * include/wchar.h (__wcscpy): New prototype.
2888         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2889         (__wcscpy): Route internal symbol to generic implementation.
2890         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2891         Add internal __wcscpy alias.
2892         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2893         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2894         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2895         * wcsmbs/wcscpy.c (wcscpy): Add
2896         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2897         use generic implementation.
2898         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2899
2900         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2901         wmemset.
2902
2903         * sysdeps/m68k/wcpcpy.c: Remove file.
2904         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2905
2906 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
2907
2908         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2909         than after operators.
2910         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2911         * sysdeps/mach/hurd/getcwd.c
2912         (__hurd_canonicalize_directory_name_internal): Likewise.
2913         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2914         (pthread_mutex_consistent): Likewise.
2915         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2916         Likewise.
2917         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2918         (__pthread_mutex_transfer_np): Likewise.
2919         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2920         (__pthread_mutex_unlock): Likewise.
2921         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2922         (mtx_owned_p): Likewise.
2923         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2924         (pthread_mutexattr_getrobust): Likewise.
2925         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2926         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2927         Likewise.
2928         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2929         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2930         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2931         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2932         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2933         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2934         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2935         Likewise.
2936         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2937         Likewise.
2938         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2939         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2940         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2941         (____longjmp_chk): Likewise.
2942         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2943         Likewise.
2944         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2945         (INTERNAL_SYSCALL): Likewise.
2946         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2947         (INTERNAL_SYSCALL): Likewise.
2948         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2949         (__get_clockfreq_via_cpuinfo): Likewise.
2950
2951         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2952         comments.
2953         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2954         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2955         (WORD_COPY_BWD): Likewise.
2956         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2957         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2958         Likewise.
2959         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2960         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2961         comment.
2962         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2963
2964 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
2965
2966         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2967         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2968         rather than after operators.
2969         * elf/cache.c (print_cache): Likewise.
2970         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2971         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2972         * hurd/hurdinit.c (_hurd_setproc): Likewise.
2973         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2974         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2975         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2976         (reauth_proc): Likewise.
2977         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2978         (__file_name_split_at): Likewise.
2979         (__directory_name_split_at): Likewise.
2980         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2981         * hurd/port2fd.c (_hurd_port2fd): Likewise.
2982         * iconv/gconv_dl.c (do_print): Likewise.
2983         * inet/netinet/in.h (struct sockaddr_in): Likewise.
2984         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2985         * locale/setlocale.c (new_composite_name): Likewise.
2986         * malloc/memusagestat.c (main): Likewise.
2987         * misc/fstab.c (fstab_convert): Likewise.
2988         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2989         Likewise.
2990         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2991         (getgrent_next_file): Likewise.
2992         (internal_getgrnam_r): Likewise.
2993         (internal_getgrgid_r): Likewise.
2994         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2995         Likewise.
2996         (internal_getgrent_r): Likewise.
2997         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2998         (getpwent_next_nss): Likewise.
2999         (getpwent_next_file): Likewise.
3000         (internal_getpwnam_r): Likewise.
3001         (internal_getpwuid_r): Likewise.
3002         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3003         Likewise.
3004         (getspent_next_nss): Likewise.
3005         (internal_getspnam_r): Likewise.
3006         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3007         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3008         * string/strchr.c (STRCHR): Likewise.
3009         * string/strchrnul.c (STRCHRNUL): Likewise.
3010         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3011         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3012         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3013         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3014         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3015         Likewise.
3016         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3017         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3018         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3019         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3020         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3021         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3022         (open_file): Likewise.
3023         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3024         (pthread_mutexattr_setprotocol): Likewise.
3025         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3026         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3027         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3028         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3029         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3030         Likewise.
3031         (elf_machine_rela): Likewise.
3032         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3033         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3034         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3035         * sysdeps/posix/rename.c (rename): Likewise.
3036         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3037         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3038         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3039         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3040         * sysdeps/unix/grantpt.c (grantpt): Likewise.
3041         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3042         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3043         Likewise.
3044         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3045         Likewise.
3046         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3047         * time/tzfile.c (__tzfile_compute): Likewise.
3048
3049 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
3050
3051         * benchtests/bench-memmem.c (simple_memmem): Break lines before
3052         rather than after operators.
3053         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3054         * crypt/md5.c (md5_finish_ctx): Likewise.
3055         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3056         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3057         * elf/cache.c (load_aux_cache): Likewise.
3058         * elf/dl-load.c (open_verify): Likewise.
3059         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3060         * elf/readelflib.c (process_elf_file): Likewise.
3061         * elf/rtld.c (dl_main): Likewise.
3062         * elf/sprof.c (generate_call_graph): Likewise.
3063         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3064         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3065         * hurd/dtable.c (reauth_dtable): Likewise.
3066         * hurd/getdport.c (__getdport): Likewise.
3067         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3068         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3069         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3070         Likewise.
3071         * hurd/hurdioctl.c (fioctl): Likewise.
3072         * hurd/hurdselect.c (_hurd_select): Likewise.
3073         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3074         (STOPSIGS): Likewise.
3075         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3076         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3077         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3078         * hurd/msgportdemux.c (msgport_server): Likewise.
3079         * hurd/setauth.c (_hurd_setauth): Likewise.
3080         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3081         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3082         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3083         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3084         * login/tst-utmp.c (do_check): Likewise.
3085         (simulate_login): Likewise.
3086         * mach/lowlevellock.h (lll_lock): Likewise.
3087         (lll_trylock): Likewise.
3088         * math/test-fenv.c (ALL_EXC): Likewise.
3089         * math/test-fenvinline.c (ALL_EXC): Likewise.
3090         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3091         * nis/nis_call.c (__do_niscall3): Likewise.
3092         * nis/nis_callback.c (cb_prog_1): Likewise.
3093         * nis/nis_defaults.c (searchaccess): Likewise.
3094         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3095         * nis/nis_ismember.c (internal_ismember): Likewise.
3096         * nis/nis_local_names.c (nis_local_principal): Likewise.
3097         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3098         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3099         Likewise.
3100         * nis/ypclnt.c (yp_match): Likewise.
3101         (yp_first): Likewise.
3102         (yp_next): Likewise.
3103         (yp_master): Likewise.
3104         (yp_order): Likewise.
3105         * nscd/hstcache.c (cache_addhst): Likewise.
3106         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3107         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3108         (internal_getpwuid_r): Likewise.
3109         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3110         * posix/glob.h (__GLOB_FLAGS): Likewise.
3111         * posix/regcomp.c (peek_token): Likewise.
3112         (peek_token_bracket): Likewise.
3113         (parse_expression): Likewise.
3114         * posix/regexec.c (sift_states_iter_mb): Likewise.
3115         (check_node_accept_bytes): Likewise.
3116         * posix/tst-spawn3.c (do_test): Likewise.
3117         * posix/wordexp-test.c (testit): Likewise.
3118         * posix/wordexp.c (parse_tilde): Likewise.
3119         (exec_comm): Likewise.
3120         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3121         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3122         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3123         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3124         * stdio-common/tst-fileno.c (do_test): Likewise.
3125         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3126         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3127         * stdlib/strtod_l.c (round_and_return): Likewise.
3128         (____STRTOF_INTERNAL): Likewise.
3129         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3130         * string/strcspn.c (STRCSPN): Likewise.
3131         * string/test-memmem.c (simple_memmem): Likewise.
3132         * termios/tcsetattr.c (tcsetattr): Likewise.
3133         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3134         * time/asctime.c (asctime_internal): Likewise.
3135         * time/strptime_l.c (__strptime_internal): Likewise.
3136         * time/sys/time.h (timercmp): Likewise.
3137         * time/tzfile.c (__tzfile_compute): Likewise.
3138
3139 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
3140
3141         [BZ #21915]
3142         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3143
3144 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3145
3146         * argp/argp-help.c (__argp_error_internal): New function,
3147         renamed from __argp_error, but that takes a 'mode_flags'
3148         parameter to control the format of long double parameters.
3149         (__argp_error): Converted into a call __argp_error_internal.
3150         (__argp_failure_internal): New function, renamed from
3151         __argp_failure, but that takes a 'mode_flags' parameter.
3152         (__argp_failure): Converted into a call __argp_failure_internal.
3153         * misc/err.c (__vwarnx_internal): New function, renamed from
3154         vwarnx, but that takes a 'mode_flags' parameter.
3155         (vwarnx): Converted into a call to __vwarnx_internal.
3156         (__vwarn_internal): New function, renamed from vwarn, but that
3157         takes a 'mode_flags' parameter.
3158         (vwarn): Converted into a call to __vwarn_internal.
3159         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3160         call to __vfxprintf with 'mode_flags'.
3161         (__error_internal): New function, renamed from error, but that
3162         takes a 'mode_flags' parameter.
3163         (error): Converted into a call to __error_internal.
3164         (__error_at_line_internal): New function, renamed from
3165         error_at_line, but that takes a 'mode_flags' parameter.
3166         (error_at_line): Converted into a call to
3167         __error_at_line_internal.
3168         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3169         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3170         Likewise.
3171
3172 2019-02-20  Martin Liska  <mliska@suse.cz>
3173
3174         * math/Makefile: Install math-vector-fortran.h.
3175         * bits/math-vector-fortran.h: New file.
3176         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3177
3178 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3179
3180         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3181         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3182
3183 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
3184
3185         * nptl/pthread_mutex_trylock.c: Fix comment.
3186
3187 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
3188
3189         * nptl/pthread_tryjoin.c: Fix comment.
3190
3191 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
3192
3193         [BZ #24231]
3194         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3195         after R_SPARC_H34 case.
3196
3197 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3198
3199         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3200         (getanswer): Do not call Dprintf.
3201         (res_gethostbyname2_context): Likewise.
3202         (res_gethostbyaddr_context): Likewise.
3203
3204 2019-02-18  Florian Weimer  <fweimer@redhat.com>
3205
3206         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3207         declaration.
3208         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3209         Remove definitions.
3210         * libio/stdfiles.c: Update comment.
3211         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
3212         set _IO_stdin, _IO_stdout, _IO_stderr.
3213         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3214         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3215         inline function.
3216         (_IO_deallocate_file): New inline function.
3217         * libio/iolibio.h (_IO_vprintf): Remove definition.
3218         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3219         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3220         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3221         _IO_legacy_file.
3222         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3223         __builtin_expect.  Use _IO_legacy_file.
3224
3225 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
3226
3227         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3228         Initialize ctid with a known value and remove update of ctid
3229         after clone.
3230         (wait_tid): Adjust arguments and call futex_wait with ctid_val
3231         as assumed current value of ctid_ptr.
3232
3233 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3234
3235         Check that non-sysdeps headers have wrapper headers.
3236         * scripts/check-wrapper-headers.py: New file.
3237         * Makefile (tests-special): Add check-wrapper-headers.out.
3238         (check-wrapper-headers.out): New target.
3239         * Rules (tests-special): Add check-wrapper-headers.out.
3240         (check-wrapper-headers.out): New target.
3241
3242 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3243
3244         Add missing header wrappers under include/.
3245         * include/ar.h: New file.
3246         * include/bits/mqueue2.h: Likewise.
3247         * include/bits/stdio.h: Likewise.
3248         * include/bits/stdio2.h: Likewise.
3249         * include/fstab.h: Likewise.
3250         * include/fts.h: Likewise.
3251         * include/lastlog.h: Likewise.
3252         * include/netinet/icmp6.h: Likewise.
3253         * include/netinet/igmp.h: Likewise.
3254         * include/netinet/ip6.h: Likewise.
3255         * include/re_comp.h: Likewise.
3256         * include/regexp.h: Likewise.
3257         * include/rpcsvc/bootparam.h: Likewise.
3258         * include/rpcsvc/yp_prot.h: Likewise.
3259         * include/sys/random.h: Likewise.
3260         * include/sys/stropts.h: Likewise.
3261         * include/sys/ttychars.h: Likewise.
3262         * include/sys/vfs.h: Likewise.
3263         * include/wait.h: Likewise.
3264
3265 2019-02-16  Florian Weimer  <fweimer@redhat.com>
3266
3267         * nptl_db/proc_service.h: Move to ...
3268         * sysdeps/nptl/proc_service.h: ... here.
3269         * nptl_db/thread_db.h: Move to ...
3270         * sysdeps/nptl/thread_db.h: ... here.
3271         * nptl/descr.h: Include <thread_db.h>.
3272
3273 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3274
3275         * io/Makefile (tests): Add tst-lockf.
3276         * io/lockf.c (lockf): Use __fcntl and only define for
3277         !__OFF_T_MATCHES_OFF64_T.
3278         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3279         __OFF_T_MATCHES_OFF64_T case.
3280         * io/tst-lockf.c: New file.
3281         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3282         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3283         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3284         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3285         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3287         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3288         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3289         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3290
3291 2019-02-15  Florian Weimer  <fweimer@redhat.com>
3292
3293         [BZ #24211]
3294         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3295         pd->result after the thread descriptor has been freed.
3296
3297 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
3298
3299         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3300         from function return type.
3301
3302         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3303
3304 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3305
3306         * scripts/test_printers_common.py: Set TERM to a known harmless
3307         value.
3308
3309 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
3310
3311         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3312         (xdr_u_int): Likewise.
3313         (xdr_enum): Likewise.
3314         (xdr_bytes): Reword fall-through comment.
3315         (xdr_string): Likewise.
3316
3317 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3318
3319         [BZ #2421]
3320         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3321         (tests): Add tst-join8 tst-join9.
3322         * nptl/lll_timedwait_tid.c: Remove file.
3323         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3324         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3325         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3326         * nptl/pthread_join_common.c (timedwait_tid): New function.
3327         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3328         is set.
3329         * nptl/tst-join5.c (thread_join): New function.
3330         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3331         check.
3332         * nptl/tst-join8.c: New file.
3333         * nptl/tst-join9.c: Likewise.
3334         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3335         lll_futex_timed_wait_cancel): Add generic macros.
3336         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3337         Remove definitions.
3338         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3339         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3340         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3341         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3342         Remove function.
3343         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3344         Likewise.
3345         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3346         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3347         (lll_futex_timed_wait_cancel): New macro.
3348
3349 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
3350
3351         * benchtests/Makefile: Add malloc-simple benchmark.
3352         * benchtests/bench-malloc-simple.c: New benchmark.
3353
3354 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3355
3356         * benchtests/bench-memmove.c (do_one_test): Remove unused
3357         ORIG_SRC.
3358         (do_test): Adjust.
3359         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3360         ORIG_SRC.
3361         (do_test): Adjust.
3362
3363 2019-01-13  Jim Wilson  <jimw@sifive.com>
3364
3365         [BZ #24040]
3366         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3367         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3368         (func): New.
3369         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
3370         call func directly.
3371         * nptl/Makefile (tests): Add tst-unwind-thread.
3372         (CFLAGS-tst-unwind-thread.c): Define.
3373         * nptl/tst-unwind-thread.c: New file.
3374         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3375         as undefined.
3376
3377 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
3378
3379         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3380         comment wording.
3381         * nis/nis_call.c (__do_niscall3): Likewise.
3382
3383         * catgets/gencat.c (normalize_line): Use braces around empty
3384         'else' body.
3385         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3386         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3387         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3388         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3389         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3390         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3391         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3392         definition.
3393
3394         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3395         execlp returns.
3396
3397 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
3398
3399         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3400         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3401         * benchtests/bench-strchr.c (stupid_strchr): Remove.
3402         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3403         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3404         * benchtests/bench-strlen.c (builtin_strlen): Remove.
3405         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3406         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3407         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3408         * benchtests/bench-strspn.c (stupid_strspn): Remove.
3409         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3410         * benchtests/bench-bcopy.c: Delete file.
3411         * benchtests/bench-bzero.c: Likewise.
3412         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3413         (simple_memccpy): Remove.
3414         (generic_memccpy): Add function.
3415         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3416         * benchtests/bench-memmove.c (simple_bcopy): Remove.
3417         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3418         (generic_mempcpy): Add new function.
3419         * benchtests/bench-memset.c (simple_bzero): Remove.
3420         (builtin_bzero): Remove.
3421         (builtin_memset): Remove.
3422         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3423         (generic_rawmemchr): Add new function.
3424
3425 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3426
3427         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3428
3429 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3430
3431         [BZ #24122]
3432         * elf/Makefile (tests): Add tst-audit13.
3433         (modules-names): Add tst-audit13mod1.
3434         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3435         rule.
3436         * elf/tst-audit13.c: New file.
3437         * elf/tst-audit13mod1.c: Likewise.
3438
3439 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3440
3441         [BZ #24122]
3442         * elf/rtld.c (unload_audit_module): New function.
3443         (report_audit_module_load_error): Likewise.
3444         (load_audit_module): Likewise.  Extracted from dl_main.  Call
3445         _dl_close if the laversion symbol cannot be found.  Use early
3446         returns for error handling.  Add malloc error check.  Check for a
3447         zero return value from la_version.  Remove spurious comment about
3448         static TLS initialization.  Remove useless casts.
3449         (notify_audit_modules_of_loaded_object): New function.  Extracted
3450         from dl_main.
3451         (load_audit_module): Likewise.
3452         (dl_main): Call load_audit_modules.
3453
3454 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
3455
3456         * elf/dl-exception.c (_dl_exception_create_format): Add
3457         fall-through comments.
3458         * elf/ldconfig.c (parse_conf_include): Likewise.
3459         * elf/rtld.c (print_statistics): Likewise.
3460         * locale/programs/charmap.c (parse_charmap): Likewise.
3461         * misc/mntent_r.c (__getmntent_r): Likewise.
3462         * posix/wordexp.c (parse_arith): Likewise.
3463         (parse_backtick): Likewise.
3464         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3465         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3466         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3467
3468 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
3469
3470         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3471         Use float instead of double.
3472
3473 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3474
3475         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3476
3477 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
3478
3479         * sysdeps/powerpc/bits/mathinline.h: Remove.
3480
3481 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3482
3483         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3484         * math/bits/math-finite.h: Move to ...
3485         * bits/math-finite.h: ... here.
3486
3487 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3488
3489         * sysdeps/generic/bits/unistd_ext.h: Move to ...
3490         * bits/unistd_ext.h: here.
3491
3492 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
3493
3494         [BZ #21915]
3495         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3496         * nss/tst-nss-files-hosts-long.c: New file.
3497         * nss/tst-nss-files-hosts-long.root: New directory.
3498         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3499         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3500
3501 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3502
3503         * include/bits/unistd_ext.h: Remove file.
3504         * posix/bits/unistd_ext.h: Move to ...
3505         * sysdeps/generic/bits/unistd_ext.h: ... here.
3506
3507 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3508
3509         * include/bits/unistd_ext.h: New file.
3510
3511 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3512
3513         * time/tst-strftime2.c: Use array_length macros instead of magic
3514         numbers.
3515
3516 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3517
3518         [BZ #24161]
3519         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3520         argument.
3521         * nptl/register-atfork.c (__run_fork_handlers): Only perform
3522         locking if the new do_locking argument is true.
3523         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3524         __run_fork_handlers.
3525
3526 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3527
3528         [BZ #6399]
3529         Linux: Add gettid system call wrapper.
3530         * posix/Makefile (headers): Add bits/unistd_ext.h.
3531         * posix/bits/unistd_ext.h: New file.
3532         * posix/unistd.h: Include it.
3533         * manual/process.texi (Process Identification): Document gettid.
3534         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3535         tst-gettid, tst-gettid-kill.
3536         (tst-gettid): Link with $(shared-thread-library).
3537         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3538         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3539         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3540         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3541         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3542         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3543         Add gettid.
3544         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3545         Likewise.
3546         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3547         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3548         Likewise.
3549         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3550         Likewise.
3551         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3552         Likewise.
3553         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3554         Likewise.
3555         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3556         Likewise.
3557         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3558         Likewise.
3559         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3560         Likewise.
3561         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3562         (GLIBC_2.30): Likewise.
3563         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3564         (GLIBC_2.30): Likewise.
3565         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3566         (GLIBC_2.30): Likewise.
3567         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3568         (GLIBC_2.30): Likewise.
3569         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3570         Likewise.
3571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3572         (GLIBC_2.30): Likewise.
3573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3574         (GLIBC_2.30): Likewise.
3575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3576         (GLIBC_2.30): Likewise.
3577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3578         (GLIBC_2.30): Likewise.
3579         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3580         Likewise.
3581         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3582         Likewise.
3583         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3584         Likewise.
3585         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3586         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3587         Likewise.
3588         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3589         Likewise.
3590         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3595
3596 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3597
3598         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3599         compatibility symbols.
3600
3601 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
3602
3603         [BZ #24180]
3604         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3605         Add compiler barriers and comments.
3606
3607 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3608
3609         * include/array_length.h (array_length): Do not use a statement
3610         expression and _Static_assert, so that array_length can be used at
3611         file scope and as a constant expression.
3612
3613 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3614
3615         * support/xdlfcn.h (xdlmopen): Declare.
3616         * support/xdlmopen.c: New file.
3617         * support/Makefile (libsupport-routines): Add xdlmopen.
3618
3619 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
3620
3621         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3622         before return type, without separate inline.
3623         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3624         * elf/dl-tunables.h (tunable_is_name): Likewise.
3625         * malloc/malloc.c (do_set_trim_threshold): Likewise.
3626         (do_set_top_pad): Likewise.
3627         (do_set_mmap_threshold): Likewise.
3628         (do_set_mmaps_max): Likewise.
3629         (do_set_mallopt_check): Likewise.
3630         (do_set_perturb_byte): Likewise.
3631         (do_set_arena_test): Likewise.
3632         (do_set_arena_max): Likewise.
3633         (do_set_tcache_max): Likewise.
3634         (do_set_tcache_count): Likewise.
3635         (do_set_tcache_unsorted_limit): Likewise.
3636         * nis/nis_subr.c (count_dots): Likewise.
3637         * nptl/allocatestack.c (advise_stack_range): Likewise.
3638         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3639         (do_sin): Likewise.
3640         (reduce_sincos): Likewise.
3641         (do_sincos): Likewise.
3642         * sysdeps/unix/sysv/linux/x86/elision-conf.c
3643         (do_set_elision_enable): Likewise.
3644         (TUNABLE_CALLBACK_FNDECL): Likewise.
3645
3646 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3647
3648         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3649         (xdlsym): Use dlerror to detect a NULL symbol.
3650
3651 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3652
3653         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3654         <stap-probe.h>.
3655         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3656
3657 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3658
3659         * libio/tst-bz24153.c (wide): Use wide char format specifier.
3660
3661 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3662
3663         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3664         __wmemcmp and weak alias to wmemcmp.
3665
3666 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3667
3668         [BZ #23403]
3669         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3670         TLS_TCB_AT_TP tls variant.
3671         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3672         Add alignment checks.
3673         * support/Makefile (libsupport-routines): Add xposix_memalign and
3674         xpthread_setstack.
3675         * support/support.h: Add xposix_memalign.
3676         * support/xthread.h: Add xpthread_attr_setstack.
3677         * support/xposix_memalign.c: New File.
3678         * support/xpthread_attr_setstack.c: Likewise.
3679
3680 2019-02-05  Florian Weimer  <fweimer@redhat.com>
3681
3682         [BZ #24164]
3683         arm: Use "nr" constraint for Systemtap probes, to avoid the
3684         compiler using memory operands for constants, due to the "o"
3685         alternative in the default "nor" constraint.
3686         * include/stap-probe.h [USE_STAP_PROBE]: Include
3687         <stap-probe-machine.h>
3688         * sysdeps/generic/stap-probe-machine.h: New file.
3689         * sysdeps/arm/stap-probe-machine.h: Likewise.
3690
3691 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
3692
3693         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3694         with 0, not tcache->entries[tc_idx].
3695
3696         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3697         once.
3698
3699 2019-02-04  Andreas Schwab  <schwab@suse.de>
3700
3701         [BZ #16976]
3702         [BZ #17396]
3703         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3704         looking up collating elements match against (wide) character
3705         sequence instead of name.  Correct alignment adjustment.
3706         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3707         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3708         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3709         (LOCALES): Add cs_CZ.ISO-8859-2.
3710         * posix/tst-fnmatch4.c: New file.
3711         * posix/tst-fnmatch5.c: New file.
3712         * include/wchar.h (__wmemcmp): Declare.
3713         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3714         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3715         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3716         * sysdeps/s390/wmemcmp.c: Likewise.
3717
3718 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         [BZ #24155]
3721         CVE-2019-7309
3722         * NEWS: Updated for CVE-2019-7309.
3723         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
3724         upper 32 bits of RDX register for x32.  Use unsigned Jcc
3725         instructions, instead of signed.
3726         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3727         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3728
3729 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3730
3731         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3732         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3733         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3734         Likewise.
3735         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3736         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3737         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3738         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3739         Likewise.
3740         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3741         Likewise.
3742         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3743         Likewise.
3744         (posix_spawn_file_actions_addopen): Likewise.
3745         (posix_spawn_file_actions_addclose): Likewise.
3746         (posix_spawn_file_actions_adddup2): Likewise.
3747         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
3748         qualifiers.
3749         (posix_spawn_file_actions_addfchdir_np): Likewise.
3750
3751 2019-02-04  David Newall  <glibc@davidnewall.com>
3752
3753         elf: Implement --preload option for the dynamic linker.
3754         * elf/rtld.c (preloadarg): New variable.
3755         (handle_preload_list): Pass through “where” argument to
3756         do_preload.
3757         (dl_main): Handle "--preload" and add second call to
3758         handle_preload_list.
3759         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3760         (tst-rtld-preload-OBJS): Set variable.
3761         (tst-rtld-preload.out): New target.
3762         * elf/tst-rtld-preload.sh: New file.
3763
3764 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
3765
3766         * Makefile (testrun.sh): Exit in case of incorrect argument.
3767
3768 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3769
3770         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3771         alignment gaps.
3772
3773 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3774
3775         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3776         implicit overflow checks.
3777
3778 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
3779
3780         * stdlib/isomac.c: Include <unistd.h>.
3781
3782 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3783
3784         * include/time.h (__tzfile_default): Use int, not long int, for
3785         the GMT offsets.
3786         * time/tzfile.c (struct ttinfo): Change type of the offset member
3787         to int.
3788         (__tzfile_read): Remove useless cast.
3789         (__tzfile_default): Adjust prototype.
3790         * time/tzset.c (tz_rule): Change type of the offset member to int.
3791         (parse_offset): Change the type of the sign variable to int.
3792
3793 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3794
3795         [BZ #24153]
3796         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3797         * libio/getchar.c (getchar): Likewise.
3798         * libio/getchar_u.c (getchar_unlocked): Likewise.
3799         * libio/getwchar.c (getwchar): Likewise.
3800         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3801         * libio/iogets.c (_IO_gets): Likewise.
3802         * libio/vscanf.c (_IO_vscanf): Likewise.
3803         * libio/vwscanf.c (__vwscanf): Likewise.
3804         * libio/tst-bz24153.c: New file.
3805         * libio/Makefile (tests): Add it.
3806
3807 2019-02-02  Florian Weimer  <fweimer@redhat.com>
3808
3809         [BZ #14829]
3810         * manual/resource.texi (Basic Scheduling Functions): Add
3811         portability note.  Change process to task throughout the section.
3812         Remove incorrect comment about sched_yield as it affects
3813         tasks/threads, not entire processes.
3814         * sysdeps/unix/sysv/linux/bits/posix_opt.h
3815         (_POSIX_PRIORITY_SCHEDULING): Update comment.
3816
3817 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3818
3819         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3820         * configure: Regenerated.
3821         * manual/install.texi (Tools for Compilation): Update minimum GCC
3822         version.
3823         * INSTALL: Regenerated.
3824
3825 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3826
3827         * support/support_test_compare_string.c
3828         (support_test_compare_string): Use "string" in error message.
3829         * support/tst-test_compare_string.c (do_test): Adjust.
3830
3831 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3832
3833         * support/support_format_address_family.c
3834         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3835
3836 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3837
3838         * manual/socket.texi (Internet Address Formats): Clarify the byte
3839         order of struct sockaddr_in, struct sockaddr_in6.  Document
3840         sin6_flowinfo and sin6_scope_id.
3841
3842 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
3843
3844         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3845         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3846         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3847         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3848         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3849         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3850
3851 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3852
3853         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3854         [!MEMCHR](MEMCHR): Set to __memchr.
3855         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3856         Add memchr_generic and memchr_nosimd.
3857         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3858         (__libc_ifunc_impl_list): Add memchr ifuncs.
3859         * sysdeps/aarch64/multiarch/memchr.c: New file.
3860         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3861         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3862
3863 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3864
3865         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3866         Add memset_emag.
3867         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3868         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3869         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3870         Add IS_EMAG check for ifunc dispatch.
3871         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3872         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3873
3874 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3875
3876         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3877         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3878         Add emag.
3879         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3880         New macro.
3881
3882 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
3883
3884         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3885
3886 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
3887
3888         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3889         syscall-template file.
3890
3891 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
3892             Torvald Riegel  <triegel@redhat.com>
3893             Rik Prohaska  <prohaska7@gmail.com>
3894
3895         [BZ# 23844]
3896         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3897         tst-rwlock-trywrlock-stall.
3898         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3899         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3900         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3901         Set __wrphase_fute to 1 only if we started the write phase.
3902         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3903         * nptl/tst-rwlock-trywrlock-stall.c: New file.
3904         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3905         * support/xpthread_rwlock_destroy.c: New file.
3906         * support/xthread.h: Declare xpthread_rwlock_destroy.
3907
3908 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3909
3910         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3911         version to 4.0.2.
3912
3913 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
3914
3915         [BZ #24051]
3916         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3917         * libio/fileops.c (_IO_new_file_underflow): Likewise
3918         * libio/wfileops.c (_IO_wfile_underflow): Likewise
3919         * libio/putchar.c (putchar): Likewise.
3920         * libio/putchar_u.c (putchar_unlocked): Likewise.
3921         * libio/putwchar.c (putchar): Likewise.
3922         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3923         * libio/tst-bz24051.c: New test.
3924         * libio/Makefile (tests): Add tst-bz24051
3925
3926 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3927
3928         CVE-2019-9169
3929         regex: fix read overrun [BZ #24114]
3930         Problem found by AddressSanitizer, reported by Hongxu Chen in:
3931         https://debbugs.gnu.org/34140
3932         * posix/regexec.c (proceed_next_node):
3933         Do not read past end of input buffer.
3934
3935 2019-01-31  Florian Weimer  <fweimer@redhat.com>
3936
3937         [BZ #24059]
3938         * nss/nss_files/files-alias.c (get_next_alias): Handle
3939         continuation line without newline at the end.
3940         * nss/tst-nss-files-alias-truncated.c: New file.
3941         * nss/Makefile [$(build-shared)] (tests): Add
3942         tst-nss-files-alias-truncated.
3943         (tst-nss-files-alias-truncated): Link with libnss_files.so.
3944         * support/namespace.h (struct support_chroot_configuration): Add
3945         aliases member.
3946         (struct support_chroot): Add path_aliases member.
3947         * support/support_chroot.c (support_chroot_create): Handle
3948         aliases.
3949         (support_chroot_free): Free path_aliases.
3950
3951 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3952
3953         * version.h (RELEASE): Set to "development".
3954         (VERSION): Set to "2.29.9000".
3955         * NEWS: Add section for 2.30.
3956
3957         * version.h (RELEASE): Set to "stable".
3958         (VERSION): Set to "2.29".
3959         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3960
3961         * NEWS: Add the list of bugs fixed in 2.29.
3962         * manual/contrib.texi: Update contributors list with some more
3963         names.
3964         * manual/install.texi: Update latest versions of packages
3965         tested.
3966         * INSTALL: Regenerated.
3967
3968 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3969
3970         * po/be.po: Update translations.
3971         * po/bg.po: Likewise.
3972         * po/ca.po: Likewise.
3973         * po/cs.po: Likewise.
3974         * po/da.po: Likewise.
3975         * po/de.po: Likewise.
3976         * po/el.po: Likewise.
3977         * po/eo.po: Likewise.
3978         * po/es.po: Likewise.
3979         * po/fi.po: Likewise.
3980         * po/fr.po: Likewise.
3981         * po/gl.po: Likewise.
3982         * po/hr.po: Likewise.
3983         * po/hu.po: Likewise.
3984         * po/ia.po: Likewise.
3985         * po/id.po: Likewise.
3986         * po/it.po: Likewise.
3987         * po/ja.po: Likewise.
3988         * po/ko.po: Likewise.
3989         * po/lt.po: Likewise.
3990         * po/nb.po: Likewise.
3991         * po/nl.po: Likewise.
3992         * po/pl.po: Likewise.
3993         * po/pt_BR.po: Likewise.
3994         * po/ru.po: Likewise.
3995         * po/rw.po: Likewise.
3996         * po/sk.po: Likewise.
3997         * po/sl.po: Likewise.
3998         * po/sv.po: Likewise.
3999         * po/tr.po: Likewise.
4000         * po/uk.po: Likewise.
4001         * po/vi.po: Likewise.
4002         * po/zh_CN.po: Likewise.
4003         * po/zh_TW.po: Likewise.
4004
4005 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
4006
4007         [BZ #24130]
4008         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4009         of $f3 register on $y_is_neg path.
4010
4011 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4012
4013         [BZ #24110]
4014         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4015         sigaltstack.ss_flags.
4016
4017 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4018
4019         [BZ #23758]
4020         * manual/time.texi (strftime): Document "%Ey".
4021         * time/strftime_l.c (__strftime_internal): Set the default width
4022         padding with zero of "%Ey" to 2.
4023
4024         [BZ #24096]
4025         * manual/time.texi (strftime): Document "%EC" and "%EY".
4026         * time/Makefile (tests): Add tst-strftime2.
4027         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4028         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4029         override padding for "%Ey".
4030         If an optional flag ('_' or '-') is specified to "%EY", interpret the
4031         "%Ey" in the subformat as if decorated with that flag.
4032         * time/tst-strftime2.c: New file.
4033
4034 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4035
4036         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4037         are not defined.
4038
4039         [BZ #24122]
4040         * elf/Makefile (tests): Add tst-audit13.
4041         (modules-names): Add tst-audit13mod1.
4042         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4043         rule.
4044         * elf/rtld.c (dl_main): Handle invalid audit module version.
4045         * elf/tst-audit13.c: New file.
4046         * elf/tst-audit13mod1.c: Likewise.
4047
4048 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4049
4050         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4051         returned by __hurd_at_flags.
4052         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4053         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4054         directly instead of __hurd_file_name_lookup.
4055
4056 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
4057
4058         * scripts/build-many-glibcs.py (Context.checkout): Default
4059         binutils version to 2.32 branch.
4060
4061 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4062
4063         [BZ #20018]
4064         CVE-2016-10739
4065         resolv: Reject trailing characters in host names
4066         * include/arpa/inet.h (__inet_aton_exact): Declare.
4067         (inet_aton): Remove hidden prototype.  No longer used internally.
4068         * nscd/gai.c (__inet_aton): Do not define.
4069         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4070         * nss/digits_dots.c (__inet_aton): Likewise.
4071         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4072         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4073         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4074         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4075         (tst-resolv-trailing): Likewise.
4076         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4077         libc.
4078         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4079         Make static.  Add endp parameter.
4080         (__inet_aton_exact): New function.
4081         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4082         (__inet_addr): Call inet_aton_end.
4083         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4084         not just IPv6.  Call __inet_aton_exact.
4085         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4086         (tests): Make const.  Add additional test cases with trailing
4087         characters.
4088         (do_test): Use array_length.
4089         * resolv/tst-inet_aton_exact.c: New file.
4090         * resolv/tst-resolv-trailing.c: Likewise.
4091         * resolv/tst-resolv-nondecimal.c: Likewise.
4092         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4093
4094 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4095
4096         [BZ# 24097]
4097         CVE-2019-6488
4098         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4099         Clear the upper 32 bits of RSI register.
4100         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4101         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4102         and tst-size_t-wcsnlen.
4103         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4104         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4105
4106 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4107
4108         [BZ# 24097]
4109         CVE-2019-6488
4110         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4111         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4112         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4113         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4114         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4115
4116 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4117
4118         [BZ# 24097]
4119         CVE-2019-6488
4120         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4121         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4122         * sysdeps/x86_64/strcmp.S: Likewise.
4123         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4124         tst-size_t-strncmp and tst-size_t-wcsncmp.
4125         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4126         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4127         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4128
4129 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4130
4131         [BZ# 24097]
4132         CVE-2019-6488
4133         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4134         RDX_LP for length.  Clear the upper 32 bits of RDX register.
4135         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4136         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4137         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4138         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4139
4140 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4141
4142         [BZ# 24097]
4143         CVE-2019-6488
4144         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4145         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4146         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4147         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4148
4149 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4150
4151         [BZ# 24097]
4152         CVE-2019-6488
4153         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4154         length.  Clear the upper 32 bits of RDX register.
4155         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4156         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4157         Likewise.
4158         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4159         Likewise.
4160         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4161         tst-size_t-wmemchr.
4162         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4163
4164 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4165
4166         [BZ# 24097]
4167         CVE-2019-6488
4168         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4169         length.  Clear the upper 32 bits of RDX register.
4170         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4171         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4172         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4173         tst-size_t-wmemcmp.
4174         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4175         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4176
4177 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4178
4179         [BZ# 24097]
4180         CVE-2019-6488
4181         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
4182         upper 32 bits of RDX register.
4183         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4184         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4185         tst-size_t-wmemchr.
4186         * sysdeps/x86_64/x32/test-size_t.h: New file.
4187         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4188         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4189
4190 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4191
4192         [BZ #24112]
4193         resolv: Do not send queries for non-host-names in nss_dns.
4194         * resolv/nss_dns/dns-host.c (check_name): New function.
4195         (_nss_dns_gethostbyname2_r): Use it.
4196         (_nss_dns_gethostbyname_r): Likewise.
4197         (_nss_dns_gethostbyname4_r): Likewise.
4198
4199 2019-01-21  Florian Weimer  <fweimer@redhat.com>
4200
4201         * resolv/inet_addr.c: Reformat to GNU style.
4202         (__inet_addr, __inet_aton): Update comment.
4203
4204 2019-01-18  Florian Weimer  <fweimer@redhat.com>
4205
4206         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4207         ("malloc: Use current (C11-style) atomics for fastbin access").
4208         This commit introduces a substantial performance regression on
4209         POWER and Aarch64.
4210         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4211         (REMOVE_FB): Define.
4212         (_int_malloc): Use it and reindent.
4213         (_int_free): Use CAS loop with
4214         catomic_compare_and_exchange_val_rel.
4215         (malloc_consolidate): Use atomic_exchange_acq.
4216
4217
4218 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
4219
4220         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
4221         -Wl,-z,now.
4222         (LDFLAGS-tst-minsigstksz-2): Likewise.
4223         (LDFLAGS-tst-minsigstksz-3): Likewise.
4224         (LDFLAGS-tst-minsigstksz-3a): Likewise.
4225         (LDFLAGS-tst-minsigstksz-4): Likewise.
4226
4227 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4228
4229         * manual/time.texi (strftime): Fix the wording to "alternative" rather
4230         than "alternate".
4231
4232 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
4233
4234         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4235
4236 2019-01-16  Zack Weinberg  <zackw@panix.com>
4237
4238         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4239         (xget_sigstack_location): New test support functions.
4240         * support/xsigstack.c: New file, implementing them.
4241         * support/tst-xsigstack.c: New test for them.
4242         * support/Makefile: Update.
4243
4244         * signal/tst-minsigstksz-1.c
4245         * signal/tst-minsigstksz-2.c
4246         * signal/tst-minsigstksz-3.c
4247         * signal/tst-minsigstksz-3a.c
4248         * signal/tst-minsigstksz-4.c: New tests.
4249         * signal/Makefile: Run them.
4250
4251 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4252
4253         * po/libc.pot: Regenerate.
4254
4255 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4256
4257         * math/libm-test-fma.inc (fma_test_data): Set
4258         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4259
4260 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4261
4262         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4263         (do_test): Changed __vector __int128_t to __vector unsigned int.
4264
4265 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4266
4267         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4268         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4269         stpcpy-avx2 and stpncpy-avx2.
4270         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4271         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4272         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4273         and __stpncpy_avx2.
4274         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4275         ifunc-strcpy.h}: rename header for a more generic name.
4276         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4277         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4278         AVX unaligned load is fast and vzeroupper is preferred.
4279         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4280         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4281         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4282         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4283         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4284         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4285
4286 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
4287
4288         * argp/argp-help.c: Fix typo in comment.
4289         * misc/sys/cdefs.h: Likewise.
4290         * posix/regexec.c (sift_states_iter_mb): Likewise.
4291         * socket/sockatmark.c: Likewise.
4292         * socket/sys/socket.h: Likewise.
4293         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4294         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4295         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4296         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4297         * sysdeps/unix/sockatmark.c: Likewise.
4298         * time/strptime_l.c: Likewise.
4299
4300 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
4301
4302         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4303         missing space after the cast of "_NL_CURRENT".
4304
4305 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
4306
4307         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4308         ifdef to fix read of VSCR.
4309         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4310         tst-ucontext-ppc64-vscr.c to test list.
4311         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4312
4313 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
4314
4315         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4316         fall-through.
4317
4318 2019-01-09  Jim Wilson  <jimw@sifive.com>
4319
4320         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4321
4322 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
4323
4324         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4325         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4326         __memcpy_falkor for ares.
4327         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4328         Add new define.
4329         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4330         Add ares cpu.
4331
4332 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
4333
4334         [BZ #24066]
4335         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4336         4_FP_W_TYPEs are used for IEEE quad precision.
4337         * soft-fp/extendhftf2.c: Likewise.
4338         * soft-fp/extendsftf2.c: Likewise.
4339         * soft-fp/extendxftf2.c: Likewise.
4340         * soft-fp/trunctfdf2.c: Likewise.
4341         * soft-fp/trunctfhf2.c: Likewise.
4342         * soft-fp/trunctfsf2.c: Likewise.
4343         * soft-fp/trunctfxf2.c: Likewise.
4344         * sysdeps/alpha/ots_cvttx.c: Likewise.
4345         * sysdeps/alpha/ots_cvtxt.c: Likewise.
4346         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4347         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4348         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4349         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4350         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4351         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4352         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4353         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4354         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4355         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4356         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4357         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4358         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4359         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4360         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4361         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4362
4363 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4364
4365         [BZ #24024]
4366         * Makeconfig: Build libm with -fno-math-errno but build the remaining
4367         code with -fmath-errno.
4368         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4369         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4370         * string/test-strerror-errno.c: New file.
4371
4372 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4373
4374         [BZ #24046]
4375         * localedata/locales/en_US (date_fmt): Add, set to
4376         "%a %d %b %Y %r %Z".
4377
4378 2019-01-07  Florian Weimer  <fweimer@redhat.com>
4379
4380         [BZ #24063]
4381         * manual/arith.texi (Math Error Reporting): Use @code{errno}
4382         instead of @var{errno}.
4383         (Parsing of Integers): Likewise.
4384         (Parsing of Floats): Likewise.
4385         * manual/filesys.texi (Working with Directory Trees): Likewise.
4386         (Temporary Files): Likewise.
4387         * manual/job.texi (Terminal Access Functions): Likewise.
4388         * manual/llio.texi (Synchronizing I/O): Likewise.
4389         * manual/math.texi (SVID Random): Likewise.
4390         * manual/message.texi (The catgets Functions): Likewise.
4391         (Translation with gettext): Likewise.
4392         (Locating gettext catalog): Likewise.
4393         (Charset conversion in gettext): Likewise.
4394         * manual/nss.texi (NSS Module Function Internals): Likewise.
4395         * manual/search.texi (Hash Search Function): Likewise.
4396         * manual/setjmp.texi (System V contexts): Likewise.
4397         * manual/time.texi (Sleeping): Likewise.
4398         * manual/users.texi (Lookup User): Likewise.
4399         (Lookup Group): Likewise.
4400
4401 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4402
4403         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4404         fix typo.
4405
4406 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
4407
4408         [BZ #19444]
4409         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4410         __builtin_unreachable for default case in switch.
4411         (__ieee754_yn): Likewise.
4412         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4413         (__ieee754_ynl): Likewise.
4414         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4415         (__ieee754_ynl): Likewise.
4416         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4417         (__ieee754_ynl): Likewise.
4418
4419 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4420
4421         * manual/maint.texi: Use @{ and @}.
4422
4423 2019-01-04  Florian Weimer  <fweimer@redhat.com>
4424
4425         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4426         function.
4427         (do_in_chroot_1): Call it.
4428         (run_chroot_tests):
4429         Improve error reporting in case it is not possible to create a
4430         collision for the PTY name required by the test.
4431
4432 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4433
4434         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4435         lll_wait_tid with timeout.
4436         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4437         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4438         futex_reltimed_wait_cancelable for cancelabla mode.
4439         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4440         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4441         macros.
4442         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4443         * sysdeps/posix/waitid.c (__sigwait): Likewise.
4444         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4445         SYSCALL_CANCEL_NCS): New macro.
4446         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4447         (lll_timedwait_tid): Remove macro.
4448         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4449         Likewise.
4450         (lll_timedwait_tid): Likewise.
4451         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4452         Likewise.
4453         (lll_timedwait_tid): Likewise.
4454         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4455         Likewise.
4456         (lll_timedwait_tid): Likewise.
4457         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4458         Use INTERNAL_SYSCALL_CANCEL.
4459         * sysdeps/unix/sysv/linux/futex-internal.h
4460         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4461         instead of __pthread_{enable,disable}_asynccancel.
4462         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4463         (lll_futex_wait_cancel): New macro.
4464
4465         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4466         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4467
4468         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4469         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4470
4471         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4472         in backtrace analysis.
4473         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4474         side-effects.
4475         (tf_send): Likewise.
4476
4477         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4478         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4479         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4480         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4481         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4482         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4483         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4484         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4485         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4486         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4487         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4488         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4489         Likewise.
4490         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4491         tst-cancel-wrappers.sh.
4492         (generated): Remove tst-cancel-wrappers.out.
4493         (tst-cancel-wrappers.out): Remove rule.
4494         * nptl/tst-cancel-wrappers.sh: Remove file.
4495
4496 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4497
4498         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4499         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4500         Update.
4501
4502 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4503
4504         [BZ #23640]
4505         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4506         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4507         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4508         close-on-exec reset for adddup2 file action.
4509         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4510
4511 2019-01-03  Zack Weinberg  <zackw@panix.com>
4512
4513         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4514         parameter.  Only use deprecated scanf when __USE_GNU is defined
4515         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4516         than 201103L, whichever is relevant for the language being compiled.
4517
4518         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4519         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4520         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4521         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4522         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4523
4524         * libio/iovsscanf.c
4525         * libio/fwscanf.c
4526         * libio/iovswscanf.c
4527         * libio/swscanf.c
4528         * libio/vscanf.c
4529         * libio/vwscanf.c
4530         * libio/wscanf.c
4531         * stdio-common/fscanf.c
4532         * stdio-common/scanf.c
4533         * stdio-common/vfscanf.c
4534         * stdio-common/vfwscanf.c
4535         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4536         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4537         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4538         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4539         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4540         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4541         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4542         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4543         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4544         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4545         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4546         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4547         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4548         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4549         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4550
4551         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
4552         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4553         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4554         not sscanf.
4555         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4556         with a preprocessor macro.
4557
4558         * stdio-common/bug21.c, stdio-common/scanf14.c:
4559         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4560         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4561         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
4562         to xscanf, xfscanf, xsscanf.
4563
4564         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4565         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4566         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4567         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
4568         xfscanf, xsscanf.
4569         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4570         override feature selection macros or provide definitions of u_char etc.
4571         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4572         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4573         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
4574         with -std=gnu89.
4575
4576 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4577
4578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4579         bits/termios-misc.h.
4580         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4581         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4582         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4583         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4584         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4585         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4586
4587         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4588         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4589         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4590         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4591         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4592         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4593         termios-misc.h.
4594         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4595         (sysdep_headers): Add termios-misc.h.
4596
4597         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4598         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4599         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4600
4601         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4602         termios-tcflow.h.
4603         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4604         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4605         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4606         TCSAFLUSH): Move to termios-tcflow.h.
4607         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4608         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4609         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4610         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4611
4612         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4613         termios-c_lflag.h.
4614         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4615         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4616         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4617         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4618         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4619         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4620         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4621         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4622         Likewise.
4623         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4624         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4625         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4626         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4627
4628         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4629         termios-c_cflag.h.
4630         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4631         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4632         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4633         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4634         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4635         termios-c_cflag.h.
4636         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4637         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4638         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4639         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4640
4641         [BZ #23783]
4642         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4643         termios-baud.h.
4644         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4645         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4646         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4647         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4648         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4649         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4650         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4651         __MAX_BAUD): Move to termios-baud.h.
4652         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4653         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4654         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4655         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4656         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4657
4658         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4659         termios-c_oflag.h.
4660         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4661         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4662         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4663         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4664         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4665         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
4666         termios-c_oflag.h.
4667         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4668         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4669         FFR1): Likewise.
4670         [USE_MISC] (XTABS): Likewise.
4671         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4672         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4673         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4674         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4675
4676         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4677         termios-c_iflag.h.
4678         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4679         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4680         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4681         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4682         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4683         IUTF8): Move to termios-c_iflag.h.
4684         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4685         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4686         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4687         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4688
4689         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4690         termios-cc.h.
4691         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4692         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4693         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4694         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4695         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4696         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4697         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4698         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4699         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4700         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4701         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4702         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4703
4704         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4705         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4706         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4707         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4708         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4709         termios-struct.h.
4710         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4711         termios-struct.h.
4712         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4713         Likewise.
4714         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4715         Likewise.
4716         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4717         Likewise.
4718         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4719         Likewise.
4720         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4721         _HAVE_C_OSPEED): Define.
4722         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4723         _HAVE_C_OSPEED): Likewise.
4724         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4725         _HAVE_C_OSPEED): Likewise.
4726         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4727         (cfsetospeed): Check for define value instead of existence.
4728         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4729         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4730         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4731         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4732         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4733
4734         [BZ #17783]
4735         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4736         Define.
4737         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4738         (TIOCSER_TEMT): Likewise.
4739         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4740         (TEOCSER_TEMT): Likewise.
4741
4742 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
4743
4744         [BZ #24011]
4745         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4746
4747 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4748
4749         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4750
4751 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4752
4753         * sysdeps/htl/pt-barrierattr-setpshared.c
4754         (pthread_barrierattr_setpshared): Add stub warning.
4755         * sysdeps/htl/pt-condattr-setpshared.c
4756         (pthread_condattr_setpshared): Likewise.
4757         * sysdeps/htl/pt-mutexattr-setpshared.c
4758         (pthread_mutexattr_setpshared): Likewise.
4759         * sysdeps/htl/pt-rwlockattr-setpshared.c
4760         (pthread_rwlockattr_setpshared): Likewise.
4761         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4762         (pthread_mutexattr_setpshared): Likewise.
4763
4764 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4765
4766         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4767         constants to match with Linux 4.20.
4768
4769         * sysdeps/mips/mips32/libm-test-ulps: Update.
4770         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4771
4772 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4773
4774         [BZ #24034]
4775         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4776         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4777         than __typeof (...) for the a_ptr variable.
4778
4779 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4780
4781         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4782         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4783         * libio/Makefile (tests): Add tst-sprintf-ub and
4784         tst-sprintf-chk-ub.
4785         (CFLAGS-tst-sprintf-ub.c): New variable.
4786         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4787         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4788         destination buffer and check for overflows in fortified mode.
4789         * libio/libioP.h (PRINTF_CHK): New macro.
4790         * libio/tst-sprintf-chk-ub.c: New file.
4791         * libio/tst-sprintf-ub.c: Likewise.
4792
4793 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4794
4795         [BZ #24018]
4796         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4797         failure.
4798
4799 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4800
4801         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4802
4803 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
4804
4805         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4806         macro.
4807
4808         * sysdeps/unix/sysv/linux/netpacket/packet.h
4809         (PACKET_IGNORE_OUTGOING): New macro.
4810
4811         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4812         macro.
4813
4814         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4815         version to 4.20.
4816         (riscv_flush_icache): New syscall.
4817
4818         * manual/texinfo.tex: Update to version 2018-12-28.17 with
4819         trailing whitespace removed.
4820         * scripts/config.guess: Update to version 2019-01-01.
4821         * scripts/config.sub: Update to version 2019-01-01.
4822         * scripts/move-if-change: Update from gnulib.
4823
4824         * NEWS: Update copyright dates.
4825         * catgets/gencat.c (print_version): Likewise.
4826         * csu/version.c (banner): Likewise.
4827         * debug/catchsegv.sh: Likewise.
4828         * debug/pcprofiledump.c (print_version): Likewise.
4829         * debug/xtrace.sh (do_version): Likewise.
4830         * elf/ldconfig.c (print_version): Likewise.
4831         * elf/ldd.bash.in: Likewise.
4832         * elf/pldd.c (print_version): Likewise.
4833         * elf/sotruss.sh: Likewise.
4834         * elf/sprof.c (print_version): Likewise.
4835         * iconv/iconv_prog.c (print_version): Likewise.
4836         * iconv/iconvconfig.c (print_version): Likewise.
4837         * locale/programs/locale.c (print_version): Likewise.
4838         * locale/programs/localedef.c (print_version): Likewise.
4839         * login/programs/pt_chown.c (print_version): Likewise.
4840         * malloc/memusage.sh (do_version): Likewise.
4841         * malloc/memusagestat.c (print_version): Likewise.
4842         * malloc/mtrace.pl: Likewise.
4843         * manual/libc.texinfo: Likewise.
4844         * nptl/version.c (banner): Likewise.
4845         * nscd/nscd.c (print_version): Likewise.
4846         * nss/getent.c (print_version): Likewise.
4847         * nss/makedb.c (print_version): Likewise.
4848         * posix/getconf.c (main): Likewise.
4849         * scripts/test-installation.pl: Likewise.
4850         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4851
4852         * All files with FSF copyright notices: Update copyright dates
4853         using scripts/update-copyrights.
4854         * locale/programs/charmap-kw.h: Regenerated.
4855         * locale/programs/locfile-kw.h: Likewise.
4856
4857 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4858
4859         * timezone/zdump.c: Update from tzcode 2018i.
4860         * timezone/zic.c: Likewise.
4861
4862 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4863
4864         regex: improve Gnulib port to AIX
4865         From the glibc point of view, this removes duplicate macro
4866         definitions and is obviously safe.
4867         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4868         * posix/regex_internal.h:
4869         (__attribute__, __attribute_warn_unused_result__):
4870         Remove; already defined elsewhere.
4871
4872 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
4873
4874         [BZ #24027]
4875         * malloc/malloc.c (_int_realloc): Always call memcpy for the
4876         copying operation.  (ncopies had the wrong type, resulting in an
4877         integer wraparound and too few elements being copied.)
4878
4879 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
4880
4881         [BZ #24022]
4882         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4883         <asm/syscalls.h> exists with __has_include__ before including it.
4884
4885 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4886
4887         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4888         version to 4.20.
4889
4890 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
4891
4892         * hurd/lookup-retry: Include <unistd.h>.
4893         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4894         Release it on return.  Handle "pid" magical lookup retry.
4895
4896 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
4897
4898         [BZ #10496]
4899         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4900         (t_fmt_ampm): Likewise.
4901         * localedata/locales/aa_ER (t_fmt): Likewise.
4902         (t_fmt_ampm): Likewise.
4903         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4904         (t_fmt_ampm): Likewise.
4905         * localedata/locales/aa_ET (t_fmt): Likewise.
4906         (t_fmt_ampm): Likewise.
4907         * localedata/locales/am_ET (t_fmt): Likewise.
4908         (t_fmt_ampm): Likewise.
4909         * localedata/locales/byn_ER (t_fmt): Likewise.
4910         (t_fmt_ampm): Likewise.
4911         * localedata/locales/om_ET (t_fmt): Likewise.
4912         (t_fmt_ampm): Likewise.
4913         * localedata/locales/sid_ET (t_fmt): Likewise.
4914         (t_fmt_ampm): Likewise.
4915         * localedata/locales/so_DJ (t_fmt): Likewise.
4916         (t_fmt_ampm): Likewise.
4917         * localedata/locales/so_ET (t_fmt): Likewise.
4918         (t_fmt_ampm): Likewise.
4919         * localedata/locales/so_SO (t_fmt): Likewise.
4920         (t_fmt_ampm): Likewise.
4921         * localedata/locales/ti_ER (t_fmt): Likewise.
4922         (t_fmt_ampm): Likewise.
4923         * localedata/locales/ti_ET (t_fmt): Likewise.
4924         (t_fmt_ampm): Likewise.
4925         * localedata/locales/tig_ER (t_fmt): Likewise.
4926         (t_fmt_ampm): Likewise.
4927         * localedata/locales/wal_ET (t_fmt): Likewise.
4928         (t_fmt_ampm): Likewise.
4929
4930         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4931         * localedata/locales/ar_IN (t_fmt): Likewise.
4932         * localedata/locales/bhb_IN (t_fmt): Likewise.
4933         * localedata/locales/bho_IN (t_fmt): Likewise.
4934         * localedata/locales/bi_VU (t_fmt): Likewise.
4935         * localedata/locales/bn_BD (t_fmt): Likewise.
4936         * localedata/locales/bn_IN (t_fmt): Likewise.
4937         * localedata/locales/brx_IN (t_fmt): Likewise.
4938         * localedata/locales/doi_IN (t_fmt): Likewise.
4939         * localedata/locales/en_HK (t_fmt): Likewise.
4940         (t_fmt_ampm): Likewise.
4941         * localedata/locales/en_IN (t_fmt): Likewise.
4942         * localedata/locales/en_PH (t_fmt): Likewise.
4943         * localedata/locales/gu_IN (t_fmt): Likewise.
4944         * localedata/locales/hi_IN (t_fmt): Likewise.
4945         * localedata/locales/hif_FJ (t_fmt): Likewise.
4946         * localedata/locales/hne_IN (t_fmt): Likewise.
4947         * localedata/locales/kn_IN (t_fmt): Likewise.
4948         * localedata/locales/kok_IN (t_fmt): Likewise.
4949         * localedata/locales/ks_IN (t_fmt): Likewise.
4950         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4951         * localedata/locales/mag_IN (t_fmt): Likewise.
4952         * localedata/locales/mai_IN (t_fmt): Likewise.
4953         * localedata/locales/mjw_IN (t_fmt): Likewise.
4954         * localedata/locales/ml_IN (t_fmt): Likewise.
4955         * localedata/locales/mni_IN (t_fmt): Likewise.
4956         * localedata/locales/mr_IN (t_fmt): Likewise.
4957         * localedata/locales/ms_MY (t_fmt): Likewise.
4958         * localedata/locales/pa_IN (t_fmt): Likewise.
4959         * localedata/locales/raj_IN (t_fmt): Likewise.
4960         * localedata/locales/sa_IN (t_fmt): Likewise.
4961         * localedata/locales/sat_IN (t_fmt): Likewise.
4962         * localedata/locales/sd_IN (t_fmt): Likewise.
4963         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4964         * localedata/locales/tcy_IN (t_fmt): Likewise.
4965         * localedata/locales/the_NP (t_fmt): Likewise.
4966         * localedata/locales/to_TO (t_fmt): Likewise.
4967         * localedata/locales/ur_IN (t_fmt): Likewise.
4968
4969         * localedata/locales/hif_FJ (d_t_fmt): Set to
4970         "%A %d %b %Y %I:%M:%S %p".
4971         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4972
4973         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4974         * localedata/locales/ar_BH (t_fmt): Likewise.
4975         * localedata/locales/ar_DZ (t_fmt): Likewise.
4976         * localedata/locales/ar_EG (t_fmt): Likewise.
4977         * localedata/locales/ar_IQ (t_fmt): Likewise.
4978         * localedata/locales/ar_JO (t_fmt): Likewise.
4979         * localedata/locales/ar_KW (t_fmt): Likewise.
4980         * localedata/locales/ar_LB (t_fmt): Likewise.
4981         * localedata/locales/ar_LY (t_fmt): Likewise.
4982         * localedata/locales/ar_OM (t_fmt): Likewise.
4983         * localedata/locales/ar_QA (t_fmt): Likewise.
4984         * localedata/locales/ar_SD (t_fmt): Likewise.
4985         * localedata/locales/ar_SS (t_fmt): Likewise.
4986         * localedata/locales/ar_SY (t_fmt): Likewise.
4987         * localedata/locales/ar_TN (t_fmt): Likewise.
4988         * localedata/locales/ar_YE (t_fmt): Likewise.
4989
4990         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4991         (t_fmt_ampm): Likewise.
4992         * localedata/locales/gez_ET (t_fmt): Likewise.
4993         (t_fmt_ampm): Likewise.
4994
4995         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4996         (t_fmt_ampm): Likewise.
4997         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4998
4999         * localedata/locales/zh_HK (t_fmt):
5000         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5001
5002         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5003         because this locale does not use the 12-hour clock.
5004         (t_fmt): Set to "%Z %H:%M:%S".
5005         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5006
5007         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5008         because this locale does not use the 12-hour clock.
5009         (t_fmt): Set to "%H:%M:%S %Z".
5010         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5011
5012         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5013         because this locale does not use the 12-hour clock.
5014         (t_fmt): Set to "%T".
5015         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5016         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5017
5018         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5019         because this locale does not use the 12-hour clock.
5020         (t_fmt): Set to "%H:%M:%S %Z".
5021         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5022
5023         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5024         because this locale does not use the 12-hour clock.
5025         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5026         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5027
5028 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
5029
5030         [BZ #10496]
5031         [BZ #23724]
5032         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5033         (t_fmt_ampm): Likewise.
5034         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5035         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5036         (d_fmt): Set to "%-d.%-m.%y".
5037
5038 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5039
5040         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5041         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5042         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5043         Likewise.
5044         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5045         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5046         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5047         function.
5048         * support/blob_repeat.c (check_mul_overflow_size_t,
5049         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5050
5051 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
5052
5053         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5054
5055 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5056
5057         regex: simplify Gnulib port
5058         This simplifies the code, by removing stuff intended for porting
5059         to Gnulib but no longer needed there.
5060         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5061         uses of libc_hidden_def, weak_alias.
5062         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5063         _Restrict_ except for public-facing headers.
5064         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5065         Remove; already defined elsewhere.
5066         * posix/regex.c, posix/regex_internal.h:
5067         Use __GNUC_PREREQ instead of rolling our own.
5068         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5069
5070 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
5071
5072         * benchtests/bench-strlen.c (generic_strlen): New function.
5073         (memchr_strlen): New function.
5074
5075 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5076
5077         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5078         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5079         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5080
5081 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5082
5083         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5084
5085 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
5086
5087         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5088         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5089         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
5090         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5091         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5092         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5093         <sysdeps/ieee754/flt-32/s_sincosf.c>.
5094
5095 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5096
5097         [BZ #24023]
5098         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5099         PLT reference in libc.so.
5100         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5101         _Q_lltoq and _Q_qtod PLT references in libc.so.
5102
5103 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
5104
5105         * benchtests/bench-memchr.c: Cleanup defines.
5106         * benchtests/bench-memcmp.c: Likewise.
5107         * benchtests/bench-memset.c: Likewise.
5108         * benchtests/bench-memset-large.c: Likewise.
5109         * benchtests/bench-memset-walk.c: Likewise.
5110         * benchtests/bench-stpcpy.c: Likewise.
5111         * benchtests/bench-stpncpy.c: Likewise.
5112         * benchtests/bench-strcat.c: Likewise.
5113         * benchtests/bench-strchr.c: Likewise.
5114         * benchtests/bench-strcmp.c: Likewise.
5115         * benchtests/bench-strcpy.c: Likewise.
5116         * benchtests/bench-strcspn.c: Likewise.
5117         * benchtests/bench-string.h: Likewise.
5118         * benchtests/bench-strlen.c: Likewise.
5119         * benchtests/bench-strncat.c: Likewise.
5120         * benchtests/bench-strncmp.c: Likewise.
5121         * benchtests/bench-strncpy.c: Likewise.
5122         * benchtests/bench-strnlen.c: Likewise.
5123         * benchtests/bench-strpbrk.c: Likewise.
5124         * benchtests/bench-strrchr.c: Likewise.
5125         * benchtests/bench-strspn.c: Likewise.
5126
5127 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
5128
5129         * stdlib/longlong.h: Update from GCC.
5130
5131         [BZ #23993]
5132         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5133         * configure: Regenerated.
5134         * manual/install.texi (Tools for Compilation): Update minimum GCC
5135         version.
5136         * INSTALL: Regenerated.
5137
5138 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
5139
5140         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5141
5142 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
5143
5144         * malloc/malloc.c (mremap_chunk): Additional checks.
5145
5146 2018-12-21  Mao Han  <han_mao@c-sky.com>
5147
5148         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5149         * scripts/build-many-glibcs.py: Add C-SKY targets.
5150         * sysdeps/csky/Implies: New file.
5151         * sysdeps/csky/Makefile: Likewise.
5152         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5153         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5154         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5155         * sysdeps/csky/abiv2/memcmp.S: Likewise.
5156         * sysdeps/csky/abiv2/memcpy.S: Likewise.
5157         * sysdeps/csky/abiv2/memmove.S: Likewise.
5158         * sysdeps/csky/abiv2/memset.S: Likewise.
5159         * sysdeps/csky/abiv2/setjmp.S: Likewise.
5160         * sysdeps/csky/abiv2/start.S: Likewise.
5161         * sysdeps/csky/abiv2/strcmp.S: Likewise.
5162         * sysdeps/csky/abiv2/strcpy.S: Likewise.
5163         * sysdeps/csky/abiv2/strlen.S: Likewise.
5164         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5165         * sysdeps/csky/abort-instr.h: Likewise.
5166         * sysdeps/csky/atomic-machine.h: Likewise.
5167         * sysdeps/csky/bits/endian.h: Likewise.
5168         * sysdeps/csky/bits/fenv.h: Likewise.
5169         * sysdeps/csky/bits/link.h: Likewise.
5170         * sysdeps/csky/bits/setjmp.h: Likewise.
5171         * sysdeps/csky/bsd-_setjmp.S: Likewise.
5172         * sysdeps/csky/bsd-setjmp.S: Likewise.
5173         * sysdeps/csky/configure: Likewise.
5174         * sysdeps/csky/configure.ac: Likewise.
5175         * sysdeps/csky/dl-machine.h: Likewise.
5176         * sysdeps/csky/dl-procinfo.c: Likewise.
5177         * sysdeps/csky/dl-procinfo.h: Likewise.
5178         * sysdeps/csky/dl-sysdep.h: Likewise.
5179         * sysdeps/csky/dl-tls.h: Likewise.
5180         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5181         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5182         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5183         * sysdeps/csky/fpu/fegetenv.c: Likewise.
5184         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5185         * sysdeps/csky/fpu/fegetmode.c: Likewise.
5186         * sysdeps/csky/fpu/fegetround.c: Likewise.
5187         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5188         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5189         * sysdeps/csky/fpu/fenv_private.h: Likewise.
5190         * sysdeps/csky/fpu/fesetenv.c: Likewise.
5191         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5192         * sysdeps/csky/fpu/fesetmode.c: Likewise.
5193         * sysdeps/csky/fpu/fesetround.c: Likewise.
5194         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5195         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5196         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5197         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5198         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5199         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5200         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5201         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5202         * sysdeps/csky/fpu_control.h: Likewise.
5203         * sysdeps/csky/gccframe.h: Likewise.
5204         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5205         * sysdeps/csky/ldsodefs.h: Likewise.
5206         * sysdeps/csky/libc-tls.c: Likewise.
5207         * sysdeps/csky/linkmap.h: Likewise.
5208         * sysdeps/csky/machine-gmon.h: Likewise.
5209         * sysdeps/csky/memusage.h: Likewise.
5210         * sysdeps/csky/nofpu/Implies: Likewise.
5211         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5212         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5213         * sysdeps/csky/nptl/Makefile: Likewise.
5214         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5215         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5216         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5217         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5218         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5219         * sysdeps/csky/nptl/tls.h: Likewise.
5220         * sysdeps/csky/preconfigure: Likewise.
5221         * sysdeps/csky/sfp-machine.h: Likewise.
5222         * sysdeps/csky/sotruss-lib.c: Likewise.
5223         * sysdeps/csky/stackinfo.h: Likewise.
5224         * sysdeps/csky/sysdep.h: Likewise.
5225         * sysdeps/csky/tininess.h: Likewise.
5226         * sysdeps/csky/tst-audit.h: Likewise.
5227         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5228         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5229         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5230         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5231         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5232         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5233         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5234         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5235         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5236         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5237         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5238         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5239         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5240         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5241         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5242         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5243         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5244         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5245         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5246         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5247         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5248         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5249         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5250         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5251         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5252         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5253         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5254         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5255         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5256         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5257         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5258         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5259         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5260         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5261         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5262         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5263         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5264         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5265         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5266         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5267         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5268         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5269         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5270         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5271
5272 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5273
5274         * include/time.h (__difftime64): Add.
5275         * time/difftime.c (subtract): convert to 64-bit time.
5276         * time/difftime.c (__difftime64): Add.
5277         * time/difftime.c (__difftime): Wrap around __difftime64.
5278
5279 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
5280
5281         * manual/examples/add.c: Remove redundant "if not".
5282         * manual/examples/argp-ex1.c: Likewise.
5283         * manual/examples/argp-ex2.c: Likewise.
5284         * manual/examples/argp-ex3.c: Likewise.
5285         * manual/examples/argp-ex4.c: Likewise.
5286         * manual/examples/atexit.c: Likewise.
5287         * manual/examples/db.c: Likewise.
5288         * manual/examples/dir.c: Likewise.
5289         * manual/examples/dir2.c: Likewise.
5290         * manual/examples/execinfo.c: Likewise.
5291         * manual/examples/filecli.c: Likewise.
5292         * manual/examples/filesrv.c: Likewise.
5293         * manual/examples/fmtmsgexpl.c: Likewise.
5294         * manual/examples/genpass.c: Likewise.
5295         * manual/examples/inetcli.c: Likewise.
5296         * manual/examples/inetsrv.c: Likewise.
5297         * manual/examples/isockad.c: Likewise.
5298         * manual/examples/longopt.c: Likewise.
5299         * manual/examples/memopen.c: Likewise.
5300         * manual/examples/memstrm.c: Likewise.
5301         * manual/examples/mkdirent.c: Likewise.
5302         * manual/examples/mkfsock.c: Likewise.
5303         * manual/examples/mkisock.c: Likewise.
5304         * manual/examples/mygetpass.c: Likewise.
5305         * manual/examples/pipe.c: Likewise.
5306         * manual/examples/popen.c: Likewise.
5307         * manual/examples/rprintf.c: Likewise.
5308         * manual/examples/search.c: Likewise.
5309         * manual/examples/select.c: Likewise.
5310         * manual/examples/setjmp.c: Likewise.
5311         * manual/examples/sigh1.c: Likewise.
5312         * manual/examples/sigusr.c: Likewise.
5313         * manual/examples/stpcpy.c: Likewise.
5314         * manual/examples/strdupa.c: Likewise.
5315         * manual/examples/strftim.c: Likewise.
5316         * manual/examples/subopt.c: Likewise.
5317         * manual/examples/swapcontext.c: Likewise.
5318         * manual/examples/termios.c: Likewise.
5319         * manual/examples/testopt.c: Likewise.
5320         * manual/examples/testpass.c: Likewise.
5321         * manual/examples/timeval_subtract.c: Likewise.
5322
5323 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
5324
5325         * sysdeps/x86/fpu/math_private.h: New file.
5326         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5327
5328         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5329         definition.
5330         (cosh): Likewise.
5331         (tanh): Likewise.
5332
5333 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5334
5335         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5336         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5337         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5338         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
5339         fields.
5340         (_dl_show_auxv): Give a special treatment to
5341         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5342         and AT_L3_CACHEGEOMETRY.
5343         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5344         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5345         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
5346         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5347
5348 2018-12-19  Andreas Schwab  <schwab@suse.de>
5349
5350         * nscd/connections.c (check_use): Don't abort on invalid len.
5351
5352 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5353
5354         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5355         values in the 64bit value cases.
5356
5357 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5358
5359         * include/time.h
5360         (__ctime64_r): Add.
5361         * time/ctime_r.c
5362         (__ctime64_r): Add.
5363         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5364
5365         * include/time.h
5366         (__ctime64): Add.
5367         * time/gmtime.c
5368         (__ctime64): Add.
5369         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5370
5371         * include/time.h
5372         (__gmtime64_r): Add.
5373         * time/gmtime.c
5374         (__gmtime64_r): Add.
5375         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5376
5377         * include/time.h
5378         (__gmtime64): Add.
5379         * time/gmtime.c
5380         (__gmtime64): Add.
5381         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5382
5383         * include/time.h
5384         (__localtime64_r): Add.
5385         * time/localtime.c
5386         (__localtime64_r): Add.
5387         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5388
5389 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5390
5391         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5392         kernel_sigction definition.
5393
5394         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5395
5396         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5397
5398         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5399         __syscall_rt_sigaction.
5400         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5401         (kernel_sigaction): Use Linux generic defintion.
5402         (STUB): Define.
5403         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5404         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5405         (__syscall_rt_sigaction): Remove implementation.
5406         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5407         hidden.
5408         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5409         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5410         INTERNAL_SYSCALL): Remove definitions.
5411         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5412         action and signal set size.
5413         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5414         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5415
5416 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5417             James Clarke  <jrtc27@jrtc27.com>
5418
5419         [BZ #23967]
5420         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5421         Define if SA_RESTORER is defined.
5422         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5423         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5424         already defined.
5425         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5426         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5427         definitions.
5428         (HAS_SA_RESTORER): Define.
5429         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5430         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5431         (HAS_SA_RESTORER): Define.
5432         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5433         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5434         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5435         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5436         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5437
5438 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
5439
5440         * sysdeps/unix/sysv/linux/kernel-features.h
5441         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5442         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5443         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5444         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5445         (__ASSUME_ST_INO_64_BIT): Likewise.
5446         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5447         <kernel-features.h>.
5448         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5449         Remove conditional code.
5450         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5451         <kernel-features.h>.
5452         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5453         Remove conditional code.
5454         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5455         <kernel-features.h>.
5456         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5457         Remove conditional code.
5458         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5459         <kernel-features.h>.
5460         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5461         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5462
5463 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5464
5465         * sysdeps/s390/multiarch/ifunc-resolve.h
5466         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5467         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5468         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5469         Delete macro definition.
5470         (s390_libc_ifunc_init): Rename to
5471         s390_libc_ifunc_expr_stfle_init.
5472         * sysdeps/s390/bzero: Use
5473         s390_libc_ifunc_expr_stfle_init instead of
5474         s390_libc_ifunc_init.
5475         * sysdeps/s390/memcmp.c: Likewise.
5476         * sysdeps/s390/memcpy.c: Likewise.
5477         * sysdeps/s390/mempcpy.c: Likewise.
5478         * sysdeps/s390/memset.c: Likewise.
5479
5480 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5481
5482         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5483         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5484
5485 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5486
5487         * sysdeps/s390/multiarch/Makefile
5488         (sysdep_routines): Remove wmemcmp variants.
5489         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5490         * sysdeps/s390/multiarch/ifunc-impl-list.c
5491         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5492         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5493         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5494         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5495         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5496         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5497         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5498         * sysdeps/s390/ifunc-wmemcmp.h: New file.
5499
5500 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5501
5502         * sysdeps/s390/multiarch/Makefile
5503         (sysdep_routines): Remove wmemset variants.
5504         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5505         * sysdeps/s390/multiarch/ifunc-impl-list.c
5506         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5507         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5508         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5509         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5510         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5511         * sysdeps/s390/multiarch/wmemset.c: Move to ...
5512         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5513         * sysdeps/s390/ifunc-wmemset.h: New file.
5514
5515 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5516
5517         * sysdeps/s390/multiarch/Makefile
5518         (sysdep_routines): Remove wmemchr variants.
5519         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5520         * sysdeps/s390/multiarch/ifunc-impl-list.c
5521         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5522         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5523         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5524         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5525         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5526         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5527         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5528         * sysdeps/s390/ifunc-wmemchr.h: New file.
5529
5530 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5531
5532         * sysdeps/s390/multiarch/Makefile
5533         (sysdep_routines): Remove wcscspn variants.
5534         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5535         * sysdeps/s390/multiarch/ifunc-impl-list.c
5536         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5537         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5538         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5539         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5540         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5541         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5542         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5543         * sysdeps/s390/ifunc-wcscspn.h: New file.
5544
5545 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5546
5547         * sysdeps/s390/multiarch/Makefile
5548         (sysdep_routines): Remove wcspbrk variants.
5549         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5550         * sysdeps/s390/multiarch/ifunc-impl-list.c
5551         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5552         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5553         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5554         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5555         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5556         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5557         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5558         * sysdeps/s390/ifunc-wcspbrk.h: New file.
5559
5560 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5561
5562         * sysdeps/s390/multiarch/Makefile
5563         (sysdep_routines): Remove wcsspn variants.
5564         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5565         * sysdeps/s390/multiarch/ifunc-impl-list.c
5566         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5567         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5568         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5569         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5570         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5571         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5572         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5573         * sysdeps/s390/ifunc-wcsspn.h: New file.
5574
5575 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5576
5577         * sysdeps/s390/multiarch/Makefile
5578         (sysdep_routines): Remove wcsrchr variants.
5579         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5580         * sysdeps/s390/multiarch/ifunc-impl-list.c
5581         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5582         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5583         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5584         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5585         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5586         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5587         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5588         * sysdeps/s390/ifunc-wcsrchr.h: New file.
5589
5590 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5591
5592         * sysdeps/s390/multiarch/Makefile
5593         (sysdep_routines): Remove wcschrnul variants.
5594         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5595         * sysdeps/s390/multiarch/ifunc-impl-list.c
5596         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5597         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5598         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5599         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5600         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5601         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5602         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5603         * sysdeps/s390/ifunc-wcschrnul.h: New file.
5604
5605 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5606
5607         * sysdeps/s390/multiarch/Makefile
5608         (sysdep_routines): Remove wcschr variants.
5609         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5610         * sysdeps/s390/multiarch/ifunc-impl-list.c
5611         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5612         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5613         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5614         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5615         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5616         * sysdeps/s390/multiarch/wcschr.c: Move to ...
5617         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5618         * sysdeps/s390/ifunc-wcschr.h: New file.
5619
5620 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5621
5622         * sysdeps/s390/multiarch/Makefile
5623         (sysdep_routines): Remove wcsncmp variants.
5624         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5625         * sysdeps/s390/multiarch/ifunc-impl-list.c
5626         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5627         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5628         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5629         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5630         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5631         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5632         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5633         * sysdeps/s390/ifunc-wcsncmp.h: New file.
5634
5635 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5636
5637         * sysdeps/s390/multiarch/Makefile
5638         (sysdep_routines): Remove wcscmp variants.
5639         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5640         * sysdeps/s390/multiarch/ifunc-impl-list.c
5641         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5642         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5643         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5644         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5645         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5646         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5647         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5648         * sysdeps/s390/ifunc-wcscmp.h: New file.
5649
5650 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5651
5652         * sysdeps/s390/multiarch/Makefile
5653         (sysdep_routines): Remove wcsncat variants.
5654         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5655         * sysdeps/s390/multiarch/ifunc-impl-list.c
5656         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5657         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5658         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5659         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5660         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5661         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5662         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5663         * sysdeps/s390/ifunc-wcsncat.h: New file.
5664
5665 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5666
5667         * sysdeps/s390/multiarch/Makefile
5668         (sysdep_routines): Remove wcscat variants.
5669         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5670         * sysdeps/s390/multiarch/ifunc-impl-list.c
5671         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5672         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5673         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5674         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5675         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5676         * sysdeps/s390/multiarch/wcscat.c: Move to ...
5677         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5678         * sysdeps/s390/ifunc-wcscat.h: New file.
5679
5680 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5681
5682         * sysdeps/s390/multiarch/Makefile
5683         (sysdep_routines): Remove wcpncpy variants.
5684         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5685         * sysdeps/s390/multiarch/ifunc-impl-list.c
5686         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5687         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5688         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5689         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5690         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5691         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5692         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5693         * sysdeps/s390/ifunc-wcpncpy.h: New file.
5694
5695 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5696
5697         * sysdeps/s390/multiarch/Makefile
5698         (sysdep_routines): Remove wcsncpy variants.
5699         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5700         * sysdeps/s390/multiarch/ifunc-impl-list.c
5701         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5702         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5703         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5704         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5705         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5706         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5707         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5708         * sysdeps/s390/ifunc-wcsncpy.h: New file.
5709
5710 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5711
5712         * sysdeps/s390/multiarch/Makefile
5713         (sysdep_routines): Remove wcpcpy variants.
5714         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5715         * sysdeps/s390/multiarch/ifunc-impl-list.c
5716         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5717         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5718         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5719         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5720         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5721         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5722         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5723         * sysdeps/s390/ifunc-wcpcpy.h: New file.
5724
5725 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5726
5727         * sysdeps/s390/multiarch/Makefile
5728         (sysdep_routines): Remove wcscpy variants.
5729         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5730         * sysdeps/s390/multiarch/ifunc-impl-list.c
5731         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5732         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5733         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5734         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5735         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5736         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5737         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5738         * sysdeps/s390/ifunc-wcscpy.h: New file.
5739
5740 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5741
5742         * sysdeps/s390/multiarch/Makefile
5743         (sysdep_routines): Remove wcsnlen variants.
5744         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5745         * sysdeps/s390/multiarch/ifunc-impl-list.c
5746         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5747         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5748         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5749         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5750         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5751         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5752         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5753         * sysdeps/s390/ifunc-wcsnlen.h: New file.
5754
5755 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5756
5757         * sysdeps/s390/multiarch/Makefile
5758         (sysdep_routines): Remove wcslen variants.
5759         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5760         * sysdeps/s390/multiarch/ifunc-impl-list.c
5761         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5762         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5763         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5764         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5765         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5766         * sysdeps/s390/multiarch/wcslen.c: Move to ...
5767         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5768         * sysdeps/s390/ifunc-wcslen.h: New file.
5769
5770 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5771
5772         * sysdeps/s390/multiarch/Makefile
5773         (sysdep_routines): Remove memrchr variants.
5774         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5775         * sysdeps/s390/multiarch/ifunc-impl-list.c
5776         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5777         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5778         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5779         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5780         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5781         * sysdeps/s390/multiarch/memrchr.c: Move to ...
5782         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5783         * sysdeps/s390/ifunc-memrchr.h: New file.
5784
5785 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5786
5787         * sysdeps/s390/multiarch/Makefile
5788         (sysdep_routines): Remove memccpy variants.
5789         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5790         * sysdeps/s390/multiarch/ifunc-impl-list.c
5791         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5792         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5793         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5794         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5795         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5796         * sysdeps/s390/multiarch/memccpy.c: Move to ...
5797         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5798         * sysdeps/s390/ifunc-memccpy.h: New file.
5799
5800 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5801
5802         * sysdeps/s390/multiarch/Makefile
5803         (sysdep_routines): Remove rawmemchr variants.
5804         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5805         * sysdeps/s390/multiarch/ifunc-impl-list.c
5806         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5807         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5808         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5809         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5810         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5811         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5812         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5813         * sysdeps/s390/ifunc-rawmemchr.h: New file.
5814
5815 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5816
5817         * sysdeps/s390/multiarch/Makefile
5818         (sysdep_routines): Remove memchr variants.
5819         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5820         * sysdeps/s390/multiarch/ifunc-impl-list.c
5821         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5822         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5823         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5824         * sysdeps/s390/multiarch/memchr.c: Move to ...
5825         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5826         * sysdeps/s390/ifunc-memchr.h: New file.
5827         * sysdeps/s390/s390-64/memchr.S: Move to ...
5828         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5829         for 31/64bit and ifunc handling.
5830         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5831         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5832         * sysdeps/s390/s390-32/memchr.S: Likewise.
5833
5834 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5835
5836         * sysdeps/s390/multiarch/Makefile
5837         (sysdep_routines): Remove strcspn variants.
5838         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5839         * sysdeps/s390/multiarch/ifunc-impl-list.c
5840         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5841         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5842         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5843         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5844         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5845         * sysdeps/s390/multiarch/strcspn.c: Move to ...
5846         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5847         * sysdeps/s390/ifunc-strcspn.h: New file.
5848
5849 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5850
5851         * sysdeps/s390/multiarch/Makefile
5852         (sysdep_routines): Remove strpbrk variants.
5853         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5854         * sysdeps/s390/multiarch/ifunc-impl-list.c
5855         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5856         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5857         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5858         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5859         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5860         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5861         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5862         * sysdeps/s390/ifunc-strpbrk.h: New file.
5863
5864 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5865
5866         * sysdeps/s390/multiarch/Makefile
5867         (sysdep_routines): Remove strspn variants.
5868         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5869         * sysdeps/s390/multiarch/ifunc-impl-list.c
5870         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5871         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5872         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5873         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5874         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5875         * sysdeps/s390/multiarch/strspn.c: Move to ...
5876         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5877         * sysdeps/s390/ifunc-strspn.h: New file.
5878
5879 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5880
5881         * sysdeps/s390/multiarch/Makefile
5882         (sysdep_routines): Remove strrchr variants.
5883         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5884         * sysdeps/s390/multiarch/ifunc-impl-list.c
5885         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5886         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5887         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5888         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5889         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5890         * sysdeps/s390/multiarch/strrchr.c: Move to ...
5891         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5892         * sysdeps/s390/ifunc-strrchr.h: New file.
5893
5894 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5895
5896         * sysdeps/s390/multiarch/Makefile
5897         (sysdep_routines): Remove strchrnul variants.
5898         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5899         * sysdeps/s390/multiarch/ifunc-impl-list.c
5900         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5901         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5902         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5903         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5904         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5905         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5906         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5907         * sysdeps/s390/ifunc-strchrnul.h: New file.
5908
5909 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5910
5911         * sysdeps/s390/multiarch/Makefile
5912         (sysdep_routines): Remove strchr variants.
5913         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5914         * sysdeps/s390/multiarch/ifunc-impl-list.c
5915         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5916         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5917         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5918         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5919         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5920         * sysdeps/s390/multiarch/strchr.c: Move to ...
5921         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5922         * sysdeps/s390/ifunc-strchr.h: New file.
5923
5924 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5925
5926         * sysdeps/s390/multiarch/Makefile
5927         (sysdep_routines): Remove strncmp variants.
5928         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5929         * sysdeps/s390/multiarch/ifunc-impl-list.c
5930         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5931         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5932         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5933         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5934         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5935         * sysdeps/s390/multiarch/strncmp.c: Move to ...
5936         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5937         * sysdeps/s390/ifunc-strncmp.h: New file.
5938
5939 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5940
5941         * sysdeps/s390/multiarch/Makefile
5942         (sysdep_routines): Remove strcmp variants.
5943         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5944         * sysdeps/s390/multiarch/ifunc-impl-list.c
5945         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5946         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5947         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5948         * sysdeps/s390/multiarch/strcmp.c: Move to ...
5949         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5950         * sysdeps/s390/ifunc-strcmp.h: New file.
5951         * sysdeps/s390/s390-64/strcmp.S: Move to ...
5952         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5953         for 31/64bit and ifunc handling.
5954         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5955         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5956         * sysdeps/s390/s390-32/strcmp.S: Likewise.
5957
5958 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5959
5960         * sysdeps/s390/multiarch/Makefile
5961         (sysdep_routines): Remove strncat variants.
5962         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5963         * sysdeps/s390/multiarch/ifunc-impl-list.c
5964         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5965         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5966         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5967         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5968         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5969         * sysdeps/s390/multiarch/strncat.c: Move to ...
5970         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5971         * sysdeps/s390/ifunc-strncat.h: New file.
5972
5973 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5974
5975         * sysdeps/s390/multiarch/Makefile
5976         (sysdep_routines): Remove strcat variants.
5977         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5978         * sysdeps/s390/multiarch/ifunc-impl-list.c
5979         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5980         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5981         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5982         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5983         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5984         * sysdeps/s390/multiarch/strcat.c: Move to ...
5985         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5986         * sysdeps/s390/ifunc-strcat.h: New file.
5987
5988 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5989
5990         * sysdeps/s390/multiarch/Makefile
5991         (sysdep_routines): Remove stpncpy variants.
5992         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5993         * sysdeps/s390/multiarch/ifunc-impl-list.c
5994         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5995         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5996         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5997         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5998         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5999         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6000         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6001         * sysdeps/s390/ifunc-stpncpy.h: New file.
6002
6003 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6004
6005         * sysdeps/s390/multiarch/Makefile
6006         (sysdep_routines): Remove strncpy variants.
6007         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6008         * sysdeps/s390/multiarch/ifunc-impl-list.c
6009         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6010         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6011         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6012         * sysdeps/s390/multiarch/strncpy.c: Move to ...
6013         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6014         * sysdeps/s390/ifunc-strncpy.h: New file.
6015         * sysdeps/s390/s390-64/strncpy.S: Move to ...
6016         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6017         and adjust ifunc handling.
6018         * sysdeps/s390/s390-32/strncpy.S: Move to ...
6019         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6020         and adjust ifunc handling.
6021         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6022         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6023
6024 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6025
6026         * sysdeps/s390/multiarch/Makefile
6027         (sysdep_routines): Remove stpcpy variants.
6028         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6029         * sysdeps/s390/multiarch/ifunc-impl-list.c
6030         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6031         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6032         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6033         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6034         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6035         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6036         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6037         * sysdeps/s390/ifunc-stpcpy.h: New file.
6038
6039 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6040
6041         * sysdeps/s390/multiarch/Makefile
6042         (sysdep_routines): Remove strcpy variants.
6043         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6044         * sysdeps/s390/multiarch/ifunc-impl-list.c
6045         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6046         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6047         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6048         * sysdeps/s390/multiarch/strcpy.c: Move to ...
6049         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6050         * sysdeps/s390/ifunc-strcpy.h: New file.
6051         * sysdeps/s390/s390-64/strcpy.S: Move to ...
6052         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6053         for 31/64bit and ifunc handling.
6054         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6055         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6056         * sysdeps/s390/s390-32/strcpy.S: Likewise.
6057
6058 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6059
6060         * sysdeps/s390/multiarch/Makefile
6061         (sysdep_routines): Remove strnlen variants.
6062         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6063         * sysdeps/s390/multiarch/ifunc-impl-list.c
6064         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6065         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6066         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6067         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6068         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6069         * sysdeps/s390/multiarch/strnlen.c: Move to ...
6070         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6071         * sysdeps/s390/ifunc-strnlen.h: New file.
6072
6073 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6074
6075         * sysdeps/s390/multiarch/Makefile
6076         (sysdep_routines): Remove strlen variants.
6077         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6078         * sysdeps/s390/multiarch/ifunc-impl-list.c
6079         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6080         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6081         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6082         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6083         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6084         * sysdeps/s390/multiarch/strlen.c: Move to ...
6085         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6086         * sysdeps/s390/ifunc-strlen.h: New file.
6087
6088 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6089
6090         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6091         * sysdeps/s390/multiarch/ifunc-impl-list.c
6092         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6093         * sysdeps/s390/ifunc-memmem.h: New file.
6094         * sysdeps/s390/memmem.c: Likewise.
6095         * sysdeps/s390/memmem-c.c: Likewise.
6096         * sysdeps/s390/memmem-vx.c: Likewise.
6097
6098 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6099
6100         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6101         * sysdeps/s390/multiarch/ifunc-impl-list.c
6102         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6103         * sysdeps/s390/ifunc-strstr.h: New file.
6104         * sysdeps/s390/strstr.c: Likewise.
6105         * sysdeps/s390/strstr-c.c: Likewise.
6106         * sysdeps/s390/strstr-vx.c: Likewise.
6107
6108 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6109
6110         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6111         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6112         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6113         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6114         New defines.
6115         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6116         * sysdeps/s390/memmove-c.c: New file.
6117         * sysdeps/s390/memmove.c: Likewise.
6118         * sysdeps/s390/multiarch/ifunc-impl-list.c
6119         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6120
6121 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6122
6123         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6124         * sysdeps/s390/configure.ac: Add check for z13 support.
6125         * sysdeps/s390/configure: Regenerated.
6126
6127 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6128
6129         * sysdeps/s390/memcopy.h: New file.
6130
6131 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6132
6133         * sysdeps/s390/s390-32/bcopy.S: Remove.
6134         * sysdeps/s390/s390-64/bcopy.S: Likewise.
6135
6136 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6137
6138         * sysdeps/s390/ifunc-memcpy.h: New File.
6139         * sysdeps/s390/memcpy.S: Move to ...
6140         * sysdeps/s390/memcpy-z900.S ... here.
6141         Move implementations from memcpy-s390x.s to here.
6142         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6143         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6144         Remove memcpy/mempcpy variants.
6145         * sysdeps/s390/Makefile (sysdep_routines):
6146         Add memcpy/mempcpy variants.
6147         * sysdeps/s390/multiarch/ifunc-impl-list.c
6148         (__libc_ifunc_impl_list): Adjust ifunc variants for
6149         memcpy and mempcpy.
6150         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6151         to ...
6152         * sysdeps/s390/memcpy.c: ... here.
6153         Adjust ifunc variants for memcpy.
6154         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6155         * sysdeps/s390/mempcpy.c: ... here.
6156         Adjust ifunc variants for mempcpy.
6157         * sysdeps/s390/mempcpy.S: Delete file.
6158
6159 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6160
6161         * sysdeps/s390/s390-64/memcpy.S: Move to ...
6162         * sysdeps/s390/memcpy.S: ... here.
6163         Adjust to be usable for 31/64bit.
6164         * sysdeps/s390/s390-32/memcpy.S: Delete File.
6165         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6166         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6167         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6168         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6169         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6170         Adjust to be usable for 31/64bit.
6171         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6172         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6173         * sysdeps/s390/multiarch/memcpy.c: ... here.
6174         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6175
6176 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6177
6178         * sysdeps/s390/ifunc-memcmp.h: New File.
6179         * sysdeps/s390/memcmp.S: Move to ...
6180         * sysdeps/s390/memcmp-z900.S ... here.
6181         Move implementations from memcmp-s390x.s to here.
6182         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6183         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6184         Remove memcmp variants.
6185         * sysdeps/s390/Makefile (sysdep_routines):
6186         Add memcmp variants.
6187         * sysdeps/s390/multiarch/ifunc-impl-list.c
6188         (__libc_ifunc_impl_list): Adjust ifunc variants for
6189         memcmp.
6190         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6191         to ...
6192         * sysdeps/s390/memcmp.c: ... here.
6193         Adjust ifunc variants for memcmp.
6194
6195 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6196
6197         * sysdeps/s390/s390-64/memcmp.S: Move to ...
6198         * sysdeps/s390/memcmp.S: ... here.
6199         Adjust to be usable for 31/64bit.
6200         * sysdeps/s390/s390-32/memcmp.S: Delete File.
6201         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6202         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6203         Remove memcmp.
6204         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6205         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6206         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6207         Adjust to be usable for 31/64bit.
6208         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6209         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6210         * sysdeps/s390/multiarch/memcmp.c: ... here.
6211         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6212
6213 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6214
6215         * sysdeps/s390/s390-32/bzero.S: Delete file.
6216         * sysdeps/s390/s390-64/bzero.S: Likewise.
6217         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6218         * sysdeps/s390/bzero.c: New file.
6219         * sysdeps/s390/memset-z900.S: Add bzero entry points.
6220         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6221         * sysdeps/s390/multiarch/ifunc-impl-list.c
6222         (__libc_ifunc_impl_list): Add bzero ifunc variants.
6223
6224 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6225
6226         * sysdeps/s390/ifunc-memset.h: New File.
6227         * sysdeps/s390/memset.S: Move to ...
6228         * sysdeps/s390/memset-z900.S ... here.
6229         Move implementations from memset-s390x.s to here.
6230         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6231         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6232         Remove memset variants.
6233         * sysdeps/s390/Makefile (sysdep_routines):
6234         Add memset variants.
6235         * sysdeps/s390/multiarch/ifunc-impl-list.c
6236         (__libc_ifunc_impl_list): Adjust ifunc variants for
6237         memset.
6238         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6239         to ...
6240         * sysdeps/s390/memset.c: ... here.
6241         Adjust ifunc variants for memset.
6242
6243 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6244
6245         * sysdeps/s390/s390-64/memset.S: Move to ...
6246         * sysdeps/s390/memset.S: ... here.
6247         Adjust to be usable for 31/64bit.
6248         * sysdeps/s390/s390-32/memset.S: Delete File.
6249         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6250         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6251         Remove memset.
6252         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6253         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6254         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6255         Adjust to be usable for 31/64bit.
6256         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6257         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6258         * sysdeps/s390/multiarch/memset.c: ... here.
6259         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6260
6261 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6262
6263         * sysdeps/s390/multiarch/ifunc-resolve.h
6264         (s390_libc_ifunc_init, s390_libc_ifunc,
6265         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6266
6267 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
6268
6269         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6270         * sysdeps/s390/configure.ac: Add check for z10 support.
6271         * sysdeps/s390/configure: Regenerated.
6272
6273 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
6274
6275         * sysdeps/i386/atomic-machine.h: Merged with ...
6276         * sysdeps/x86_64/atomic-machine.h: To ...
6277         * sysdeps/x86/atomic-machine.h: This.  New file.
6278
6279 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6280
6281         Rewrite locale/gen-translit.pl in Python.
6282         * locale/Makefile (generated): Add C-translit.h.
6283         (before-compile): Add $(objpfx)C-translit.h.
6284         (C-translit.h): Move to $(objpfx).  Create target directory.
6285         Build using Python script.
6286         * locale/gen-translit.py: New file.
6287         * locale/gen-translit.pl: Remove file.
6288         * locale/C-translit.h.in: Change comment character to '#' for
6289         easier parsing without a C preprocessor.
6290         * locale/C-translit.h: Remove generated file.
6291         * manual/install.texi (Tools for Compilation): Do not mention
6292         C-translit.h.
6293         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6294         Remove locale/C-translit.h.
6295         * scripts/update-copyrights: Likewise.
6296         * INSTALL: Regenerate.
6297
6298 2018-12-18  Florian Weimer  <fweimer@redhat.com>
6299
6300         [BZ #23995]
6301         * localedata/locales/bi_VU: Remove executable bit from file.
6302
6303 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6304
6305         * include/time.h
6306         (__localtime64): Add.
6307         * manual/maint.texi: Document Y2038 symbol handling.
6308         * time/localtime.c
6309         (__localtime64): Add.
6310         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6311
6312 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
6313
6314         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6315         Do not clobber r12.
6316
6317         * scripts/glibcextract.py (compare_macro_consts): Take parameters
6318         to allow extra macros from first or second sources.
6319         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6320         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6321         (tests-special): Add $(objpfx)tst-mman-consts.out.
6322         ($(objpfx)tst-mman-consts.out): New makefile target.
6323
6324 2018-12-17  Mao Han  <han_mao@c-sky.com>
6325
6326         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6327         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6328         without stat64 system call support.
6329         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6330         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6331         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6332         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6333         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6334         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6335         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6336         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6337         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6338         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6339         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6340
6341 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         regex: fix storage-exhaustion error
6344         [BZ #18040]
6345         * posix/regexec.c (get_subexp):
6346         Do not continue if storage is exhausted.
6347
6348 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
6349
6350         regex: fix heap-use-after-free error
6351         [BZ #18040]
6352         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6353         https://debbugs.gnu.org/32592
6354         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6355         call extend_buffers which reallocates the re_string_t internal buffer.
6356         Local variable 'buf' was not updated in such case, resulting in
6357         use-after-free.
6358         * posix/regexec.c (get_subexp): Update 'buf' after call to
6359         get_subexp_sub.
6360
6361 2018-12-15  Florian Weimer  <fweimer@redhat.com>
6362
6363         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6364         (minimum_stride_size): Use it.
6365         (support_blob_repeat_allocate): Likewise.
6366
6367 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
6368
6369         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6370         definition.
6371         (acosh): Likewise.
6372         (atanh): Likewise.
6373
6374 2018-12-14  Florian Weimer  <fweimer@redhat.com>
6375
6376         * manual/process.texi (Process Creation Concepts): Remove
6377         documentation of process (ID) lifetime.  List more process
6378         creation functions.  Reference Process Identification section.
6379         (Process Identification): Add information about process ID
6380         lifetime.  Describe Linux thread/task IDs.
6381         * manual/signal.texi (Signaling Another Process): Mention that the
6382         signal is always sent to the process.
6383
6384 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6385
6386         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
6387         and tst-ldbl-efgcvt.
6388         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6389         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6390         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6391         (fcvt_tests, output_error, output_r_error, do_test): Use the
6392         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6393         select the type of floating-point variables and arguments; to
6394         produce extra tests for double and conversion specifiers for
6395         printf; and to set the names of called functions.
6396         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6397         in tst-efgcvt-template.c.
6398         * misc/tst-ldbl-efgcvt.c: Likewise.
6399
6400 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
6401
6402         * nss/Makefile (tst-nss-test3.out): New rule.
6403
6404 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
6405
6406         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6407         clobber sp.
6408
6409 2018-12-13  fanjinke  <fanjinke@hygon.cn>
6410
6411         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6412         "HygonGenuine".
6413
6414 2018-12-13  Andreas Schwab  <schwab@suse.de>
6415
6416         [BZ #23861]
6417         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
6418         (__pthread_rwlock_rdlock_full): Update expected value for
6419         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6420         * nptl/tst-rwlock-pwn.c: New file.
6421         * nptl/Makefile (tests): Add tst-rwlock-pwn.
6422
6423 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
6424
6425         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6426         definition.
6427
6428 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6429
6430         * benchtests/scripts/compare_bench.py (do_compare): write to
6431         stderr in casestat is not present.
6432         * benchtests/scripts/compare_bench.py (plot_graphs): write to
6433         stderr in case timings field is not present. Also string showing
6434         the output filename goes into the stderr.
6435
6436 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6437
6438         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6439         and ZeroDivisorError exceptions.
6440         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6441         argument to loop through user provided statistics.
6442         * benchtests/scripts/compare_bench.py (main): Include the --stats
6443         argument.
6444
6445 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6446
6447         * benchtests/scripts/compare_bench.py (compare_runs): Continue
6448         instead of return.
6449
6450 2018-12-12  Florian Weimer  <fweimer@redhat.com>
6451
6452         * sysdeps/posix/timespec_get.c: Add missing “any later version”
6453         clause to copyright header.
6454
6455 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6456
6457         [BZ #23614]
6458         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6459         registers saved in the stack frame.
6460         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6461         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6462
6463 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6464
6465         * include/bits/monetary-ldbl.h: New file.
6466         * include/bits/printf-ldbl.h: Likewise.
6467         * include/bits/stdio-ldbl.h: Likewise.
6468         * include/bits/stdlib-ldbl.h: Likewise.
6469         * include/bits/syslog-ldbl.h: Likewise.
6470         * include/bits/wchar-ldbl.h: Likewise.
6471
6472 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6473
6474         * libio/libio.h: Remove redirection for _IO_vfprintf.
6475
6476 2018-12-11  Andreas Schwab  <schwab@suse.de>
6477
6478         * Makerules: Remove all references to abilist-pattern.
6479         (update-all-abi): Simplify find expression.
6480
6481 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6482
6483         [BZ #23961]
6484         * math/auto-libm-test-in: Add new test case.
6485         * math/auto-libm-test-out-pow: Regenerated.
6486         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6487
6488 2018-12-10  DJ Delorie  <dj@redhat.com>
6489
6490         [BZ #23948]
6491         * support/test-container.c: Move postclean step to before we
6492         change namespaces.
6493
6494 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6495
6496         * scripts/gen-as-const.py (main): Handle --python option.
6497         * scripts/gen-py-const.awk: Remove.
6498         * Makerules (py-const-script): Use gen-as-const.py.
6499         ($(py-const)): Likewise.
6500         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6501         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6502         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6503         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6504         ~PTHREAD_MUTEX_NO_ELISION_NP.
6505         * manual/README.pretty-printers: Update reference to
6506         gen-py-const.awk.
6507
6508         * scripts/glibcextract.py: New file.
6509         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6510         or tempfile.  Import glibcexctract.
6511         (compute_c_consts): Remove.  Moved to glibcextract.py.
6512         (gen_test): Update reference to compute_c_consts.
6513         (main): Likewise.
6514         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6515         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6516         * sysdeps/unix/sysv/linux/Makefile
6517         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6518         Redirect stderr as well as stdout.
6519
6520 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
6521
6522         [BZ #19767]
6523         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6524         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6525         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6526         ALWAYS_USE_VSYSCALL.
6527         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6528         ALWAYS_USE_VSYSCALL.
6529         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6530         ALWAYS_USE_VSYSCALL.
6531
6532 2018-12-10  Florian Weimer  <fweimer@redhat.com>
6533
6534         [BZ #23972]
6535         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6536         offset instead of count for clarity.  Fix typo in comment.
6537         (__old_getdents64): Keep track of previous offset.  Use it to call
6538         handle_overflow.
6539         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6540         that d_off is never zero.
6541
6542 2018-12-10  Andreas Schwab  <schwab@suse.de>
6543
6544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6545         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6547         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6548         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6549
6550 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6551
6552         * timezone/private.h: Update from tzcode 2018g.
6553         * timezone/tzfile.h: Likewise.
6554         * timezone/tzselect.ksh: Likewise.
6555         * timezone/zdump.c: Likewise.
6556         * timezone/zic.c: Likewise.
6557
6558 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
6559
6560         [BZ #23490]
6561         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6562         (do_test): Adjust buffer size and fix format.
6563
6564 2018-12-07  DJ Delorie  <dj@redhat.com>
6565
6566         [BZ #23907]
6567         * malloc/tst-tcfree3.c: New.
6568         * malloc/Makefile: Add it.
6569
6570 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6571
6572         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6573
6574 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6575
6576         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6577         used as a mask for the mode argument of __vfscanf_internal and
6578         __vfwscanf_internal.
6579         * stdio-common/vfscanf-internal.c
6580         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6581         (__strtof128_internal): Define to __wcstof128_internal.
6582         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6583         __strtof128_internal or __wcstof128_internal when the format of
6584         long double is the same as _Float128.
6585
6586 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6587
6588         * include/unistd.h (__confstr): Add prototype and hidden prototype.
6589         * posix/confstr.c (confstr): Rename to __confstr.
6590         (__confstr): Add hidden def.
6591         (confstr): Add weak alias for __confstr.
6592         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6593         confstr.
6594
6595 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6596
6597         * NEWS: Mention getcpu.
6598         * include/sched.h (__getcpu): New libc_hidden_proto.
6599         * manual/resource.texi: Document getcpu.
6600         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6601         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6602         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6603         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6604         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6605         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6606         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6607         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6608         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6609         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6610         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6611         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6612         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6613         Likewise.
6614         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6615         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6616         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6618         Likewise.
6619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6620         Likewise.
6621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6622         Likewise.
6623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6624         Likewise.
6625         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6626         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6627         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6628         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6629         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6630         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6631         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6632         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6633         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6634         * sysdeps/unix/sysv/linux/getcpu.c: New file.
6635         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6636         Also check getcpu.
6637
6638 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6639
6640         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6641         functions.
6642         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6643
6644 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6645
6646         [BZ #17405]
6647         * posix/Makefile (routines): Add spawn_faction_addfchdir.
6648         * posix/Versions (GLIBC_2.29): Export
6649         posix_spawn_file_actions_addfchdir_np.
6650         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6651         * posix/spawn_faction_destroy.c
6652         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6653         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6654         and the field action.fchdir_action.
6655         * posix/tst-spawn-chdir.c (add_chdir): New function.
6656         (do_test): Add do_fchdir loop.  Call add_chdir.
6657         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6658         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6659         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6660         posix_spawn_file_actions_addfchdir_np.
6661         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6662         Likewise.
6663         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6666         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6667         Likewise.
6668         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6669         Likewise.
6670         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6671         Likewise.
6672         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6673         Likewise.
6674         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6675         Likewise.
6676         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6677         Likewise.
6678         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6679         (GLIBC_2.29): Likewise.
6680         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6681         (GLIBC_2.29): Likewise.
6682         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6683         (GLIBC_2.29): Likewise.
6684         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6685         (GLIBC_2.29): Likewise.
6686         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6687         Likewise.
6688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6689         (GLIBC_2.29): Likewise.
6690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6691         (GLIBC_2.29): Likewise.
6692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6693         (GLIBC_2.29): Likewise.
6694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6695         (GLIBC_2.29): Likewise.
6696         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6697         Likewise.
6698         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6699         Likewise.
6700         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6701         Likewise.
6702         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6703         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6704         Likewise.
6705         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6706         Likewise.
6707         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6708         Likewise.
6709         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6710         Likewise.
6711
6712 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
6713
6714         * manual/texinfo.tex: Update to version 2018-09-21.20 with
6715         trailing whitespace removed.
6716         * scripts/config.guess: Update to version 2018-11-28.
6717         * scripts/config.sub: Update to version 2018-11-28.
6718         * scripts/install-sh: Update to version 2018-03-11.20.
6719         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6720         * scripts/move-if-change: Update to version 2018-03-07 03:47.
6721
6722 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6723
6724         [BZ #23927]
6725         CVE-2018-19591
6726         * inet/tst-if_index-long.c: New file.
6727         * inet/Makefile (tests): Add tst-if_index-long.
6728
6729 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6730
6731         * support/check.h (support_record_failure_is_failed): Declare.
6732         * support/descriptors.h: New file.
6733         * support/support_descriptors.c: Likewise.
6734         * support/tst-support_descriptors.c: Likewise.
6735         * support/support_record_failure.c
6736         (support_record_failure_is_failed): New function.
6737         * support/Makefile (libsupport-routines): Add support_descriptors.
6738         (tests): Add tst-support_descriptors.
6739
6740 2018-12-05  Zack Weinberg  <zackw@panix.com>
6741             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6742
6743         * stdio-common/vfprintf-internal.c
6744         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6745         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6746         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6747         and __no_long_double.
6748         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6749         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6750         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6751         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6752         and __nldbl_*syslog* functions.
6753         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6754         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6755         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6756         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6757         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6758         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6759         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6760         (__nldbl_vwprintf, __nldbl_wprintf):
6761         Directly call the appropriate __v*printf_internal routine, passing
6762         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
6763         variable names.
6764         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6765         (__nldbl___printf_chk, __nldbl___snprintf_chk)
6766         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6767         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6768         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6769         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6770         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6771         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6772         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6773         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6774         Likewise, and also pass PRINTF_FORTIFY when appropriate.
6775         (__nldbl_syslog, __nldbl_vsyslog):
6776         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6777         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6778         appropriate.
6779         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6780         appropriate.
6781
6782 2018-12-05  Zack Weinberg  <zackw@panix.com>
6783             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6784
6785         [BZ #11319]
6786         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6787         Moved here from debug/vsprintf_chk.c.
6788         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
6789         and completion logic for the strfile to match exactly what
6790         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6791         _IO_str_init_static_internal instead of maxlen-1.
6792         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6793         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6794         __vsprintf_internal.
6795
6796         * debug/vsprintf_chk.c (__vsprintf_chk)
6797         * debug/sprintf_chk.c (__sprintf_chk):
6798         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6799         'flags' argument is positive, and slen as maxlen.  No need to lock
6800         the FILE and/or construct a temporary FILE.  Minimize and normalize
6801         header inclusions and variable names.  Do not libc_hidden_def anything.
6802
6803         * debug/asprintf_chk.c (__asprintf_chk)
6804         * debug/dprintf_chk.c (__dprintf_chk)
6805         * debug/fprintf_chk.c (__fprintf_chk)
6806         * debug/fwprintf_chk.c (__fwprintf_chk)
6807         * debug/printf_chk.c (__printf_chk)
6808         * debug/snprintf_chk.c (__snprintf_chk)
6809         * debug/swprintf_chk.c (__swprintf_chk)
6810         * debug/vasprintf_chk.c (__vasprintf_chk)
6811         * debug/vdprintf_chk.c (__vdprintf_chk)
6812         * debug/vfprintf_chk.c (__vfprintf_chk)
6813         * debug/vfwprintf_chk.c (__vfwprintf_chk)
6814         * debug/vprintf_chk.c (__vprintf_chk)
6815         * debug/vsnprintf_chk.c (__vsnprintf_chk)
6816         * debug/vswprintf_chk.c (__vswprintf_chk)
6817         * debug/vwprintf_chk.c (__vwprintf_chk)
6818         * debug/wprintf_chk.c (__wprintf_chk):
6819         Directly call the corresponding vxxprintf_internal function, passing
6820         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
6821         the FILE and/or construct a temporary FILE.  Minimize and normalize
6822         header inclusions and variable names.  Do not libc_hidden_def anything.
6823
6824         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6825         __obstack_vprintf_internal.
6826         (__obstack_vprintf_chk): Convert into a wrapper that calls
6827         __obstack_vprintf_internal (these two functions already had the
6828         same code) and move to new file...
6829         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
6830         file.
6831         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6832         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6833         * debug/Makefile (routines): Add vobprintf_chk.
6834
6835         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6836         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6837         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6838         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6839         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6840         (__nldbl___obstack_vfprintf_chk):
6841         Directly call the corresponding vxxprintf_internal function,
6842         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
6843         duplicate comparison of slen with 0 or maxlen from the corresponding
6844         non-__nldbl function.
6845
6846         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6847         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6848         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6849         Remove libc_hidden_proto.
6850
6851         * stdio-common/vfprintf-internal.c
6852         (__vfprintf_internal, __vfwprintf_internal):
6853         Do not check _IO_FLAGS2_FORTIFY.
6854         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6855         * libio/libioP.h: Update prototype of __vsprintf_internal and add
6856         a comment explaining why it has the maxlen argument.
6857         (_IO_acquire_lock_clear_flags2_fct): Remove.
6858         (_IO_acquire_lock_clear_flags2): Remove.
6859         (_IO_release_lock): Remove conditional statement which will
6860         now never execute.
6861         (_IO_acquire_lock): Remove variable which is now unused.
6862         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6863         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6864
6865         * stdio-common/Makefile (tests): Add tst-bz11319 and
6866         tst-bz11319-fortify2.
6867         (CFLAGS-tst-bz11319-fortify2.c): New macro.
6868         * stdio-common/tst-bz11319-fortify2.c: New file.
6869         * stdio-common/tst-bz11319.c: Likewise.
6870
6871 2018-12-05  Zack Weinberg  <zackw@panix.com>
6872             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6873
6874         * misc/syslog.c: Include libioP.h, not iolibio.h.
6875         (__vsyslog_internal): New function with the former body of
6876         __vsyslog_chk; takes mode_flags argument same as
6877         __v*printf_internal.  Call __vfprintf_internal directly.
6878
6879         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6880         Remove libc_hidden_def.
6881         (__syslog, __syslog_chk): Use __vsyslog_internal.
6882         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
6883
6884         * include/sys/syslog.h: Add multiple inclusion guard.
6885         Add prototype for __vsyslog_internal.
6886         Remove declaration and libc_hidden_proto for __vsyslog_chk.
6887
6888         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6889         Use __vsyslog_internal.
6890
6891 2018-12-05  Zack Weinberg  <zackw@panix.com>
6892             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6893
6894         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6895         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6896         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6897         New functions.
6898         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6899         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6900
6901         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6902         Include wctype.h here if COMPILE_WPRINTF is defined.
6903         Define __vfprintf_internal or __vfwprintf_internal, depending
6904         on COMPILE_WPRINTF.
6905         Temporarily, on entry to this function, update mode_flags
6906         according to the environmental settings corresponding to
6907         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6908         Throughout, check mode_flags instead of __ldbl_is_dbl and
6909         _IO_FLAGS2_FORTIFY on the destination FILE.
6910         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6911         Include vfprintf-internal.c.  Don't include wctype.h.
6912         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
6913         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6914         and vfprintf.
6915         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
6916         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6917         and vfwprintf.
6918         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6919
6920         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6921         and add mode_flags argument; use __vfprintf_internal.
6922         (__vdprintf): New function.  Alias vdprintf to this.
6923         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6924         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6925         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6926         (__obstack_printf): Use __obstack_printf_internal.
6927         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6928         public aliases __vsnprintf and vsnprintf.
6929         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6930         called internally.
6931         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6932         public aliases _IO_vsprintf and vsprintf.
6933         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6934         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6935         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6936         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6937         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6938
6939         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6940         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6941         * stdio-common/fprintf.c, stdio-common/fxprintf.c
6942         * stdio-common/printf.c: Use __vfprintf_internal.
6943
6944         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6945         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6946         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6947
6948         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6949         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6950         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6951         __vfwprintf_internal.
6952
6953         * libio/libio.h: Remove libc_hidden_proto and declaration for
6954         _IO_vfprintf.
6955         Remove declaration of _IO_vfwprintf.
6956         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6957         _IO_vsprintf.
6958         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6959         _IO_obstack_printf.
6960         * include/stdio.h: Add prototype for __vasprintf.
6961         (__vsnprintf): Remove declaration, because there are no more
6962         internal calls.
6963         * include/wchar.h (__vfwprintf, __vswprintf): Remove
6964         declaration, because there are no more internal calls.
6965
6966         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6967         __vsnprintf_internal, instead of _IO_vsnprintf.
6968         * argp/argp-help.c (__argp_error, __argp_failure): Use
6969         __vasprintf_internal, instead of _IO_vasprintf.
6970         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6971         redefine, because there are no more internal calls.
6972
6973 2018-12-05  Zack Weinberg  <zackw@panix.com>
6974             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6975
6976         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6977         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6978         Include libio/strfile.h instead of libioP.h.
6979         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6980         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6981         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6982         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6983         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6984         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
6985         necessary.  Do not set __no_long_double.  Normalize variable names.
6986         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6987         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6988         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6989         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6990         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6991         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6992         Call __vfscanf_internal / __vfwscanf_internal directly, passing
6993         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
6994         Do not set __no_long_double.  Normalize variable names.
6995
6996 2018-12-05  Zack Weinberg  <zackw@panix.com>
6997             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6998
6999         * stdio-common/isoc99_scanf.c
7000         * stdio-common/isoc99_fscanf.c
7001         * stdio-common/isoc99_sscanf.c
7002         * stdio-common/isoc99_vscanf.c
7003         * stdio-common/isoc99_vfscanf.c
7004         * stdio-common/isoc99_vsscanf.c
7005         * wcsmbs/isoc99_wscanf.c
7006         * wcsmbs/isoc99_fwscanf.c
7007         * wcsmbs/isoc99_swscanf.c
7008         * wcsmbs/isoc99_vwscanf.c
7009         * wcsmbs/isoc99_vfwscanf.c
7010         * wcsmbs/isoc99_vswscanf.c:
7011         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7012         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7013         No need to lock and unlock the FILE passed to that function.
7014
7015         * stdio-common/vfscanf-internal.c
7016         (__vfscanf_internal, __vfwscanf_internal):
7017         Don't look at _IO_FLAGS2_SCANF_STD.
7018         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7019         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7020         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7021
7022 2018-12-05  Zack Weinberg  <zackw@panix.com>
7023             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7024
7025         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7026         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7027         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7028         * libio/strfile.h: Add multiple inclusion guard.
7029         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7030
7031         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7032         consistency with the other version of this file.
7033         (ldbl_compat_symbol): New macro.
7034         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7035         New macro.
7036
7037         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7038         Define __vfscanf_internal or __vfwscanf_internal, depending on
7039         COMPILE_WSCANF; don't define any other public symbols.
7040         Remove errval and code to set errp.
7041         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7042         as the mode_flags argument.
7043         (encode_error, conv_error, input_error): Don't set errval.
7044         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7045         Include vfscanf-internal.c.
7046         * stdio-common/vfscanf.c: New file defining the public entry
7047         point vfscanf, which calls __vfscanf_internal.
7048         * stdio-common/vfwscanf.c: New file defining the public entry
7049         point vfwscanf, which calls __vfwscanf_internal.
7050
7051         * stdio-common/iovfscanf.c: New file.
7052         * stdio-common/iovfwscanf.c: Likewise.
7053
7054         * stdio-common/Makefile (routines): Add vfscanf-internal,
7055         vfwscanf-internal, iovfscanf, iovfwscanf.
7056         * stdio-common/Versions: Mention GLIBC_2.29, so that
7057         it can be used in SHLIB_COMPAT expressions.
7058         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7059         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7060         Call __vfscanf_internal, instead of _IO_vfscanf.
7061         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7062         _IO_vfscanf.
7063         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7064         _IO_vfwscanf.
7065
7066         * libio/iovsscanf.c: Clean up includes, when possible.  Use
7067         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
7068         __vfscanf_internal or __vfwscanf_internal directly.
7069         * libio/iovswscanf.c: Likewise.
7070         * libio/swscanf.c: Likewise.
7071         * libio/vscanf.c: Likewise.
7072         * libio/vwscanf.c: Likewise.
7073         * libio/wscanf.c: Likewise.
7074         * stdio-common/isoc99_fscanf.c: Likewise.
7075         * stdio-common/isoc99_scanf.c: Likewise.
7076         * stdio-common/isoc99_sscanf.c: Likewise.
7077         * stdio-common/isoc99_vfscanf.c: Likewise.
7078         * stdio-common/isoc99_vscanf.c: Likewise.
7079         * stdio-common/isoc99_vsscanf.c: Likewise.
7080         * stdio-common/scanf.c: Likewise.
7081         * stdio-common/sscanf.c: Likewise.
7082         * wcsmbs/isoc99_fwscanf.c: Likewise.
7083         * wcsmbs/isoc99_swscanf.c: Likewise.
7084         * wcsmbs/isoc99_vfwscanf.c: Likewise.
7085         * wcsmbs/isoc99_vswscanf.c: Likewise.
7086         * wcsmbs/isoc99_vwscanf.c: Likewise.
7087         * wcsmbs/isoc99_wscanf.c: Likewise.
7088
7089 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
7090
7091         * include/time.h
7092         (__tz_compute): Replace time_t with __time64_t.
7093         (__tz_convert): Replace time_t* with __time64_t.
7094         (__offtime): Replace time_t* with __time64_t.
7095         * time/gmtime.c
7096         (__gmtime_r): Adjust call to __tz_convert.
7097         (gmtime): Likewise.
7098         * time/localtime.c
7099         (__localtime_r): Likewise.
7100         (localtime): Likewise.
7101         * time/offtime.c: Replace time_t with __time64_t.
7102         * time/tzset.c: Likewise.
7103
7104 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
7105
7106         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7107         dynamic linker unless [$(run-built-tests) = yes].
7108
7109 2018-12-03  DJ Delorie  <dj@delorie.com>
7110
7111         * support/test-container.c (check_for_unshare_hints): New.
7112         (main): Call it if unshare fails.  Add support for "su" scriptlet
7113         command.
7114
7115 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
7116
7117         * scripts/gen-as-const.py (compute_c_consts): Take an argument
7118         'START' to indicate that start text should be output.
7119         (gen_test): Likewise.
7120         (main): Generate 'START' for first symbol or '--' line, or at end
7121         of input if not previously generated.
7122
7123 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
7124
7125         [BZ #19767]
7126         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7127         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7128         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7129         ALWAYS_USE_VSYSCALL.
7130
7131 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7132
7133         [BZ #23913]
7134         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7135         new_argv by one.
7136
7137 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
7138
7139         [BZ #23923]
7140         * locale/programs/localedef.c: Declare boolean hard_links default true.
7141         (options): Add --no-hard-links option.
7142         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7143         * locale/programs/localedef.h: Declare prototype for hard_links.
7144         * locale/programs/locfile.c (write_locale_data): Don't use hard
7145         links if hard_links is false.
7146
7147 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
7148
7149         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7150         cpu_features_basic.
7151         (__cache_sysconf): Likewise.
7152         (init_cacheinfo): Likewise.
7153         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7154         populate COMMON_CPUID_INDEX_80000007 and
7155         COMMON_CPUID_INDEX_80000008.
7156         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7157         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7158         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
7159         (init_cpu_features): Use _Static_assert on
7160         index_arch_Fast_Unaligned_Load.
7161         __get_cpuid_registers and __get_arch_feature.  Updated for
7162         cpu_features_basic.  Set stepping in cpu_features.
7163         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7164         (FEATURE_INDEX_2): New.
7165         (FEATURE_INDEX_MAX): Changed to enum.
7166         (COMMON_CPUID_INDEX_D_ECX_1): New.
7167         (COMMON_CPUID_INDEX_80000007): Likewise.
7168         (COMMON_CPUID_INDEX_80000008): Likewise.
7169         (cpuid_registers): Likewise.
7170         (cpu_features_basic): Likewise.
7171         (CPU_FEATURE_USABLE): Likewise.
7172         (bit_arch_XXX_Usable): Likewise.
7173         (cpu_features): Use cpuid_registers and cpu_features_basic.
7174         (bit_arch_XXX): Reweritten.
7175         (bit_cpu_XXX): Likewise.
7176         (index_cpu_XXX): Likewise.
7177         (reg_XXX): Likewise.
7178         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7179         <support/check.h>.
7180         (CHECK_CPU_FEATURE): New.
7181         (CHECK_CPU_FEATURE_USABLE): Likewise.
7182         (cpu_kinds): Likewise.
7183         (do_test): Print vendor, family, model and stepping.  Check
7184         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7185         (TEST_FUNCTION): Removed.
7186         Include <support/test-driver.c> instead of
7187         "../../test-skeleton.c".
7188         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7189         Check POPCNT instead of POPCOUNT.
7190         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7191
7192 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7193
7194         * scripts/gen-as-const.py (main): Avoid emitting empty line when
7195         there is no element in `consts'.
7196
7197 2018-12-01  Florian Weimer  <fweimer@redhat.com>
7198
7199         * support/support_capture_subprocess.c
7200         (support_capture_subprocess): Check that pipe descriptors have
7201         expected values.  Close original pipe descriptors in subprocess.
7202
7203 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7204
7205         [BZ #23032]
7206         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7207         attr with __pthread_default_barrierattr.
7208         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7209         attr with __pthread_default_condattr.
7210         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7211         attr with __pthread_default_mutexattr.
7212         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7213         attr with __pthread_default_rwlockattr.
7214
7215 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
7216
7217         * manual/tunables.texi (POSIX Thread Tunables): New node.
7218         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7219         * nptl/nptl-init.c: Include pthread_mutex_conf.h
7220         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7221         __pthread_tunables_init.
7222         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7223         (max_adaptive_count): Define.
7224         * nptl/pthread_mutex_conf.c: New file.
7225         * nptl/pthread_mutex_conf.h: New file.
7226         * sysdeps/generic/adaptive_spin_count.h: New file.
7227         * sysdeps/nptl/dl-tunables.list: New file.
7228         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7229         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7230         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7231         Likewise.
7232
7233 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
7234
7235         [BZ #20544]
7236         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7237         * stdlib/on_exit.c (__on_exit): Likewise.
7238         * stdlib/Makefile (tests): Add tst-bz20544.
7239         * stdlib/tst-bz20544.c: New test.
7240
7241 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
7242
7243         [BZ #19767]
7244         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7245         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7246         New.
7247
7248 2018-11-30  Florian Weimer  <fweimer@redhat.com>
7249
7250         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7251         Extend error logging.
7252         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7253         symbol.
7254
7255 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7256
7257         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7258         __sigismember instead of sigismember.
7259         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7260         cancel_handler): New definitions.
7261         (do_system): Use posix_spawn instead of fork and execl and remove
7262         reentracy code.
7263         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7264         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7265         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7266         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7267         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7268         * sysdeps/unix/sysv/linux/system.c: Likewise.
7269
7270         [BZ #22834]
7271         [BZ #17490]
7272         * NEWS: Add new semantic for atfork with popen and system.
7273         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7274         fork and execl.
7275
7276 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7277
7278         [BZ #23690]
7279         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7280         modification order when accessing reloc_result->addr.
7281         * include/link.h (reloc_result): Add field init.
7282         * nptl/Makefile (tests): Add tst-audit-threads.
7283         (modules-names): Add tst-audit-threads-mod1 and
7284         tst-audit-threads-mod2.
7285         Add rules to build tst-audit-threads.
7286         * nptl/tst-audit-threads-mod1.c: New file.
7287         * nptl/tst-audit-threads-mod2.c: Likewise.
7288         * nptl/tst-audit-threads.c: Likewise.
7289         * nptl/tst-audit-threads.h: Likewise.
7290
7291 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
7292
7293         * scripts/gen-as-const.py: New file.
7294         * scripts/gen-as-const.awk: Remove.
7295         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7296         gen-as-const.py.
7297         ($(objpfx)test-as-const-%.c): Likewise.
7298
7299 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7300
7301         * elf/dl-exception.c: Include <_itoa.h>.
7302
7303 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7304
7305         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7306         returned by __f_setlk.
7307
7308 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
7309             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7310
7311         * elf/Makefile (tests-internal): Add tst-create_format1.
7312         * elf/dl-exception.c (_dl_exception_create_format): Support
7313         %x, %lx and %zx.
7314         * elf/tst-create_format1.c: New file.
7315
7316 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
7317
7318         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7319         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
7320         gnulib.)
7321         * argp/argp-help.c (__argp_failure): Likewise.
7322
7323 2018-11-29  Mao Han  <han_mao@c-sky.com>
7324
7325         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7326         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7327         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7328         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7329         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7330         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7331         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7332         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7333         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7334         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7335         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7336         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7337         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7338         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7339         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7340         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7341         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7342         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7343         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7344         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7345         (R_CKCORE_TLS_TPOFF32): New defines.
7346
7347 2018-11-29  Florian Weimer  <fweimer@redhat.com>
7348
7349         * posix/Makefile (before-compile): Remove testcases.h and
7350         ptestcases.h.
7351         (generated): Add testcases.h and ptestcases.h.
7352         (testcases.h, ptestcases.h): Move to $(objpfx).
7353         (runtests.o): Add dependency on testcases.h.
7354         (runptests.o): Add dependency on ptestcases.h.
7355         * posix/testcases.h, posix/ptestcases.h: Remove files.
7356         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7357         not touch posix/testcases.h and posix/ptestcases.h.
7358
7359 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7360
7361         support: Add signal support to support_capture_subprocess_check.
7362         * support/capture_subprocess.h (support_capture_subprocess_check):
7363         Adjust comment and rename parameter.
7364         * support/support_capture_subprocess_check.c
7365         (print_actual_status): New function.
7366         (support_capture_subprocess_check): Support negative
7367         status_or_signal.  Call print_actual_status.
7368         * support/tst-support_capture_subprocess.c (do_test): Call
7369         support_capture_subprocess_check.
7370         * libio/tst-vtables-common.c (termination_status)
7371         (init_termination_status): Remove.
7372         (check_for_termination): Adjust support_capture_subprocess_check
7373         call.
7374         (do_test): Remove call to init_termination_status.
7375
7376 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
7377
7378         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7379         source directory instead of a copy.
7380         (CommandList.create_copy_dir): Remove.
7381
7382 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
7383
7384         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7385
7386 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7387
7388         * support/support.h (support_quote_string): Do not use str
7389         parameter name.
7390
7391 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
7392
7393         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7394         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7395
7396 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7397
7398         * support/support.h (support_quote_string): Declare.
7399         * support/support_quote_string.c: New file.
7400         * support/tst-support_quote_string.c: Likewise.
7401         * support/Makefile (libsupport-routines): Add
7402         support_quote_string.
7403         (tests): Add tst-support_quote_string.
7404
7405 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7406
7407         [BZ #23927]
7408         CVE-2018-19591
7409         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7410         descriptor leak in case of ENODEV error.
7411
7412 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
7413
7414         [BZ #19767]
7415         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7416         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7417         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7418
7419 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
7420
7421         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7422         Error for unknown lines.
7423
7424 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
7425
7426         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7427         Touch additional files.
7428
7429 2018-11-26  Florian Weimer  <fweimer@redhat.com>
7430
7431         [BZ #23907]
7432         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7433         double-frees.
7434
7435 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
7436
7437         [BZ #19767]
7438         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7439         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7440         SHARED.  Include sysdep.h.
7441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7442         ALWAYS_USE_VSYSCALL.
7443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7444         ALWAYS_USE_VSYSCALL.
7445
7446 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
7447
7448         [BZ #19767]
7449         * nptl/Makefile (tests-static): Add tst-cond11-static.
7450         (tests): Likewise.
7451         * nptl/tst-cond11-static.c: New File.
7452         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7453         tst-affinity-static.
7454         (tests): Likewise.
7455         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7456         instead of SHARED.
7457         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7458         (USE_VSYSCALL): Likewise.
7459         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7460         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7461         instead of SHARED.
7462         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7463         SHARED.
7464         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7465         New.
7466
7467 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
7468
7469         [BZ #23915]
7470         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7471         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7472         Undefine.
7473
7474 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
7475
7476         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7477         (tst-cet-legacy-1a-ARGS): New.
7478         ($(objpfx)tst-cet-legacy-1a): New target.
7479         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7480
7481 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
7482
7483         * conform/conformtest.py (CompileSubTest.__init__): Set
7484         self.run_early to False.
7485         (ExecuteSubTest.__init__): Likewise.
7486         (HeaderTests.run): Try running all non-optional, non-XFAILed
7487         compilation tests in a single execution of the compiler.
7488
7489         * conform/conformtest.py (CompileSubTest): New class.
7490         (ExecuteSubTest): Likewise.
7491         (ElementTest.run): Rename to gen_subtests.  Append tests to
7492         self.subtests instead of running them.
7493         (ConstantTest.run): Likewise.
7494         (SymbolTest.run): Likewise.
7495         (TypeTest.run): Likewise.
7496         (TagTest.run): Likewise.
7497         (FunctionTest.run): Likewise.
7498         (VariableTest.run): Likewise.
7499         (MacroFunctionTest.run): Likewise.
7500         (MacroStrTest.run): Likewise.
7501         (HeaderTests.handle_test_line): Generate subtests for tests.
7502         (HeaderTests.run): Run subtests for tests.
7503
7504 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7505
7506         * math/Versions (GLIBC_2.29): Add pow.
7507         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7508         symbol.
7509         * math/w_pow.c: New file.
7510         * sysdeps/i386/fpu/w_pow.c: New file.
7511         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7512         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7513         and add necessary aliases.
7514         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7515         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7516         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7517         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7518         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7519         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7520         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7521         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7522         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7523         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7524         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7525         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7526         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7527         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7528         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7533         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7534         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7535         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7536         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7537         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7538         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7539         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7540         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7541         __pow.
7542         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7543         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7544         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7545
7546 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7547
7548         * math/Versions (GLIBC_2.29): Add log2.
7549         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7550         symbol.
7551         * math/w_log2.c: New file.
7552         * sysdeps/i386/fpu/w_log2.c: New file.
7553         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7554         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7555         and add necessary aliases.
7556         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7557         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7558         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7559         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7560         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7561         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7562         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7563         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7564         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7565         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7566         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7567         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7568         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7569         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7570         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7575         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7576         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7577         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7578         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7579         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7580         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7581         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7582
7583 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7584
7585         * math/Versions (GLIBC_2.29): Add log.
7586         * math/w_log_compat.c (__log_compat): Change to versioned compat
7587         symbol.
7588         * math/w_log.c: New file.
7589         * sysdeps/i386/fpu/w_log.c: New file.
7590         * sysdeps/ia64/fpu/e_log.S: Update.
7591         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7592         and add necessary aliases.
7593         * sysdeps/ieee754/dbl-64/w_log.c: New file.
7594         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7595         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7596         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7597         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7598         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7599         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7600         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7601         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7602         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7603         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7604         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7605         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7606         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7607         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7612         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7613         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7614         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7615         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7616         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7617         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7618         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7619         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7620         __log.
7621         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7622         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7623         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7624         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7625
7626 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7627
7628         * math/Versions (GLIBC_2.29): Add exp and exp2.
7629         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7630         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7631         * math/w_exp_compat.c (__exp_compat): Likewise.
7632         * math/w_exp.c: New file.
7633         * math/w_exp2.c: New file.
7634         * sysdeps/i386/fpu/w_exp.c: New file.
7635         * sysdeps/i386/fpu/w_exp2.c: New file.
7636         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7637         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7638         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7639         and add necessary aliases.
7640         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7641         and add necessary aliases.
7642         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7643         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7644         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7645         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7646         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7647         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7648         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7649         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7650         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7651         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7652         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7653         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7654         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7655         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7656         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7657         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7658         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7663         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7664         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7665         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7666         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7667         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7668         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7669         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7670         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7671         (__ieee754_exp): Rename to __exp.
7672         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7673         (__ieee754_exp): Rename to __exp.
7674         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7675         (__ieee754_exp): Rename to __exp.
7676         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7677         __exp.
7678         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7679
7680 2018-11-20  DJ Delorie  <dj@redhat.com>
7681
7682         * malloc/malloc.c (tcache_entry): Add key field.
7683         (tcache_put): Set it.
7684         (tcache_get): Likewise.
7685         (_int_free): Check for double free in tcache.
7686         * malloc/tst-tcfree1.c: New.
7687         * malloc/tst-tcfree2.c: New.
7688         * malloc/Makefile: Run the new tests.
7689         * manual/probes.texi: Document memory_tcache_double_free probe.
7690
7691         * dlfcn/dlerror.c (check_free): Prevent double frees.
7692
7693 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
7694
7695         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7696
7697 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
7698
7699         * conform/conformtest.py (ElementTest.run): Use unique identifiers
7700         in tests.  Use names for format arguments.
7701         (ConstantTest.run): Likewise.
7702         (SymbolTest.run): Likewise.
7703         (TypeTest.run): Likewise.
7704         (TagTest.run): Likewise.
7705         (FunctionTest.run): Likewise.
7706         (VariableTest.run): Likewise.
7707         (MacroFunctionTest.run): Likewise.
7708         (MacroStrTest.run): Likewise.
7709         (HeaderTests.__init__): Set self.num_tests.
7710         (HeaderTests.handle_test_line): Set test.num.  Increment
7711         self.num_tests.
7712
7713 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7714
7715         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7716         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7717         SEEK_SET.
7718
7719 2018-11-19  Mao Han  <han_mao@c-sky.com>
7720
7721         * scripts/config.guess: Update to version 2018-08-29.
7722         * scripts/config.sub: Update to version 2018-08-29.
7723
7724 2018-11-19  Florian Weimer  <fweimer@redhat.com>
7725
7726         support: Print timestamps in timeout handler.
7727         * support/support_test_main.c (print_timestamp): New function.
7728         (signal_handler): Use it to print the termination time and the
7729         time of the last write to standard output.
7730
7731 2018-11-16  Zack Weinberg  <zackw@panix.com>
7732             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7733
7734         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7735         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7736         argument.
7737         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7738         and add flags argument.  Check flags instead of __ldbl_is_dbl when
7739         deciding whether to set is_long_double.
7740         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7741         passing zero for flags argument.
7742         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7743
7744         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7745         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7746         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7747         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
7748         variable names.  Remove libc_hidden_def/libc_hidden_proto from
7749         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7750         longer called from within the library.
7751         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7752         for __nldbl___vstrfmon_l, declare it explicitly.
7753
7754         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7755
7756 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7757
7758         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7759         macros
7760         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7761         F_SETLK64, F_SETLKW64, respectively.
7762         * sysdeps/mach/hurd/f_setlk.c: New file.
7763         * sysdeps/mach/hurd/f_setlk.h: New file.
7764         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7765         f_setlk.
7766         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7767         (__libc_fcntl): Move non-flock operations to...
7768         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7769         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7770
7771 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7772
7773         mktime: DEBUG_MKTIME cleanup
7774         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7775         And it’s no longer needed now that glibc and Gnulib both have
7776         their own testing mechanisms for mktime.
7777         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
7778
7779         mktime: fix non-EOVERFLOW errno handling
7780         [BZ#23789]
7781         mktime was not properly reporting failures when the underlying
7782         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7783         them like EOVERFLOW failures, and set errno to EOVERFLOW.
7784         The problem could happen on non-glibc platforms, with Gnulib.
7785         * time/mktime.c (guess_time_tm): Remove, replacing with ...
7786         (tm_diff): ... this simpler function, which does not change errno.
7787         All callers changed to deal with errno themselves.
7788         (ranged_convert, __mktime_internal): Return failure immediately if
7789         the underlying function reports any failure other than EOVERFLOW.
7790         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7791         gap code fails.
7792
7793         mktime: fix bug with Y2038 DST transition
7794         [BZ#23789]
7795         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7796         mishandle a DST transition that jumps over the Y2038 boundary.
7797         No such DST transitions are known so this is only a theoretical
7798         bug, but we might as well do things right.
7799
7800         mktime: make more room for overflow
7801         [BZ#23789]
7802         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7803         This is so that we can add tm_diff results to a previous guess,
7804         which will be useful in a later patch.
7805
7806         mktime: simplify offset guess
7807         [BZ#23789]
7808         * time/mktime.c (__mktime_internal): Omit excess precision.
7809
7810         mktime: new test for mktime failure
7811         [BZ#23789]
7812         Based on a test suggested by Albert Aribaud in:
7813         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7814         * time/Makefile (tests): Add bug-mktime4.
7815         * time/bug-mktime4.c: New file.
7816
7817         mktime: fix EOVERFLOW bug
7818         [BZ#23789]
7819         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7820         Include libc-config.h, not config.h, for __set_errno.
7821         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7822
7823 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7824
7825         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7826         __attribute_copy__ to copy attributes from name. Drop static qualifier
7827         to avoid warnings about leaf attribute not having effect on static
7828         functions.
7829
7830 2018-11-13  Florian Weimer  <fweimer@redhat.com>
7831
7832         * malloc/malloc.c (fastbin_push_entry): New function.
7833         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
7834         (REMOVE_FB): Remove macro.
7835         (_int_malloc): Use fastbin_pop_entry and reindent.
7836         (_int_free): Use fastbin_push_entry.
7837         (malloc_consolidate): Use atomic_exchange_acquire.
7838
7839 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
7840
7841         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7842         alias attribute, not with strong_alias.
7843
7844         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7845         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
7846         with additional parameter thread.
7847         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7848         in terms of __hidden_ver2.
7849         (hidden_tls_def): New macro.
7850         (libc_hidden_tls_def): Likewise.
7851         (rtld_hidden_tls_def): Likewise.
7852         (libm_hidden_tls_def): Likewise.
7853         (libmvec_hidden_tls_def): Likewise.
7854         (libresolv_hidden_tls_def): Likewise.
7855         (librt_hidden_tls_def): Likewise.
7856         (libdl_hidden_tls_def): Likewise.
7857         (libnss_files_hidden_tls_def): Likewise.
7858         (libnsl_hidden_tls_def): Likewise.
7859         (libnss_nisplus_hidden_tls_def): Likewise.
7860         (libutil_hidden_tls_def): Likewise.
7861         (libutil_hidden_tls_def): Likweise.
7862         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7863         libc_hidden_tls_def.
7864         (__sim_disabled_exceptions_thread): Likewise.
7865         (__sim_round_mode_thread): Likewise.
7866
7867         * sysdeps/sparc/sparc-ifunc.h [SHARED]
7868         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7869         copy attributes from name.
7870
7871 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
7872
7873         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7874         Use __attribute_copy__ to copy attributes from name.
7875
7876         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7877         with __hidden_ver1 call.
7878         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7879         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7880         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7881         (__cosf): Do not declare here.
7882         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7883         (__sincosf): Do not declare here.
7884         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7885         (__sinf): Do not declare here.
7886
7887         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7888         (__BIG_ENDIAN): Likewise.
7889         (__BYTE_ORDER): Likewise.
7890         (strong_alias): Likewise.
7891         (_strong_alias): Likewise.
7892
7893 2018-11-12  Florian Weimer  <fweimer@redhat.com>
7894
7895         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7896         function.  Move after the definition of in_smallbin_range.  Do not
7897         use __builtin_expect for paths that lead to a noreturn function.
7898         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7899         because it is unclear whether this is in fact an unlikely
7900         condition.
7901         (_int_malloc, _int_free): Adjust.
7902         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
7903         variables.
7904         * malloc/arena.c (heap_trim): Likewise.
7905
7906 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7907
7908         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7909         it, free it if needed.
7910         (reauthenticate): Test and use ccwdir.
7911         (child_init_port): In non-resetids case, test and use ccwdir.
7912         (child_chdir): New nested function to set ccwdir.
7913         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7914         * hurd/hurd/port.h (_hurd_port_move): New function.
7915         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7916         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7917         * hurd/Versions (_hurd_port_move): Export function.
7918         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7919         symbol.
7920         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7921         of dtablesize for allocating dtable_cloexec.
7922
7923 2018-11-09  Martin Sebor  <msebor@redhat.com>
7924
7925         * include/libc-symbols.h (__attribute_copy__): Define macro unless
7926         it's already defined.
7927         (_strong_alias): Use __attribute_copy__.
7928         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
7929         * misc/sys/cdefs.h (__attribute_copy__): New macro.
7930         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7931         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7932         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7933         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7934         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7935         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7936         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7937         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7938         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7939         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7940         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7941         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7942         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7943         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7944         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7945         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7946         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7947
7948 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7949
7950         * misc/tst-efgcvt.c: Include support/check.h and
7951         support/test-driver.c.  Do not include test-skeleton.c.
7952         (error_count): Remove.
7953         (output_error): Replace increments to error_count with calls to
7954         support_record_failure.
7955         (output_r_error): Likewise.
7956         (special): Likewise.
7957         (do_test): Unconditionally return zero.
7958         (TEST_FUNCTION): Remove.
7959
7960 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
7961
7962         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7963         not $(@D)/scratch.
7964         ($(linknamespace-header-tests)): Likewise.
7965
7966         * conform/conformtest.py: New file.
7967         * conform/conformtest.pl: Remove.
7968         * conform/GlibcConform.pm: Likewise.
7969         * conform/glibcconform.py (KEYWORDS_C90): New constant.
7970         (KEYWORDS_C99): Likewise.
7971         (KEYWORDS): Likewise.
7972         * conform/Makefile ($(conformtest-header-tests)): Use
7973         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
7974         option.  Use --header instead of --headers.
7975         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7976         function entries.
7977         * conform/data/spawn.h-data: Likewise.
7978         * conform/data/fcntl.h-data (openat): Add space after function
7979         name.
7980         * conform/data/wchar.h-data (wcscasecmp): Likewise.
7981         (wcscasecmp_l): Likewise.
7982         * conform/data/termios.h-data (c_cc): Add space after element
7983         name.
7984
7985 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7986
7987         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7988         instead of manually comparing and reporting mismatching strings.
7989         * misc/tst-ldbl-error.c (do_one_test): Likewise.
7990         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7991
7992 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7995         __ASSUME_SOCKETCALL.
7996         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7997         (__ASSUME_SOCKETCALL): Remove.
7998         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7999         (__ASSUME_SOCKETCALL): Likewise.
8000         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8001         (__ASSUME_SOCKETCALL): Likewise.
8002         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8003         (__ASSUME_SOCKETCALL): Likewise.
8004         * sysdeps/unix/sysv/linux/s390/kernel-features.h
8005         (__ASSUME_SOCKETCALL): Likewise.
8006         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8007         (__ASSUME_SOCKETCALL): Likewise.
8008         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8009         (__ASSUME_SOCKETCALL): Likewise.
8010
8011 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
8012
8013         [BZ #23509]
8014         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8015         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8016         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8017         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8018         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
8019         lc_unknown.
8020
8021 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
8022
8023         [BZ #17630]
8024         * resolv/tst-resolv-network.c: Add test for getnetbyname.
8025
8026 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
8027
8028         [BZ #23867]
8029         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8030         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8031         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8032         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8033
8034 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8035
8036         * support/support_test_compare_string.c
8037         (support_test_compare_string): Fix printf format.
8038
8039 2018-11-07  Florian Weimer  <fweimer@redhat.com>
8040
8041         Implement TEST_COMPARE_STRING.
8042         * support/check.h (TEST_COMPARE_STRING): Define.
8043         (support_test_compare_string): Declare.
8044         * support/Makefile (libsupport-routines): Add
8045         support_test_compare_string.
8046         (tests): Add tst-test_compare_string.
8047         * support/support_test_compare_string.c: New file.
8048         * support/tst-test_compare_string.c: Likewise.
8049
8050 2018-11-07  Andreas Schwab  <schwab@suse.de>
8051
8052         [BZ #23864]
8053         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8054         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8055         Undef.
8056
8057 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
8058
8059         [BZ #23862]
8060         * sysdeps/unix/sysv/linux/sh/kernel-features.h
8061         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8062         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8063         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8064         Likewise.
8065
8066 2018-11-06  Florian Weimer  <fweimer@redhat.com>
8067
8068         [BZ #17405]
8069         * posix/Makefile (routines): Add spawn_faction_addchdir.
8070         (tests): Add tst-spawn-chdir.
8071         * posix/Versions (GLIBC_2.29): Add
8072         posix_spawn_file_actions_addchdir_np.
8073         * posix/spawn_faction_addchdir.c: New file.
8074         * posix/spawn_faction_destroy.c
8075         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8076         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8077         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8078         chdir_action.
8079         * posix/tst-spawn-chdir.c: New file.
8080         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8081         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8082         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8083         posix_spawn_file_actions_addchdir_np.
8084         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8085         Likewise.
8086         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8087         Likewise.
8088         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8089         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8090         Likewise.
8091         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8092         Likewise.
8093         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8094         Likewise.
8095         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8096         Likewise.
8097         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8098         Likewise.
8099         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8100         Likewise.
8101         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8102         (GLIBC_2.29): Likewise.
8103         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8104         (GLIBC_2.29): Likewise.
8105         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8106         (GLIBC_2.29): Likewise.
8107         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8108         (GLIBC_2.29): Likewise.
8109         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8110         Likewise.
8111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8112         (GLIBC_2.29): Likewise.
8113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8114         (GLIBC_2.29): Likewise.
8115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8116         (GLIBC_2.29): Likewise.
8117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8118         (GLIBC_2.29): Likewise.
8119         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8120         Likewise.
8121         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8122         Likewise.
8123         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8124         Likewise.
8125         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8126         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8127         Likewise.
8128         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8129         Likewise.
8130         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8131         Likewise.
8132         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8133         Likewise.
8134
8135 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8136
8137         * misc/Makefile (tests): Add tst-ldbl-error.
8138         * misc/tst-ldbl-error.c: New file.
8139
8140 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8141
8142         * misc/Makefile (tests): Add tst-ldbl-warn.
8143         * misc/tst-ldbl-warn.c: New file.
8144
8145 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
8146
8147         * argp/Makefile (tests): Add tst-ldbl-argp.
8148         * argp/tst-ldbl-argp.c: New file.
8149
8150 2018-11-05  Arjun Shankar  <arjun@redhat.com>
8151
8152         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8153         __gconv_path_elem and call __gconv_get_path unconditionally.
8154
8155 2018-11-05  Andreas Schwab  <schwab@suse.de>
8156
8157         [BZ #22927]
8158         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8159         creating the first helper thread failed.
8160
8161 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8162
8163         * sysdeps/mach/hurd/msync.c: New file.
8164
8165 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8166
8167         * support/shell-container.c (copy_func): Call
8168         support_copy_file_range instead of copy_file_range to support
8169         cross-device copies.
8170
8171 2018-11-02  Florian Weimer  <fweimer@redhat.com>
8172
8173         * support/test-container.c: Include <libc-pointer-arith.h> for
8174         ALIGN_UP.
8175
8176 2018-11-01  Zong Li  <zong@andestech.com>
8177
8178         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8179         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8180         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8181         (__FP_FRAC_SET_8): Add implementation for RV32 use.
8182
8183         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8184         variable to avoid overlap arguments.
8185
8186 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
8187
8188         * posix/bug-regex22.c (main): Use puts with distinct error
8189         messages for unexpected success of re_compile_pattern, not printf
8190         with NULL argument to %s.
8191
8192         * stdio-common/bug22.c: Include <libc-diag.h>.
8193         (do_test): Disable -Wformat-overflow= warnings around fprintf
8194         calls outputting more than INT_MAX characters.
8195         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8196         around printf call with NULL %s argument.
8197
8198         [BZ #23848]
8199         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8200         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8201         Undefine.
8202         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8203         (__ASSUME_RECVMSG_SYSCALL): Likewise.
8204         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8205         (__ASSUME_SENDTO_SYSCALL): Likewise.
8206         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8207         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8208         [!__arch64__].
8209         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8210         (__ASSUME_CONNECT_SYSCALL): Likewise.
8211         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8212         (__ASSUME_RECVFROM_SYSCALL): Likewise.
8213         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8214         Define.
8215         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8216         Likewise.
8217         [__LINUX_KERNEL_VERSION >= 0x040400]
8218         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8219         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8220         Remove.
8221         (listen): Likewise.
8222         (setsockopt): Likewise.
8223
8224 2018-11-01  Fredrik Noring  <noring@nocrew.org>
8225
8226         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8227         with the ISA override.
8228
8229 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
8230
8231         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8232         #endif.
8233
8234 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8235
8236         * manual/errno.texi (EIEIO): Document how translators should
8237         translate the error message.
8238         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
8239         printing trailing whitespaces refused by git.
8240         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8241         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8242         * hurd/Makefile (user-interfaces): Add pci.
8243
8244 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
8245
8246         * conform/linknamespace.py: New file.
8247         * conform/linknamespace.pl: Remove file.
8248         * conform/Makefile ($(linknamespace-header-tests)): Use
8249         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
8250         option.
8251
8252 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8253
8254         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8255         memory leaks.
8256
8257 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8258
8259         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8260
8261 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8262
8263         * stdlib/tst-strtod-overflow.c (do_test): Switch to
8264         support_blob_repeat.
8265
8266 2018-10-30  Florian Weimer  <fweimer@redhat.com>
8267
8268         Avoid spurious test failures in stdlib/test-bz22786.
8269         * support/Makefile (libsupport-routines): Add blob_repeat.
8270         (tests): Add tst-support_blob_repeat.
8271         * support/blob_repeat.h: New file.
8272         * support/blob_repeat.c: Likewise.
8273         * support/tst-support_blob_repeat.c: Likewise.
8274         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8275         support_blob_repeat_allocate.
8276
8277 2018-10-30  Andreas Schwab  <schwab@suse.de>
8278
8279         [BZ #23125]
8280         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8281         Don't use tail call.
8282         * elf/tst-unwind-main.c: New file.
8283         * elf/Makefile (tests): Add tst-unwind-main.
8284         (CFLAGS-tst-unwind-main.c): Define.
8285
8286 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
8287
8288         [BZ #23791]
8289         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8290         n_cs_precedes to 0.
8291         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8292
8293 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
8294
8295         * conform/glibcconform.py: Do not import shutil.
8296         (list_exported_functions): Use tempfile.TemporaryDirectory instead
8297         of mkdtemp.
8298
8299         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
8300         critic_missing for versions before 3.4.
8301         * configure: Regenerated.
8302         * manual/install.texi (Tools for Compilation): Document
8303         requirement for Python to build glibc.
8304         * INSTALL: Regenerated.
8305         * Rules [PYTHON]: Make code unconditional.
8306         * benchtests/Makefile [PYTHON]: Likewise.
8307         * conform/Makefile [PYTHON]: Likewise.
8308         * manual/Makefile [PYTHON]: Likewise.
8309         * math/Makefile [PYTHON]: Likewise.
8310
8311 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8312
8313         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8314         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8315         answer to interrupt_operation, return EIEIO instead of EINTR.
8316         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8317         _hurd_intr_rpc_msg_about_to global point to start of controlled
8318         assembly snippet. Make it check canceled flag.
8319         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8320         the _hurd_intr_rpc_msg_about_to point.
8321         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8322         issue, remove cancel flag check.
8323
8324 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
8325
8326         * scripts/build-many-glibcs.py: Remove compatibility for missing
8327         os.cpu_count and re.fullmatch.
8328
8329 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8330
8331         [BZ #23822]
8332         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8333         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8334         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8335
8336 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8337
8338         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8339         macro.
8340
8341 2018-10-25  Florian Weimer  <fweimer@redhat.com>
8342
8343         [BZ #23562]
8344         [BZ #23821]
8345         XFAIL siginfo_t si_band conform test on sparc64.
8346         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8347         (__SI_BAND_TYPE): Only override long int default type on sparc64.
8348         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8349         (conformtest-xfail-conds): Add sparc64-linux.
8350         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8351         sparc64.
8352         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8353
8354 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8355
8356         * elf/elf.h (NT_MIPS_DSP): New macro.
8357         (NT_MIPS_FP_MODE): Likewise.
8358
8359 2018-10-25  Zong Li  <zong@andestech.com>
8360
8361         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8362         name by adding the file extension (.so).
8363
8364 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8365
8366         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8367         (test-xfail-ISO11/threads.h/linknamespace,
8368         test-xfail-ISO11/threads.h/conform): Add.
8369
8370 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
8371
8372         * math/gen-libm-test.py: Import os.
8373         (ALL_FLOATS_MANUAL): New constant.
8374         (ALL_FLOATS_SUFFIX): Likewise.
8375         (Ulps.all_functions): New function.
8376         (real_all_ulps): Likewise.
8377         (generate_err_table_sub): Likewise.
8378         (generate_err_table): Likewise.
8379         (main): Handle -s and -m options.
8380         * manual/libm-err-tab.pl: Remove.
8381         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8382         instead of libm-err-tab.pl.
8383         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8384         != no].
8385         * manual/install.texi (Tools for Compilation): Document
8386         requirement for Python to build manual.
8387         * INSTALL: Regenerated.
8388
8389 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8390
8391         * bits/time64.h: New file.
8392         * include/time.h: Replace internal_time_t with __time64_t.
8393         * posix/bits/types (__time64_t): Add.
8394         * stdlib/Makefile: Add bits/time64.h to includes.
8395         * time/tzfile.c: Replace internal_time_t with __time64_t.
8396
8397 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8398
8399         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8400         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8401         __posix_spawn_file_actions_init, __posix_spawnattr_init,
8402         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8403         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8404         prototype.
8405         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8406         * posix/spawn_faction_addclose.c
8407         (__posix_spawn_file_actions_addclose): Add hidden definition.
8408         * posix/spawn_faction_adddup2.c
8409         (__posix_spawn_file_actions_adddup2): Likewise.
8410         * posix/spawn_faction_destroy.c
8411         (__posix_spawn_file_actions_destroy): Likewise.
8412         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8413         Likewise.
8414         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8415         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8416         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8417         Likewise.
8418         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8419         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8420         Likewise.
8421
8422 2018-10-24  Andreas Schwab  <schwab@suse.de>
8423
8424         [BZ #18093]
8425         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8426         format cache.
8427         * elf/cache.c (print_cache): Likewise.
8428
8429 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8430
8431         * bits/timesize.h: New file.
8432         * stdlib/Makefile (headers): Add bits/timesize.h.
8433         * sysdeps/unix/sysv/linux/bits/msq-pad.h
8434         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8435         * sysdeps/unix/sysv/linux/bits/sem-pad.h
8436         (__SEM_PAD_AFTER_TIME): Likewise.
8437         * sysdeps/unix/sysv/linux/bits/shm-pad.h
8438         (__SHM_PAD_AFTER_TIME): Likewise.
8439         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8440         (__MSQ_PAD_BEFORE_TIME): Likewise.
8441         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8442         (__SEM_PAD_BEFORE_TIME): Likewise.
8443         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8444         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8445         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8446         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8447         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8448         (__MSQ_PAD_BEFORE_TIME): Likewise.
8449         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8450         (__SEM_PAD_BEFORE_TIME): Likewise.
8451         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8452         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8453         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8454         (__MSQ_PAD_BEFORE_TIME): Likewise.
8455         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8456         (__SEM_PAD_BEFORE_TIME): Likewise.
8457         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8458         (__SHM_PAD_BEFORE_TIME): Likewise.
8459         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8460         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8461         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8462
8463 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
8464
8465         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8466         USE_RDTSCP is defined.
8467         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8468         USE_RDTSCP is defined.
8469
8470 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8471
8472         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8473         defined.
8474
8475         [BZ #23709]
8476         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8477         independently of other flags.
8478
8479 2018-10-23  Florian Weimer  <fweimer@redhat.com>
8480
8481         * time/tst-mktime2.c (N_STRINGS): Remove.
8482         (set_timezone): New function.
8483         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
8484         (mktime_test1): Report localtime failure and check errno value.
8485         Use TEST_COMPARE.
8486         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8487         (do_test): Remove alarm call. Use set_timezone and array_length.
8488
8489 2018-10-23  Andreas Schwab  <schwab@suse.de>
8490
8491         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8492         (__start_context): Use END instead of PSEUDO_END.
8493
8494 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
8495
8496         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8497         version to 4.19.
8498
8499         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8500         version to 4.19.
8501
8502         [BZ #23793]
8503         * wcsmbs/c32rtomb.c: New file.
8504         * wcsmbs/mbrtoc32.c: Likewise.
8505         * wcsmbs/tst-c32-state.c: Likewise.
8506         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8507         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8508         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8509         (tests): Add tst-c32-state.
8510         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8511         $(gen-locales).
8512
8513 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8514
8515         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8516         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8517
8518 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
8519
8520         [BZ #23794]
8521         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8522         pair and return 0 in that case, and use saved character to
8523         interpret following character.
8524         * wcsmbs/tst-c16-surrogate.c: New file.
8525         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8526         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8527         Depend on $(gen-locales)
8528
8529 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
8530
8531         [BZ #23562]
8532         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8533         (struct siginfo_t): Use correct type for si_band.
8534
8535 2018-10-19  Florian Weimer  <fweimer@redhat.com>
8536
8537         [BZ #23689]
8538         * resource/bits/types/struct_rusage.h (struct rusage): Update
8539         comment on struct.  Remove extraneous field comment.
8540
8541 2018-10-18  David S. Miller  <davem@davemloft.net>
8542
8543         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8544         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8545         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8546         sysdep_routines in subdir elf.
8547         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8548         version for __vdso_clock_gettime.
8549         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8550         Define.
8551         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8552         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8553
8554         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8555
8556 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8557
8558         * sysdeps/i386/init-arch.h: Removed.
8559         * sysdeps/i386/i586/init-arch.h: Likewise.
8560         * sysdeps/i386/i686/init-arch.h: Likewise.
8561         * sysdeps/i386/i686/hp-timing.h: Likewise.
8562         * sysdeps/x86_64/hp-timing.h: Likewise.
8563         * sysdeps/i386/isa.h: New file.
8564         * sysdeps/i386/i586/isa.h: Likewise.
8565         * sysdeps/i386/i686/isa.h: Likewise.
8566         * sysdeps/x86_64/isa.h: Likewise.
8567         * sysdeps/x86/hp-timing.h: New file.
8568         * sysdeps/x86/init-arch.h: Include <isa.h>.
8569
8570 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8571
8572         * math/libm-test-pow.inc (pow_test_data): Do not allow
8573         divide-by-zero exception for pow(+/- 0, -Inf).
8574
8575 2018-10-17  Zack Weinberg  <zackw@panix.com>
8576
8577         * manual/job.texi (Job Control is Optional): Remove node, as
8578         job control has not been optional in quite some time.
8579         (Job Control): Mention briefly that systems older than
8580         POSIX.1-2001 might not support job control.
8581         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8582         defined on systems conforming to POSIX.1-2001.
8583
8584 2018-10-17  Arjun Shankar  <arjun@redhat.com>
8585
8586         [BZ #22062]
8587         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8588         indentation.
8589         * (__gconv_read_conf): Mark function static.
8590         * (once): New static variable.
8591         * (__gconv_load_conf): New function.
8592         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8593         * iconv/gconv_db.c (once): Remove static variable.
8594         * (__gconv_compare_alias): Use __gconv_load_conf instead of
8595         __gconv_read_conf.
8596         * (__gconv_find_transform): Likewise.
8597         * iconv/tst-iconv-mt.c: New test.
8598         * iconv/Makefile: Add tst-iconv_mt.
8599
8600 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8603         bits/shm-pad.h.
8604         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8605         (shmatt_t): Define as __syscall_ulong_t.
8606         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8607         and [__SHM_PAD_AFTER_TIME].
8608         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8609         Define shm_segsz and associated padding based on
8610         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8611         Use __syscall_ulong_t instead of unsigned long int.
8612         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8613         unsigned long int.
8614         [__USE_MISC] (struct shm_info): Likewise.
8615         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8616         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8617         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8618         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8619         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8620         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8621         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8622         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8623         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8624         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8625         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8626
8627         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8628         bits/shmlba.h.
8629         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8630         (SHMLBA): Remove macro.
8631         (__getpagesize): Remove function declaration.
8632         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8633         <bits/shmlba.h>.
8634         (SHMLBA): Remove macro.
8635         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8636         <bits/shmlba.h>.
8637         (SHMLBA): Remove macro.
8638         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8639         <bits/shmlba.h>.
8640         (SHMLBA): Remove macro.
8641         (__getpagesize): Remove function declaration.
8642         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8643         <bits/shmlba.h>.
8644         (SHMLBA): Remove macro.
8645         (__getshmlba): Remove function declaration.
8646         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8647         (SHMLBA): Remove macro.
8648         (__getpagesize): Remove function declaration.
8649         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8650         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8651         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8652         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8653         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8654         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8655         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8656         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8657         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8658         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8659
8660 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
8661
8662         [BZ #23275]
8663         * nptl/tst-mutex10.c: New File.
8664         * nptl/Makefile (tests): Add tst-mutex10.
8665         (tst-mutex10-ENV): New variable.
8666         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8667         Ensure that elision path is used if elision is available.
8668         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8669         Likewise.
8670         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8671         Likewise.
8672         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8673         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8674         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8675         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8676         Likewise.
8677         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8678         (__pthread_mutex_cond_lock_adjust): Likewise.
8679         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8680         Likewise.
8681         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8682         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8683         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8684         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8685         Add comments.
8686         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8687         Use atomic_load_relaxed and atomic_store_relaxed.
8688         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8689         Use atomic_store_relaxed.
8690
8691 2018-10-17  Andreas Schwab  <schwab@suse.de>
8692
8693         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8694         * crypt/badsalttest.c (TIMEOUT): Likewise.
8695         * crypt/sha256c-test.c (TIMEOUT): Likewise.
8696         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8697         * io/test-lfs.c (TIMEOUT): Likewise.
8698         * libio/tst-atime.c (TIMEOUT): Likewise.
8699         * localedata/tst-leaks.c (TIMEOUT): Likewise.
8700         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8701         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8702         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8703         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8704         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8705         * nptl/tst-cond11.c (TIMEOUT): Likewise.
8706         * nptl/tst-cond14.c (TIMEOUT): Likewise.
8707         * nptl/tst-cond15.c (TIMEOUT): Likewise.
8708         * nptl/tst-cond24.c (TIMEOUT): Likewise.
8709         * nptl/tst-cond25.c (TIMEOUT): Likewise.
8710         * nptl/tst-kill2.c (TIMEOUT): Likewise.
8711         * nptl/tst-kill3.c (TIMEOUT): Likewise.
8712         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8713         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8714         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8715         * nptl/tst-once2.c (TIMEOUT): Likewise.
8716         * nptl/tst-once3.c (TIMEOUT): Likewise.
8717         * nptl/tst-once4.c (TIMEOUT): Likewise.
8718         * nptl/tst-robust8.c (TIMEOUT): Likewise.
8719         * nptl/tst-robust9.c (TIMEOUT): Likewise.
8720         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8721         * nptl/tst-sem14.c (TIMEOUT): Likewise.
8722         * nptl/tst-sem6.c (TIMEOUT): Likewise.
8723         * nptl/tst-signal3.c (TIMEOUT): Likewise.
8724         * nptl/tst-spin4.c (TIMEOUT): Likewise.
8725         * nptl/tst-tls3.c (TIMEOUT): Likewise.
8726         * nptl/tst-tls4.c (TIMEOUT): Likewise.
8727         * posix/tst-chmod.c (TIMEOUT): Likewise.
8728         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8729         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8730         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8731         * posix/tst-regex2.c (TIMEOUT): Likewise.
8732         * posix/tst-waitid.c (TIMEOUT): Likewise.
8733         * rt/tst-aio.c (TIMEOUT): Likewise.
8734         * rt/tst-aio10.c (TIMEOUT): Likewise.
8735         * rt/tst-aio4.c (TIMEOUT): Likewise.
8736         * rt/tst-aio5.c (TIMEOUT): Likewise.
8737         * rt/tst-aio6.c (TIMEOUT): Likewise.
8738         * rt/tst-aio64.c (TIMEOUT): Likewise.
8739         * rt/tst-aio7.c (TIMEOUT): Likewise.
8740         * rt/tst-aio9.c (TIMEOUT): Likewise.
8741         * rt/tst-clock.c (TIMEOUT): Likewise.
8742         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8743         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8744         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8745         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8746         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8747         * rt/tst-timer4.c (TIMEOUT): Likewise.
8748         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8749         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8750         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8751         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8752         * time/tst-ftime.c (TIMEOUT): Likewise.
8753         * timezone/tst-tzset.c (TIMEOUT): Likewise.
8754
8755 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
8756
8757         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8758         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8759         for thunderX2.
8760
8761 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
8762
8763         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8764         bits/sem-pad.h.
8765         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8766         instead of <bits/wordsize.h>.
8767         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8768         and [__SEM_PAD_AFTER_TIME].
8769         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
8770         __syscall_ulong_t instead of unsigned long int.
8771         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8772         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8773         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8774         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8775         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8776         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8777         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8778         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8779         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8780         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8781         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8782
8783 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8784
8785         regex: simplify by using intprops.h
8786         [BZ#23744]
8787         * posix/regex_internal.h [_LIBC]: Include intprops.h.
8788         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8789         intprops.h defines them.
8790
8791         regex: __builtin_expect → __glibc_unlikely
8792         [BZ#23744]
8793         This refactoring was prompted by a problem when the regex code is
8794         used as part of Gnulib and when the builder’s compiler does not grok
8795         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
8796         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8797         Although this refactoring does not fix the problem directly,
8798         we might as well have Gawk use the now-preferred glibc style for when
8799         __builtin_expect is unavailable.
8800         * posix/regex_internal.h (BE): Remove.
8801         All uses replaced by __glibc_unlikely or __glibc_likely.
8802
8803 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
8804
8805         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8806         bits/msq-pad.h.
8807         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8808         instead of <bits/wordsize.h>.
8809         (msgqnum_t): Define as __syscall_ulong_t.
8810         (msglen_t): Likewise.
8811         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8812         and [__MSQ_PAD_AFTER_TIME].
8813         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
8814         __syscall_ulong_t instead of unsigned long int.
8815         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8816         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8817         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8818         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8819         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8820         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8821         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8822         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8823         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8824         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8825         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8826
8827 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
8828
8829         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8830         (struct shmid_ds): Condition padding after time fields on
8831         [__WORDSIZE == 32].
8832         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8833         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8834         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8835
8836         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8837         (struct semid_ds): Condition padding after time fields on
8838         [__WORDSIZE == 32].
8839         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8840         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8841         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8842         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8843
8844         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8845         (struct msqid_ds): Condition padding after time fields on
8846         [__WORDSIZE == 32].
8847         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8848         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8849         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8850         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8851
8852 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8853
8854         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8855
8856 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8857
8858         * libio/tst-readline.c (TIMEOUT): Define.
8859
8860 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8861
8862         mktime fix for Gnulib + coreutils
8863         [BZ#23745]
8864         This fix affects only Gnulib.  Problem discovered when
8865         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8866         * time/mktime.c:
8867         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8868         Do not define since it is not used.  Defining an unused static
8869         function prompts a warning from GCC when Coreutils is configured
8870         with --enable-gcc-warnings.
8871
8872 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
8873
8874         * benchtests/scripts/compare_bench.py (main): set float type on
8875         threshold argument.
8876
8877 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
8878
8879         [BZ #23740]
8880         * localedata/locales/kl_GL (mon): Update, the relative case.
8881         (alt_mon): Add, fill with month names in the nominative case.
8882         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8883         (d_fmt): Set to "%b %d %Y".
8884
8885 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
8886
8887         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8888         <bits/mman-linux.h>.
8889         (PROT_READ): Don't define here.
8890         (PROT_WRITE): Likewise.
8891         (PROT_EXEC): Likewise.
8892         (PROT_NONE): Likewise.
8893         (PROT_GROWSDOWN): Likewise.
8894         (PROT_GROWSUP): Likewise.
8895         (MAP_SHARED): Likewise.
8896         (MAP_PRIVATE): Likewise.
8897         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8898         [__USE_MISC] (MAP_FILE): Likewise.
8899         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8900         [__USE_MISC] (MAP_ANON): Likewise.
8901         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8902         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8903         (MCL_CURRENT): Likewise.
8904         (MCL_FUTURE): Likewise.
8905         (MCL_ONFAULT): Likewise.
8906         [__USE_MISC] (MADV_NORMAL): Likewise.
8907         [__USE_MISC] (MADV_RANDOM): Likewise.
8908         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8909         [__USE_MISC] (MADV_WILLNEED): Likewise.
8910         [__USE_MISC] (MADV_DONTNEED): Likewise.
8911         [__USE_MISC] (MADV_FREE): Likewise.
8912         [__USE_MISC] (MADV_REMOVE): Likewise.
8913         [__USE_MISC] (MADV_DONTFORK): Likewise.
8914         [__USE_MISC] (MADV_DOFORK): Likewise.
8915         [__USE_MISC] (MADV_HWPOISON): Likewise.
8916         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8917         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8918         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8919         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8920         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8921         (__MAP_ANONYMOUS): New macro.
8922         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8923         <bits/mman-linux.h> inclusion.
8924         (MAP_FIXED): Likewise.
8925         (MS_SYNC): Likewise.
8926         (MS_ASYNC): Likewise.
8927         (MS_INVALIDATE): Likewise.
8928         [__USE_MISC] (MADV_MERGEABLE): Likewise.
8929         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8930         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8931         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8932         [__USE_MISC] (MADV_DONTDUMP): Likewise.
8933         [__USE_MISC] (MADV_DODUMP): Likewise.
8934         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8935         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8936
8937         [BZ #23735]
8938         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8939         Define.
8940         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8941         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8942         Add test-nldbl-redirect.
8943         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8944         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8945         $(objpfx)libnldbl_nonshared.a.
8946
8947 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
8948
8949         * support/support.h (support_objdir_elf_ldso): New variable.
8950         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8951         * support/Makefile (CFLAGS-support_paths.c): Add definition
8952         for OBJDIR_ELF_LDSO_PATH.
8953         * support/test-container.c (main): Search for the ld.so
8954         which is also used by the testsuite.
8955
8956 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
8957
8958         [BZ #20209]
8959         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8960         should be "sap" rather than "sab".
8961         (day): Fix spelling of Sunday, should be "sapaat" rather than
8962         "sabaat".
8963
8964 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
8965
8966         * math/libm-test-fma.inc (fma_test_data): Add more tests.
8967
8968 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
8969
8970         [BZ #19444]
8971         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8972         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8973         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8974
8975 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8976
8977         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8978
8979 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8980
8981         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8982         Add -mrtm.
8983         (CFLAGS-elision-unlock.c): Likewise.
8984         (CFLAGS-elision-timed.c): Likewise.
8985         (CFLAGS-elision-trylock.c): Likewise.
8986         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8987
8988 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8989
8990         [BZ #21037]
8991         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8992         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8993         new fd_to_filename interface.
8994         * libio/freopen64.c (freopen64): Likewise.
8995         * libio/tst-memstream.h: New file.
8996         * libio/tst-memstream4.c: Likewise.
8997         * libio/tst-wmemstream4.c: Likewise.
8998         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8999         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9000         and remove internal dynamic allocation.
9001
9002 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
9003
9004         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9005         (MREMAP_MAYMOVE): Do not define here.
9006         [__USE_GNU] (MREMAP_FIXED): Likewise.
9007         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9008         (MREMAP_MAYMOVE): Define here instead.
9009         [__USE_GNU] (MREMAP_FIXED): Likewise.
9010         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9011         (MREMAP_MAYMOVE): Remove.
9012         [__USE_GNU] (MREMAP_FIXED): Likewise.
9013
9014 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
9015
9016         * math/fromfp.h: Do not include <math_private.h>.
9017         * math/s_cacosh_template.c: Likewise.
9018         * math/s_casin_template.c: Likewise.
9019         * math/s_casinh_template.c: Likewise.
9020         * math/s_ccos_template.c: Likewise.
9021         * math/s_cproj_template.c: Likewise.
9022         * math/s_fdim_template.c: Likewise.
9023         * math/s_fmaxmag_template.c: Likewise.
9024         * math/s_fminmag_template.c: Likewise.
9025         * math/s_iseqsig_template.c: Likewise.
9026         * math/s_ldexp_template.c: Likewise.
9027         * math/s_nextdown_template.c: Likewise.
9028         * math/w_log1p_template.c: Likewise.
9029         * math/w_scalbln_template.c: Likewise.
9030         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9031         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9032         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9033         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9034         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9035         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9036         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9037         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9038         * sysdeps/i386/fpu/s_atanl.c: Likewise.
9039         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9040         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9041         * sysdeps/i386/fpu/s_fdim.c: Likewise.
9042         * sysdeps/i386/fpu/s_logbl.c: Likewise.
9043         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9044         * sysdeps/i386/fpu/s_significandl.c: Likewise.
9045         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9046         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9047         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9048         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9049         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9050         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9051         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9052         * sysdeps/ieee754/k_standardf.c: Likewise.
9053         * sysdeps/ieee754/k_standardl.c: Likewise.
9054         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9055         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9056         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9057         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9058         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9059         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9060         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9061         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9062         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9063         * sysdeps/ieee754/s_signgam.c: Likewise.
9064         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9065         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9066         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9067         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9068         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9069         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9070         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9071         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9072         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9073         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9074         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9075         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9076         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9077         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9078         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9079         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9080         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9081         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9082         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9083         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9084         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9085         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9086         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9087         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9088         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9089         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9090         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9091         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9092         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9093         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9094         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9095         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9096         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9097         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9098         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9099         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9100         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9101         <math_private.h>.
9102         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9103
9104 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
9105
9106         [BZ #23716]
9107         * sysdeps/i386/dl-cet.c: Removed.
9108         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9109         prototype.
9110         (_dl_runtime_profile_shstk): Likewise.
9111         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9112         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9113
9114 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9115
9116         [BZ #23579]
9117         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9118         do_test_with_invalid_iov): New tests.
9119         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9120         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9121         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9122         errno is ENOSYS.
9123         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9124         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9125         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9126
9127 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9130         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9131         (MATH_REDIRECT_BINARY_ARGS): New macro.
9132         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9133         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9134         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9135         header inclusion.
9136         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9137         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9138         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9139         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9140         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9141         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9142         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9144         Likewise.
9145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9146         Likewise.
9147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9148         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9149         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9150         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9152         Likewise.
9153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9154         Likewise.
9155         * sysdeps/generic/math_private_calls.h
9156         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9157         Do not declare and define as an inline function.
9158         * math/divtc3.c (__divtc3): Use copysign functions instead of
9159         __copysign variants.
9160         * math/multc3.c (__multc3): Likewise.
9161         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9162         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9163         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9164         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9165         Likewise.
9166         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9167         (__ieee754_yn): Likewise.
9168         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9169         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9170         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9171         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9172         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9173         (__sin): Likewise.
9174         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9175         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9176         Likewise.
9177         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9178         Likewise.
9179         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9180         Likewise.
9181         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9182         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9183         Likewise.
9184         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9185         (__ieee754_ynf): Likewise.
9186         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9187         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9188         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9189         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9190         Likewise.
9191         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9192         (__ieee754_ynl): Likewise.
9193         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9194         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9195         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9196         Likewise.
9197         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9198         (__ieee754_ynl): Likewise.
9199         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9200         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9201         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9202         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9203         Likewise.
9204         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9205         (__ieee754_ynl)
9206         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9207         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9208         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9209         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9210         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9211
9212         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9213         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9214         using MATH_REDIRECT.
9215         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9216         header inclusion.
9217         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9218         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9219         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9220         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9221         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9222         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9223         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9224         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9228         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9229         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9230         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9231         (round): Redirect to __round.
9232         (__roundl): Call round instead of __round.
9233         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9234         Remove macro.
9235         [_ARCH_PWR5X] (__roundf): Likewise.
9236         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9237         functions instead of __round variants.
9238         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9239         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9240         Likewise.
9241         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9242         Likewise.
9243         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9244         Likewise.
9245         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9246         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9247         __lroundl.
9248         (__ieee754_expl): Call roundl instead of __roundl.
9249
9250 2018-09-27  Andreas Schwab  <schwab@suse.de>
9251
9252         [BZ #23717]
9253         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9254         (do_test): Make st1 static.
9255
9256 2018-09-26  Andreas Schwab  <schwab@suse.de>
9257
9258         [BZ #23707]
9259         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9260         * elf/Makefile (tests): Add tst-unwind-ctor.
9261         (modules-names): Add tst-unwind-ctor-lib.
9262         ($(objpfx)tst-unwind-ctor): Depend on
9263         $(objpfx)tst-unwind-ctor-lib.so.
9264
9265 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9268         file.  Most contents moved from ....
9269         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
9270         and include <bits/mman-map-flags-generic.h>.
9271         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9272         (sysdep_headers): Add bits/mman-map-flags-generic.h.
9273         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9274         <bits/mman-map-flags-generic.h>.
9275         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9276         macros defined in <bits/mman-map-flags-generic.h>.
9277         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9278         <bits/mman-map-flags-generic.h>.
9279         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9280         defined in <bits/mman-map-flags-generic.h>.
9281
9282 2018-09-26  Andreas Schwab  <schwab@suse.de>
9283
9284         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9285         output.
9286
9287 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
9288             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9289             Fangrui Song  <maskray@google.com>
9290
9291         [BZ #20480]
9292         * config.make.in (have-textrel_ifunc): New define.
9293         * configure.ac: Add check if linker supports textrel relocation with
9294         ifunc.
9295         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9296         tst-ifunc-textrel.
9297         (CFLAGS-tst-ifunc-textrel.c): New rule.
9298         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9299         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9300         * elf/tst-ifunc-textrel.c: New file.
9301
9302 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
9303
9304         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9305         <bits/procfs-prregset.h>.
9306         (prgregset_t): Define using __prgregset_t.
9307         (prfpregset_t): Define using __prfpregset_t.
9308         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9309         (sysdep_headers): Add bits/procfs-prregset.h.
9310         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9311         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9312         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9313         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9314
9315         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9316         <bits/procfs-id.h> and <bits/procfs-extra.h>.
9317         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9318         pr_uid and pr_gid.
9319         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9320         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9321         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9322         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9323         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9324         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9325         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9326         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9327         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9328         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9329         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9330         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9331         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9332         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9333         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9334         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9335         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9336         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9337         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9338         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9339         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9340         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9341         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9342         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9343
9344         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9345         AArch64 version.  Include <bits/procfs.h>.
9346         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9347         (sysdep_headers): Add bits/procfs.h.
9348         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9349         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9350         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9351         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9352         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9353         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9354         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9355         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9356         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9357         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9358         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9359         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9360         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9361         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9362         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9363         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9364         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9365
9366 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9367
9368         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9369         Use libsupport.
9370
9371 2018-09-25  Arjun Shankar  <arjun@redhat.com>
9372
9373         * iconv/gconv_int.h (__gconv_path_elem): Remove.
9374         (__gconv_max_path_elem_len): Likewise.
9375         (__gconv_nmodules): Likewise.
9376         (__gconv_get_path): Likewise.
9377         (path_elem): Move to ...
9378         * iconv/gconv_conf.c: ... here.
9379         (__gconv_get_path): Mark function static.
9380         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9381         * iconv/gconv_open.c: ... here.
9382
9383 2018-09-24  Andreas Schwab  <schwab@suse.de>
9384
9385         * scripts/haveversions.awk: New file.
9386         * Makerules ($(common-objpfx)Versions.def)
9387         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9388         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9389         Move rules ...
9390         * Makeconfig ($(common-objpfx)Versions.def)
9391         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9392         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9393         ... here.
9394         ($(common-objpfx)Versions.mk): New rule.  Include it.
9395         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9396         Emit error if build-obsolete-nsl = yes.
9397         * manual/install.texi (Configuring and compiling): Describe
9398         --enable-obsolete-nsl as unavaiable after version 2.28.
9399         * INSTALL: Regenerate.
9400
9401 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9402
9403         * NEWS: Add note about new TLE support on powerpc64le.
9404         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9405         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9406         __ununsed1.
9407         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9408         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9409         * sysdeps/powerpc/powerpc32/sysdep.h,
9410         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9411         ABORT_TRANSACTION): Remove macros.
9412         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9413         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9414         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9416         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9417         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9418         usage.
9419         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9420
9421 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
9422
9423         [BZ #10425]
9424         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9425         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9426         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9427         which is the same as in it_IT.
9428         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9429         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9430
9431 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
9432
9433         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9434         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9435         using MATH_REDIRECT.
9436         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9437         header inclusion.
9438         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9439         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9440         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9441         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9442         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9443         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9448         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9449         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9450         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9451         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9452         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9453         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9454         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9455         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9456         (ceil): Redirect to __ceil.
9457         (floor): Redirect to __floor.
9458         (trunc): Redirect to __trunc.
9459         (__truncl): Call trunc instead of __trunc.
9460         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9461         Remove macro.
9462         [_ARCH_PWR5X] (__truncf): Likewise.
9463         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9464         trunc functions instead of __trunc variants.
9465         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9466         Likewise.
9467         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9468         Likewise.
9469         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9470         Likewise.
9471         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9472         Likewise.
9473
9474         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9475         [__i586__ || __pentium__].
9476         [__i486__]: Handle explicitly.
9477         (HAS_CPUID): Define to 1 if above macros are undefined.
9478         (HAS_I586): Likewise.
9479         (HAS_I686): Likewise.
9480
9481 2018-09-20  Florian Weimer  <fweimer@redhat.com>
9482
9483         * misc/tst-gethostid.c: New file.
9484         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9485         (tst-gethostid): Link with -ldl.
9486
9487 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
9488
9489         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9490         value from gethostbyname_r.
9491
9492 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
9493
9494         * stdlib/tst-setcontext9.c (f1): Rename to...
9495         (f1a): ... this.
9496         (f1b): New function implementing lower half of f1 in alternate stack.
9497
9498 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9499
9500         Fix mktime localtime offset confusion
9501         [BZ #23603]
9502         * include/time.h (__mktime_internal): The localtime offset is now
9503         of type long int instead of time_t.  This is the longstanding type
9504         in glibc, and it is more than enough to represent difference
9505         between localtime and gmtime even if it is 32 bits and time_t is
9506         64.  Changing it now will let us avoid an unnecessary change when
9507         time_t is widened to 64 bits on 32-bit platforms.
9508         * time/mktime-internal.h (mktime_offset_t): Now long int.
9509
9510         Merge mktime, timegm from upstream Gnulib
9511         [BZ #23603][BZ #16346]
9512         This fixes some obscure problems with integer overflow.
9513         Although it looks scary, it is almost all a byte-for-byte copy
9514         from Gnulib, and the Gnulib code has been tested reasonably well.
9515         * include/intprops.h: New file, copied from Gnulib.
9516         * include/verify.h, time/mktime-internal.h:
9517         New tiny files, simplified from Gnulib.
9518         * time/mktime.c: Copy from Gnulib.  This has the following changes:
9519         Do not include config.h if DEBUG_MKTIME is nonzero.
9520         Include stdbool.h, intprops.h, verify.h.
9521         Include string.h only if needed.
9522         Include stdlib.h on MS-Windows.
9523         Include mktime-internal.h.
9524         (DEBUG_MKTIME): Default to 0, and simplify later uses.
9525         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9526         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9527         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9528         simplify later conditionals; default the others to zero.  Use
9529         these conditionals to express only the code needed on the current
9530         platform.  In uses of these conditionals, explicitly spell out how
9531         _LIBC affects things, so it’s easier to review from a glibc
9532         viewpoint.
9533         (WRAPV): Remove; no longer needed now that we have
9534         systematic overflow checking.
9535         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9536         compartmentalize tzset issues.  Move system-dependent tzsettish
9537         code here from mktime.
9538         (verify): Remove; now done by verify.h.  All uses changed.
9539         (long_int): Use a more-conservative definition, to avoid
9540         integer overflow.
9541         (SHR): Remove, replacing with ...
9542         (shr): New function, which means we needn’t worry about side
9543         effects in args, and conversion analysis is simpler.
9544         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9545         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9546         (time_t_avg, time_t_add_ok): Remove.
9547         (mktime_min, mktime_max): New constants.
9548         (leapyear, isdst_differ): Use bool for booleans.
9549         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9550         Use long_int, not time_t, for mktime differences.
9551         (long_int_avg): New function, replacing time_t_avg.
9552         INT_ADD_WRAPV replaces time_t_add_ok.
9553         (guess_time_tm): 6th arg is now long_int, not time_t const *.
9554         All uses changed.
9555         (convert_time): New function.
9556         (ranged_convert): Use it.
9557         (__mktime_internal): Last arg now points to mktime_offset_t, not
9558         time_t.  All uses changed.  This is a no-op on glibc, where
9559         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
9560         offset guess.  Directly check for integer overflow instead of
9561         using a heuristic that works only 99.9...% of the time.
9562         Access *OFFSET only once, to avoid an unlikely race if the
9563         compiler delays a load and if this cascades into a signed integer
9564         overflow.
9565         (mktime): Move tzsettish code to my_tzset, and move
9566         localtime_offset to within mktime so that it doesn’t
9567         need a separate ifdef.
9568         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9569         instead of localtime.
9570         * time/timegm.c: Copy from Gnulib.  This has the following changes:
9571         Include mktime-internal.h.
9572         [!_LIBC]: Include config.h and time.h.  Do not include
9573         timegm.h or time_r.h.  Make __mktime_internal a macro,
9574         and include mktime-internal.h to get its declaration.
9575         (timegm): Temporary is now mktime_offset_t, not time_t.
9576         This affects only Gnulib.
9577
9578 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9579
9580         [BZ #23637]
9581         * string/test-strstr.c (pr23637): New function.
9582         (test_main): Add tests with longer needles.
9583         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9584         * string/strstr.c (AVAILABLE): Likewise.
9585
9586 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9587
9588         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9589
9590 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9591
9592         * NEWS: Mention pow improvements.
9593         * math/Makefile (type-double-routines): Add e_pow_log_data.
9594         * sysdeps/generic/math_private.h (__exp1): Remove.
9595         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9596         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9597         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9598         contraction.
9599         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9600         (exp_inline): Remove.
9601         (__ieee754_exp): Only single double input is handled.
9602         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9603         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9604         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9605         (__pow_log_data): Define.
9606         * sysdeps/ieee754/dbl-64/upow.h: Remove.
9607         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9608         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9609         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9610         contraction.
9611         (CFLAGS-e_pow-fma4.c): Likewise.
9612
9613 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         Simplify tzfile fstat failure code
9616         [BZ #21716]
9617         * time/tzfile.c (__tzfile_read): Simplify slightly.
9618
9619         Fix tzfile low-memory assertion failure
9620         [BZ #21716]
9621         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9622         when registering time zone abbreviations.
9623
9624 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
9625
9626         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9627         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9628         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9629         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9630         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9631         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9632         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9633         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9634         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9635
9636         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9637         __ceil.
9638         (__ceill): Call ceil instead of __ceil.
9639         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9640         __floor.
9641         (__floorl): Call floor instead of __floor.
9642
9643 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
9644
9645         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9646         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9647         using MATH_REDIRECT.
9648         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9649         header inclusion.
9650         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9651         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9652         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9653         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9654         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9655         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9656         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9657         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9662         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9663         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9664         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9665         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9666         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9667         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9668         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9669         Remove macro.
9670         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9671         functions instead of __ceil variants.
9672         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9673         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9674         Likewise.
9675         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9676         Likewise.
9677         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9678         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9679         Likewise.
9680         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9681         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9682
9683         [BZ #21286]
9684         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9685         constant.
9686         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9687         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9688         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9689         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9690         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9691         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9692         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9693         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9694         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9695         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9696         (ILL_BADIADDR): Remove constant.
9697         (TRAP_BRANCH): Likewise.
9698         (TRAP_HWBKPT): Likewise.
9699
9700 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
9701
9702         [BZ #23656]
9703         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9704         Remove [_MIPS_SIM = _ABIN32] conditional case.
9705         (struct elf_prpsinfo): Likewise.
9706
9707         [BZ #23649]
9708         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9709         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9710         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9711         Likewise.
9712         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9713         elf_prpsinfo): Likewise.
9714         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9715         elf_prpsinfo): Likewise.
9716         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9717         Likewise.
9718
9719         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9720         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9721         using MATH_REDIRECT.
9722         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9723         header inclusion.
9724         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9725         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9726         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9727         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9728         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9729         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9730         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9731         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9732         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9733         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9734         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9735         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9736         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9737         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9738         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9739         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9740         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9741         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9742         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9745         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9746         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9747         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9748         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9749         * sysdeps/x86_64/fpu/math_private.h: Remove file.
9750         * math/e_scalb.c (invalid_fn): Use rint functions instead of
9751         __rint variants.
9752         * math/e_scalbf.c (invalid_fn): Likewise.
9753         * math/e_scalbl.c (invalid_fn): Likewise.
9754         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9755         Likewise.
9756         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9757         Likewise.
9758         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9759         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9760         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9761         Likewise.
9762         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9763         Likewise.
9764         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9765         Likewise.
9766         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9767         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9768
9769         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9770         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9771         New macro.
9772         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9773         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9774         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9775         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9776         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9777         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9778         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9779         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9780         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9781         && !NO_MATH_REDIRECT] (floor): Likewise.
9782         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9783         header inclusion.
9784         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9785         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9786         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9787         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9788         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9789         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9791         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9796         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9797         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9798         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9799         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9800         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9801         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9802         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9803         Remove macro.
9804         [_ARCH_PWR5X] (__floorf): Likewise.
9805         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9806         inline function.
9807         [__SSE4_1__] (__floorf): Likewise.
9808         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9809         instead of __floor variants.
9810         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9811         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9812         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9813         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9814         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9815         * math/w_tgamma_compat.c (__tgamma): Likewise.
9816         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9817         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9818         * math/w_tgammal_compat.c (__tgammal): Likewise.
9819         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9820         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9821         Likewise.
9822         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9823         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9824         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9825         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9826         Likewise.
9827         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9828         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9829         Likewise.
9830         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9831         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9832         Likewise.
9833         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9834         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9835         Likewise.
9836         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9837         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9838         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9839         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9840         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9841         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9842
9843 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
9844
9845         * elf/Makefile (modules-names-tests): New variable.
9846
9847 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9848
9849         * NEWS: Mention log2 improvements.
9850         * math/Makefile (type-double-routines): Add e_log2_data.
9851         * sysdeps/i386/fpu/e_log2_data.c: New file.
9852         * sysdeps/ia64/fpu/e_log2_data.c: New file.
9853         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9854         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9855         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9856         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9857         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9858
9859 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9860
9861         * NEWS: Mention log improvement.
9862         * math/Makefile (type-double-routines): Add e_log_data.
9863         * sysdeps/i386/fpu/e_log_data.c: New file.
9864         * sysdeps/ia64/fpu/e_log_data.c: New file.
9865         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9866         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9867         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9868         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9869         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9870         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9871
9872 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
9873             Xuepeng Guo  <xuepeng.guo@intel.com>
9874
9875         [BZ #23606]
9876         * sysdeps/i386/start.S: Include <sysdep.h>
9877         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9878         enabled.  Add cfi_undefined (eip).
9879
9880 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
9881
9882         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9883         (MOVQ): Likewise.
9884         (EXTRACT_WORDS64): Likewise.
9885         (INSERT_WORDS64): Likewise.
9886         (GET_FLOAT_WORD): Likewise.
9887         (SET_FLOAT_WORD): Likewise.
9888
9889         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9890         argument.
9891         (Config.build_gcc): Use --disable-libsanitizer for first GCC
9892         build, but not for second build if --full-gcc.  Use
9893         --enable-languages=all for second build if --full-gcc.
9894         (get_parser): Add --full-gcc option.
9895         (main): Update call to Context.
9896
9897 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
9898
9899         [BZ #10797]
9900         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9901         Single Quotation Mark).
9902         (thousands_sep): Likewise.
9903         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9904         * localedata/locales/it_IT (thousands_sep): Use ".".
9905         (grouping): Use "3;3".
9906
9907 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
9908
9909         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9910         x86_64 and i686 configs using --enable-obsolete-rpc
9911         --enable-obsolete-nsl.
9912
9913 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9914
9915         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9916
9917 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9918
9919         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9920         Increment size of new_argv by one.
9921
9922 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
9923
9924         [BZ #17426]
9925         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9926         * localedata/locales/ar_IN (d_fmt): Likewise.
9927         * localedata/locales/bhb_IN (d_fmt): Likewise.
9928         * localedata/locales/bho_IN (d_fmt): Likewise.
9929         * localedata/locales/bn_BD (d_fmt): Likewise.
9930         * localedata/locales/bn_IN (d_fmt): Likewise.
9931         * localedata/locales/doi_IN (d_fmt): Likewise.
9932         * localedata/locales/gu_IN (d_fmt): Likewise.
9933         * localedata/locales/hi_IN (d_fmt): Likewise.
9934         * localedata/locales/hne_IN (d_fmt): Likewise.
9935         * localedata/locales/kn_IN (d_fmt): Likewise.
9936         * localedata/locales/mag_IN (d_fmt): Likewise.
9937         * localedata/locales/mai_IN (d_fmt): Likewise.
9938         * localedata/locales/mjw_IN (d_fmt): Likewise.
9939         * localedata/locales/ml_IN (d_fmt): Likewise.
9940         * localedata/locales/mni_IN (d_fmt): Likewise.
9941         * localedata/locales/mr_IN (d_fmt): Likewise.
9942         * localedata/locales/pa_IN (d_fmt): Likewise.
9943         * localedata/locales/raj_IN (d_fmt): Likewise.
9944         * localedata/locales/sat_IN (d_fmt): Likewise.
9945         * localedata/locales/sd_IN (d_fmt): Likewise.
9946         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9947         * localedata/locales/ta_IN (d_fmt): Likewise.
9948         * localedata/locales/ta_LK (d_fmt): Likewise.
9949         * localedata/locales/tcy_IN (d_fmt): Likewise.
9950         * localedata/locales/ur_IN (d_fmt): Likewise.
9951
9952         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9953         * localedata/locales/ks_IN (d_fmt): Likewise.
9954         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9955
9956         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9957         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9958         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9959         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9960
9961 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9962
9963         * NEWS: Mention exp and exp2 improvements.
9964         * math/Makefile (libm-support): Remove t_exp.
9965         (type-double-routines): Add math_err and e_exp_data.
9966         * sysdeps/aarch64/libm-test-ulps: Update.
9967         * sysdeps/arm/libm-test-ulps: Update.
9968         * sysdeps/i386/fpu/e_exp_data.c: New file.
9969         * sysdeps/i386/fpu/math_err.c: New file.
9970         * sysdeps/i386/fpu/t_exp.c: Remove.
9971         * sysdeps/ia64/fpu/e_exp_data.c: New file.
9972         * sysdeps/ia64/fpu/math_err.c: New file.
9973         * sysdeps/ia64/fpu/t_exp.c: Remove.
9974         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9975         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9976         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9977         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9978         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9979         * sysdeps/ieee754/dbl-64/math_config.h: New file.
9980         * sysdeps/ieee754/dbl-64/math_err.c: New file.
9981         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9982         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9983         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9984         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9985         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9986         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9987         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9989         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9990
9991 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
9992
9993         * sysdeps/alpha/fpu/math_private.h: Remove.
9994
9995         * sysdeps/generic/math_private.h
9996         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9997         Move this inline function ....
9998         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9999         * include/math.h [!_ISOMAC]: To here....
10000
10001 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
10002
10003         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10004         code ....
10005         [!FE_HAVE_ROUNDING_MODES]: And this code ....
10006         * include/fenv.h [!_ISOMAC]: ... to here.
10007         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10008         (feraiseexcept): Likewise.
10009         * math/fromfp.h: Do not include <fenv_private.h>.
10010         * math/s_cexp_template.c: Likewise.
10011         * math/s_csin_template.c: Likewise.
10012         * math/s_csinh_template.c: Likewise.
10013         * math/s_ctan_template.c: Likewise.
10014         * math/s_ctanh_template.c: Likewise.
10015         * math/s_iseqsig_template.c: Likewise.
10016         * math/w_acos_compat.c: Likewise.
10017         * math/w_acosf_compat.c: Likewise.
10018         * math/w_acosl_compat.c: Likewise.
10019         * math/w_asin_compat.c: Likewise.
10020         * math/w_asinf_compat.c: Likewise.
10021         * math/w_asinl_compat.c: Likewise.
10022         * math/w_j0_compat.c: Likewise.
10023         * math/w_j0f_compat.c: Likewise.
10024         * math/w_j0l_compat.c: Likewise.
10025         * math/w_j1_compat.c: Likewise.
10026         * math/w_j1f_compat.c: Likewise.
10027         * math/w_j1l_compat.c: Likewise.
10028         * math/w_jn_compat.c: Likewise.
10029         * math/w_jnf_compat.c: Likewise.
10030         * math/w_log10_compat.c: Likewise.
10031         * math/w_log10f_compat.c: Likewise.
10032         * math/w_log10l_compat.c: Likewise.
10033         * math/w_log2_compat.c: Likewise.
10034         * math/w_log2f_compat.c: Likewise.
10035         * math/w_log2l_compat.c: Likewise.
10036         * math/w_log_compat.c: Likewise.
10037         * math/w_logf_compat.c: Likewise.
10038         * math/w_logl_compat.c: Likewise.
10039         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10040         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10041         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10042         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10043         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10044         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10045         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10046         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10047         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10048         * sysdeps/ieee754/k_standardl.c: Likewise.
10049         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10050         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10051         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10052         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10053         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10054         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10055         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10056         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10057         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10058         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10059         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10060         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10061         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10062         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10063         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10064         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10065         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10066         * math/w_ilogb_template.c: Include <fenv.h> instead of
10067         <fenv_private.h>.
10068         * math/w_llogb_template.c: Likewise.
10069         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10070         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10071
10072 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
10073
10074         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10075         * math/fromfp.h: Include <fenv_private.h>.
10076         * math/math-narrow.h: Likewise.
10077         * math/s_cexp_template.c: Likewise.
10078         * math/s_csin_template.c: Likewise.
10079         * math/s_csinh_template.c: Likewise.
10080         * math/s_ctan_template.c: Likewise.
10081         * math/s_ctanh_template.c: Likewise.
10082         * math/s_iseqsig_template.c: Likewise.
10083         * math/w_acos_compat.c: Likewise.
10084         * math/w_acosf_compat.c: Likewise.
10085         * math/w_acosl_compat.c: Likewise.
10086         * math/w_asin_compat.c: Likewise.
10087         * math/w_asinf_compat.c: Likewise.
10088         * math/w_asinl_compat.c: Likewise.
10089         * math/w_ilogb_template.c: Likewise.
10090         * math/w_j0_compat.c: Likewise.
10091         * math/w_j0f_compat.c: Likewise.
10092         * math/w_j0l_compat.c: Likewise.
10093         * math/w_j1_compat.c: Likewise.
10094         * math/w_j1f_compat.c: Likewise.
10095         * math/w_j1l_compat.c: Likewise.
10096         * math/w_jn_compat.c: Likewise.
10097         * math/w_jnf_compat.c: Likewise.
10098         * math/w_llogb_template.c: Likewise.
10099         * math/w_log10_compat.c: Likewise.
10100         * math/w_log10f_compat.c: Likewise.
10101         * math/w_log10l_compat.c: Likewise.
10102         * math/w_log2_compat.c: Likewise.
10103         * math/w_log2f_compat.c: Likewise.
10104         * math/w_log2l_compat.c: Likewise.
10105         * math/w_log_compat.c: Likewise.
10106         * math/w_logf_compat.c: Likewise.
10107         * math/w_logl_compat.c: Likewise.
10108         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10109         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10110         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10111         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10112         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10113         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10114         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10115         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10116         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10117         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10118         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10119         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10120         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10121         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10122         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10123         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10124         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10125         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10126         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10127         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10128         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10129         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10130         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10131         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10132         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10133         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10134         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10135         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10136         * sysdeps/ieee754/float128/float128_private.h: Likewise.
10137         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10138         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10139         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10140         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10141         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10142         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10143         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10144         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10145         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10146         * sysdeps/ieee754/k_standardl.c: Likewise.
10147         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10148         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10149         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10150         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10151         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10152         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10153         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10154         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10155         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10156         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10157         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10158         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10159         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10160         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10161         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10162         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10163         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10164         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10165         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10166         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10167         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10168         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10169         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10170         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10171         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10172         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10173         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10174         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10175         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10176         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10177         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10178         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10179         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10180         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10181         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10182         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10183         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10184         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10185         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10186         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10187         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10188         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10189         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10190         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10191         * sysdeps/riscv/rvd/s_finite.c: Likewise.
10192         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10193         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10194         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10195         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10196         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10197         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10198         * sysdeps/riscv/rvf/fegetround.c: Likewise.
10199         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10200         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10201         * sysdeps/riscv/rvf/fesetround.c: Likewise.
10202         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10203         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10204         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10205         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10206         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10207         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10208         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10209         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10210         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10211         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10212         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10213         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10214         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10215         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10216         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10217         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10218
10219 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10220
10221         [BZ #20271]
10222         * include/stdio.h (__libc_fatal): Mention newline in comment.
10223         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10224         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10225         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10226         * nss/nsswitch.c (__nss_next2): Likewise.
10227         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10228         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10229         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10230         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10231         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10232         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10233         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10234         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10235         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10236         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10237         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10238         * sysdeps/unix/sysv/linux/netlink_assert_response.c
10239         (__netlink_assert_response): Likewise.
10240
10241 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
10242
10243         * conform/glibcconform.py: New file.
10244         * conform/list-header-symbols.py: Likewise.
10245         * conform/list-header-symbols.pl: Remove.
10246         * conform/Makefile (tests-special): Only add linknamespace tests
10247         if [PYTHON].
10248         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10249
10250 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
10251
10252         [BZ #23597]
10253         * support/Makefile (libsupport-routines): Add
10254         support_copy_file_range and xcopy_file_range.
10255         * support/support.h: Include <sys/types.h>.
10256         (support_copy_file_range): New prototype.
10257         * support/support_copy_file_range.c: New file.  Copied and
10258         modified from io/copy_file_range-compat.c.
10259         * support/test-container.c (copy_one_file): Call xcopy_file_rang
10260         instead of copy_file_range.
10261         * support/xcopy_file_range.c: New file.
10262         * support/xunistd.h (xcopy_file_range): New prototype.
10263
10264 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
10265
10266         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10267         xpthread_create and xpthread_join.
10268
10269 2018-08-30  Florian Weimer  <fweimer@redhat.com>
10270
10271         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10272
10273 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
10274
10275         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10276         if malloc fails.
10277
10278 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
10279
10280         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10281         and minus_oflow as non-finite.
10282
10283 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
10284
10285         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
10286         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
10287         moved to fenv_private.h except for ...
10288         (TOINT_INTRINSICS): Kept in math_private.h.
10289         (roundtoint): Likewise.
10290         (converttoint): Likewise.
10291         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10292         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10293         * sysdeps/arm/math_private.h: Remove.
10294         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
10295         ....
10296         * sysdeps/generic/math_private.h: ... this file.  Include
10297         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
10298         Include <fenv_private.h>.  Remove functions and macros moved to
10299         fenv_private.h.
10300         * sysdeps/i386/fpu/math_private.h: Remove.
10301         * sysdeps/mips/math_private.h: Move to ....
10302         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
10303         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
10304         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
10305         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10306         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10307         * sysdeps/powerpc/fpu/math_private.h: Do not include
10308         <fenv_private.h>.
10309         * sysdeps/riscv/rvf/math_private.h: Move to ....
10310         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
10311         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
10312         <fenv_private.h>.
10313         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10314         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
10315         * sysdeps/sparc/fpu/math_private.h: Remove.
10316         * sysdeps/i386/fpu/fenv_private.h: Move to ....
10317         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
10318         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
10319         <fenv_private.h>.
10320         * sysdeps/x86_64/fpu/math_private.h: Do not include
10321         <sysdeps/i386/fpu/fenv_private.h>.
10322
10323 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10324
10325         [BZ #23578]
10326         * posix/tst-regcomp-truncated.c: New file.
10327         * posix/Makefile (tests): Add it.
10328         (tst-regcomp-truncated.out): Depend on generated locales.
10329
10330 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10331
10332         * support/test-container.c (main): Treat unshare failure with
10333         EPERM as an unsupported test.
10334
10335 2018-08-28  Florian Weimer  <fweimer@redhat.com>
10336
10337         [BZ #23520]
10338         nscd: Fix use-after-free in addgetnetgrentX and its callers.
10339         * nscd/netgroupcache.c
10340         (addgetnetgrentX): Add tofreep parameter.  Do not free
10341         heap-allocated buffer.
10342         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10343         (addgetnetgrentX_ignore): New function.
10344         (addgetnetgrent): Call it.
10345         (readdgetnetgrent): Likewise.
10346
10347 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10348
10349         * string/memmem.c: Use memcmp for first match.
10350
10351 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
10352
10353         [BZ #17426]
10354         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10355
10356 2018-08-27  DJ Delorie  <dj@redhat.com>
10357
10358         * support/Makefile (others): Don't list programs explicitly as a
10359         dependency of "others".
10360
10361 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * sysdeps/generic/math-tests-trap-force.h: New file.
10364         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10365         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10366         * sysdeps/powerpc/math-tests.h: Remove file.
10367         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10368
10369 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
10370             Torvald Riegel  <triegel@redhat.com>
10371
10372         [BZ #23538]
10373         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10374         Update r to include the set wake-request flag if waiters are
10375         remaining after spinning.
10376
10377 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10378
10379         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10380
10381 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10382
10383         [BZ #23578]
10384         regex: fix uninitialized memory access
10385         I introduced this bug into gnulib in commit
10386         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10387         eventually it was merged into glibc.  The bug was found by
10388         project-repo <bugs@feusi.co> and reported here:
10389         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10390         Diagnosis and draft fix reported by Assaf Gordon here:
10391         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10392         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10393         * posix/regex_internal.c (build_wcs_upper_buffer):
10394         Fix bug when mbrtowc returns 0.
10395
10396 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
10397
10398         * po/be.po: Update translation.
10399
10400 2018-08-24  DJ Delorie  <dj@delorie.com>
10401
10402         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10403         $(libunwind).
10404
10405 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
10406
10407         [BZ #23400]
10408         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10409         create temporary files in source tree.
10410
10411 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
10412
10413         * sysdeps/generic/math-tests-trap.h: New file.
10414         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10415         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10416         * sysdeps/aarch64/math-tests.h: Remove file.
10417         * sysdeps/arm/math-tests.h: Likewise.
10418         * sysdeps/riscv/math-tests.h: Likewise.
10419         * sysdeps/aarch64/math-tests-trap.h: New file.
10420         * sysdeps/arm/math-tests-trap.h: Likewise.
10421         * sysdeps/riscv/math-tests-trap.h: Likewise.
10422
10423 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
10424
10425         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10426         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10427         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10428         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10429         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10430         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10431         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10432         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10433         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10434         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10435         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10436         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10437         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10438         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10439         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10440         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10441         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10442         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10443
10444 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
10445
10446         * sysdeps/generic/math-tests-exceptions.h: New file.
10447         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10448         (EXCEPTION_TESTS_float): Do not define here.
10449         (EXCEPTION_TESTS_double): Likewise.
10450         (EXCEPTION_TESTS_long_double): Likewise.
10451         (EXCEPTION_TESTS_float128): Likewise.
10452         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10453         Likewise.
10454         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10455         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10456         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10457         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10458         * sysdeps/mips/math-tests.h: Likewise.
10459         * sysdeps/nios2/math-tests.h: Likewise.
10460         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10461         (EXCEPTION_TESTS_float): Do not define here.
10462         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10463         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10464         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10465
10466 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10467
10468         * NEWS: Move optimized sinf entry to 2.29.
10469
10470 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10471
10472         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10473
10474 2018-08-22  DJ Delorie  <dj@redhat.com>
10475
10476         * Makefile (testroot.pristine): New rules to initialize the
10477         test-in-container "testroot".
10478         * Makerules (all-testsuite): Add tests-container.
10479         * Rules (tests-expected): Add tests-container.
10480         (binaries-all-tests): Likewise.
10481         (tests-container): New, run these tests in the testroot container.
10482         * support/Makefile (others): Add *-container, support_paths.c,
10483         xmkdirp, and links-dso-program.
10484         * support/links-dso-program-c.c: New.
10485         * support/links-dso-program.cc: New.
10486         * support/test-container.c: New.
10487         * support/shell-container.c: New.
10488         * support/echo-container.c: New.
10489         * support/true-container.c: New.
10490         * support/xmkdirp.c: New.
10491         * support/xsymlink.c: New.
10492         * support/support_paths.c: New.
10493         * support/support.h: Add support paths prototypes.
10494         * support/xunistd.h: Add xmkdirp () and xsymlink ().
10495
10496         * nss/tst-nss-test3.c: Convert to test-in-container.
10497         * nss/tst-nss-test3.root/: New.
10498
10499 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10500
10501         regex: port Gnulib code to z/OS POSIX environment
10502         Problem reported by Arnold Robbins in:
10503         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10504         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10505         Undef.
10506
10507 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
10508
10509         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10510         (ROUNDING_TESTS_double): Remove.
10511         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10512         (ROUNDING_TESTS_double): Remove.
10513         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10514         (ROUNDING_TESTS_double): Remove.
10515         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10516         (ROUNDING_TESTS_float): Remove.
10517         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10518         (ROUNDING_TESTS_float): Remove.
10519         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10520         (ROUNDING_TESTS_float): Remove.
10521         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10522         !TEST_MATHVEC here.
10523         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10524         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10525
10526         * sysdeps/generic/math-tests-rounding.h: New file.
10527         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10528         (ROUNDING_TESTS_float): Do not define here.
10529         (ROUNDING_TESTS_double): Likewise.
10530         (ROUNDING_TESTS_long_double): Likewise.
10531         (ROUNDING_TESTS_float128): Likewise.
10532         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10533         (ROUNDING_TESTS_double): Undefine before defining.
10534         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10535         (ROUNDING_TESTS_double): Undefine before defining.
10536         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10537         (ROUNDING_TESTS_double): Undefine before defining.
10538         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10539         (ROUNDING_TESTS_float): Undefine before defining.
10540         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10541         (ROUNDING_TESTS_float): Undefine before defining.
10542         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10543         (ROUNDING_TESTS_float): Undefine before defining.
10544         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10545         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10546         not define here.
10547         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10548         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10549         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10550         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10551         (ROUNDING_TESTS_float): Do not define here.
10552         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10553         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10554         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10555         (ROUNDING_TESTS_float): Likewise.
10556         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10557         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10558         * sysdeps/mips/math-tests.h [__mips_soft_float]
10559         (ROUNDING_TESTS_float): Likewise.
10560         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10561         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10562         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10563         (ROUNDING_TESTS_double): Likewise.
10564         (ROUNDING_TESTS_long_double): Likewise.
10565
10566 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
10567
10568         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10569         (PF_XDP): New macro.
10570         (AF_XDP): New macro.
10571         (SOL_XDP): New macro.
10572
10573 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
10574
10575         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10576         (TCP_INQ): Likewise.
10577         (TCP_CM_INQ): Likewise.
10578         (TCP_REPAIR_ON): Likewise.
10579         (TCP_REPAIR_OFF): Likewise.
10580         (TCP_REPAIR_OFF_NO_WP): Likewise.
10581         (struct tcp_zerocopy_receive): New type.
10582
10583 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10584
10585         * support/support.h (support_descriptor_supports_holes): Declare.
10586         * support/Makefile (libsupport-routines): Add
10587         support_descriptor_supports_holes.
10588         * support/support_descriptor_supports_holes.c: New file.
10589         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10590         and stop testing if holes are not supported.
10591         * io/test-lfs.c (do_prepare): Likewise.
10592         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10593         Likewise.
10594         * timezone/tst-tzset.c (create_tz_file): Likewise.
10595         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10596         variable.
10597         (do_prepare): Set it.
10598         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10599
10600 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10601
10602         [BZ #17248]
10603         * Makeconfig (+cflags): Do not sort (and deduplicate).
10604
10605 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10606
10607         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10608         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10609
10610 2018-08-20  Florian Weimer  <fweimer@redhat.com>
10611
10612         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10613         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
10614
10615 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
10616
10617         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10618         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10619         and ssi_arch members.
10620
10621         * elf/elf.c (NT_VMCOREDD): New macro.
10622         (AT_MINSIGSTKSZ): Likewise.
10623
10624 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10625
10626         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10627         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10628         s_cosf-ppc64 and s_cosf-power8.
10629         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10630         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10631         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10632         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10639         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10640         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10641
10642 2018-08-17  Florian Weimer  <fweimer@redhat.com>
10643
10644         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10645
10646 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
10647
10648         * malloc/malloc.c (_int_malloc): Additional binning code checks.
10649
10650 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10651
10652         * configure.ac: Add --with-nonshared-cflags option.
10653         * config.make.in (extra-nonshared-cflags): Set variable.
10654         * Makeconfig (CFLAGS-.oS): Use it.
10655         * manual/install.texi (Configuring and compiling): Document
10656         --with-nonshared-cflags.
10657         * configure: Regenerate.
10658         * INSTALL: Likewise.
10659
10660 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10661
10662         * Makeconfig (ASFLAGS): Always append required assembler flags.
10663
10664 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
10665
10666         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10667         (malloc_consolidate): Likewise.
10668
10669 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
10670
10671         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10672
10673 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10674
10675         * benchtests/bench-strlen.c (do_test): Allocate buffers before
10676         every strlen call.
10677
10678         * benchtests/bench-strlen.c: Print performance numbers in json.
10679
10680 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10681
10682         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10683         (sysdep_routines): Build strcmp-power9 and strncmp-power9
10684         only for little endian.
10685         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10686         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10687         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10688         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10689         Add check for little endian.
10690         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10691         (__strcmp_power9): Add check for little endian.
10692         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10693         Add check for little endian.
10694         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10695         (__strncmp_power9): Add check for little endian.
10696         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10697         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10698         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10699         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10700         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10701
10702 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10703
10704         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10705         [!STRLEN](STRLEN): Set to __strlen.
10706         * sysdeps/aarch64/multiarch/strlen.c: New file.
10707         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10708         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10709         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10710         (__libc_ifunc_impl_list): Add strlen.
10711         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10712         strlen_generic and strlen_asimd.
10713
10714 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10715
10716         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10717         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10718         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10719
10720 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10721
10722         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10723
10724 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10725
10726         [BZ #23519]
10727         * include/stdio.h (__vfxprintf): Declare.
10728         * stdio-common/fxprintf.c (__vfxprintf): New function.
10729         (__fxprintf): Call it.
10730         * misc/err.c (convert_and_print): Remove function.
10731         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10732         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10733         * misc/Makefile (tests): Add tst-warn-wide.
10734         * misc/tst-warn-wide.c: New file.
10735
10736 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
10737             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10738
10739         * NEWS: Mention sinf, cosf, sincosf.
10740         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10741         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10742         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10743         constants rather than including generic sincosf.h.
10744         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10745         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10746         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10747         (reduced_cos): Remove.
10748         (sinf_poly): New function.
10749         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10750
10751 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10752
10753         [BZ #23521]
10754         [BZ #23522]
10755         * nss/nss_files/files-alias.c (get_next_alias): During :include:
10756         processing, bail out if no room, and close the stream before
10757         returning ERANGE.
10758         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10759         (tst-nss-files-alias-leak): Link with libdl.
10760         (tst-nss-files-alias-leak.out): Depend on nss_files.
10761
10762         * nss/tst-nss-files-alias-leak.c: New file.
10763
10764 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10765
10766         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10767         server_user, stat_user.
10768
10769 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
10770
10771         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10772         version to 4.18.
10773         (io_pgetevents): New syscall.
10774         (rseq): Likewise.
10775
10776         * manual/install.texi (Configuring and compiling): Do not list
10777         tools used for testing pretty printers here.
10778         (Tools for Compilation): List Python, PExpect and GDB here.
10779         Update descriptions of uses of Perl and Python.
10780         * INSTALL: Regenerate.
10781
10782         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10783         version to 4.18.
10784
10785 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10786
10787         * misc/error.c (error): Add missing va_end call.
10788         (error_at_line): Likewise.
10789
10790 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10791
10792         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10793
10794 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10795
10796         * benchtests/scripts/benchout.schema.json (properties): Add
10797         new properties.
10798
10799         * benchtests/bench-skeleton.c (main): Add duration and
10800         iterations attributes.
10801
10802 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         regex: Gnulib unibyte RRI uses bytes not chars
10805         Adjust the non-glibc code to agree with what Gawk needs for
10806         rational range interpretation (RRI) for regular expression ranges.
10807         In unibyte locales, Gawk wants ranges to use the underlying byte
10808         rather than the character code point.  This change does not affect
10809         glibc proper.
10810         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10811         In unibyte locales, use the byte value rather than
10812         running it through btowc.
10813
10814 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * sysdeps/generic/math-tests-snan.h: New file.
10817         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10818         (SNAN_TESTS_float): Do not define here.
10819         (SNAN_TESTS_double): Likewise.
10820         (SNAN_TESTS_long_double): Likewise.
10821         (SNAN_TESTS_float128): Likewise.
10822         * sysdeps/i386/fpu/math-tests-snan.h: New file.
10823         * sysdeps/i386/fpu/math-tests.h: Remove file.
10824         * sysdeps/ia64/math-tests-snan.h: New file.
10825         * sysdeps/ia64/math-tests.h: Remove file.
10826         * sysdeps/x86/math-tests.h: Likewise.
10827         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10828
10829 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10830             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10831
10832         * math/Makefile: Add s_sincosf_data.c.
10833         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10834         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10835         (sincosf_poly): Likewise.
10836         (reduce_small): Likewise.
10837         (reduce_large): Likewise.
10838         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10839         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10840         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10841         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10842
10843 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10844             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10845
10846         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10847         (converttoint): Use lround.
10848         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10849         document the semantics when TOINT_INTRINSICS is set.
10850         (converttoint): Likewise.
10851         (TOINT_RINT): Remove.
10852         (TOINT_SHIFT): Remove.
10853         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10854         path.
10855
10856 2018-08-10  Florian Weimer  <fweimer@redhat.com>
10857
10858         [BZ #23497]
10859         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10860         function.
10861         (__old_getdents64): Use getdents64.  Convert entries without
10862         moving them.
10863         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10864         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10865         tst-readdir64-compat.
10866
10867 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10868
10869         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10870         Fix unwind.
10871
10872 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10873
10874         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10875         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10876         code to s390x-mcount.h and #include it.
10877         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10878         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10879         (__fentry__): Add.
10880
10881 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10882
10883         * stdlib/Versions: Remove __fentry__.
10884         * sysdeps/i386/Versions: Add __fentry__.
10885         * sysdeps/x86_64/Versions: Add __fentry__.
10886
10887 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10888
10889         * sysdeps/s390/Makefile: Register the new tests.
10890         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10891         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10892         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10893         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10894         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10895         * sysdeps/s390/tst-dl-runtime.c: New file.
10896
10897 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10898
10899         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10900         Do not clobber R0.
10901
10902 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10903
10904         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10905         Do not clobber R0.
10906
10907 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10908
10909         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10910         Do not clobber R0.
10911
10912 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10913
10914         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10915         Do not clobber R0.
10916
10917 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10918
10919         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10920         Use symbolic offsets for stack variables.
10921
10922 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10923
10924         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10925         Use symbolic offsets for stack variables.
10926
10927 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10928
10929         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10930         Use symbolic offsets for stack variables.
10931
10932 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10933
10934         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10935         Use symbolic offsets for stack variables.
10936
10937 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
10938
10939         * math/gen-libm-test.py: New file.
10940         * math/gen-libm-test.pl: Remove.
10941         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10942         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10943         gen-libm-test.pl.
10944         ($(libm-test-c-noauto-obj)): Likewise.
10945         ($(libm-test-c-auto-obj)): Likewise.
10946         ($(libm-test-c-narrow-obj)): Likewise.
10947         (regen-ulps): Likewise.
10948         * math/README.libm-test: Update references to gen-libm-test.pl.
10949         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10950         referencing gen-libm-test.pl.
10951         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10952         * math/libm-test-support.c: Likewise.
10953         * math/libm-test-support.h: Likewise.
10954         * sysdeps/generic/libm-test-ulps: Likewise.
10955
10956 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10957
10958         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10959         Fix value.
10960
10961 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
10962
10963         * math/libm-test-nextdown.inc (do_test): Move comment to ....
10964         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10965
10966 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10967
10968         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10969         symbols.
10970         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10971         __pthread_setspecific): Add hidden proto.
10972         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10973         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10974
10975 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10976
10977         * benchtests/bench-string.h (buf1_size, buf2_size): New
10978         variables.
10979         (init_sizes): New function.
10980         (test_init): Use it.
10981         (alloc_buf, exit_error): New functions.
10982         (alloc_bufs): Use ALLOC_BUF.
10983         (realloc_bufs): Remove.
10984         * benchtests/bench-memcmp.c (do_test): Adjust.
10985         * benchtests/bench-memset-large.c (do_test): Likewise.
10986         * benchtests/bench-memset-walk.c (do_test): Likewise.
10987         * benchtests/bench-memset.c (do_test): Likewise.
10988         * benchtests/bench-strncmp.c (do_test): Likewise.
10989
10990 2018-08-06  Andreas Schwab  <schwab@suse.de>
10991
10992         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10993         of CONST_THREAD_AREA.
10994
10995 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10996
10997         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10998         (STATE_SAVE_MASK): Likewise.
10999         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11000         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11001         (STATE_SAVE_MASK): Likewise.
11002         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11003         instead of <cpu-features.h>.
11004
11005 2018-08-03  DJ Delorie  <dj@redhat.com>
11006
11007         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11008         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11009
11010         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11011
11012 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
11013
11014         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11015         after TEST_* calls.
11016         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11017         * math/libm-test-logb.inc (logb_test_data): Likewise.
11018
11019 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
11020
11021         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11022         * string/strstr.c (AVAILABLE): Likewise.
11023
11024 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11025
11026         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11027         <init-arch.h>.
11028         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11029         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11030         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11031
11032 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
11033
11034         * po/be.po: Update translation.
11035
11036         * po/be.po: Update translation.
11037
11038 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
11039
11040         * sysdeps/x86/cpu-features-offsets.sym
11041         (rtld_global_ro_offsetof): Removed.
11042         (CPU_FEATURES_SIZE): Likewise.
11043         (CPUID_OFFSET): Likewise.
11044         (CPUID_SIZE): Likewise.
11045         (CPUID_EAX_OFFSET): Likewise.
11046         (CPUID_EBX_OFFSET): Likewise.
11047         (CPUID_ECX_OFFSET): Likewise.
11048         (CPUID_EDX_OFFSET): Likewise.
11049         (FAMILY_OFFSET): Likewise.
11050         (MODEL_OFFSET): Likewise.
11051         (FEATURE_OFFSET): Likewise.
11052         (FEATURE_SIZ): Likewise.
11053         (COMMON_CPUID_INDEX_1): Likewise.
11054         (COMMON_CPUID_INDEX_7): Likewise.
11055         (FEATURE_INDEX_1): Likewise.
11056         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11057
11058 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
11059
11060         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11061         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11062         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11063         (install-locales): Depend on install-locale-archive.
11064         (install-locale-archive): Define.
11065         (install-locale-files): Define.
11066         (build-one-locale): Define macro.
11067         * manual/install.texi (Running make install): Document.
11068         * manual/INSTALL: Regenerate.
11069
11070 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11071
11072         * benchtests/scripts/compare_strings.py: Import traceback.
11073         (parse_file): Pretty-print error.
11074
11075         * NEWS: Mention the change.
11076         * elf/dl-tunables.list: Rename tune namespace to cpu.
11077         * sysdeps/powerpc/dl-tunables.list: Likewise.
11078         * sysdeps/x86/dl-tunables.list: Likewise.
11079         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11080         cpu.name.
11081         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11082         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11083         * manual/README.tunables: Likewise.
11084         * manual/tunables.texi: Likewise.
11085         * sysdeps/powerpc/cpu-features.c: Likewise.
11086         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11087         (init_cpu_features): Likewise.
11088         * sysdeps/x86/cpu-features.c: Likewise.
11089         * sysdeps/x86/cpu-features.h: Likewise.
11090         * sysdeps/x86/cpu-tunables.c: Likewise.
11091         * sysdeps/x86_64/Makefile: Likewise.
11092         * sysdeps/x86/dl-cet.c: Likewise.
11093
11094 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
11095
11096         [BZ #23479]
11097         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11098         [__mips_hard_float].
11099         (FE_UNDERFLOW): Likewise.
11100         (FE_OVERFLOW): Likewise.
11101         (FE_DIVBYZERO): Likewise.
11102         (FE_INVALID): Likewise.
11103         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11104         (FE_TOWARDZERO): Define only if [__mips_hard_float].
11105         (FE_UPWARD): Likewise.
11106         (FE_DOWNWARD): Likewise.
11107         (__FE_UNDEFINED): Define if [!__mips_hard_float]
11108         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11109         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11110         [__mips_hard_float].
11111         (FP_ROUNDMODE): Likewise.
11112         (FP_RND_NEAREST): Likewise.
11113         (FP_RND_ZERO): Likewise.
11114         (FP_RND_PINF): Likewise.
11115         (FP_RND_MINF): Likewise.
11116         (FP_EX_INVALID): Likewise.
11117         (FP_EX_OVERFLOW): Likewise.
11118         (FP_EX_UNDERFLOW): Likewise.
11119         (FP_EX_DIVZERO): Likewise.
11120         (FP_EX_INEXACT): Likewise.
11121         (FP_INIT_ROUNDMODE): Likewise.
11122         * sysdeps/mips/nofpu/fesetenv.c: New file.
11123         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11124
11125 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11126
11127         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11128         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11129         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11130         conditional on [FE_UPWARD].
11131
11132 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
11133
11134         regex: fix memory leak in Gnulib
11135         Problem and fix reported by Assaf Gordon in:
11136         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11137         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11138         range_ends members too, as they are defined in 'struct
11139         re_charset_t' even if not _LIBC.  This affects only Gnulib.
11140
11141 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11142
11143         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11144         ...
11145         (get_common_indices): This.
11146         (init_cpu_features): Updated.
11147
11148 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * sysdeps/generic/math-tests-snan-payload.h: New file.
11151         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11152         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11153         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11154         * sysdeps/generic/math-tests.h: Include
11155         <math-tests-snan-payload.h>.
11156         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11157         * sysdeps/hppa/math-tests.h: Remove file.
11158         * sysdeps/mips/math-tests.h [!__mips_nan2008]
11159         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11160         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11161         Likewise.
11162
11163         * sysdeps/generic/math-tests-snan-cast.h: New file.
11164         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11165         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11166         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11167         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11168
11169 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
11170
11171         * version.h (RELEASE): Set to "development".
11172         (VERSION): Set to "2.28.9000".
11173         * NEWS (2.29): New section.
11174
11175         * version.h (RELEASE): Set to "stable".
11176         (VERSION): Set to "2.28".
11177         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11178         * NEWS: Add the list of bugs fixed in 2.28.
11179
11180         * po/ca.po: Update to latest version.
11181         * po/cs.po: Likewise
11182         * po/da.po: Likewise
11183         * po/el.po: Likewise
11184         * po/eo.po: Likewise
11185         * po/es.po: Likewise
11186         * po/fi.po: Likewise
11187         * po/fr.po: Likewise
11188         * po/gl.po: Likewise
11189         * po/hu.po: Likewise
11190         * po/ia.po: Likewise
11191         * po/id.po: Likewise
11192         * po/it.po: Likewise
11193         * po/ja.po: Likewise
11194         * po/ko.po: Likewise
11195         * po/lt.po: Likewise
11196         * po/nb.po: Likewise
11197         * po/nl.po: Likewise
11198         * po/pt_BR.po: Likewise
11199         * po/ru.po: Likewise
11200         * po/rw.po: Likewise
11201         * po/sk.po: Likewise
11202         * po/sl.po: Likewise
11203         * po/tr.po: Likewise
11204         * po/zh_CN.po: Likewise
11205         * po/zh_TW.po: Likewise
11206
11207 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11208
11209         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11210         initialization...
11211         (init): ... before initializing libpthread.
11212
11213         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11214         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11215         (__mach_setup_tls): ... new function.
11216         (mach_setup_tls): New alias.
11217         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11218         __mach_setup_thread.
11219         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11220         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11221         * mach/Versions [libc] (mach_setup_tls): Add symbol.
11222         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11223
11224 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11225
11226         * manual/install.texi: Update versions.
11227         * INSTALL: Regenerate.
11228
11229         * manual/contrib.texi (Contributors): Update contributions.
11230
11231 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
11232
11233         * po/be.po: Update translations.
11234
11235 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11236
11237         * sysdeps/sh/libm-test-ulps: Update.
11238
11239 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
11240
11241         * po/bg.po: Update translations.
11242         * po/de.po: Likewise.
11243         * po/hr.po: Likewise.
11244         * po/pt_BR.po: Likewise.
11245         * po/sv.po: Likewise.
11246         * po/vi.po: Likewise.
11247
11248 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11249
11250         [BZ #23467]
11251         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11252         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11253         (CFLAGS-tst-cet-property-1.o): New.
11254         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11255         ($(objpfx)tst-cet-property-2): Likewise.
11256         ($(objpfx)tst-cet-property-2.out): Likewise.
11257         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11258         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11259         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11260         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11261         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11262
11263 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
11264
11265         [BZ #23458]
11266         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11267
11268 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11269
11270         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11271         __sbrk): Do not set attribute_hidden.
11272         * sysdeps/mach/hurd/not-errno.h: New file.
11273         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11274         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11275
11276 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
11277
11278         * po/uk.po: Update translations.
11279         * po/cs.po: Likewise.
11280         * po/pl.po: Likewise.
11281
11282 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
11283
11284         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11285         parse beyond the note end.
11286
11287 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11288
11289         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11290         kernel does not support OFD locks.
11291         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11292
11293 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11294
11295         * sysdeps/mach/hurd/Versions (libc): Make __access and
11296         __access_noerrno external so they can override the ld symbols.
11297         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11298         __writev, __open64, __access_noerrno extern so they can be overrided.
11299         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11300         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11301
11302 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
11303
11304         * po/libc.pot: Regenerate.
11305
11306 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
11307
11308         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11309
11310 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11311
11312         [BZ #23459]
11313         * sysdeps/x86/cpu-features.c (get_extended_indices): New
11314         function.
11315         (init_cpu_features): Call get_extended_indices for both Intel
11316         and AMD CPUs.
11317         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11318         Remove "for AMD" comment.
11319
11320 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
11321
11322         [BZ # 23456]
11323         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11324         COMMON_CPUID_INDEX_80000001.
11325
11326 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
11327
11328         * string/tst-xbzero-opt.c (use_test_buffer): New function.
11329         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11330
11331 2018-07-26  Florian Weimer  <fweimer@redhat.com>
11332
11333         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11334         aliases for symbols not in the implementation namespace.
11335
11336 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
11337
11338         [BZ #23393]
11339         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11340         lowercase in LATIN script.
11341         * localedata/Makefile (test-input): Add en_US.UTF-8.
11342         * localedata/en_US.UTF-8.in: New file.
11343         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11344         and restore old tests.
11345         * posix/tst-regexloc.c (do_test): Add back range expression test.
11346
11347 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11348
11349         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11350
11351 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11352
11353         * nptl/threads.h: Move to ...
11354         * sysdeps/nptl/threads.h: ... here.
11355         * sysdeps/hurd/stdc-predef.h: New file.
11356
11357 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11358
11359         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11360         tst-cet-setcontext-1 if CET is enabled.
11361         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11362         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11363
11364 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11365
11366         * include/threads.h: Move to ...
11367         * sysdeps/nptl/threads.h: ... here.
11368         * sysdeps/htl/threads.h: New file.
11369         * conform/Makefile (linknamespace-libs-ISO11): Use
11370         static-thread-library instead of linking libpthread.
11371         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11372
11373 2018-07-25  Florian Weimer  <fweimer@redhat.com>
11374
11375         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11376         nanoseconds into seconds.
11377         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11378         (do_test): Likewise.
11379         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11380         (do_test): Likewise.  Avoid nanosecond overflow and spurious
11381         timeouts due to system load.
11382         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11383         (child_wait): Increment it.
11384         (do_test): Wait as long as necessary until all expected threads
11385         have arrived.
11386
11387 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
11388             H.J. Lu  <hongjiu.lu@intel.com>
11389
11390         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11391         __ssp.
11392         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11393         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11394         (__push___start_context): New.
11395         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11396         <asm/prctl.h>.
11397         (__getcontext): Record the current shadow stack base.  Save the
11398         caller's shadow stack pointer and base.
11399         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11400         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11401         (__push___start_context): New prototype.
11402         (__makecontext): Call __push___start_context to allocate a new
11403         shadow stack, push __start_context onto the new stack as well
11404         as the new shadow stack.
11405         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11406         <asm/prctl.h>.
11407         (__setcontext): Restore the target shadow stack.
11408         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11409         <asm/prctl.h>.
11410         (__swapcontext): Record the current shadow stack base.  Save
11411         the caller's shadow stack pointer and base. Restore the target
11412         shadow stack.
11413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11414         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11415         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11416
11417 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11418
11419         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11420         tst-setcontext8 and tst-setcontext9.
11421         * stdlib/tst-setcontext6.c: New file.
11422         * stdlib/tst-setcontext7.c: Likewise.
11423         * stdlib/tst-setcontext8.c: Likewise.
11424         * stdlib/tst-setcontext9.c: Likewise.
11425
11426 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11427
11428         * stdlib/Makefile ((tests): Add tst-setcontext5.
11429         * stdlib/tst-setcontext5.c: New file.
11430
11431 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11432
11433         * stdlib/Makefile (tests): Add tst-setcontext4.
11434         * stdlib/tst-setcontext4.c: New file.
11435
11436 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11437
11438         * stdlib/Makefile (tests): Add tst-swapcontext1.
11439         * stdlib/tst-swapcontext1.c: New test.
11440
11441 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11442
11443         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11444         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11445         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11446         and tst-cet-legacy-4c.
11447         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11448         and tst-cet-legacy-mod-4.
11449         (CFLAGS-tst-cet-legacy-2.c): New.
11450         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11451         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11452         (CFLAGS-tst-cet-legacy-3.c): Likewise.
11453         (CFLAGS-tst-cet-legacy-4.c): Likewise.
11454         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11455         ($(objpfx)tst-cet-legacy-1): Likewise.
11456         ($(objpfx)tst-cet-legacy-2): Likewise.
11457         ($(objpfx)tst-cet-legacy-2.out): Likewise.
11458         ($(objpfx)tst-cet-legacy-2a): Likewise.
11459         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11460         ($(objpfx)tst-cet-legacy-4): Likewise.
11461         ($(objpfx)tst-cet-legacy-4.out): Likewise.
11462         ($(objpfx)tst-cet-legacy-4a): Likewise.
11463         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11464         (tst-cet-legacy-4a-ENV): Likewise.
11465         ($(objpfx)tst-cet-legacy-4b): Likewise.
11466         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11467         (tst-cet-legacy-4b-ENV): Likewise.
11468         ($(objpfx)tst-cet-legacy-4c): Likewise.
11469         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11470         (tst-cet-legacy-4c-ENV): Likewise.
11471         * sysdeps/x86/tst-cet-legacy-1.c: New file.
11472         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11473         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11474         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11475         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11476         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11477         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11478         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11479         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11480         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11481         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11482
11483 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11484
11485         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11486         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11487         with ssp_base.
11488         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11489         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11490         with ssp_base.
11491
11492 2018-07-25  Andreas Schwab  <schwab@suse.de>
11493
11494         [BZ #23442]
11495         * locale/weightwc.h (findidx): Handle the case where usrc is a
11496         prefix of cp but one character too short.
11497
11498 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11499
11500         * NEWS: Add ISO C threads addition.
11501
11502 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11503
11504         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11505         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11506         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
11507         4.13.
11508
11509 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11510
11511         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11512         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11513         <sys/prctl.h> and <asm/prctl.h>.
11514         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11515         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11516         and <asm/prctl.h>.
11517         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11518         ARCH_CET_LEGACY_BITMAP.
11519         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11520         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11521         * sysdeps/x86/libc-start.c: Include <startup.h>.
11522
11523 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11524
11525         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11526         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
11527
11528 2018-07-24  Rical Jasan  <rj@2c3t.io>
11529             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11530             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11531
11532         [BZ #14092]
11533         * manual/debug.texi: Update adjacent chapter name.
11534         * manual/probes.texi: Likewise.
11535         * manual/threads.texi (ISO C Threads): New section.
11536         (POSIX Threads): Convert to a section.
11537
11538 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11539             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11540
11541         [BZ# 14092]
11542         * nptl/Makefile (tests): Add new test files.
11543         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11544         * nptl/tst-cnd-basic.c: Likewise.
11545         * nptl/tst-cnd-broadcast.c: Likewise.
11546         * nptl/tst-cnd-timedwait.c: Likewise.
11547         * nptl/tst-mtx-basic.c: Likewise.
11548         * nptl/tst-mtx-recursive.c: Likewise.
11549         * nptl/tst-mtx-timedlock.c: Likewise.
11550         * nptl/tst-mtx-trylock.c: Likewise.
11551         * nptl/tst-thrd-basic.c: Likewise.
11552         * nptl/tst-thrd-detach.c: Likewise.
11553         * nptl/tst-thrd-sleep.c: Likewise.
11554         * nptl/tst-tss-basic.c: Likewise.
11555
11556 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11557
11558         [BZ #14092]
11559         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11560         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11561         symbols.
11562         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11563         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11564         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11565         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11566         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11567         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11568         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11569         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11570         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11571         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11572         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11573         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11575         Likewise.
11576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11577         Likewise.
11578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11579         Likewise.
11580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11581         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11582         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11583         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11584         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11585         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11586         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11587         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11588         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11589         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11590         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11591         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11592         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11593         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11594         Likewise.
11595         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11596         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11597         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11598         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11599         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11600         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11601         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11602         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11603         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11604         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11605         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11606         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11607         ikewise.
11608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11610         Likewise.
11611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11612         Likewise.
11613         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11614         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11615         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11616         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11617         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11618         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11619         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11620         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11621
11622         [BZ #14092]
11623         * conform/data/threads.h-data (thread_local): New macro.
11624         (TSS_DTOR_ITERATIONS): Likewise.
11625         (tss_t): New type.
11626         (tss_dtor_t): Likewise.
11627         (tss_create): New function.
11628         (tss_get): Likewise.
11629         (tss_set): Likewise.
11630         (tss_delete): Likewise.
11631         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11632         tss_get, and tss_set objects.
11633         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11634         * nptl/tss_create.c: New file.
11635         * nptl/tss_delete.c: Likewise.
11636         * nptl/tss_get.c: Likewise.
11637         * nptl/tss_set.c: Likewise.
11638         * sysdeps/nptl/threads.h (thread_local): New define.
11639         (TSS_DTOR_ITERATIONS): Likewise.
11640         (tss_t): New typedef.
11641         (tss_dtor_t): Likewise.
11642         (tss_create): New prototype.
11643         (tss_get): Likewise.
11644         (tss_set): Likewise.
11645         (tss_delete): Likewise.
11646
11647         [BZ #14092]
11648         * conform/data/threads.h-data (cnd_t): New type.
11649         (cnd_init): New function.
11650         (cnd_signal): Likewise.
11651         (cnd_broadcast): Likewise.
11652         (cnd_wait): Likewise.
11653         (cnd_timedwait): Likewise.
11654         (cnd_destroy): Likewise.
11655         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11656         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11657         object.
11658         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11659         * nptl/cnd_broadcast.c: New file.
11660         * nptl/cnd_destroy.c: Likewise.
11661         * nptl/cnd_init.c: Likewise.
11662         * nptl/cnd_signal.c: Likewise.
11663         * nptl/cnd_timedwait.c: Likewise.
11664         * nptl/cnd_wait.c: Likewise.
11665         * sysdeps/nptl/threads.h (cnd_t): New type.
11666         (cnd_init): New prototype.
11667         (cnd_signa): Likewise.
11668         (cnd_broadcast): Likewise.
11669         (cnd_wait): Likewise.
11670         (cnd_timedwait): Likewise.
11671         (cnd_destroy): Likewise.
11672
11673         [BZ #14092]
11674         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11675         (once_flag): New type.
11676         (call_once): New function.
11677         * nptl/Makefile (libpthread-routines): Add call_once object.
11678         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11679         * nptl/call_once.c: New file.
11680         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11681         (once_flag): New type.
11682         (call_once): New prototype.
11683
11684         [BZ #14092]
11685         * conform/data/threads.h-data (mtx_plain): New constant.
11686         (mtx_recursive): Likewise.
11687         (mtx_timed): Likewise.
11688         (mtx_t): New type.
11689         (mtx_init): New function.
11690         (mtx_lock): Likewise.
11691         (mtx_timedlock): Likewise.
11692         (mtx_trylock): Likewise.
11693         (mtx_unlock): Likewise.
11694         (mtx_destroy): Likewise.
11695         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11696         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11697         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11698         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11699         * nptl/mtx_destroy.c: New file.
11700         * nptl/mtx_init.c: Likewise.
11701         * nptl/mtx_lock.c: Likewise.
11702         * nptl/mtx_timedlock.c: Likewise.
11703         * nptl/mtx_trylock.c: Likewise.
11704         * nptl/mtx_unlock.c: Likewise.
11705         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11706         (mtx_recursive): Likewise.
11707         (mtx_timed): Likewise.
11708         (mtx_t): New type.
11709         (mtx_init): New prototype.
11710         (mtx_lock): Likewise.
11711         (mtx_timedlock): Likewise.
11712         (mtx_trylock): Likewise.
11713         (mtx_unlock): Likewise.
11714         (mtx_destroy): Likewise.
11715
11716         [BZ #14092]
11717         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11718         (linknamespace-libs-ISO11): Add libpthread.a.
11719         * conform/data/threads.h-data: New file: add C11 thrd_* types and
11720         functions.
11721         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11722         * nptl/Makefile (headers): Add threads.h.
11723         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11724         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11725         thrd_yield.
11726         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11727         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11728         thrd_join, thrd_sleep, and thrd_yield symbols.
11729         * nptl/descr.h (struct pthread): Add c11 field.
11730         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11731         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11732         routine with expected function prototype.
11733         (__pthread_create_2_1): Add C11 threads check based on attribute
11734         value.
11735         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11736         * nptl/thrd_create.c: New file.
11737         * nptl/thrd_current.c: Likewise.
11738         * nptl/thrd_detach.c: Likewise.
11739         * nptl/thrd_equal.c: Likewise.
11740         * nptl/thrd_exit.c: Likewise.
11741         * nptl/thrd_join.c: Likewise.
11742         * nptl/thrd_priv.h: Likewise.
11743         * nptl/thrd_sleep.c: Likewise.
11744         * nptl/thrd_yield.c: Likewise.
11745         * include/threads.h: Likewise.
11746
11747 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11748
11749         * bits/indirect-return.h: New file.
11750         * misc/sys/cdefs.h (__glibc_has_attribute): New.
11751         * sysdeps/x86/bits/indirect-return.h: Likewise.
11752         * stdlib/Makefile (headers): Add bits/indirect-return.h.
11753         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11754         (swapcontext): Add __INDIRECT_RETURN.
11755         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11756         (prepare_test_buffer): Use it.
11757
11758 2018-07-24  Andreas Schwab  <schwab@suse.de>
11759
11760         [BZ #23448]
11761         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11762         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11763
11764 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11765
11766         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11767         Redefine if shadow stack is enabled.
11768         (SYSCALL_ERROR_LABEL): Likewise.
11769         (__vfork): Pop shadow stack and jump back to to caller directly
11770         when shadow stack is in use.
11771         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11772         Redefine if shadow stack is enabled.
11773         (SYSCALL_ERROR_LABEL): Likewise.
11774         (__vfork): Pop shadow stack and jump back to to caller directly
11775         when shadow stack is in use.
11776
11777 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11778
11779         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11780         enabled.
11781         (foo): Likewise.
11782         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11783         (foo): Likewise.
11784
11785 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
11786
11787         * scripts/build-many-glibcs.py (Context.checkout): Default
11788         binutils version to 2.31 branch.
11789
11790 2018-07-20  Zong Li  <zong@andestech.com>
11791
11792         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11793         URL of gcc's tarball.
11794
11795 2018-07-20  Florian Weimer  <fweimer@redhat.com>
11796
11797         [BZ #23396]
11798         * posix/regcomp.c (build_equiv_class): When comparing weights, do
11799         not compare an extra byte after the end of the weights.
11800
11801 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11802
11803         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11804         to 1.
11805         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11806         hidden prototypes.
11807         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11808         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11809         * scripts/check-execstack.awk: Consider `xfail' variable containing a
11810         list of libraries whose stack executability is expected.
11811         * elf/Makefile ($(objpfx)check-execstack.out): Pass
11812         $(check-execstack-xfail) to check-execstack.awk through `xfail'
11813         variable.
11814         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11815         libc.so libpthread.so.
11816
11817 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
11818
11819         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11820         SOCK_NONBLOCK.
11821         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11822         and SOCK_NONBLOCK.
11823         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
11824         implement __pipe2.
11825         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11826
11827 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11828
11829         * benchtests/scripts/compare_bench.py (__main__): use the argparse
11830         library to improve command line parsing.
11831         (__main__): make schema file as optional parameter (--schema),
11832         defaulting to benchtests/scripts/benchout.schema.json.
11833         (main): move out of the parsing stuff to __main_  and leave it
11834         only as caller of main comparison functions.
11835
11836 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         * NEWS: Add a note for Intel CET status.
11839         * manual/install.texi: Likewise.
11840         * INSTALL: Regenerated.
11841
11842 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
11843
11844         [BZ #23140]
11845         * localedata/locales/oc_FR (mon): Rename to...
11846         (alt_mon): This, then update October (typo fix).
11847         (mon): New content (genitive case, month names preceded by
11848         "de" or "d’").
11849
11850         [BZ #23422]
11851         * localedata/locales/oc_FR (abday): Update all items.
11852         (day): Update Wednesday and Saturday (typo fixes).
11853         (abmon): Update all items, except May.
11854         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11855         (LC_IDENTIFICATION): Bump the revision number and date.
11856         Keep the "category" entries in alphabetic order.
11857         (LC_ADDRESS): Remove no longer needed comment.
11858         (LC_COLLATE): Use “copy "ca_ES"”.
11859         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11860         "name_mrs".
11861
11862 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * grp/tst_fgetgrent.c: Include <unistd.h>.
11865         (main): Use mkstemp instead of tmpnam.
11866         * io/test-utime.c (main): Likewise.
11867         * posix/annexc.c (macrofile): Change to modifiable array.
11868         (main): Remove macrofile here.
11869         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11870         macrofile here.
11871         (check_header): Do not remove macrofile here.
11872         * posix/bug-getopt1.c: Include <stdlib.h>.
11873         (do_test): Use mkstemp instead of tmpnam.
11874         * posix/bug-getopt2.c: Include <stdlib.h>.
11875         (do_test): Use mkstemp instead of tmpnam.
11876         * posix/bug-getopt3.c: Include <stdlib.h>.
11877         (do_test): Use mkstemp instead of tmpnam.
11878         * posix/bug-getopt4.c: Include <stdlib.h>.
11879         (do_test): Use mkstemp instead of tmpnam.
11880         * posix/bug-getopt5.c: Include <stdlib.h>.
11881         (do_test): Use mkstemp instead of tmpnam.
11882         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11883         (main): Use mkstemp instead of tmpnam.
11884         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11885         (main): Use mkstemp instead of tmpnam.
11886         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11887         (main): use mkstemp instead of tmpnam.
11888         * stdlib/isomac.c (macrofile): Change to modifiable array.
11889         (main): Remove macrofile here.
11890         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11891         macrofile here.
11892         (check_header): Do not remove macrofile here.
11893
11894 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11895
11896         * manual/tunables.texi: Document glibc.tune.x86_ibt and
11897         glibc.tune.x86_shstk.
11898
11899 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11900
11901         * NEWS: Mention --enable-cet.
11902         * manual/install.texi: Document --enable-cet.
11903         * INSTALL: Regenerated.
11904
11905 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11906
11907         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11908         Add _CET_NOTRACK before indirect jump to jump table.
11909
11910 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11911
11912         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11913         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11914         to jump table.
11915
11916 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11917
11918         * sysdeps/i386/i686/multiarch/strcat-sse2.S
11919         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11920         to jump table.
11921
11922 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11925         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11926         to jump table.
11927
11928 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11929
11930         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11931         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11932         to jump table.
11933
11934 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11935
11936         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11937         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11938         to jump table.
11939         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11940
11941 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11944         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11945         to jump table.
11946
11947 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11948
11949         * sysdeps/i386/i686/multiarch/memset-sse2.S
11950         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11951         to jump table.
11952
11953 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11954
11955         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11956         indirect jump to jump table.
11957
11958 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11959
11960         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11961         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11962         to jump table.
11963         (MEMCPY): Likewise.
11964
11965 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11966
11967         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11968         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11969         to jump table.
11970         (MEMCPY): Likewise.
11971
11972 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11973
11974         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11975         _CET_NOTRACK before indirect jump to jump table.
11976
11977 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11978
11979         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11980         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11981         to jump table.
11982
11983 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11984
11985         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11986         indirect jump to jump table.
11987
11988 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
11989
11990         [BZ #22241]
11991         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11992         (LOCALES): Likewise.
11993         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11994         * localedata/locales/sah_RU: New file.
11995         * localedata/sah_RU.UTF-8.in: New file.
11996
11997 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11998
11999         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12000         "sysdep.h".
12001         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
12002         _CET_ENDBR to indirect jump targets and adjust jump destination
12003         for _CET_ENDBR.
12004         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
12005         "sysdep.h".
12006         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
12007         _CET_ENDBR to indirect jump targets and adjust jump destination
12008         for _CET_ENDBR.
12009         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
12010         "sysdep.h".
12011         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
12012         _CET_ENDBR to indirect jump targets and adjust jump destination
12013         for _CET_ENDBR.
12014
12015 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12016
12017         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12018         _CET_ENDBR.
12019
12020 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12021
12022         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12023         _CET_ENDBR.
12024         (_dl_tlsdesc_undefweak): Likewise.
12025         (_dl_tlsdesc_dynamic): Likewise.
12026         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12027         (_dl_tlsdesc_resolve_rel): Likewise.
12028         (_dl_tlsdesc_resolve_rela): Likewise.
12029         (_dl_tlsdesc_resolve_hold): Likewise.
12030         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12031         (_dl_tlsdesc_undefweak): Likewise.
12032         (_dl_tlsdesc_dynamic): Likewise.
12033         (_dl_tlsdesc_resolve_rela): Likewise.
12034         (_dl_tlsdesc_resolve_hold): Likewise.
12035
12036 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12037
12038         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12039         (_fini): Likewise.
12040         * sysdeps/x86_64/crti.S (_init): Likewise.
12041         (_fini): Likewise.
12042
12043 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
12044
12045         [BZ #23140]
12046         * localedata/locales/os_RU (mon): Rename to...
12047         (alt_mon): This.
12048         (mon): Import from CLDR (genitive case).
12049
12050 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
12051
12052         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12053         cet-tunables.h> when CET is enabled.
12054
12055 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12056
12057         [BZ #21598]
12058         * configure.ac: Add --enable-cet.
12059         * configure: Regenerated.
12060         * elf/Makefille (all-built-dso): Add a comment.
12061         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12062         Include <dl-prop.h>.
12063         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12064         segment.
12065         * elf/dl-open.c: Include <dl-prop.h>.
12066         (dl_open_worker): Call _dl_open_check.
12067         * elf/rtld.c: Include <dl-prop.h>.
12068         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
12069         _rtld_main_check.
12070         * sysdeps/generic/dl-prop.h: New file.
12071         * sysdeps/i386/dl-cet.c: Likewise.
12072         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12073         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12074         * sysdeps/x86/cet-tunables.h: Likewise.
12075         * sysdeps/x86/check-cet.awk: Likewise.
12076         * sysdeps/x86/configure: Likewise.
12077         * sysdeps/x86/configure.ac: Likewise.
12078         * sysdeps/x86/dl-cet.c: Likewise.
12079         * sysdeps/x86/dl-procruntime.c: Likewise.
12080         * sysdeps/x86/dl-prop.h: Likewise.
12081         * sysdeps/x86/libc-start.h: Likewise.
12082         * sysdeps/x86/link_map.h: Likewise.
12083         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12084         _CET_ENDBR.
12085         (_dl_runtime_profile): Likewise.
12086         (_dl_runtime_resolve_shstk): New.
12087         (_dl_runtime_profile_shstk): Likewise.
12088         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12089         if CET is enabled.
12090         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12091         (CFLAGS-.os): Likewise.
12092         (CFLAGS-.op): Likewise.
12093         (CFLAGS-.oS): Likewise.
12094         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12095         is enabled.
12096         (tests-special): Add $(objpfx)check-cet.out.
12097         (cet-built-dso): New.
12098         (+$(cet-built-dso:=.note)): Likewise.
12099         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12100         ($(objpfx)check-cet.out): New.
12101         (generated): Add check-cet.out.
12102         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12103         <cet-tunables.h>.
12104         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12105         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12106         (init_cpu_features): Call get_cet_status to check CET status
12107         and update dl_x86_feature_1 with CET status.  Call
12108         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12109         (set_x86_shstk).  Disable and lock CET in libc.a.
12110         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12111         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12112         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12113         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12114         (_CET_ENDBR): Define if not defined.
12115         (ENTRY): Add _CET_ENDBR.
12116         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12117         x86_shstk.
12118         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12119         _CET_ENDBR.
12120         (_dl_runtime_profile): Likewise.
12121
12122 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
12123
12124         [BZ #21895]
12125         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12126         restore r2 on longjmp.
12127         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12128         test list.
12129         Added rules to build test tst-setjmp-bug21895-static.
12130         Added module setjmp-bug21895 and rules to build a shared object from it.
12131         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12132         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12133
12134 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
12135
12136         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12137         * benchtests/bench-strstr.c: Likewise.
12138         * string/memmem.c (FASTSEARCH): Define.
12139         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12140         Add support for FASTSEARCH.
12141         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12142         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12143         (FASTSEARCH): Define.
12144         * string/test-strcasestr.c: Rename __strnlen to strnlen.
12145         * string/test-strstr.c: Likewise.
12146
12147 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
12148
12149         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12150         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12151
12152 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12153             H.J. Lu  <hongjiu.lu@intel.com>
12154
12155         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12156         (__longjmp): Restore shadow stack pointer if shadow stack is
12157         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12158         isn't defined for __longjmp_cancel.
12159         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12160         (_setjmp): Save shadow stack pointer if shadow stack is enabled
12161         and SHADOW_STACK_POINTER_OFFSET is defined.
12162         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12163         (setjmp): Save shadow stack pointer if shadow stack is enabled
12164         and SHADOW_STACK_POINTER_OFFSET is defined.
12165         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12166         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12167         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12168         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12169         <jmp_buf-ssp.h>.
12170         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12171         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12172         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12173         Remove jmp_buf-ssp.sym.
12174         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12175         <jmp_buf-ssp.h>.
12176         (____longjmp_chk): Restore shadow stack pointer if shadow stack
12177         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12178         * sysdeps/x86/Makefile (gen-as-const-headers): Add
12179         jmp_buf-ssp.sym.
12180         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12181         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12182         (__longjmp): Restore shadow stack pointer if shadow stack is
12183         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12184         isn't defined for __longjmp_cancel.
12185         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12186         (__sigsetjmp): Save shadow stack pointer if shadow stack is
12187         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12188
12189 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12190
12191         [BZ #22563]
12192         * nptl/pthread_create.c: Include <tls-setup.h>.
12193         (__pthread_create_2_1): Call tls_setup_tcbhead.
12194         * sysdeps/generic/tls-setup.h: New file.
12195         * sysdeps/x86/nptl/tls-setup.h: Likewise.
12196         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12197         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12198         Likewise.
12199         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12200         to feature_1.
12201         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12202         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12203         (X86_FEATURE_1_SHSTK): Likewise.
12204         (CET_ENABLED): Likewise.
12205         (IBT_ENABLED): Likewise.
12206         (SHSTK_ENABLED): Likewise.
12207
12208 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
12209
12210         [BZ #23208]
12211         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12212         (LOCALES): Likewise.
12213         * localedata/dsb_DE.UTF-8.in: New file.
12214         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12215
12216 2018-07-12  Florian Weimer  <fweimer@redhat.com>
12217
12218         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12219         __mprotect, not mprotect.
12220
12221 2018-07-11  Florian Weimer  <fweimer@redhat.com>
12222
12223         * io/Makefile (headers): Add bits/statx.h.
12224
12225 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
12226
12227         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12228         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12229         and headers.
12230         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12231         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12232         for utf8_gen.py
12233
12234 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12235
12236         * io/Makefile (routines): Add statx.
12237         (tests-internal): Add tst-statx.
12238         * io/Versions (GLIBC_2.28): Export statx.
12239         * io/bits/statx.h: New file.
12240         * io/sys/stat.h [__USE_GNU]: Include it.
12241         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12242         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12243         Define.
12244         * io/statx.c: New file.
12245         * io/statx_generic.: Likewise.
12246         * io/tst-statx.: Likewise.
12247         * include/bits/statx.h: Likewise.
12248         * sysdeps/unix/sysv/linux/kernel-features.h
12249         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12250         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12251         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12252         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12253         Undefine.
12254         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12255         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12256         * sysdeps/unix/sysv/linux/statx.c: New file.
12257         * manual/filesys.texi: Note that statx is undocumented.
12258         * sysdeps/**/libc*.abilist: Update.
12259
12260 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12261
12262         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12263         a kernel issue which lead to test failure in some cases.
12264
12265 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12266
12267         [BZ #23036]
12268         * posix/regexec.c (check_node_accept_bytes): When comparing
12269         weights, do not compare an extra byte after the end of the
12270         weights.
12271
12272 2018-07-10  Florian Weimer  <fweimer@redhat.com>
12273
12274         * libio/readline.c: Fix copyright year.
12275         * libio/tst-readline.c Likewise.
12276         * nss/tst-nss-files-hosts-getent.c: Likewise.
12277
12278 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12279
12280         [BZ #18991]
12281         * nss/nss_files/files-XXX.c (internal_getent): Use
12282         __libc_readline_unlocked.  Seek back to the start of the line if
12283         parsing failes with ERANGE.
12284         (get_contents_ret, get_contents): Remove.
12285         * nss/tst-nss-files-hosts-getent.c: New file.
12286         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12287         (tst-nss-files-hosts-getent): Link with -ldl.
12288
12289 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12290
12291         * include/stdio.h (__libc_readline_unlocked): Declare.
12292         (__ftello64, __fseeko64): Declare aliases.
12293         * libio/readline.c: New file.
12294         * libio/tst-readline.c: Likewise.
12295         (routines): Add readline.
12296         (tests-internal): Add tst-readlime.
12297         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12298         __libc_readline_unlocked.
12299         * libio/fseeko.c (__fseeko): Rename from fseeko.
12300         (fseeko): Add alias.
12301         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12302         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12303         (fseeko64): Add alias.
12304         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12305         * libio/ftello64.c (__ftello64): Rename from ftello64.
12306         (ftello64): Add alias.
12307
12308 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12309
12310         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12311         HWCAP_ATOMICS.
12312
12313 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12314
12315         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12316         Use dl_hwcap without masking.
12317         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12318         Remove HWCAP_CPUID.
12319
12320 2018-07-06  Florian Weimer  <fweimer@redhat.com>
12321
12322         * conform/conformtest.pl (checknamespace): Escape literal braces
12323         in regular expressions.
12324
12325 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
12326
12327         * sysdeps/x86/cpu-features.c (get_common_indeces):
12328         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12329         * sysdeps/x86/cpu-features.c (init_cpu_features):
12330         AVX_Fast_Unaligned_Load is disabled for Excavator core.
12331
12332 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12333
12334         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12335         protector.
12336         (CFLAGS-elf-init.oS): Likewise.
12337
12338 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12339             Carlos O'Donell  <carlos@redhat.com>
12340
12341         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12342         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
12343         with stack protector enabled because there is no risk of infinite
12344         recursion.
12345
12346 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
12347
12348         [BZ #19818]
12349         [BZ #23307]
12350         * libc-abis (ABSOLUTE): New ABI.
12351         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12352         * NEWS: Mention the new ABI.
12353
12354 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12355
12356         [BZ # 17662]
12357         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12358         (RENAME_WHITEOUT): Define.
12359         [__USE_GNU] (renameat2): Declare.
12360         * stdio-common/Makefile (routines): Add renameat2.
12361         (tests): Add tst-renameat2.
12362         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12363         * stdio-common/renameat2.c: New file.
12364         * stdio-common/tst-renameat2.c: Likewise.
12365         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12366         * manual/filesys.texi (Temporary Files): Note that renameat2 is
12367         undocumented.
12368         * sysdeps/unix/sysv/linux/kernel-features.h
12369         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12370         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12371         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12372         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12373         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12374         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12375         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12376         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12377         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12378         * include/stdio.h (__renameat): Add alias for renameat.
12379         * stdio-common/renameat.c (__renameat): Rename from renameat.
12380         Add hidden definition and alias.
12381         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12382         * sysdeps/mach/hurd/renameat.c: Likewise.
12383         * sysdeps/**/libc*.abilist: Add renameat2.
12384
12385 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12386
12387         * posix/bug-regex33.c: Fix build after regex sync.
12388
12389 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
12390
12391         [BZ #23164]
12392         * localedata/tst-langinfo-setlocale.c: New file.
12393         * localedata/tst-langinfo-setlocale-static.c: New file.
12394         * localedata/tst-langinfo-newlocale.c: New file.
12395         * localedata/tst-langinfo-newlocale-static.c: New file.
12396         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12397         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12398         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12399         (tests-static): Remove tst-langinfo-static. Add
12400         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12401         (tests-special): Remove $(objpfx)tst-langinfo.out,
12402         $(objpfx)tst-langinfo-static.out. Add
12403         $(objpfx)tst-langinfo-setlocale.out,
12404         $(objpfx)tst-langinfo-newlocale.out,
12405         $(objpfx)tst-langinfo-setlocale-static.out,
12406         $(objpfx)tst-langinfo-newlocale-static.out.
12407         ($(objpfx)tst-langinfo.out): Remove.
12408         ($(objpfx)tst-langinfo-static.out): Remove.
12409         ($(objpfx)tst-langinfo-newlocale.out): New target.
12410         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12411         (test-xfail-tst-langinfo-newlocale-static): Add.
12412         ($(objpfx)tst-langinfo-setlocale.out): New target.
12413         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12414         * localedata/tst-langinfo.c: Call test_locale.
12415         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12416         data.
12417
12418 2018-07-04  Florian Weimer  <fweimer@redhat.com>
12419
12420         testrun.sh: Implement --tool=strace, --tool=valgrind
12421         * Makefile (testrun-script): Define variable.
12422         (testrun.sh): Use variable.
12423         * manual/install.texi (Tools for Compilation): make 4.0 or later
12424         is required.
12425         * configure.ac: Check for make 4.0 or later.
12426         * INSTALL: Regenerate.
12427         * configure: Likewise.
12428
12429 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12430
12431         [BZ #23233]
12432         [BZ #21163]
12433         [BZ #18986]
12434         [BZ #13762]
12435         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12436         * posix/PCRE.tests: Remove invalid test.
12437         * posix/bug-regex28.c: Fix expected values for used syntax.
12438         * posix/bug-regex37.c: New file.
12439         * posix/bug-regex38.c: Likewise.
12440         * posix/regcomp.c: Sync with gnulib.
12441         * posix/regex.c: Likewise.
12442         * posix/regex.h: Likewise.
12443         * posix/regex_internal.c: Likewise.
12444         * posix/regex_internal.h: Likewise.
12445         * posix/regexec.c: Likewise.
12446
12447 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
12448
12449         [BZ #23308]
12450         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12451         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12452         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12453         * localedata/unicode-gen/PropList.txt: likewise.
12454         * localedata/unicode-gen/UnicodeData.txt: likewise.
12455         * localedata/charmaps/UTF-8: Regenerate.
12456         * localedata/locales/i18n_ctype: likewise.
12457         * localedata/locales/tr_TR: likewise.
12458         * localedata/locales/translit_circle: likewise.
12459         * localedata/locales/translit_cjk_compat: likewise.
12460         * localedata/locales/translit_combining: likewise.
12461         * localedata/locales/translit_compat: likewise.
12462         * localedata/locales/translit_font: likewise.
12463         * localedata/locales/translit_fraction: likewise.
12464
12465 2018-07-03  Florian Weimer  <fweimer@redhat.com>
12466
12467         [BZ #23363]
12468         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12469         * stdio-common/tst-printf.sh: Adjust expected output.
12470         * LICENSES: Update.
12471
12472 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12473
12474         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12475         symbol.
12476
12477 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12478
12479         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12480         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12481         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12482         * stdio-common/tst-printfsz-islongdouble.c: New file.
12483         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12484         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12485         [subdir == stdio-common] (routines): Add ieee128-printf_size.
12486         [subdir == stdio-common] (tests-internal): Add
12487         test-printf-size-ieee128, and test-printf-size-ibm128.
12488         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12489         (CFLAGS-test-printf-size-ibm128.c): New variables.
12490         [subdir == stdio-common] (tests-special): Add
12491         $(objpfx)test-printf-size-ieee128.out and
12492         $(objpfx)test-printf-size-ibm128.out.
12493         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12494         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12495         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12496         __printf_sizeieee128.
12497         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12498         New file.
12499         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12500         Likewise.
12501         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12502         Likewise.
12503
12504 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12505
12506         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12507         (exp2f_inline): Likewise.
12508         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12509         (__math_uflowf): Likewise.
12510         (__math_may_uflowf): Likewise.
12511         (__math_divzerof): Likewise.
12512         (__math_invalidf): Likewise.
12513         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12514         (__math_oflowf): Likewise.
12515         (__math_uflowf): Likewise.
12516         (__math_may_uflowf): Likewise.
12517         (__math_divzerof): Likewise.
12518         (__math_invalidf): Likewise.
12519
12520 2018-06-29  DJ Delorie  <dj@redhat.com>
12521             Carlos O'Donell  <carlos@redhat.com>
12522
12523         [BZ #23329]
12524         * include/libc-symbols.h: Comment the freeres framework.
12525         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
12526         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12527         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12528         * dlfcn/dlerror.c: Include libc-symbols.h
12529         (__dlerror_main_freeres): New function.
12530         * dlfcn/dlfreeres.c: New file.
12531         * dlfcn/sdlfreeres.c: New file.
12532         * include/dlfcn.h: Declare __dlerror_main_freeres.
12533         * malloc/set-freeres.c: Declare __libdl_freeres, and
12534         __libpthread_freeres.
12535         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12536         the releavant libraries are loaded.
12537         * malloc/thread-freeres.c: Add comments.
12538         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12539         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12540         * nptl/allocatestack.c (__nptl_free_stacks): New function.
12541         (__free_stacks): Rename to...
12542         (free_stacks): ...this. Mark static.
12543         (queue_stack): Call free_stacks.
12544         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12545         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12546         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12547         ptr_freeres element from struct.
12548         (pthread_functions): Remove .ptr_freeres from struct initializer.
12549         [SHARED] (nptl_freeres): Remove.
12550         * nptl/nptlfreeres.c: New file.
12551         * nptl/pthreadP.h
12552         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12553         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
12554         attribute_hidden.
12555         (__free_stacks): Rename to...
12556         (__nptl_stacks_freeres): ...this.
12557         (__shm_directory_freeres): Declare.
12558         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12559         (__nptl_unwind_freeres): ...this.
12560         * resolv/res-close.c: Add comment.
12561         * resolv/resolv_conf.c: Include libc-symbols.h.
12562         * string/strerror_l.c: Include libc-symbols.h.
12563         * sunrpc/rpc_thread.c: Include libc-symbols.h.
12564         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12565         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12566         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12567
12568 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12569
12570         * stdlib/tst-strfmon_l.c: Add tests for long double.
12571
12572 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
12573
12574         [BZ #23208]
12575         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12576         * localedata/locales/dsb_DE: New file.
12577
12578 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12579
12580         [BZ #23140]
12581         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12582         genitive case).
12583         (alt_mon): New entry, import from CLDR (nominative case).
12584
12585 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
12586
12587         [BZ #22996]
12588         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12589
12590 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12591
12592         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12593         Use vector registers.
12594
12595         * sysdeps/aarch64/multiarch/memmove_falkor.S
12596         (__memcpy_falkor): Use vector registers.
12597
12598 2018-06-29  Martin Sebor  <msebor@redhat.com>
12599
12600         * manual/stdio.texi (Customizing Printf): Mention interaction
12601         with GCC built-ins.
12602
12603 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
12604
12605         [BZ #23307]
12606         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12607         `st_value' is 0 if `st_shndx' is SHN_ABS.
12608         * elf/tst-absolute-zero.c: New file.
12609         * elf/tst-absolute-zero-lib.c: New file.
12610         * elf/tst-absolute-zero-lib.lds: New file.
12611         * elf/Makefile (tests): Add `tst-absolute-zero'.
12612         (modules-names): Add `tst-absolute-zero-lib'.
12613         (LDLIBS-tst-absolute-zero-lib.so): New variable.
12614         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12615         ($(objpfx)tst-absolute-zero: New dependency.
12616
12617 2018-06-29  Zack Weinberg  <zackw@panix.com>
12618
12619         * configure.ac: New command-line option --disable-crypt.
12620         Force --disable-nss-crypt when --disable-crypt is given, with a
12621         warning if it was explicitly enabled.
12622         * configure: Regenerate.
12623         * config.make.in: New boolean substitution variable $(build-crypt).
12624         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12625         when $(build-crypt).
12626         * manual/install.texi: Document --disable-crypt.
12627         * INSTALL: Regenerate.
12628
12629         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12630         which is never set.
12631         * conform/Makefile: Only include libcrypt.a in
12632         linknamespace-libs-xsi and linknamespace-libs-XPG4
12633         when $(build-crypt).
12634         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12635         USE_CRYPT to 1 when $(build-crypt).
12636         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12637         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12638         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12639
12640 2018-06-29  Zack Weinberg  <zackw@panix.com>
12641
12642         * crypt/crypt.h, posix/unistd.h: Update comments and
12643         prototypes for crypt and crypt_r.
12644
12645         * manual/crypt.texi (Cryptographic Functions): New initial
12646         exposition.
12647         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
12648         (Unpredictable Bytes): Improve initial exposition.  Clarify error
12649         behavior of getentropy and getrandom.
12650         * manual/examples/genpass.c: Generate a salt using getentropy
12651         instead of the current time. Use hash $5$ (SHA-2-256).
12652         * manual/examples/testpass.c: Demonstrate validation against
12653         hashes generated with three different one-way functions.
12654
12655         * manual/intro.texi: crypt.texi does not need an overview
12656         anymore.
12657
12658         * manual/nss.texi, manual/memory.texi, manual/socket.texi
12659         * manual/terminal.texi: Consistently refer to "passphrases"
12660         * instead of "passwords", and to the "user database" instead
12661         * of the "password database".
12662         * manual/users.texi: Similarly.  Add notes about how actual
12663         passphrase hashes are now stored in the shadow database.
12664         Remove 20-year-old junk todo note.
12665
12666 2018-06-29  Zack Weinberg  <zackw@panix.com>
12667
12668         * manual/crypt.texi: Use a normal top-level @node declaration.
12669         Move most of the introductory text to the 'crypt' section.
12670         Move the example programs below the @deftypefun for 'crypt_r'.
12671         Move the 'getpass' section...
12672         * manual/terminal.texi: ...here.
12673
12674 2018-06-29  Zack Weinberg  <zackw@panix.com>
12675             Florian Weimer <fweimer@redhat.com>
12676
12677         * posix/unistd.h: Do not declare encrypt.
12678         (_XOPEN_CRYPT): Remove macro definition.
12679         (crypt): Declare only for _USE_MISC.
12680         * stdlib/stdlib.h: Do not declare setkey.
12681         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12682         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12683
12684         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12685         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12686         into compat symbols.  Don't define initial_perm if it's not
12687         going to be used.
12688         * crypt/cert.c: Link explicitly with the expected versions for
12689         setkey and encrypt.  If they are not available at all, mark
12690         the test as unsupported.
12691
12692         * sunrpc/des_crypt.c: Unconditionally block linkage with
12693         cbc_crypt and ecb_crypt for new binaries.
12694         * sunrpc/des_soft.c: Unconditionally block linkage with
12695         des_setparity for new binaries.
12696
12697         * manual/crypt.texi: Remove the entire "DES Encryption"
12698         section.  Also remove the paragraph talking about FIPS 140-2
12699         from the introduction.
12700         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
12701         of libgcrypt for "real" encryption, not DES.
12702         * manual/conf.texi (Constants for Sysconf): Mention that
12703         _XOPEN_CRYPT is no longer impelemented.
12704
12705         * conform/data/unistd.h-data: Remove crypt function declaration.
12706
12707 2018-06-29  Florian Weimer  <fweimer@redhat.com>
12708
12709         [BZ #23351]
12710         * malloc/hooks.c: Update comments on restoring of dumped heaps.
12711         (disallow_malloc_check): Remove variable.
12712         (__malloc_check_init): Adjust.
12713         (malloc_set_state): Update comment.
12714         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12715         declarations.
12716
12717 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12718
12719         [BZ #23140]
12720         * localedata/locales/ast_ES (mon): Rename to...
12721         (alt_mon): This.
12722         (mon): Import from CLDR (genitive case).
12723
12724 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
12725             Jakub Sitnicki  <jkbs@redhat.com>
12726
12727         [BZ #21812]
12728         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12729         on NLM_F_DUMP_INTR.
12730
12731 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12732
12733         * manual/llio.texi: Remove spurious space.
12734
12735 2018-06-28  Florian Weimer  <fweimer@redhat.com>
12736
12737         [BZ #23349]
12738         * time/bits/types/struct_timespec.h: Change header inclusion guard to
12739         _STRUCT_TIMESPEC.
12740
12741 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12742
12743         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12744         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12745         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12746         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12747         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12748         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12749         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12750
12751 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
12752
12753         [BZ #23266]
12754         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12755         Copy and null-terminate entries that are not terminated, in
12756         addition to empty ones.
12757
12758 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12759
12760         [BZ #18023]
12761         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12762         (extend_alloca_account): Remove.
12763         * manual/stdio.texi (Variable Arguments Output): Update comment.
12764
12765 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * nptl/sockperf.c: Remove file.
12768
12769 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12770
12771         [BZ #18023]
12772         * elf/dl-deps.c (_dl_map_object_deps): Use struct
12773         scratch_buffer instead of extend_alloca.
12774
12775 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12776
12777         [BZ #18023]
12778         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12779         scratch_buffer instead of extend_alloca.  Update comments.
12780
12781 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12782
12783         [BZ #18023]
12784         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12785         instead of extend_alloca.
12786
12787 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
12788
12789         [BZ #13888]
12790         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12791         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12792         /tmp.
12793         * scripts/test-installation.pl: Put temporary files in build
12794         directory, not /tmp.
12795         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12796         (CFLAGS-bug4.c): Likewise.
12797         (CFLAGS-bug5.c): Likewise.
12798         (CFLAGS-test-fseek.c): Likewise.
12799         (CFLAGS-test-popen.c): Likewise.
12800         (CFLAGS-test_rdwr.c): Likewise.
12801         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12802         /tmp.
12803         * stdio-common/bug4.c (main): Likewise.
12804         * stdio-common/bug5.c (main): Likewise.
12805         * stdio-common/test-fseek.c (TESTFILE): Likewise.
12806         * stdio-common/test-popen.c (do_test): Likewise.
12807         * stdio-common/test_rdwr.c (main): Likewise.
12808
12809 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
12810
12811         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12812         (sem_open): Set sem.newsem.pad to zero for valgrind.
12813
12814 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12815
12816         [BZ #20251]
12817         * NEWS: Mention fcntl64 addition.
12818         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12819         * login/utmp_file.c: Likewise.
12820         * sysdeps/posix/fdopendir.c: Likewise.
12821         * sysdeps/posix/opendir.c: Likewise.
12822         * sysdeps/unix/pt-fcntl.c: Likewise.
12823         * include/fcntl.h (__libc_fcntl64, __fcntl64,
12824         __fcntl64_nocancel_adjusted): New prototype.
12825         (__fcntl_nocancel_adjusted): Remove prototype.
12826         * io/Makefile (routines): Add fcntl64.
12827         (CFLAGS-fcntl64.c): New rule.
12828         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12829         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12830         * io/fcntl.h (fcntl64): Add prototype and redirect if
12831         __USE_FILE_OFFSET64 is defined.
12832         * io/fcntl64.c: New file.
12833         * manual/llio.text: Add a note for which commands fcntl acts a
12834         cancellation point.
12835         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12836         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12837         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12838         New symbols.
12839         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12840         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12841         non-LFS case.
12842         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12843         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12844         to __fcntl64_nocancel.
12845         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12846         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12847         to __fcntl64_nocancel.
12848         * sysdeps/generic/not-cancel.h: Likewise.
12849         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12850         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12851         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12852         (fcntl64): New symbol.
12853         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12854         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12855         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12858         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12859         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12860         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12861         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12862         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12863         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12864         fcntl64): Likewise.
12865         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12866         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12867         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12868         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12869         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12870         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12871         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12872         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12873         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12875         Likewise.
12876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12877         Likewise.
12878         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12879         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12880         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12881
12882 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12883
12884         Run thread shutdown functions in an explicit order.
12885         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12886         definition.
12887         (__libc_thread_freeres): Call thread shutdown functions
12888         explicitly.
12889         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12890         * include/string.h (__strerror_thread_freeres): Declare.
12891         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12892         arena_thread_freeres.  No longer static.  Remove thread shutdown
12893         hook registration.
12894         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12895         Declare.
12896         * resolv/res-close.c (__res_thread_freeres): Renamed from
12897         res_thread_freeres.  No longer static.  Remove thread shutdown
12898         hook registration.
12899         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12900         * resolv/resolv_conf.c (freeres): Remove incorrect section
12901         attribute and use libc_freeres_fn.
12902         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12903         strerror_thread_freeres.  No longer static.  Remove thread
12904         shutdown hook registration.
12905         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12906         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12907         shutdown hook registration.
12908         * Makerules (shlib.lds): Do not provide section boundary symbols
12909         for __libc_thread_subfreeres.
12910         * manual/memory.texi (Basic Allocation): Update comment.
12911
12912 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12913
12914         Remove always-defined _RPC_THREAD_SAFE_ macro.
12915         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12916         Do not define _RPC_THREAD_SAFE_.
12917         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12918         conditional.
12919         * sunrpc/clnt_perr.c: Likewise.
12920         * sunrpc/clnt_raw.c: Likewise.
12921         * sunrpc/clnt_simp.c: Likewise.
12922         * sunrpc/key_call.c: Likewise.
12923         * sunrpc/rpc_common.c: Likewise.
12924         * sunrpc/rpc_main.c: Likewise.
12925         * sunrpc/rpc_thread.c: Likewise.
12926         * sunrpc/svc.c: Likewise.
12927         * sunrpc/svc_raw.c: Likewise.
12928         * sunrpc/svc_simple.c: Likewise.
12929         * sumrpc/svcauth_des.c: Likewise.
12930
12931 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12932
12933         * libio/Makefile (tests-internal): Add tst-vtables,
12934         tst-vtables-interposed.
12935         * libio/tst-vtables.c: New file.
12936         * libio/tst-vtables-common.c: Likewise.
12937         * libio/tst-vtables-interposed.c: Likewise.
12938
12939 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12940
12941         * support/support_test_main.c (support_test_main): Only call
12942         setvbuf if not disables.
12943         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12944         * support/test-driver.h (struct test_config): Add no_setvbuf member.
12945
12946 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12947
12948         [BZ #23313]
12949         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12950
12951 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12952
12953         [BZ #18023]
12954         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12955         Use struct scratch_buffer instead of extend_alloca.
12956
12957 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12958
12959         [BZ #18023]
12960         * nss/getent.c (initgroups_keys): Use dynarray instead of
12961         extend_alloca.
12962
12963 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12964
12965         [BZ #18023]
12966         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12967         Use struct scratch_buffer instead of extend_alloca.
12968
12969 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12970
12971         [BZ #18023]
12972         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12973         back to malloc directly, without stack allocations.
12974
12975 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12976
12977         [BZ #18023]
12978         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12979         of extend_alloca.
12980
12981 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12982
12983         [BZ #18023]
12984         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12985         of extend_alloca.
12986         * nscd/hstcache.c (addhstbyX): Likewise.
12987         * nscd/pwdcache.c (addpwbyX): Likewise.
12988         * nscd/servicescache.c (addservbyX): Likewise.
12989
12990 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12991
12992         [BZ #18023]
12993         * nscd/connections.c (read_cmdline): New function.
12994         (restart): Use it.  Update comment.
12995
12996 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12997
12998         [BZ #23140]
12999         * localedata/locales/csb_PL (mon): Rename to...
13000         (alt_mon): This.
13001         (abmon): Rename to...
13002         (ab_alt_mon): This.
13003         (mon): Add with proper genitive forms, copy from Wikipedia.
13004         (abmon): Likewise.
13005
13006 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
13007
13008         [BZ #19485]
13009         * localedata/locales/csb_PL (mon): Fix typos:
13010         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13011         (yesstr): Add, value is "jo".
13012         (nostr): Add, value is "nié".
13013
13014 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13015
13016         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13017         all log1p and significand functions on m680x0.
13018         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13019         of s_significand.c..
13020         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13021         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13022         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13023         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13024         s_log1p.c and include it..
13025
13026 2018-06-21  Vincent Chen  <vincentc@andestech.com>
13027
13028         * elf/elf.h (R_NDS32_NONE): New define.
13029         (R_NDS32_32_RELA): Likewise.
13030         (R_NDS32_COPY): Likewise.
13031         (R_NDS32_GLOB_DAT): Likewise.
13032         (R_NDS32_JUMP_SLOT): Likewise.
13033         (R_NDS32_RELATIVE): Likewise.
13034         (R_NDS32_TLS_TPOFF): Likewise.
13035         (R_NDS32_TLS_DESC): Likewise.
13036
13037 2018-06-21  Mark Wielaard  <mark@klomp.org>
13038
13039         * elf/elf.h (R_BPF_MAP_FD): Removed.
13040         (R_BPF_64_64, R_BPF_64_32): New.
13041
13042 2018-06-21  Florian Weimer  <fweimer@redhat.com>
13043
13044         [BZ #23253]
13045         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13046         Renamed from libc_feholdsetround_ctx.
13047         (default_libc_feresetround_ctx): Renamed from
13048         libc_feresetround_ctx.
13049         (default_libc_feholdsetround_noex_ctx): Renamed from
13050         libc_feholdsetround_noex_ctx.
13051         (default_libc_feresetround_noex_ctx): Renamed from
13052         libc_feresetround_noex_ctx.
13053         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13054         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13055         forwardning to the old implementations under the new names.
13056         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13057         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13058         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13059         (libc_feresetround_ctx): Forward to default implements for i386
13060         and MATH_SET_BOTH_ROUNDING_MODES.
13061         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13062         Add -DMATH_SET_BOTH_ROUNDING_MODES.
13063
13064 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * string/tst-cmp.c: Include <libc-diag.h>.
13067         (strncmp_max): Disable -Wstringop-overflow= around call to
13068         strncmp.
13069         (strncasecmp_max): Disable -Wstringop-overflow= around call to
13070         strncasecmp.
13071
13072         * string/bug-strpbrk1.c: Include <libc-diag.h>.
13073         (main): Disable -Wunused-value around call to strpbrk.
13074         * string/bug-strspn1.c: Include <libc-diag.h>.
13075         (main): Disable -Wunused-value around call to strspn.
13076
13077 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13078             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13079
13080         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13081         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13082
13083 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13084
13085         * math/Makefile (libm-calls): Move s_significandF to...
13086         (gen-libm-calls): ... here.
13087         * math/s_significand_template.c: New file.
13088         * math/s_significand.c: Removed.
13089         * math/s_significandf.c: Removed.
13090         * math/s_significandl.c: Removed.
13091         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13092         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13093
13094         * math/e_exp2_template.c (declare_mgen_finite_alias,
13095         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13096         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13097         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13098
13099 2018-06-20  Florian Weimer  <fweimer@redhat.com>
13100
13101         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13102
13103 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
13104
13105         [BZ #23280]
13106         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13107         floating-point number to strtod functions rather than possibly
13108         negating result of those functions.
13109         * stdio-common/tst-scanf-round.c: New file.
13110         * stdio-common/Makefile (tests): Add tst-scanf-round.
13111         ($(objpfx)tst-scanf-round): Depend on $(libm).
13112
13113 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13114
13115         * sysdeps/mach/hurd/localplt.data: Move to...
13116         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13117         R_386_GLOB_DAT like on Linux i386.
13118
13119 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13120
13121         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13122         (SHM_STAT_ANY): New macro.
13123         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13124         (SHM_STAT_ANY): Likewise.
13125         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13126         (SHM_STAT_ANY): Likewise.
13127         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13128         (SHM_STAT_ANY): Likewise.
13129         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13130         (SHM_STAT_ANY): Likewise.
13131         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13132         (SHM_STAT_ANY): Likewise.
13133         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13134         (SHM_STAT_ANY): Likewise.
13135         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13136         (SHM_STAT_ANY): Likewise.
13137         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13138         (SHM_STAT_ANY): Likewise.
13139         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13140         (SHM_STAT_ANY): Likewise.
13141         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13142         (SHM_STAT_ANY): Likewise.
13143         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13144         (SHM_STAT_ANY): Likewise.
13145
13146         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13147         (SEM_STAT_ANY): New macro.
13148         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13149         (SEM_STAT_ANY): Likewise.
13150         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13151         (SEM_STAT_ANY): Likewise.
13152         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13153         (SEM_STAT_ANY): Likewise.
13154         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13155         (SEM_STAT_ANY): Likewise.
13156         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13157         (SEM_STAT_ANY): Likewise.
13158         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13159         (SEM_STAT_ANY): Likewise.
13160         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13161         (SEM_STAT_ANY): Likewise.
13162         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13163         (SEM_STAT_ANY): Likewise.
13164         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13165         (SEM_STAT_ANY): Likewise.
13166
13167         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13168         (MSG_STAT_ANY): New macro.
13169         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13170         (MSG_STAT_ANY): Likewise.
13171         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13172         (MSG_STAT_ANY): Likewise.
13173         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13174         (MSG_STAT_ANY): Likewise.
13175         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13176         (MSG_STAT_ANY): Likewise.
13177         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13178         (MSG_STAT_ANY): Likewise.
13179         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13180         (MSG_STAT_ANY): Likewise.
13181         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13182         (MSG_STAT_ANY): Likewise.
13183         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13184         (MSG_STAT_ANY): Likewise.
13185         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13186         (MSG_STAT_ANY): Likewise.
13187
13188         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13189         (MAP_TYPE): Change value to 0x2b.
13190
13191 2018-06-18  Florian Weimer  <fweimer@redhat.com>
13192
13193         [BZ #15722]
13194         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13195         socket with SOCK_CLOEXEC.
13196
13197 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
13198
13199         [BZ #23303]
13200         * sysdeps/powerpc/powerpc64/le/Makefile
13201         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13202         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13203         (gnulib-tests): Also add $(f128-loader-link) for
13204         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13205
13206 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13207
13208         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13209         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13210         of sendfile.
13211         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13212         (sendfile64): New strong alias.
13213         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13214         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13215         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13216         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13217         attribute.
13218         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13219         ___pthread_get_cleanup_stack.
13220         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13221         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13222         * mach/shortcut.awk: Make syscall stubs include
13223         <mach-shortcuts-hidden.h> and add hidden definition.
13224         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13225         (__mach_msg): Add hidden prototype.
13226         * mach/msg.c: Include <mach.h>.
13227         (__mach_msg): Add hidden definition.
13228         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13229         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13230         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13231         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13232         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13233         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13234         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13235         prototype and definition.
13236         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13237         hidden target for _hurd_self_sigstate.
13238
13239 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
13240
13241         [BZ #23007]
13242         * stdlib/tst-strtod-nan-sign-main.c: New file.
13243         * stdlib/tst-strtod-nan-sign.c: Likewise.
13244         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13245         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13246         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13247         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13248         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13249
13250 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
13251
13252         [BZ #23007]
13253         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13254         appropriate sign.
13255
13256 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13257
13258         [BZ #23290]
13259         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13260         that the result stays within the ISO-8859-1 range.
13261         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13262         characters are defined in IBM273.
13263
13264 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13265
13266         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13267         __mach_task_self): Remove attribute_hidden.
13268
13269 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13272         ignore -Wrestrict for one test.
13273
13274 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
13275             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13276
13277         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13278
13279 2018-06-14  Florian Weimer  <fweimer@redhat.com>
13280
13281         * scripts/update-abilist.sh: Accept empty list of files to patch.
13282
13283 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13284
13285         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13286         test-xfail-check-abi-libmachuser): Add.
13287         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13288         __libc_read and __libc_write to __read and __write.
13289         * sysdeps/hurd/include/hurd/port.h: New file.
13290         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13291         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13292         __thread_switch, __evc_wait): Move declarations to...
13293         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13294         attribute_hidden.
13295         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13296         use PLT to call _hurd_self_sigstate.
13297
13298 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
13299
13300         [BZ #23279]
13301         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13302         MAX_EXP as overflowing.
13303         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13304         overflow flag.
13305         (round_str): Output also whether result overflows in each rounding
13306         mode.
13307         * stdlib/tst-strtod-round-data: Add more tests.
13308         * stdlib/tst-strtod-round-data.h: Regenerated.
13309         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13310         (TEST): Handle extra arguments for overflow flags.
13311         (struct test_overflow): New type.
13312         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13313         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
13314         (test_in_one_mode): Take argument with overflow information.
13315         (do_test): Update calls to test_in_one_mode.
13316
13317 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13318
13319         * elf/dl-load (_dl_dst_substitute): Correct comment.
13320         (_dl_dst_count): Likewise.
13321
13322         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13323         lll_futex_timed_wait.
13324
13325 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
13326
13327         [BZ #23277]
13328         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13329         attribute.
13330         * math/test-nan-const.c: New file.
13331         * math/Makefile (tests): Add test-nan-const.
13332         (CFLAGS-test-nan-const.c): New variable.
13333
13334 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13335
13336         * benchtests/scripts/compare_strings.py (process_results): Add
13337         funcs argument.  Compare only functions which are selected.
13338         (main): Check if base function is among selected functions.
13339         Pass selected functions to process_results.
13340         (__main__): Add -f/--functions argument.
13341
13342 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
13343             Hongbo Zhang  <hongbo.zhang@linaro.org>
13344
13345         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13346         __memcpy_falkor for phecda core.
13347         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13348         __memmove_falkor for phecda core.
13349         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13350         __memset_falkor for phecda core.
13351         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13352         for phecda core.
13353         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13354         macro to identify phecda core.
13355
13356 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13357             Andreas Schwab  <schwab@suse.de>
13358             Dmitry V. Levin  <ldv@altlinux.org>
13359             Florian Weimer  <fweimer@redhat.com>
13360
13361         [BZ #23102]
13362         [BZ #21942]
13363         [BZ #18018]
13364         [BZ #23259]
13365         CVE-2011-0536
13366         * elf/dl-dst.h: Remove DL_DST_COUNT.
13367         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13368         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13369         (is_dst): Comment.  Support ELF gABI.
13370         (_dl_dst_count): Comment.  Simplify and count DSTs.
13371         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
13372         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13373         locals.
13374
13375 2018-06-12  Zack Weinberg  <zackw@panix.com>
13376
13377         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13378         * sysdeps/unix/sysv/linux/dl-sysdep.c
13379         Include not-cancel.h.  Use __close_nocancel instead of __close,
13380         __open64_nocancel instead of __open, __read_nocancel instead of
13381         __libc_read, and __write_nocancel instead of __libc_write.
13382
13383         * csu/check_fds.c (check_one_fd)
13384         * sysdeps/posix/fdopendir.c (__fdopendir)
13385         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13386         instead of __fcntl and/or __libc_fcntl.
13387
13388         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13389         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13390         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13391         Use __open64_nocancel instead of __open_nocancel.
13392
13393         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13394         hidden_proto declarations to the end and issue them if either
13395         IS_IN(libc) or IS_IN(rtld).
13396         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13397         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13398         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13399         read_nocancel, waitpid_nocancel, write_nocancel.
13400
13401         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13402         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13403         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13404
13405         * nptl/pt-fcntl.c: New file.
13406         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13407         (libpthread-routines): Add pt-fcntl.
13408         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13409         (__libc_fcntl): Remove attribute_hidden.
13410         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13411         __fcntl_nocancel_adjusted, not fcntl_common.
13412         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13413         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13414         to fcntl_nocancel.c.
13415         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13418         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13419
13420         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13421         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13422         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13423         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13424         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13425         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13426         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13427         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13428         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13429         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13430         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13431         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13432         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13433         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13434         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13435         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13436         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13437         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13438         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13439         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13440
13441         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13442         libpthread-routines.
13443         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13444         defines nothing.
13445
13446         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13447         __libc_read, and __write instead of __libc_write.  Define
13448         __open64 in addition to __open.
13449
13450 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13451
13452         [BZ #23250]
13453         [BZ #10686]
13454         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13455         to _private_tm[3] and add __glibc_reserved2.
13456         Add _Static_assert of offset of __private_ss == 0x30.
13457         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13458         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13459
13460 2018-06-12  Florian Weimer  <fweimer@redhat.com>
13461
13462         x86: Make strncmp usable from rtld.
13463         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13464         __strncmp_ia32 if in libc (and not in rtld).
13465         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13466         strncmp if not in libc (and not to __strncmp_sse2).
13467
13468 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
13469
13470         [BZ #23140]
13471         * localedata/locales/gd_GB (mon): Rename to...
13472         (alt_mon): This.
13473         (mon): Import from CLDR (genitive case).
13474         * localedata/locales/hsb_DE (mon): Rename to...
13475         (alt_mon): This.
13476         (mon): Import from CLDR (genitive case).
13477         * localedata/locales/wa_BE (mon): Rename to...
13478         (alt_mon): This.
13479         (mon): Add, fill with the proper genitive forms, but CLDR data
13480         is incomplete; completed according to the comments in this file.
13481         (d_t_fmt): Do not use "di" before the month name, no longer needed.
13482
13483         * localedata/locales/wa_BE (country_name): Reword
13484         "Beljike" -> "Beldjike".
13485
13486 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
13487
13488         [BZ #23272]
13489         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13490         cases of non-finite arguments.
13491         * math/libm-test-fma.inc (fma_test_data): Add more tests.
13492
13493 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
13494
13495         [BZ #23174]
13496         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13497
13498 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13499
13500         [BZ #23264]
13501         * include/unistd.h (__execvpex): New prototype.
13502         * posix/Makefile (tests): Add tst-spawn4.
13503         (tests-internal): Add tst-spawn4-compat.
13504         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13505         * posix/tst-spawn4-compat.c: New file.
13506         * posix/tst-spawn4.c: Likewise.
13507         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13508         binaries as shell scripts.
13509         * sysdeps/posix/spawni.c (__spawni): Likewise.
13510
13511 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13512
13513         [BZ #23145]
13514         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13515         ($(all-built-dso:=.dynsym): New target.
13516         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13517         ($(objpfx)check-initfini.out): New target.
13518         (generated): Add check-initfini.out.
13519         * scripts/check-initfini.awk: New file.
13520         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13521         (_fini): Likewise.
13522         * sysdeps/alpha/crti.S (_init): Mark as hidden.
13523         (_fini): Likewise.
13524         * sysdeps/arm/crti.S (_init): Mark as hidden.
13525         (_fini): Likewise.
13526         * sysdeps/hppa/crti.S (_init): Mark as hidden.
13527         (_fini): Likewise.
13528         * sysdeps/i386/crti.S (_init): Mark as hidden.
13529         (_fini): Likewise.
13530         * sysdeps/ia64/crti.S (_init): Mark as hidden.
13531         (_fini): Likewise.
13532         * sysdeps/m68k/crti.S (_init): Mark as hidden.
13533         (_fini): Likewise.
13534         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13535         (_fini): Likewise.
13536         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13537         (_fini): Likewise.
13538         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13539         (_fini): Likewise.
13540         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13541         (_fini): Likewise.
13542         * sysdeps/nios2/crti.S (_init): Mark as hidden.
13543         (_fini): Likewise.
13544         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13545         (_fini): Likewise.
13546         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13547         (_fini): Likewise.
13548         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13549         (_fini): Likewise.
13550         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13551         (_fini): Likewise.
13552         * sysdeps/sh/crti.S (_init): Mark as hidden.
13553         (_fini): Likewise.
13554         * sysdeps/sparc/crti.S (_init): Mark as hidden.
13555         (_fini): Likewise.
13556         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13557         (_fini): Likewise.
13558
13559 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13560
13561         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13562         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13563         and TF redirection to KFtype and KF only when the default
13564         long double type is not the IEEE 128-bit floating point type.
13565
13566 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
13567
13568         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13569         macro.
13570         (HWCAP_USCAT): Likewise.
13571         (HWCAP_ILRCPC): Likewise.
13572         (HWCAP_FLAGM): Likewise.
13573         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13574         Increase to 28.
13575         (_dl_aarch64_cap_flags): Add new flag names.
13576
13577         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13578         (MAP_FIXED_NOREPLACE): New macro.
13579         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13580         (MAP_FIXED_NOREPLACE): Likewise.
13581         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13582         (MAP_FIXED_NOREPLACE): Likewise.
13583         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13584         (MAP_FIXED_NOREPLACE): Likewise.
13585         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13586         (MAP_FIXED_NOREPLACE): Likewise.
13587         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13588         (MAP_FIXED_NOREPLACE): Likewise.
13589         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13590         (MAP_FIXED_NOREPLACE): Likewise.
13591         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13592         (MAP_FIXED_NOREPLACE): Likewise.
13593         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13594         (MAP_FIXED_NOREPLACE): Likewise.
13595         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13596         (MAP_FIXED_NOREPLACE): Likewise.
13597         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13598         (MAP_FIXED_NOREPLACE): Likewise.
13599         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13600         (MAP_FIXED_NOREPLACE): Likewise.
13601         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13602         (MAP_FIXED_NOREPLACE): Likewise.
13603         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13604         (MAP_FIXED_NOREPLACE): Likewise.
13605         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13606         (MAP_FIXED_NOREPLACE): Likewise.
13607
13608         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13609         version to 4.17.
13610
13611 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
13612
13613         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13614         version to 4.17
13615
13616 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13617
13618         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13619         int.
13620         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13621
13622 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13623
13624         * benchtests/scripts/compare_string.py: (process_results) Catch
13625         exception in non-existent base_func and catch exception in
13626         non-existent attribute.
13627         (parse_file) Catch exception if input file does not exist.
13628
13629 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13630
13631         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13632         options to avoid diff calculation and omit header, respectively.
13633         (main): process --no-diff and --no-header
13634
13635 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13636             H.J. Lu  <hongjiu.lu@intel.com>
13637
13638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13639         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13640         wcsncmp-sse2.
13641         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13642         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13643         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13644         and __wcsncmp_sse2.
13645         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13646         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13647         AVX unaligned load is fast and vzeroupper is preferred.
13648         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13649         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13650         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13651         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13652         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13653         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13654         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13655         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13656         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13657         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13658         is undefined.
13659
13660 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13661
13662         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13663         configuring with --disable-multi-arch, building with
13664         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13665         Haswell-era CPU.
13666
13667 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13668
13669         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13670         results from building with “-march=x86-64 -mtune=generic
13671         -mfpmath=sse” and running on a Haswell-era CPU.
13672
13673 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
13674
13675         [BZ #18473]
13676         * soft-fp/sqrttf2.c: Remove file.
13677         * soft-fp/sqrtdf2.c: Move to ....
13678         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
13679         <shlib-compat.h>.
13680         (__sqrtdf2): Make conditional on
13681         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13682         symbol.
13683         * soft-fp/sqrtsf2.c: Move to ....
13684         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
13685         <shlib-compat.h>.
13686         (__sqrtsf2): Make conditional on
13687         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13688         symbol.
13689         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13690         (gcc-double-routines): Remove sqrtdf2.
13691         (gcc-quad-routines): Remove sqrttf2.
13692         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13693         Do not filter out sqrtsf2 and sqrtdf2.
13694         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13695         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13696
13697 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13698
13699         * sysdeps/generic/libcidn.abilist: Remove file.
13700
13701 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13702
13703         [BZ #23236]
13704         * libio/strfile.h (struct _IO_str_fields): Rename members to
13705         discourage their use and add comment.
13706         (_IO_STR_DYNAMIC): Remove unused macro.
13707         * libio/strops.c (_IO_str_init_static_internal): Do not use
13708         callback pointers.  Call malloc and free.
13709         (_IO_str_overflow): Do not use callback pointers.  Call malloc
13710         and free.
13711         (enlarge_userbuf): Likewise.
13712         (_IO_str_finish): Call free.
13713         * libio/wstrops.c (_IO_wstr_init_static): Initialize
13714         _allocate_buffer_unused.
13715         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
13716         and free.
13717         (enlarge_userbuf): Likewise.
13718         (_IO_wstr_finish): Call free.
13719         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13720         _allocate_buffer_unused, _free_buffer_unused.
13721         * libio/memstream.c (__open_memstream): Likewise.
13722         * libio/vasprintf.c (_IO_vasprintf): Likewise.
13723         * libio/wmemstream.c (open_wmemstream): Likewise.
13724
13725 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
13726
13727         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13728         AMD Ryzen 7 1800X.
13729
13730 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13731
13732         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13733         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13734         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13735         New file.
13736         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13737         Likewise.
13738         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13739
13740 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13741
13742         * support/Makefile (libsupport-routines): Add
13743         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13744         xpthread_barrierattr_setpshared.
13745         * support/xpthread_barrierattr_destroy.c: New file.
13746         * support/xpthread_barrierattr_init.c: Likewise.
13747         * support/xpthread_barrierattr_setpshared.c: Likewise.
13748
13749 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13750
13751         [BZ #23206]
13752         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13753         _r_debug and update DT_DEBUG for debugger.
13754
13755 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13756
13757         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13758         (tst-strtod5i.out): Likewise.
13759
13760 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
13761
13762         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13763         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13764         (sparc64-quad-routines): New variable.  Moved from ....
13765         [$(subdir) = soft-fp] (sysdep_routines): Add
13766         $(sparc64-quad-routines).  Moved from ....
13767         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
13768         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
13769         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13770         moved from ....
13771         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
13772         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13773         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13774         * sysdeps/sparc/sparc64/qp_add.c: ... here.
13775         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13776         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13777         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13778         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13779         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13780         * sysdeps/sparc/sparc64/qp_div.c: ... here.
13781         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13782         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13783         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13784         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13785         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13786         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13787         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13788         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13789         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13790         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13791         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13792         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13793         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13794         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13795         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13796         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13797         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13798         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13799         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13800         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13801         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13802         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13803         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13804         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13805         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13806         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13807         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13808         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13809         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13810         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13811         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13812         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13813         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13814         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13815         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13816         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13817         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13818         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13819         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13820         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13821         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13822         * sysdeps/sparc/sparc64/qp_util.c: ... here.
13823         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13824         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13825         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13826         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13827         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13828         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13829
13830         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13831         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13832         (sparc32-quad-routines): New variable.  Moved from ....
13833         [$(subdir) = soft-fp] (sysdep_routines): Add
13834         $(sparc32-quad-routines).  Moved from ....
13835         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
13836         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13837         moved from ....
13838         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
13839         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13840         * sysdeps/sparc/sparc32/q_add.c: ... here.
13841         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13842         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13843         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13844         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13845         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13846         * sysdeps/sparc/sparc32/q_div.c: ... here.
13847         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13848         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13849         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13850         * sysdeps/sparc/sparc32/q_feq.c: ... here.
13851         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13852         * sysdeps/sparc/sparc32/q_fge.c: ... here.
13853         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13854         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13855         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13856         * sysdeps/sparc/sparc32/q_fle.c: ... here.
13857         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13858         * sysdeps/sparc/sparc32/q_flt.c: ... here.
13859         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13860         * sysdeps/sparc/sparc32/q_fne.c: ... here.
13861         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13862         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13863         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13864         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13865         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13866         * sysdeps/sparc/sparc32/q_mul.c: ... here.
13867         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13868         * sysdeps/sparc/sparc32/q_neg.c: ... here.
13869         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13870         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13871         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13872         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13873         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13874         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13875         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13876         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13877         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13878         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13879         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13880         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13881         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13882         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13883         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13884         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13885         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13886         * sysdeps/sparc/sparc32/q_sub.c: ... here.
13887         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13888         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13889         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13890         * sysdeps/sparc/sparc32/q_util.c: ... here.
13891         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13892         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13893         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13894         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13895
13896 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13897             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13898
13899         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
13900         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13901         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13902         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13903
13904 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13907         powerpc/soft-fp.
13908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13909         Likewise.
13910         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13911         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13912
13913 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13914
13915         [BZ #23171]
13916         * math/math.h [C++] (iseqsig): Fix parameter type for the long
13917         double version.
13918
13919 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13920
13921         * sysdeps/sh/Implies: Remove sh/soft-fp.
13922         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13923         * sysdeps/sh/sfp-machine.h: ... here.
13924
13925 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13926
13927         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13928         (__mempcpy_erms): Skip zero length.
13929         (__memmove_erms): Likewise.
13930         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13931         (__memset_erms): Likewise.
13932
13933 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13934
13935         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13936         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13937         Add functions moved from ....
13938         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
13939         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
13940         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13941         from ....
13942         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
13943         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13944         * sysdeps/alpha/e_sqrtl.c: ... here.
13945         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13946         * sysdeps/alpha/local-soft-fp.h: ... here.
13947         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13948         * sysdeps/alpha/ots_add.c: ... here.
13949         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13950         * sysdeps/alpha/ots_cmp.c: ... here.
13951         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13952         * sysdeps/alpha/ots_cmpe.c: ... here.
13953         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13954         * sysdeps/alpha/ots_cvtqux.c: ... here.
13955         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13956         * sysdeps/alpha/ots_cvtqx.c: ... here.
13957         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13958         * sysdeps/alpha/ots_cvttx.c: ... here.
13959         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13960         * sysdeps/alpha/ots_cvtxq.c: ... here.
13961         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13962         * sysdeps/alpha/ots_cvtxt.c: ... here.
13963         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13964         * sysdeps/alpha/ots_div.c: ... here.
13965         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13966         * sysdeps/alpha/ots_mul.c: ... here.
13967         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13968         * sysdeps/alpha/ots_nintxq.c: ... here.
13969         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13970         * sysdeps/alpha/ots_sub.c: ... here.
13971         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13972         * sysdeps/alpha/sfp-machine.h: ... here.
13973
13974 2018-05-23  Florian Weimer  <fweimer@redhat.com>
13975
13976         [BZ #19728]
13977         [BZ #19729]
13978         [BZ #22247]
13979         CVE-2016-6261
13980         CVE-2016-6263
13981         CVE-2017-14062
13982         Switch to extern IDNA implementation (libidn2).
13983         * libidn: Remove subdirectory.
13984         * LICENSES: Do not mention licensing conditions for the removed
13985         libidn code.
13986         * config.h.in (HAVE_LIBIDN): Remove.
13987         * include/dlfcn.h (__libc_dlopen): Update comment.
13988         * include/idna.h: Remove file.
13989         * inet/Makefile (routines): Add idna.
13990         (tests-static, tests-internal): Add tst-idna_name_classify.
13991         (LOCALES): Generate locales for tests.
13992         (tst-idna_name_classify.out): Depend on generated locales.
13993         * inet/idna_name_classify.c: New file.
13994         * inet/tst-idna_name_classify.c: Likewise.
13995         * inet/net-internal.h (__idna_to_dns_encoding)
13996         (__idna_from_dns_encoding): Declare.
13997         * inet/net-internal.h (enum idna_name_classification): Define.
13998         (__idna_name_classify): Declare.
13999         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14000         __idna_from_dns_encoding.
14001         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14002         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
14003         name as a fallback in case of encoding errors.
14004         (getnameinfo): Use DEPRECATED_NI_IDN.
14005         * inet/idna.c: New file.
14006         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14007         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14008         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14009         (modules-names): Add tst-no-libidn2.
14010         (extra-test-objs): Add tst-no-libidn2.os.
14011         (LDFLAGS-tst-no-libidn2.so): Set soname.
14012         (LOCALES): Set, and generate locales.
14013         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14014         (tst-resolv-ai_idn-latin1): Likewise.
14015         (tst-resolv-ai_idn-nolibidn2): Likewise.
14016         (tst-resolv-ai_idn.out): Depend on locales.
14017         (tst-resolv-ai_idn-latin1.out): Depend on locales.
14018         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14019         tst-no-libidn2.so.
14020         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14021         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14022         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14023         * resolv/tst-resolv-ai_idn.c: New file.
14024         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14025         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14026         * resolv/tst-no-libidn2.c: Likewise.
14027         * support/support_format_addrinfo.c (format_ai_flags): Do not
14028         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14029         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14030         (gaih_inet): Call __idna_to_dns_encoding and
14031         __idna_from_dns_encoding, and use the original (punycode) name if
14032         __idna_from_dns_encoding fails due to an encoding error.
14033         (getaddrinfo): Use DEPRECATED_AI_IDN.
14034         * sysdeps/unix/inet/Subdirs (libidn): Remove.
14035         * sysdeps/unix/inet/configure: Remove file.
14036         * sysdeps/unix/inet/configure.ac: Likewise.
14037
14038 2018-05-23  Florian Weimer  <fweimer@redhat.com>
14039
14040         Implement allocate_once.
14041         * include/allocate_once.h: New file.
14042         * misc/allocate_once.c: Likewise.
14043         * misc/tst-allocate_once.c: Likewise.
14044         * misc/Makefile (routines): Add allocate_once.
14045         (tests-internal): Add tst-allocate_once.
14046         (generated): Add tst-allocate_once.mtrace,
14047         tst-allocate_once-mem.out.
14048         (tests-special): Add tst-allocate_once-mem.out.
14049         (tst-allocate_once-ENV): Set MALLOC_TRACE.
14050         (tst-allocate_once-mem.out): Call mtrace.
14051         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14052
14053 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14054
14055         [BZ #23196]
14056         * string/test-memcpy.c (do_test1): New function.
14057         (test_main): Call it.
14058
14059 2018-05-23  Andreas Schwab  <schwab@suse.de>
14060
14061         [BZ #23196]
14062         CVE-2018-11237
14063         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14064         (L(preloop_large)): Save initial destination pointer in %r11 and
14065         use it instead of %rax after the loop.
14066         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14067
14068 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14071         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14072         -I../soft-fp.  Moved from ....
14073         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
14074         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14075         * sysdeps/aarch64/e_sqrtl.c: ... here.
14076         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14077         * sysdeps/aarch64/sfp-machine.h: ... here.
14078
14079         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14080         -Wmaybe-uninitialized around access to fq[0].
14081         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14082         Likewise.
14083
14084         [BZ #18471]
14085         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14086         aliases for non-libc case of versioned symbols.
14087         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14088         (llseek): Define as compat symbol if
14089         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14090         with link warning.
14091         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14092         Make into a compat symbol, disabled for minimum symbol version
14093         GLIBC_2.28 and later.
14094         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14095
14096 2018-05-22  Florian Weimer  <fweimer@redhat.com>
14097
14098         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14099         not add -mpreferred-stack-boundary=4.
14100         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14101         (stack-align-test-flags): Likewise.
14102         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14103         Likewise.
14104         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14105         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14106         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14107         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14108         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14109         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14110         (CFLAGS-tst-align2.c): Likewise.
14111
14112 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14113
14114         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14115         (index_arch_Prefer_FSRM): Likewise.
14116         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14117         Also check Prefer_FSRM.
14118         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14119         Also return OPTIMIZE (erms) for Prefer_FSRM.
14120
14121 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14122
14123         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14124         (index_cpu_FSRM): Likewise.
14125         (reg_FSRM): Likewise.
14126
14127 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
14128
14129         * math/gen-tgmath-tests.py: Import sys.
14130         (Tests.__init__): Initialize macros_seen.
14131         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
14132         if requested to do so for this macro.
14133         (Tests.add_all_tests): Take argument for macro for which to
14134         generate tests.
14135         (Tests.check_macro_list): New function.
14136         (main): Handle check-list argument and argument specifying macro
14137         for which to generate tests.
14138         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14139         [PYTHON] (tgmath3-macro-tests): Likewise.
14140         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14141         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14142         not test-tgmath3.c.
14143         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14144         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14145         to CFLAGS.
14146         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14147         [PYTHON] ($(foreach
14148         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
14149         rule.
14150         [PYTHON] (tests-special): Add
14151         $(objpfx)test-tgmath3-macro-list.out.
14152         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14153
14154         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14155         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14156         later.
14157
14158         [BZ #22639]
14159         * time/tzset.c (SECSPERDAY): Cast to time_t.
14160         * time/tst-y2039.c: New file.
14161         * time/Makefile (tests): Add tst-y2039.
14162
14163 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
14164
14165         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14166         (PREFETCH_ONE_SET): Remove duplicate line.
14167
14168 2018-05-17  Florian Weimer  <fweimer@redhat.com>
14169
14170         * sysdeps/generic/math-type-macros-double.h: Include
14171         <math-nan-payload-double.h> after <libm-alias-double.h>.
14172         * sysdeps/generic/math-type-macros-float.h: Include
14173         <math-nan-payload-float.h> after <libm-alias-float.h>.
14174         * sysdeps/generic/math-type-macros-float128.h: Include
14175         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14176         * sysdeps/generic/math-type-macros-ldouble.h: Include
14177         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14178
14179 2018-05-17  Andreas Schwab  <schwab@suse.de>
14180
14181         * resolv/res_send.c (__res_context_send): Don't set errno when
14182         returing error after malloc failure.
14183
14184 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         * nptl/allocatestack.c (allocate_stack): Remove the
14187         !__ASSUME_PRIVATE_FUTEX paths.
14188         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14189         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14190         Likewise.
14191         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14192         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14193         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14194         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14195         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14196         !__ASSUME_PRIVATE_FUTEX path.
14197         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14198         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14199         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14200         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14201         !__ASSUME_PRIVATE_FUTEX macros.
14202         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14203         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14204         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14205         * sysdeps/unix/sysv/linux/kernel-features.h
14206         (__ASSUME_PRIVATE_FUTEX): Removed.
14207
14208 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
14209
14210         * math/Makefile (libm-narrow-fns): Add div.
14211         (libm-test-funcs-narrow): Likewise.
14212         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14213         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14214         * math/gen-auto-libm-tests.c (test_functions): Add div.
14215         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14216         (NARROW_DIV_ROUND_TO_ODD): Likewise.
14217         (NARROW_DIV_TRIVIAL): Likewise.
14218         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14219         macro.
14220         (__ddivl): Likewise.
14221         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14222         ddiv.
14223         (CFLAGS-nldbl-ddiv.c): New variable.
14224         (CFLAGS-nldbl-fdiv.c): Likewise.
14225         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14226         __nldbl_ddivl.
14227         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14228         prototype.
14229         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14230         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14231         * math/auto-libm-test-in: Add tests of div.
14232         * math/auto-libm-test-out-narrow-div: New generated file.
14233         * math/libm-test-narrow-div.inc: New file.
14234         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14235         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14236         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14237         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14238         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14239         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14240         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14241         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14242         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14243         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14244         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14245         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14246         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14247         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14248         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14249         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14250         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14251         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14252         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14253         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14254         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14255         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14256         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14257         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14258         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14259         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14260         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14261         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14262         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14263         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14264         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14265         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14270         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14271         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14272         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14273         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14274         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14275         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14276         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14277         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14278
14279 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14280
14281         [BZ #23178]
14282         * nscd/nscd-client.h (sendfileall): Remove prototype.
14283         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14284         (handle_request): Use writeall instead of sendfileall.
14285         * nscd/aicache.c (addhstaiX): Likewise.
14286         * nscd/grpcache.c (cache_addgr): Likewise.
14287         * nscd/hstcache.c (cache_addhst): Likewise.
14288         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14289         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14290         * nscd/pwdcache.c (cache_addpw): Likewise.
14291         * nscd/servicescache.c (cache_addserv): Likewise.
14292         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14293         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14294         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14295         Remove define.
14296
14297 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
14298
14299         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14300         Include <string/strncat.c>.
14301         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14302         alias.
14303         (__GI___strncat): New hidden alias.
14304
14305 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14306
14307         * sysdeps/mips/mips32/libm-test-ulps: Update.
14308         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14309
14310 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14311
14312         * support/Makefile (libsupport-routines): Add support_quote_blob,
14313         support_test_compare_blob.
14314         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14315         * support/check.h (TEST_COMPARE_BLOB): Define.
14316         (support_test_compare_blob): Declare.
14317         * support/support.h (support_quote_blob): Declare.
14318         * support/support_quote_blob.c: New file.
14319         * support/support_test_compare_blob.c: Likewise.
14320         * support/tst-support_quote_blob.c: Likewise.
14321         * support/tst-test_compare_blob.c: Likewise.
14322
14323 2018-05-16  Florian Weimer  <fweimer@redhat.com>
14324
14325         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14326         of <strtod_nan_double.h>.
14327         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14328         instead of SET_MANTISSA.
14329         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14330         of include <strtod_nan_float.h>.
14331         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14332         instead of <strtod_nan_ldouble.h>.
14333         * stdlib/strtod_nan_double.h: Move to ...
14334         * sysdeps/generic/math-nan-payload-double.h: ... here.
14335         (FLOAT): Remove definition.
14336         (SET_MANTISSA): Rename to ...
14337         (SET_NAN_PAYLOAD): ... this.
14338         * stdlib/strtod_nan_float.h: Move to ...
14339         * sysdeps/generic/math-nan-payload-float.h: ... here.
14340         (FLOAT): Remove definition.
14341         (SET_MANTISSA): Rename to ...
14342         (SET_NAN_PAYLOAD): ... this.
14343         * sysdeps/generic/math-type-macros-double.h: Include
14344         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
14345         instead of <math-svid-compat.h>.
14346         * sysdeps/generic/math-type-macros-float.h: Include
14347         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
14348         instead of <math-svid-compat.h>.
14349         * sysdeps/generic/math-type-macros-float128.h: Include
14350         <math-nan-payload-float128.h>.
14351         * sysdeps/generic/math-type-macros-ldouble.h: Include
14352         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
14353         instead of <math-svid-compat.h>.
14354         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14355         check for definition.
14356         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14357         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14358         Include <ieee754_float128.h>.
14359         (FLOAT): Remove definition.
14360         (SET_MANTISSA): Rename to ...
14361         (SET_NAN_PAYLOAD): ... this.
14362         * sysdeps/ieee754/float128/strtof128_nan.c: Include
14363         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14364         Do not include <float128_private.h>.
14365         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14366         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14367         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14368         (FLOAT): Remove definition.
14369         (SET_MANTISSA): Rename to ...
14370         (SET_NAN_PAYLOAD): ... this.
14371         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14372         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14373         (FLOAT): Remove definition.
14374         (SET_MANTISSA): Rename to ...
14375         (SET_NAN_PAYLOAD): ... this.
14376         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14377         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14378         (FLOAT): Remove definition.
14379         (SET_MANTISSA): Rename to ...
14380         (SET_NAN_PAYLOAD): ... this.
14381         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14382         of "../stdlib/strtod_nan_double.h".
14383         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14384         of "../stdlib/strtod_nan_float.h".
14385         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14386         instead of "../stdlib/strtod_nan_ldouble.h".
14387         * manual/arith.texi (Parsing of Floats): Adjust comment.
14388
14389 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14390
14391         * math/Makefile (libm-narrow-fns): Add mul.
14392         (libm-test-funcs-narrow): Likewise.
14393         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14394         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14395         * math/gen-auto-libm-tests.c (test_functions): Add mul.
14396         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14397         (NARROW_MUL_ROUND_TO_ODD): Likewise.
14398         (NARROW_MUL_TRIVIAL): Likewise.
14399         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14400         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14401         macro.
14402         (__dmull): Likewise.
14403         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14404         dmul.
14405         (CFLAGS-nldbl-dmul.c): New variable.
14406         (CFLAGS-nldbl-fmul.c): Likewise.
14407         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14408         __nldbl_dmull.
14409         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14410         prototype.
14411         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14412         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14413         * math/auto-libm-test-in: Add tests of mul.
14414         * math/auto-libm-test-out-narrow-mul: New generated file.
14415         * math/libm-test-narrow-mul.inc: New file.
14416         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14417         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14418         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14419         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14420         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14421         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14422         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14423         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14424         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14425         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14426         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14427         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14428         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14429         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14430         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14431         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14432         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14433         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14434         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14435         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14436         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14437         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14438         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14439         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14440         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14441         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14442         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14443         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14444         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14445         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14446         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14447         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14452         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14453         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14454         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14455         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14456         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14457         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14458         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14459         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14460
14461 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14462
14463         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14464         with *%eax in call.
14465
14466 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14467
14468         * sysdeps/i386/ldsodefs.h: Removed.
14469         * sysdeps/x86_64/ldsodefs.h: Moved to ...
14470         * sysdeps/x86/ldsodefs.h: This.
14471         (La_i86_regs): New.
14472         (La_i86_retval): Likewise.
14473         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14474         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14475
14476 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14477
14478         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14479         unnecessary testl.
14480
14481 2018-05-13  Alan Modra  <amodra@gmail.com>
14482
14483         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14484         R_PARISC_TLS_DTPOFF32 reloc addend.
14485
14486 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14487
14488         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14489         * math/math.h: Restrict the prototype definition for the functions
14490         issignaling(_Float128) and iszero(_Float128); and template
14491         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14492         __HAVE_FLOAT128_UNLIKE_LDBL.
14493         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14494         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14495         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14496         __f128() constants; define the type _Float128 as long double;
14497         and reuse long double in __CFLOAT128.
14498
14499 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
14500
14501         * sysdeps/generic/math_private.h: Do not include
14502         <math-barriers.h>.
14503         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14504         <math_private.h>.
14505         * math/fromfp.h: Include <math-barriers.h>.
14506         * math/math-narrow.h: Likewise.
14507         * math/s_nextafter.c: Likewise.
14508         * math/s_nexttowardf.c: Likewise.
14509         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14510         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14511         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14512         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14513         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14514         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14515         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14516         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14517         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14518         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14519         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14520         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14521         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14522         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14523         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14524         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14525         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14526         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14527         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14528         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14529         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14530         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14531         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14532         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14533         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14534         * sysdeps/ieee754/k_standardl.c: Likewise.
14535         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14536         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14537         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14538         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14539         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14540         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14541         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14542         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14543         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14544         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14545         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14546         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14547         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14548         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14549         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14550         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14551         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14552         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14553         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14554         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14555         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14556         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14557
14558 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14559
14560         Use 64-bit epoch values in the time zone file parser.
14561         * include/time.h (internal_time_t): Define.
14562         (__tzfile_compute): Use it.
14563         * time/tzfile.c (struct leap): Use internal_time_t for epoch
14564         member.
14565         (transitions): Switch to internal_time_t.
14566         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
14567         types.
14568         (__tzfile_compute): Use internal_time_t for timer argument.  Check
14569         for truncation before calling __offtime.
14570
14571 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14572
14573         [BZ #23166]
14574         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14575         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14576         Likewise.
14577         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14578         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
14579         export without --enable-obsolete-rpc.
14580         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14581         symbol.  This should not have been exported, ever.
14582
14583 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
14584
14585         [BZ #23152]
14586         * localedata/locales/gd_GB (abmon): Fix typo in May:
14587         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
14588
14589 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14590
14591         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14592         Use multiple registers to copy data in loop tail.
14593
14594         * sysdeps/aarch64/multiarch/memmove_falkor.S
14595         (__memmove_falkor): Use multiple registers to move data in
14596         loop tail.
14597
14598 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
14599
14600         * math/math-underflow.h: New file.
14601         * sysdeps/generic/math_private.h: Do not include <float.h>.
14602         (fabs_tg): Remove macro.  Moved to math-underflow.h.
14603         (min_of_type_f): Likewise.
14604         (min_of_type_): Likewise.
14605         (min_of_type_l): Likewise.
14606         (min_of_type_f128): Likewise.
14607         (min_of_type): Likewise.
14608         (math_check_force_underflow): Likewise.
14609         (math_check_force_underflow_nonneg): Likewise.
14610         (math_check_force_underflow_complex): Likewise.
14611         * math/e_exp2_template.c: Include <math-underflow.h>.
14612         * math/k_casinh_template.c: Likewise.
14613         * math/s_catan_template.c: Likewise.
14614         * math/s_catanh_template.c: Likewise.
14615         * math/s_ccosh_template.c: Likewise.
14616         * math/s_cexp_template.c: Likewise.
14617         * math/s_clog10_template.c: Likewise.
14618         * math/s_clog_template.c: Likewise.
14619         * math/s_csin_template.c: Likewise.
14620         * math/s_csinh_template.c: Likewise.
14621         * math/s_csqrt_template.c: Likewise.
14622         * math/s_ctan_template.c: Likewise.
14623         * math/s_ctanh_template.c: Likewise.
14624         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14625         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14626         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14627         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14628         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14638         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14639         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14640         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14641         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14642         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14643         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14644         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14645         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14646         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14647         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14648         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14649         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14650         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14651         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14652         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14653         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14654         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14655         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14656         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14657         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14658         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14659         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14660         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14661         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14662         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14663         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14664         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14665         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14666         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14667         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14668         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14669         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14670         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14671         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14672         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14673         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14674         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14675         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14676         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14677         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14678         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14680         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14681         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14684         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14687         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14688         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14690         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14692         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14694         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14697         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14701         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14702         * sysdeps/x86/fpu/powl_helper.c: Likewise.
14703         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14704         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14705         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14706         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14707         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14708
14709 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14710
14711         * sysdeps/generic/math-barriers.h: New file.
14712         * sysdeps/generic/math_private.h [!math_opt_barrier]
14713         (math_opt_barrier): Move to math-barriers.h.
14714         [!math_opt_barrier] (math_force_eval): Likewise.
14715         * sysdeps/aarch64/fpu/math-barriers.h: New file.
14716         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14717         math-barriers.h.
14718         (math_force_eval): Likewise.
14719         * sysdeps/alpha/fpu/math-barriers.h: New file.
14720         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14721         math-barriers.h.
14722         (math_force_eval): Likewise.
14723         * sysdeps/x86/fpu/math-barriers.h: New file.
14724         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14725         math-barriers.h.
14726         (math_force_eval): Likewise.
14727         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14728         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
14729         multiple-include guard for rename.
14730         * sysdeps/powerpc/fpu/math-barriers.h: New file.
14731         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14732         math-barriers.h.
14733         (math_force_eval): Likewise.
14734
14735 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14736
14737         [BZ #22786]
14738         CVE-2018-11236
14739         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14740         computation.
14741         * stdlib/Makefile (test-bz22786): New test.
14742         * stdlib/test-bz22786.c: New test.
14743
14744 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14745
14746         * include/math-narrow-eval.h: New file.  Contents moved from ....
14747         * sysdeps/generic/math_private.h: ... here.
14748         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
14749         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14750         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14751         * stdlib/strtod_l.c: Likewise.
14752         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14753         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14754         * sysdeps/i386/fpu/s_fdim.c: Likewise.
14755         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14757         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14758         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14759         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14760         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14761         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14762         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14763         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14764         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14765         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14766         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14767         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14768         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14769         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14770         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14771         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14772         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14773         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14774         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14775         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14776         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14777         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14778         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14779         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14780         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14781
14782 2018-05-08  Andreas Schwab  <schwab@suse.de>
14783
14784         * sysdeps/nptl/internaltypes.h: Fix comment.
14785
14786 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
14787
14788         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14789         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14790         hidden.
14791
14792 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14793
14794         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14795         of I into loop header.
14796         * benchtests/bench-memmove-walk.c
14797         (test_main): Likewise.
14798
14799 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
14800
14801         Revert:
14802         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
14803         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14804
14805 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14806
14807         [BZ #20419]
14808         * elf/dl-load.c (open_verify): Fix stack overflow.
14809         * elf/Makefile (tst-big-note): New test.
14810         * elf/tst-big-note-lib.S: New.
14811         * elf/tst-big-note.c: New.
14812
14813 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
14814
14815         * scripts/abilist.awk: Ignore absolute symbols.
14816         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14817         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14818         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14819         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14820         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14821         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14822         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14823         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14824         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14825         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14826         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14827         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14828         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14829         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14830         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14831         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14832         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14833         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14834         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14835         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14836         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14837         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14838         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14839         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14840         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14841         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14842         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14843         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14844         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14845         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14846         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14847         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14848         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14849         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14850         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14851         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14852         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14853         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14854         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14855         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14856         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14857         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14858         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14859         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14860         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14861         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14862         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14863         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14864         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14865         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14866         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14867         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14868         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14869         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14870         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14871         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14872         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14873         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14874         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14875         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14876         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14877         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14878         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14879         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14880         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14881         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14882         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14883         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14884         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14885         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14886         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14887         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14888         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14889         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14890         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14891         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14892         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14893         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14894         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14895         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14896         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14897         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14898         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14899         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14900         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14901         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14902         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14903         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14904         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14905         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14906         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14907         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14908         Likewise.
14909         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14910         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14911         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14912         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14913         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14914         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14915         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14916         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14917         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14918         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14919         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14920         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14921         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14922         Likewise.
14923         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14924         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14925         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14926         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14927         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14928         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14929         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14930         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14931         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14932         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14933         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14934         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14935         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14936         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14937         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14938         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14939         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14940         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14941         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14942         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14943         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14944         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14945         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14946         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14947         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14948         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14949         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14950         Likewise.
14951         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14952         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14953         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14954         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14955         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14956         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14957         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14958         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14959         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14960         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14961         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14962         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14963         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14964         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14965         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14966         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14967         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14968         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14969         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14970         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14971         Likewise.
14972         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14973         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14974         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14975         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14976         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14977         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14978         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14979         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14980         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14981         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14982         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14983         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14984         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14985         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14986         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14987         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14988         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14989         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14990         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14991         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14992         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14993         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14994         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14995         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14996         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14997         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14998         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14999         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15004         Likewise.
15005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15010         Likewise.
15011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15012         Likewise.
15013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15015         Likewise.
15016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15018         Likewise.
15019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15020         Likewise.
15021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15024         Likewise.
15025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15026         Likewise.
15027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15028         Likewise.
15029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15033         Likewise.
15034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15040         Likewise.
15041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15043         Likewise.
15044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15045         Likewise.
15046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15047         Likewise.
15048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15049         Likewise.
15050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15053         Likewise.
15054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15055         Likewise.
15056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15057         Likewise.
15058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15059         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15060         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15061         Likewise.
15062         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15063         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15064         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15065         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15066         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15067         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15068         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15069         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15070         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15071         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15072         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15073         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15074         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15075         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15076         Likewise.
15077         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15078         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15079         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15080         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15081         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15082         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15083         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15084         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15085         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15086         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15087         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15088         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15089         Likewise.
15090         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15091         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15092         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15093         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15094         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15095         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15096         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15097         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15098         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15099         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15100         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15101         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15102         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15103         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15104         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15105         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15106         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15107         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15108         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15109         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15110         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15111         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15112         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15113         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15114         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15115         Likewise.
15116         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15117         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15118         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15119         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15120         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15121         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15122         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15123         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15124         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15125         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15126         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15127         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15128         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15129         Likewise.
15130         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15131         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15132         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15133         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15134         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15135         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15136         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15137         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15138         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15139         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15140         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15141         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15142         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15143         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15144         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15145         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15146         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15147         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15148         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15149         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15150         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15151         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15152         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15153         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15154         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15155         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15156         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15157         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15158         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15159         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15160         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15161         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15162         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15163         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15164         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15165         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15166         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15167         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15168
15169 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
15170
15171         [BZ #23137]
15172         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15173         Use atomic_load_acquire to load __tid.
15174
15175 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15176
15177         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15178         Restore the pointer into %rdx, after syscall and use %rdx,
15179         instead of %rsi, to restore context.
15180
15181 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15182
15183         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15184         Pop the pointer into %rdx after syscall and use %rdx, instead
15185         of %rsi, to restore context.
15186
15187 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15188
15189         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15190         handlers after setjmp.
15191         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15192         defined.
15193         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15194         <libc-pointer-arith.h>.
15195         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15196         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15197         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15198         _JUMP_BUF_SIGSET_BITS_PER_WORD.
15199         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15200         * sysdeps/x86/__longjmp_cancel.S: New file.
15201         * sysdeps/x86/longjmp.c: Likewise.
15202         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15203
15204 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15205
15206         * NEWS: Add ustat.h deprecation entry.
15207         * bits/ustat.h: Remove file.
15208         * misc/sys/ustat.h: Likewise.
15209         * misc/ustat.h: Likewise.
15210         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15211         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15212         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15213         compatibility mode.
15214         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15215         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15216         generic Linux implementation.
15217
15218 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15219
15220         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15221         * math/w_expl_compat.c: Likewise.
15222         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
15223
15224 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
15225
15226         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15227
15228 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15229
15230         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15231         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15232         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15233         Remove.
15234         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15236         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15237         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15238         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15239         and SYSCALL_LL64.
15240
15241 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15242
15243         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15244
15245         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15246         * math/w_asin_template.c: Likewise.
15247         * math/w_atanh_template.c: Likewise.
15248
15249 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15250
15251         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15252         to powerpc/powerpc64/be for big-endian.
15253         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15254         little-endian.
15255
15256         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15257         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15258         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15259         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15260         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15261         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15262         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15263         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15264         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15265         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15266         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15267         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15268         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15269         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15270         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15271         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15272         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15273         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15274         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15275         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15276         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15277         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15278         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15279         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15280         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15281         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15282         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15283         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15284         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15285         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15286         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15287         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15288
15289         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15290         adjusted to imply powerpc64 and older processors on powerpc64/be.
15291         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15292         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15293         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15294         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15295         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15296         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15297         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15298         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15299         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15300         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15301         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15302         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15303         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15304         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15305         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15306         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15307         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15308         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15309         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15310         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15311         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15312         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15313         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15314         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15315         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15316         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15317         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15318         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15319         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15320         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15321         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15322
15323         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15324         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15325         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15326         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15327
15328         * sysdeps/powerpc/powerpc64/be/Implies: New file.
15329         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15330         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15331         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15332
15333         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15334         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15335         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15336         * sysdeps/powerpc/powerpc64le/configure: Likewise.
15337         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15338         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15339         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15340         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15341         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15342         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15343         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15344
15345         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15346         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15347         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15348         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15349         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15350         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15351         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15352         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15353         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15354         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15355         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15356
15357         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15358         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15359         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15360         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15361         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15362         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15363         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15364         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15365         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15366         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15367         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15368         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15369
15370         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15371         and adjusted to imply olders processors.
15372         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15373         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15374         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15375         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15376         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15377         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15378         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15379         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15380         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15381         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15382         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15383
15384         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15385         powerpc64/le.
15386         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15387         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15388
15389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15390         powerpc64le.
15391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15393
15394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15395         powerpc64/be.
15396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15399
15400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15401         powerpc64 and adjusted.
15402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15405         Likewise.
15406
15407 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
15408
15409         * sysdeps/tile: Remove.
15410         * sysdeps/unix/sysv/linux/tile: Likewise.
15411         * README (tilegx-*-linux-gnu): Remove from list of supported
15412         configurations.
15413         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15414         contribution of support for generic Linux kernel syscall
15415         interface.
15416         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15417         tilegx configurations.
15418         (Config.install_linux_headers): Do not handle tile.
15419         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15420         in comment.
15421         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15422         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15423         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15424         conditional undefine and redefine.
15425         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15426         in comment.
15427         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15428         conditional undefine and redefine.
15429
15430 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
15431
15432         * signal/tst-sigaction.c: New file to test BZ #23069.
15433         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15434
15435 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15436
15437         [BZ #22766]
15438         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15439         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15440         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15441         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15442
15443 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15444
15445         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15446         _DIRENT_MATCHES_DIRENT64 is not defined.
15447         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15448         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15449         is defined.
15450         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15451         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15452
15453 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
15454
15455         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15456         version to GCC 8 branch.
15457
15458 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
15459
15460         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15461         (check_no_hidden): Use type of original function when declaring
15462         alias.
15463
15464         * sysdeps/unix/sysv/linux/sys/ptrace.h
15465         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15466         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15467         (struct __ptrace_seccomp_metadata): New type.
15468         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15469         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15470         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15471         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15472         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15473         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15474         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15475         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15476         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15477         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15478         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15479         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15480         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15481         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15482         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15483         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15484
15485 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15486
15487         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15488         defined.
15489         * dirent/versionsort.c (versionsort): Likewise.
15490         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15491         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15492         * dirent/versionsort64.c (versionsort64): Likewise.
15493         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15494         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15495         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15496         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15497         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15498         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15499         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15500         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15501         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15502         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15505         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15506         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15507
15508 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
15509
15510         * elf/elf.h (NT_PPC_PKEY): New macro.
15511
15512 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
15513
15514         [BZ #23094]
15515         * localedata/locales/hr_HR: fix thousands_sep and
15516         mon_thousands_sep
15517
15518 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15519
15520         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15521         (XTABS): Define to TAB3.
15522
15523 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15524
15525         * sysdeps/hppa/fpu/libm-test-ulps: Update.
15526
15527         * dirent/scandir-tail-common.c: New file.
15528         * dirent/scandir-tail.c: Use scandir-tail-common.c.
15529         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15530         * dirent/scandir.c: Use scandir-tail-common.c.
15531         * dirent/scandirat.c: Likewise.
15532         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15533         * dirent/scandir64.c (scandir64): Always build and alias to scandir
15534         if _DIRENT_MATCHES_DIRENT64 is defined.
15535         * dirent/scandirat64.c (scandirat64): Likewise.
15536         * include/dirent.h (__scandir_tail): Only define iff
15537         _DIRENT_MATCHES_DIRENT64 is not defined.
15538         (__scandir64_tail): Define regardless.
15539         (__scandirat, scandirat64): Remove libc_hidden_proto.
15540         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15541         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15543         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15544         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15545         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15546         * sysdeps/unix/sysv/linux/scandir64.c: New file.
15547
15548 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15549
15550         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15551         New macro.
15552         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15553         Increase to 24.
15554         (_dl_aarch64_cap_flags): Add asimdfhm.
15555
15556 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
15557
15558         * sysdeps/nios2/libm-test-ulps: Update.
15559
15560 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15561
15562         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15563         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15564
15565         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15566         requirements.
15567         (_DIRENT_MATCHES_DIRENT64): Undef
15568         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15569         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15570         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15571         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15572         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15573         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15574         use getdents64 syscalls as base.
15575         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15576         symbol if required.
15577         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15578         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15579         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15580         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15581         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15582         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15583         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15584         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15585         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15586         (__get_clockfreq_via_proc_openprom): Use __getdents64.
15587         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15588
15589 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15590
15591         * scripts/test_printers_common.py (init_test): Disable lock elision.
15592
15593 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15594
15595         * math/test-tgmath.c (count_double, count_float,
15596         count_ldouble, count_cdouble, count_cfloat,
15597         count_cldouble): Use volatile int.
15598
15599 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15600
15601         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15602         (conformtest-xfail-conds): Add i386-gnu.
15603         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15604         i386-gnu.
15605         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15606         ipc_perm.cuid, ipc_perm.cgid): Likewise.
15607         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15608         msqid_ds.msg_lrpid): Likewise.
15609         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15610         Likewise.
15611         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15612         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15613         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15614         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15615         unsigned int.
15616         (struct statvfs64): Likewise.
15617         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15618         Likewise.
15619         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15620         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15621         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15622         instead of wait_queue.
15623         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15624         instead of vm_area_struct.
15625         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15626         struct sched_param definition to it.
15627         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15628         * bits/types/struct_sched_param.h: New file.
15629         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15630         <bits/types/struct_sched_param.h> instead of <sched.h>.
15631         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15632         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15633         generic version but include <bits/pthreadtypes.h> to make struct
15634         sigevent's sigev_notify_attributes field a pthread_attr_t*.
15635         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15636         non-compliant.
15637         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15638         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15639         [__USE_XOPEN] (OFDEL): New macro.
15640         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15641         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15642         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15643         prototypes.
15644         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15645         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15646         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15647         non-compliant.
15648         * sysdeps/i386/sys/ucontext.h: Likewise.
15649         * sysdeps/m68k/sys/ucontext.h: Likewise.
15650         * sysdeps/mips/sys/ucontext.h: Likewise.
15651         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15652         * sysdeps/mach/hurd/i386/Makefile
15653         (test-xfail-POSIX/fcntl.h/conform): Add.
15654         (test-xfail-POSIX/signal.h/conform): Add.
15655         (test-xfail-POSIX/semaphore.h/conform): Add.
15656         (test-xfail-POSIX/regex.h/conform): Add.
15657         (test-xfail-POSIX/aio.h/conform): Add.
15658         (test-xfail-POSIX/mqueue.h/conform): Add.
15659         (test-xfail-POSIX/sys/types.h/conform): Add.
15660         (test-xfail-UNIX98/fcntl.h/conform): Add.
15661         (test-xfail-UNIX98/netdb.h/conform): Add.
15662         (test-xfail-UNIX98/signal.h/conform): Add.
15663         (test-xfail-UNIX98/semaphore.h/conform): Add.
15664         (test-xfail-UNIX98/regex.h/conform): Add.
15665         (test-xfail-UNIX98/aio.h/conform): Add.
15666         (test-xfail-UNIX98/ftw.h/conform): Add.
15667         (test-xfail-UNIX98/mqueue.h/conform): Add.
15668         (test-xfail-UNIX98/netinet/in.h/conform): Add.
15669         (test-xfail-UNIX98/sys/wait.h/conform): Add.
15670         (test-xfail-UNIX98/sys/sem.h/conform): Add.
15671         (test-xfail-UNIX98/sys/uio.h/conform): Add.
15672         (test-xfail-UNIX98/sys/socket.h/conform): Add.
15673         (test-xfail-UNIX98/sys/types.h/conform): Add.
15674         (test-xfail-UNIX98/stdlib.h/conform): Add.
15675         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15676         (test-xfail-POSIX2008/fcntl.h/conform): Add.
15677         (test-xfail-POSIX2008/netdb.h/conform): Add.
15678         (test-xfail-POSIX2008/signal.h/conform): Add.
15679         (test-xfail-POSIX2008/semaphore.h/conform): Add.
15680         (test-xfail-POSIX2008/regex.h/conform): Add.
15681         (test-xfail-POSIX2008/aio.h/conform): Add.
15682         (test-xfail-POSIX2008/mqueue.h/conform): Add.
15683         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15684         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15685         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15686         (test-xfail-POSIX2008/sys/types.h/conform): Add.
15687         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15688         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15689         (test-xfail-XOPEN2K/netdb.h/conform): Add.
15690         (test-xfail-XOPEN2K/signal.h/conform): Add.
15691         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15692         (test-xfail-XOPEN2K/regex.h/conform): Add.
15693         (test-xfail-XOPEN2K/aio.h/conform): Add.
15694         (test-xfail-XOPEN2K/ftw.h/conform): Add.
15695         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15696         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15697         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15698         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15699         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15700         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15701         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15702         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15703         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15704         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15705         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15706         (test-xfail-XOPEN2K8/signal.h/conform): Add.
15707         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15708         (test-xfail-XOPEN2K8/regex.h/conform): Add.
15709         (test-xfail-XOPEN2K8/aio.h/conform): Add.
15710         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15711         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15712         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15713         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15714         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15715         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15716         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15717         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15718         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15719         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15720         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15721         i386-gnu.
15722         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15723         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15724
15725 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
15726
15727         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15728         --enable-obsolete for powerpc-linux-gnuspe.
15729
15730 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15731
15732         * conform/data/sys/un.h-data: Allow sun_ prefix.
15733         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15734         prototypes.
15735         * sysdeps/mach/include/mach.h: Likewise.
15736         * sysdeps/mach/include/mach/mig_support.h: Likewise.
15737         * sysdeps/mach/include/mach_error.h: Likewise.
15738
15739 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15740
15741         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15742         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15743         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15744         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15745
15746 2018-04-16  Andreas Schwab  <schwab@suse.de>
15747
15748         [BZ #19527]
15749         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15750
15751 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
15752
15753         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15754         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15755
15756 2018-04-12  DJ Delorie  <dj@redhat.com>
15757
15758         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15759         version to 4.16.
15760
15761 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
15762
15763         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15764         (struct kernel_sigaction): Use the same definition on 31bit as is used
15765         on 64bit.
15766
15767 2018-04-09  Florian Weimer  <fweimer@redhat.com>
15768
15769         [BZ #23037]
15770         * resolv/res_send.c (send_dg): Use designated initializers instead
15771         of assignment to zero-initialize other fields of struct mmsghdr.
15772
15773 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15774
15775         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15776         __READDIR_ALIAS): Undefine after usage.
15777         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15778         __READDIR_R_ALIAS): Likewise.
15779         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15780         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15781         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15782         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15783         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15784         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15785         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15786         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15787         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15788         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15789         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15790         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15791         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15792         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15793         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15794         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15795         * sysdeps/unix/sysv/linux/readdir.c: New file.
15796         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15797         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15798         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15799
15800         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15801
15802 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
15803
15804         * manual/charset.texi (Converting a Character): Fix typo.
15805
15806 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15807
15808         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15809
15810         * sysdeps/arm/libm-test-ulps: Update.
15811
15812         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15813         as base implementation.
15814         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15815         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15816         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15817         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15818         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15819         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15820         remove unrequired definitions and update comments.
15821         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15822         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15823         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15824         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15825         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15826         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15827         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15828         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15829         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15830         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15831         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15832         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15833         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15834         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15835         and RESET_SA_RESTORER hooks.
15836
15837 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
15838
15839         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15840
15841 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15842
15843         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15844         integer overflow, memory leak on error, and indeterminate errno
15845         value.  Add a null wide character to terminate the result string.
15846         * manual/charset.texi (Converting a Character): Mention embedded
15847         null bytes in the mbrtowc input string.  Explain what happens in
15848         the -2 result case.  Do not claim that mbrtowc is simple or
15849         obvious to use.  Adjust the description of the code example.  Use
15850         @code, not @var, for concrete variables.
15851
15852 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15853
15854         * manual/examples/mbstouwcs.c: New file.
15855         * manual/charset.texi (Converting a Character): Include it.
15856
15857 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15858
15859         * include/dirent.h (dirfd): Add hidden proto.
15860         * dirent/dirfd.c (dirfd): Add hidden def.
15861         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15862         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15863
15864 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15865
15866         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15867         sin, cos and sincos to 1 ULP.
15868
15869 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
15870
15871         [BZ #19818]
15872         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15873         symbols.
15874         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15875         * elf/tst-absolute-sym.c: New file.
15876         * elf/tst-absolute-sym-lib.c: New file.
15877         * elf/tst-absolute-sym-lib.lds: New file.
15878         * elf/Makefile (tests): Add `tst-absolute-sym'.
15879         (modules-names): Add `tst-absolute-sym-lib'.
15880         (LDLIBS-tst-absolute-sym-lib.so): New variable.
15881         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15882         ($(objpfx)tst-absolute-sym): New dependency.
15883
15884         [BZ #19818]
15885         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15886         parameter.
15887         (SYMBOL_ADDRESS): New macro.
15888         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15889         SYMBOL_ADDRESS for symbol address calculation.
15890         * elf/dl-runtime.c (_dl_fixup): Likewise.
15891         (_dl_profile_fixup): Likewise.
15892         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15893         * elf/rtld.c (dl_main): Likewise.
15894         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15895         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15896         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15897         (elf_machine_rela): Likewise.
15898         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15899         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15900         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15901         (elf_machine_rela): Likewise.
15902         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15903         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15904         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15905         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15906         Likewise.
15907         (elf_machine_reloc): Likewise.
15908         (elf_machine_got_rel): Likewise.
15909         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15910         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15911         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15912         Likewise.
15913         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15914         Likewise.
15915         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15916         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15917         Likewise.
15918         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15919         Likewise.
15920         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15921         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15922         Likewise.
15923         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15924         Likewise.
15925         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15926         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15927
15928 2018-04-04  Zack Weinberg  <zackw@panix.com>
15929
15930         * sysdeps/generic/internal-signals.h: Include signal.h,
15931         sigsetops.h, and stdbool.h.
15932         (__libc_signal_block_all): Actually block all signals.
15933         (__libc_signal_block_app): Likewise.
15934         (__libc_signal_restore_set): Actually restore the signal mask.
15935
15936 2018-04-04  Florian Weimer  <fweimer@redhat.com>
15937
15938         inet: Actually build and run tst-deadline.
15939         * inet/Makefile (tests-internal): Add tst-deadline and do not
15940         overwrite the variable.
15941         (tests-static-internal): Remove variable.
15942
15943 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
15944
15945         [BZ #22947]
15946         * bits/uio-ext.h (RWF_APPEND): New.
15947         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15948         * manual/llio.texi: Document RWF_APPEND.
15949         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15950         (RWF_SUPPORTED): Add RWF_APPEND.
15951
15952 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15953
15954         [BZ #22391]
15955         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15956         check for internal nptl signals.
15957         * nptl/sigaction.c (__sigaction): Likewise.
15958         * signal/sigaddset.c (sigaddset): Likewise.
15959         * signal/sigdelset.c (sigdelset): Likewise.
15960         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15961         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15962         value.
15963         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15964         to filter out internal nptl signals.
15965         * signal/tst-sigset.c (do_test): Check ech signal indidually and
15966         also check realtime signals using standard macros.
15967         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15968         __is_internal_signal, __libc_signal_block_all,
15969         __libc_signal_block_app, __libc_signal_restore_set): New functions.
15970         * sysdeps/nptl/sigfillset.c: Remove file.
15971         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15972         Change return to bool.
15973         (__clear_internal_signals): Remove SIGTIMER clean since it is
15974         equal to SIGCANEL on Linux.
15975         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15976         signal set was constructed using standard functions.
15977
15978 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15979
15980         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15981         ifname is too long.
15982         * hurd/hurdsig.c (interrupted_reply_port_location): Use
15983         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15984         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15985         hidden def.
15986         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15987         * signal/sigaddset.c: Include <sigsetopts.h>.
15988         * signal/sigdelset.c: Likewise.
15989
15990 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15991
15992         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15993         (__cos): Likewise.
15994         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15995         logic as sin and cos.
15996
15997 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15998
15999         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16000         inputs.  Return correct sign.
16001         (do_sincos): Remove small input check before do_sin, let do_sin set
16002         the sign.
16003         (__sin): Likewise.
16004         (__cos): Likewise.
16005
16006 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16007
16008         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16009         (do_cos_slow): Likewise.
16010         (do_sin_slow): Likewise.
16011         (reduce_and_compute): Likewise.
16012         (slow): Likewise.
16013         (slow1): Likewise.
16014         (slow2): Likewise.
16015         (sloww): Likewise.
16016         (sloww1): Likewise.
16017         (sloww2): Likewise.
16018         (bslow): Likewise.
16019         (bslow1): Likewise.
16020         (bslow2): Likewise.
16021         (cslow2): Likewise.
16022
16023 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16024
16025         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16026         (do_cos): Remove corp parameter and calculations.
16027         (do_sin): Likewise.
16028         (do_sincos): Remove cor variable.
16029         (__sin): Use do_sincos for huge inputs.
16030         (__cos): Likewise.
16031         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16032         (reduce_and_compute_sincos): Remove unused function.
16033
16034 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16035
16036         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16037         reduce_sincos, improve accuracy to 136 bits.
16038         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16039         (__sin): Use improved reduction and simplified do_sincos calculation.
16040         (__cos): Likewise.
16041         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16042
16043 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16044
16045         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16046         (do_sincos_2): Likewise.
16047         (__sin): Remove middle range reduction case.
16048         (__cos): Likewise.
16049         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16050         reduction case.
16051
16052 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
16053
16054         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16055         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16056         inputs.
16057         (__cos): Likewise.
16058         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16059
16060 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
16061
16062         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16063         version to 4.16
16064
16065 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16066
16067         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16068         Remove definitions.
16069         (opendir_oflags): Use O_DIRECTORY regardless.
16070         (__opendir, __opendirat): Remove need_isdir_precheck usage.
16071         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16072
16073 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16074
16075         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16076         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16077         macros.
16078         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16079         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16080         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16081         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16082         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16083         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16084
16085         * htl/Makefile: Bump licence to LGPL 2.1+.
16086         * htl/alloca_cutoff.c: Likewise.
16087         * htl/cthreads-compat.c: Likewise.
16088         * htl/lockfile.c: Likewise.
16089         * htl/pt-alloc.c: Likewise.
16090         * htl/pt-cancel.c: Likewise.
16091         * htl/pt-cleanup.c: Likewise.
16092         * htl/pt-create.c: Likewise.
16093         * htl/pt-dealloc.c: Likewise.
16094         * htl/pt-detach.c: Likewise.
16095         * htl/pt-exit.c: Likewise.
16096         * htl/pt-getattr.c: Likewise.
16097         * htl/pt-initialize.c: Likewise.
16098         * htl/pt-internal.h: Likewise.
16099         * htl/pt-join.c: Likewise.
16100         * htl/pt-self.c: Likewise.
16101         * htl/pt-setcancelstate.c: Likewise.
16102         * htl/pt-setcanceltype.c: Likewise.
16103         * htl/pt-sigmask.c: Likewise.
16104         * htl/pt-spin-inlines.c: Likewise.
16105         * htl/pt-testcancel.c: Likewise.
16106         * htl/pt-yield.c: Likewise.
16107         * htl/tests/test-1.c: Likewise.
16108         * htl/tests/test-10.c: Likewise.
16109         * htl/tests/test-11.c: Likewise.
16110         * htl/tests/test-12.c: Likewise.
16111         * htl/tests/test-13.c: Likewise.
16112         * htl/tests/test-14.c: Likewise.
16113         * htl/tests/test-15.c: Likewise.
16114         * htl/tests/test-16.c: Likewise.
16115         * htl/tests/test-17.c: Likewise.
16116         * htl/tests/test-2.c: Likewise.
16117         * htl/tests/test-3.c: Likewise.
16118         * htl/tests/test-4.c: Likewise.
16119         * htl/tests/test-5.c: Likewise.
16120         * htl/tests/test-6.c: Likewise.
16121         * htl/tests/test-7.c: Likewise.
16122         * htl/tests/test-8.c: Likewise.
16123         * htl/tests/test-9.c: Likewise.
16124         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16125         * sysdeps/htl/bits/cancelation.h: Likewise.
16126         * sysdeps/htl/bits/pthread-np.h: Likewise.
16127         * sysdeps/htl/bits/pthread.h: Likewise.
16128         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16129         * sysdeps/htl/bits/semaphore.h: Likewise.
16130         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16131         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16132         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16133         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16134         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16135         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16136         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16137         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16138         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16139         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16140         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16141         * sysdeps/htl/old_pt-atfork.c: Likewise.
16142         * sysdeps/htl/pt-atfork.c: Likewise.
16143         * sysdeps/htl/pt-attr-destroy.c: Likewise.
16144         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16145         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16146         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16147         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16148         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16149         * sysdeps/htl/pt-attr-getscope.c: Likewise.
16150         * sysdeps/htl/pt-attr-getstack.c: Likewise.
16151         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16152         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16153         * sysdeps/htl/pt-attr-init.c: Likewise.
16154         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16155         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16156         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16157         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16158         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16159         * sysdeps/htl/pt-attr-setscope.c: Likewise.
16160         * sysdeps/htl/pt-attr-setstack.c: Likewise.
16161         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16162         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16163         * sysdeps/htl/pt-attr.c: Likewise.
16164         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16165         * sysdeps/htl/pt-barrier-init.c: Likewise.
16166         * sysdeps/htl/pt-barrier-wait.c: Likewise.
16167         * sysdeps/htl/pt-barrier.c: Likewise.
16168         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16169         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16170         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16171         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16172         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16173         * sysdeps/htl/pt-cond-destroy.c: Likewise.
16174         * sysdeps/htl/pt-cond-init.c: Likewise.
16175         * sysdeps/htl/pt-cond-signal.c: Likewise.
16176         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16177         * sysdeps/htl/pt-cond-wait.c: Likewise.
16178         * sysdeps/htl/pt-cond.c: Likewise.
16179         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16180         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16181         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16182         * sysdeps/htl/pt-condattr-init.c: Likewise.
16183         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16184         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16185         * sysdeps/htl/pt-destroy-specific.c: Likewise.
16186         * sysdeps/htl/pt-equal.c: Likewise.
16187         * sysdeps/htl/pt-getconcurrency.c: Likewise.
16188         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16189         * sysdeps/htl/pt-getschedparam.c: Likewise.
16190         * sysdeps/htl/pt-getspecific.c: Likewise.
16191         * sysdeps/htl/pt-init-specific.c: Likewise.
16192         * sysdeps/htl/pt-key-create.c: Likewise.
16193         * sysdeps/htl/pt-key-delete.c: Likewise.
16194         * sysdeps/htl/pt-key.h: Likewise.
16195         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16196         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16197         * sysdeps/htl/pt-mutex-init.c: Likewise.
16198         * sysdeps/htl/pt-mutex-lock.c: Likewise.
16199         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16200         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16201         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16202         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16203         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16204         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16205         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16206         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16207         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16208         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16209         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16210         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16211         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16212         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16213         * sysdeps/htl/pt-mutexattr.c: Likewise.
16214         * sysdeps/htl/pt-once.c: Likewise.
16215         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16216         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16217         * sysdeps/htl/pt-rwlock-init.c: Likewise.
16218         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16219         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16220         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16221         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16222         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16223         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16224         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16225         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16226         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16227         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16228         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16229         * sysdeps/htl/pt-setconcurrency.c: Likewise.
16230         * sysdeps/htl/pt-setschedparam.c: Likewise.
16231         * sysdeps/htl/pt-setschedprio.c: Likewise.
16232         * sysdeps/htl/pt-setspecific.c: Likewise.
16233         * sysdeps/htl/pt-spin.c: Likewise.
16234         * sysdeps/htl/pt-startup.c: Likewise.
16235         * sysdeps/htl/pthread.h: Likewise.
16236         * sysdeps/htl/sem-close.c: Likewise.
16237         * sysdeps/htl/sem-destroy.c: Likewise.
16238         * sysdeps/htl/sem-getvalue.c: Likewise.
16239         * sysdeps/htl/sem-init.c: Likewise.
16240         * sysdeps/htl/sem-open.c: Likewise.
16241         * sysdeps/htl/sem-post.c: Likewise.
16242         * sysdeps/htl/sem-timedwait.c: Likewise.
16243         * sysdeps/htl/sem-trywait.c: Likewise.
16244         * sysdeps/htl/sem-unlink.c: Likewise.
16245         * sysdeps/htl/sem-wait.c: Likewise.
16246         * sysdeps/hurd/htl/pt-kill.c: Likewise.
16247         * sysdeps/i386/htl/pt-machdep.h: Likewise.
16248         * sysdeps/mach/htl/pt-block.c: Likewise.
16249         * sysdeps/mach/htl/pt-spin.c: Likewise.
16250         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16251         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16252         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16253         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16254         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16255         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16256         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16257         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16258         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16259         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16260         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16261         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16262         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16263         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16264         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16265         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16266         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16267         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16268         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16269         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16270         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16271         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16272         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16273         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16274         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16275         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16276         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16277         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16278         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16279         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16280         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16281         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16282         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16283         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16284         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16285         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16286         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16287         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16288         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16289         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16290         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16291         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16292         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16293
16294         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16295         * README: Remove the mention of out-of-tree patches needed for
16296         GNU/Hurd.
16297
16298         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16299         (UTIME_NOW, UTIME_OMIT): Define macros.
16300
16301         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16302         instead of pthread_detach.
16303         (__cthread_fork): Call __pthread_create instead of pthread_create.
16304         (__cthread_keycreate): Call __pthread_key_create instead of
16305         pthread_key_create.
16306         (__cthread_getspecific): Call __pthread_getspecific instead of
16307         pthread_getspecific.
16308         (__cthread_setspecific): Call __pthread_setspecific instead of
16309         pthread_setspecific.
16310         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16311         __pthread_mutex_unlock instead of pthread_mutex_lock and
16312         pthread_mutex_unlock.
16313         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16314         ___pthread_get_cleanup_stack.
16315         (__pthread_get_cleanup_stack): New strong alias.
16316         * htl/pt-create.c: Include <pthreadP.h>.
16317         (entry_point): Call __pthread_exit instead of pthread_exit.
16318         (pthread_create): Rename to __pthread_create.
16319         (pthread_create): New strong alias.
16320         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16321         (pthread_detach): New strong alias.
16322         (__pthread_detach): Call __pthread_cond_broadcast instead of
16323         pthread_cond_broadcast.
16324         * htl/pt-exit.c: Include <pthreadP.h>.
16325         (__pthread_exit): Call __pthread_setcancelstate and
16326         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16327         __pthread_get_cleanup_stack.
16328         * htl/pt-testcancel.c: Include <pthreadP.h>.
16329         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16330         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16331         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16332         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16333         pthread_attr_getstacksize.
16334         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16335         Rename to __pthread_attr_getstackaddr.
16336         (pthread_attr_getstackaddr): New strong alias.
16337         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16338         Rename to __pthread_attr_getstacksize.
16339         (pthread_attr_getstacksize): New strong alias.
16340         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16341         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16342         (pthread_attr_setstack): New strong alias.
16343         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16344         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16345         pthread_attr_getstacksize, pthread_attr_setstacksize and
16346         pthread_attr_setstackaddr.
16347         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16348         Rename to __pthread_attr_setstackaddr.
16349         (pthread_attr_setstackaddr): New strong alias.
16350         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16351         Rename to __pthread_attr_setstacksize.
16352         (pthread_attr_setstacksize): New strong alias.
16353         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16354         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16355         pthread_exit.
16356         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16357         (__pthread_key_create): New hidden def.
16358         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16359         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16360         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16361         __pthread_exit, __pthread_key_create, __pthread_getspecific,
16362         __pthread_setspecific, __pthread_setcancelstate,
16363         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16364         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16365         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16366         declarations.
16367         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16368         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16369         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16370         (pthread_attr_setstackaddr): New strong alias.
16371         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16372         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16373         (pthread_attr_setstacksize): New strong alias.
16374         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16375         (call_exit): Call __pthread_exit instead of pthread_exit.
16376         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16377         (_pthread_mutex_init): New hidden definition.
16378         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16379         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16380         instead of pthread_attr_init and pthread_attr_setstack.
16381
16382         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16383         __vm_deallocate instead of vm_allocate and vm_deallocate.
16384         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16385         setenv.
16386         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16387         of geteuid.
16388         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16389         strdup.
16390         * hurd/siginfo.c: Include <libioP.h>.
16391         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16392         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16393         munmap.
16394         * mach/devstream.c: Include <libioP.h>.
16395         (dealloc_ref): Call __mach_port_deallocate instead of
16396         mach_port_deallocate.
16397         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16398         Call __mach_port_deallocate instead of mach_port_deallocate.
16399         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16400         pathconf.
16401         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16402         munmap.
16403         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16404         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16405         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16406         of munmap.
16407         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16408         of close.
16409         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16410         instead of sysconf.
16411         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16412         __clock_gettime instead of clock_gettime.
16413         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16414         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16415         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16416         * sysdeps/unix/bsd/stty.c (stty): Likewise.
16417         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16418         tcgetattr.
16419         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16420         __clock_gettime and __nanosleep instead of clock_gettime and
16421         nanosleep.
16422         * hurd/catch-signal.c (hurd_catch_signal): Rename to
16423         __hurd_catch_signal.
16424         (hurd_catch_signal): New strong alias.
16425         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16426         __hurd_catch_signal instead of hurd_catch_signal.
16427         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16428         * hurd/hurdexec.c (_hurd_init): Add hidden def.
16429         * hurd/hurdinit.c (_hurd_init): Add hidden def.
16430         * hurd/hurdsig.c: Include <mach/mig_support.h>.
16431         (_hurd_thread_sigstate): Add hidden def.
16432         (_hurd_internal_post_signal): Use __mutex_unlock instead of
16433         mutex_unlock.
16434         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16435         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16436         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16437         __hurd_file_name_path_lookup.
16438         (hurd_file_name_path_lookup): New strong alias.
16439         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16440         hurd_file_name_path_lookup.
16441         * mach/errstring.c (mach_error_type): Add hidden def.
16442         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16443         * mach/mutex-init.c (__mutex_init): Add hidden def.
16444         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16445         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16446         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16447         * sysdeps/mach/hurd/getcwd.c
16448         (_hurd_canonicalize_directory_name_internal): Rename to
16449         __hurd_canonicalize_directory_name_internal.
16450         (_hurd_canonicalize_directory_name_internal): New strong alias.
16451         (__canonicalize_directory_name_internal, __getcwd): Call
16452         __hurd_canonicalize_directory_name_internal instead of
16453         _hurd_canonicalize_directory_name_internal.
16454         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16455         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16456         hidden defs.
16457         * sysdeps/hurd/include/hurd.h: New file.
16458         * sysdeps/hurd/include/hurd/fd.h: New file.
16459         * sysdeps/hurd/include/hurd/signal.h: New file.
16460         * sysdeps/mach/include/lock-intern.h: New file.
16461         * sysdeps/mach/include/mach.h: New file.
16462         * sysdeps/mach/include/mach/mig_support.h: New file.
16463         * sysdeps/mach/include/mach_error.h: New file.
16464         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16465         prototype.
16466         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16467         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16468         _HEADER_H_HIDDEN_DEF macro.
16469         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16470         _hurd_fd_error_signal): Add hidden prototype.
16471         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16472         hidden def.
16473         * libio/iolibio.h (_IO_puts): New hidden prototype.
16474         * libio/ioputs.c (_IO_puts): New hidden def.
16475         * sysdeps/mach/hurd/localplt.data: New file.
16476
16477 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
16478             Amos Jeffries  <squid3@treenet.co.nz>
16479             David Michael  <fedora.dm0@gmail.com>
16480             Marco Gerards  <marco@gnu.org>
16481             Marcus Brinkmann  <marcus@gnu.org>
16482             Neal H. Walfield  <neal@gnu.org>
16483             Pino Toscano  <toscano.pino@tiscali.it>
16484             Richard Braun  <rbraun@sceen.net>
16485             Roland McGrath  <roland@gnu.org>
16486             Samuel Thibault  <samuel.thibault@ens-lyon.org>
16487             Thomas DiModica  <ricinwich@yahoo.com>
16488             Thomas Schwinge  <tschwinge@gnu.org>
16489
16490         * htl: New directory.
16491         * sysdeps/htl: New directory.
16492         * sysdeps/hurd/htl: New directory.
16493         * sysdeps/i386/htl: New directory.
16494         * sysdeps/mach/htl: New directory.
16495         * sysdeps/mach/hurd/htl: New directory.
16496         * sysdeps/mach/hurd/i386/htl: New directory.
16497         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16498         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16499         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16500
16501 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16502
16503         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16504         signals in thread created for runing timers.
16505
16506 2018-04-01  Florian Weimer  <fweimer@redhat.com>
16507
16508         * support/support_format_addrinfo.c (support_format_addrinfo):
16509         Include unknown error number in formatted result.
16510
16511 2018-03-29  Florian Weimer  <fweimer@redhat.com>
16512
16513         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16514         capture SIGBUS.
16515
16516 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16517
16518         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16519         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16520         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16521         (__ASSUME_CLONE_BACKWARDS): Define.
16522
16523 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
16524
16525         [BZ #23024]
16526         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16527         early when linux sentinel value is set.
16528
16529 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16530
16531         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16532
16533 2018-03-27  Andreas Schwab  <schwab@suse.de>
16534
16535         [BZ #23005]
16536         * resolv/res_send.c (__res_context_send): Return ENOMEM if
16537         allocation of private copy of nsaddr_list fails.
16538
16539 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
16540
16541         [BZ #16552]
16542         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16543         * sysdeps/unix/sysv/linux/umount.c: ... here.
16544         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16545         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16546         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16547         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16549         * sysdeps/unix/sysv/linux/umount.S: Likewise.
16550         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16551
16552 2018-03-26  Andreas Schwab  <schwab@suse.de>
16553
16554         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16555         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16556         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16557         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16558         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16559         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16560         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16561         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16562         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16563         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16564         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16565         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16566         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16567         (R_RISCV_NUM): Define.
16568
16569 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16570
16571         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16572         TLS declaration of errno.
16573         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16574         __libc_setup_tls.
16575         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16576         (ARCH_SETUP_TLS): Likewise.
16577         * sysdeps/mach/hurd/libc-start.h: New file copied from
16578         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16579         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16580         instead of __libc_setup_tls.
16581         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16582         __libc_setup_tls before initializing libpthread and running _hurd_init
16583         which starts the signal thread.
16584         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16585         Declare function.
16586         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16587
16588 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         [BZ #22998]
16591         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16592         after it is defined.
16593
16594 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16595             Max Horn  <max@quendi.de>
16596
16597         [BZ #22644]
16598         CVE-2017-18269
16599         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16600         branch conditions.
16601         * string/test-memmove.c (do_test2): New testcase.
16602
16603 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
16604
16605         * sysdeps/generic/frame.h: Remove file.
16606         * sysdeps/arm/frame.h: Likewise.
16607         * sysdeps/hppa/frame.h: Likewise.
16608         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16609         macro.
16610         (GET_FRAME): Likewise.
16611         (GET_STACK): Likewise.
16612         (CALL_SIGHANDLER): Likewise.
16613         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16614         Likewise.
16615         (GET_FRAME): Likewise.
16616         (GET_STACK): Likewise.
16617         (CALL_SIGHANDLER): Likewise.
16618         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16619         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16620         (GET_FRAME): Likewise.
16621         (GET_STACK): Likewise.
16622         (CALL_SIGHANDLER): Likewise.
16623         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16624         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16625         (GET_FRAME): Likewise.
16626         (GET_STACK): Likewise.
16627         (ADVANCE_STACK_FRAME): Likewise.
16628         (CALL_SIGHANDLER): Likewise.
16629         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16630         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16631         (GET_FRAME): Likewise.
16632         (GET_STACK): Likewise.
16633         (CALL_SIGHANDLER): Likewise.
16634         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16635         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16636         (GET_FRAME): Likewise.
16637         (GET_STACK): Likewise.
16638         (CALL_SIGHANDLER): Likewise.
16639         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16640         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16641         (GET_FRAME): Likewise.
16642         (GET_STACK): Likewise.
16643         (CALL_SIGHANDLER): Likewise.
16644         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16645         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16646         (GET_FRAME): Likewise.
16647         (GET_STACK): Likewise.
16648         (CALL_SIGHANDLER): Likewise.
16649         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16650         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16651         (GET_FRAME): Likewise.
16652         (GET_STACK): Likewise.
16653         (CALL_SIGHANDLER): Likewise.
16654         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16655         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16656         (GET_FRAME): Likewise.
16657         (GET_STACK): Likewise.
16658         (CALL_SIGHANDLER): Likewise.
16659         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16660         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16661         (GET_FRAME): Likewise.
16662         (GET_STACK): Likewise.
16663         (CALL_SIGHANDLER): Likewise.
16664         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16665         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16666         (GET_FRAME): Likewise.
16667         (GET_STACK): Likewise.
16668         (CALL_SIGHANDLER): Likewise.
16669         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16670         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16671         (GET_FRAME): Likewise.
16672         (GET_STACK): Likewise.
16673         (CALL_SIGHANDLER): Likewise.
16674         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16675         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16676         (FIRST_FRAME_POINTER): Likewise.
16677         (ADVANCE_STACK_FRAME): Likewise.
16678         (GET_STACK): Likewise.
16679         (GET_FRAME): Likewise.
16680         (CALL_SIGHANDLER): Likewise.
16681         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16682         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16683         (ADVANCE_STACK_FRAME): Likewise.
16684         (GET_STACK): Likewise.
16685         (GET_FRAME): Likewise.
16686         (CALL_SIGHANDLER): Likewise.
16687         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16688         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16689         (GET_FRAME): Likewise.
16690         (GET_STACK): Likewise.
16691         (CALL_SIGHANDLER): Likewise.
16692         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16693         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16694         (GET_FRAME): Likewise.
16695         (GET_STACK): Likewise.
16696         (CALL_SIGHANDLER): Likewise.
16697
16698 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
16699
16700         * sysdeps/x86_64/backtrace.c: Move to ....
16701         * debug/backtrace.c: ... here.
16702         * sysdeps/aarch64/backtrace.c: Remove file.
16703         * sysdeps/alpha/backtrace.c: Likewise.
16704         * sysdeps/hppa/backtrace.c: Likewise.
16705         * sysdeps/ia64/backtrace.c: Likewise.
16706         * sysdeps/mips/backtrace.c: Likewise.
16707         * sysdeps/nios2/backtrace.c: Likewise.
16708         * sysdeps/riscv/backtrace.c: Likewise.
16709         * sysdeps/sh/backtrace.c: Likewise.
16710         * sysdeps/tile/backtrace.c: Likewise.
16711
16712 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16713
16714         [BZ #22987]
16715         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16716         function.
16717         (fdimf): Likewise.
16718         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16719
16720         [BZ #17343]
16721         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16722         possibly overflowing computations.
16723
16724 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16725
16726         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16727         values from Linux-specific section now that it is in the GNU section.
16728         * sysdeps/gnu/errlist.c: Regenerate.
16729
16730 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16731
16732         * math/Makefile (libm-narrow-fns): Add sub.
16733         (libm-test-funcs-narrow): Likewise.
16734         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16735         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16736         * math/gen-auto-libm-tests.c (test_functions): Add sub.
16737         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16738         (NARROW_SUB_ROUND_TO_ODD): Likewise.
16739         (NARROW_SUB_TRIVIAL): Likewise.
16740         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16741         macro.
16742         (__dsubl): Likewise.
16743         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16744         dsub.
16745         (CFLAGS-nldbl-dsub.c): New variable.
16746         (CFLAGS-nldbl-fsub.c): Likewise.
16747         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16748         __nldbl_dsubl.
16749         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16750         prototype.
16751         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16752         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16753         * math/auto-libm-test-in: Add tests of sub.
16754         * math/auto-libm-test-out-narrow-sub: New generated file.
16755         * math/libm-test-narrow-sub.inc: New file.
16756         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16757         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16758         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16759         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16760         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16761         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16762         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16763         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16764         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16765         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16766         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16767         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16768         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16769         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16770         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16771         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16772         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16773         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16775         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16776         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16777         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16778         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16779         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16780         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16781         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16782         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16783         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16784         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16785         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16786         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16787         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16792         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16793         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16794         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16795         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16796         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16797         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16798         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16799         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16800         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16801         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16802
16803 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
16804
16805         [BZ #20079]
16806         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16807
16808 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
16809
16810         * benchtests/bench-timing.h (attribute_hidden): Undefine.
16811
16812 2018-03-18  Richard Braun  <rbraun@sceen.net>
16813
16814         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16815         thread reference.
16816
16817 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
16818
16819         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16820         (__libc_cleanup_fct): Define function.
16821         (__libc_cleanup_region_start, __libc_cleanup_region_end,
16822         __libc_cleanup_end): Rewrite implementation using
16823         __attribute__ ((__cleanup__)).
16824         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16825         * hurd/Makefile (routines): Add hurdlock.
16826         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16827         interface.
16828         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16829         * hurd/hurdpid.c: Include <lowlevellock.h>
16830         (_S_msg_proc_newids): Use lll_wait to synchronize.
16831         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16832         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16833         * mach/Makefile (lock-headers): Remove machine-lock.h.
16834         * mach/lock-intern.h: Include <lowlevellock.h> instead of
16835         <machine-lock.h>.
16836         (__spin_lock_t): New type.
16837         (__SPIN_LOCK_INITIALIZER): New macro.
16838         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16839         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16840         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16841         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16842         (__mutex_init): Initialize with lll.
16843         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16844         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16845         needing lll.
16846         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16847         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16848         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16849         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16850         (__setpgid): Use lll for synchronization.
16851         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16852         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16853         instead of <cthreads.h>.
16854         (_IO_lock_inexpensive): New macro
16855         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16856         (__libc_lock_self0): New declaration.
16857         (__libc_lock_owner_self): New macro.
16858         (__libc_key_t): Remove type.
16859         (_LIBC_LOCK_INITIALIZER): New macro.
16860         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16861         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16862         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16863         __libc_lock_define_initialized_recursive,
16864         __rtld_lock_define_initialized_recursive,
16865         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16866         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16867         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16868         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16869         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16870         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16871         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16872         New macros.
16873         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16874         * hurd/hurdlock.c: New file.
16875         * hurd/hurdlock.h: New file.
16876         * mach/lowlevellock.h: New file
16877
16878 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16879
16880         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16881         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16882         when opening a symlink with O_NOFOLLOW.
16883         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16884         path when flags contains O_NOFOLLOW.
16885         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16886         if flags contains O_DIRECTORY and the result is a directory.
16887         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16888         oneself when the pointer given in D is nul (as set by ext2fs).
16889         * sysdeps/mach/hurd/mlockall.c: New file.
16890         * sysdeps/mach/hurd/munlockall.c: New file.
16891
16892 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16893
16894         * hurd/hurdsig.c: Include <pthread.h>.
16895         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16896         get the signal thread stack layout.
16897         * hurd/Makefile (headers): Remove threadvar.h.
16898         (inline-headers): Remove threadvar.h.
16899         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16900         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16901         __hurd_threadvar_max, __hurd_errno_location.
16902         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16903         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16904         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16905         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16906         unless TLS is not initialized yet, in which case we do not need a
16907         critical section yet anyway.
16908         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16909         <machine-sp.h>.
16910         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16911         declarations.
16912         (__hurd_threadvar_index): Remove enum.
16913         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16914         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16915         inlines.
16916         (__hurd_reply_port0): New variable declaration.
16917         (__hurd_local_reply_port): New macro.
16918         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16919         (interrupted_reply_port_location): Add thread_t parameter.  Use it
16920         with THREAD_TCB to access thread-local variables.
16921         (_hurdsig_abort_rpcs): Pass ss->thread to
16922         interrupted_reply_port_location.
16923         (_hurd_internal_post_signal): Likewise.
16924         (_hurdsig_init): Use presence of cthread_fork instead of
16925         __hurd_threadvar_stack_mask to start signal thread by hand.
16926         Remove signal thread threadvar initialization.
16927         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16928         * hurd/sigunwind.c: Include <hurd/threadvar.h>
16929         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16930         of threadvar.
16931         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16932         __libc_lock_self0.
16933         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16934         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16935         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16936         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16937         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16938         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16939         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16940         define variables.
16941         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16942         <hurd/threadvar.h>.
16943         [IS_IN(rtld)] (rtld_errno): New variable.
16944         [IS_IN(rtld)] (__errno_location): New weak function.
16945         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16946         * sysdeps/mach/hurd/errno.c: Remove file.
16947         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16948         (__fork): Remove THREADVAR_SPACE macro and its use.
16949         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16950         variable.
16951         (init): Do not initialize threadvar.
16952         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16953         symbol.
16954         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16955         __hurd_local_reply_port instead of threadvar.
16956         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16957         _hurd_sigstate fields.
16958         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16959         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16960         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16961         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16962         instead of threadvar.
16963         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16964         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16965         (use_threadvar, global_reply_port): Remove variables.
16966         (__hurd_reply_port0): New variable.
16967         (__mig_get_reply_port): Use __hurd_local_reply_port and
16968         __hurd_reply_port0 instead of threadvar.
16969         (__mig_dealloc_reply_port): Likewise.
16970         (__mig_init): Do not initialize threadvar.
16971         * sysdeps/mach/hurd/profil.c: Fix comment.
16972         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16973         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16974         cthread_keycreate, cthread_getspecific, cthread_setspecific to
16975         __cthread_fork, __cthread_detach, __pthread_getattr_np,
16976         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16977         __cthread_setspecific.
16978         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16979         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16980         __cthread_t instead of cthread_fork, cthread_detach,
16981         pthread_getattr_np, pthread_attr_getstack.
16982         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16983         __cthread_keycreate.
16984         (cthread_getspecific): Rename to __cthread_getspecific.
16985         (cthread_setspecific): Rename to __cthread_setspecific.
16986         (__libc_getspecific): Use __cthread_getspecific instead of
16987         cthread_getspecific.
16988         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16989         __cthread_keycreate instead of cthread_keycreate.
16990         (__libc_setspecific): Use __cthread_setspecific instead of
16991         cthread_setspecific.
16992         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16993         Likewise.
16994         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16995         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
16996         testing whether it is defined.
16997
16998 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16999
17000         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17001         Define macro.
17002         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17003         * sysdeps/mach/i386/thread_state.h
17004         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17005         i386_THREAD_STATE.
17006         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17007         i386_THREAD_STATE.
17008         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17009
17010         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17011         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17012
17013         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17014         macros.
17015         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17016         descriptor instead of creating a new one.
17017         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17018
17019         * mach/setup-thread.c: Include <ldsodefs.h>.
17020         (__mach_setup_thread): Call _dl_allocate_tls, pass
17021         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17022         MACHINE_THREAD_STATE_FLAVOR, before getting
17023         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17024         MACHINE_THREAD_STATE_FLAVOR with the result.
17025         * hurd/hurdfault.c (_hurdsig_fault_init): Call
17026         MACHINE_THREAD_STATE_FIX_NEW.
17027         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17028         too.  Add original thread parameter.
17029
17030 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
17031
17032         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17033         Remove inline function.
17034
17035         * sysdeps/i386/fpu/libm-test-ulps: Update.
17036         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17037
17038 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
17039
17040         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17041         commit.
17042
17043 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
17044
17045         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17046         (__sincos_code): Remove define and undefine.
17047         [__FAST_MATH__] (__sincos): Remove inline function.
17048         [__FAST_MATH__] (__sincosf): Remove inline function.
17049         [__FAST_MATH__] (__sincosl): Remove inline function.
17050         (__atan2l): Remove inline functions.
17051         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17052         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17053         function.
17054         (floor): Remove inline function.
17055         (ceil): Likewise.
17056         [__FAST_MATH__] (__ldexp_code): Remove macro.
17057         [__FAST_MATH__] (ldexp): Remove inline function.
17058         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17059         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17060         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17061         [__USE_ISOC99] (__lrint_code): Remove macro.
17062         [__USE_ISOC99] (__llrint_code): Likewise.
17063         [__USE_ISOC99] (lrintf): Remove inline function.
17064         [__USE_ISOC99] (lrint): Likewise.
17065         [__USE_ISOC99] (lrintl): Likewise.
17066         [__USE_ISOC99] (llrint): Likewise.
17067         [__USE_ISOC99] (llrintf): Likewise.
17068         [__USE_ISOC99] (llrintl): Likewise.
17069
17070 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17071
17072         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17073         (__ieee754_sqrtf): Remove.
17074         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17075         (__ieee754_sqrtf): Remove.
17076         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17077         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17078         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17079         (__ieee754_sqrtf): Remove.
17080         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17081         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17082         (sqrtf): Remove.
17083         (sqrtl): Remove.
17084         (__ieee754_sqrt): Remove.
17085         (__ieee754_sqrtf): Remove.
17086         (__ieee754_sqrtl): Remove.
17087         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17088         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17089         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17090         (__ieee754_sqrtf): Remove.
17091         (__ieee754_sqrtl): Remove.
17092
17093 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17094
17095         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17096         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17097         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17098         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17099         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17100         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17101         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17102         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17103         Likewise.
17104         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17105         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17106         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17107         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17108         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17109         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17110         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17111         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17112         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17113         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17114         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17115         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17116         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17117         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17118         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17119         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17120         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17121         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17122         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17123         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17124         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17125         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17126         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17127         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17128         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17129         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17130         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17131         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17132         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17133         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17134         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17135         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17136         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17137         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17138         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17139         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17140         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17141         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17142         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17143         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17144
17145 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17146
17147         * include/math.h (sqrt): Declare with asm redirect.
17148         (sqrtf): Likewise.
17149         (sqrtl): Likewise.
17150         (sqrtf128): Likewise.
17151         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17152         nonlib and libnldbl with -fmath-errno.
17153         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17154         * math/w_sqrt_template.c: Likewise.
17155         * math/w_sqrtf_compat.c: Likewise.
17156         * math/w_sqrtl_compat.c: Likewise.
17157         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17158         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17159         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17160         complex.h.
17161
17162 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
17163
17164         * benchtests/Makefile: Define _ISOMAC.
17165         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17166         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17167         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17168         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17169         * benchtests/bench-timing.h: Define attribute_hidden.
17170
17171 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17172
17173         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17174         mov + lsr.
17175
17176 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17177
17178         [BZ #22963]
17179         * localedata/locales/cs_CZ (mon): Rename to...
17180         (alt_mon): This.
17181         (mon): Import from CLDR (genitive case).
17182
17183 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17184
17185         [BZ #22937]
17186         * localedata/locales/el_CY (abmon): Rename to...
17187         (ab_alt_mon): This.
17188         (abmon): Import from CLDR (abbreviated genitive case).
17189         * localedata/locales/el_GR (abmon): Rename to...
17190         (ab_alt_mon): This.
17191         (abmon): Import from CLDR (abbreviated genitive case).
17192
17193 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
17194
17195         [BZ #22932]
17196         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17197
17198 2018-03-15  Robert Buj  <robert.buj@gmail.com>
17199
17200         [BZ #22848]
17201         * localedata/locales/ca_ES (abmon): Rename to...
17202         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17203         (mon): Rename to...
17204         (alt_mon): This.
17205         (abmon): Import from CLDR (genitive case, month names preceded by
17206         "de" or "d’").
17207         (mon): Likewise.
17208         (abday): Synchronize with CLDR.
17209         (d_t_fmt): Likewise.
17210         (d_fmt): Likewise.
17211         (am_pm): Likewise.
17212
17213         (LC_TIME): Improve indentation.
17214         (LC_TELEPHONE): Likewise.
17215         (LC_NAME): Likewise.
17216         (LC_ADDRESS): Likewise.
17217
17218 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
17219
17220         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17221         (lrintf): Remove definitions used only with old GCC.
17222         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17223         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17224         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17225         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17226         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17227         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17228         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17229         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17230         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17231         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17232         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17233         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17234         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17235         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17236         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17237         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17238         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17239         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17240         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17241         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17242         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17243         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17244         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17245         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17246         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17247         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17248         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17249         [__FAST_MATH__] (__M_SQRT2): Remove macro.
17250
17251 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17252
17253         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17254         instruction to unbreak builds with binutils 2.26 and older.
17255
17256 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17257
17258         * sysdeps/aarch64/strncmp.S (count): New macro.
17259         (strncmp): Store misaligned length in SRC1 in COUNT.
17260         (mutual_align): Adjust.
17261         (misaligned8): Load dword at a time when it is safe.
17262
17263 2018-03-12  Zack Weinberg  <zackw@panix.com>
17264
17265         [BZ #1190]
17266         [BZ #19476]
17267         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17268         if the _IO_EOF_SEEN bit is already set; update commentary.
17269         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17270         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17271
17272         * support/support_openpty.c, support/tty.h: New files.
17273         * support/Makefile (libsupport-routines): Add support_openpty.
17274
17275         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17276         New test cases.
17277         * libio/Makefile (tests): Add tst-fgetc-after-eof.
17278         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17279
17280 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
17281
17282         * po/pt_BR.po: Update translations.
17283
17284 2018-03-12  David Michael  <fedora.dm0@gmail.com>
17285
17286         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17287         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17288         get a port to the startup server.
17289
17290 2018-03-11  Zack Weinberg  <zackw@panix.com>
17291
17292         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17293         before nldbl-compat.h.
17294
17295 2018-03-10  Zack Weinberg  <zackw@panix.com>
17296
17297         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17298         math.h or math_private.h.
17299
17300         * sysdeps/alpha/fpu/s_isnan.c
17301         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17302         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17303         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17304         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17305         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17306         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17307         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17308         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17309         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17312         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17313         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17314         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17315         Include math_private.h.
17316
17317         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17318         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17319         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17320         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17321         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17322         * sysdeps/powerpc/power7/fpu/s_logb.c:
17323         Include math.h and math_private.h.
17324
17325         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17326         uses of $at in .set noat / .set at.
17327
17328 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
17329
17330         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17331         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17332         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17333         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17334         Likewise.
17335
17336 2018-03-09  Florian Weimer  <fweimer@redhat.com>
17337
17338         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17339         in comment.
17340
17341 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17342
17343         [BZ #22919]
17344         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17345         Add nop before __startcontext, add explaining comments.
17346
17347 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17348
17349         [BZ #22926]
17350         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17351         empty for __SPE__.
17352         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17353         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17354         Do not build hardware transactional code for __SPE__.
17355         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17356         (__lll_trylock_elision): Likewise.
17357         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17358         (__lll_unlock_elision): Likewise.
17359
17360         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17361         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17362         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17363         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17364         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17365         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17366         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17367         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17368         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17369         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17370         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17371         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17372         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17373         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17374         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17375         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17376         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17377         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17378         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17379         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17380         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17381         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17382         (__ASSUME_CLONE_BACKWARDS): Define.
17383         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17384         __clone2 if __NR_clone2 is defined.
17385         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17386         (__ASSUME_CLONE_BACKWARDS): Likewise.
17387         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17388         (__ASSUME_CLONE_BACKWARDS): Likewise.
17389         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17390         (__ASSUME_CLONE2): Likewise.
17391         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17392         (__ASSUME_CLONE_BACKWARDS3): Likewise.
17393         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17394         variants and the define architecture can use.
17395         (__ASSUME_CLONE_DEFAULT): Define as default.
17396         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17397         (__ASSUME_CLONE_BACKWARDS): Likewise.
17398         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17399         (__ASSUME_CLONE_BACKWARDS): Likewise.
17400         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17401         (__ASSUME_CLONE_BACKWARDS2): Likewise.
17402
17403 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17404
17405         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17406
17407         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17408         time.
17409
17410         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17411         (do_test_limit): Likewise.
17412
17413         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17414         for every implementation.
17415         (do_test): Likewise.
17416
17417         * benchtests/bench-strncmp.c: Convert output to json.
17418
17419 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17420
17421         * io/futimens.c: Add missing start-of-file descriptive comment.
17422         * io/utime.c: Likewise.
17423         * misc/futimesat.c: Likewise.
17424         * misc/utimes.c: Likewise.
17425         * sysdeps/mach/hurd/futimesat.c: Likewise.
17426         * sysdeps/mach/hurd/utimes.c: Likewise.
17427         * sysdeps/posix/utime.c: Likewise.
17428         * sysdeps/posix/utimes.c: Likewise.
17429         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17430         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17431         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17432         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17433
17434 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17435
17436         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17437         hurd_futimes.
17438         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17439         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17440         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17441         (__futimens): Move implementation to...
17442         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17443         utime_tvalue_from_tspec): ... new helper functions.
17444         (hurd_futimens): New function.
17445         * sysdeps/mach/hurd/futimesat.c: New file.
17446         * sysdeps/mach/hurd/utimensat.c: New file.
17447
17448 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
17449
17450         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17451         UTIME_OMIT): New macros.
17452         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17453         before reverting to converting time spec to time value and calling
17454         __file_utimes.
17455         * sysdeps/mach/hurd/utime-helper.c: New file.
17456         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17457         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17458         reverting to utime_tvalue_from_tval and __file_utimes.
17459         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17460         (__lutimes): Just call hurd_futimens after lookup.
17461         * sysdeps/mach/hurd/utimes.c: Likewise.
17462
17463 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17464
17465         * bits/sigaction.h: Add include guard.
17466         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17467         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17468         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17469         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17470         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17471         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17472         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17473         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17474         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17475
17476 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
17477
17478         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17479         -Wmaybe-uninitialized for -Os.
17480         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17481         this disabling.
17482
17483 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17484
17485         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17486         __INO_T_MATCHES_INO64_T is defined.
17487         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17488         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17489         of definition.
17490         * dirent/alphasort64.c: Likewise.
17491         * dirent/scandir.c: Likewise.
17492         * dirent/scandir64-tail.c: Likewise.
17493         * dirent/scandir64.c: Likewise.
17494         * dirent/scandirat.c: Likewise.
17495         * dirent/scandirat64.c: Likewise.
17496         * dirent/versionsort.c: Likewise.
17497         * dirent/versionsort64.c: Likewise.
17498         * include/dirent.h: Likewise.
17499
17500         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17501         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17502         for socketpair endpoint.
17503         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17504         WRITE_BUFFER_SIZE as buffer size for sending socket.
17505         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17506         issue on system where send is implemented with sendto syscall.
17507         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17508         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17509         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17510         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17511
17512         [BZ #21269]
17513         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17514         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17515         sa_restorer for vDSO case.
17516         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17517
17518 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17519
17520         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17521         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17522         * hurd/hurd/ioctl.h: Include <mach/port.h>
17523         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17524         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17525         <mach/mach_types.h> and <mach/message.h>.
17526         (headers): Move mach/param.h to bits/mach/param.h.
17527         * sysdeps/mach/i386/mach/param.h: Move file to ...
17528         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
17529         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17530         of <mach/param.h>.
17531         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17532         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17533         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17534         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17535         trivial, for C++ conformity.
17536         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17537         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17538         Process mig output through $(migheadersed).
17539         * hurd/Makefile (migheadersed): Define variable.
17540         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17541         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17542         headers.
17543         * hurd/hurd.h: Include <bits/types/sigset_t.h>
17544         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17545         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17546         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17547         <bits/types/sigset_t.h>.
17548         [!defined __USE_GNU]: Do not #error out.
17549         (struct hurd_sigstate): Use _NSIG instead of NSIG.
17550         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17551         Include <stddef.h> and <bits/types/sigset_t.h>
17552         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17553         instead of sighandler_t.
17554         * stdlib/errno.h (error_t): Move definition to...
17555         * bits/types/error_t.h: ... new header.
17556         * stdlib/Makefile (headers): Add bits/types/error_t.h.
17557         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17558         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17559         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17560         * hurd/hurd.h: Include <bits/types/error_t.h>
17561         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17562         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17563         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17564         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17565         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17566         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17567         * sysdeps/mach/hurd/futimens.c: New file.
17568
17569 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17570
17571         [BZ #22918]
17572         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17573         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17574         * nscd/gai.c (__nss_hosts_database): Readd definition.
17575         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17576         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17577         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17578
17579 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
17580
17581         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17582         (ifunc_one): Likewise.
17583
17584 2018-03-01  DJ Delorie  <dj@delorie.com>
17585
17586         [BZ #22342]
17587         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17588         key value.
17589
17590 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
17591
17592         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17593         `match_pid' parameter.
17594         (td_ta_thr_iter): Update accordingly.
17595
17596 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17597
17598         * nptl/Makefile (install-lib-ldscripts): Remove.
17599         (install): Remove rule.
17600         ($(inst_libdir)/libpthread.so): Likewise.
17601
17602 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17603
17604         [BZ #22896]
17605         * localedata/locales/an_ES: update month and day names,
17606         improve d_fmt, improve postal_fmt, add country_post,
17607         add country_isbn
17608
17609 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17610
17611         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17612         Ukrainian instead of Bulgarian.
17613
17614 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17615
17616         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17617         reference.
17618
17619 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17620
17621         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
17622         * nptl/Makefile (routines): Add pthread_atfork.
17623         (static-only-routines): Set to pthread_atfork.
17624         (libpthread-routines): Remove pthread_atfork.
17625         (libpthread-static-only-routines): Remove.
17626         (install): Update comment.
17627         (libpthread.so): Do not install libpthread_nonshared.a.
17628         (tests): Do not link with libpthread_nonshared.a.
17629         (generated): Remove libpthread_nonshared.a.
17630         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17631         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17632         with libpthread_nonshared.a.
17633
17634 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
17635
17636         [BZ #22902]
17637         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17638         (libc_feholdexcept_setroundf128): New macro.
17639         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17640
17641         [BZ #15105]
17642         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17643         libc_hidden_def.
17644         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17645         * include/inttypes.h: New file.
17646
17647 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
17648
17649         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17650         -Os in two more places.
17651
17652 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17653
17654         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17655         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17656         be sorted correctly at the moment because of a bug.
17657
17658 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17659
17660         [BZ #22550] - es_ES locale (and other es_* locales): collation should
17661         treat ñ as a primary different character, sync the collation
17662         for Spanish with CLDR.
17663         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17664         * localedata/Makefile: Add new test files.
17665         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17666         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17667         collation order.
17668         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17669         * localedata/am_ET.UTF-8.in: New test file.
17670         * localedata/az_AZ.UTF-8.in: Likewise.
17671         * localedata/be_BY.UTF-8.in: Likewise.
17672         * localedata/ber_DZ.UTF-8.in: Likewise.
17673         * localedata/ber_MA.UTF-8.in: Likewise.
17674         * localedata/bg_BG.UTF-8.in: Likewise.
17675         * localedata/br_FR.UTF-8.in: Likewise.
17676         * localedata/cmn_TW.UTF-8.in: Likewise.
17677         * localedata/crh_UA.UTF-8.in: Likewise.
17678         * localedata/csb_PL.UTF-8.in: Likewise.
17679         * localedata/cv_RU.UTF-8.in: Likewise.
17680         * localedata/cy_GB.UTF-8.in: Likewise.
17681         * localedata/dz_BT.UTF-8.in: Likewise.
17682         * localedata/eo.UTF-8.in: Likewise.
17683         * localedata/es_ES.UTF-8.in: Likewise.
17684         * localedata/fa_IR.UTF-8.in: Likewise.
17685         * localedata/fi_FI.UTF-8.in: Likewise.
17686         * localedata/fil_PH.UTF-8.in: Likewise.
17687         * localedata/fur_IT.UTF-8.in: Likewise.
17688         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17689         * localedata/ha_NG.UTF-8.in: Likewise.
17690         * localedata/ig_NG.UTF-8.in: Likewise.
17691         * localedata/ik_CA.UTF-8.in: Likewise.
17692         * localedata/kk_KZ.UTF-8.in: Likewise.
17693         * localedata/ku_TR.UTF-8.in: Likewise.
17694         * localedata/ky_KG.UTF-8.in: Likewise.
17695         * localedata/ln_CD.UTF-8.in: Likewise.
17696         * localedata/mi_NZ.UTF-8.in: Likewise.
17697         * localedata/ml_IN.UTF-8.in: Likewise.
17698         * localedata/mn_MN.UTF-8.in: Likewise.
17699         * localedata/mr_IN.UTF-8.in: Likewise.
17700         * localedata/mt_MT.UTF-8.in: Likewise.
17701         * localedata/nb_NO.UTF-8.in: Likewise.
17702         * localedata/om_KE.UTF-8.in: Likewise.
17703         * localedata/os_RU.UTF-8.in: Likewise.
17704         * localedata/ps_AF.UTF-8.in: Likewise.
17705         * localedata/ro_RO.UTF-8.in: Likewise.
17706         * localedata/ru_RU.UTF-8.in: Likewise.
17707         * localedata/sc_IT.UTF-8.in: Likewise.
17708         * localedata/se_NO.UTF-8.in: Likewise.
17709         * localedata/sq_AL.UTF-8.in: Likewise.
17710         * localedata/sv_SE.UTF-8.in: Likewise.
17711         * localedata/szl_PL.UTF-8.in: Likewise.
17712         * localedata/tg_TJ.UTF-8.in: Likewise.
17713         * localedata/tk_TM.UTF-8.in: Likewise.
17714         * localedata/tt_RU.UTF-8.in: Likewise.
17715         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17716         * localedata/ug_CN.UTF-8.in: Likewise.
17717         * localedata/uz_UZ.UTF-8.in: Likewise.
17718         * localedata/vi_VN.UTF-8.in: Likewise.
17719         * localedata/yi_US.UTF-8.in: Likewise.
17720         * localedata/yo_NG.UTF-8.in: Likewise.
17721         * localedata/zh_CN.UTF-8.in: Likewise.
17722         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17723         file and fix bugs in the collation.
17724         * localedata/locales/az_AZ: Likewise.
17725         * localedata/locales/be_BY: Likewise.
17726         * localedata/locales/ber_DZ: Likewise.
17727         * localedata/locales/ber_MA: Likewise.
17728         * localedata/locales/bg_BG: Likewise.
17729         * localedata/locales/br_FR: Likewise.
17730         * localedata/locales/br_FR@euro: Likewise.
17731         * localedata/locales/ca_ES: Likewise.
17732         * localedata/locales/cns11643_stroke: Likewise.
17733         * localedata/locales/crh_UA: Likewise.
17734         * localedata/locales/cs_CZ: Likewise.
17735         * localedata/locales/csb_PL: Likewise.
17736         * localedata/locales/cv_RU: Likewise.
17737         * localedata/locales/cy_GB: Likewise.
17738         * localedata/locales/da_DK: Likewise.
17739         * localedata/locales/dz_BT: Likewise.
17740         * localedata/locales/en_CA: Likewise.
17741         * localedata/locales/eo: Likewise.
17742         * localedata/locales/es_CU: Likewise.
17743         * localedata/locales/es_EC: Likewise.
17744         * localedata/locales/es_ES: Likewise.
17745         * localedata/locales/es_US: Likewise.
17746         * localedata/locales/et_EE: Likewise.
17747         * localedata/locales/fa_IR: Likewise.
17748         * localedata/locales/fi_FI: Likewise.
17749         * localedata/locales/fil_PH: Likewise.
17750         * localedata/locales/fur_IT: Likewise.
17751         * localedata/locales/gez_ER@abegede: Likewise.
17752         * localedata/locales/ha_NG: Likewise.
17753         * localedata/locales/hr_HR: Likewise.
17754         * localedata/locales/hsb_DE: Likewise.
17755         * localedata/locales/hu_HU: Likewise.
17756         * localedata/locales/ig_NG: Likewise.
17757         * localedata/locales/ik_CA: Likewise.
17758         * localedata/locales/is_IS: Likewise.
17759         * localedata/locales/iso14651_t1_pinyin: Likewise.
17760         * localedata/locales/kk_KZ: Likewise.
17761         * localedata/locales/ku_TR: Likewise.
17762         * localedata/locales/ky_KG: Likewise.
17763         * localedata/locales/ln_CD: Likewise.
17764         * localedata/locales/lt_LT: Likewise.
17765         * localedata/locales/lv_LV: Likewise.
17766         * localedata/locales/mi_NZ: Likewise.
17767         * localedata/locales/ml_IN: Likewise.
17768         * localedata/locales/mn_MN: Likewise.
17769         * localedata/locales/mr_IN: Likewise.
17770         * localedata/locales/mt_MT: Likewise.
17771         * localedata/locales/nb_NO: Likewise.
17772         * localedata/locales/om_KE: Likewise.
17773         * localedata/locales/os_RU: Likewise.
17774         * localedata/locales/pl_PL: Likewise.
17775         * localedata/locales/ps_AF: Likewise.
17776         * localedata/locales/ro_RO: Likewise.
17777         * localedata/locales/ru_RU: Likewise.
17778         * localedata/locales/ru_UA: Likewise.
17779         * localedata/locales/sc_IT: Likewise.
17780         * localedata/locales/se_NO: Likewise.
17781         * localedata/locales/si_LK: Likewise.
17782         * localedata/locales/sq_AL: Likewise.
17783         * localedata/locales/sv_FI: Likewise.
17784         * localedata/locales/sv_FI@euro: Likewise.
17785         * localedata/locales/sv_SE: Likewise.
17786         * localedata/locales/szl_PL: Likewise.
17787         * localedata/locales/tg_TJ: Likewise.
17788         * localedata/locales/ti_ER: Likewise.
17789         * localedata/locales/tk_TM: Likewise.
17790         * localedata/locales/tl_PH: Likewise.
17791         * localedata/locales/tr_TR: Likewise.
17792         * localedata/locales/tt_RU: Likewise.
17793         * localedata/locales/tt_RU@iqtelif: Likewise.
17794         * localedata/locales/ug_CN: Likewise.
17795         * localedata/locales/uk_UA: Likewise.
17796         * localedata/locales/uz_UZ: Likewise.
17797         * localedata/locales/uz_UZ@cyrillic: Likewise.
17798         * localedata/locales/vi_VN: Likewise.
17799         * localedata/locales/yi_US: Likewise.
17800         * localedata/locales/yo_NG: Likewise.
17801
17802 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17803
17804         * gen-locales.mk: Make test files which contain @ modifiers in their
17805         name work.
17806         * localedata/gen-locale.sh: Likewise.
17807
17808 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17809
17810         * posix/tst-fnmatch.input: Fix results for range expressions
17811         for non C locales.
17812         * posix/tst-regexloc.c: Do not use a range expression for
17813         de_DE.ISO-8859-1 locale.
17814
17815 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17816
17817         * posix/bug-regex5.c: Fix test case because with the new
17818         iso14651_t1_common file, the da_DK locale now has 6 collating elements
17819         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17820         file.
17821
17822 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17823
17824         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17825         downloaded from ISO, the collation order of @-. and space has changed.
17826         Therefore, this test file needed to be adapted.
17827         * localedata/fr_CA.UTF-8.in: Likewise.
17828         * localedata/fr_FR.UTF-8.in: Likewise.
17829         * localedata/uk_UA.UTF-8.in: Likewise.
17830
17831 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17832
17833         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17834         order of ȥ in the new iso14651_t1_common file.
17835         * localedata/pl_PL.UTF-8.in: Likewise.
17836
17837 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17838
17839         * localedata/locales/iso14651_t1_common: Add sections for various
17840         scripts to the iso14651_t1_common file.
17841
17842 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17843
17844         * localedata/locales/iso14651_t1_common: Use the code point of a
17845         character in the fourth collation level instead of IGNORE for all
17846         entries which have IGNORE on all 4 levels.
17847
17848 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17849
17850         * localedata/locales/iso14651_t1_common: Add some convenient collation
17851         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17852         rules similar to those in CLDR.
17853
17854 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17855
17856         * localedata/locales/iso14651_t1_common: The new version of this
17857         file downloaded from ISO contained several syntax errors which
17858         are fixed by this patch.
17859
17860 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17861
17862         * localedata/locales/iso14651_t1_common: replace all <U.....>
17863         with <U000.....> because glibc understands only 4 digit or 8 digit
17864
17865 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17866
17867         * localedata/locales/iso14651_t1_common: Necessary changes
17868         to make the file downloaded from ISO usable by glibc.
17869
17870 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17871
17872         [BZ #14095]
17873         * localedata/locales/iso14651_t1_common: Update file to
17874         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17875
17876 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17877
17878         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17879         of <nptl/pthreadP.h>
17880         (thread_attr_compare): Move function to...
17881         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17882         * sysdeps/nptl/timer_routines.h: ... new header.
17883         * sysdeps/mach/hurd/gai_misc.h: New file.
17884
17885 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
17886
17887         * string/strcoll_l.c: Include <libc-diag.h>.
17888         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17889         declarations of seq1 and seq2.
17890
17891         [BZ #15105]
17892         * stdlib/atoi.c (atoi): Use libc_hidden_def.
17893         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17894
17895 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
17896
17897         [BZ #22433]
17898         [BZ #22807]
17899         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17900         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17901         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17902         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17903         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17904         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17905
17906 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17907
17908         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17909         macros used in __ptrace_request.
17910
17911 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
17912
17913         [BZ #22792]
17914         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17915         to $(CC).
17916         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17917         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17918         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17919         <tcb-offsets.h>.
17920
17921 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
17922
17923         [BZ #15105]
17924         * ctype/ctype.c (tolower): Use libc_hidden_def.
17925         (toupper): Likewise.
17926         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17927         [!_ISOMAC] (toupper): Likewise.
17928
17929 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17930
17931         * localedata/Makefile: Remove --quiet argument when
17932         installing locales
17933
17934 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17935
17936         [BZ #17438]
17937         * localedata/locales/pt_BR (LC_TIME): use / instead of -
17938         in d_fmt.
17939         * localedata/locales/pt_PT (LC_TIME): likewise
17940
17941 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17942
17943         [BZ #22646]
17944         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17945         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17946         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17947
17948 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17949
17950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17951
17952         * nptl/Makefile (routines): Remove unregister-atfork.
17953         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17954         (fork_handler_alloc): Remove function.
17955         (fork_handlers, fork_handler_init): New variables.
17956         (__fork_lock): Rename to atfork_lock.
17957         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17958         to use a dynamic array to add/remove atfork handlers.
17959         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17960         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17961         Remove declaration.
17962         (fork_handler): Remove next, refcntr, and need_signal member.
17963         (__run_fork_handler_type): New enum.
17964         (__run_fork_handlers): New prototype.
17965         * nptl/register-atfork.c: Remove file.
17966         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17967
17968         * sysdeps/nptl/nptl-signals.h: Move to ...
17969         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
17970         comments.
17971         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17972         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17973         unnecessary check for SIGTIMER.
17974         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17975         remove unnecessary removal of SIGTIMER.
17976         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17977         include-signals.h rename.
17978         * nptl/pthreadP.h: Likewise.
17979         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17980         __is_internal_signal instead of __nptl_is_internal_signal.
17981
17982 2018-02-22  Andrew Waterman  <andrew@sifive.com>
17983
17984         [BZ # 22884]
17985         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17986         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17987         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17988         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17989
17990 2018-02-22  DJ Delorie  <dj@delorie.com>
17991
17992         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17993
17994 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17995
17996         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17997         do_misaligned, not misaligned8.
17998
17999 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
18000
18001         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18002         Add memcpy_thunderx2.
18003         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18004         Increment to 4.
18005         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18006         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18007         and IS_THUNDERX2PA checks.
18008         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18009         Use macro to set name appropriately.
18010         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18011         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18012         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18013         New macro.
18014         (IS_THUNDERX2): New macro.
18015
18016 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18017
18018         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18019
18020 2018-02-21  Zack Weinberg  <zackw@panix.com>
18021
18022         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18023         Define here, unconditionally.
18024         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18025         * libio/libioP.h: Remove #if 0 blocks.
18026         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18027         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18028         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
18029
18030         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18031         Assume weak_alias is always defined.
18032
18033         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18034         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18035         Remove #if 0 and #ifdef TODO blocks.
18036         Assume text_set_element is always defined.
18037
18038         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18039         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18040         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18041
18042         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18043         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18044         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18045         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18046         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18047         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18048         Reformat bit flags for _flags field to make occupancy clearer.
18049         Update commentary.
18050         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18051         Keep definitions consistent with those in libio/libio.h.
18052
18053         * libio/libio.h (_IO_file_flags): Remove macro.
18054         All uses changed to _flags.
18055
18056         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18057         (__HAVE_COLUMN, _IO_BE): Don't define.
18058         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18059         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18060         * libio/libioP.h (EOF): Don't define.
18061         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18062         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18063         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18064         testing _IO_UNIFIED_JUMPTABLES.
18065
18066         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18067         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18068         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18069         (_IO_size_t): Delete; all uses changed to size_t.
18070         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18071         (_IO_off_t): Delete; all uses changed to off_t.
18072         (_IO_off64_t): Delete; all uses changed to off64_t.
18073         (_IO_pid_t): Delete; all uses changed to pid_t.
18074         (_IO_uid_t): Delete; all uses changed to uid_t.
18075         (_IO_wint_t): Delete; all uses changed to wint_t.
18076         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18077         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18078         (_IO_cookie_io_functions_t): Delete; all uses changed to
18079         cookie_io_functions_t.
18080         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18081         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18082         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18083         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18084
18085         * libio/iofopncook.c: Remove unnecessary forward declarations.
18086         * libio/iolibio.h: Correct outdated commentary.
18087         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18088         * stdio-common/fxprintf.c (__fxprintf_nocancel):
18089         Remove unnecessary casts.
18090         * stdio-common/getline.c: Use _IO_getdelim directly.
18091         Don't redefine ssize_t.
18092         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18093         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18094         Remove outdated comments.
18095         * stdio-common/vfscanf.c: Don't redefine va_list.
18096
18097         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18098         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18099         Remove preprocessor conditionals on _LIBC and __USE_GNU,
18100         which are always true, and __cplusplus, which is always false.
18101
18102 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
18103
18104         [BZ #15105]
18105         [BZ #19463]
18106         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18107         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18108         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
18109         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18110         libc_hidden_proto.
18111         [!_ISOMAC] (putc_unlocked): Likewise.
18112         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18113         define inline if [__USE_EXTERN_INLINES].
18114         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18115         putc_unlocked.
18116
18117         [BZ #15105]
18118         [BZ #19463]
18119         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18120         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18121         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18122         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18123         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18124         getc_unlocked.
18125         * time/tzfile.c (__tzfile_read): Likewise.
18126
18127 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
18128
18129         [BZ #22517]
18130         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18131
18132 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18133
18134         * io/fcntl.h: Fix a typo in a comment.
18135
18136 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
18137
18138         [BZ #22862]
18139         * include/features.h: Add _ISOC11_SOURCE to test for whether to
18140         define _DEFAULT_SOURCE.
18141         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18142
18143 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18144
18145         [BZ #20890]
18146         * elf/cache.c (save_cache): Call fsync on temporary file before
18147         renaming it.
18148         (save_aux_cache): Call fdatasync on temporary file before renaming
18149         it.
18150
18151 2018-02-21  Florian Weimer  <fweimer@redhat.com>
18152
18153         [BZ #22787]
18154         * include/caller.h: Remove file.
18155         * elf/dl-caller.c: Likewise.
18156         * elf/Makefile (dl-routines): Remove dl-caller.
18157         (shared-only-routines): Do not add dl-caller.
18158         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18159         __check_caller.
18160         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18161         member.
18162         (dl_open_worker): Do not call __check_caller.
18163         (_dl_open): Do not set caller_dl_open member.
18164         * elf/rtld.c (_rtld_global_ro): Do not initialize
18165         _dl_check_caller member.
18166         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18167         _dl_check_caller member.
18168         (_dl_check_caller): Remove declaration.
18169         * sysdeps/unix/sysv/linux/dl-execstack.c
18170         (_dl_make_stack_executable): Do not call __check_caller.
18171
18172 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18173
18174         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18175         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18176
18177 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18178
18179         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18180         description.
18181
18182 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
18183
18184         [BZ #16335]
18185         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18186         of 199606L, 200112L, and 200809L.
18187         (_XOPEN_SOURCE): Document special values of 600 and 700.
18188         (_ISOC11_SOURCE): Document macro.
18189         (_ATFILE_SOURCE): Likewise.
18190         (_FORTIFY_SOURCE): Likewise.
18191
18192 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
18193
18194         [BZ #15105]
18195         [BZ #19463]
18196         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18197         and define as weak alias of __ferror_unlocked.  Use
18198         libc_hidden_weak.
18199         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18200         libc_hidden_proto.
18201         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18202         function if [__USE_EXTERN_INLINES].
18203         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18204         ferror_unlocked.
18205
18206 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
18207
18208         [BZ #6889]
18209         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18210
18211 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18212
18213         [BZ #22818]
18214         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18215         the GLIBC_2.1 version.
18216
18217 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
18218
18219         [BZ #21508]
18220         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18221         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18222         intl/tst-gettext-de.po from po/de.po by removing the
18223         POT-Creation-Date line.
18224         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18225         ../po/de.po.
18226         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18227         ../po/de.po.
18228
18229 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18230
18231         * mach/Makefile (headers): Add mach/param.h.
18232         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18233         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18234         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18235         (__ptsname_r): Move implementation to...
18236         (__ptsname_internal): ... new function.  Add filling the STP
18237         structure.
18238
18239 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
18240
18241         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18242         idouble to 1 ULP.
18243
18244 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
18245
18246         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18247         syntax.
18248
18249 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
18250
18251         * nptl/Makefile (tst-mutex8-ENV): Delete.
18252         * nptl/tst-mutex8.c (check_type):
18253         Add runtime check if mutex will be elided.
18254
18255 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
18256
18257         [BZ #20980]
18258         [BZ #21234]
18259         * manual/install.texi (Configuring and compiling): Describe
18260         passing CC and CFLAGS on configure command line, not as
18261         environment variables.  Use @code markup on those variables.
18262         Specify what options go in CC and what go in CFLAGS.  Note the
18263         requirement to compile with optimization.
18264         * INSTALL: Regenerated.
18265
18266         [BZ #18124]
18267         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18268         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18269         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18270         __sigprocmask instead of sigprocmask.
18271         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18272         Likewise.
18273         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18274         __sigsetjmp and sigprocmask.
18275
18276         [BZ #15105]
18277         * include/argz.h (argz_next): Use libc_hidden_proto.
18278         (__argz_next): Likewise.
18279         * string-argz-next.c (__argz_next): Use libc_hidden_def.
18280         (argz_next): Use libc_hidden_weak.
18281
18282         [BZ #15105]
18283         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18284         libc_hidden_proto.
18285         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18286         libc_hidden_def.
18287
18288         [BZ #15105]
18289         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18290         libc_hidden_proto.
18291         * libio/iofputs.c (fputs): Use libc_hidden_weak.
18292
18293         [BZ #15105]
18294         [BZ #19463]
18295         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18296         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
18297         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18298         (__feof_unlocked): New declaration, and inline function if
18299         [__USE_EXTERN_INLINES].
18300         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18301         instead of feof_unlocked.
18302         * intl/localealias.c [_LIBC] (FEOF): Likewise.
18303         * nss/nsswitch.c (nss_parse_file): Likewise.
18304         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18305         Likewise.
18306         * time/getdate.c (__getdate_r): Likewise.
18307         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18308         Define as macro to call __feof_unlocked.
18309
18310 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18311
18312         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18313
18314 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
18315
18316         * math/Makefile: Remove mpexp.c and mplog.c
18317         * sysdeps/i386/fpu/mpexp.c: Delete file.
18318         * sysdeps/i386/fpu/mplog.c: Likewise.
18319         * sysdeps/ia64/fpu/mpexp.c: Likewise.
18320         * sysdeps/ia64/fpu/mplog.c: Likewise.
18321         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18322         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18323         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18324         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18325         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18326         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18327         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18328         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18329         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18330         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18331         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18332         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18333         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18334         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18335         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18336         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18337
18338 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18339
18340         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18341
18342 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18343
18344         * sysdeps/sh/libm-test-ulps: Update.
18345
18346 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18347
18348         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18349         idouble to 1 ULP.
18350
18351 2018-02-12  Zack Weinberg  <zackw@panix.com>
18352
18353         [BZ #19239]
18354         * posix/sys/types.h: Don't include sys/sysmacros.h.
18355         * misc/sys/sysmacros.h: Remove the conditional deprecation
18356         warnings for the macros defined by this header.
18357
18358 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18359
18360         * manual/probes.texi: Remove slowexp probes.
18361         * math/Makefile: Remove slowexp.
18362         * sysdeps/generic/math_private.h (__slowexp): Remove.
18363         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18364         document error bounds.
18365         * sysdeps/i386/fpu/slowexp.c: Remove.
18366         * sysdeps/ia64/fpu/slowexp.c: Remove.
18367         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18368         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18369         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18370         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18371         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18372         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18373         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18374         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18375         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18376         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18377         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18378
18379 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
18380
18381         [BZ #13932]
18382         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18383         * benchtests/pow-inputs: Update comment for slow path cases.
18384         * manual/probes.texi (slowpow_p10): Delete removed probe.
18385         (slowpow_p10): Likewise.
18386         * math/Makefile: Remove halfulp.c and slowpow.c.
18387         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18388         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18389         (__halfulp): Remove.
18390         (__slowpow): Remove.
18391         * sysdeps/i386/fpu/halfulp.c: Delete file.
18392         * sysdeps/i386/fpu/slowpow.c: Likewise.
18393         * sysdeps/ia64/fpu/halfulp.c: Likewise.
18394         * sysdeps/ia64/fpu/slowpow.c: Likewise.
18395         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18396         improve comments and add error analysis.
18397         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18398         (power1): Remove function:
18399         (log1): Remove error argument, add error analysis.
18400         (my_log2): Remove function.
18401         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18402         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18403         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18404         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18405         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18406         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18407         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18408         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18409         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18410         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18411         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18412         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18413         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18414         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18415
18416 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18417
18418         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18419         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18420
18421 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
18422
18423         [BZ #22433]
18424         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18425         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18426         and PTRACE_SETHBPREGS.
18427
18428 2018-02-10  Zack Weinberg  <zackw@panix.com>
18429
18430         [BZ #22830]
18431         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18432         correctly.
18433         * malloc/tst-malloc-stats-cancellation.c: New test case.
18434         * malloc/Makefile: Add new test case.
18435
18436 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18437
18438         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18439
18440 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
18441
18442         * math/Makefile (libm-narrow-fns): Add add.
18443         (libm-test-funcs-narrow): Likewise.
18444         * math/Versions (GLIBC_2.28): Add narrowing add functions.
18445         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18446         * math/gen-auto-libm-tests.c (test_functions): Add add.
18447         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18448         (NARROW_ADD_ROUND_TO_ODD): Likewise.
18449         (NARROW_ADD_TRIVIAL): Likewise.
18450         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18451         macro.
18452         (__daddl): Likewise.
18453         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18454         dadd.
18455         (CFLAGS-nldbl-dadd.c): New variable.
18456         (CFLAGS-nldbl-fadd.c): Likewise.
18457         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18458         __nldbl_daddl.
18459         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18460         prototype.
18461         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18462         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18463         * math/auto-libm-test-in: Add tests of add.
18464         * math/auto-libm-test-out-narrow-add: New generated file.
18465         * math/libm-test-narrow-add.inc: New file.
18466         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18467         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18468         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18469         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18470         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18471         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18472         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18473         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18474         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18475         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18476         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18477         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18478         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18479         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18480         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18481         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18482         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18483         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18484         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18485         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18486         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18487         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18488         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18489         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18490         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18491         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18492         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18493         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18494         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18495         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18496         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18497         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18502         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18503         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18504         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18505         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18506         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18507         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18508         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18509         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18510         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18511         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18512
18513         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18514         (f128-pairs): New variable.
18515         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18516         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18517         to CFLAGS.
18518         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18519         Also make tests add $(f128-loader-link) to gnulib-tests.
18520
18521 2018-02-09  DJ Delorie  <dj@redhat.com>
18522
18523         [BZ #22827]
18524         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18525         64-bit ELF type for 64-bit ELF objects.
18526
18527 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
18528
18529         * math/libm-test-driver.c (snan_tests_arg): New variable.
18530         * math/libm-test-support.h (snan_tests_arg): New declaration.
18531         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18532
18533         * math/Makefile (test-type-pairs): New variable.
18534         (test-type-pairs-f64xf128-yes): Likewise.
18535         (tests): Add test-narrow-macros.
18536         (libm-test-funcs-narrow): New variable.
18537         (libm-test-c-narrow): Likewise.
18538         (generated): Add $(libm-test-c-narrow).
18539         (libm-tests-base-narrow): New variable.
18540         (libm-tests-narrow): Likewise.
18541         (libm-tests): Add $(libm-tests-narrow).
18542         (libm-tests-for-type): Handle $(libm-tests-narrow).
18543         (libm-test-c-narrow-obj): New variable.
18544         ($(libm-test-c-narrow-obj)): New rule.
18545         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18546         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18547         $(o-iterator) to set dependencies and CFLAGS.
18548         * math/gen-auto-libm-tests.c: Document use for narrowing
18549         functions.
18550         (output_for_one_input_case): Take argument NARROW.
18551         (generate_output): Likewise.  Update call to
18552         output_for_one_input_case.
18553         (main): Take --narrow option.  Update call to generate_output.
18554         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18555         (apply_lit): Update call to _apply_lit.
18556         (apply_arglit): New function.
18557         (parse_args): Handle "a" arguments.
18558         (parse_auto_input): Handle format names using ":".
18559         * math/README.libm-test: Document "a" parameter type.
18560         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18561         (ARG_TYPE_TRUE_MIN): Likewise.
18562         (ARG_TYPE_MAX): Likwise.
18563         (ARG_MIN_EXP): Likewise.
18564         (ARG_MAX_EXP): Likewise.
18565         (ARG_MANT_DIG): Likewise.
18566         (TEST_COND_arg_ibm128): Likewise.
18567         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18568         (TEST_COND_arg_fmt): New macro.
18569         (init_max_error): Update prototype.
18570         * math/libm-test-support.c (test_ibm128): New variable.
18571         (init_max_error): Take argument testing_ibm128 and set test_ibm128
18572         instead of using [TEST_COND_ibm128] conditional.
18573         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18574         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18575         [TEST_NARROW] (TEST_MSG): New definition.
18576         (arg_plus_zero): New macro.
18577         (arg_minus_zero): Likewise.
18578         (arg_plus_infty): Likewise.
18579         (arg_minus_infty): Likewise.
18580         (arg_qnan_value_pl): Likewise.
18581         (arg_qnan_value): Likewise.
18582         (arg_snan_value_pl): Likewise.
18583         (arg_snan_value): Likewise.
18584         (arg_max_value): Likewise.
18585         (arg_min_value): Likewise.
18586         (arg_min_subnorm_value): Likewise.
18587         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18588         (RUN_TEST_LOOP_aa_f): New macro.
18589         (TEST_SUFF): New macro.
18590         (TEST_SUFF_STR): Likewise.
18591         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18592         (TEST_COND_any_ibm128): New macro.
18593         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18594         this_func.  Update call to init_max_error.
18595         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18596         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18597         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18598         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18599         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18600         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18601         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18602         * math/test-math-scalar.h (TEST_NARROW): Likewise.
18603         * math/test-math-vector.h (TEST_NARROW): Likewise.
18604         * math/test-arg-double.h: New file.
18605         * math/test-arg-float128.h: Likewise.
18606         * math/test-arg-float32x.h: Likewise.
18607         * math/test-arg-float64.h: Likewise.
18608         * math/test-arg-float64x.h: Likewise.
18609         * math/test-arg-ldouble.h: Likewise.
18610         * math/test-math-narrow.h: Likewise.
18611         * math/test-narrow-macros.c: Likewise.
18612         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18613         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18614         test-narrow-macros-ldbl-64.
18615         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18616
18617         * math/bits/mathcalls-narrow.h: New file.
18618         * include/bits/mathcalls-narrow.h: Likewise.
18619         * math/math-narrow.h: Likewise.
18620         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18621         (__MATHCALL_NARROW_ARGS_2): Likewise.
18622         (__MATHCALL_NARROW_ARGS_3): Likewise.
18623         (__MATHCALL_NARROW_NORMAL): Likewise.
18624         (__MATHCALL_NARROW_REDIR): Likewise.
18625         (__MATHCALL_NARROW): Likewise.
18626         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18627         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18628         defined.
18629         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18630         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18631         (libm-narrow-fns): New variable.
18632         (libm-narrow-types-basic): Likewise.
18633         (libm-narrow-types-ldouble-yes): Likewise.
18634         (libm-narrow-types-float128-yes): Likewise.
18635         (libm-narrow-types-float128-alias-yes): Likewise.
18636         (libm-narrow-types): Likewise.
18637         (libm-routines): Add narrowing functions.
18638         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18639         (libc_feholdexcept_setroundf128): New macro.
18640         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18641         * sysdeps/ieee754/float128/float128_private.h: Include
18642         <math/math-narrow.h>.
18643         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18644         Undefine and redefine.
18645         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18646         (libm_alias_float_ldouble): Undefine and redefine.
18647         (libm_alias_double_ldouble): Likewise.
18648
18649         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18650
18651 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
18652
18653         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18654         FPCR/FPSR.
18655
18656 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
18657
18658         * manual/creature.texi: Convert references to gcc.info to gcc.
18659         * manual/stdio.texi: Likewise.
18660         * manual/string.texi: Likewise.
18661
18662 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18663
18664         [BZ #17979]
18665         * posix/bits/types.h (__int_least8_t): New typedef.
18666         (__uint_least8_t): Likewise.
18667         (__int_least16_t): Likewise.
18668         (__uint_least16_t): Likewise.
18669         (__int_least32_t): Likewise.
18670         (__uint_least32_t): Likewise.
18671         (__int_least64_t): Likewise.
18672         (__uint_least64_t): Likewise.
18673         * sysdeps/generic/stdint.h (int_least8_t): Define using
18674         __int_least8_t.
18675         (int_least16_t): Define using __int_least16_t.
18676         (int_least32_t): Define using __int_least32_t.
18677         (int_least64_t): Define using __int_least64_t.
18678         (uint_least8_t): Define using __uint_least8_t.
18679         (uint_least16_t): Define using __uint_least16_t.
18680         (uint_least32_t): Define using __uint_least32_t.
18681         (uint_least64_t): Define using __uint_least64_t.
18682         * wcsmbs/uchar.h: Include <bits/types.h>.
18683         (char16_t): Define using __uint_least16_t conditional only on
18684         [!__USE_ISOCXX11].
18685         (char32_t): Define using __uint_least32_t conditional only on
18686         [!__USE_ISOCXX11].
18687         * wcsmbs/test-char-types.c: New file.
18688         * wcsmbs/Makefile (tests): Add test-char-types.
18689
18690         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18691         version to 4.0.1.
18692
18693 2018-02-07  Zack Weinberg  <zackw@panix.com>
18694
18695         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18696         Delete all contents except for definitions of _G_HAVE_MMAP and
18697         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
18698         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18699         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
18700         change as above.
18701
18702         * libio/libio.h: Don't include bits/_G_config.h here.
18703         Include stddef.h with __need_wchar_t defined.  Include
18704         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18705         Define _IO_iconv_t here, directly.
18706         Don't define _IO_HAVE_ST_BLKSIZE.
18707         * libio/libioP.h: Include _G_config.h here.  Move include of
18708         shlib-compat.h up with rest of includes.  Simplify conditionals
18709         controlling definition of _IO_JUMPS_OFFSET.
18710
18711         * csu/init.c: Remove always-true #if around entire file.
18712         Don't include stdio.h.  Set _IO_stdin_used to hardwired
18713         constant 0x20001, and update commentary.
18714         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18715         Replace all uses of _G_va_list with __gnuc_va_list.
18716         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18717         instead of #if _IO_HAVE_ST_BLKSIZE.
18718         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18719         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18720         not #ifdef.
18721
18722         * libio/bits/libio.h: Move back to libio/libio.h and adjust
18723         multiple-include guard to match.
18724         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18725         into this file.
18726         Remove preprocessor conditionals that are always true and/or
18727         redundant to other preprocessor conditionals in the same nest.
18728         Include shlib-compat.h unconditionally.
18729         Error out if _LIBC is not defined, or if _ISOMAC is defined,
18730         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18731         defined after including stdio.h.
18732         Use __BEGIN_DECLS/__END_DECLS.
18733
18734         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18735         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18736         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18737
18738 2018-02-07  Zack Weinberg  <zackw@panix.com>
18739
18740         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18741         New single-type headers split from _G_config.h.
18742         * libio/bits/types/cookie_io_functions_t.h
18743         * libio/bits/types/struct_FILE.h
18744         New single-type headers split from libio.h.
18745
18746         * libio/Makefile: Install the above new headers.  Don't install
18747         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18748         bits/libio-ldbl.h.
18749         * libio/_G_config.h, libio/libio.h: Delete file.
18750
18751         * libio/bits/libio.h: Remove improper-inclusion guard.
18752         Include stdio.h and don't repeat anything that it does.
18753         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18754         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18755         __io_read_fn as cookie_read_function_t,
18756         __io_write_fn as cookie_write_function_t,
18757         __io_seek_fn as cookie_seek_function_t,
18758         __io_close_fn as cookie_close_function_t,
18759         and _IO_cookie_io_functions_t as cookie_io_functions_t.
18760         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18761         here, in the "compatibility defines" section.  Remove an #if 0
18762         block.  Use the "body" macros from bits/types/struct_FILE.h to
18763         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18764         and _IO_ferror_unlocked.
18765         Move prototypes of __uflow and __overflow...
18766
18767         * libio/stdio.h: ...here.  Don't include bits/libio.h.
18768         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
18769         directly from stdarg.h.  Include bits/types/__fpos_t.h,
18770         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18771         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18772         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18773         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18774         cookie_io_functions_t, not _IO_cookie_io_functions_t;
18775         __ssize_t, not _IO_ssize_t.  Unconditionally define
18776         BUFSIZ as 8192 and EOF as (-1).
18777
18778         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
18779         macros from bits/types/struct_FILE.h instead of _IO_* macros
18780         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18781         instead of _IO_ssize_t.
18782         * libio/bits/stdio2.h: Similarly.
18783
18784         * libio/iolibio.h: Add multiple-include guard.
18785         Include bits/libio.h after stdio.h.
18786         * libio/libioP.h: Add multiple-include guard.
18787         Include stdio.h and bits/libio.h before iolibio.h.
18788
18789         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18790         * include/bits/types/cookie_io_functions_t.h
18791         * include/bits/types/struct_FILE.h: New wrappers.
18792
18793         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18794         Get definitions of _G_fpos_t and _G_fpos64_t from
18795         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18796         respectively.  Remove improper-inclusion guards.
18797
18798         * conform/data/stdio.h-data: Update expectations of va_list.
18799         * scripts/check-installed-headers.sh: Remove special case for
18800         libio.h and _G_config.h.
18801
18802 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18803
18804         [BZ #15105]
18805         [BZ #19463]
18806         * include/sys/sysmacros.h [!_ISOMAC]
18807         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18808         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18809         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18810         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18811         libc_hidden_proto.
18812         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18813         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18814         Likewise.
18815         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18816         Undefine and redefine to add use __gnu_dev_ prefix.
18817         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18818         Likewise.
18819         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18820         and define as hidden inline function.
18821         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18822         Likewise.
18823         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18824         Likewise.
18825         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18826         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18827         (gnu_dev_minor): Likewise.
18828         (gnu_dev_makedev): Likewise.
18829         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18830         makedev.
18831         * posix/wordexp.c (exec_comm_child): Likewise.
18832         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18833         instead of minor and __gnu_dev_major instead of major.
18834         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18835         __gnu_dev_major instead of major.
18836         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18837         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18838         instead of gnu_dev_minor.
18839         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18840         (SLAVE_P): Likewise.
18841         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18842         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18843         instead of major.
18844
18845         [BZ #21313]
18846         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18847         in another place.
18848         * locale/weightwc.h (findidx): Likewise.
18849
18850 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
18851
18852         * manual/probes.texi (slowlog): Delete documentation of removed probe.
18853         (slowlog_inexact): Likewise
18854         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18855         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18856
18857 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
18858
18859         [BZ #22797]
18860         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18861         missing second underscore to parameter name.
18862
18863 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18864
18865         [BZ #14508]
18866         [BZ #15512]
18867         [BZ #17082]
18868         [BZ #20530]
18869         * bits/byteswap.h: Update file comment.  Do not include
18870         <bits/byteswap-16.h>.
18871         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
18872         constant.
18873         (__bswap_16): Define as inline function.
18874         (__bswap_constant_32): Reformat definition.
18875         (__bswap_32): Always define as inline function, not macro, using
18876         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18877         otherwise __bswap_constant_32.
18878         (__bswap_constant_64): Reformat definition.  Do not use
18879         __extension__ here.
18880         (__bswap_64): Always define as inline function, not macro.  Use
18881         __extension__ on function definition.  Use __builtin_bswap64 if
18882         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18883         * string/test-endian-file-scope.c: New file.
18884         * string/test-endian-sign-conversion.c: Likewise.
18885         * string/Makefile (headers): Remove bits/byteswap-16.h.
18886         (tests): Add test-endian-file-scope and
18887         test-endian-sign-conversion.
18888         (CFLAGS-test-endian-sign-conversion.c): New variable.
18889         * bits/byteswap-16.h: Remove file.
18890         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18891         * sysdeps/ia64/bits/byteswap.h: Likewise.
18892         * sysdeps/m68k/bits/byteswap.h: Likewise.
18893         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18894         * sysdeps/s390/bits/byteswap.h: Likewise.
18895         * sysdeps/tile/bits/byteswap.h: Likewise.
18896         * sysdeps/x86/bits/byteswap-16.h: Likewise.
18897         * sysdeps/x86/bits/byteswap.h: Likewise.
18898
18899         [BZ #17721]
18900         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18901         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18902         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18903         199901L] (__restrict): Define to restrict.
18904
18905         [BZ #19667]
18906         * string/testcopy.c: Include <support/support.h>.  Do not include
18907         <malloc.h>.  Use <support/test-driver.c>.
18908         (main): Rename to do_test.  Make static.  Use xmalloc instead of
18909         malloc.
18910
18911         [BZ #13575]
18912         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18913         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18914         (SSIZE_MAX): Define to INT_MAX.
18915         * posix/test-ssize-max.c: New file.
18916         * posix/Makefile (tests): Add test-ssize-max.
18917
18918         [BZ #19668]
18919         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18920         <support/support.h>.  Do not include <malloc.h>.
18921         (query_auxv): Use xmalloc instead of malloc.
18922
18923         [BZ #14553]
18924         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18925         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18926         instead of loff_t.
18927
18928 2018-02-06  Florian Weimer  <fweimer@redhat.com>
18929
18930         [BZ #18023]
18931         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18932         Use scratch_buffer instead of extend_alloca.
18933
18934 2018-02-06  Zack Weinberg  <zackw@panix.com>
18935
18936         * libio/stdio.h: Don't define getc or putc as macros.
18937         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18938         not _IO_getc and _IO_putc.
18939
18940         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18941         * stdio-common/tstgetln.c: Don't redefine ssize_t.
18942
18943 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18944
18945         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18946         (TCP_FASTOPEN_NO_COOKIE): Likewise.
18947
18948         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18949
18950         [BZ #14890]
18951         * elf/elf.h (NT_PRFPREG): New macro.
18952         (NT_S390_VXRS_LOW): Likewise.
18953         (NT_S390_VXRS_HIGH): Likewise.
18954         (NT_S390_GS_CB): Likewise.
18955         (NT_S390_GS_BC): Likewise.
18956         (NT_S390_RI_CB): Likewise.
18957
18958         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18959         (MAP_SYNC): New macro.
18960         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18961         Likewise.
18962         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18963         (MAP_SYNC): Likewise.
18964         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18965         (MAP_SYNC): Likewise.
18966         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18967         (MAP_SYNC): Likewise.
18968         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18969         (MAP_SYNC): Likewise.
18970         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18971         (MAP_SYNC): Likewise.
18972         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18973         (MAP_SYNC): Likewise.
18974         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18975         Likewise.
18976         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18977         Likewise.
18978
18979         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18980         (MAP_SHARED_VALIDATE): New macro.
18981         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18982         (MAP_SHARED_VALIDATE): Likewise.
18983
18984 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18985
18986         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18987         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18988         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18989
18990 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18991
18992         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
18993         (DT_NUM): Updated to 35.
18994
18995 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18996
18997         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18998         __builtin_expect with __glibc_likely and __glibc_unlikely.
18999         (elf_machine_rela): Likewise.
19000         (elf_machine_lazy_rel): Likewise.
19001
19002 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19003
19004         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19005         __builtin_expect with __glibc_likely and __glibc_unlikely.
19006         (elf_machine_lazy_rel): Likewise.
19007
19008 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
19009
19010         [BZ #22638]
19011         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19012         SHARED.
19013         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19014
19015 2018-02-05  Andreas Schwab  <schwab@suse.de>
19016
19017         [BZ #22761]
19018         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19019         string.
19020
19021 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19022
19023         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19024         not check against PTHREAD_STACK_MIN.
19025
19026 2018-02-02  Sean McKean  <smckean83@gmail.com>
19027
19028         [BZ #22735]
19029         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19030
19031 2018-02-02  Florian Weimer  <fweimer@redhat.com>
19032
19033         [BZ #22753]
19034         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19035         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19036         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19037         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19038         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19039         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19040         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19041         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19042         * manual/llio.texi (Scatter-Gather): Mention offset -1.
19043         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19044         * misc/tst-preadvwritev2.c (do_test): Call it.
19045         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19046
19047 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19048
19049         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19050
19051         * benchtests/bench-memcmp.c: Print json instead of plain text.
19052
19053         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19054         every test run.
19055
19056 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
19057
19058         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19059         version to 4.15.
19060         (s390_sthyi): New syscall.
19061
19062         * sysdeps/generic/ldbl-classify-compat.h: New file.
19063         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19064         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19065         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19066         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19067         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19068         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19069         * sysdeps/ieee754/dbl-64/s_finite.c: Include
19070         <ldbl-classify-compat.h>.
19071         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19072         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19073         <ldbl-classify-compat.h>.
19074         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19075         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19076         <ldbl-classify-compat.h>.
19077         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19078         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19079         <ldbl-classify-compat.h>.
19080         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19081         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19082         <ldbl-classify-compat.h>.
19083         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19084         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19085         <ldbl-classify-compat.h>.
19086         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19087         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19088         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19089         * sysdeps/m68k/coldfire/math_private.h: Remove file.
19090         * sysdeps/microblaze/math_private.h: Likewise.
19091         * sysdeps/nios2/math_private.h: Likewise.
19092         * sysdeps/sh/math_private.h: Likewise.
19093
19094         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19095         * sysdeps/m68k/coldfire/math_private.h: ... here.
19096         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19097         * sysdeps/tile/math_private.h: Likewise.
19098         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19099         Remove macro.
19100         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19101         Likewise.
19102
19103         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19104         Remove macro.
19105         (libc_fetestexcept): Likewise.
19106         (libc_feupdateenv_test): Likewise.
19107         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19108         (libc_fetestexcept): Likewise.
19109         (libc_feupdateenv_test): Likewise.
19110         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19111         (libc_fetestexcept): Likewise.
19112         (libc_feupdateenv_test): Likewise.
19113         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19114         (libc_fetestexcept): Likewise.
19115         (libc_feupdateenv_test): Likewise.
19116
19117         * sysdeps/generic/math_private.h
19118         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19119         New inline function.
19120         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19121         Likewise.
19122
19123         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19124         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19125         * sysdeps/generic/math_private.h
19126         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19127         inline function.
19128         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19129         Likewise.
19130         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19131         Likewise.
19132         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19133         Likewise.
19134         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19135         Likewise.
19136         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19137         Likewise.
19138         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19139         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19140         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19141         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19142         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19143         (__fegetenv): Likewise.
19144         (fesetenv): Likewise.
19145         (__fesetenv): Likewise.
19146         (feupdateenv): Likewise.
19147         (__feupdateenv): Likewise.
19148         (fegetround): Likewise.
19149         (__fegetround): Likewise.
19150         (fesetround): Likewise.
19151         (__fesetround): Likewise.
19152
19153         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19154         (feraiseexcept): New macro.
19155         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19156         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19157         Remove macro.
19158         (__feraiseexcept): Likewise.
19159         (feclearexcept): Likewise.
19160         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19161         (__feraiseexcept): Likewise.
19162         (feclearexcept): Likewise.
19163         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19164         (__feraiseexcept): Likewise.
19165         (feclearexcept): Likewise.
19166         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19167         (__feraiseexcept): Likewise.
19168         (feclearexcept): Likewise.
19169         (fetestexcept): Likewise.
19170
19171         * sysdeps/m68k/coldfire/math-tests.h: New file.
19172
19173         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19174         * sysdeps/m68k/bits/fenv.h: ... here.
19175         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19176         not define.
19177         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19178         Likewise.
19179         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19180         Likewise.
19181         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19182         Likewise.
19183         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19184         Likewise.
19185         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19186         Define to 0.
19187         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19188         (__FE_UNDEFINED): New enum constant.
19189         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19190         Do not define.
19191         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19192         Likewise.
19193         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19194         Likewise.
19195         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19196         to match generic bits/fenv.h.
19197         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19198         Do not define.
19199
19200         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19201         packed on bits.
19202         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19203         * soft-fp/half.h (union _FP_UNION_H): Likewise.
19204         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19205         * soft-fp/single.h (union _FP_UNION_S): Likewise.
19206
19207 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
19208             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
19209             Joseph Myers  <joseph@codesourcery.com>
19210
19211         [BZ #21314]
19212         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19213         (__log1p): Disable -Wmaybe-uninitialized for -Os around
19214         computation using c.
19215         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19216         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19217         computation using c.
19218
19219 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19220
19221         * version.h (RELEASE): Set to "development".
19222         (VERSION): Set to "2.27.9000".
19223         * NEWS (2.28): New section.
19224
19225         * version.h (RELEASE): Set to "stable".
19226         (VERSION): Set to "2.27".
19227         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19228
19229         * NEWS: Add the list of bugs fixed in 2.27.
19230
19231 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19232
19233         * stdlib/test-atexit-race-common.c (do_test): Check stack size
19234         against PTHREAD_STACK_MIN.
19235
19236 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
19237
19238         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19239         New entries.
19240         (Rafal Luzynski, Andreas Schwab): Update.
19241
19242 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
19243
19244         [BZ #10871]
19245         * NEWS: List the languages which actually use the alternative
19246         months feature in this release.  Also explain that "alt_mon" and
19247         "ab_alt_mon" are optional.
19248
19249 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
19250
19251         [BZ #22765]
19252         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19253
19254 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
19255
19256         * manual/install.texi (Tools for Compilation): Update the newest
19257         versions of gcc, binutils, texinfo, gawk, bison, and sed.
19258         * INSTALL: Regenerated.
19259
19260 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19261
19262         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19263         instead of __builtin_expect.
19264
19265 2018-01-30  Florian Weimer  <fweimer@redhat.com>
19266
19267         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19268         data.
19269         * nss/tst-nss-getpwent.c (do_test): Likewise.
19270
19271 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
19272
19273         [BZ #10871]
19274         * localedata/locales/hr_HR (mon): Rename to...
19275         (alt_mon): This.
19276         (mon): Import from CLDR (genitive case).
19277         (d_t_fmt): Update the comment.
19278
19279 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
19280
19281         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19282         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19283         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19284
19285 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19286
19287         * mach/Versions: Fix version when __mach_host_self_ was added.
19288         * hurd/Versions: Fix version when _hurd_exec_paths was added.
19289         * sysdeps/mach/hurd/i386/ld.abilist: New file.
19290         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19291         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19292         * sysdeps/mach/hurd/i386/libc.abilist: New file.
19293         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19294         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19295         * sysdeps/mach/hurd/i386/libm.abilist: New file.
19296         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19297         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19298         * sysdeps/mach/hurd/i386/librt.abilist: New file.
19299         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19300         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19301         || to respect codestyle.
19302         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19303         (do_test_bz20181): Rename accordingly.
19304         * malloc/malloc.c: Include <assert.h>.
19305         (assert): Do not define.
19306         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19307         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19308         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19309         * sysdeps/mach/hurd/hp-timing.h: New file.
19310         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19311
19312 2018-01-29  Darius Rad  <darius@bluespec.com>
19313
19314         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19315
19316 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
19317
19318         * sysdeps/init_array/crti.S (.section .init_array): Add
19319         PREINIT_FUNCTION when defined.
19320         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19321         * config.h.in: Regenerate.
19322         * manual/platform.texi: Add RISC-V documenation for
19323         __riscv_flush_icache.
19324         * sysdeps/riscv/__longjmp.S: New file.
19325         * sysdeps/riscv/backtrace.c: Likewise.
19326         * sysdeps/riscv/bits/endian.h: Likewise.
19327         * sysdeps/riscv/bits/setjmp.h: Likewise.
19328         * sysdeps/riscv/bits/wordsize.h: Likewise.
19329         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19330         * sysdeps/riscv/bsd-setjmp.c: Likewise.
19331         * sysdeps/riscv/dl-trampoline.S: Likewise.
19332         * sysdeps/riscv/gccframe.h: Likewise.
19333         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19334         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19335         * sysdeps/riscv/machine-gmon.h: Likewise.
19336         * sysdeps/riscv/memusage.h: Likewise.
19337         * sysdeps/riscv/setjmp.S: Likewise.
19338         * sysdeps/riscv/sys/asm.h: Likewise.
19339         * sysdeps/riscv/tls-macros.h: Likewise.
19340         * sysdeps/riscv/dl-tls.h: New file.
19341         * sysdeps/riscv/libc-tls.c: Likewise.
19342         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19343         * sysdeps/riscv/nptl/tls.h: Likewise.
19344         * sysdeps/riscv/stackinfo.h: Likewise.
19345         * sysdeps/riscv/bits/fenv.h: New file.
19346         * sysdeps/riscv/e_sqrtl.c: Likewise.
19347         * sysdeps/riscv/fpu_control.h: Likewise.
19348         * sysdeps/riscv/math-tests.h: Likewise.
19349         * sysdeps/riscv/nofpu/Implies: Likewise.
19350         * sysdeps/riscv/sfp-machine.h: Likewise.
19351         * sysdeps/riscv/tininess.h: Likewise.
19352         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19353         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19354         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19355         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19356         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19357         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19358         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19359         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19360         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19361         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19362         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19363         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19364         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19365         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19366         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19367         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19368         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19369         * sysdeps/riscv/rvd/s_finite.c: Likewise.
19370         * sysdeps/riscv/rvd/s_fma.c: Likewise.
19371         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19372         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19373         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19374         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19375         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19376         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19377         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19378         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19379         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19380         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19381         * sysdeps/riscv/rvf/fegetround.c: Likewise.
19382         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19383         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19384         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19385         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19386         * sysdeps/riscv/rvf/fesetround.c: Likewise.
19387         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19388         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19389         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19390         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19391         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19392         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19393         * sysdeps/riscv/rvf/math_private.h: Likewise.
19394         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19395         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19396         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19397         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19398         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19399         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19400         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19401         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19402         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19403         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19404         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19405         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19406         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19407         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19408         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19409         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19410         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19411         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19412         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19413         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19414         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19415         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19416         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19417         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19418         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19419         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19420         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19421         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19422         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19423         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19424         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19425         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19426         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19427         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19428         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19429         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19430         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19431         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19432         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19433         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19434         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19435         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19436         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19437         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19438         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19439         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19440         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19441         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19442         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19443         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19444         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19445         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19446         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19447         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19448         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19449         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19450         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19451         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19452         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19453         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19454         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19455         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19456         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19457         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19458         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19459         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19460         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19461         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19462         * sysdeps/riscv/Implies: New file.
19463         * sysdeps/riscv/Makefile: Likewise.
19464         * sysdeps/riscv/configure: Likewise.
19465         * sysdeps/riscv/configure.ac: Likewise.
19466         * sysdeps/riscv/nptl/Makefile: Likewise.
19467         * sysdeps/riscv/preconfigure: Likewise.
19468         * sysdeps/riscv/rv64/Implies-after: Likewise.
19469         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19470         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19471         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19472         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19473         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19474         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19475         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19476         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19477         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19478         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19479         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19480         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19481         (Config): Likewise.
19482
19483 2018-01-29  Florian Weimer  <fweimer@redhat.com>
19484
19485         [BZ #22701]
19486         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19487         libnsl_hidden_proto.
19488         * include/rpcsvc/yp.h (yp_xdrall): Declare with
19489         libnsl_hidden_proto.
19490         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19491         * nis/Makefile (libnsl-routines): Add nss-default only for
19492         build-obsolete-nsl.
19493         * nis/nis_defaults.c (__nis_default_ttl): Add
19494         libnsl_hidden_nolink_def.
19495         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19496         declaration.
19497         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19498         * nis/ypclnt.c (yp_maplist): Likewise.
19499
19500 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
19501
19502         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19503         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19504
19505 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
19506
19507         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19508         clean -dxfq for git updates when replacing sources.
19509
19510         * scripts/build-many-glibcs.py (Config.build_gcc): Use
19511         --disable-libcilkrts unconditionally, not just for the final GCC
19512         build for Hurd.
19513
19514         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19515         version to 4.15.
19516
19517 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19518
19519         [BZ #10871]
19520         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19521         case).
19522
19523 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19524
19525         [BZ #10871]
19526         * localedata/locales/be_BY (mon): Rename to...
19527         (alt_mon): This, then synchronize with CLDR (nominative case).
19528         (abmon): Rename to...
19529         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19530         (mon): Import from CLDR (genitive case).
19531         (abmon): Likewise.
19532         * localedata/locales/be_BY@latin (mon): Rename to...
19533         (alt_mon): This.
19534         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19535
19536         * localedata/locales/be_BY@latin (lang_name): Reworded to
19537         "biełaruskaja mova".
19538
19539 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19540
19541         [BZ #10871]
19542         * localedata/locales/el_CY (mon): Renamed to...
19543         (alt_mon): This.
19544         (mon): Import from CLDR (genitive case).
19545         * localedata/locales/el_GR: Likewise.
19546
19547 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19548
19549         [BZ #10871]
19550         * localedata/locales/ru_RU (mon): Rename to...
19551         (alt_mon): This.
19552         (abmon): Rename to...
19553         (ab_alt_mon): This.
19554         (mon): Import from CLDR (genitive case).
19555         (abmon): Copy from the old content except the 5th month which is
19556         now in the genitive case, even when abbreviated.
19557         * localedata/locales/ru_UA: Likewise.
19558         * time/tst-strptime.c (day_tests): Add an actual example of
19559         a difference between %b and %Ob in Russian.
19560
19561 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19562
19563         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19564         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19565         a `c' variable.
19566         * resolv/res-close.c: Include <stdlib.h>.
19567         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19568         <sys/wait.h>, <time.h>, <sys/uio.h>.
19569         (NOT_CANCEL_H): Add inclusion guard.
19570         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19571         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19572         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19573         return 0.
19574         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19575         vm_address_t * to ElfW(Addr) * for dl_main parameter.
19576         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19577         instead of void *.
19578         * sysdeps/pthread/timer_create.c (timer_create): Do not use
19579         timer_ptr2id to cast struct timer_node * to void *.
19580         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19581         --disable-libcilkrts to gcc configure.
19582         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19583         and make them the default for now.
19584         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19585         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19586         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19587         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19588         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19589         MACH_IPC_COMPAT.
19590         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19591         __task_terminate would ever return successfully.
19592         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19593         to global scope.
19594         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19595         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19596         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19597         critical section to make code simpler and avoid warning.
19598         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19599         critical section to make code simpler and avoid warning.
19600         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19601         const char * instead of char *.
19602         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19603         __hurd_file_name_split, hurd_file_name_split,
19604         __hurd_directory_name_split, hurd_directory_name_split,
19605         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19606         hurd_file_name_path_lookup): Make lookup function parameter take a
19607         const char *name instead of char *name.
19608         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19609         __hurd_directory_name_split): Likewise.
19610         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19611         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19612         * sysdeps/mach/hurd/check_native.c: New file.
19613         * sysdeps/mach/hurd/check_pf.c: New file.
19614         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19615         (__freeifaddrs): Define macro to freeifaddrs.
19616         * sysdeps/mach/hurd/libhurduser.abilist: New file.
19617         * sysdeps/mach/libmachuser.abilist: New file.
19618         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19619         (do_test_bz20181): Rename accordingly.
19620         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19621         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19622         <sys/mount.h>.
19623         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19624         version only if __USE_EXTERN_INLINES is defined.
19625         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19626         __hurd_sockfail): Likewise.
19627         (_hurd_fd_get): Always declare functions, and provide inline versions
19628         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19629         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19630         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19631         _hurd_port_set): Always declare functions, and provide inline versions
19632         only if __USE_EXTERN_INLINES and _LIBC are defined and
19633         IS_IN(libc).
19634         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19635         _hurd_critical_section_unlock): Likewise.
19636         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19637         * __hurd_threadvar_location): Likewise.
19638         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19639         _hurd_userlink_clear): Likewise.
19640         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19641         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19642         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19643         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19644         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19645         __spin_lock_locked): Likewise.
19646         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19647         __spin_lock_locked): Likewise.
19648         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19649         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19650         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19651         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19652         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19653         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19654         _POSIX_NO_TRUNC): Define to 0.
19655         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19656         check size against PTHREAD_STACK_MIN.
19657         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19658         IS_IN(libpthread)]: Include <sigsetops.h>.
19659         * mach/Makefile (user-interfaces): Add mach/gnumach.
19660         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19661         * sysdeps/mach/configure (mach_interface_list): Regenerate.
19662         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19663         instead of invalid -1.
19664         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19665         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19666         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19667         <net/ppp_defs.h>.
19668
19669 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
19670
19671         * hurd/fcntl-internal.h: New file.
19672
19673 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
19674
19675         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19676
19677         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19678
19679 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
19680
19681         [BZ #22701]
19682         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19683         Build only shared objects.
19684
19685 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19686
19687         * README: Update for hppa.
19688
19689 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19690
19691         * sysdeps/sparc/fpu/libm-test-ulps: Update
19692         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19693
19694 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19695
19696         Revert:
19697
19698         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19699
19700         [BZ #22563]
19701         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19702         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19703         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19704         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19705         to feature_1.
19706
19707         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19708
19709         [BZ #22563]
19710         * bits/types/__cancel_jmp_buf_tag.h: New file.
19711         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19712         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19713         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19714         * nptl/Makefile (headers): Add
19715         bits/types/__cancel_jmp_buf_tag.h.
19716         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19717         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19718         * sysdeps/nptl/pthread.h: Include
19719         <bits/types/__cancel_jmp_buf_tag.h>.
19720         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19721         __cancel_jmp_buf.
19722         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19723
19724 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
19725
19726         [BZ #10871]
19727         * localedata/locales/uk_UA (mon): Renamed to...
19728         (alt_mon): This.
19729         (alt_digits): "0" removed and then renamed to...
19730         (mon): This.
19731         (date_fmt): Definition changed not to use the alternative
19732         digits hack.
19733
19734 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
19735
19736         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19737         FLAG_RISCV_FLOAT_ABI_DOUBLE.
19738         * elf/elf.h (EF_RISCV_RVC): New define.
19739         (EF_RISCV_FLOAT_ABI): Likewise.
19740         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19741         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19742         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19743         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19744         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19745         define.
19746         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19747
19748 2018-01-25  Andreas Schwab  <schwab@suse.de>
19749
19750         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19751         single quotes.
19752         * sysdeps/gnu/configure: Regenerate.
19753         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19754         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19756         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19757         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19758         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19759         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19760         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19761
19762 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19763
19764         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19765         URL, and run autoconf, make it the default for now.
19766
19767 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19768
19769         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19770         soft-float ColdFire configuration.
19771
19772         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19773         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19774         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19775
19776         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
19777         MicroBlaze file.
19778
19779         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19780         ....
19781         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19782         ... here.
19783         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19784         New file.
19785
19786         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19787         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19788         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19789         file.
19790
19791 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19792
19793         [BZ #22742]
19794         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19795         Rename to __reserved and add comment.
19796         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19797         Rename to __reserved.
19798
19799 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19800
19801         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19802         i686-gnu configurations.
19803         (Context.run_builds): Include mig, gnumach and hurd in components
19804         considered.
19805         (Context.checkout): Add mig, gnumach and hurd to components.
19806         (Context.checkout_tar): Add URL mappings for mig, gnumach and
19807         hurd.
19808         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19809         (Config.build): Install gnumach headers, build mig and install
19810         hurd headers for 'gnu' OS.
19811         (Config.install_gnumach_headers): New function.
19812         (Config.install_hurd_headers): Likewise.
19813         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
19814         when building for 'gnu' OS.
19815
19816 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
19817
19818         * manual/tunables.texi (Hardware Capability Tunables): Fix
19819         spelling.
19820
19821 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
19822
19823         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19824         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19825         (ALTMON_11, ALTMON_12): Improve documentation.
19826         * manual/time.texi (strftime): Likewise.
19827
19828 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19829
19830         [BZ #10871]
19831         * localedata/locales/pl_PL: Alternative month names added,
19832         primary month names are genitive now.
19833         * time/tst-strptime.c (day_tests): Actually use a genitive case
19834         of a month name in Polish language.
19835
19836 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19837
19838         [BZ #10871]
19839         * manual/locale.texi: Document ALTMON_1..12 constants for
19840         nl_langinfo.  Specify when to use ALTMON instead of MON.
19841         * manual/time.texi (strftime, strptime): Document GNU extension
19842         permitting O modifier with %B and %b.  Specify when to use
19843         %OB instead of %B.
19844
19845 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19846
19847         [BZ #10871]
19848         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19849         names, define them as the same as abbreviated month names explicitly.
19850         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19851         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19852         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19853         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19854         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19855         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19856         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19857         _NL_WABALTMON_12): New enum constants.
19858         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19859         wab_alt_mon, and ab_alt_mon_defined members.
19860         (time_output): Output ab_alt_mon and wab_alt_mon members.
19861         (time_read): Read them, initialize them as copies of abmon and wabmon
19862         respectively if they are missing, initialize ab_alt_mon_defined.
19863         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19864         * locale/programs/locfile-kw.h: Regenerate.
19865         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19866         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19867         and ru_RU.UTF-8.
19868         * time/strftime_l.c (a_altmonth, aam_len): New macros.
19869         [!COMPILE_WIDE] (ABALTMON_1): New macro.
19870         (__strftime_internal): Handle %Ob and %Oh formats.
19871         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19872         (__strptime_internal): Handle %Ob and %Oh formats.
19873         * time/tst-strptime.c (day_tests): Add more tests to parse different
19874         forms of month names including the new %Ob format specifier.
19875
19876 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19877
19878         [BZ #10871]
19879         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19880         define them as the same as primary full month names explicitly.
19881         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19882         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19883         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19884         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19885         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19886         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19887         _NL_WALTMON_12): New enum constants.
19888         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19889         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19890         macros.
19891         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19892         walt_mon, and alt_mon_defined members.
19893         (time_output): Output alt_mon and walt_mon members.
19894         (time_read): Read them, initialize them as copies of mon and wmon
19895         respectively if they are missing, initialize alt_mon_defined.
19896         * locale/programs/locfile-kw.gperf (alt_mon): Define.
19897         * locale/programs/locfile-kw.h: Regenerate.
19898         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19899         * localedata/tst-langinfo.c (map): Add tests for the new constants
19900         ALTMON_1 .. ALTMON_12.
19901         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19902         and pl_PL.UTF-8.
19903         * time/strftime_l.c (f_altmonth): New macro.
19904         (__strftime_internal): Handle %OB format.
19905         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19906         (__strptime_internal): Handle %OB format.
19907         * time/tst-strptime.c (day_tests): Add tests to parse different forms
19908         of month names including the new %OB format specifier.
19909
19910 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19911
19912         [BZ #22685]
19913         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19914         from ABORT_TRANSACTION.
19915         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19916         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19917         ABORT_TRANSACTION_IMPL): Likewise.
19918         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
19919         Linux code, but remove the code that aborts transactions.
19920
19921 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19922
19923         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19924
19925 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
19926
19927         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19928         in date: "2004-14-09" should be "2004-09-14".
19929         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19930         "2003-15-09" should be "2003-09-15".
19931
19932 2018-01-18  Arjun Shankar  <arjun@redhat.com>
19933
19934         [BZ #22343]
19935         [BZ #22774]
19936         CVE-2018-6485
19937         CVE-2018-6551
19938         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19939         after padding.
19940         (_int_memalign): check for integer overflow before calling
19941         _int_malloc.
19942         * malloc/tst-malloc-too-large.c: New test.
19943         * malloc/Makefile: Add tst-malloc-too-large.
19944
19945 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
19946
19947         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19948         in date: "2017-24-07" should be "2017-07-24".
19949         * localedata/locales/mai_IN: Likewise.
19950         * localedata/locales/mai_NP: Likewise.
19951
19952 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
19953
19954         * po/ru.po: Update translations.
19955
19956 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
19957
19958         [BZ #22719]
19959         * sysdeps/hppa/backtrace.c: New file.
19960
19961 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19962
19963         [BZ #22715]
19964         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19965         align La_x86_64_retval to VEC_SIZE.
19966
19967 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
19968
19969         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19970         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19971
19972 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19973
19974         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19975         Move tst-thread-exit-clobber ...
19976         [$(CXX)] (tests-unsupported): ... to here.
19977
19978 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19979
19980         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19981         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19982         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19983         (_dl_aarch64_cap_flags): Update.
19984         (_DL_HWCAP_COUNT): Update.
19985
19986 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19987
19988         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19989         (_DL_HWCAP_LAST): Remove.
19990         (_DL_HWCAP_COUNT): Move to ...
19991         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19992         (_DL_HWCAP_COUNT): ... here.
19993
19994 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19995
19996         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19997         mode with GNU extensions.
19998
19999 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
20000
20001         * elf/elf.h (NT_ARM_SVE): Define.
20002
20003 2018-01-15  Florian Weimer  <fweimer@redhat.com>
20004
20005         [BZ #22636]
20006         * nptl/tst-minstack-throw.cc: New file.
20007         * nptl/Makefile (tests): Add tst-minstack-throw.
20008         (LDLIBS-tst-minstack-throw): Link with libstdc++.
20009         [!CXX] (tests-unsupported): Add tst-minstack-throw.
20010
20011 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
20012
20013         * scripts/build-many-glibcs.py (Context.checkout): Default
20014         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20015         version to 1.1.0.
20016
20017 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
20018
20019         [BZ #22707]
20020         * elf/elf.h (DF_1_STUB): Define.
20021         (DF_1_PIE): Define.
20022
20023 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20024
20025         [BZ #22697]
20026         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20027         Do not add 0.5 to integer or out-of-range arguments.
20028
20029 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20030
20031         * po/bg.po: Update translations.
20032         * po/cs.po: Likewise.
20033         * po/de.po: Likewise.
20034         * po/ko.po: Likewise.
20035         * po/pl.po: Likewise.
20036         * po/sv.po: Likewise.
20037         * po/uk.po: Likewise.
20038         * po/vi.po: Likewise.
20039
20040 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20041
20042         * aarch64/start.S (_start): Use __wrap_main.
20043         (__wrap_main): New local symbol.
20044
20045 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
20046
20047         [BZ #22679]
20048         CVE-2018-1000001
20049         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20050         generic_getcwd if the path returned by getcwd syscall is not absolute.
20051         * io/tst-getcwd-abspath.c: New test.
20052         * io/Makefile (tests): Add tst-getcwd-abspath.
20053
20054 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
20055
20056         * malloc/malloc.c (malloc_consolidate): Add size check.
20057
20058 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20059
20060         * support/write_message.c (write_message): Preserve errno.
20061         * support/check.c (print_failure): Likewise.
20062         * support/support_test_verify_impl.c (support_test_verify_impl):
20063         Likewise.
20064         * support/support_test_compare_failure.c
20065         (support_test_compare_failure): Likewise.
20066
20067 2018-01-12  Florian Weimer  <fweimer@redhat.com>
20068
20069         [BZ #22701]
20070         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20071         Prevent installation of libnsl.so.
20072         (libnsl-inhibit-o): Do not build (or install) static libraries.
20073
20074 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
20075
20076         [BZ #22657]
20077         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20078         before the day number which may produce a double space.
20079         (date_fmt): Likewise.
20080
20081 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
20082
20083         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20084         instead of fegetenv.
20085
20086 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
20087
20088         [BZ #22702]
20089         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20090         comment to say exceptions are discarded.
20091         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20092         __fegetenv.
20093         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20094         be enabled.
20095
20096 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20097
20098         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20099         and error message.
20100
20101 2018-01-11  Florian Weimer  <fweimer@redhat.com>
20102
20103         [BZ #22636]
20104         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20105         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20106
20107 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20108
20109         [BZ #22693]
20110         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20111         negative arguments in test for NaN or infinity argument.
20112
20113 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
20114
20115         * po/libc.pot: Regenerate.
20116
20117 2018-01-10  Florian Weimer  <fweimer@redhat.com>
20118
20119         [BZ #22636]
20120         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20121         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20122
20123 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20124
20125         * hurd/hurd/fd.h: Include <fcntl.h>
20126         (__hurd_at_flags): New function.
20127         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20128         with call to __hurd_at_flags.
20129         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20130         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20131         __faccessat
20132         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20133         (__access_noerrno): Use __faccessat_common instead of access_common.
20134         (__access): Likewise.
20135         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20136         with a call to __faccessat.
20137         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20138         (__faccessat_common): ... this. Move implementation of __access into it when
20139         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20140         reauthenticate_cwdir_at helper to implement AT mechanism.
20141         (__faccessat_noerrno): New function, just calls __faccessat_common.
20142         (__faccessat): New function, just calls __faccessat_common.
20143         (faccessat): Define weak alias.
20144
20145 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
20146
20147         [BZ #22691]
20148         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20149         (CFLAGS-s_fmaxmagl.c): New variable.
20150         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20151
20152         [BZ #22690]
20153         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20154         long int for arguments of possibly overflowing addition or
20155         subtraction.
20156         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20157
20158 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
20159
20160         [BZ #22688]
20161         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20162         (CFLAGS-e_remainderl.c): New variable.
20163
20164         [BZ #22687]
20165         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20166         variable.
20167         (CFLAGS-s_cacoshl.c): Likewise.
20168         (CFLAGS-s_casinhl.c): Likewise.
20169         (CFLAGS-s_catanl.c): Likewise.
20170         (CFLAGS-s_catanhl.c): Likewise.
20171         (CFLAGS-s_cexpl.c): Likewise.
20172         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20173         (CFLAGS-s_csinhl.c): Likewise.
20174         (CFLAGS-s_clogl.c): Likewise.
20175         (CFLAGS-s_clog10l.c): Likewise.
20176         (CFLAGS-s_csinl.c): Likewise.
20177         (CFLAGS-s_csqrtl.c): Likewise.
20178
20179 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20180 2017-01-09  Svante Signell  <svante.signell@gmail.com>
20181
20182         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20183         (_hurd_exec_paths): New function.
20184         * hurd/hurd.h (_hurd_exec): Deprecate function.
20185         (_hurd_exec_paths): Declare function.
20186         * hurd/Versions: Export _hurd_exec_paths.
20187         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20188         (__execve): Use __getcwd to build absolute path, and use
20189         _hurd_exec_paths instead of _hurd_exec.
20190         * sysdeps/mach/hurd/spawni.c: Likewise.
20191         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20192         _hurd_exec.
20193
20194 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
20195
20196         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20197         test instead of failing in case of ENOENT returned by posix_openpt.
20198
20199 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20200
20201         resolv: Support binary labels in test framework.
20202         * support/resolv_test.c (struct to_be_freed): Remove.
20203         (struct compressed_name): New.
20204         (allocate_compressed_name, ascii_tolower)
20205         (compare_compressed_name): New functions.
20206         (struct resolv_response_builder): Update type of
20207         compression_offsets for use with tsearch.  Rempve to_be_freed.
20208         (response_push_pointer_to_free): Remove function.
20209         (resolv_response_add_name): Rewrite using struct compressed_name
20210         and tsearch instead of hsearch_r.
20211         (response_builder_allocate): Remove initialization of
20212         compression_offsets.
20213         (response_builder_free): Update for removal of to_be_freed.  Use
20214         tdestroy instead of hdestroy_r.
20215         * resolv/Makefile (tests): Add tst-resolv-binary.
20216         (tst-resolv-binary): Link with -lresolv -lpthread.
20217
20218 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20219
20220         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20221         time.  Pass positive flag instead of negative flag to
20222         support_test_compare_failure.
20223         (support_test_compare_failure): Change negative parameter to
20224         positive.
20225         * support/support_test_compare_failure.c (report)
20226         (support_test_compare_failure): Likewise.
20227         * support/tst-test_compare.c (return_ssize_t, return_int): New.
20228         (do_test): Check int/size_t, ssize_t/size_t comparisons.
20229
20230 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20231
20232         [BZ #22637]
20233         * nptl/descr.h (stackblock, stackblock_size): Update comments.
20234         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20235         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20236         stacksize.
20237         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20238
20239 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
20240
20241         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20242         Add s_sincosf-sse2 and s_sincosf-fma.
20243         (CFLAGS-s_sincosf-fma.c): New.
20244         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20245         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20246         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20247         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20248         __sincosf is defined.
20249
20250 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20251
20252         * nptl/tst-thread-exit-clobber.cc: New file.
20253         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20254         C++11 mode.
20255         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20256         (tests): Add tst-thread-exit-clobber.
20257         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20258
20259 2018-01-08  Florian Weimer  <fweimer@redhat.com>
20260
20261         * support/check.h (support_static_assert): Define.
20262         (TEST_COMPARE): Use it.
20263
20264 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
20265
20266         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20267         [!__RLIM_T_MATCHES_RLIM64_T]
20268         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20269         __getrlimit64. Add libc_hidden_weak.
20270
20271 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
20272
20273         * elf/elf.h (R_RISCV_NONE): New define.
20274         (R_RISCV_32): Likewise.
20275         (R_RISCV_64): Likewise.
20276         (R_RISCV_RELATIVE): Likewise.
20277         (R_RISCV_COPY): Likewise.
20278         (R_RISCV_JUMP_SLOT): Likewise.
20279         (R_RISCV_TLS_DTPMOD32): Likewise.
20280         (R_RISCV_TLS_DTPMOD64): Likewise.
20281         (R_RISCV_TLS_DTPREL32): Likewise.
20282         (R_RISCV_TLS_DTPREL64): Likewise.
20283         (R_RISCV_TLS_TPREL32): Likewise.
20284         (R_RISCV_TLS_TPREL64): Likewise.
20285         * Makerules (make-link-multidir): Make directories before linking into
20286         them.
20287         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20288         define.
20289         (VDSO_HASH_LINUX_4_15): Likewise.
20290         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20291         in subdirectories of lib.
20292         * nptl/Makefile (/librt.so): Always depend on
20293         "$(shared-thread-library)".
20294
20295 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20296
20297         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20298         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20299         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20300         (___tls_get_addr).
20301         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20302         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20303         "-O2 -march=i686".
20304         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20305         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20306         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20307         * sysdeps/gnu/glob-lstat-compat.c: New file.
20308         * sysdeps/gnu/glob64-lstat-compat.c: New file.
20309         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20310
20311 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20312
20313         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20314         Reserve 16 chars to reloc_addr before calling _itoa_word.
20315
20316 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20317
20318         [BZ #22678]
20319         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20320         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20321
20322         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20323         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20324
20325         * resource/tst-getrlimit.c: Add copyright header.
20326
20327 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20328             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20329
20330         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20331         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20332         Define __GI_getrlimit64 as weak alias of __getrlimit64.
20333         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20334         instead.
20335         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20336         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20337         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20338         RLIM64_INFINITY): Fix values to match the kernel ones.
20339         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20340         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
20341         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
20342         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20343         getrlimit64@@GLIBC_2_27.
20344         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20345         and setrlimit64.
20346         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20347         getrlimit, setrlimit, getrlimit64 and setrlimit64.
20348         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20349         setrlimit, getrlimit64 and setrlimit64.
20350
20351 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20352
20353         [BZ #22648]
20354         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20355         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20356
20357 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
20358
20359         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20360         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20361         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20362
20363 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20364
20365         [BZ #15479]
20366         [BZ #22666]
20367         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20368         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20369
20370         [BZ #15479]
20371         [BZ #22665]
20372         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20373         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20374         * sysdeps/alpha/fpu/s_floor.c: Likewise.
20375         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20376
20377 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20378
20379         [BZ #22667]
20380         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20381         Align the stack before calling exit.
20382         * stdlib/tst-makecontext-align.c: New file.
20383         * stdlib/Makefile (tests): Add tst-makecontext-align.
20384
20385 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20386
20387         Add support for calling dlvsym from libc.so.
20388         * include/dlfcn.h (__libc_dlvsym): Declare.
20389         * elf/Makefile (tests-static-internal): Add
20390         tst-libc_dlvsym-static.
20391         (tests-internal): Add tst-libc_dlvsym.
20392         (modules-names): Add tst-libc_dlvsym-dso.
20393         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20394         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20395         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20396         object tst-libc_dlvsym-dso.so needs to be built before running
20397         these tests.
20398         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20399         * elf/Versions: Export __libc_dlvsym.
20400         * elf/dl-libc.c (struct do_dlvsym_args): New.
20401         (do_dlvsym, __libc_dlvsym): New functions.
20402         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20403         (_dl_open_hook2): New variable.
20404         (__libc_register_dl_open_hook): Set it.
20405         * elf/tst-libc_dlvsym-dso.c: New file.
20406         * elf/tst-libc_dlvsym-static.c: Likewise.
20407         * elf/tst-libc_dlvsym.c: Likewise.
20408         * elf/tst-libc_dlvsym.h: Likewise.
20409
20410 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20411
20412         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20413         include <sys/mount.h>.
20414
20415 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
20416
20417         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20418         Add __NO_MATH_ERRNO__ check.
20419
20420 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20421
20422         * sysdeps/mips/mips32/libm-test-ulps: Update.
20423         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20424
20425 2018-01-02  Florian Weimer  <fweimer@redhat.com>
20426
20427         * misc/tst-pselect.c: Add copyright header.
20428
20429 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20430
20431         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20432         comment.
20433         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20434         comment.
20435         (settrlimit): Rename into setrlimit.
20436         (__sttrlimit): Rename into __setrlimit.
20437
20438         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20439         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20440         never defined in that case.
20441
20442 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20443
20444         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20445
20446         * sysdeps/arm/libm-test-ulps: Update.
20447
20448         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20449         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20450
20451 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20452
20453         * NEWS: Add cosf and sincosf to list of optimized functions.
20454
20455 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20456
20457         [BZ #22660]
20458         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20459         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20460         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20461         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20462
20463 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
20464
20465         [BZ #22433]
20466         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20467
20468         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20469         making a copy of it.
20470
20471 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
20472
20473         * manual/texinfo.tex: Update to version 2017-12-26.21 with
20474         trailing whitespace removed.
20475         * scripts/config.guess: Update to version 2018-01-01.
20476         * scripts/config.sub: Update to version 2018-01-01.
20477         * scripts/move-if-change: Update from gnulib.
20478
20479         * NEWS: Update copyright dates.
20480         * catgets/gencat.c (print_version): Likewise.
20481         * csu/version.c (banner): Likewise.
20482         * debug/catchsegv.sh: Likewise.
20483         * debug/pcprofiledump.c (print_version): Likewise.
20484         * debug/xtrace.sh (do_version): Likewise.
20485         * elf/ldconfig.c (print_version): Likewise.
20486         * elf/ldd.bash.in: Likewise.
20487         * elf/pldd.c (print_version): Likewise.
20488         * elf/sotruss.sh: Likewise.
20489         * elf/sprof.c (print_version): Likewise.
20490         * iconv/iconv_prog.c (print_version): Likewise.
20491         * iconv/iconvconfig.c (print_version): Likewise.
20492         * locale/programs/locale.c (print_version): Likewise.
20493         * locale/programs/localedef.c (print_version): Likewise.
20494         * login/programs/pt_chown.c (print_version): Likewise.
20495         * malloc/memusage.sh (do_version): Likewise.
20496         * malloc/memusagestat.c (print_version): Likewise.
20497         * malloc/mtrace.pl: Likewise.
20498         * manual/libc.texinfo: Likewise.
20499         * nptl/version.c (banner): Likewise.
20500         * nscd/nscd.c (print_version): Likewise.
20501         * nss/getent.c (print_version): Likewise.
20502         * nss/makedb.c (print_version): Likewise.
20503         * posix/getconf.c (main): Likewise.
20504         * scripts/test-installation.pl: Likewise.
20505         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20506
20507         * All files with FSF copyright notices: Update copyright dates
20508         using scripts/update-copyrights.
20509         * locale/programs/charmap-kw.h: Regenerated.
20510         * locale/programs/locfile-kw.h: Likewise.
20511
20512 2017-12-31  Zack Weinberg  <zackw@panix.com>
20513
20514         * libio/bits/libio-ldbl.h: Correct check for improper
20515         inclusion.  Add own multiple include guard.
20516
20517 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
20518             Dmitry V. Levin  <ldv@altlinux.org>
20519
20520         [BZ #22625]
20521         CVE-2017-16997
20522         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20523         string token expansion. Check for NULL pointer or empty string possibly
20524         returned by expand_dynamic_string_token.
20525         (decompose_rpath): Check for empty path after dynamic string
20526         token expansion.
20527
20528 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
20529
20530         [BZ #22433]
20531         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20532
20533         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20534         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20535         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
20536         and PTRACE_SYSCALL.
20537         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20538         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20539         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20540         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20541         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20542         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20543
20544         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20545         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20546         __ptrace_peeksiginfo_flags, ptrace): Move to ...
20547         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20548         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20549         bits/ptrace-shared.h.
20550         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20551         <bits/ptrace-shared.h>.
20552         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20553         __ptrace_peeksiginfo_flags, ptrace): Remove.
20554         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20555         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20556         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20557         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20558         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20559
20560 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20561
20562         [BZ #17804]
20563         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20564         end of the loop. Improve comments.
20565
20566 2017-12-29  Zack Weinberg  <zackw@panix.com>
20567
20568         [BZ #22615]
20569         * manual/errno.texi (Checking for Errors): Explicitly say that errno
20570         might be set on success.
20571
20572 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20573
20574         [BZ #22611]
20575         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20576         is unchanged on success.
20577
20578 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
20579
20580         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20581         updated.
20582         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20583         expand_dynamic_string_token): Likewise.
20584         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20585         is_path argument.
20586
20587         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20588         contains ':'.
20589
20590         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20591         is set and name contains ':', and all code depending on these checks.
20592
20593 2017-12-24  Zack Weinberg  <zackw@panix.com>
20594
20595         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20596         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20597         respectively.
20598         * libio/libio.h: Rename the original version of this file to
20599         libio/bits/libio.h.  Error out if not included by stdio.h or the
20600         stub libio.h.
20601         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
20602         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
20603         if not included by bits/libio.h or the stub _G_config.h.
20604         * sysdeps/unix/sysv/linux/_G_config.h: Move to
20605         sysdeps/unix/sysv/linux/bits.  Error out if not included by
20606         bits/libio.h or the stub _G_config.h.
20607         * libio/stdio.h: Include bits/libio.h, not libio.h.
20608         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20609         well as libio.h and _G_config.h.
20610
20611         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20612         * libio/strfile.h, stdio-common/vfscanf.c
20613         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20614         Include stdio.h, not _G_config.h nor libio.h.
20615         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20616         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20617
20618         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20619
20620 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
20621
20622         [BZ #22347]
20623         * stdlib/getrandom.c (getrandom): Fix comment.
20624         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20625
20626 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
20627
20628         [BZ #21161]
20629         * manual/arith.texi (strtoul): Fix a typo.
20630
20631         [BZ #22596]
20632         * manual/arith.texi (finite): Fix the description of the return
20633         value.
20634
20635 2017-12-22  Eric Blake  <ebb9@byu.net>
20636
20637         Avoid gcc warnings on cygwin
20638         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20639         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20640         Avoid unused variable.
20641
20642 2017-12-22  Florian Weimer  <fweimer@redhat.com>
20643
20644         * io/Makefile (routines): Add copy_file_range.
20645         (tests): Add tst-copy_file_range.
20646         (tests-static, tests-internal): Add tst-copy_file_range-compat.
20647         * io/Versions (GLIBC_2.27): Export copy_file_range.
20648         * io/copy_file_range-compat.c: New file.
20649         * io/copy_file_range.c: Likewise.
20650         * io/tst-copy_file_range-compat.c: Likewise.
20651         * io/tst-copy_file_range.c: Likewise.
20652         * manual/llio.texi (Copying File Data): New section.
20653         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20654         * support/Makefile (libsupport-routines): Add support-xfstat,
20655         xftruncate, xlseek.
20656         * support/support-xfstat.c: New file.
20657         * support/xftruncate.c: Likewise.
20658         * support/xlseek.c: Likewise.
20659         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20660         * sysdeps/unix/sysv/linux/**.abilist: Update.
20661         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20662
20663 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20664
20665         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20666         disable-multi-arch variant to aarch64-linux-gnu.
20667
20668 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
20669
20670         * manual/texinfo.tex: Update to version 2017-12-18.20 with
20671         trailing whitespace removed.
20672         * scripts/config.guess: Update to version 2017-12-17.
20673         * scripts/config.sub: Update to version 2017-11-23.
20674         * scripts/install-sh: Update to version 2017-09-23.17.
20675         * scripts/move-if-change: Update to version 2017-09-13 06:45.
20676
20677 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20678
20679         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20680         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20681         * sysdeps/tile/_mcount.S (__mcount): Likewise.
20682         * sysdeps/tile/crti.S (_init, _fini): Likewise.
20683         * sysdeps/tile/crtn.S: Likewise.
20684         * sysdeps/tile/dl-start.S (_start): Likewise.
20685         * sysdeps/tile/dl-trampoline.S: Likewise.
20686         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20687         * sysdeps/tile/start.S (_start): Likewise.
20688         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20689         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20690         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20691         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20692         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20693         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20694         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20695
20696         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20697         comment.
20698         * sysdeps/tile/preconfigure: Remove tilegx folder.
20699         * sysdeps/tile/tilegx/Implies: Move definitions to ...
20700         * sysdeps/tile/Implies: ... here.
20701         * sysdeps/tile/tilegx/Makefile: Move rules to ...
20702         * sysdeps/tile/Makefile: ... here.
20703         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20704         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
20705         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20706         * sysdeps/tile/bits/wordsize.h: ... here.
20707         * sysdeps/tile/tilegx/*: Move to ...
20708         * sysdeps/tile/*: ... here.
20709         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20710         * sysdeps/tile/tilegx32/Implies: ... here.
20711         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20712         * sysdeps/tile/tilegx64/Implies: ... here.
20713         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20714         to ...
20715         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20716         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20717         * sysdeps/unix/sysv/linux/tile/*: ... here.
20718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20719         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20720         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20721         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20722
20723         * README: Remove tilepro-*-linux-gnu from supported architecture.
20724         * scripts/build-many-glibcs.py: Likewise.
20725         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20726         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20727         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20728         elf_machine_matches_host, elf_machine_dynamic,
20729         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20730         howto, elf_machine_rela): Likewise.
20731         * sysdeps/tile/dl-start.S (_start): Likewise.
20732         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20733         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20734         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20735         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20736         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20737         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20738         Likewise.
20739         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20740         * sysdeps/tile/preconfigure: Likewise.
20741         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20742         POINTER_CHK_GUARD): Likewise.
20743         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20744         * sysdeps/tile/start.S (_start): Likewise.
20745         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20746         Likewise.
20747         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20748         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20749         CMOVNEZ): Remove.
20750         * sysdeps/unix/sysv/linux/tile/bits/environments.h
20751         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20752         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20753         Likewise.
20754         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20755         * sysdeps/tile/tilepro/Implies: Remove file.
20756         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20757         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20758         * sysdeps/tile/tilepro/memchr.c: Likewise.
20759         * sysdeps/tile/tilepro/memcpy.S: Likewise.
20760         * sysdeps/tile/tilepro/memset.c: Likewise.
20761         * sysdeps/tile/tilepro/memusage.h: Likewise.
20762         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20763         * sysdeps/tile/tilepro/strchr.c: Likewise.
20764         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20765         * sysdeps/tile/tilepro/strlen.c: Likewise.
20766         * sysdeps/tile/tilepro/strrchr.c: Likewise.
20767         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20768         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20769         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20770         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20771         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20772         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20773         Likewise.
20774         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20775         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20776         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20777         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20778         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20779         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20780         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20781         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20782         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20783         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20784         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20785         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20786         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20787         tilepro mention in comment.
20788
20789         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20790         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20791         * nptl/pthread_join_common.c: New file: common function used on
20792         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20793         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20794         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20795         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20796         (cleanup): Move definition to pthread_join_common.c.
20797         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20798         Remove superflous checks.
20799         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20800         Likewise.
20801
20802 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20803
20804         * sysdeps/aarch64/libm-test-ulps: Update.
20805
20806 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20807
20808         * sysdeps/aarch64/memset.S (MEMSET): Define.
20809
20810 2017-12-20  Florian Weimer  <fweimer@redhat.com>
20811
20812         [BZ #22635]
20813         nptl: Provide full implementation of pthread_self in libc.so.
20814         * nptl/Makefile (routines): Add pthread_self.
20815         (libpthread-routines): Replace pthread_self with
20816         compat-pthread_self.
20817         * nptl/forward.c (pthread_self): Remove.
20818         * nptl/nptl-init.c (pthread_functions): Do not initialize
20819         ptr_pthread_self.
20820         * nptl/pthread_self.c (pthread_self): Remove weak alias.
20821         * nptl/compat-pthread_self.c: New file.
20822         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20823         Remove ptr_pthread_self.
20824
20825 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
20826
20827         * posix/regcomp.c: Fix spelling in comments.
20828         * posix/regex.h: Likewise.
20829         * posix/regex_internal.c: Likewise.
20830         * posix/regexec.c: Likewise.
20831
20832 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20833
20834         [BZ #22377]
20835         * math/Makefile [C++] (tests): Add test for iseqsig.
20836         * math/math.h [C++] (iseqsig): New implementation, which does
20837         not rely on __MATH_TG/__builtin_types_compatible_p.
20838         * math/test-math-iseqsig.cc: New file.
20839         * sysdeps/powerpc/powerpc64le/Makefile
20840         (CFLAGS-test-math-iseqsig.cc): New variable.
20841
20842 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
20843
20844         * elf/dl-load.c (is_trusted_path): Remove.
20845         (fillin_rpath): Remove check_trusted argument and its use,
20846         all callers changed.
20847
20848 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20849
20850         [BZ #22630]
20851         * Makeconfig (link-pie-before-libc): Replace -pie with
20852         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20853         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20854         (tst-dlopen-aout-no-pie): New.
20855         (LDFLAGS-tst-prelink): Removed.
20856         (tst-prelink-no-pie): New.
20857         (LDFLAGS-tst-main1): Removed.
20858         (tst-main1-no-pie): New.
20859         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20860         (tst-gmon-no-pie): New.
20861
20862 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20863
20864         * manual/install.texi: Document that --enable-static-pie
20865         implies PIE.
20866         * INSTALL: Regenerated.
20867
20868 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20869
20870         [BZ #21309]
20871         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20872         unsigned.
20873
20874 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20875
20876         Revert:
20877
20878         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20879
20880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20881
20882         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20883
20884         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20885         <errno.h>.  Include "eexp.tbl".
20886         (half): New constant.
20887         (one): Likewise.
20888         (__ieee754_exp): Rewrite.
20889         (__slowexp): Remove prototype.
20890         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20891         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20892         * sysdeps/i386/fpu/slowexp.c: Likewise.
20893         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20894         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20895         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20896         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20897         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20898         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20899         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20900         comment.
20901         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20902         (CPPFLAGS-slowexp.c): Remove variable.
20903         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20904         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20905         (CFLAGS-slowexp-fma.c): Remove variable.
20906         (CFLAGS-slowexp-fma4.c): Likewise.
20907         (CFLAGS-slowexp-avx.c): Likewise.
20908         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20909         define as macro.
20910         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20911         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20912         * math/Makefile (type-double-routines): Remove slowexp.
20913         * manual/probes.texi (slowexp_p6): Remove.
20914         (slowexp_p32): Likewise.
20915
20916 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20917
20918         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20919         arithmetic.
20920
20921         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20922
20923 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20924
20925         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20926
20927 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20928
20929         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20930         <errno.h>.  Include "eexp.tbl".
20931         (half): New constant.
20932         (one): Likewise.
20933         (__ieee754_exp): Rewrite.
20934         (__slowexp): Remove prototype.
20935         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20936         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20937         * sysdeps/i386/fpu/slowexp.c: Likewise.
20938         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20939         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20940         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20941         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20942         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20943         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20944         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20945         comment.
20946         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20947         (CPPFLAGS-slowexp.c): Remove variable.
20948         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20949         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20950         (CFLAGS-slowexp-fma.c): Remove variable.
20951         (CFLAGS-slowexp-fma4.c): Likewise.
20952         (CFLAGS-slowexp-avx.c): Likewise.
20953         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20954         define as macro.
20955         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20956         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20957         * math/Makefile (type-double-routines): Remove slowexp.
20958         * manual/probes.texi (slowexp_p6): Remove.
20959         (slowexp_p32): Likewise.
20960
20961 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20962             James Clarke  <jrtc27@jrtc27.com>
20963
20964         [BZ #22603]
20965         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20966         addition.
20967
20968 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20969
20970         [BZ #22605]
20971         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20972         code.
20973
20974 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20975
20976         [BZ #22563]
20977         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20978         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20979         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20980         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20981         to feature_1.
20982
20983 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20984
20985         [BZ #22563]
20986         * bits/types/__cancel_jmp_buf_tag.h: New file.
20987         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20988         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20989         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20990         * nptl/Makefile (headers): Add
20991         bits/types/__cancel_jmp_buf_tag.h.
20992         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20993         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20994         * sysdeps/nptl/pthread.h: Include
20995         <bits/types/__cancel_jmp_buf_tag.h>.
20996         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20997         __cancel_jmp_buf.
20998         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20999
21000 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21001
21002         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21003         --enable-static-pie variants to x86_64, x32 and i686.
21004
21005 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
21006
21007         [BZ #22631]
21008         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21009         argument for attrubutes.  All callers changed.
21010         (__inline_mathop1): Likewise.  All callers changed.
21011         (__inline_mathop): Likewise.  All callers changed.
21012         [__USE_MISC] (scalbn): Use __inline_forward instead of
21013         __inline_forward_c.
21014         [__USE_ISOC99] (scalbln): Likewise.
21015         [__USE_ISOC99] (nearbyint): Likewise.
21016         [__USE_ISOC99] (lrint): Likewise.
21017         [__USE_MISC] (scalbnf): Likewise.
21018         [__USE_ISOC99] (scalblnf): Likewise.
21019         [__USE_ISOC99] (nearbyintf): Likewise.
21020         [__USE_ISOC99] (lrintf): Likewise.
21021         [__USE_MISC] (scalbnl): Likewise.
21022         [__USE_ISOC99] (scalblnl): Likewise.
21023         [__USE_ISOC99] (nearbyintl): Likewise.
21024         [__USE_ISOC99] (lrintl): Likewise.
21025         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21026         __inline_mathop and __m81_defun changed.
21027
21028         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21029         CPU or FPU for ARM hard-float configurations.
21030
21031 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21032
21033         * nptl/tst-attr3.c: Include <libc-diag.h>.
21034         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21035
21036         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21037
21038         * string/tester.c (test_strncat): Also disable -Warray-bounds
21039         warnings for two tests.
21040
21041 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
21042
21043         [BZ #22614]
21044         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21045         $(cc-pie-default) == yes.
21046         * config.make.in (cc-pie-default): New.
21047         * configure.ac (libc_cv_pie_default): Renamed to ...
21048         (libc_cv_cc_pie_default): This.
21049         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21050         * configure: Regenerated.
21051
21052 2017-12-18  Florian Weimer  <fweimer@redhat.com>
21053
21054         [BZ #20204]
21055         ld.so: Harden dl-libc/libdl hooks.
21056         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21057         (rtld_active): New function.
21058         * dlfcn/dladdr.c (__dladdr): Call it.
21059         * dlfcn/dladdr1.c (__dladdr1): Likewise.
21060         * dlfcn/dlclose.c (__dlcose): Likewise.
21061         * dlfcn/dlerror.c (__dlerror): Likewise.
21062         * dlfcn/dlinfo.c (__dlinfo): Likewise.
21063         * dlfcn/dlmopen.c (__dlmopen): Likewise.
21064         * dlfcn/dlopen.c (__dlopen): Likewise.
21065         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21066         * dlfcn/dlsym.c (__dlsym): Likewise.
21067         * dlfcn/dlvsym.c (__dlvsym): Likewise.
21068         * libio/vtables.c (_IO_vtable_check): Likewise.
21069         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21070         (__libc_dlclose): Likewise.
21071         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21072         assignment.
21073
21074 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
21075
21076         [BZ #22446]
21077         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21078         buffers for readlink input and output.
21079
21080 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
21081
21082         [BZ #22624]
21083         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21084         inhibit_stack_protector.
21085
21086         [BZ #22624]
21087         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21088         inhibit_stack_protector.
21089
21090 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
21091
21092         [BZ #22627]
21093         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21094         code and invocation.
21095
21096 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21097
21098         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21099
21100 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
21101
21102         [BZ #22505]
21103         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21104
21105 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21106
21107         * sysdeps/s390/fpu/libm-test-ulps: Update.
21108
21109 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21110
21111         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21112
21113 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21114
21115         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21116         constants to s_sincosf.h file.
21117         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21118         * sysdeps/ieee754/flt-32/s_sincosf.c: New
21119         implementation.
21120         * sysdeps/ieee754/flt-32/s_sincosf.h:
21121         New file.
21122
21123 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21124
21125         [BZ #14681]
21126         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21127         before mtrace.
21128
21129 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21130
21131         [BZ #19574]
21132         * INSTALL: Regenerated.
21133         * Makeconfig (real-static-start-installed-name): New.
21134         (pic-default): Updated for --enable-static-pie.
21135         (pie-default): New for --enable-static-pie.
21136         (default-pie-ldflag): Likewise.
21137         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21138         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21139         Replace $(static-start-installed-name) with
21140         $(real-static-start-installed-name).
21141         (+prectorT): Updated for --enable-static-pie.
21142         (+postctorT): Likewise.
21143         (CFLAGS-.o): Add $(pie-default).
21144         (CFLAGS-.op): Likewise.
21145         * NEWS: Mention --enable-static-pie.
21146         * config.h.in (ENABLE_STATIC_PIE): New.
21147         * configure.ac (--enable-static-pie): New configure option.
21148         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21149         (have-static-pie): Likewise.
21150         Enable static PIE if linker supports --no-dynamic-linker.
21151         (ENABLE_STATIC_PIE): New AC_DEFINE.
21152         (enable-static-pie): New LIBC_CONFIG_VAR.
21153         * configure: Regenerated.
21154         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21155         gr$(start-installed-name) for --enable-static-pie.
21156         (extra-objs): Likewise.
21157         (install-lib): Likewise.
21158         (extra-objs): Add static-reloc.o and static-reloc.os
21159         ($(objpfx)$(start-installed-name)): Also depend on
21160         $(objpfx)static-reloc.o.
21161         ($(objpfx)r$(start-installed-name)): New.
21162         ($(objpfx)g$(start-installed-name)): Also depend on
21163         $(objpfx)static-reloc.os.
21164         ($(objpfx)gr$(start-installed-name)): New.
21165         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21166         in libc.a.
21167         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21168         initimage.
21169         * csu/static-reloc.c: New file.
21170         * elf/Makefile (routines): Add dl-reloc-static-pie.
21171         (elide-routines.os): Likewise.
21172         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21173         (tst-tls1-static-non-pie-no-pie): New.
21174         * elf/dl-reloc-static-pie.c: New file.
21175         * elf/dl-support.c (_dl_get_dl_main_map): New function.
21176         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21177         STATIC_PIE_BOOTSTRAP.
21178         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21179         * gmon/Makefile (tests): Add tst-gmon-static-pie.
21180         (tests-static): Likewise.
21181         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21182         (tst-gmon-static-no-pie): New.
21183         (CFLAGS-tst-gmon-static-pie.c): Likewise.
21184         (CRT-tst-gmon-static-pie): Likewise.
21185         (tst-gmon-static-pie-ENV): Likewise.
21186         (tests-special): Likewise.
21187         ($(objpfx)tst-gmon-static-pie.out): Likewise.
21188         (clean-tst-gmon-static-pie-data): Likewise.
21189         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21190         * gmon/tst-gmon-static-pie.c: New file.
21191         * manual/install.texi: Document --enable-static-pie.
21192         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21193         (_dl_get_dl_main_map): Likewise.
21194         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21195         * sysdeps/x86_64/configure.ac: Likewise.
21196         * sysdeps/i386/configure: Regenerated.
21197         * sysdeps/x86_64/configure: Likewise.
21198         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21199         (ASFLAGS-.op): Likewise.
21200
21201 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21202
21203         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21204         * posix/tst-mmap-offset.c (fname): Use /tmp.
21205         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21206
21207 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
21208
21209         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21210
21211 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
21212
21213         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21214         errno.
21215
21216 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
21217
21218         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21219         --with-float=hard for arm-linux-gnueabihf configurations.
21220
21221         [BZ #14121]
21222         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21223         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
21224         ($(mo-installed)): Use $(objpfx)%.mo.
21225         (realclean): Remove rule.
21226
21227         * po/Makefile (linguas): Remove rule and dependencies.
21228         (linguas.mo): Likewise.
21229         (.PHONY): Do not depend on linguas and linguas.mo.
21230         (podir): Remove variable.
21231         (pofiles): Likewise.
21232         [$(pofiles)] (%.po): Remove rule.
21233
21234         * sysdeps/sparc/sparc32/Makefile
21235         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21236         start-of-line whitespace in argument of echo.
21237         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21238         with whitespace.  Generate __wrap_.udiv alias.
21239         * sysdeps/sparc/sparc32/rem.S: Regenerated.
21240         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21241         * sysdeps/sparc/sparc32/udiv.S: Likewise.
21242         * sysdeps/sparc/sparc32/urem.S: Likewise.
21243
21244 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21245
21246         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21247         for aligned inputs.
21248
21249 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21250
21251         * benchtests/bench-strcmp.c: Print output in JSON format.
21252
21253         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21254
21255 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21256
21257         [BZ #22607]
21258         CVE-2017-1000409
21259         * elf/dl-load.c (_dl_init_paths): Compute number of components in
21260         the expanded path string.
21261
21262 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21263
21264         [BZ #22606]
21265         CVE-2017-1000408
21266         * elf/dl-load.c (system_dirs): Update comment.
21267         (nsystem_dirs_len): Use array_length.
21268         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21269
21270 2017-12-14  Florian Weimer  <fweimer@redhat.com>
21271
21272         Simplify compiling most of support/ outside of glibc.
21273         * support/check_addrinfo.c: Include <string.h>.
21274         * support/check_dns_packet.c: Likewise.
21275         * support/check_hostent.c: Likewise.
21276         * support/support_can_chroot.c: Include <support/xunistd.h>.
21277         * support/support_format_addrinfo.c: Include <stdlib.h>
21278         * support/support_format_dns_packet.c: Include <stdbool.h>.
21279         * support/support_format_hostent.c: Include <stdlib.h>.
21280         * support/support_format_netent.c: Likewise.
21281         * support/support_write_string.c: Include <support/xunistd.h>.
21282         * support/xdlfcn.c: Include <stddef.h>.
21283
21284 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
21285
21286         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21287
21288 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
21289             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21290
21291         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21292         (sysdeps_routines): Add memset-niagara7.
21293         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21294         Likewise.
21295         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21296         file.
21297         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21298         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21299         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21300         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21301         Add niagara7 option.
21302         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21303         memset.
21304
21305         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21306         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21307         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21308         Likewise.
21309         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21310         New file.
21311         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21312         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21313         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21314         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21315         and __memmove_niagara7.
21316         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21317         Add niagara7 option.
21318         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21319         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21320         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21321         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21322         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21323
21324 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
21325
21326         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21327         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21328         * sysdeps/sparc/sparc64/memmove.S: Likewise.
21329         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21330
21331         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21332         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21333         _dl_sparc_cap_flags array.
21334         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21335
21336 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21337
21338         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21339         time whenever possible.
21340
21341 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21342
21343         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21344         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21345
21346 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21347
21348         * soft-fp/fmadf4.c: Move to ....
21349         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21350         * soft-fp/fmasf4.c: Move to ....
21351         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21352         * soft-fp/fmatf4.c: Move to ....
21353         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21354         * sysdeps/ieee754/soft-fp/Makefile: New file.
21355         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21356         * sysdeps/arm/preconfigure: Regenerated.
21357         * sysdeps/arm/nofpu/Implies: New file.
21358         * sysdeps/arm/s_fma.c: Remove file.
21359         * sysdeps/arm/s_fmaf.c: Likewise.
21360         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21361         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21362         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21363         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21364         * sysdeps/microblaze/s_fma.c: Remove file.
21365         * sysdeps/microblaze/s_fmaf.c: Likewise.
21366         * sysdeps/mips/mips32/nofpu/Implies: New file.
21367         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21368         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21369         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21370         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21371         * sysdeps/mips/ieee754/s_fma.c: Remove file.
21372         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21373         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21374         implementation.
21375         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21376         * sysdeps/nios2/s_fma.c: Remove file.
21377         * sysdeps/nios2/s_fmaf.c: Likewise.
21378         * sysdeps/sh/nofpu/Implies: New file.
21379         * sysdeps/sh/s_fma.c: Remove file.
21380         * sysdeps/sh/s_fmaf.c: Likewise.
21381         * sysdeps/tile/Implies: Add ieee754/soft-fp.
21382         * sysdeps/tile/s_fma.c: Remove file.
21383         * sysdeps/tile/s_fmaf.c: Likewise.
21384
21385 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
21386
21387         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21388         Add s_cosf-sse2 and s_cosf-fma.
21389         (CFLAGS-s_cosf-fma.c): New.
21390         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21391         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21392         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21393
21394 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
21395
21396         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21397
21398 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21399
21400         * libio/Makefile (tests): Add tst-bz22415.
21401         (tst-bz22415-ENV): New rule.
21402         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21403         (tests-special): Add tst-bz22415-mem.out.
21404         ($(objpfx)tst-bz22415-mem.out): New rule.
21405         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21406         in case of a successful seek operation.
21407         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21408         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21409         buffer is required.
21410         * libio/tst-bz22415.c: New test.
21411
21412         * sysdeps/ia64/fpu/libm-test-ulps: Update.
21413
21414 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
21415
21416         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21417         __IPC_64 to 0 to avoid IPC_64 being set.
21418
21419 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21420
21421         [BZ #22593]
21422         * math/bits/mathcalls.h (nextafter): Remove const.
21423         (nexttoward): Likewise.
21424
21425 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21426
21427         * configure.ac (--with-fp): Remove configure option.
21428         (with_fp_cond): New variable.
21429         (libc_cv_with_fp): New configure test.  Use this variable instead
21430         of with_fp.
21431         * configure: Regenerated.
21432         * config.make.in (with-fp): Use @libc_cv_with_fp@.
21433         * manual/install.texi (Configuring and compiling): Remove
21434         --without-fp.
21435         * INSTALL: Regenerated.
21436         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21437         * sysdeps/mips/preconfigure (with_fp_cond): Define.
21438         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21439         * sysdeps/sh/preconfigure (with_fp_cond): Define.
21440         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21441         use --without-fp to configure glibc.
21442
21443 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
21444
21445         * manual/locale.texi (nl_langinfo): Fix a typo.
21446
21447 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
21448
21449         [BZ #22588]
21450         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21451
21452 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21453
21454         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21455         (CFLAGS-argp-parse.c): Likewise.
21456         (CFLAGS-argp-fmtstream.c): Likewise.
21457         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21458         (CPPFLAGS-sha512-crypt.c): Likewise.
21459         (CPPFLAGS-md5-crypt.c): Likewise.
21460         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21461         (CFLAGS-stack_chk_fail_local.c): Likewise.
21462         (CFLAGS-backtrace.c): Likewise.
21463         (CFLAGS-sprintf_chk.c): Likewise.
21464         (CFLAGS-snprintf_chk.c): Likewise.
21465         (CFLAGS-vsprintf_chk.c): Likewise.
21466         (CFLAGS-vsnprintf_chk.c): Likewise.
21467         (CFLAGS-asprintf_chk.c): Likewise.
21468         (CFLAGS-vasprintf_chk.c): Likewise.
21469         (CFLAGS-obprintf_chk.c): Likewise.
21470         (CFLAGS-dprintf_chk.c): Likewise.
21471         (CFLAGS-vdprintf_chk.c): Likewise.
21472         (CFLAGS-printf_chk.c): Likewise.
21473         (CFLAGS-fprintf_chk.c): Likewise.
21474         (CFLAGS-vprintf_chk.c): Likewise.
21475         (CFLAGS-vfprintf_chk.c): Likewise.
21476         (CFLAGS-gets_chk.c): Likewise.
21477         (CFLAGS-fgets_chk.c): Likewise.
21478         (CFLAGS-fgets_u_chk.c): Likewise.
21479         (CFLAGS-fread_chk.c): Likewise.
21480         (CFLAGS-fread_u_chk.c): Likewise.
21481         (CFLAGS-swprintf_chk.c): Likewise.
21482         (CFLAGS-vswprintf_chk.c): Likewise.
21483         (CFLAGS-wprintf_chk.c): Likewise.
21484         (CFLAGS-fwprintf_chk.c): Likewise.
21485         (CFLAGS-vwprintf_chk.c): Likewise.
21486         (CFLAGS-vfwprintf_chk.c): Likewise.
21487         (CFLAGS-fgetws_chk.c): Likewise.
21488         (CFLAGS-fgetws_u_chk.c): Likewise.
21489         (CFLAGS-read_chk.c): Likewise.
21490         (CFLAGS-pread_chk.c): Likewise.
21491         (CFLAGS-pread64_chk.c): Likewise.
21492         (CFLAGS-recv_chk.c): Likewise.
21493         (CFLAGS-recvfrom_chk.c): Likewise.
21494         (CFLAGS-tst-longjmp_chk.c): Likewise.
21495         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21496         (CFLAGS-tst-longjmp_chk2.c): Likewise.
21497         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21498         (CFLAGS-tst-longjmp_chk3.c): Likewise.
21499         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21500         (CFLAGS-tst-chk1.c): Likewise.
21501         (CFLAGS-tst-chk2.c): Likewise.
21502         (CFLAGS-tst-chk3.c): Likewise.
21503         (CFLAGS-tst-chk4.cc): Likewise.
21504         (CFLAGS-tst-chk5.cc): Likewise.
21505         (CFLAGS-tst-chk6.cc): Likewise.
21506         (CFLAGS-tst-lfschk1.c): Likewise.
21507         (CFLAGS-tst-lfschk2.c): Likewise.
21508         (CFLAGS-tst-lfschk3.c): Likewise.
21509         (CFLAGS-tst-lfschk4.cc): Likewise.
21510         (CFLAGS-tst-lfschk5.cc): Likewise.
21511         (CFLAGS-tst-lfschk6.cc): Likewise.
21512         (CFLAGS-tst-ssp-1.c): Likewise.
21513         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21514         (CFLAGS-scandir64.c): Likewise.
21515         (CFLAGS-scandir-tail.c): Likewise.
21516         (CFLAGS-scandir64-tail.c): Likewise.
21517         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21518         (CFLAGS-dl-tunables.c): Likewise.
21519         (CFLAGS-dl-runtime.c): Likewise.
21520         (CFLAGS-dl-lookup.c): Likewise.
21521         (CFLAGS-dl-iterate-phdr.c): Likewise.
21522         (CFLAGS-vismain.c): Likewise.
21523         (CFLAGS-tst-linkall-static.c): Likewise.
21524         (CFLAGS-tst-linkall-static.c): Likewise.
21525         (CPPFLAGS-dl-load.c): Likewise.
21526         (CFLAGS-ldconfig.c): Likewise.
21527         (CFLAGS-dl-cache.c): Likewise.
21528         (CFLAGS-cache.c): Likewise.
21529         (CFLAGS-rtld.c): Likewise.
21530         (CFLAGS-multiload.c): Likewise.
21531         (CFLAGS-filtmod1.c): Likewise.
21532         (CFLAGS-tst-align.c): Likewise.
21533         (CFLAGS-tst-align2.c): Likewise.
21534         (CFLAGS-tst-alignmod.c): Likewise.
21535         (CFLAGS-tst-alignmod2.c): Likewise.
21536         (CPPFLAGS-tst-execstack.c): Likewise.
21537         (CFLAGS-tst-ptrguard1-static.c): Likewise.
21538         (CFLAGS-tst-latepthreadmod.c): Likewise.
21539         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21540         (CFLAGS-getgrnam_r.c): Likewise.
21541         (CFLAGS-getgrent_r.c): Likewise.
21542         (CFLAGS-getgrent.c): Likewise.
21543         (CFLAGS-fgetgrent.c): Likewise.
21544         (CFLAGS-fgetgrent_r.c): Likewise.
21545         (CFLAGS-putgrent.c): Likewise.
21546         (CFLAGS-initgroups.c): Likewise.
21547         (CFLAGS-getgrgid.c): Likewise.
21548         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21549         (CFLAGS-getsgent.c): Likewise.
21550         (CFLAGS-fgetsgent.c): Likewise.
21551         (CFLAGS-fgetsgent_r.c): Likewise.
21552         (CFLAGS-putsgent.c): Likewise.
21553         (CFLAGS-getsgnam.c): Likewise.
21554         (CFLAGS-getsgnam_r.c): Likewise.
21555         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21556         (CFLAGS-iconv_charmap.c): Likewise.
21557         (CFLAGS-dummy-repertoire.c): Likewise.
21558         (CFLAGS-charmap.c): Likewise.
21559         (CFLAGS-linereader.c): Likewise.
21560         (CFLAGS-simple-hash.c): Likewise.
21561         (CFLAGS-gconv_conf.c): Likewise.
21562         (CFLAGS-iconvconfig.c): Likewise.
21563         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21564         (CFLAGS-gethstbyad.c): Likewise.
21565         (CFLAGS-gethstbynm_r.c): Likewise.
21566         (CFLAGS-gethstbynm.c): Likewise.
21567         (CFLAGS-gethstbynm2_r.c): Likewise.
21568         (CFLAGS-gethstbynm2.c): Likewise.
21569         (CFLAGS-gethstent_r.c): Likewise.
21570         (CFLAGS-gethstent.c): Likewise.
21571         (CFLAGS-rcmd.c): Likewise.
21572         (CFLAGS-getnetbynm_r.c): Likewise.
21573         (CFLAGS-getnetbynm.c): Likewise.
21574         (CFLAGS-getnetbyad_r.c): Likewise.
21575         (CFLAGS-getnetbyad.c): Likewise.
21576         (CFLAGS-getnetent_r.c): Likewise.
21577         (CFLAGS-getnetent.c): Likewise.
21578         (CFLAGS-getaliasent_r.c): Likewise.
21579         (CFLAGS-getaliasent.c): Likewise.
21580         (CFLAGS-getrpcent_r.c): Likewise.
21581         (CFLAGS-getrpcent.c): Likewise.
21582         (CFLAGS-getservent_r.c): Likewise.
21583         (CFLAGS-getservent.c): Likewise.
21584         (CFLAGS-getprtent_r.c): Likewise.
21585         (CFLAGS-getprtent.c): Likewise.
21586         (CFLAGS-either_ntoh.c): Likewise.
21587         (CFLAGS-either_hton.c): Likewise.
21588         (CFLAGS-getnetgrent.c): Likewise.
21589         (CFLAGS-getnetgrent_r.c): Likewise.
21590         (CFLAGS-tst-checks-posix.c): Likewise.
21591         (CFLAGS-tst-sockaddr.c): Likewise.
21592         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21593         (CFLAGS-tst-translit.c): Likewise.
21594         (CFLAGS-tst-gettext2.c): Likewise.
21595         (CFLAGS-tst-codeset.c): Likewise.
21596         (CFLAGS-tst-gettext3.c): Likewise.
21597         (CFLAGS-tst-gettext4.c): Likewise.
21598         (CFLAGS-tst-gettext5.c): Likewise.
21599         (CFLAGS-tst-gettext6.c): Likewise.
21600         * io/Makefile (CFLAGS-open.c): Likewise.
21601         (CFLAGS-open64.c): Likewise.
21602         (CFLAGS-creat.c): Likewise.
21603         (CFLAGS-creat64.c): Likewise.
21604         (CFLAGS-fcntl.c): Likewise.
21605         (CFLAGS-poll.c): Likewise.
21606         (CFLAGS-ppoll.c): Likewise.
21607         (CFLAGS-lockf.c): Likewise.
21608         (CFLAGS-statfs.c): Likewise.
21609         (CFLAGS-fstatfs.c): Likewise.
21610         (CFLAGS-statvfs.c): Likewise.
21611         (CFLAGS-fstatvfs.c): Likewise.
21612         (CFLAGS-fts.c): Likewise.
21613         (CFLAGS-fts64.c): Likewise.
21614         (CFLAGS-ftw.c): Likewise.
21615         (CFLAGS-ftw64.c): Likewise.
21616         (CFLAGS-lockf.c): Likewise.
21617         (CFLAGS-posix_fallocate.c): Likewise.
21618         (CFLAGS-posix_fallocate64.c): Likewise.
21619         (CFLAGS-fallocate.c): Likewise.
21620         (CFLAGS-fallocate64.c): Likewise.
21621         (CFLAGS-read.c): Likewise.
21622         (CFLAGS-write.c): Likewise.
21623         (CFLAGS-test-stat.c): Likewise.
21624         (CFLAGS-test-lfs.c): Likewise.
21625         * libio/Makefile (CFLAGS-fileops.c): Likewise.
21626         (CFLAGS-fputc.c): Likewise.
21627         (CFLAGS-fputwc.c): Likewise.
21628         (CFLAGS-freopen64.c): Likewise.
21629         (CFLAGS-freopen.c): Likewise.
21630         (CFLAGS-fseek.c): Likewise.
21631         (CFLAGS-fseeko64.c): Likewise.
21632         (CFLAGS-fseeko.c): Likewise.
21633         (CFLAGS-ftello64.c): Likewise.
21634         (CFLAGS-ftello.c): Likewise.
21635         (CFLAGS-fwide.c): Likewise.
21636         (CFLAGS-genops.c): Likewise.
21637         (CFLAGS-getc.c): Likewise.
21638         (CFLAGS-getchar.c): Likewise.
21639         (CFLAGS-getwc.c): Likewise.
21640         (CFLAGS-getwchar.c): Likewise.
21641         (CFLAGS-iofclose.c): Likewise.
21642         (CFLAGS-iofflush.c): Likewise.
21643         (CFLAGS-iofgetpos64.c): Likewise.
21644         (CFLAGS-iofgetpos.c): Likewise.
21645         (CFLAGS-iofgets.c): Likewise.
21646         (CFLAGS-iofgetws.c): Likewise.
21647         (CFLAGS-iofputs.c): Likewise.
21648         (CFLAGS-iofputws.c): Likewise.
21649         (CFLAGS-iofread.c): Likewise.
21650         (CFLAGS-iofsetpos64.c): Likewise.
21651         (CFLAGS-iofsetpos.c): Likewise.
21652         (CFLAGS-ioftell.c): Likewise.
21653         (CFLAGS-iofwrite.c): Likewise.
21654         (CFLAGS-iogetdelim.c): Likewise.
21655         (CFLAGS-iogetline.c): Likewise.
21656         (CFLAGS-iogets.c): Likewise.
21657         (CFLAGS-iogetwline.c): Likewise.
21658         (CFLAGS-ioputs.c): Likewise.
21659         (CFLAGS-ioseekoff.c): Likewise.
21660         (CFLAGS-ioseekpos.c): Likewise.
21661         (CFLAGS-iosetbuffer.c): Likewise.
21662         (CFLAGS-iosetvbuf.c): Likewise.
21663         (CFLAGS-ioungetc.c): Likewise.
21664         (CFLAGS-ioungetwc.c): Likewise.
21665         (CFLAGS-oldfileops.c): Likewise.
21666         (CFLAGS-oldiofclose.c): Likewise.
21667         (CFLAGS-oldiofgetpos64.c): Likewise.
21668         (CFLAGS-oldiofgetpos.c): Likewise.
21669         (CFLAGS-oldiofsetpos64.c): Likewise.
21670         (CFLAGS-oldiofsetpos.c): Likewise.
21671         (CFLAGS-peekc.c): Likewise.
21672         (CFLAGS-putc.c): Likewise.
21673         (CFLAGS-putchar.c): Likewise.
21674         (CFLAGS-putwc.c): Likewise.
21675         (CFLAGS-putwchar.c): Likewise.
21676         (CFLAGS-rewind.c): Likewise.
21677         (CFLAGS-wfileops.c): Likewise.
21678         (CFLAGS-wgenops.c): Likewise.
21679         (CFLAGS-oldiofopen.c): Likewise.
21680         (CFLAGS-iofopen.c): Likewise.
21681         (CFLAGS-iofopen64.c): Likewise.
21682         (CFLAGS-oldtmpfile.c): Likewise.
21683         (CFLAGS-tst_putwc.c): Likewise.
21684         * locale/Makefile (CFLAGS-md5.c): Likewise.
21685         (CFLAGS-charmap.c): Likewise.
21686         (CFLAGS-locfile.c): Likewise.
21687         (CFLAGS-charmap-dir.c): Likewise.
21688         * login/Makefile (CFLAGS-grantpt.c): Likewise.
21689         (CFLAGS-getpt.c): Likewise.
21690         (CFLAGS-pt_chown.c): Likewise.
21691         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21692         (CFLAGS-obstack.c): Likewise.
21693         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21694         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21695         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21696         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21697         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21698         (CFLAGS-test-tgmath.c): Likewise.
21699         (CFLAGS-test-tgmath2.c): Likewise.
21700         (CFLAGS-test-tgmath-ret.c): Likewise.
21701         (CFLAGS-test-powl.c): Likewise.
21702         (CFLAGS-test-snan.c): Likewise.
21703         (CFLAGS-test-signgam-finite.c): Likewise.
21704         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21705         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21706         (CFLAGS-test-signgam-uchar.c): Likewise.
21707         (CFLAGS-test-signgam-uchar-init.c): Likewise.
21708         (CFLAGS-test-signgam-uchar-static.c): Likewise.
21709         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21710         (CFLAGS-test-signgam-uint.c): Likewise.
21711         (CFLAGS-test-signgam-uint-init.c): Likewise.
21712         (CFLAGS-test-signgam-uint-static.c): Likewise.
21713         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21714         (CFLAGS-test-signgam-ullong.c): Likewise.
21715         (CFLAGS-test-signgam-ullong-init.c): Likewise.
21716         (CFLAGS-test-signgam-ullong-static.c): Likewise.
21717         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21718         (CFLAGS-test-math-cxx11.cc): Likewise.
21719         (CFLAGS-test-math-isinff.cc): Likewise.
21720         (CFLAGS-test-math-iszero.cc): Likewise.
21721         (CFLAGS-test-math-issignaling.cc): Likewise.
21722         (CFLAGS-test-math-iscanonical.cc): Likewise.
21723         (CFLAGS-test-iszero-excess-precision.c): Likewise.
21724         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21725         (CFLAGS-test-flt-eval-method.c): Likewise.
21726         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21727         (CFLAGS-test-finite-macros.c): Likewise.
21728         * misc/Makefile (CFLAGS-select.c): Likewise.
21729         (CFLAGS-tsearch.c): Likewise.
21730         (CFLAGS-lsearch.c): Likewise.
21731         (CFLAGS-pselect.c): Likewise.
21732         (CFLAGS-readv.c): Likewise.
21733         (CFLAGS-writev.c): Likewise.
21734         (CFLAGS-preadv.c): Likewise.
21735         (CFLAGS-preadv64.c): Likewise.
21736         (CFLAGS-pwritev.c): Likewise.
21737         (CFLAGS-pwritev64.c): Likewise.
21738         (CFLAGS-preadv2.c): Likewise.
21739         (CFLAGS-preadv64v2.c): Likewise.
21740         (CFLAGS-pwritev2.c): Likewise.
21741         (CFLAGS-pwritev64v2.c): Likewise.
21742         (CFLAGS-usleep.c): Likewise.
21743         (CFLAGS-syslog.c): Likewise.
21744         (CFLAGS-error.c): Likewise.
21745         (CFLAGS-getpass.c): Likewise.
21746         (CFLAGS-mkstemp.c): Likewise.
21747         (CFLAGS-mkstemp64.c): Likewise.
21748         (CFLAGS-getsysstats.c): Likewise.
21749         (CFLAGS-getusershell.c): Likewise.
21750         (CFLAGS-err.c): Likewise.
21751         (CFLAGS-tst-tsearch.c): Likewise.
21752         (CFLAGS-msync.c): Likewise.
21753         (CFLAGS-fdatasync.c): Likewise.
21754         (CFLAGS-fsync.c): Likewise.
21755         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21756         (CFLAGS-unwind.c): Likewise.
21757         (CFLAGS-unwind-forcedunwind.c): Likewise.
21758         (CFLAGS-pthread_cancel.c): Likewise.
21759         (CFLAGS-pthread_setcancelstate.c): Likewise.
21760         (CFLAGS-pthread_setcanceltype.c): Likewise.
21761         (CFLAGS-cancellation.c): Likewise.
21762         (CFLAGS-libc-cancellation.c): Likewise.
21763         (CFLAGS-pthread_exit.c): Likewise.
21764         (CFLAGS-forward.c): Likewise.
21765         (CFLAGS-pthread_testcancel.c): Likewise.
21766         (CFLAGS-pthread_join.c): Likewise.
21767         (CFLAGS-pthread_timedjoin.c): Likewise.
21768         (CFLAGS-pthread_once.c): Likewise.
21769         (CFLAGS-pthread_cond_wait.c): Likewise.
21770         (CFLAGS-sem_wait.c): Likewise.
21771         (CFLAGS-sem_timedwait.c): Likewise.
21772         (CFLAGS-fcntl.c): Likewise.
21773         (CFLAGS-lockf.c): Likewise.
21774         (CFLAGS-pread.c): Likewise.
21775         (CFLAGS-pread64.c): Likewise.
21776         (CFLAGS-pwrite.c): Likewise.
21777         (CFLAGS-pwrite64.c): Likewise.
21778         (CFLAGS-wait.c): Likewise.
21779         (CFLAGS-waitpid.c): Likewise.
21780         (CFLAGS-sigwait.c): Likewise.
21781         (CFLAGS-msgrcv.c): Likewise.
21782         (CFLAGS-msgsnd.c): Likewise.
21783         (CFLAGS-tcdrain.c): Likewise.
21784         (CFLAGS-open.c): Likewise.
21785         (CFLAGS-open64.c): Likewise.
21786         (CFLAGS-pause.c): Likewise.
21787         (CFLAGS-recv.c): Likewise.
21788         (CFLAGS-send.c): Likewise.
21789         (CFLAGS-accept.c): Likewise.
21790         (CFLAGS-sendto.c): Likewise.
21791         (CFLAGS-connect.c): Likewise.
21792         (CFLAGS-recvfrom.c): Likewise.
21793         (CFLAGS-recvmsg.c): Likewise.
21794         (CFLAGS-sendmsg.c): Likewise.
21795         (CFLAGS-close.c): Likewise.
21796         (CFLAGS-read.c): Likewise.
21797         (CFLAGS-write.c): Likewise.
21798         (CFLAGS-nanosleep.c): Likewise.
21799         (CFLAGS-sigsuspend.c): Likewise.
21800         (CFLAGS-msync.c): Likewise.
21801         (CFLAGS-fdatasync.c): Likewise.
21802         (CFLAGS-fsync.c): Likewise.
21803         (CFLAGS-pt-system.c): Likewise.
21804         (CFLAGS-tst-cleanup2.c): Likewise.
21805         (CFLAGS-tst-cleanupx2.c): Likewise.
21806         (CFLAGS-flockfile.c): Likewise.
21807         (CFLAGS-ftrylockfile.c): Likewise.
21808         (CFLAGS-funlockfile.c): Likewise.
21809         (CFLAGS-tst-initializers1.c): Likewise.
21810         (CFLAGS-tst-initializers1-c89.c): Likewise.
21811         (CFLAGS-tst-initializers1-c99.c): Likewise.
21812         (CFLAGS-tst-initializers1-c11.c): Likewise.
21813         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21814         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21815         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21816         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21817         (CFLAGS-nscd_getgr_r.c): Likewise.
21818         (CFLAGS-nscd_gethst_r.c): Likewise.
21819         (CFLAGS-nscd_getai.c): Likewise.
21820         (CFLAGS-nscd_initgroups.c): Likewise.
21821         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21822         (CFLAGS-pause.c): Likewise.
21823         (CFLAGS-pread.c): Likewise.
21824         (CFLAGS-pread64.c): Likewise.
21825         (CFLAGS-pwrite.c): Likewise.
21826         (CFLAGS-pwrite64.c): Likewise.
21827         (CFLAGS-sleep.c): Likewise.
21828         (CFLAGS-wait.c): Likewise.
21829         (CFLAGS-waitid.c): Likewise.
21830         (CFLAGS-waitpid.c): Likewise.
21831         (CFLAGS-getopt.c): Likewise.
21832         (CFLAGS-wordexp.c): Likewise.
21833         (CFLAGS-sysconf.c): Likewise.
21834         (CFLAGS-pathconf.c): Likewise.
21835         (CFLAGS-fpathconf.c): Likewise.
21836         (CFLAGS-spawn.c): Likewise.
21837         (CFLAGS-spawnp.c): Likewise.
21838         (CFLAGS-spawni.c): Likewise.
21839         (CFLAGS-glob.c): Likewise.
21840         (CFLAGS-glob64.c): Likewise.
21841         (CFLAGS-getconf.c): Likewise.
21842         (CFLAGS-nanosleep.c): Likewise.
21843         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21844         (CFLAGS-getpwent.c): Likewise.
21845         (CFLAGS-getpw.c): Likewise.
21846         (CFLAGS-fgetpwent_r.c): Likewise.
21847         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21848         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21849         (CFLAGS-mq_timedreceive.c): Likewise.
21850         (CFLAGS-mq_timedsend.c): Likewise.
21851         (CFLAGS-clock_nanosleep.c): Likewise.
21852         (CFLAGS-librt-cancellation.c): Likewise.
21853         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21854         (CFLAGS-getspent.c): Likewise.
21855         (CFLAGS-fgetspent.c): Likewise.
21856         (CFLAGS-fgetspent_r.c): Likewise.
21857         (CFLAGS-putspent.c): Likewise.
21858         (CFLAGS-getspnam.c): Likewise.
21859         (CFLAGS-getspnam_r.c): Likewise.
21860         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21861         (CFLAGS-sigsuspend.c): Likewise.
21862         (CFLAGS-sigtimedwait.c): Likewise.
21863         (CFLAGS-sigwait.c): Likewise.
21864         (CFLAGS-sigwaitinfo.c): Likewise.
21865         (CFLAGS-sigreturn.c): Likewise.
21866         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21867         (CFLAGS-vfwprintf.c): Likewise.
21868         (CFLAGS-tmpfile.c): Likewise.
21869         (CFLAGS-tmpfile64.c): Likewise.
21870         (CFLAGS-tempname.c): Likewise.
21871         (CFLAGS-psignal.c): Likewise.
21872         (CFLAGS-vprintf.c): Likewise.
21873         (CFLAGS-cuserid.c): Likewise.
21874         (CFLAGS-errlist.c): Likewise.
21875         (CFLAGS-siglist.c): Likewise.
21876         (CFLAGS-scanf15.c): Likewise.
21877         (CFLAGS-scanf17.c): Likewise.
21878         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21879         (CFLAGS-msort.c): Likewise.
21880         (CFLAGS-qsort.c): Likewise.
21881         (CFLAGS-system.c): Likewise.
21882         (CFLAGS-fmtmsg.c): Likewise.
21883         (CFLAGS-strfmon.c): Likewise.
21884         (CFLAGS-strfmon_l.c): Likewise.
21885         (CFLAGS-strfromd.c): Likewise.
21886         (CFLAGS-strfromf.c): Likewise.
21887         (CFLAGS-strfroml.c): Likewise.
21888         (CFLAGS-tst-bsearch.c): Likewise.
21889         (CFLAGS-tst-qsort.c): Likewise.
21890         (CFLAGS-tst-makecontext2.c): Likewise.
21891         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21892         (CFLAGS-xnlm_prot.c): Likewise.
21893         (CFLAGS-xrstat.c): Likewise.
21894         (CFLAGS-xyppasswd.c): Likewise.
21895         (CFLAGS-xklm_prot.c): Likewise.
21896         (CFLAGS-xrex.c): Likewise.
21897         (CFLAGS-xsm_inter.c): Likewise.
21898         (CFLAGS-xmount.c): Likewise.
21899         (CFLAGS-xrusers.c): Likewise.
21900         (CFLAGS-xspray.c): Likewise.
21901         (CFLAGS-xnfs_prot.c): Likewise.
21902         (CFLAGS-xrquota.c): Likewise.
21903         (CFLAGS-xkey_prot.c): Likewise.
21904         (CFLAGS-auth_unix.c): Likewise.
21905         (CFLAGS-key_call.c): Likewise.
21906         (CFLAGS-pmap_rmt.c): Likewise.
21907         (CFLAGS-clnt_perr.c): Likewise.
21908         (CFLAGS-openchild.c): Likewise.
21909         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21910         (CFLAGS-msgsnd.c): Likewise.
21911         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21912         * time/Makefile (CFLAGS-tzfile.c): Likewise.
21913         (CFLAGS-tzset.c): Likewise.
21914         (CFLAGS-getdate.c): Likewise.
21915         (CFLAGS-test_time.c): Likewise.
21916         (CPPFLAGS-tst-tzname.c): Likewise.
21917         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21918         (CFLAGS-zic.c): Likewise.
21919         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21920         (CFLAGS-wcswidth.c): Likewise.
21921         (CFLAGS-wcstol.c): Likewise.
21922         (CFLAGS-wcstoul.c): Likewise.
21923         (CFLAGS-wcstoll.c): Likewise.
21924         (CFLAGS-wcstoull.c): Likewise.
21925         (CFLAGS-wcstod.c): Likewise.
21926         (CFLAGS-wcstold.c): Likewise.
21927         (CFLAGS-wcstof128.c): Likewise.
21928         (CFLAGS-wcstof.c): Likewise.
21929         (CFLAGS-wcstol_l.c): Likewise.
21930         (CFLAGS-wcstoul_l.c): Likewise.
21931         (CFLAGS-wcstoll_l.c): Likewise.
21932         (CFLAGS-wcstoull_l.c): Likewise.
21933         (CFLAGS-wcstod_l.c): Likewise.
21934         (CFLAGS-wcstold_l.c): Likewise.
21935         (CFLAGS-wcstof128_l.c): Likewise.
21936         (CFLAGS-wcstof_l.c): Likewise.
21937         (CPPFLAGS-tst-wchar-h.c): Likewise.
21938         (CPPFLAGS-wcstold_l.c): Likewise.
21939
21940 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
21941
21942         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21943
21944 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21945             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21946
21947         * manual/tunables.texi (Hardware Capability Tunables): Document
21948         glibc.tune.cached_memopt.
21949         * sysdeps/powerpc/cpu-features.c: New file.
21950         * sysdeps/powerpc/cpu-features.h: New file.
21951         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21952         _dl_powerpc_cpu_features.
21953         * sysdeps/powerpc/dl-tunables.list: New file.
21954         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21955         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21956         (INIT_ARCH): Initialize use_aligned_memopt.
21957         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21958         IS_IN(rtld))]: Restrict dl_platform_init availability and
21959         initialize CPU features used by tunables.
21960         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21961         Add memcpy-power8-cached.
21962         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21963         __memcpy_power8_cached.
21964         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21965         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21966         New file.
21967
21968 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21969
21970         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21971         (CFLAGS-noinl-tester.c): Likewise.
21972         (CFLAGS-tst-strlen.c): Likewise.
21973         (CFLAGS-stratcliff.c): Likewise.
21974         (CFLAGS-test-ffs.c): Likewise.
21975         (CFLAGS-tst-inlcall.c): Likewise.
21976         (CFLAGS-tst-xbzero-opt.c): Likewise.
21977         (CFLAGS-memcpy.c): Likewise.
21978         (CFLAGS-wordcopy.c): Likewise.
21979
21980 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
21981
21982         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21983         Store r15 on stack and add cfi rule.
21984         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21985         Likewise.
21986
21987 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
21988
21989         [BZ #22577]
21990         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21991         call.
21992
21993 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21994
21995         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21996         Add s_sinf-sse2 and s_sinf-fma.
21997         (CFLAGS-s_sinf-fma.c): New.
21998         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21999         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22000         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22001
22002 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
22003
22004         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22005
22006 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22007
22008         [BZ #22568]
22009         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22010         part of result to imaginary part of argument if it is zero and the
22011         real part of the argument is not finite.
22012         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22013         of result to real part of argument if it is zero and the imaginary
22014         part of the argument is not finite.
22015
22016 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
22017
22018         [BZ #22524]
22019         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22020         and to the list of locales to be built for testing.
22021         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22022         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22023         and build the collation rules upon that.
22024
22025 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
22026
22027         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22028         * manual/math.texi (Mathematics): Document support for _Float32.
22029         * math/Makefile (test-types): Add float32.
22030         * math/Versions (GLIBC_2.27): Add _Float32 functions.
22031         * stdlib/Versions (GLIBC_2.27): Likewise.
22032         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22033         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22034         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22035         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22036         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22037         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22038         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22039         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22040         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22041         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22042         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22043         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22044         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22045         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22046         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22047         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22048         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22049         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22050         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22051         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22052         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22053         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22054         Likewise.
22055         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22056         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22057         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22058         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22059         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22061         Likewise.
22062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22063         Likewise.
22064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22065         Likewise.
22066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22067         Likewise.
22068
22069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22070         Likewise.
22071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22072         Likewise.
22073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22074         Likewise.
22075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22076         Likewise.
22077         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22078         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22079         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22080         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22081         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22082         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22083         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22084         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22085         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22086         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22088         Likewise.
22089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22090         Likewise.
22091         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22092         Likewise.
22093         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22094         Likewise.
22095         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22096         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22097         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22098         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22099         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22100         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22101         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22102         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22103
22104 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22105
22106         * stdlib/strtof.c: Include <bits/floatn.h>
22107         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22108         and later undefine as macro.  Define as weak alias if
22109         [!USE_WIDE_CHAR].
22110         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22111         and later undefine as macro.  Define as weak alias if
22112         [USE_WIDE_CHAR].
22113         * stdlib/strtof_l.c: Include <bits/floatn.h>
22114         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22115         and later undefine as macro.  Define as weak alias if
22116         [!USE_WIDE_CHAR].
22117         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22118         and later undefine as macro.  Define as weak alias if
22119         [USE_WIDE_CHAR].
22120
22121         * stdlib/strfromf.c: Include <bits/floatn.h>.
22122         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22123         and later undefine as macro and define as weak alias.
22124
22125         * math/test-float32.h: New file.
22126
22127         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22128         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22129         (libm_alias_float_other_r): Create f32 alias.
22130         (libm_alias_float_r): Use semicolon before call to
22131         libm_alias_float_other_r.
22132
22133         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22134         second argument to libm_alias_float_other.
22135         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22136         second argument to libm_alias_float_other.
22137         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22138         argument to libm_alias_float_other.
22139
22140         [BZ #22561]
22141         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22142         real part of result for argument 0 + i * NaN.
22143         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22144         results for tests of 0 + i * NaN.
22145
22146 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22147
22148         * sysdeps/alpha/fpu/libm-test-ulps: Update.
22149
22150 2017-12-06  David S. Miller  <davem@davemloft.net>
22151
22152         * sysdeps/sparc/fpu/libm-test-ulps: Update
22153         exp_{downward,towardzero,upward} ulps.
22154
22155 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22156
22157         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22158         variables static.
22159
22160         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22161         (Y0_2D): Likewise.
22162         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22163         (Y0_2D): Likewise.
22164         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22165         (Y0_2D): Likewise.
22166         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22167         (Y0_2D): Likewise.
22168
22169 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
22170
22171         [BZ #22515]
22172         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22173         and to the list of locales to be built for testing.
22174         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22175         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22176         and build the collation rules upon that.
22177
22178 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22179
22180         * NEWS: Add sinf to list of optimized functions.
22181
22182 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
22183
22184         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22185         (__HAVE_FLOAT32X): Likewise.
22186         * manual/math.texi (Mathematics): Document support for _Float64
22187         and _Float32x.
22188         * math/Makefile (test-types): Add float64 and float32x.
22189         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22190         functions.
22191         * stdlib/Versions (GLIBC_2.27): Likewise.
22192         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22193         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22194         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22195         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22196         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22197         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22198         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22199         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22200         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22201         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22202         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22203         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22204         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22205         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22206         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22207         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22208         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22209         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22210         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22211         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22212         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22213         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22214         Likewise.
22215         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22216         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22217         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22218         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22219         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22221         Likewise.
22222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22223         Likewise.
22224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22225         Likewise.
22226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22227         Likewise.
22228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22229         Likewise.
22230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22231         Likewise.
22232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22233         Likewise.
22234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22235         Likewise.
22236         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22237         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22238         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22239         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22240         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22241         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22242         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22243         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22244         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22245         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22246         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22247         Likewise.
22248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22249         Likewise.
22250         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22251         Likewise.
22252         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22253         Likewise.
22254         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22255         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22256         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22257         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22258         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22259         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22260         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22261         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22262
22263 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22264
22265         * bits/floatn-common.h: Include <bits/long-double.h>.
22266         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22267         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22268         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22269         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22270         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22271         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22272         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22273         (__builtin_huge_valf64): Use __builtin_huge_vall.
22274         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22275         (__builtin_inff64): Use __builtin_infl.
22276         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22277         (__builtin_nanf64): Use __builtin_nanl.
22278         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22279         (__builtin_nansf64): Use __builtin_nansl.
22280
22281 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
22282             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
22283             Carlos O'Donnell  <carlos@redhat.com>
22284
22285         * elf/dl-tunables.list: Add elision parameters.
22286         * manual/tunables.texi: Add entries about elision tunable.
22287         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22288         Add callback functions to dynamically enable/disable elision.
22289         Add multiple callbacks functions to set elision parameters.
22290         Deleted __libc_enable_secure check.
22291         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22292         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22293         * configure: Regenerated.
22294         * configure.ac: Option enable_lock_elision was deleted.
22295         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22296         * config.make.in: Remove references to enable_lock_elision.
22297         * manual/install.texi: Elision configure option was removed.
22298         * INSTALL: Regenerated to remove enable_lock_elision.
22299         * nptl/Makefile:
22300         Disable elision so it can verify error case for destroying a mutex.
22301         * sysdeps/powerpc/nptl/elide.h:
22302         Cleanup ENABLE_LOCK_ELISION check.
22303         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22304         * sysdeps/s390/configure: Regenerated.
22305         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22306         * nptl/tst-mutex8.c:
22307         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22308         * sysdeps/powerpc/powerpc32/sysdep.h:
22309         Deleted all ENABLE_LOCK_ELISION checks.
22310         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22311         * sysdeps/powerpc/sysdep.h: Likewise.
22312         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22313         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22314         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22315         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22316         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22317         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22318         enable-lock-elision.
22319
22320 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22321
22322         * stdlib/strtod.c: Include <bits/floatn.h>.
22323         (BUILD_DOUBLE): New macro.
22324         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22325         (strtof64): Define and later undefine as macro.  Define as weak
22326         alias if [!USE_WIDE_CHAR].
22327         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22328         (wcstof64): Define and later undefine as macro.  Define as weak
22329         alias if [USE_WIDE_CHAR].
22330         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22331         (strtof32x): Define and later undefine as macro.  Define as weak
22332         alias if [!USE_WIDE_CHAR].
22333         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22334         (wcstof32x): Define and later undefine as macro.  Define as weak
22335         alias if [USE_WIDE_CHAR].
22336         * stdlib/strtod_l.c: Include <bits/floatn.h>.
22337         (BUILD_DOUBLE): New macro.
22338         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22339         (strtof64_l): Define and later undefine as macro.  Define as weak
22340         alias if [!USE_WIDE_CHAR].
22341         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22342         (wcstof64_l): Define and later undefine as macro.  Define as weak
22343         alias if [USE_WIDE_CHAR].
22344         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22345         (strtof32x_l): Define and later undefine as macro.  Define as weak
22346         alias if [!USE_WIDE_CHAR].
22347         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22348         (wcstof32x_l): Define and later undefine as macro.  Define as weak
22349         alias if [USE_WIDE_CHAR].
22350
22351 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22352
22353         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22354         (reduced): Use ones as double instead of integer.
22355
22356 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22357
22358         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22359
22360 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22361
22362         * stdlib/strfromd.c: Include <bits/floatn.h>.
22363         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22364         and later undefine as macro and define as weak alias.
22365         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22366         Likewise.
22367
22368         * math/test-float32x.h: New file.
22369         * math/test-float64.h: Likewise.
22370
22371         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22372         (libm_alias_double_other_r_f64): New macro.
22373         (libm_alias_double_other_r_f32x): Likewise.
22374         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22375         libm_alias_double_other_r_f32x.
22376         (libm_alias_double_r): Use semicolon before call to
22377         libm_alias_double_other_r.
22378         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22379         <bits/floatn.h>.
22380         (libm_alias_double_other_r_f64): New macro.
22381         (libm_alias_double_other_r_f32x): Likewise.
22382         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22383         libm_alias_double_other_r_f32x.
22384
22385 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
22386
22387         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22388         int.
22389         (SINF_FUNC): Likewise.  Replace floor with simple casts.
22390
22391 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
22392
22393         [BZ #22517]
22394         * localedata/Makefile: Add et_EE.UTF-8 to test-input
22395         and to the list of locales to be built for testing.
22396         * localedata/et_EE.UTF-8.in: New file for testing the collation.
22397         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22398         and build the collation rules upon that.
22399
22400 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
22401
22402         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22403         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22404         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22405         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22406         instead of __insn__xxx.
22407         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22408         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22409         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22410         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22411         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22412         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22413
22414 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22415
22416         Linux: Implement interfaces for memory protection keys
22417         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22418         xsignal, xsysconf.
22419         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22420         * support/xunistd.h (xsysconf): Declare.
22421         * support/xraise.c: New file.
22422         * support/xsigaction.c: Likewise.
22423         * support/xsignal.c: Likewise.
22424         * support/xsysconf.c: Likewise.
22425         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22426         pkey_set, pkey_get, pkey_mprotect.
22427         [misc] (tests): Add tst-pkey.
22428         (tst-pkey): Link with -lpthread.
22429         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22430         pkey_free, pkey_set, pkey_get, pkey_mprotect.
22431         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22432         (PKEY_DISABLE_WRITE): Define.
22433         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22434         Declare.
22435         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22436         (SEGV_PKUERR): Add.
22437         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22438         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22439         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22440         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22441         Add.
22442         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22443         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22444         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22445         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22446         * sysdeps/unix/sysv/linux/**.abilist: Update.
22447
22448 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22449
22450         * support/tst-test_compare.c (subprocess): Use long long instead
22451         of long argument for consistent type width across 32-bit and
22452         64-bit architectures.
22453         (do_test): Adjust expected output.
22454
22455 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22456
22457         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22458         (cosf): Define using libm_alias_float.
22459         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22460         (fabsf): Define using libm_alias_float.
22461         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22462         (fmaf): Define using libm_alias_float.
22463         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22464         (rintf): Define using libm_alias_float.
22465         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22466         (sinf): Define using libm_alias_float.
22467         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22468         <libm-alias-float.h>.
22469         (modff): Define using libm_alias_float.
22470         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22471         <libm-alias-float.h>.
22472         (logbf): Define using libm_alias_float.
22473         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22474         <libm-alias-float.h>.
22475         (ceilf): Define using libm_alias_float.
22476         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22477         <libm-alias-float.h>.
22478         (copysignf): Define using libm_alias_float.
22479         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22480         <libm-alias-float.h>.
22481         (floorf): Define using libm_alias_float.
22482         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22483         <libm-alias-float.h>.
22484         (llrintf): Define using libm_alias_float.
22485         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22486         <libm-alias-float.h>.
22487         (llroundf): Define using libm_alias_float.
22488         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22489         <libm-alias-float.h>.
22490         (lrintf): Define using libm_alias_float.
22491         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22492         <libm-alias-float.h>.
22493         (lroundf): Define using libm_alias_float.
22494         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22495         <libm-alias-float.h>.
22496         (nearbyintf): Define using libm_alias_float.
22497         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22498         <libm-alias-float.h>.
22499         (rintf): Define using libm_alias_float.
22500         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22501         <libm-alias-float.h>.
22502         (roundf): Define using libm_alias_float.
22503         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22504         <libm-alias-float.h>.
22505         (truncf): Define using libm_alias_float.
22506         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22507         Include <libm-alias-float.h>.
22508         (ceilf): Define using libm_alias_float.
22509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22510         Include <libm-alias-float.h>.
22511         (copysignf): Define using libm_alias_float.
22512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22513         Include <libm-alias-float.h>.
22514         (floorf): Define using libm_alias_float.
22515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22516         Include <libm-alias-float.h>.
22517         (llrintf): Define using libm_alias_float.
22518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22519         Include <libm-alias-float.h>.
22520         (llroundf): Define using libm_alias_float.
22521         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22522         Include <libm-alias-float.h>.
22523         (logbf): Define using libm_alias_float.
22524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22525         Include <libm-alias-float.h>.
22526         (lrintf): Define using libm_alias_float.
22527         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22528         Include <libm-alias-float.h>.
22529         (lroundf): Define using libm_alias_float.
22530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22531         Include <libm-alias-float.h>.
22532         (modff): Define using libm_alias_float.
22533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22534         Include <libm-alias-float.h>.
22535         (roundf): Define using libm_alias_float.
22536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22537         Include <libm-alias-float.h>.
22538         (truncf): Define using libm_alias_float.
22539         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22540         <libm-alias-float.h>.
22541         (llrintf): Define using libm_alias_float.
22542         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22543         <libm-alias-float.h>.
22544         (llroundf): Define using libm_alias_float.
22545         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22546         <libm-alias-float.h>.
22547         (ceilf): Define using libm_alias_float.
22548         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22549         <libm-alias-float.h>.
22550         (floorf): Define using libm_alias_float.
22551         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22552         <libm-alias-float.h>.
22553         (llroundf): Define using libm_alias_float.
22554         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22555         <libm-alias-float.h>.
22556         (lroundf): Define using libm_alias_float.
22557         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22558         <libm-alias-float.h>.
22559         (roundf): Define using libm_alias_float.
22560         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22561         <libm-alias-float.h>.
22562         (truncf): Define using libm_alias_float.
22563         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22564         <libm-alias-float.h>.
22565         (copysignf): Define using libm_alias_float.
22566         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22567         <libm-alias-float.h>.
22568         (llrintf): Define using libm_alias_float.
22569         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22570         <libm-alias-float.h>.
22571         (llroundf): Define using libm_alias_float.
22572         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22573         <libm-alias-float.h>.
22574         (lrintf): Define using libm_alias_float.
22575         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22576         <libm-alias-float.h>.
22577         (lroundf): Define using libm_alias_float.
22578         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22579         <libm-alias-float.h>.
22580         (ceilf): Define using libm_alias_float.
22581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22582         <libm-alias-float.h>.
22583         (copysignf): Define using libm_alias_float.
22584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22585         <libm-alias-float.h>.
22586         (cosf): Define using libm_alias_float.
22587         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22588         <libm-alias-float.h>.
22589         (floorf): Define using libm_alias_float.
22590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22591         <libm-alias-float.h>.
22592         (llrintf): Define using libm_alias_float.
22593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22594         <libm-alias-float.h>.
22595         (llroundf): Define using libm_alias_float.
22596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22597         <libm-alias-float.h>.
22598         (logbf): Define using libm_alias_float.
22599         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22600         <libm-alias-float.h>.
22601         (modff): Define using libm_alias_float.
22602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22603         <libm-alias-float.h>.
22604         (roundf): Define using libm_alias_float.
22605         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22606         <libm-alias-float.h>.
22607         (sinf): Define using libm_alias_float.
22608         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22609         <libm-alias-float.h>.
22610         (truncf): Define using libm_alias_float.
22611         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22612         <libm-alias-float.h>.
22613         (ceilf): Define using libm_alias_float.
22614         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22615         <libm-alias-float.h>.
22616         (copysignf): Define using libm_alias_float.
22617         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22618         <libm-alias-float.h>.
22619         (floorf): Define using libm_alias_float.
22620         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22621         <libm-alias-float.h>.
22622         (llrintf): Define using libm_alias_float.
22623         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22624         <libm-alias-float.h>.
22625         (llroundf): Define using libm_alias_float.
22626         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22627         <libm-alias-float.h>.
22628         (nearbyintf): Define using libm_alias_float.
22629         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22630         <libm-alias-float.h>.
22631         (rintf): Define using libm_alias_float.
22632         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22633         <libm-alias-float.h>.
22634         (roundf): Define using libm_alias_float.
22635         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22636         <libm-alias-float.h>.
22637         (truncf): Define using libm_alias_float.
22638         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22639         <libm-alias-float.h>.
22640         (ceilf): Define using libm_alias_float.
22641         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22642         <libm-alias-float.h>.
22643         (floorf): Define using libm_alias_float.
22644         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22645         <libm-alias-float.h>.
22646         (llroundf): Define using libm_alias_float.
22647         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22648         <libm-alias-float.h>.
22649         (roundf): Define using libm_alias_float.
22650         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22651         <libm-alias-float.h>.
22652         (truncf): Define using libm_alias_float.
22653         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22654         <libm-alias-float.h>.
22655         (copysignf): Define using libm_alias_float.
22656         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22657         <libm-alias-float.h>.
22658         (llrintf): Define using libm_alias_float.
22659         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22660         <libm-alias-float.h>.
22661         (llroundf): Define using libm_alias_float.
22662         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22663         <libm-alias-float.h>.
22664         (cosf): Define using libm_alias_float.
22665         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22666         <libm-alias-float.h>.
22667         (llrintf): Define using libm_alias_float.
22668         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22669         <libm-alias-float.h>.
22670         (llroundf): Define using libm_alias_float.
22671         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22672         <libm-alias-float.h>.
22673         (sinf): Define using libm_alias_float.
22674
22675 2017-12-04  Florian Weimer  <fweimer@redhat.com>
22676
22677         * support/check.h (TEST_COMPARE): Define.
22678         (support_test_compare_failure): Declare.
22679         * support/Makefile (libsupport-routines): Add
22680         support_test_compare_failure.
22681         (tests): Add tst-test_compare.
22682         * support /support_test_compare_failure.c: New file.
22683         * support/tst-test_compare.c: Likewise.
22684
22685 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22686
22687         [BZ #22527]
22688         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22689         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22690         available, this rewrite of the collation rules does reproduce
22691         the test file in the same order.
22692
22693 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22694
22695         [BZ #10580]
22696         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22697         digraphs in the month and day names. Using single code points for
22698         digraphs is deprecated.  While there are dedicated Unicode
22699         codepoints, for the digraphs, these are included for backwards
22700         compatibility and modern texts use a sequence of Basic Latin
22701         characters. See: https://www.unicode.org/faq/ligature_digraph.html
22702         This makes the month and day names agree exactly with CLDR now,
22703         CLDR does not use the single code points for the digraphs either.
22704
22705 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
22706
22707         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22708
22709 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
22710
22711         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22712         of floor.
22713
22714 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22715
22716         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22717         Define only for libc.so.
22718
22719 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
22720
22721         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22722         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22723         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22724         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22725         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22726
22727 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22728
22729         [BZ #5997]
22730         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22731
22732 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
22733
22734         [BZ libc/19170]
22735         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22736         PREINIT_FUNCTION_WEAK is nonzero.
22737         (gmon_initializer): New function.  Put procedure label for it in
22738         .init_array section.
22739         (_init): Don't call PREINIT_FUNCTION.
22740         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22741         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22742         value when map argument is null.
22743
22744         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22745         depi instruction from PIC pc-relative sequence.
22746         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22747         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22748         (elf_machine_load_address): Likewise.
22749         (elf_machine_runtime_setup): Likewise.
22750
22751 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
22752
22753         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22754         <libm-alias-double.h>.
22755         (logb): Define using libm_alias_double.
22756         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22757         <libm-alias-double.h>.
22758         (copysign): Define using libm_alias_double.
22759         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22760         <libm-alias-double.h>.
22761         (llrint): Define using libm_alias_double.
22762         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22763         <libm-alias-double.h>.
22764         (llround): Define using libm_alias_double.
22765         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22766         <libm-alias-double.h>.
22767         (lrint): Define using libm_alias_double.
22768         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22769         <libm-alias-double.h>.
22770         (lround): Define using libm_alias_double.
22771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22772         Include <libm-alias-double.h>.
22773         (copysign): Define using libm_alias_double.
22774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22775         Include <libm-alias-double.h>.
22776         (llrint): Define using libm_alias_double.
22777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22778         Include <libm-alias-double.h>.
22779         (llround): Define using libm_alias_double.
22780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22781         <libm-alias-double.h>.
22782         (logb): Define using libm_alias_double.
22783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22784         Include <libm-alias-double.h>.
22785         (lrint): Define using libm_alias_double.
22786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22787         Include <libm-alias-double.h>.
22788         (lround): Define using libm_alias_double.
22789         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22790         <libm-alias-double.h>.
22791         (llrint): Define using libm_alias_double.
22792         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22793         <libm-alias-double.h>.
22794         (llround): Define using libm_alias_double.
22795         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22796         <libm-alias-double.h>.
22797         (llround): Define using libm_alias_double.
22798         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22799         <libm-alias-double.h>.
22800         (lround): Define using libm_alias_double.
22801         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22802         <libm-alias-double.h>.
22803         (copysign): Define using libm_alias_double.
22804         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22805         <libm-alias-double.h>.
22806         (llrint): Define using libm_alias_double.
22807         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22808         <libm-alias-double.h>.
22809         (llround): Define using libm_alias_double.
22810         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22811         <libm-alias-double.h>.
22812         (lrint): Define using libm_alias_double.
22813         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22814         <libm-alias-double.h>.
22815         (lround): Define using libm_alias_double.
22816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22817         <libm-alias-double.h>.
22818         (copysign): Define using libm_alias_double.
22819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22820         <libm-alias-double.h>.
22821         (llrint): Define using libm_alias_double.
22822         (lrint): Likewise.
22823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22824         <libm-alias-double.h>.
22825         (llround): Define using libm_alias_double.
22826         (lround): Likewise.
22827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22828         <libm-alias-double.h>.
22829         (logb): Define using libm_alias_double.
22830         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22831         <libm-alias-double.h>.
22832         (copysign): Define using libm_alias_double.
22833         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22834         <libm-alias-double.h>.
22835         (llrint): Define using libm_alias_double.
22836         (lrint): Likewise.
22837         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22838         <libm-alias-double.h>.
22839         (llround): Define using libm_alias_double.
22840         (lround): Likewise.
22841         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22842         <libm-alias-double.h>.
22843         (llround): Define using libm_alias_double.
22844         (lround): Likewise.
22845         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22846         <libm-alias-double.h>.
22847         (copysign): Define using libm_alias_double.
22848         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22849         <libm-alias-double.h>.
22850         (llrint): Define using libm_alias_double.
22851         (lrint): Likewise.
22852         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22853         <libm-alias-double.h>.
22854         (llround): Define using libm_alias_double.
22855         (lround): Likewise.
22856         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22857         <libm-alias-double.h>.
22858         (llrint): Define using libm_alias_double.
22859         (lrint): Likewise.
22860         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22861         <libm-alias-double.h>.
22862         (llround): Define using libm_alias_double.
22863         (lround): Likewise.
22864
22865 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
22866
22867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22868         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22869         compat symbol based on llround.
22870
22871         * sysdeps/powerpc/power7/fpu/s_logb.c
22872         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22873         symbol based on __logb, not on logb.
22874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22875         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22876         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22877         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22878
22879         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22880         (rint): Define using libm_alias_double.
22881         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22882         <libm-alias-double.h>.
22883         (modf): Define using libm_alias_double.
22884         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22885         <libm-alias-double.h>.
22886         (ceil): Define using libm_alias_double.
22887         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22888         <libm-alias-double.h>.
22889         (floor): Define using libm_alias_double.
22890         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22891         <libm-alias-double.h>.
22892         (nearbyint): Define using libm_alias_double.
22893         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22894         <libm-alias-double.h>.
22895         (rint): Define using libm_alias_double.
22896         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22897         <libm-alias-double.h>.
22898         (round): Define using libm_alias_double.
22899         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22900         <libm-alias-double.h>.
22901         (trunc): Define using libm_alias_double.
22902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22903         <libm-alias-double.h>.
22904         (ceil): Define using libm_alias_double.
22905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22906         Include <libm-alias-double.h>.
22907         (floor): Define using libm_alias_double.
22908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22909         <libm-alias-double.h>.
22910         (modf): Define using libm_alias_double.
22911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22912         Include <libm-alias-double.h>.
22913         (round): Define using libm_alias_double.
22914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22915         Include <libm-alias-double.h>.
22916         (trunc): Define using libm_alias_double.
22917         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22918         <libm-alias-double.h>.
22919         (ceil): Define using libm_alias_double.
22920         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22921         <libm-alias-double.h>.
22922         (floor): Define using libm_alias_double.
22923         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22924         <libm-alias-double.h>.
22925         (round): Define using libm_alias_double.
22926         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22927         <libm-alias-double.h>.
22928         (trunc): Define using libm_alias_double.
22929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22930         <libm-alias-double.h>.
22931         (ceil): Define using libm_alias_double.
22932         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22933         <libm-alias-double.h>.
22934         (floor): Define using libm_alias_double.
22935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22936         <libm-alias-double.h>.
22937         (modf): Define using libm_alias_double.
22938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22939         <libm-alias-double.h>.
22940         (round): Define using libm_alias_double.
22941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22942         <libm-alias-double.h>.
22943         (trunc): Define using libm_alias_double.
22944         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22945         <libm-alias-double.h>.
22946         (ceil): Define using libm_alias_double.
22947         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22948         <libm-alias-double.h>.
22949         (floor): Define using libm_alias_double.
22950         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22951         <libm-alias-double.h>.
22952         (nearbyint): Define using libm_alias_double.
22953         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22954         <libm-alias-double.h>.
22955         (rint): Define using libm_alias_double.
22956         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22957         <libm-alias-double.h>.
22958         (round): Define using libm_alias_double.
22959         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22960         <libm-alias-double.h>.
22961         (trunc): Define using libm_alias_double.
22962         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22963         <libm-alias-double.h>.
22964         (ceil): Define using libm_alias_double.
22965         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22966         <libm-alias-double.h>.
22967         (floor): Define using libm_alias_double.
22968         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22969         <libm-alias-double.h>.
22970         (round): Define using libm_alias_double.
22971         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22972         <libm-alias-double.h>.
22973         (trunc): Define using libm_alias_double.
22974
22975         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22976         (fabs): Define using libm_alias_double.
22977         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22978         (fma): Define using libm_alias_double.
22979         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22980         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22981         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22982         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22983
22984 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22985
22986         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22987
22988         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22989         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22990         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22991
22992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22993         due redirect macro.
22994
22995 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
22996
22997         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22998
22999 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23000
23001         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23002         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23003         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23004         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23005
23006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23007         (libm-sysdep_routines): Add s_nearbyintf-generic and
23008         s_nearbyint-generic.
23009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23010         New file.
23011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23013         Likewise.
23014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23015         Likewise.
23016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23017         file.
23018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23019         Likewise.
23020
23021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23022         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23024         file.
23025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23027         Likewise.
23028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23031
23032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23033         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23035         file.
23036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23038         Likewise.
23039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23042
23043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23044         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23046         file.
23047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23049         Likewise.
23050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23053
23054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23055         (sysdep_calls): New rule.
23056         (sysdep_routines): Use sysdep_calls as base.
23057         (libm-sysdep_routines): Add generic rule for symbols shared with
23058         libc.  Add s_copysign-generic and s_copysign-generic objects.
23059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23060         New file.
23061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23063         Likewise.
23064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23067
23068 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
23069
23070         [BZ #22519]
23071         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23072         the list of locales to be built for testing.
23073         * localedata/is_IS.UTF-8.in: New file.
23074         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23075         on iso14651_t1.
23076
23077 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
23078
23079         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23080         <libm-alias-float.h>.
23081         (fabsf): Define using libm_alias_float.
23082
23083 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23084
23085         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23086
23087 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23088
23089         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23090         <libm-alias-float.h>.
23091         (fabsf): Define using libm_alias_float.
23092         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23093         <libm-alias-float.h>.
23094         (lrintf): Define using libm_alias_float.
23095         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23096         <libm-alias-float.h>.
23097         (rintf): Define using libm_alias_float.
23098
23099         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23100         <libm-alias-double.h>.
23101         (fabs): Define using libm_alias_double.
23102         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23103         <libm-alias-double.h>.
23104         (lrint): Define using libm_alias_double.
23105         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23106         <libm-alias-double.h>.
23107         (rint): Define using libm_alias_double.
23108
23109         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23110         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23111         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23112         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23113         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23114         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23115         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23116         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23117         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23118         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23119         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23120         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23121         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23122         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23123         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23124         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23125         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23126         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23127         s_atan_template.c.
23128         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23129         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23130         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23131         s_ceil_template.c.
23132         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23133         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23134         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23135         s_cos_template.c.
23136         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23137         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23138         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23139         s_expm1_template.c.
23140         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23141         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23142         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23143         s_fabs_template.c.
23144         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23145         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23146         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23147         s_floor_template.c.
23148         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23149         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23150         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23151         s_frexp_template.c.
23152         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23153         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23154         s_lrint_template.c.
23155         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23156         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23157         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23158         s_modf_template.c.
23159         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23160         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23161         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23162         s_nearbyint_template.c.
23163         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23164         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23165         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23166         s_remquo_template.c.
23167         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23168         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23169         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23170         s_rint_template.c.
23171         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23172         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23173         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23174         s_sin_template.c.
23175         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23176         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23177         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23178         s_sincos_template.c.
23179         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23180         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23181         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23182         s_tan_template.c.
23183         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23184         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23185         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23186         s_tanh_template.c.
23187         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23188         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23189         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23190         s_trunc_template.c.
23191         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23192         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23193         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23194         s_atan.c instead of including s_atan.c.
23195         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23196         s_atanf.c instead of including s_atanf.c.
23197         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23198         s_atanl.c instead of including s_atanl.c.
23199         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23200         instead of s_atan.c.
23201         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23202         instead of s_atanf.c.
23203         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23204         instead of s_atanl.c.
23205
23206         * scripts/update-copyrights: Do not handle intl/plural.c
23207         specially.
23208
23209 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
23210
23211         [BZ #22432]
23212         * configure.ac (BISON): Require to be present.
23213         * configure: Regenerated.
23214         * intl/Makefile (generated): Add plural.c.
23215         [$(BISON) != no]: Make code unconditional.
23216         (plural.c): Change rule to $(objpfx)plural.c.
23217         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23218         * intl/plural.c: Remove.
23219         * manual/install.texi (Tools for Compilation): Document bison as
23220         required.
23221         * INSTALL: Regenerated.
23222
23223 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23224
23225         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23226         <libm-alias-double.h>.
23227         (llrint): Define using libm_alias_double.
23228         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23229         <libm-alias-float.h>.
23230         (llrintf): Define using libm_alias_float.
23231         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23232         <libm-alias-ldouble.h>.
23233         (llrintl): Define using libm_alias_ldouble.
23234
23235         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23236         declare_mgen_alias instead of weak_alias.
23237         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23238         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23239         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23240
23241 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23242
23243         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23244         Add add_n-generic.
23245         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23246         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23247         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23248
23249         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23250         Add submul_1-generic.
23251         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23252         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23253         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23254
23255         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23256         Add addmul_1-generic.
23257         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23258         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23259         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23260
23261         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23262         Add sub_n-generic.
23263         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23264         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23265         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23266
23267         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23268         Add mul_1-generic.
23269         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23270         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23271         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23272
23273 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23274
23275         According to CLDR, collation rules for Serbian and Bosnian
23276         should be the same as for Croatian.
23277
23278         [BZ #22534]
23279         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23280         and to the list of locales to be built for testing.
23281         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23282         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23283         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23284         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23285
23286 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23287
23288         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23289         to make test case pass.
23290         * localedata/hr_HR.UTF-8.in: Add more test strings.
23291
23292 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
23293
23294         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23295
23296 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23297
23298         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23299         the list of locales to built for testing.
23300         * localedata/hr_HR.UTF-8.in: New file.
23301
23302 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
23303
23304         [BZ #10580]
23305         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23306         iso14651_t1.
23307         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23308         CLDR (except use ligatures for the digraphs, CLDR does not use
23309         the ligatures), add first_workday, some fixes in the date and time
23310         formats.
23311         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23312         for Đ and đ.
23313         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23314         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23315         Add int_p_cs_precedes and int_n_cs_precedes.
23316         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23317         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23318         LC_MONETARY now).
23319         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23320         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23321         name_miss.
23322         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23323         and lang_lib. Change postal_fmt.
23324
23325 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
23326
23327         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23328         <setjmp.h>.
23329         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23330         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23331         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23332         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23333         * sysdeps/generic/setjmpP.h: New file.
23334         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23335         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23336         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23337         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23338         Add jmp_buf-ssp.sym.
23339         (tests): Add tst-saved_mask-1.
23340
23341 2017-11-30  Arjun Shankar  <arjun@redhat.com>
23342
23343         [BZ #22375]
23344         CVE-2017-17426
23345         * malloc/malloc.c (__libc_malloc): Use checked_request2size
23346         instead of request2size.
23347
23348 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23349
23350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23351         (__lllrint): Remove alias.
23352         (lllrint): Likewise.
23353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23354         (__lllrintf): Likewise.
23355         (lllrintf): Likewise.
23356
23357         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23358         <libm-alias-float.h>.
23359         (copysignf): Define using libm_alias_float.
23360         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23361         <libm-alias-float.h>.
23362         (fabsf): Define using libm_alias_float.
23363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23364         Include <libm-alias-float.h>.
23365         (copysignf): Define using libm_alias_float.
23366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23367         <libm-alias-float.h>.
23368         (fabsf): Define using libm_alias_float.
23369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23370         <libm-alias-float.h>.
23371         (fdimf): Define using libm_alias_float.
23372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23373         <libm-alias-float.h>.
23374         (fmaf): Define using libm_alias_float.
23375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23376         <libm-alias-float.h>.
23377         (llrintf): Define using libm_alias_float.
23378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23379         Include <libm-alias-float.h>.
23380         (nearbyintf): Define using libm_alias_float.
23381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23382         <libm-alias-float.h>.
23383         (rintf): Define using libm_alias_float.
23384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23385         <libm-alias-float.h>.
23386         (llrintf): Define using libm_alias_float.
23387         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23388         <libm-alias-float.h>.
23389         (lrintf): Define using libm_alias_float.
23390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23391         <libm-alias-float.h>.
23392         (nearbyintf): Define using libm_alias_float.
23393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23394         <libm-alias-float.h>.
23395         (rintf): Define using libm_alias_float.
23396         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23397         <libm-alias-float.h>.
23398         (ceilf): Define using libm_alias_float.
23399         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23400         <libm-alias-float.h>.
23401         (floorf): Define using libm_alias_float.
23402         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23403         <libm-alias-float.h>.
23404         (fmaf): Define using libm_alias_float.
23405         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23406         <libm-alias-float.h>.
23407         (lrintf): Define using libm_alias_float.
23408         (llrintf): Likewise.
23409         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23410         <libm-alias-float.h>.
23411         (nearbyintf): Define using libm_alias_float.
23412         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23413         <libm-alias-float.h>.
23414         (rintf): Define using libm_alias_float.
23415         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23416         <libm-alias-float.h>.
23417         (truncf): Define using libm_alias_float.
23418         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23419         <libm-alias-float.h>.
23420         (copysignf): Define using libm_alias_float.
23421         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23422         <libm-alias-float.h>.
23423         (fabsf): Define using libm_alias_float.
23424         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23425         <libm-alias-float.h>.
23426         (lrintf): Define using libm_alias_float.
23427         (llrintf): Likewise.
23428         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23429         <libm-alias-float.h>.
23430         (nearbyintf): Define using libm_alias_float.
23431         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23432         <libm-alias-float.h>.
23433         (rintf): Define using libm_alias_float.
23434
23435 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23436
23437         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23438         <libm-alias-double.h>.
23439         (copysign): Define using libm_alias_double.
23440         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23441         <libm-alias-double.h>.
23442         (fabs): Define using libm_alias_double.
23443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23444         Include <libm-alias-double.h>.
23445         (copysign): Define using libm_alias_double.
23446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23447         <libm-alias-double.h>.
23448         (fabs): Define using libm_alias_double.
23449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23450         <libm-alias-double.h>.
23451         (fdim): Define using libm_alias_double.
23452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23453         <libm-alias-double.h>.
23454         (fma): Define using libm_alias_double.
23455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23456         <libm-alias-double.h>.
23457         (llrint): Define using libm_alias_double.
23458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23459         Include <libm-alias-double.h>.
23460         (nearbyint): Define using libm_alias_double.
23461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23462         <libm-alias-double.h>.
23463         (rint): Define using libm_alias_double.
23464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23465         <libm-alias-double.h>.
23466         (fabs): Define using libm_alias_double.
23467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23468         <libm-alias-double.h>.
23469         (llrint): Define using libm_alias_double.
23470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23471         <libm-alias-double.h>.
23472         (nearbyint): Define using libm_alias_double.
23473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23474         <libm-alias-double.h>.
23475         (rint): Define using libm_alias_double.
23476         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23477         <libm-alias-double.h>.
23478         (ceil): Define using libm_alias_double.
23479         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23480         <libm-alias-double.h>.
23481         (floor): Define using libm_alias_double.
23482         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23483         <libm-alias-double.h>.
23484         (fma): Define using libm_alias_double.
23485         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23486         <libm-alias-double.h>.
23487         (lrint): Define using libm_alias_double.
23488         (llrint): Likewise.
23489         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23490         <libm-alias-double.h>.
23491         (nearbyint): Define using libm_alias_double.
23492         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23493         <libm-alias-double.h>.
23494         (rint): Define using libm_alias_double.
23495         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23496         <libm-alias-double.h>.
23497         (trunc): Define using libm_alias_double.
23498         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23499         <libm-alias-double.h>.
23500         (copysign): Define using libm_alias_double.
23501         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23502         <libm-alias-double.h>.
23503         (fabs): Define using libm_alias_double.
23504         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23505         <libm-alias-double.h>.
23506         (lrint): Define using libm_alias_double.
23507         (llrint): Likewise.
23508         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23509         <libm-alias-double.h>.
23510         (nearbyint): Define using libm_alias_double.
23511         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23512         <libm-alias-double.h>.
23513         (rint): Define using libm_alias_double.
23514
23515         [BZ #22229]
23516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23517         <math_ldbl_opt.h>.
23518         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23519
23520         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23521         SPARC --disable-multi-arch glibc variants.
23522
23523         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23524         <libm-alias-float.h>.
23525         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23526         if [SHARED].
23527         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23528         <libm-alias-float.h>.
23529         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23530         if [SHARED].
23531         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23532         <libm-alias-float.h>.
23533         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23534         if [SHARED].
23535         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23536         <libm-alias-float.h>.
23537         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23538         if [SHARED].
23539         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23540         <libm-alias-float.h>.
23541         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23542         if [SHARED].
23543         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23544         <libm-alias-float.h>.
23545         (ceilf): Define using libm_alias_float.
23546         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23547         <libm-alias-float.h>.
23548         (floorf): Define using libm_alias_float.
23549         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23550         <libm-alias-float.h>.
23551         (fmaf): Define using libm_alias_float.
23552         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23553         <libm-alias-float.h>.
23554         (nearbyintf): Define using libm_alias_float.
23555         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23556         <libm-alias-float.h>.
23557         (rintf): Define using libm_alias_float.
23558         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23559         <libm-alias-float.h>.
23560         (truncf): Define using libm_alias_float.
23561         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23562         (copysignf): Define using libm_alias_float.
23563         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23564         (cosf): Define using libm_alias_float.
23565         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23566         (fabsf): Define using libm_alias_float.
23567         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23568         (fmaxf): Define using libm_alias_float.
23569         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23570         (fminf): Define using libm_alias_float.
23571         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23572         (llrintf): Define using libm_alias_float.
23573         [!__ILP32__] (lrintf): Likewise.
23574         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23575         (sincosf): Define using libm_alias_float.
23576         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23577         (sinf): Define using libm_alias_float.
23578         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23579         (lrintf): Define using libm_alias_float.
23580
23581         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23582         <libm-alias-double.h>.
23583         (atan): Define using libm_alias_double.
23584         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23585         <libm-alias-double.h>.
23586         (ceil): Define using libm_alias_double.
23587         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23588         <libm-alias-double.h>.
23589         (floor): Define using libm_alias_double.
23590         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23591         <libm-alias-double.h>.
23592         (fma): Define using libm_alias_double.
23593         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23594         <libm-alias-double.h>.
23595         (nearbyint): Define using libm_alias_double.
23596         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23597         <libm-alias-double.h>.
23598         (rint): Define using libm_alias_double.
23599         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23600         <libm-alias-double.h>.
23601         (sin): Define using libm_alias_double.
23602         (cos): Likewise.
23603         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23604         <libm-alias-double.h>.
23605         (tan): Define using libm_alias_double.
23606         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23607         <libm-alias-double.h>.
23608         (trunc): Define using libm_alias_double.
23609         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23610         (copysign): Define using libm_alias_double.
23611         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23612         (fabs): Define using libm_alias_double.
23613         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23614         (fmax): Define using libm_alias_double.
23615         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23616         (fmin): Define using libm_alias_double.
23617         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23618         (llrint): Define using libm_alias_double.
23619         [!__ILP32__] (lrint): Likewise.
23620         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23621         (lrint): Define using libm_alias_double.
23622
23623 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23624
23625         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23626         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23627         objects.
23628         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23629         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23630         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23631         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23632         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23633         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23634
23635         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23636         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23637         objects.
23638         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23639         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23642         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23643         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23644
23645         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23646         (libm-sysdep_routines): Add s_nearbyint-generic and
23647         s_nearbyintf-generic objects.
23648         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23649         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23650         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23651         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23652         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23653         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23654
23655         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23656         Add s_finitef-generic and s_finite-generic objects.
23657         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23658         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23659         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23660         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23661         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23662         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23663
23664         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23665         Add s_isinff-generic and s_isinf-generic objects.
23666         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23667         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23668         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23669         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23670         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23671         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23672
23673         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23674         Add s_isnanf-generic and s_isnan-generic objects.
23675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23680         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23681
23682         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23683         macro.
23684         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23685         rule.
23686         (sysdep_routines): Use sysdep_calls as base.
23687         (libm-sysdep_routines): Add generic rule for symbols shared with
23688         libc.  Add s_signbit-generic and s_signbitf-generic objects.
23689         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23690         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23691         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23692         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23693         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23694         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23695
23696 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23697
23698         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23699         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23700         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23701         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23702         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23703         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23704         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23705         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23706         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23707         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23708         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23709         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23710         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23711         libm_alias_float_r.
23712         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23713         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23714         (logf): Likewise.
23715         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23716         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23717         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23718         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23719         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23720         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23721         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23722         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23723         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23724         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23725         libm_alias_float.
23726         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23727         (cosf): Likewise.
23728         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23729         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23730         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23731         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23732         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23733         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23734         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23735         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23736         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23737         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23738         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23739         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23740         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23741         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23742         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23743         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23744         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23745         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23746         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23747         libm_alias_float.
23748         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23749         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23750         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23751         * sysdeps/ia64/fpu/w_lgammaf_main.c
23752         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23753         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23754
23755 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
23756             Alexandre Oliva  <aoliva@redhat.com>
23757
23758         [BZ #17750]
23759         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23760         * localedata/fr_CA.UTF-8.in: New file with test data for backward
23761         accents sorting.
23762         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23763         sorting.
23764         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23765         * localedata/locales/de_DE (LC_COLLATE): Likewise.
23766         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23767         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23768         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23769         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23770         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23771         instead of “ifdef DIACRIT_BACKWARD”.
23772
23773 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23774
23775         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23776         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23777         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23778         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23779         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23780         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23781         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23782         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23783         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23785         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23786         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23787         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23788         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23789         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23790         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23791         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23792         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23794         ($(have-as-vis3) == yes): Remove conditional.
23795         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23796         Likewise.
23797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23798         file.
23799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23800         file.
23801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23802         file.
23803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23804         file.
23805         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23806         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23807         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23808         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23811         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23812         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23813
23814 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23815
23816         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23817         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23818         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23819         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23820         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23821         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23822         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23823         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23824         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23825         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23826         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23827         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23828         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23829         libm_alias_double_r.
23830         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23831         (log): Likewise.
23832         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23833         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23834         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23835         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23836         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23837         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23838         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23839         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23840         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23841         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23842         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23843         libm_alias_double.
23844         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23845         (cos): Likewise.
23846         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23847         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23848         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23849         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23850         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23851         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23852         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23853         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23854         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23855         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23856         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23857         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23858         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23859         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23860         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23861         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23862         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23863         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23864         libm_alias_double.
23865         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23866         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23867         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23868         * sysdeps/ia64/fpu/w_lgamma_main.c
23869         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23870         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23871
23872 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
23873
23874         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
23875         address of $global$ into %dp register earlier.  Use pc-relative
23876         instruction sequence for PIC case.
23877
23878 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23879
23880         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23881         (asinhf): Define using libm_alias_float.
23882         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23883         (atanf): Define using libm_alias_float.
23884         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23885         (cbrtf): Define using libm_alias_float.
23886         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23887         (ceilf): Define using libm_alias_float.
23888         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23889         (copysignf): Define using libm_alias_float.
23890         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23891         (expm1f): Define using libm_alias_float.
23892         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23893         (fabsf): Define using libm_alias_float.
23894         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23895         (floorf): Define using libm_alias_float.
23896         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23897         (fmaxf): Define using libm_alias_float.
23898         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23899         (fminf): Define using libm_alias_float.
23900         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23901         (frexpf): Define using libm_alias_float.
23902         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23903         (llrintf): Define using libm_alias_float.
23904         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23905         (logbf): Define using libm_alias_float.
23906         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23907         (lrintf): Define using libm_alias_float.
23908         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23909         (nearbyintf): Define using libm_alias_float.
23910         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23911         (remquof): Define using libm_alias_float.
23912         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23913         (rintf): Define using libm_alias_float.
23914         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23915         (truncf): Define using libm_alias_float.
23916         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23917         <libm-alias-float.h>.
23918         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23919         if [SHARED].
23920         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23921         <libm-alias-float.h>.
23922         (expf): Define using libm_alias_float, or libm_alias_float_other
23923         if [SHARED].
23924         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23925         <libm-alias-float.h>.
23926         (log2f): Define using libm_alias_float, or libm_alias_float_other
23927         if [SHARED].
23928         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23929         <libm-alias-float.h>.
23930         (logf): Define using libm_alias_float, or libm_alias_float_other
23931         if [SHARED].
23932         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23933         <libm-alias-float.h>.
23934         (powf): Define using libm_alias_float, or libm_alias_float_other
23935         if [SHARED].
23936         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23937         <libm-alias-float.h>.
23938         (cosf): Define using libm_alias_float.
23939         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23940         <libm-alias-float.h>.
23941         (sincosf): Define using libm_alias_float.
23942         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23943         <libm-alias-float.h>.
23944         (sinf): Define using libm_alias_float.
23945         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23946         (fmaxf): Define using libm_alias_float.
23947         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23948         (fminf): Define using libm_alias_float.
23949         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23950         <libm-alias-float.h>.
23951         (fmaf): Define using libm_alias_float.
23952
23953         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23954         (asinh): Define using libm_alias_double.
23955         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23956         (atan): Define using libm_alias_double.
23957         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23958         (cbrt): Define using libm_alias_double.
23959         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23960         (ceil): Define using libm_alias_double.
23961         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23962         (copysign): Define using libm_alias_double.
23963         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23964         (expm1): Define using libm_alias_double.
23965         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23966         (fabs): Define using libm_alias_double.
23967         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23968         (fdim): Define using libm_alias_double.
23969         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23970         (floor): Define using libm_alias_double.
23971         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23972         (fmax): Define using libm_alias_double.
23973         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23974         (fmin): Define using libm_alias_double.
23975         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23976         (frexp): Define using libm_alias_double.
23977         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23978         (llrint): Define using libm_alias_double.
23979         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23980         (logb): Define using libm_alias_double.
23981         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23982         (lrint): Define using libm_alias_double.
23983         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23984         (nearbyint): Define using libm_alias_double.
23985         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23986         (remquo): Define using libm_alias_double.
23987         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23988         (rint): Define using libm_alias_double.
23989         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23990         (trunc): Define using libm_alias_double.
23991         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23992         (fmax): Define using libm_alias_double.
23993         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23994         (fmin): Define using libm_alias_double.
23995         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23996         (fma): Define using libm_alias_double.
23997
23998 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23999
24000         [BZ #22370]
24001         * elf/dl-hwcaps.c (ROUND): Removed.
24002         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24003         and ELF_NOTE_NEXT_OFFSET.
24004         * elf/dl-load.c (ROUND): Removed.
24005         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24006         * elf/readelflib.c (ROUND): Removed.
24007         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24008         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24009         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24010         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24011
24012 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24013
24014         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24015         [!__fmaf] (fmaf): Define using libm_alias_float.
24016
24017         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24018         [!__fma] (fma): Define using libm_alias_double.
24019         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24020
24021 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
24022
24023         [BZ #22336]
24024         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24025         and implement the collation rules for cs from CLDR on top of that.
24026         * Makefile: Add cs_CZ.UTF-8 to test-input.
24027         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24028
24029 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24030
24031         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24032
24033 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24034             Icarus Sparry  <icarus.w.sparry@intel.com>
24035
24036         * benchtests/Makefile:Add BENCHSET to allow subsets of
24037         benchmarks to be run.
24038         * benchtests/README: Add documentation for: Running subsets of
24039         benchmarks.
24040
24041 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
24042
24043         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24044         range of tests names.
24045
24046         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24047         result from property and remove "max", min" and "mean" from
24048         required properties based on benchtests/bench-skeleton.c.
24049
24050 2017-11-28  Florian Weimer  <fweimer@redhat.com>
24051
24052         [BZ #20826]
24053         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24054         due to Internet requirement.
24055         * posix/Makefile (tests): Remove tst-getaddrinfo4,
24056         tst-getaddrinfo5.
24057         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24058
24059 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24060
24061         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24062         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24063         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24064         (sysdep_routines): Add memset-ultra1.
24065         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24066         file.
24067         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24068         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24069         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24070         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24071         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24072         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24073         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24074         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24075
24076         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24077         file.
24078         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24079         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24080         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24081         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24082         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24083         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24084         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24085         macro.
24086         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24087         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24088         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24089         (sysdep_routines): Add memcpy-ultra1.
24090         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24091         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24092
24093 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
24094
24095         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24096         (cfloat_versions): Take function argument without trailing 'f'.
24097         Call libm_alias_float_other.
24098         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24099         * sysdeps/alpha/fpu/cargf.c: Likewise.
24100         * sysdeps/alpha/fpu/cimagf.c: Likewise.
24101         * sysdeps/alpha/fpu/conjf.c: Likewise.
24102         * sysdeps/alpha/fpu/crealf.c: Likewise.
24103         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24104         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24105         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24106         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24107         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24108         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24109         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24110         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24111         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24112         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24113         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24114         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24115         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24116         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24117         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24118         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24119         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24120         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24121         (clog10f): Use libm_alias_float_other.
24122         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24123         (ceilf): Define using libm_alias_float.
24124         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24125         (copysignf): Define using libm_alias_float.
24126         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24127         (fabsf): Define using libm_alias_float.
24128         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24129         (floorf): Define using libm_alias_float.
24130         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24131         (fmaxf): Define using libm_alias_float.
24132         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24133         (fminf): Define using libm_alias_float.
24134         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24135         (lrintf): Define using libm_alias_float.
24136         (llrintf): Likewise.
24137         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24138         (lroundf): Define using libm_alias_float.
24139         (llroundf): Likewise.
24140         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24141         (rintf): Define using libm_alias_float.
24142         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24143         (truncf): Define using libm_alias_float.
24144
24145         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24146         (ceilf): Define using libm_alias_float.
24147         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24148         (floorf): Define using libm_alias_float.
24149         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24150         (fmaf): Define using libm_alias_float.
24151         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24152         (fmaxf): Define using libm_alias_float.
24153         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24154         (fminf): Define using libm_alias_float.
24155         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24156         (llrintf): Define using libm_alias_float.
24157         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24158         (llroundf): Define using libm_alias_float.
24159         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24160         (lrintf): Define using libm_alias_float.
24161         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24162         (lroundf): Define using libm_alias_float.
24163         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24164         <libm-alias-float.h>.
24165         (nearbyintf): Define using libm_alias_float.
24166         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24167         (rintf): Define using libm_alias_float.
24168         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24169         (roundf): Define using libm_alias_float.
24170         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24171         (truncf): Define using libm_alias_float.
24172
24173         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24174         (ceil): Define using libm_alias_double.
24175         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24176         (copysign): Define using libm_alias_double.
24177         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24178         (fabs): Define using libm_alias_double.
24179         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24180         (floor): Define using libm_alias_double.
24181         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24182         (fmax): Define using libm_alias_double.
24183         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24184         (fmin): Define using libm_alias_double.
24185         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24186         (lrint): Define using libm_alias_double.
24187         (llrint): Likewise.
24188         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24189         (lround): Define using libm_alias_double.
24190         (llround): Likewise.
24191         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24192         (rint): Define using libm_alias_double.
24193         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24194         (trunc): Define using libm_alias_double.
24195
24196         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24197         (libm_alias_double_r): Add semicolon after weak_alias call.
24198
24199 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24200
24201         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24202         (ceil): Define using libm_alias_double.
24203         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24204         (floor): Define using libm_alias_double.
24205         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24206         (fma): Define using libm_alias_double.
24207         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24208         (fmax): Define using libm_alias_double.
24209         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24210         (fmin): Define using libm_alias_double.
24211         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24212         (llrint): Define using libm_alias_double.
24213         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24214         (llround): Define using libm_alias_double.
24215         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24216         (lrint): Define using libm_alias_double.
24217         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24218         (lround): Define using libm_alias_double.
24219         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24220         (nearbyint): Define using libm_alias_double.
24221         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24222         (rint): Define using libm_alias_double.
24223         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24224         (round): Define using libm_alias_double.
24225         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24226         (trunc): Define using libm_alias_double.
24227
24228 2017-11-27  Florian Weimer  <fweimer@redhat.com>
24229
24230         * sysdeps/unix/sysv/linux/mlock2.c: New file.
24231         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24232         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24233         (tests): Add tst-mlock2.
24234         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24235         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24236         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24237         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24238         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24239         for mlock.  Document mlock2.
24240
24241 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
24242
24243         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24244         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24245         Likewise.
24246         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24247         Likewise.
24248         * sysdeps/x86/Makeconfig: New file.
24249         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24250         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24251         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24252         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24253         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24254         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24255         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24256         Likewise.
24257         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24258         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24259         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24260         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24261         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24262         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24263         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24264         * manual/math.texi (Mathematics): Document support for _Float64x.
24265         * math/Versions (GLIBC_2.27): Add _Float64x functions.
24266         * stdlib/Versions (GLIBC_2.27): Likewise.
24267         * wcsmbs/Versions (GLIBC_2.27): Likewise.
24268         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24269         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24270         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24271         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24272         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24273         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24274         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24275         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24276         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24277         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24278         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24280         Likewise.
24281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24282         Likewise.
24283         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24284         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24285         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24286         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24287         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24288         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24289         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24290         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24291         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24292         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24293         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24294         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24295         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24296         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24297
24298 2017-11-27  Andreas Schwab  <schwab@suse.de>
24299
24300         * elf/Makefile (dl-routines): Add dl-sort-maps.
24301         * elf/dl-sort-maps.c: New file.
24302         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24303         (_dl_sort_maps): Declare.
24304         * elf/dl-fini.c (_dl_sort_fini): Remove.
24305         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24306         * elf/dl-close.c (_dl_close_worker): Likewise.
24307         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24308         open-coding it.
24309         * elf/dl-open.c (dl_open_worker): Likewise.
24310
24311 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
24312
24313         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24314         using libm_alias_float128.
24315         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24316         Likewise.
24317         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24318         Likewise.
24319         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24320         (setpayloadsigf128): Likewise.
24321         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24322         Likewise.
24323         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24324         Likewise.
24325
24326         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24327         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24328         -mfloat128 to CFLAGS.
24329         ($(foreach
24330         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24331         Likewise.
24332         (CFLAGS-libm-test-support-float64x.c): New variable.
24333         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24334         $(f128-loader-link) to gnulib-tests.
24335
24336         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24337         (libm_alias_float128_other_r): If
24338         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24339         alias.
24340         (libm_alias_float128_r): Add semicolon after weak_alias call.
24341         * sysdeps/generic/libm-alias-ldouble.h
24342         (libm_alias_ldouble_other_r_f128): New macro.
24343         (libm_alias_ldouble_other_r_f64x): Likewise.
24344         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24345         and libm_alias_ldouble_other_r_f64x.
24346         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24347         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24348         (libm_alias_ldouble_other_r_f128): New macro.
24349         (libm_alias_ldouble_other_r_f64x): Likewise.
24350         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24351         and libm_alias_ldouble_other_r_f64x.
24352
24353         * stdlib/strfroml.c: Always include <stdlib.h>.
24354         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24355         undefine as macro and define as weak alias.
24356         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24357         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24358         <stdlib.h>.
24359         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24360         Define and later undefine as macro and define as weak alias.
24361
24362         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24363         Define and later undefine as macro.  Define as weak alias if
24364         [!USE_WIDE_CHAR].
24365         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24366         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24367         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24368         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24369         Define and later undefine as macro.  Define as weak alias if
24370         [!USE_WIDE_CHAR].
24371         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24372         Define and later undefine as macro.  Define as weak alias if
24373         [USE_WIDE_CHAR].
24374         * sysdeps/ieee754/float128/strtof128_l.c
24375         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24376         Define and later undefine as macro.  Define as weak alias if
24377         [!USE_WIDE_CHAR].
24378         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24379         Define and later undefine as macro.  Define as weak alias if
24380         [USE_WIDE_CHAR].
24381         * sysdeps/ieee754/ldbl-128/strtold_l.c
24382         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24383         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24384         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24385         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24386         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24387         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24388         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24389         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24390         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24391         * sysdeps/ieee754/ldbl-96/strtold_l.c
24392         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24393         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24394         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24395         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24396
24397         * math/test-float64x.h: New file.
24398         * math/Makefile (type-float64x-yes): New variable.
24399         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24400
24401         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24402         function-like macro.
24403         (min_of_type_): Likewise.
24404         (min_of_type_l): Likewise.
24405         (min_of_type_f128): Likewise.
24406         (min_of_type): Pass () as last argument of __MATH_TG.
24407
24408         * stdlib/tst-strtod-round-skeleton.c
24409         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24410         headers.
24411
24412         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24413         for combinations of long double with _Float64 and _Float64x.
24414
24415         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24416         (__DECL_SIMD_cosf32): Likewise.
24417         (__DECL_SIMD_cosf64): Likewise.
24418         (__DECL_SIMD_cosf32x): Likewise.
24419         (__DECL_SIMD_cosf64x): Likewise.
24420         (__DECL_SIMD_cosf128x): Likewise.
24421         (__DECL_SIMD_sinf16): Likewise.
24422         (__DECL_SIMD_sinf32): Likewise.
24423         (__DECL_SIMD_sinf64): Likewise.
24424         (__DECL_SIMD_sinf32x): Likewise.
24425         (__DECL_SIMD_sinf64x): Likewise.
24426         (__DECL_SIMD_sinf128x): Likewise.
24427         (__DECL_SIMD_sincosf16): Likewise.
24428         (__DECL_SIMD_sincosf32): Likewise.
24429         (__DECL_SIMD_sincosf64): Likewise.
24430         (__DECL_SIMD_sincosf32x): Likewise.
24431         (__DECL_SIMD_sincosf64x): Likewise.
24432         (__DECL_SIMD_sincosf128x): Likewise.
24433         (__DECL_SIMD_logf16): Likewise.
24434         (__DECL_SIMD_logf32): Likewise.
24435         (__DECL_SIMD_logf64): Likewise.
24436         (__DECL_SIMD_logf32x): Likewise.
24437         (__DECL_SIMD_logf64x): Likewise.
24438         (__DECL_SIMD_logf128x): Likewise.
24439         (__DECL_SIMD_expf16): Likewise.
24440         (__DECL_SIMD_expf32): Likewise.
24441         (__DECL_SIMD_expf64): Likewise.
24442         (__DECL_SIMD_expf32x): Likewise.
24443         (__DECL_SIMD_expf64x): Likewise.
24444         (__DECL_SIMD_expf128x): Likewise.
24445         (__DECL_SIMD_powf16): Likewise.
24446         (__DECL_SIMD_powf32): Likewise.
24447         (__DECL_SIMD_powf64): Likewise.
24448         (__DECL_SIMD_powf32x): Likewise.
24449         (__DECL_SIMD_powf64x): Likewise.
24450         (__DECL_SIMD_powf128x): Likewise.
24451
24452         * stdlib/Versions (libc): Move entries for wcstof128 and
24453         wcstof128_l to ....
24454         * wcsmbs/Versions (libc): ... here.
24455         Include <float128-abi.h>.
24456
24457 2017-11-24  Florian Weimer  <fweimer@redhat.com>
24458
24459         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24460         bits/mman-shared.h.
24461         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24462         <bits/mman-shared.h>.
24463         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24464         to ...
24465         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24466         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24467         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24468         <bits/mman-shared.h>.
24469
24470 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24471
24472         [BZ #22457]
24473         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24474         posix_memalign/free.
24475         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24476
24477 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
24478
24479         [BZ #22469]
24480         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24481         and implement the collation rules for pl from CLDR on top of that.
24482         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24483         of locales to be built for testing.
24484         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24485
24486 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
24487
24488         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24489         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24490         libm_alias_ldouble_other.
24491         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24492         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24493         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24494         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24495         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24496         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24497         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24498         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24499         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24500         libm_alias_ldouble_r.
24501         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24502         libm_alias_ldouble_other.
24503         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24504         (log10l): Likewise.
24505         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24506         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24507         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24508         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24509         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24510         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24511         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24512         (atan2l): Likewise.
24513         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24514         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24515         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24516         libm_alias_ldouble.
24517         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24518         (cosl): Likewise.
24519         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24520         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24521         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24522         (expl): Likewise.
24523         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24524         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24525         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24526         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24527         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24528         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24529         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24530         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24531         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24532         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24533         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24534         libm_alias_ldouble.
24535         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24536         libm_alias_ldouble_other.
24537         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24538         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24539         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24540         libm_alias_ldouble.
24541         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24542         libm_alias_ldouble_other.
24543         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24544         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24545         * sysdeps/ia64/fpu/w_lgammal_main.c
24546         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24547         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24548
24549 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24550
24551         * malloc/malloc.c (tcache_thread_shutdown): Rename from
24552         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
24553         alike.  Remove freeres marker.
24554         * malloc/arena.c (arena_thread_freeres): Call
24555         tcache_thread_shutdown.
24556
24557 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24558
24559         [BZ #22459]
24560         Export nscd hash function as __nss_hash.
24561         * include/nss.h (__nss_hash): Declare.
24562         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
24563         symbol.
24564         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24565         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24566         of __nscd_hash.
24567         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24568         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24569         * nss/Makefiles (routines): Add nss_hash.
24570         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24571         * nss/nss_hash.c: Rename from nis/nis_hash.c.
24572         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
24573         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24574
24575 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24576
24577         [BZ #22478]
24578         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24579         Return error code, not -1.
24580         * signal/tst-sigwait-eintr.c: New file.
24581         * signal/Makefile (tests): Add tst-sigwait-eintr.
24582
24583 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24584
24585         Linux: Add memfd_create system call wrapper
24586         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24587         tst-memfd_create.
24588         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24589         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24590         [__USE_GNU] (memfd_create): Declare.
24591         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24592         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24593         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24594         * sysdeps/unix/sysv/linux/**.abilist: Update.
24595         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24596
24597 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24598
24599         * localedata/gen-locale.sh: Fix typo in variable name.
24600
24601         * resolv/res_debug.c (p_secstodate): Condition definition on
24602         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
24603         directly as __p_secstodate, and as a compat symbol.  Do not use
24604         libresolv_hidden_def.
24605         * resolv/resolv.h (p_secstodate): Remove macro and function
24606         declaration.
24607         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24608         using p_secstodate.
24609         * include/resolv.h (__p_secstodate): Do not use
24610         libresolv_hidden_proto.
24611         * resolv/Makefile (tests): Move tst-p_secstodate to ....
24612         (tests-internal): ... here.
24613         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
24614         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24615         and declare and use __p_secstodate and use compat_symbol_reference
24616         in that case.
24617         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24618         implementation returning 77.
24619
24620         [BZ #22463]
24621         * resolv/res_debug.c: Include <libc-diag.h>.
24622         (p_secstodate): Assert time_t at least as wide as u_long.  On
24623         overflow, use integer seconds since the epoch as output, or use
24624         "<overflow>" as output and set errno to EOVERFLOW if integer
24625         seconds since the epoch would be 14 or more characters.
24626         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24627         for sprintf call.
24628         * resolv/tst-p_secstodate.c: New file.
24629         * resolv/Makefile (tests): Add tst-p_secstodate.
24630         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24631
24632         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24633         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24634         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24635
24636 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24637
24638         * posix/regcomp.c (init_word_char): Add comments.
24639
24640 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24641
24642         [BZ #22447]
24643         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24644         strlen to compute length of ut_user and set trailing NUL byte of
24645         result explicitly.
24646
24647 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
24648
24649         [BZ #15537]
24650         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24651         using “copy "iso14651_t1"” and then implementing the
24652         collation rules for lv from CLDR on top of that.
24653         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24654         of locales to be built for testing.
24655         * lv_LV.UTF-8.in: New file with test data to test the Latvian
24656         sorting.
24657
24658 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
24659
24660         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24661         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24662         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24663         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24664         [__USE_MISC] (MADV_HWPOISON): New macro.
24665         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24666
24667 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24668
24669         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24670         -Wmissing-braces on GCC 4.9.
24671
24672 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24673
24674         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24675         * sysdeps/s390/s390-32/start.S (_start): Likewise
24676         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24677         (thread_start): Likewise.
24678         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24679         (thread_start): Likewise.
24680         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24681         (__makecontext_ret): Likewise.
24682         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24683         (__makecontext_ret): Likewise.
24684
24685 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24686
24687         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24688         __wcschrnul): Remove attribute_hidden.
24689
24690 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24691
24692         regex: don't assume uint64_t or uint32_t
24693         This avoids -Werror=overflow errors for 32-bit systems in
24694         the 64-bit case.  Problem reported by Joseph Myers in:
24695         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24696         Also, when this code is used in Gnulib it ports to platforms
24697         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
24698         them, and on some 32-bit compilers there is no uint64_t.
24699         Problem reported by Gianluigi Tiesi in:
24700         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24701         * posix/regcomp.c (init_word_char): Don't assume that the types
24702         uint64_t and uint32_t exist.  Adapted from Gnulib patch
24703         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
24704         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24705
24706 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24707
24708         * sysdeps/aarch64/memset-reg.h: New file.
24709         * sysdeps/aarch64/memset.S: Use it.
24710         (__memset): Rename to MEMSET macro.
24711         [ZVA_MACRO]: Use zva_macro.
24712         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24713         Add memset_generic and memset_falkor.
24714         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24715         (__libc_ifunc_impl_list): Add memset ifuncs.
24716         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24717         local variable zva_size.
24718         * sysdeps/aarch64/multiarch/memset.c: New file.
24719         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24720         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24721         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24722         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24723         (DCZID_DZP_MASK): New macro.
24724         (DCZID_BS_MASK): Likewise.
24725         (init_cpu_features): Read and set zva_size.
24726         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24727         (struct cpu_features): New member zva_size.
24728
24729         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24730         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24731         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24732
24733         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24734         backwards.  Fix timing computation.
24735         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24736         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24737         on memset by N at a time.  Fix timing computation.
24738
24739 2017-11-20  Florian Weimer  <fweimer@redhat.com>
24740
24741         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24742         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24743
24744 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24745
24746         manual: Document mprotect
24747         * manual/memory.texi (Memory Protection): New section.
24748         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24749         documentation of PROT_* flags and reference the Memory Protection
24750         section instead.
24751
24752 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24753
24754         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24755         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24756         (Scatter-Gather): ... to here.  Remove misleading comment.
24757
24758 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
24759
24760         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24761         style.
24762
24763         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24764         when /proc/<pid>/setgroups does not exist.
24765
24766 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24767
24768         * sysdeps/unix/sysv/linux/tst-ttyname.c
24769         (become_root_in_mount_ns): Remove.
24770         (do_in_chroot_1): Call support_enter_mount_namespace.
24771         (do_in_chroot_2): Likewise.
24772         (do_test): Call support_become_root early.
24773
24774 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24775
24776         * support/namespace.h (support_enter_mount_namespace): Declare.
24777         * support/support_enter_mount_namespace.c: New file.
24778         * support/Makefile (libsupport-routines): Add
24779         support_enter_mount_namespace.
24780
24781 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24782
24783         * support/temp_file.c (support_create_temp_directory): Use
24784         test_dir and do not rely on the presence of the XXXXXX suffix.
24785         * support/temp_file.h (support_create_temp_directory): Update
24786         comment.
24787         * support/tst-xreadlink.c (do_test): Adjust.
24788         * support/support_chroot.c (support_chroot_create): Likewise.
24789
24790 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24791
24792         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24793         macro.
24794         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24795         htm-no-suspend.
24796
24797 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24798
24799         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24800         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24801         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24802         (ceill): Define using libm_alias_ldouble.
24803         * sysdeps/x86_64/fpu/s_copysignl.S: Include
24804         <libm-alias-ldouble.h>.
24805         (copysignl): Define using libm_alias_ldouble.
24806         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24807         (fabsl): Define using libm_alias_ldouble.
24808         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24809         (floorl): Define using libm_alias_ldouble.
24810         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24811         (fmaxl): Define using libm_alias_ldouble.
24812         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24813         (fminl): Define using libm_alias_ldouble.
24814         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24815         (llrintl): Define using libm_alias_ldouble.
24816         (lrintl): Likewise.
24817         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24818         <libm-alias-ldouble.h>.
24819         (nearbyintl): Define using libm_alias_ldouble.
24820         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24821         (truncl): Define using libm_alias_ldouble.
24822         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24823         <libm-alias-ldouble.h>.
24824         (lrintl): Define using libm_alias_ldouble.
24825
24826         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24827         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24828         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24829         (asinhl): Define using libm_alias_ldouble.
24830         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24831         (atanl): Define using libm_alias_ldouble.
24832         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24833         (cbrtl): Define using libm_alias_ldouble.
24834         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24835         (ceill): Define using libm_alias_ldouble.
24836         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24837         (copysignl): Define using libm_alias_ldouble.
24838         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24839         (fabsl): Define using libm_alias_ldouble.
24840         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24841         (floorl): Define using libm_alias_ldouble.
24842         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24843         (fmaxl): Define using libm_alias_ldouble.
24844         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24845         (fminl): Define using libm_alias_ldouble.
24846         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24847         (frexpl): Define using libm_alias_ldouble.
24848         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24849         (llrintl): Define using libm_alias_ldouble.
24850         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24851         (logbl): Define using libm_alias_ldouble.
24852         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24853         (lrintl): Define using libm_alias_ldouble.
24854         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24855         (nearbyintl): Define using libm_alias_ldouble.
24856         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24857         (nextafterl): Define using libm_alias_ldouble.
24858         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24859         (remquol): Define using libm_alias_ldouble.
24860         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24861         (rintl): Define using libm_alias_ldouble.
24862         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24863         (truncl): Define using libm_alias_ldouble.
24864         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24865         (fmaxl): Define using libm_alias_ldouble.
24866         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24867         (fminl): Define using libm_alias_ldouble.
24868
24869         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24870         to C syntax instead of availability and properties of types.
24871         * bits/floatn.h [!__ASSEMBLER]: Likewise.
24872         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24873         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24874         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24875         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24876         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24877
24878 2017-11-17  Florian Weimer  <fweimer@redhat.com>
24879
24880         support_become_root: Enable file creation in namespaces.
24881         * support/support_become_root.c (setup_mapping): New function.
24882         (support_become_root): Call it.
24883
24884 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24885
24886         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24887         macro.
24888
24889 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24890
24891         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24892         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24893
24894 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
24895
24896         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24897
24898         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24899         version to 4.14.
24900
24901 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24902
24903         * INSTALL: Fix botched up regeneration.
24904
24905         * NEWS: Update sourceare link to https.
24906         * configure.ac: Likewise.
24907         * crypt/md5test-giant.c: Likewise.
24908         * dlfcn/bug-atexit1.c: Likewise.
24909         * dlfcn/bug-atexit2.c: Likewise.
24910         * localedata/README: Likewise.
24911         * malloc/tst-mallocfork.c: Likewise.
24912         * manual/install.texi: Likewise.
24913         * nptl/tst-pthread-getattr.c: Likewise.
24914         * stdio-common/tst-fgets.c: Likewise.
24915         * stdio-common/tst-fwrite.c: Likewise.
24916         * sunrpc/Makefile: Likewise.
24917         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24918         * wcsmbs/tst-mbrtowc2.c: Likewise.
24919         * configure: Regenerate.
24920         * INSTALL: Regenerate.
24921
24922 2017-11-15  Martin Sebor  <msebor@redhat.com>
24923
24924         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24925         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24926         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24927
24928 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24929
24930         [BZ #22145]
24931         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24932         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24933
24934         [BZ #22145]
24935         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24936         Defer is_pty check until end of the function.
24937         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24938
24939         [BZ #22145]
24940         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24941         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24942         (ttyname): Likewise.
24943         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24944         (__ttyname_r): Likewise.
24945
24946         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24947         int to bool.
24948
24949         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24950
24951         * manual/terminal.texi (Is It a Terminal):
24952         Mention ENODEV for ttyname and ttyname_r.
24953
24954 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24955
24956         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24957         constant and macro.
24958
24959         * sysdeps/unix/sysv/linux/bits/mman-linux.h
24960         [__USE_MISC] (MADV_WIPEONFORK): New macro.
24961         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24962         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24963         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24964         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24965
24966 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24967
24968         * signal/sigrelse.c (sigrelse): Optimize implementation.
24969
24970         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24971         (__sigpause): Rely on __sigsuspend to implement single thread
24972         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
24973
24974 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24975
24976         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24977         kernel version to 4.14.
24978
24979 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
24980
24981         [BZ #22442]
24982         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24983         Check if ifname is too long.
24984
24985 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24986
24987         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24988
24989 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24990
24991         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24992         was accidentally lost.
24993
24994 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24995
24996         * localedata/locales/az_IR: Add standard copyright header.
24997
24998 2017-11-15  Florian Weimer  <fweimer@redhat.com>
24999
25000         [BZ #22439]
25001         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25002         not just the top one.  Output a new "subheaps" statistic.
25003
25004 2017-11-15  Florian Weimer  <fweimer@redhat.com>
25005
25006         [BZ #22408]
25007         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25008         under the per-arena lock.
25009         * malloc/Makefile (tests): Add tst-malloc_info.
25010         (tst-malloc_info): Link with libpthread.
25011         * malloc/tst-malloc_info.c: New file.
25012
25013 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
25014
25015         [BZ #21660]
25016         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25017         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25018         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25019         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25020         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25021         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25022         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25023         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25024         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25025         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25026         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25027         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25028         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25029         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25030         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25031         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25032         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25033         (__floating_type): Likewise.
25034         (__real_integer_type): Likewise.
25035         (__complex_integer_type): Likewise.
25036         (__expr_is_real): Likewise.
25037         (__tgmath_real_type_sub): Likewise.
25038         (__tgmath_real_type): Likewise.
25039         (__tgmath_complex_type_sub): Likewise.
25040         (__tgmath_complex_type): Likewise.
25041         (__TGMATH_F128): Likewise.
25042         (__TGMATH_CF128): Likewise.
25043         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25044         new macros.
25045         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25046         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25047         Likewise.
25048         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25049         Likewise.
25050         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25051         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25052         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25053         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25054         Likewise.
25055         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25056         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25057         Likewise.
25058         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25059         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25060         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25061         Likewise.
25062         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25063         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25064         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25065         (cimag): Likewise.
25066         (creal): Likewise.
25067
25068 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
25069
25070         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25071         for stpncpy calls for GCC 8.
25072         (test_strncat): Disable -Wstringop-truncation warning for strncat
25073         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
25074         strncat call for GCC 7.
25075         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25076         calls for GCC 8.
25077         (test_memcmp): Use memcpy instead of strncpy for calls not copying
25078         trailing NUL.
25079
25080         * string/bug-strncat1.c: Include <libc-diag.h>.
25081         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25082
25083 2017-11-13  Claude Paroz  <claude@2xlibre.net>
25084
25085         [BZ #22387]
25086         * localedata/locales/aa_DJ: Improved readibility by replacing
25087         <Uxxxx> sequences in the ASCII printable range by their ASCII
25088         character equivalents.
25089         * localedata/locales/aa_ER: Likewise.
25090         * localedata/locales/aa_ER@saaho: Likewise.
25091         * localedata/locales/aa_ET: Likewise.
25092         * localedata/locales/af_ZA: Likewise.
25093         * localedata/locales/agr_PE: Likewise.
25094         * localedata/locales/ak_GH: Likewise.
25095         * localedata/locales/am_ET: Likewise.
25096         * localedata/locales/anp_IN: Likewise.
25097         * localedata/locales/ar_AE: Likewise.
25098         * localedata/locales/ar_BH: Likewise.
25099         * localedata/locales/ar_DZ: Likewise.
25100         * localedata/locales/ar_EG: Likewise.
25101         * localedata/locales/ar_IN: Likewise.
25102         * localedata/locales/ar_IQ: Likewise.
25103         * localedata/locales/ar_JO: Likewise.
25104         * localedata/locales/ar_KW: Likewise.
25105         * localedata/locales/ar_LB: Likewise.
25106         * localedata/locales/ar_LY: Likewise.
25107         * localedata/locales/ar_MA: Likewise.
25108         * localedata/locales/ar_OM: Likewise.
25109         * localedata/locales/ar_QA: Likewise.
25110         * localedata/locales/ar_SA: Likewise.
25111         * localedata/locales/ar_SD: Likewise.
25112         * localedata/locales/ar_SS: Likewise.
25113         * localedata/locales/ar_SY: Likewise.
25114         * localedata/locales/ar_TN: Likewise.
25115         * localedata/locales/ar_YE: Likewise.
25116         * localedata/locales/as_IN: Likewise.
25117         * localedata/locales/ast_ES: Likewise.
25118         * localedata/locales/ayc_PE: Likewise.
25119         * localedata/locales/az_AZ: Likewise.
25120         * localedata/locales/az_IR: Likewise.
25121         * localedata/locales/be_BY: Likewise.
25122         * localedata/locales/be_BY@latin: Likewise.
25123         * localedata/locales/bem_ZM: Likewise.
25124         * localedata/locales/ber_DZ: Likewise.
25125         * localedata/locales/ber_MA: Likewise.
25126         * localedata/locales/bg_BG: Likewise.
25127         * localedata/locales/bhb_IN: Likewise.
25128         * localedata/locales/bho_IN: Likewise.
25129         * localedata/locales/bi_VU: Likewise.
25130         * localedata/locales/bn_BD: Likewise.
25131         * localedata/locales/bn_IN: Likewise.
25132         * localedata/locales/bo_CN: Likewise.
25133         * localedata/locales/bo_IN: Likewise.
25134         * localedata/locales/br_FR: Likewise.
25135         * localedata/locales/brx_IN: Likewise.
25136         * localedata/locales/bs_BA: Likewise.
25137         * localedata/locales/byn_ER: Likewise.
25138         * localedata/locales/ca_AD: Likewise.
25139         * localedata/locales/ca_ES: Likewise.
25140         * localedata/locales/ca_FR: Likewise.
25141         * localedata/locales/ca_IT: Likewise.
25142         * localedata/locales/ce_RU: Likewise.
25143         * localedata/locales/chr_US: Likewise.
25144         * localedata/locales/cmn_TW: Likewise.
25145         * localedata/locales/crh_UA: Likewise.
25146         * localedata/locales/cs_CZ: Likewise.
25147         * localedata/locales/csb_PL: Likewise.
25148         * localedata/locales/cv_RU: Likewise.
25149         * localedata/locales/cy_GB: Likewise.
25150         * localedata/locales/da_DK: Likewise.
25151         * localedata/locales/de_AT: Likewise.
25152         * localedata/locales/de_BE: Likewise.
25153         * localedata/locales/de_CH: Likewise.
25154         * localedata/locales/de_DE: Likewise.
25155         * localedata/locales/de_IT: Likewise.
25156         * localedata/locales/de_LI: Likewise.
25157         * localedata/locales/de_LU: Likewise.
25158         * localedata/locales/doi_IN: Likewise.
25159         * localedata/locales/dv_MV: Likewise.
25160         * localedata/locales/dz_BT: Likewise.
25161         * localedata/locales/el_CY: Likewise.
25162         * localedata/locales/el_GR: Likewise.
25163         * localedata/locales/en_AG: Likewise.
25164         * localedata/locales/en_AU: Likewise.
25165         * localedata/locales/en_BW: Likewise.
25166         * localedata/locales/en_CA: Likewise.
25167         * localedata/locales/en_DK: Likewise.
25168         * localedata/locales/en_GB: Likewise.
25169         * localedata/locales/en_HK: Likewise.
25170         * localedata/locales/en_IE: Likewise.
25171         * localedata/locales/en_IL: Likewise.
25172         * localedata/locales/en_IN: Likewise.
25173         * localedata/locales/en_NG: Likewise.
25174         * localedata/locales/en_NZ: Likewise.
25175         * localedata/locales/en_PH: Likewise.
25176         * localedata/locales/en_SG: Likewise.
25177         * localedata/locales/en_US: Likewise.
25178         * localedata/locales/en_ZA: Likewise.
25179         * localedata/locales/en_ZM: Likewise.
25180         * localedata/locales/en_ZW: Likewise.
25181         * localedata/locales/eo: Likewise.
25182         * localedata/locales/es_AR: Likewise.
25183         * localedata/locales/es_BO: Likewise.
25184         * localedata/locales/es_CL: Likewise.
25185         * localedata/locales/es_CO: Likewise.
25186         * localedata/locales/es_CR: Likewise.
25187         * localedata/locales/es_CU: Likewise.
25188         * localedata/locales/es_DO: Likewise.
25189         * localedata/locales/es_EC: Likewise.
25190         * localedata/locales/es_ES: Likewise.
25191         * localedata/locales/es_GT: Likewise.
25192         * localedata/locales/es_HN: Likewise.
25193         * localedata/locales/es_MX: Likewise.
25194         * localedata/locales/es_NI: Likewise.
25195         * localedata/locales/es_PA: Likewise.
25196         * localedata/locales/es_PE: Likewise.
25197         * localedata/locales/es_PR: Likewise.
25198         * localedata/locales/es_PY: Likewise.
25199         * localedata/locales/es_SV: Likewise.
25200         * localedata/locales/es_US: Likewise.
25201         * localedata/locales/es_UY: Likewise.
25202         * localedata/locales/es_VE: Likewise.
25203         * localedata/locales/et_EE: Likewise.
25204         * localedata/locales/eu_ES: Likewise.
25205         * localedata/locales/eu_ES@euro: Likewise.
25206         * localedata/locales/fa_IR: Likewise.
25207         * localedata/locales/ff_SN: Likewise.
25208         * localedata/locales/fi_FI: Likewise.
25209         * localedata/locales/fil_PH: Likewise.
25210         * localedata/locales/fo_FO: Likewise.
25211         * localedata/locales/fr_BE: Likewise.
25212         * localedata/locales/fr_CA: Likewise.
25213         * localedata/locales/fr_CH: Likewise.
25214         * localedata/locales/fr_FR: Likewise.
25215         * localedata/locales/fr_LU: Likewise.
25216         * localedata/locales/fur_IT: Likewise.
25217         * localedata/locales/fy_DE: Likewise.
25218         * localedata/locales/fy_NL: Likewise.
25219         * localedata/locales/ga_IE: Likewise.
25220         * localedata/locales/gd_GB: Likewise.
25221         * localedata/locales/gez_ER: Likewise.
25222         * localedata/locales/gez_ET: Likewise.
25223         * localedata/locales/gl_ES: Likewise.
25224         * localedata/locales/gu_IN: Likewise.
25225         * localedata/locales/gv_GB: Likewise.
25226         * localedata/locales/ha_NG: Likewise.
25227         * localedata/locales/hak_TW: Likewise.
25228         * localedata/locales/he_IL: Likewise.
25229         * localedata/locales/hi_IN: Likewise.
25230         * localedata/locales/hif_FJ: Likewise.
25231         * localedata/locales/hne_IN: Likewise.
25232         * localedata/locales/hr_HR: Likewise.
25233         * localedata/locales/hsb_DE: Likewise.
25234         * localedata/locales/ht_HT: Likewise.
25235         * localedata/locales/hu_HU: Likewise.
25236         * localedata/locales/hy_AM: Likewise.
25237         * localedata/locales/i18n: Likewise.
25238         * localedata/locales/ia_FR: Likewise.
25239         * localedata/locales/id_ID: Likewise.
25240         * localedata/locales/ig_NG: Likewise.
25241         * localedata/locales/ik_CA: Likewise.
25242         * localedata/locales/is_IS: Likewise.
25243         * localedata/locales/it_CH: Likewise.
25244         * localedata/locales/it_IT: Likewise.
25245         * localedata/locales/iu_CA: Likewise.
25246         * localedata/locales/ja_JP: Likewise.
25247         * localedata/locales/ka_GE: Likewise.
25248         * localedata/locales/kk_KZ: Likewise.
25249         * localedata/locales/kl_GL: Likewise.
25250         * localedata/locales/kn_IN: Likewise.
25251         * localedata/locales/ko_KR: Likewise.
25252         * localedata/locales/kok_IN: Likewise.
25253         * localedata/locales/ks_IN: Likewise.
25254         * localedata/locales/ks_IN@devanagari: Likewise.
25255         * localedata/locales/ku_TR: Likewise.
25256         * localedata/locales/kw_GB: Likewise.
25257         * localedata/locales/ky_KG: Likewise.
25258         * localedata/locales/lb_LU: Likewise.
25259         * localedata/locales/lg_UG: Likewise.
25260         * localedata/locales/li_BE: Likewise.
25261         * localedata/locales/li_NL: Likewise.
25262         * localedata/locales/lij_IT: Likewise.
25263         * localedata/locales/ln_CD: Likewise.
25264         * localedata/locales/lo_LA: Likewise.
25265         * localedata/locales/lt_LT: Likewise.
25266         * localedata/locales/lv_LV: Likewise.
25267         * localedata/locales/lzh_TW: Likewise.
25268         * localedata/locales/mag_IN: Likewise.
25269         * localedata/locales/mai_IN: Likewise.
25270         * localedata/locales/mg_MG: Likewise.
25271         * localedata/locales/mhr_RU: Likewise.
25272         * localedata/locales/mi_NZ: Likewise.
25273         * localedata/locales/mk_MK: Likewise.
25274         * localedata/locales/ml_IN: Likewise.
25275         * localedata/locales/mn_MN: Likewise.
25276         * localedata/locales/mni_IN: Likewise.
25277         * localedata/locales/mr_IN: Likewise.
25278         * localedata/locales/ms_MY: Likewise.
25279         * localedata/locales/mt_MT: Likewise.
25280         * localedata/locales/my_MM: Likewise.
25281         * localedata/locales/nan_TW: Likewise.
25282         * localedata/locales/nan_TW@latin: Likewise.
25283         * localedata/locales/nb_NO: Likewise.
25284         * localedata/locales/nds_DE: Likewise.
25285         * localedata/locales/nds_NL: Likewise.
25286         * localedata/locales/ne_NP: Likewise.
25287         * localedata/locales/nhn_MX: Likewise.
25288         * localedata/locales/niu_NU: Likewise.
25289         * localedata/locales/niu_NZ: Likewise.
25290         * localedata/locales/nl_AW: Likewise.
25291         * localedata/locales/nl_BE: Likewise.
25292         * localedata/locales/nl_NL: Likewise.
25293         * localedata/locales/nn_NO: Likewise.
25294         * localedata/locales/nr_ZA: Likewise.
25295         * localedata/locales/nso_ZA: Likewise.
25296         * localedata/locales/oc_FR: Likewise.
25297         * localedata/locales/om_ET: Likewise.
25298         * localedata/locales/om_KE: Likewise.
25299         * localedata/locales/or_IN: Likewise.
25300         * localedata/locales/os_RU: Likewise.
25301         * localedata/locales/pa_IN: Likewise.
25302         * localedata/locales/pa_PK: Likewise.
25303         * localedata/locales/pap_AW: Likewise.
25304         * localedata/locales/pap_CW: Likewise.
25305         * localedata/locales/pl_PL: Likewise.
25306         * localedata/locales/ps_AF: Likewise.
25307         * localedata/locales/pt_BR: Likewise.
25308         * localedata/locales/pt_PT: Likewise.
25309         * localedata/locales/quz_PE: Likewise.
25310         * localedata/locales/raj_IN: Likewise.
25311         * localedata/locales/ro_RO: Likewise.
25312         * localedata/locales/ru_RU: Likewise.
25313         * localedata/locales/ru_UA: Likewise.
25314         * localedata/locales/rw_RW: Likewise.
25315         * localedata/locales/sa_IN: Likewise.
25316         * localedata/locales/sat_IN: Likewise.
25317         * localedata/locales/sc_IT: Likewise.
25318         * localedata/locales/sd_IN: Likewise.
25319         * localedata/locales/sd_IN@devanagari: Likewise.
25320         * localedata/locales/se_NO: Likewise.
25321         * localedata/locales/sgs_LT: Likewise.
25322         * localedata/locales/shs_CA: Likewise.
25323         * localedata/locales/si_LK: Likewise.
25324         * localedata/locales/sid_ET: Likewise.
25325         * localedata/locales/sk_SK: Likewise.
25326         * localedata/locales/sl_SI: Likewise.
25327         * localedata/locales/sm_WS: Likewise.
25328         * localedata/locales/so_DJ: Likewise.
25329         * localedata/locales/so_ET: Likewise.
25330         * localedata/locales/so_KE: Likewise.
25331         * localedata/locales/so_SO: Likewise.
25332         * localedata/locales/sq_AL: Likewise.
25333         * localedata/locales/sq_MK: Likewise.
25334         * localedata/locales/sr_ME: Likewise.
25335         * localedata/locales/sr_RS: Likewise.
25336         * localedata/locales/sr_RS@latin: Likewise.
25337         * localedata/locales/ss_ZA: Likewise.
25338         * localedata/locales/st_ZA: Likewise.
25339         * localedata/locales/sv_FI: Likewise.
25340         * localedata/locales/sv_SE: Likewise.
25341         * localedata/locales/sw_KE: Likewise.
25342         * localedata/locales/sw_TZ: Likewise.
25343         * localedata/locales/szl_PL: Likewise.
25344         * localedata/locales/ta_IN: Likewise.
25345         * localedata/locales/ta_LK: Likewise.
25346         * localedata/locales/tcy_IN: Likewise.
25347         * localedata/locales/te_IN: Likewise.
25348         * localedata/locales/tg_TJ: Likewise.
25349         * localedata/locales/th_TH: Likewise.
25350         * localedata/locales/the_NP: Likewise.
25351         * localedata/locales/ti_ER: Likewise.
25352         * localedata/locales/ti_ET: Likewise.
25353         * localedata/locales/tig_ER: Likewise.
25354         * localedata/locales/tk_TM: Likewise.
25355         * localedata/locales/tl_PH: Likewise.
25356         * localedata/locales/tn_ZA: Likewise.
25357         * localedata/locales/to_TO: Likewise.
25358         * localedata/locales/tpi_PG: Likewise.
25359         * localedata/locales/tr_CY: Likewise.
25360         * localedata/locales/tr_TR: Likewise.
25361         * localedata/locales/ts_ZA: Likewise.
25362         * localedata/locales/tt_RU: Likewise.
25363         * localedata/locales/tt_RU@iqtelif: Likewise.
25364         * localedata/locales/ug_CN: Likewise.
25365         * localedata/locales/uk_UA: Likewise.
25366         * localedata/locales/unm_US: Likewise.
25367         * localedata/locales/ur_IN: Likewise.
25368         * localedata/locales/ur_PK: Likewise.
25369         * localedata/locales/uz_UZ: Likewise.
25370         * localedata/locales/uz_UZ@cyrillic: Likewise.
25371         * localedata/locales/ve_ZA: Likewise.
25372         * localedata/locales/vi_VN: Likewise.
25373         * localedata/locales/wa_BE: Likewise.
25374         * localedata/locales/wae_CH: Likewise.
25375         * localedata/locales/wal_ET: Likewise.
25376         * localedata/locales/wo_SN: Likewise.
25377         * localedata/locales/xh_ZA: Likewise.
25378         * localedata/locales/yi_US: Likewise.
25379         * localedata/locales/yo_NG: Likewise.
25380         * localedata/locales/yue_HK: Likewise.
25381         * localedata/locales/yuw_PG: Likewise.
25382         * localedata/locales/zh_CN: Likewise.
25383         * localedata/locales/zh_HK: Likewise.
25384         * localedata/locales/zh_SG: Likewise.
25385         * localedata/locales/zh_TW: Likewise.
25386         * localedata/locales/zu_ZA: Likewise.
25387
25388 2017-11-13  Florian Weimer  <fweimer@redhat.com>
25389
25390         * support/next_to_fault.h, support/next_to_fault.c: New files.
25391         * support/Makefile (libsupport-routines): Add next_to_fault.
25392         * resolv/tst-inet_pton.c (struct next_to_fault)
25393         (next_to_fault_allocate, next_to_fault_free): Remove.
25394         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25395
25396 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
25397
25398         * elf/dl-support.c: Include <dl-procruntime.c>.
25399         * include/link.h: Include <link_map.h>.
25400         * sysdeps/generic/dl-procruntime.c: New file.
25401         * sysdeps/generic/link_map.h: Likewise.
25402         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25403         the writable ld.so namespace.
25404
25405 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25406
25407         timezone: pacify GCC -Wstringop-truncation
25408         Problem reported by Martin Sebor in:
25409         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25410         * timezone/zic.c (writezone): Use memcpy, not strncpy.
25411
25412 2017-11-12  Florian Weimer  <fweimer@redhat.com>
25413
25414         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25415         tst-xreadlink.
25416         (tests): Add tst-xreadlink.
25417         * support/support.h (xstrndup): Declare.
25418         * support/xunistd.h (xunlink, xreadlink): Declare.
25419         * support/temp_file.h (support_create_temp_directory): Declare.
25420         * support/temp_file.c (support_create_temp_directory): New function.
25421         * support/support_chroot.c (support_chroot_create): Use it.
25422         * support/xreadlink.c: New file.
25423         * support/xstrndup.c: Likewise.
25424         * support/xunlink.c: Likewise.
25425         * support/tst-xreadlink.c: Likewise.
25426
25427 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
25428
25429         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25430
25431 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25432
25433         [BZ #22409]
25434         [BZ #22412]
25435         * resolv/res_comp.c (printable_string, binary_hnok)
25436         (binary_leading_dash): New functions.
25437         (res_hnok): Reimplement using these functions and ns_name_pton.
25438         (res_ownok): Likewise.
25439         (res_mailok): Reimplement using printable_string, ns_name_pton and
25440         binary_hnok.
25441         (res_dnok): Reimplement using printable_string and ns_name_pton.
25442         * resolv/tst-res_hnok.c (tests): Add additional tests.
25443         (LETTERDIGITS, PRINTABLE): Define.
25444         (do_test): Adjust one_char results.
25445
25446 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25447
25448         [BZ #22413]
25449         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25450         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25451
25452 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25453
25454         * resolv/tst-ns_name_pton.c: New file.
25455         * resolv/Makefile (tests): Add tst-ns_name_pton.
25456         (tst-ns_name_pton): Link against libresolv.
25457
25458 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25459
25460         * resolv/tst-res_hnok.c: New file.
25461         * resolv/Makefile (tests): Add tst-res_hnok.
25462         (tst-res_hnok): Link against libresolv.
25463
25464 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25465
25466         * resolv/tst-resolv-network.c: Use test framework instead explicit
25467         main function.
25468
25469 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25470
25471         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25472         <jmp_buf-macros.h>.
25473         [!_ISOMAC] (STR_HELPER): New.
25474         [!_ISOMAC] (STR): Likewise.
25475         [!_ISOMAC] (TEST_SIZE): Likewise.
25476         [!_ISOMAC] (TEST_ALIGN): Likewise.
25477         [!_ISOMAC] (TEST_OFFSET): Likewise.
25478         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25479         field offsets of jmp_buf as well as sigjmp_buf.
25480         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25481         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25482         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25483         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25484         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25485         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25486         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25487         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25488         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25489         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25490         Likewise.
25491         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25492         Likewise.
25493         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25495         Likewise.
25496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25497         Likewise.
25498         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25499         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25500         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25501         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25502         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25503         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25504         Likewise.
25505         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25506         Likewise.
25507         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25508         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25509         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25510
25511 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
25512
25513         * include/float.h
25514         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25515         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25516         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25517         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25518         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25519         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25520         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25521         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25522         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25523         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25524         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25525         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25526         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25527         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25528         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25529         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25530         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25531         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25532         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25533         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25534         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25535         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25536         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25537         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25538         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25539         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25540         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25541         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25542         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25543         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25544         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25545         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25546         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25547         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25548         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25549         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25550         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25551         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25552         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25553         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25554         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25555         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25556         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25557         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25558         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25559         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25560         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25561         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25562         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25563         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25564         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25565         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25566         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25567         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25568         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25569         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25570         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25571         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25572         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25573         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25574         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25575         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25576         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25577         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25578         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25579         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25580         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25581         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25582         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25583         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25584         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25585         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25586         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25587         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25588         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25589         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25590         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25591         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25592         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25593         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25594         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25595         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25596         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25597         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25598         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25599         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25600         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25601         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25602
25603         * stdlib/tst-strtod.h (F16): New macro.
25604         (F32): Likewise.
25605         (F64): Likewise.
25606         (F32X): Likewise.
25607         (F64X): Likewise.
25608         (F128X): Likewise.
25609         (IF_FLOAT16): Likewise.
25610         (IF_FLOAT32): Likewise.
25611         (IF_FLOAT64): Likewise.
25612         (IF_FLOAT32X): Likewise.
25613         (IF_FLOAT64X): Likewise.
25614         (IF_FLOAT128X): Likewise.
25615         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25616         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25617         (STRTOD_TEST_FOREACH): Likewise.
25618         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25619         (CHOOSE_f64): Likewise.
25620         (CHOOSE_f32x): Likewise.
25621         (CHOOSE_f64x): Likewise.
25622
25623 2017-11-07  Andreas Schwab  <schwab@suse.de>
25624
25625         * nptl/Makefile (tests-internal): Remove tst-typesizes.
25626
25627 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
25628
25629         [BZ #22403]
25630         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25631         to be escaped.
25632         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25633         to be escaped.
25634
25635 2017-11-07  Claude Paroz  <claude@2xlibre.net>
25636
25637         [BZ #22403]
25638         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25639         to be escaped.
25640         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25641         to be escaped.
25642         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25643         to be escaped.
25644
25645 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25646
25647         [BZ #22298]
25648         * nptl/allocatestack.c (allocate_stack): Check if
25649         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25650         __PTHREAD_MUTEX_HAVE_PREV is defined.
25651         * nptl/descr.h (pthread): Likewise.
25652         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25653         Likewise.
25654         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25655         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25656         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25657         * sysdeps/nptl/bits/thread-shared-types.h
25658         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25659         defines.
25660         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25661         of __WORDSIZE for internal layout.
25662         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25663         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25664         instead of __WORDSIZE whether to use an union for __spins and __list
25665         fields.
25666         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25667         case.
25668         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25669         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25670         defines.
25671         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25672         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25673         Likewise.
25674         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25675         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25676         Likewise.
25677         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25678         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25679         Likewise.
25680         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25681         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25682         Likewise.
25683         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25684         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25685         Likewise.
25686         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25687         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25688         Likewise.
25689         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25690         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25691         Likewise.
25692         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25693         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25694         Likewise.
25695         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25696         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25697         Likewise.
25698         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25699         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25700         Likewise.
25701         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25702         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25703         Likewise.
25704         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25705         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25706         Likewise.
25707         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25708         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25709         Likewise.
25710         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25711         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25712         Likewise.
25713
25714         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25715         New macros.
25716         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25717         checks for expected input type size.
25718         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25719         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25720         Likewise.
25721         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25722         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25723         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25724         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25725         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25726         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25727         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25728         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25729         superflous runtime assert check.
25730         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25731         Likewise.
25732         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25733         Likewise.
25734         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25735         Likewise.
25736         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25737         Likewise.
25738         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25739         Likewise.
25740         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25741         Likewise.
25742         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25743         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25744         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25745         Likewise.
25746         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25747         Likewise.
25748         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25749         Likewise.
25750         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25751         Likewise.
25752         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25753         Likewise.
25754         * nptl/pthread_attr_setinheritsched.c
25755         (__pthread_attr_setinheritsched): Likewise.
25756         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25757         Likewise.
25758         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25759         Likewise.
25760         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25761         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25762         __old_pthread_attr_setstack): Likewise.
25763         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25764         Likewise.
25765         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25766         Likewise.
25767         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25768         Likewise.
25769         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25770         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25771         Likewise.
25772         * nptl/tst-typesizes.c: Remove file.
25773
25774         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25775         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25776         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25777         checks for internal pthread_mutex_t offsets.
25778         * sysdeps/aarch64/nptl/pthread-offsets.h
25779         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25780         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25781         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25782         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25783         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25784         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25785         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25786         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25787         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25788         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25789         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25790         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25791         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25792         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25793         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25794         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25795         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25796         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25797
25798 2017-11-07  Florian Weimer  <fweimer@redhat.com>
25799
25800         * bits/mman-linux.h: Move ...
25801         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
25802         comment.
25803         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25804         outdated comment.
25805
25806 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25807
25808         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25809         Redefine STRNLEN as __strnlen_power8.
25810
25811 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25812
25813         * signal/sighold.c (sighold): Optimize implementation.
25814
25815         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25816         __NR_rt_sigqueueinfo.
25817
25818         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25819         __sigtimedwait.
25820         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25821         assume __NR_rt_sigtimedwait.
25822         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25823         and add LIBC_CANCEL_HANDLED for cancellation marking.
25824         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25825
25826         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25827         (sysdeps_routines): Add memchr_noneon.
25828         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25829         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25830         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25831         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25832         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25833         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25834         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25835
25836         * sysdeps/arm/arm-ifunc.h: New file.
25837         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25838         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25839         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25840         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25841         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25842         (__memcpy_neon): Avoid create hidden alias.
25843         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25844         (__memcpy_vfp): Likewise.
25845         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25846         (sysdep_routines): Add memcpy_arm.
25847         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25848
25849 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
25850
25851         [BZ #22362]
25852         * Makerules (make-link-multidir): New.
25853         * config.make.in (multidir): New.
25854         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
25855         * configure: Regenerated.
25856         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25857         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25858         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25859         New target.
25860
25861 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
25862
25863         [BZ #22402]
25864         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25865         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25866
25867 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
25868
25869         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25870         to be escaped.
25871
25872 2017-11-04  Florian Weimer  <fweimer@redhat.com>
25873
25874         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25875
25876 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25877
25878         * math/math.h [__HAVE_DISTINCT_FLOAT16
25879         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25880         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25881         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25882         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25883         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25884         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25885         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25886         (__MATH_TG_F32): New macro.
25887         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25888         (__MATH_TG_F64X): Likewise.
25889         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25890         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25891
25892 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
25893
25894         * po/de.po: Update translations.
25895         * po/ru.po: Likewise.
25896
25897 2017-11-03  Florian Weimer  <fweimer@redhat.com>
25898
25899         * manual/filesys.texi (Hard Links): Document linkat.
25900
25901 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25902
25903         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25904         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25905         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25906         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25907         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25908         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25909         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25910         the same as _Float128.
25911         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25912         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25913         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25914
25915         * stdlib/stdlib.h
25916         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25917         Declare.
25918         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25919         Likewise.
25920         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25921         Likewise.
25922         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25923         (strtof32x): Likewise.
25924         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25925         (strtof64x): Likewise.
25926         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25927         (strtof128x): Likewise.
25928         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25929         (strfromf16): Likewise.
25930         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25931         (strfromf32): Likewise.
25932         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25933         (strfromf64): Likewise.
25934         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25935         (strfromf32x): Likewise.
25936         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25937         (strfromf64x): Likewise.
25938         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25939         (strfromf128x): Likewise.
25940         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25941         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25942         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25943         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25944         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25945         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25946
25947 2017-11-03  Richard Henderson  <rth@twiddle.net>
25948
25949         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25950
25951 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25952
25953         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25954
25955 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25956
25957         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25958         DT_TLSDESC_GOT initialization.
25959         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25960         (_dl_tlsdesc_resolve_hold): Likewise.
25961         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25962         (_dl_tlsdesc_resolve_hold): Likewise.
25963         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25964         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25965
25966 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25967
25968         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25969
25970 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25971
25972         [BZ #18572]
25973         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25974         non-lazily for R_ARM_TLS_DESC.
25975
25976 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25977
25978         [BZ #17078]
25979         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25980         R_ARM_TLS_DESC case.
25981         (elf_machine_lazy_rel): Remove the prelink check.
25982
25983 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25984
25985         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25986         DT_TLSDESC_GOT initialization.
25987         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25988         (_dl_tlsdesc_resolve_rela): Likewise.
25989         (_dl_tlsdesc_resolve_hold): Likewise.
25990         (_dl_tlsdesc_undefweak): Remove ldar.
25991         (_dl_tlsdesc_dynamic): Likewise.
25992         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25993         (_dl_tlsdesc_resolve_rela): Likewise.
25994         (_dl_tlsdesc_resolve_hold): Likewise.
25995         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25996         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25997         (_dl_tlsdesc_resolve_rela): Likewise.
25998         (_dl_tlsdesc_resolve_hold): Likewise.
25999
26000 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26001
26002         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26003         binding and initialization non-lazily for R_AARCH64_TLSDESC.
26004
26005 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26006
26007         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26008         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26009
26010 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
26011
26012         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26013         Declare.
26014         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26015         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26016         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26017         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26018         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26019         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26020         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26021         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26022         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26023         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26024         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26025
26026 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
26027
26028         [BZ #22382]
26029         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26030         * localedata/locales/tpi_PG: Add standard header.
26031
26032 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26033
26034         test-errno-linux: quotactl can fail with EPERM in containers.
26035         * sysdeps/unix/sysv/linux/test-errno-linux.c
26036         (LIST, LIST_FORWARD): New macros.
26037         (check_error_in_list): New function.
26038         (test_wrp_rv): Accept list of permitted error codes.
26039         (test_wrp_rv2): Remove.
26040         (test_wrp): Call test_wrp_rv with list of error codes.
26041         (test_wrp2): Accept list of error codes.
26042         (do_test): Adjust.  Allow EPERM for quotactl.
26043
26044 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26045
26046         * stdio-common/bug16.c (do_test): Use array_length.
26047         * stdio-common/errlist.c (_sys_nerr): Likewise.
26048         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26049         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26050         * stdio-common/psiginfo.c (psiginfo): Use array_length.
26051         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26052         (do_test): Use array_length.
26053         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26054         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26055         * stdio-common/tst-printf-round.c (do_test): Likewise.
26056         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26057         (CHECK): Use array_length.
26058         * stdio-common/tstdiomisc.c (t3, F): Likewise.
26059         * stdio-common/tstscanf.c (main): Likewise.
26060         * stdio-common/vfprintf.c (process_string_arg): Likewise.
26061
26062 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26063
26064         Add array_length and array_end macros.
26065         * include/array_length.h: New file.
26066
26067 2017-11-02  Florian Weimer  <fweimer@redhat.com>
26068
26069         [BZ #22332]
26070         * posix/tst-glob-tilde.c (do_noescape): New variable.
26071         (one_test): Process it.
26072         (do_test): Set do_noescape.  Add unescaping test case.
26073
26074 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
26075
26076         * math/complex.h
26077         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26078         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26079         with appropriate macros defined and undefined.
26080         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26081         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26082         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26083         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26084         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26085         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26086         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26087         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26088         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26089         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26090
26091         * math/complex.h
26092         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26093         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26094         that for long double.  Do not condition define and undefine of
26095         _Mdouble_complex_ on [__CFLOAT128].
26096
26097 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26098
26099         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26100         of <sysdeps/generic/sysdep.h>.
26101         (ALIGNARG): Removed.
26102         (ASM_SIZE_DIRECTIVE): Likewise.
26103         (ENTRY): Likewise.
26104         (END): Likewise.
26105         (ENTRY_CHK): Likewise.
26106         (END_CHK): Likewise.
26107         (syscall_error): Likewise.
26108         (mcount): Likewise.
26109         (PSEUDO_END): Likewise.
26110         (L): Likewise.
26111         (atom_text_section): Likewise.
26112         * sysdeps/x86/sysdep.h: New file.
26113         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26114         of <sysdeps/generic/sysdep.h>.
26115         (ALIGNARG): Removed.
26116         (ASM_SIZE_DIRECTIVE): Likewise.
26117         (ENTRY): Likewise.
26118         (END): Likewise.
26119         (ENTRY_CHK): Likewise.
26120         (END_CHK): Likewise.
26121         (syscall_error): Likewise.
26122         (mcount): Likewise.
26123         (PSEUDO_END): Likewise.
26124         (L): Likewise.
26125         (atom_text_section): Likewise.
26126
26127 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
26128
26129         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26130         category of LC_CTYPE set to "i18n:2012".
26131         * localedata/locales/i18n_ctype: Regenerate.
26132
26133 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
26134
26135         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26136         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26137         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26138         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26139
26140         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26141         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26142         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26143         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26144
26145 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
26146
26147         * math/complex.h
26148         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26149         New macro.
26150         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26151         Likewise.
26152         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26153         Likewise.
26154         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26155         (CMPLXF32X): Likewise.
26156         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26157         (CMPLXF64X): Likewise.
26158         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26159         (CMPLXF128X): Likewise.
26160
26161         * math/math.h
26162         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26163         (__MATH_EVAL_FMT2): Define to add 0.0f.
26164
26165 2017-10-31  Alan Modra  <amodra@gmail.com>
26166
26167         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26168         include sysdep.h.
26169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26175         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26183         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26184         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26185         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26186         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26187         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26188         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26189         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26190         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26191         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26192         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26193         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26194         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26195         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26196         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26197         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26198         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26199         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26200         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26201         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26202         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26203         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26204         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26205         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26206         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26207         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26208         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26209         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26210         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26211         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26212         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26213         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26214         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26215         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26216         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26217         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26218         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26219         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26220         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26221         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26222         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26223         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26224         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26225         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26226         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26227         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26228         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26229         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26230         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26231         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26232         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26233         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26234         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26235         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26236         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26237         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26238
26239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26240         include sysdep.h and math_ldbl_opt.h.
26241
26242         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26243         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
26244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26263         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26265         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26268
26269 2017-10-31  Alan Modra  <amodra@gmail.com>
26270
26271         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26272         string/strncase_l.c, not string/strncase.c.
26273         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26274         (libc_hidden_def): Redefine.
26275
26276 2017-10-31  Alan Modra  <amodra@gmail.com>
26277
26278         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26279         (__STRCMP, STRCMP, __strcasecmp_l): Define.
26280         (__strcasecmp): Don't define.
26281
26282 2017-10-31  Alan Modra  <amodra@gmail.com>
26283
26284         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26285         IS_IN (libc).
26286         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26287         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26288         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26289
26290 2017-10-31  Alan Modra  <amodra@gmail.com>
26291
26292         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26293         USE_AS_STPNCPY.
26294
26295 2017-10-31  Alan Modra  <amodra@gmail.com>
26296
26297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26298         Redefine only when SHARED.
26299
26300 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26301
26302         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26303         Include <bits/math-finite.h> with appropriate macros defined and
26304         undefined.
26305         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26306         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26307         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26308         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26309         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26310
26311         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26312         [!_Mlong_double_] (_Mlong_double_): Likewise.
26313         [!_Mfloat16_] (_Mfloat16_): Likewise.
26314         [!_Mfloat32_] (_Mfloat32_): Likewise.
26315         [!_Mfloat64_] (_Mfloat64_): Likewise.
26316         [!_Mfloat128_] (_Mfloat128_): Likewise.
26317         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26318         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26319         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26320         (_Mdouble_): Define without indirection through those macros.
26321         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26322         [!_Mfloat128_] (_Mfloat128_): Likewise.
26323         [_Mlong_double_] (_Mlong_double_): Likewise.
26324         (_Mdouble_): Define without indirection through those macros.
26325         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26326         not add -D_Mlong_double_=double.
26327         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26328         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26329
26330 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26331
26332         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26333
26334 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26335
26336         * sysdeps/x86/libc-start.c: Reformat.
26337
26338 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26339
26340         [BZ #22353]
26341         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26342         (1): Renamed to ...
26343         (L(Src0)): This.
26344         (L(Src1)): New.
26345         (L(Src2)): Likewise.
26346         (L(1)): Renamed to ...
26347         (L(Src3)): This.
26348
26349 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26350
26351         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26352         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26353         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26354         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26355         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26356         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26357         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26358         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26359         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26360         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26361         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26362         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26363         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26364         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26365         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26366         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26367         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26368         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26369         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26370         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26371         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26372         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26373         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26374         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26375         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26376         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26377         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26378         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26379         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26380         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26381         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26382         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26383         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26384         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26385         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26386         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26387         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26388         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26389         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26390         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26391         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26392         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26393         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26394         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26395         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26396         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26397         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26398         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26399         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26400         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26401         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26402         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26403         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26404         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26405         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26406         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26407         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26408         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26409         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26410         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26411         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26412         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26413         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26414         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26415         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26416         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26417
26418 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26419
26420         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26421         always defined.
26422         * io/tst-mkdirat.c (do_test): Likewise.
26423         * io/tst-mkfifoat.c (do_test): Likewise.
26424         * io/tst-mknodat.c (do_test): Likewise.
26425         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26426         * locale/programs/locale.c (select_dirs): Likewise.
26427         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26428         * posix/bug-glob2.c (my_readdir): Likewise.
26429         * posix/tst-dir.c (main): Likewise.
26430         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26431         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26432
26433 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26434
26435         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26436         just __USE_GNU.
26437
26438 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26439
26440         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26441         Convert to support/test-driver.c.
26442         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26443         New macro parameters.
26444         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
26445         * posix/tst-gnuglob.c: New file.
26446         * posix/tst-gnuglob64.c: Likewise.
26447         * posix/Makefile (tests): Add tst-gnuglob64.
26448
26449 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
26450
26451         [BZ #19485]
26452         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26453         and use a better translation for March in “mon”.
26454         * localedata/locales/csb_PL: Use more ASCII to improve the
26455         readability of the source.
26456
26457 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
26458
26459         [BZ #13953]
26460         * localedata/locales/km_KH: Use ASCII as much
26461         as possible for better readability of the source and
26462         remove useless comments.
26463         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26464         was commented out and apparently wrong anyway because it was
26465         using Lao characters. If Buddhist era should be used
26466         for km_KH, a native speaker should write the correct formaat
26467         for Khmer.
26468         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26469         (According to CLDR, the first weekday for Cambodia is Sunday).
26470         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26471         (These were using Lao characters which must be wrong. If we get
26472         the correct data from a native speaker, we could add it back, until
26473         then it is better not to have name_mr and name_mrs at all than
26474         having it wrong).
26475
26476 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
26477
26478         * locale/loadlocale.c: Correct size of
26479         _nl_value_type_LC_<category> arrays.
26480
26481 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
26482
26483         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26484         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26485         with appropriate macros defined and undefined.
26486         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26487         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26488         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26489         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26490         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26491
26492 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
26493
26494         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26495         "-O2 -march=i586".
26496
26497 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26498
26499         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26500         with lowercase letters to make it agree with CLDR.
26501
26502 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26503
26504         [BZ #15260]
26505         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26506         first letters of yesstr and nostr in yesexpr and noexpr,
26507         not for the full words.
26508         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26509         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26510         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26511         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26512         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26513         first letters of yesstr and nostr in yesexpr and noexpr,
26514         until now only English was matched in yesexpr and noexpr.
26515         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26516         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26517         fil but not for tl. As tl and fil are very similar, using fil
26518         is probably better than using English.
26519
26520 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
26521
26522         [BZ #21706]
26523         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26524         in yesstr and nostr.
26525
26526 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
26527
26528         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26529         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26530         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26531         Likewise.
26532         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26533         Likewise.
26534         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26535         Likewise.
26536         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26537         Likewise.
26538         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26539         (SNANF128X): Likewise.
26540
26541         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26542         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26543         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26544         (HUGE_VAL_F32): Likewise.
26545         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26546         (HUGE_VAL_F64): Likewise.
26547         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26548         (HUGE_VAL_F32X): Likewise.
26549         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26550         (HUGE_VAL_F64X): Likewise.
26551         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26552         (HUGE_VAL_F128X): Likewise.
26553
26554 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26555
26556         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26557         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26558         for the br_FR locale.
26559
26560 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26561
26562         [BZ #21706]
26563         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26564
26565 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
26566
26567         * locale/programs/record-status.h: Define globals, and function
26568         prototypes. Move function bodies...
26569         * locale/programs/record-status.c: ... to here. New file.
26570         * iconv/Makefile (iconv_prog-modules): Add record-status.
26571         * locale/Makefile (lib-modules): Likewise.
26572         * iconv/iconv_prog.c: Remove verbose.
26573         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26574         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26575         record a warning about ASCII compatibility.
26576         * locale/programs/ld-monetary.c (monetary_finish): If
26577         warn_int_curr_symbol is true then record a warning about the symbol
26578         not being in our ISO 4217 list.
26579         * locale/programs/locale.c: Include record-status.h. Remove verbose.
26580         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26581         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26582         (OPT_NO_WARN): Define.
26583         (OPT_WARN): Define.
26584         (options): Add entry for --no-warnings, and --warnings.
26585         (set_warnings): New function to enable/disable warnings.
26586         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26587         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26588         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26589         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26590         Pass flags to generate_locale.
26591         (generate_locale): Accept new flag argument and pass it to localedef
26592         invocation.
26593         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26594         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26595
26596         * localedata/Makefile (test-input-data): Use full file name.
26597         * localedata/da_DK.in: Rename to...
26598         * localedata/da_DK.ISO-8859-1.in: ...this.
26599         * localedata/de_DE.in: Rename to...
26600         * localedata/de_DE.ISO-8859-1.in: ...this.
26601         * localedata/en_US.in: Rename to...
26602         * localedata/en_US.ISO-8859-1.in: ...this.
26603         * localedata/fr_FR.in: Rename to...
26604         * localedata/fr_FR.UTF-8.in: ... this.
26605         * localedata/hr_HR.in: Rename to...
26606         * localedata/hr_HR.ISO-8859-2.in: ...this.
26607         * localedata/hu_HU.in: Rename to...
26608         * localedata/hu_HU.UTF-8.in: ...this.
26609         * localedata/si_LK.in: Rename to...
26610         * localedata/si_LK.UTF-8.in: ...this.
26611         * localedata/sv_SE.in: Rename to...
26612         * localedata/sv_SE.ISO-8859-1.in: ...this.
26613         * localedata/tr_TR.in: Rename to...
26614         * localedata/tr_TR.UTF-8.in: ...this.
26615         * localedata/uk_UA.in: Rename to...
26616         * localedata/uk_UA.UTF-8.in: ...this.
26617         * localedata/sort-test.sh: Test file is locale name with the
26618         suffix.
26619
26620         * localedata/unicode-gen/Makefile (check_i18n): Rename to
26621         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26622         file.
26623         * localedata/locales/i18n_ctype: Regenerate.
26624         * localedata/locales/tr_TR: Likewise.
26625         * localedata/locales/translit_circle: Likewise.
26626         * localedata/locales/translit_cjk_compat: Likewise.
26627         * localedata/locales/translit_combining: Likewise.
26628         * localedata/locales/translit_compat: Likewise.
26629         * localedata/locales/translit_font: Likewise.
26630         * localedata/locales/translit_fraction: Likewise.
26631
26632 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26633
26634         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26635         lxvd2x/stxvd2x with lvx/stvx.
26636         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26637
26638 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
26639
26640         * include/alloc_buffer.h: Replace "if if " with "if " in
26641         comments.
26642         * sysdeps/mips/memcpy.S: Likkewise.
26643         * sysdeps/mips/memset.S: Likewise.
26644         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26645         Likewise.
26646         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26647         Likewise.
26648         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26649         Likewise.
26650
26651 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26652
26653         [BZ #15261]
26654         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26655         yesexpr and noexpr.
26656         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26657         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26658         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26659         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26660         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26661         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26662         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26663
26664 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26665
26666         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26667         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26668         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26669         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26670         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26671         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26672         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26673         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26674         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26675         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26676         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26677         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26678
26679 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26680
26681         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26682         as possible for better readability of the source.
26683         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26684         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26685         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26686         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26687         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26688         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26689         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26690         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26691         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26692         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26693         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26694         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26695         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26696         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26697         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26698         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26699         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26700         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26701         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26702         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26703         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26704         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26705         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26706         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26707         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26708         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26709         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26710         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26711         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26712         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26713         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26714         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26715         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26716         * localedata/locales/en_US (LC_MESSAGES): Likewise.
26717         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26718         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26719         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26720         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26721         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26722         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26723         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26724         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26725         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26726         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26727         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26728         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26729         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26730         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26731         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26732         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26733         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26734         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26735         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26736         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26737         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26738         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26739         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26740         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26741         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26742         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26743         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26744         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26745         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26746         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26747         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26748         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26749         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26750         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26751         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26752         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26753         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26754         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26755         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26756         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26757         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26758         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26759         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26760         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26761         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26762         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26763         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26764         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26765         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26766         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26767         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26768         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26769         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26770         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26771         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26772         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26773         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26774         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26775         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26776         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26777         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26778         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26779         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26780         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26781         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26782         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26783         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26784         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26785         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26786         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26787         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26788         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26789         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26790         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26791         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26792         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26793         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26794         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26795         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26796         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26797         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26798         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26799         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26800         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26801         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26802         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26803         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26804         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26805         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26806         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26807         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26808         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26809         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26810         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26811         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26812         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26813         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26814         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26815         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26816         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26817         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26818         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26819         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26820         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26821         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26822         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26823         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26824         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26825         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26826         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26827         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26828         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26829         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26830         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26831         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26832         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26833         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26834         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26835         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26836         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26837         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26838         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26839         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26840         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26841         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26842         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26843         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26844         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26845         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26846         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26847         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26848         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26849         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26850         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26851         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26852         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26853         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26854         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26855         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26856         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26857
26858 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26859
26860         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26861         (Use first letters of yesstr and nostr correctly instead of using
26862         full words).
26863
26864 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26865
26866         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26867         (Use first letters of yesstr and nostr correctly).
26868
26869 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26870
26871         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26872         also check for the first characters of yesstr and nostr.
26873         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26874         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26875
26876 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26877
26878         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26879         also check for Chinese characters.
26880
26881 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26882
26883         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26884         match also for the contents of yesstr and nostr. As the first letter
26885         of yesstr and nostr is equal, checking only for the first letter
26886         is not enough.
26887
26888 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26889
26890         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26891         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
26892
26893 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26894
26895         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26896         of main contributor.
26897
26898 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26899
26900         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26901         instead of using English.
26902
26903 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26904
26905         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26906         by including the first letters of nostr and yesexpr in the regexp.
26907         Also make it more readable by using ASCII where possible.
26908
26909 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26910
26911         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26912         the first letter of nostr in the regexp. It agrees with CLDR now.
26913         Also make it more readable by using ASCII where possible.
26914
26915 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26916
26917         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26918         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26919         these strings contain a U+17D6 (which somewhat looks like a colon)
26920         instead of a real colon to separate the full words for “yes”
26921         and “no” from the single letter responses.
26922
26923 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26924
26925         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26926         it agree with CLDR (include the first letter of yesstr).
26927         Also make it more readable by using ASCII where possible.
26928
26929 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26930
26931         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26932         and improve yesexpr and noexpr. The yesstr and nostr apparently
26933         came from CLDR. And CLDR has a bug there: these strings contain
26934         a U+0903 (which looks like a colon) instead of a real colon
26935         to separate the full words for “yes” and “no” from the single
26936         letter responses.
26937
26938 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26939
26940         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26941         letters of the full yesstr and nostr in yesexpr and noexpr.
26942
26943 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26944
26945         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26946         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26947         * localedata/locales/an_ES: Make source more readable by using ASCII
26948         where possible.
26949
26950 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26951
26952         [BZ #20952]
26953         * localedata/locales/yuw_PG: New file.
26954         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26955         * locale/iso-639.def: Add Yau (Uruwa).
26956
26957 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26958
26959         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26960
26961 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26962
26963         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26964         (__libc_realloc): Likewise.
26965         (_mid_memalign): Likewise.
26966         (__libc_calloc): Likewise.
26967
26968 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
26969
26970         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26971         by adding the generic +1 and -0 as in all other locales.
26972         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26973         day names and make it more readable by using ASCII where possible.
26974
26975 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
26976
26977         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26978         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26979
26980 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26981
26982         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26983         WNOHANG in waitpid call.
26984
26985 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26986
26987         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26988         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26989
26990         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26991         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26992         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26993         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26994         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26995         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26996         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26997         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26998         variables.
26999
27000 2017-10-23  Michael Collison  <michael.collison@arm.com>
27001
27002         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27003         with __builtin_sqrt.
27004         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27005         with __builtin_sqrtf.
27006         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27007         with __builtin_ceil.
27008         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27009         with __builtin_ceilf.
27010         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27011         with __builtin_floor.
27012         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27013         with __builtin_floorf.
27014         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27015         with __builtin_fma.
27016         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27017         with __builtin_fmaf.
27018         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27019         with __builtin_fmax.
27020         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27021         with __builtin_fmaxf.
27022         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27023         with __builtin_fmin.
27024         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27025         with __builtin_fminf.
27026         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27027         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27028         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27029         with builtin_rint and conversion to int.
27030         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27031         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27032         with builtin_llround.
27033         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27034         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27035         with builtin_rint and conversion to long int.
27036         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27037         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27038         with builtin_lround.
27039         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27040         with builtin_lroundf.
27041         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27042         statements with __builtin_nearbyint.
27043         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27044         statements with __builtin_nearbyintf.
27045         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27046         with __builtin_rint.
27047         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27048         with __builtin_rintf.
27049         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27050         with __builtin_round.
27051         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27052         with __builtin_roundf.
27053         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27054         with __builtin_trunc.
27055         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27056         with __builtin_truncf.
27057         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27058         and s_l[l]round[f].c too.
27059
27060 2017-10-23  Alan Modra  <amodra@gmail.com>
27061
27062         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27063         Adjust stack after restoring regs.  Add missing LR cfi_restore.
27064
27065 2017-10-23  Alan Modra  <amodra@gmail.com>
27066
27067         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27068         Move LR save and frame setup/teardown and LR restore to
27069         immediately around memset call.  Provide cfi.
27070
27071 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27072
27073         * sysdeps/i386/fpu/e_powf.S: Removed.
27074         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27075         * sysdeps/i386/fpu/w_powf.c: Likewise.
27076         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27077         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27078         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27079         Add e_powf-sse2.
27080         (CFLAGS-e_powf-sse2.c): New.
27081         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27082         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27083
27084 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27085
27086         * sysdeps/i386/fpu/e_log2f.S: Removed.
27087         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27088         * sysdeps/i386/fpu/w_log2f.c: Likewise.
27089         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27090         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27091         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27092         Add e_log2f-sse2.
27093         (CFLAGS-e_log2f-sse2.c): New.
27094         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27095         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27096
27097 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27098
27099         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27100         Add e_powf-fma.
27101         (CFLAGS-e_powf-fma.c): New.
27102         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27103         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27104
27105 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27106
27107         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27108         Add e_log2f-fma.
27109         (CFLAGS-e_log2f-fma.c): New.
27110         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27111         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27112
27113 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27114
27115         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27116         Add e_logf-fma.
27117         (CFLAGS-e_logf-fma.c): New.
27118         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27119         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27120
27121 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27122
27123         * sysdeps/i386/fpu/e_logf.S: Removed.
27124         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27125         * sysdeps/i386/fpu/w_logf.c: Likewise.
27126         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27127         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27128         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27129         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27130         Add e_logf-sse2.
27131         (CFLAGS-e_logf-sse2.c): New.
27132         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27133         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27134
27135 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27136
27137         * sysdeps/i386/fpu/e_exp2f.S: Removed.
27138         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27139         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27140         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27141         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27142         Add e_exp2f-sse2.
27143         (CFLAGS-e_exp2f-sse2.c): New.
27144         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27145         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27146
27147 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27148
27149         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27150         Add e_exp2f-fma.
27151         (CFLAGS-e_exp2f-fma.c): New.
27152         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27153         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27154
27155 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27156
27157         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27158         * sysdeps/i386/fpu/e_expf.S: Likewise.
27159         * sysdeps/i386/fpu/math_errf.c: Likewise.
27160         * sysdeps/i386/fpu/w_expf.c: Likewise.
27161         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27162         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27163         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27164         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27165         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27166         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27167         Remove e_expf-ia32.
27168         (CFLAGS-e_expf-sse2.c): New.
27169         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27170         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27171
27172 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
27173
27174         * sysdeps/x86_64/fpu/e_expf.S: Removed.
27175         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27176         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27177         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27178         e_expf.c.
27179         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27180         New.
27181         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27182         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27183         Renamed to ...
27184         (__redirect_expf): This.
27185         (SYMBOL_NAME): Changed to expf.
27186         (__ieee754_expf): Renamed to ...
27187         (__expf): This.
27188         (__GI___expf): This.
27189         (__ieee754_expf): Add strong_alias.
27190         (__expf_finite): Likewise.
27191         (__expf): New.
27192         Include <sysdeps/ieee754/flt-32/e_expf.c>.
27193
27194 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27195
27196         [BZ #22332]
27197         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27198         unescaping.
27199
27200 2017-10-21  Florian Weimer  <fweimer@redhat.com>
27201
27202         * posix/Makefile (tests): Add tst-glob-tilde.
27203         (tests-special): Add tst-glob-tilde-mem.out
27204         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27205         (tst-glob-tilde-mem.out): Add mtrace check.
27206         * posix/tst-glob-tilde.c: New file.
27207
27208 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
27209
27210         * bits/floatn-common.h: New file.
27211         * math/Makefile (headers): Add bits/floatn-common.h.
27212         * bits/floatn.h: Include <bits/floatn-common.h>.
27213         * sysdeps/ia64/bits/floatn.h: Likewise.
27214         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27215         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27216         * sysdeps/powerpc/bits/floatn.h: Likewise.
27217         * sysdeps/x86/bits/floatn.h: Likewise.
27218
27219 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27220
27221         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27222         indicates whether compiler emits an warning for alias for
27223         functions with incompatible types.
27224
27225         [BZ #22273]
27226         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27227         the auxiliary process is terminated by a signal before calling _exit
27228         or execve.
27229
27230 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27231
27232         [BZ #21265]
27233         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27234         New.
27235         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27236         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27237         and bit_arch_XSAVEC_Usable if needed.
27238         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27239         and bit_arch_Use_dl_runtime_resolve_opt.
27240         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27241         Removed.
27242         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27243         (bit_arch_Prefer_No_AVX512): Updated.
27244         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27245         (bit_arch_XSAVEC_Usable): New.
27246         (STATE_SAVE_OFFSET): Likewise.
27247         (STATE_SAVE_MASK): Likewise.
27248         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27249         (cpu_features): Add xsave_state_size and xsave_state_full_size.
27250         (index_arch_Use_dl_runtime_resolve_opt): Removed.
27251         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27252         (index_arch_XSAVEC_Usable): New.
27253         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27254         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
27255         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27256         is enabled.
27257         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27258         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27259         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27260         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27261         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27262         _dl_runtime_resolve_xsavec.
27263         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27264         Removed.
27265         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27266         instead of VEC_SIZE.
27267         (REGISTER_SAVE_BND0): Removed.
27268         (REGISTER_SAVE_BND1): Likewise.
27269         (REGISTER_SAVE_BND3): Likewise.
27270         (REGISTER_SAVE_RAX): Always defined to 0.
27271         (VMOV): Removed.
27272         (_dl_runtime_resolve_avx): Likewise.
27273         (_dl_runtime_resolve_avx_slow): Likewise.
27274         (_dl_runtime_resolve_avx_opt): Likewise.
27275         (_dl_runtime_resolve_avx512): Likewise.
27276         (_dl_runtime_resolve_avx512_opt): Likewise.
27277         (_dl_runtime_resolve_sse): Likewise.
27278         (_dl_runtime_resolve_sse_vex): Likewise.
27279         (USE_FXSAVE): New.
27280         (_dl_runtime_resolve_fxsave): Likewise.
27281         (USE_XSAVE): Likewise.
27282         (_dl_runtime_resolve_xsave): Likewise.
27283         (USE_XSAVEC): Likewise.
27284         (_dl_runtime_resolve_xsavec): Likewise.
27285         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27286         Removed.
27287         (_dl_runtime_resolve_avx512_opt): Likewise.
27288         (_dl_runtime_resolve_avx): Likewise.
27289         (_dl_runtime_resolve_avx_opt): Likewise.
27290         (_dl_runtime_resolve_sse): Likewise.
27291         (_dl_runtime_resolve_sse_vex): Likewise.
27292         (_dl_runtime_resolve_fxsave): New.
27293         (_dl_runtime_resolve_xsave): Likewise.
27294         (_dl_runtime_resolve_xsavec): Likewise.
27295
27296 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27297
27298         [BZ #22320]
27299         CVE-2017-15670
27300         * posix/glob.c (__glob): Fix one-byte overflow.
27301
27302 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27303
27304         * malloc/malloc.c (sysdep-cancel.h): Add include.
27305
27306 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
27307
27308         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27309
27310 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
27311
27312         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27313         (tests): Remove $(objpfx)ga_test depdendency.
27314         * resolv/ga_test.c: Remove file.
27315
27316 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27317
27318         [BZ #18812]
27319         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27320         * localedata/locales/kab_DZ: New file.
27321
27322 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27323
27324         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27325         _dl_relocate_static_pie instead of _dl_start to compute load
27326         address in static PIE.
27327
27328 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27329
27330         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27331
27332 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
27333
27334         [BZ #13605]
27335         * localedata/SUPPORTED: Add shn_MM/UTF-8.
27336         * localedata/locales/shn_MM: New file.
27337
27338 2017-10-20  Florian Weimer  <fweimer@redhat.com>
27339
27340         [BZ #22321]
27341         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27342         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27343         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27344         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27345         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27346         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27347
27348 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
27349
27350         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27351
27352 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
27353
27354         * sysdeps/mips/ieee754/bits/floatn.h: New file.
27355
27356         [BZ #22322]
27357         * sysdeps/mips/bits/long-double.h: Move to ....
27358         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27359
27360 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
27361
27362         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27363
27364 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
27365             H.J. Lu  <hongjiu.lu@intel.com>
27366
27367         [BZ #22299]
27368         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27369         GLRO(dl_platform) to NULL.
27370         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27371         (modules-names): Add tst-platformmod-1 and
27372         x86_64/tst-platformmod-2.
27373         (CFLAGS-tst-platform-1.c): New.
27374         (CFLAGS-tst-platformmod-1.c): Likewise.
27375         (CFLAGS-tst-platformmod-2.c): Likewise.
27376         (LDFLAGS-tst-platformmod-2.so): Likewise.
27377         ($(objpfx)tst-platform-1): Likewise.
27378         ($(objpfx)tst-platform-1.out): Likewise.
27379         (tst-platform-1-ENV): Likewise.
27380         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27381         * sysdeps/x86_64/tst-platform-1.c: New file.
27382         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27383         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27384
27385 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
27386
27387         [BZ #13994]
27388         * locale/iso-639.def: Add Karbi.
27389         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27390         * localedata/locales/mjw_IN: New file.
27391
27392 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
27393
27394         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27395         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27396         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27397         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27398         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27399         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27400         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27401         <bits/floatn.h>.
27402         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27403         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27404         * manual/math.texi (Mathematics): Document additional architecture
27405         support for _Float128.
27406         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27407         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27408         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27409         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27410         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27411         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27412         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27413         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27414         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27415         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27416         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27417         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27418         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27419         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27420         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27421
27422 2017-10-18  Renlin Li  <renlin.li@arm.com>
27423
27424         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27425         _DYNAMIC symbol to calculate load address.
27426
27427 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
27428
27429         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27430         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27431         summary bits.
27432         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27433         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27434
27435 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
27436
27437         [BZ #16777]
27438         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27439         and improve readability by using more ASCII.
27440         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27441         and improve readability by using more ASCII.
27442
27443 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
27444
27445         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27446         not all targets support atomics on bool.
27447
27448 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
27449
27450         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27451         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27452         __f128.
27453         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27454         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27455         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27456         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27457         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27458         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27459
27460 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27461
27462         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27463         defines.
27464
27465 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27466
27467         [BZ #22159]
27468         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27469         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27470         (do_check_remalloced_chunk): Fix build bug.
27471         (do_check_malloc_state): Add assert that checks arena->top.
27472         (malloc_consolidate): Remove initialization.
27473         (int_mallinfo): Remove call to malloc_consolidate.
27474         (__libc_mallopt): Clarify why malloc_consolidate is needed.
27475
27476 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27477
27478         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27479         (have_fastchunks): Remove.
27480         (clear_fastchunks): Remove.
27481         (set_fastchunks): Remove.
27482         (malloc_state): Add have_fastchunks.
27483         (malloc_init_state): Use have_fastchunks.
27484         (do_check_malloc_state): Remove incorrect invariant checks.
27485         (_int_malloc): Use have_fastchunks.
27486         (_int_free): Likewise.
27487         (malloc_consolidate): Likewise.
27488
27489 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27490
27491         * malloc/malloc.c (tcache_put): Inline.
27492         (tcache_get): Inline.
27493
27494 2017-10-17  Jordi Mallach  <jordi@gnu.org>
27495
27496         Aurelien Jarno  <aurelien@aurel32.net>
27497         [BZ #2522]
27498         * localedata/locales/ca_ES@valencia: New file.
27499         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27500
27501 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
27502
27503         [BZ #22296]
27504         * math/math.h: Let signbit use the builtin in C++ mode with gcc
27505         < 6.x
27506
27507 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27508
27509         * scripts/build-many-glibcs.py (Context.add_all_configs):
27510         Add arm-linux-gnueabihf multiarch extra_glibcs.
27511
27512         * sysdeps/generic/ifunc-init.h: New file.
27513         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27514
27515 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
27516
27517         [BZ #22019]
27518         * localedata/locales/el_GR: Set n_cs_precedes to 0.
27519         * localedata/locales/el_CY: copy "el_GR" because it is identical.
27520         * stdlib/tst-strfmon_l.c: adapt test case.
27521
27522 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27523
27524         * sysdeps/generic/float128-abi.h: New file.
27525         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27526         non-__prefixed symbols to ....
27527         * math/Versions: ... here.  Include <float128-abi.h>.
27528         * stdlib/Versions ... and here.  Include <float128-abi.h>
27529
27530 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27531
27532         * version.h (VERSION): Switch to ".9000" as the development
27533         version suffix.
27534
27535 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27536
27537         [BZ #22050]
27538         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27539         compat_symbol_reference to access non-default version.
27540
27541 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27542
27543         * malloc/Makefile (others-extras): Set to mcheck-init.o.
27544
27545 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
27546
27547         * include/shlib-compat.h (compat_symbol_reference): Update
27548         comment.
27549
27550 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27551
27552         * math/Makefile (test-types): Add
27553         $(type-float128-$(float128-alias-fcts)).
27554         * math/test-float128.h (TYPE_STR): Define conditional on
27555         [FLT128_MANT_DIG == LDBL_MANT_DIG].
27556         (ULP_IDX): Likewise.
27557         (ULP_I_IDX): Likewise.
27558
27559         * stdlib/strtold.c: Include <bits/floatn.h>
27560         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27561         and later undefine as macro.  Define as weak alias if
27562         [!USE_WIDE_CHAR].
27563         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27564         and later undefine as macro.  Define as weak alias if
27565         [USE_WIDE_CHAR].
27566         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27567         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27568         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
27569         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27570         Define and later undefine as macro.  Define as weak alias if
27571         [USE_WIDE_CHAR].
27572         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27573         <bits/floatn.h>.
27574         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27575         Define and later undefine as macro.  Define as weak alias if
27576         [!USE_WIDE_CHAR].
27577         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27578         Define and later undefine as macro.  Define as weak alias if
27579         [USE_WIDE_CHAR].
27580
27581 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
27582
27583         * localedata/collate-test.c (allocate_arrays): Don't use \n in
27584         record_verbose messages.
27585
27586 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27587
27588         [BZ #22052]
27589         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27590         to silence -O3 -Wall warning with GCC 7.
27591
27592 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27593
27594         * Makeconfig (+link-static-before-libc): Use the first of
27595         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27596         * gmon/Makefile (tests): Add tst-gmon-static.
27597         (tests-static): Likewise.
27598         (CFLAGS-tst-gmon-static.c): New.
27599         (CRT-tst-gmon-static): Likewise.
27600         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27601         (tst-gmon-static-ENV): Likewise.
27602         (tests-special): Likewise.
27603         ($(objpfx)tst-gmon-static.out): Likewise.
27604         (clean-tst-gmon-static-data): Likewise.
27605         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27606         * gmon/tst-gmon-static-gprof.sh: New file.
27607         * gmon/tst-gmon-static.c: Likewise.
27608
27609 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
27610
27611         [BZ #22295]
27612         * locale/programs/linereader.c (get_string): Don't warn on
27613         non-symbolic character.
27614
27615         [BZ #22294]
27616         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27617         int_curr_symbol.
27618
27619         [BZ #22292]
27620         * locale/programs/record-status.h: New file
27621         * locale/programs/locale.c: Add comment.
27622         * locale/programs/charmap-dir.c: Don't include error.h.
27623         (charmap_opendir): Use record_error.
27624         * locale/programs/charmap.c: Don't include error.h.
27625         (charmap_read): Use record_error, and record_warning.
27626         (parse_charmap): Likewise.
27627         * locale/programs/ld-address.c: Don't include error.h.
27628         (address_finish): Use record_error, and record_warning.
27629         * locale/programs/ld-collate.c: Don't include error.h.
27630         (collate_finish): Use record_error, and record_error_at_line.
27631         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27632         (ctype_class_new): Likewise.
27633         (ctype_map_new): Likewise.
27634         (set_one_default): Likewise.
27635         (set_class_defaults): Likewise.
27636         (translit_flatten): Likewise.
27637         (allocate_arrays): Use record_error, and record_verbose.
27638         * locale/programs/ld-identification.c: Don't include error.h.
27639         (indentation_finish): Use record_error and record_warning.
27640         * locale/programs/ld-measurement.c: Don't include error.h.
27641         (measurement_finish): Use record_error.
27642         * locale/programs/ld-messages.c
27643         (message_finish): Likewise.
27644         * locale/programs/ld-monetary.c
27645         (monetary_finish): Likewise.
27646         * locale/programs/ld-name.c (name_finish): Use record_error
27647         and record_warning.
27648         * locale/programs/ld-numeric.c
27649         (numeric_finish): Use record_error.
27650         * locale/programs/ld-paper.c: Don't include error.h.
27651         (paper_finish): Use record_error.
27652         * locale/programs/ld-telephone.c: Don't include error.h.
27653         (telephone_finish): Use record_error.
27654         * locale/programs/ld-time.c (time_finish): Likewise.
27655         * locale/programs/linereader.h (lr_error): Make inline func.
27656         * locale/programs/localedef.c: Define recorded_warning_count,
27657         and recorded_error_count.
27658         (main): Use record_error. Use recorded_error_count and
27659         recorded_warning_count to issue correct error returns.
27660         (add_to_readlist): Use record_error.
27661         (find_locale): Likewise.
27662         (load_locale): Likewise.
27663         * locale/programs/localedef.h: Remove be_quiet
27664         and WITH_CUR_LOCALE.
27665         * locale/programs/locarchive.c (compare_from_file): Use
27666         record_error.
27667         * locale/programs/locfile.c (write_locale_data): Use
27668         record_error.
27669         * locale/programs/repertoire.c: Dont include error.h.
27670         (repertoire_complain): Use record_error.
27671         * localedata/tst-fmon.sh: Expect failures from localedef.
27672         * localedata/tst-locale.sh: Likewise.
27673         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27674
27675         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27676         (REPORTS): Likewise.
27677         (check): Likewise.
27678         (i18n): Rename to...
27679         (i18n_ctype): ...this.
27680         (i18n-report): Rename to...
27681         (i18n_ctype-report): ...this.
27682         * localedata/locales/i18n_ctype: Regenerate.
27683         * localedata/locales/i18n: copy i18n_ctype.
27684
27685 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27686
27687         * stdlib/strfroml.c: Include <bits/floatn.h>.
27688         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27689         Define before include of <stdlib.h> and undefine afterwards, then
27690         define as weak alias.
27691
27692         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27693         Undefine and restore default definition.  Use
27694         libm_alias_ldouble_other.
27695
27696 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
27697
27698         [BZ #22153]
27699         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27700         in coredumps.
27701
27702 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
27703
27704         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27705         Assign sym_map to be map for local symbols, as TLS relocations
27706         use sym_map to determine whether the symbol is defined and to
27707         extract the TLS information.
27708         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27709         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27710
27711 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27712
27713         [BZ #22189]
27714         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27715         (math_force_eval): Add powerpc version.
27716
27717         [BZ #22142]
27718         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27719         -DBL_MAX.
27720         (do_test): Likewise.
27721         * stdio-common/tst-printf.sh: Likewise.
27722         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27723         ifdef clause in order to set the carry bit right.  Replace r0 by
27724         0 without changing the behavior.
27725
27726 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27727
27728         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27729         <libm-alias-ldouble.h>.
27730         (fabsl): Define using libm_alias_ldouble.
27731         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27732         <libm-alias-ldouble.h>.
27733         (fabsl): Define using libm_alias_ldouble.
27734
27735         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27736         Remove conditional code.
27737
27738         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27739         Rename to __clog10_internal_l.
27740         (__clog10_internal_l): Define aliases using
27741         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27742         with __clog10.
27743
27744 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27745
27746         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
27747         * benchtests/sincosf-inputs: New file.
27748         * benchtests/cosf-inputs: New file.
27749         * benchtests/sinf-inputs: New file.
27750
27751 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27752
27753         * posix/tst-spawn.c (do_test): Wait for both children.
27754
27755 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27756
27757         [BZ #22284]
27758         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27759         tests-pie): Add tst-gmon-pie.
27760         (CFLAGS-tst-gmon-pie.c): New.
27761         (CRT-tst-gmon-pie): Likewise.
27762         (tst-gmon-pie-ENV): Likewise.
27763         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27764         ($(objpfx)tst-gmon-pie.out): Likewise.
27765         (clean-tst-gmon-pie-data): Likewise.
27766         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27767         * gmon/gmon.c [PIC]: Include <link.h>.
27768         [PIC] (callback): New function.
27769         (write_hist): Add an argument for load address.  Subtract load
27770         address from PCs.
27771         (write_call_graph): Likewise.
27772         (write_gmon): Call __dl_iterate_phdr to get load address, pass
27773         it to write_hist and write_call_graph.
27774         * gmon/tst-gmon-pie.c: New file.
27775
27776 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27777
27778         * math/Makefile (test-types-basic): New variable.
27779         (test-types): Likewise.
27780         (libm-test-support): Use $(test-types) instead of $(types).
27781         (libm-tests-base-normal): Likewise.
27782         (libm-tests-base-finite): Likewise.
27783         (libm-tests-base-inline): Likewise.
27784         (generated): Likewise.
27785         ($(objpfx)libm-test-support-$(t).c): Likewise.
27786         (libm-tests-for-type iterator): Likewise.
27787         (libm-test-support iterator): Likewise.
27788         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27789         (ulp_idx): Use ULP_IDX.
27790         * math/test-ldouble.h: Include <float.h>.
27791         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27792         (ULP_IDX): New macro.
27793         (ULP_I_IDX): Likewise.
27794         * math/test-double.h (ULP_IDX): Likewise.
27795         (ULP_I_IDX): Likewise.
27796         * math/test-float.h (ULP_IDX): Likewise.
27797         (ULP_I_IDX): Likewise.
27798         * math/test-float128.h (ULP_IDX): Likewise.
27799         (ULP_I_IDX): Likewise.
27800
27801 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27802
27803         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27804         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27805         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27806         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27807         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27808         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27809         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27810         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27811         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27812         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27813         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27814         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27815         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27816         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27817         (SINGLE_THREAD_BY_GLOBAL): Define.
27818         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27819         Likewise.
27820         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27821         Likewise.
27822         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27823         Likewise.
27824         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27825         Likewise.
27826         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27827         (SINGLE_THREAD_BY_GLOBAL): Likewise.
27828         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27829         Likewise.
27830
27831 2017-10-11  Andreas Schwab  <schwab@suse.de>
27832
27833         * nis/Makefile (aux): Remove.
27834         * nscd/Makefile (aux): Add nscd_hash.
27835         (nscd-modules): Likewise.
27836         ($(objpfx)nscd): Don't depend on libnsl.
27837         * nscd/nscd_hash.c: New file.
27838         * nscd/nscd_hash.h: Likewise.
27839         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27840         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27841         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27842         instead of <nis/rpcsvc/nis.h>.
27843         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27844
27845 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27846
27847         [BZ #22078]
27848         Avoid large NSS buffers with many addresses, aliases.
27849         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27850         using dynarrays and struct alloc_buffer.
27851         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27852         (tst-nss-files-hosts-multi): Link with -ldl.
27853         * nss/tst-nss-files-hosts-multi.c: New file.
27854
27855 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27856
27857         [BZ #18023]
27858         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27859         scratch_buffer.  Eliminate gotos.
27860
27861 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27862
27863         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27864         libm_alias_ldouble_other.
27865         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27866         undefine and redefine.
27867         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27868         (exp10l): Do not define here.
27869         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27870         (weak_alias): Undefine and redefine.
27871         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27872         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27873         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27874         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27875
27876         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27877         [!__fma] (fma): Define using libm_alias_double.
27878         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27879         [!__fmaf] (fmaf): Define using libm_alias_float.
27880         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27881         (fmal): Define using libm_alias_ldouble.
27882
27883 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
27884
27885         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27886         New macro.
27887         (libm_alias_double_other): Likewise.
27888         (libm_alias_double_r): Use libm_alias_double_other_r.
27889         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27890         New macro.
27891         (libm_alias_float_other): Likewise.
27892         (libm_alias_float_r): Use libm_alias_float_other_r.
27893         * sysdeps/generic/libm-alias-float128.h
27894         (libm_alias_float128_other_r): New macro.
27895         (libm_alias_float128_other): Likewise.
27896         (libm_alias_float128_r): Use libm_alias_float128_other_r.
27897         * sysdeps/generic/libm-alias-ldouble.h
27898         (libm_alias_ldouble_other_r): New macro.
27899         (libm_alias_ldouble_other): Likewise.
27900         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27901         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27902         (libm_alias_double_other_r): New macro.
27903         (libm_alias_double_other): Likewise.
27904         (libm_alias_double_r): Use libm_alias_double_other_r.
27905         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27906         (libm_alias_ldouble_other_r): New macro.
27907         (libm_alias_ldouble_other): Likewise.
27908         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27909         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27910         [!USE_AS_COMPAT]: Use libm_alias_double_other.
27911         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27912         [!USE_AS_COMPAT]: Use libm_alias_float_other.
27913         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27914         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27915         * math/w_exp2f.c: Use libm_alias_float_other.
27916         * math/w_expf.c: Likewise.
27917         * math/w_log2f.c: Likewise.
27918         * math/w_logf.c: Likewise.
27919         * math/w_powf.c: Likewise.
27920         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27921         [!__exp2f]: Use libm_alias_float_other.
27922         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27923         [!__expf]: Use libm_alias_float_other.
27924         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27925         [!__log2f]: Use libm_alias_float_other.
27926         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27927         [!__logf]: Use libm_alias_float_other.
27928         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27929         [!__powf]: Use libm_alias_float_other.
27930
27931 2017-10-10  Florian Weimer  <fweimer@redhat.com>
27932
27933         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27934         function.
27935         (_nss_files_gethostbyname3_r): Call it.
27936
27937 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27938
27939         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27940         error.  Remove default definition of declare_mgen_alias.
27941         [!declare_mgen_alias_r]: Likewise.
27942         * sysdeps/generic/math-type-macros-double.h
27943         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27944         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27945         (declare_mgen_alias_r): Likewise.
27946         * sysdeps/generic/math-type-macros-float128.h
27947         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27948         * sysdeps/generic/math-type-macros-ldouble.h
27949         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27950         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27951         macro.
27952         (declare_mgen_alias_r_s): Likewise.
27953         (declare_mgen_alias_r): Likewise.
27954         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27955         (lgamma_r): Define using libm_alias_double_r.
27956         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27957         (lgammaf_r): Define using libm_alias_float_r.
27958         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27959         (lgammal_r): Define using libm_alias_ldouble_r.
27960         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27961         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27962
27963 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27964
27965         * lib/glob.c (__glob_pattern_type): Remove now-spurious
27966         extern declaration.
27967
27968 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27969
27970         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27971
27972 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
27973
27974         [BZ #21326]
27975         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27976         [__cplusplus >= 201103] (__USE_ISOC99): Define.
27977         * math/Makefile (test-math-cxx11): New test.
27978         * math/test-math-cxx11.cc: New file.
27979
27980 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
27981
27982         * login/openpty.c (openpty): Close slave pty file descriptor on error.
27983
27984         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27985         call to allocate the slave pty file descriptor.
27986
27987 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
27988
27989         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27990         [!__fma] (fma): Define using libm_alias_double.
27991         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27992         [!__fma] (fma): Define using libm_alias_double.
27993
27994         * sysdeps/ieee754/float128/float128_private.h: Include
27995         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27996         (libm_alias_ldouble_r): Undefine and redefine.
27997         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27998         <libm-alias-ldouble.h>.
27999         (asinhl): Define using libm_alias_ldouble.
28000         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28001         <libm-alias-ldouble.h>.
28002         (atanl): Define using libm_alias_ldouble.
28003         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28004         <libm-alias-ldouble.h>.
28005         (cbrtl): Define using libm_alias_ldouble.
28006         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28007         <libm-alias-ldouble.h>.
28008         (ceill): Define using libm_alias_ldouble.
28009         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28010         <libm-alias-ldouble.h>.
28011         (copysignl): Define using libm_alias_ldouble.
28012         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28013         <libm-alias-ldouble.h>.
28014         (cosl): Define using libm_alias_ldouble.
28015         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28016         <libm-alias-ldouble.h>.
28017         (erfl): Define using libm_alias_ldouble.
28018         (erfcl): Likewise.
28019         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28020         <libm-alias-ldouble.h>.
28021         (expm1l): Define using libm_alias_ldouble.
28022         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28023         <libm-alias-ldouble.h>.
28024         (fabsl): Define using libm_alias_ldouble.
28025         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28026         <libm-alias-ldouble.h>.
28027         (floorl): Define using libm_alias_ldouble.
28028         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28029         <libm-alias-ldouble.h>.
28030         (fmal): Define using libm_alias_ldouble.
28031         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28032         <libm-alias-ldouble.h>.
28033         (frexpl): Define using libm_alias_ldouble.
28034         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28035         libm_alias_ldouble.
28036         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28037         <libm-alias-ldouble.h>.
28038         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28039         libm_alias_ldouble.
28040         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28041         <libm-alias-ldouble.h>.
28042         (getpayloadl): Define using libm_alias_ldouble.
28043         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28044         <libm-alias-ldouble.h>.
28045         (llrintl): Define using libm_alias_ldouble.
28046         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28047         <libm-alias-ldouble.h>.
28048         (llroundl): Define using libm_alias_ldouble.
28049         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28050         <libm-alias-ldouble.h>.
28051         (logbl): Define using libm_alias_ldouble.
28052         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28053         <libm-alias-ldouble.h>.
28054         (lrintl): Define using libm_alias_ldouble.
28055         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28056         <libm-alias-ldouble.h>.
28057         (lroundl): Define using libm_alias_ldouble.
28058         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28059         <libm-alias-ldouble.h>.
28060         (modfl): Define using libm_alias_ldouble.
28061         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28062         <libm-alias-ldouble.h>.
28063         (nearbyintl): Define using libm_alias_ldouble.
28064         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28065         <libm-alias-ldouble.h>.
28066         (nextafterl): Define using libm_alias_ldouble.
28067         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28068         <libm-alias-ldouble.h>.
28069         (nextupl): Define using libm_alias_ldouble.
28070         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28071         <libm-alias-ldouble.h>.
28072         (remquol): Define using libm_alias_ldouble.
28073         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28074         <libm-alias-ldouble.h>.
28075         (rintl): Define using libm_alias_ldouble.
28076         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28077         <libm-alias-ldouble.h>.
28078         (roundevenl): Define using libm_alias_ldouble.
28079         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28080         <libm-alias-ldouble.h>.
28081         (roundl): Define using libm_alias_ldouble.
28082         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28083         using libm_alias_ldouble.
28084         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28085         <libm-alias-ldouble.h>.
28086         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28087         Define using libm_alias_ldouble.
28088         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28089         <libm-alias-ldouble.h>.
28090         (sincosl): Define using libm_alias_ldouble.
28091         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28092         <libm-alias-ldouble.h>.
28093         (sinl): Define using libm_alias_ldouble.
28094         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28095         <libm-alias-ldouble.h>.
28096         (tanhl): Define using libm_alias_ldouble.
28097         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28098         <libm-alias-ldouble.h>.
28099         (tanl): Define using libm_alias_ldouble.
28100         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28101         <libm-alias-ldouble.h>.
28102         (totalorderl): Define using libm_alias_ldouble.
28103         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28104         <libm-alias-ldouble.h>.
28105         (totalordermagl): Define using libm_alias_ldouble.
28106         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28107         <libm-alias-ldouble.h>.
28108         (truncl): Define using libm_alias_ldouble.
28109         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28110         libm_alias_ldouble.
28111         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28112         libm_alias_ldouble.
28113         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28114         <libm-alias-ldouble.h>.
28115         (weak_alias): Do not undefine and redefine.
28116         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28117         (copysignl): Define with long_double_symbol only if [IS_IN
28118         (libc)].
28119         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28120         <libm-alias-ldouble.h>.
28121         (weak_alias): Do not undefine and redefine.
28122         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28123         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28124         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28125         <libm-alias-ldouble.h>.
28126         (weak_alias): Do not undefine and redefine.
28127         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28128         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28129         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28130         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28131         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28132         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28133         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28134         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28135         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28136         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28137         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28138         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28139         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28140         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28141         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28142         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28143         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28144         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28145         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28146         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28147         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28148         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28149         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28150         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28151         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28152         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28153
28154 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
28155
28156         [BZ #22111]
28157         * malloc/malloc.c (tcache_shutting_down): Use bool type.
28158         (tcache_thread_freeres): Set tcache_shutting_down before
28159         freeing the tcache.
28160         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28161         * malloc/tst-malloc-tcache-leak.c: New file.
28162
28163 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28164
28165         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28166         back to powerpc32 file.
28167         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28168         (memrchr): Add __memrchr_power8 to ifunc list.
28169         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28170         extra bytes for unaligned inputs.
28171
28172 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
28173
28174         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28175         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28176         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28177         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28178         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28179
28180 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28181
28182         * sysdeps/arm/libm-test-ulps: Update.
28183
28184         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28185         <libm-alias-ldouble.h>.
28186         (asinhl): Define using libm_alias_ldouble.
28187         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28188         <libm-alias-ldouble.h>.
28189         (cbrtl): Define using libm_alias_ldouble.
28190         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28191         <libm-alias-ldouble.h>.
28192         (copysignl): Define using libm_alias_ldouble.
28193         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28194         <libm-alias-ldouble.h>.
28195         (cosl): Define using libm_alias_ldouble.
28196         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28197         <libm-alias-ldouble.h>.
28198         (erfl): Define using libm_alias_ldouble.
28199         (erfcl): Likewise.
28200         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28201         <libm-alias-ldouble.h>.
28202         (fmal): Define using libm_alias_ldouble.
28203         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28204         <libm-alias-ldouble.h>.
28205         (frexpl): Define using libm_alias_ldouble.
28206         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28207         libm_alias_ldouble.
28208         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28209         <libm-alias-ldouble.h>.
28210         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28211         libm_alias_ldouble.
28212         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28213         <libm-alias-ldouble.h>.
28214         (getpayloadl): Define using libm_alias_ldouble.
28215         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28216         <libm-alias-ldouble.h>.
28217         (llrintl): Define using libm_alias_ldouble.
28218         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28219         <libm-alias-ldouble.h>.
28220         (llroundl): Define using libm_alias_ldouble.
28221         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28222         <libm-alias-ldouble.h>.
28223         (lrintl): Define using libm_alias_ldouble.
28224         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28225         <libm-alias-ldouble.h>.
28226         (lroundl): Define using libm_alias_ldouble.
28227         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28228         <libm-alias-ldouble.h>.
28229         (modfl): Define using libm_alias_ldouble.
28230         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28231         <libm-alias-ldouble.h>.
28232         (nextupl): Define using libm_alias_ldouble.
28233         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28234         <libm-alias-ldouble.h>.
28235         (remquol): Define using libm_alias_ldouble.
28236         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28237         <libm-alias-ldouble.h>.
28238         (roundevenl): Define using libm_alias_ldouble.
28239         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28240         <libm-alias-ldouble.h>.
28241         (roundl): Define using libm_alias_ldouble.
28242         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28243         using libm_alias_ldouble.
28244         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28245         <libm-alias-ldouble.h>.
28246         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28247         <libm-alias-ldouble.h>.
28248         (setpayloadsigl): Define using libm_alias_ldouble.
28249         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28250         <libm-alias-ldouble.h>.
28251         (sincosl): Define using libm_alias_ldouble.
28252         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28253         <libm-alias-ldouble.h>.
28254         (sinl): Define using libm_alias_ldouble.
28255         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28256         <libm-alias-ldouble.h>.
28257         (tanhl): Define using libm_alias_ldouble.
28258         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28259         <libm-alias-ldouble.h>.
28260         (tanl): Define using libm_alias_ldouble.
28261         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28262         <libm-alias-ldouble.h>.
28263         (totalorderl): Define using libm_alias_ldouble.
28264         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28265         <libm-alias-ldouble.h>.
28266         (totalordermagl): Define using libm_alias_ldouble.
28267         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28268         libm_alias_ldouble.
28269         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28270         libm_alias_ldouble.
28271
28272 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28273
28274         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28275         memmove_falkor.
28276         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28277         (__libc_ifunc_impl_list): Likewise.
28278         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28279         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28280
28281         * benchtests/bench-memmove-walk.c: New file.
28282         * benchtests/Makefile (string-benchset): Add it.
28283
28284         * benchtests/bench-memset-walk.c: New file.
28285         * benchtests/Makefile (string-benchset): Add it.
28286
28287         * benchtests/bench-memcpy-walk.c: New file.
28288         * benchtests/Makefile (string-benchset): Add it.
28289
28290 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28291
28292         nscd: Eliminate compilation time dependency in the build output.
28293         * nscd/nscd_stat.c (STATDATA_VERSION)
28294         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28295         (STATDATA_VERSION_FULL): New macro definitions.
28296         (compilation): Remove.
28297         (struct statdata): Adjust version member.
28298         (send_stats): Set version from STATDATA_VERSION_FULL.
28299         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28300
28301 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
28302
28303         * configure.ac (--enable-add-ons): Remove option.
28304         (machine): Do not mention add-ons in comment.
28305         (LIBC_PRECONFIGURE): Likewise.
28306         (add_ons): Remove variable and sanity checks and logic to locate
28307         add-ons.
28308         (add_ons_automatic): Remove variable.
28309         (configured_add_ons): Likewise.
28310         (add_ons_sfx): Likewise.
28311         (add_ons_pfx): Likewise.
28312         (add_on_subdirs): Likewise.
28313         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
28314         consideration of add-ons in Implies handling.
28315         (sysdeps_add_ons): Likewise.
28316         * configure: Regenerated.
28317         * libidn/configure.ac: Remove.
28318         * libidn/configure: Likewise.
28319         * sysdeps/unix/inet/configure.ac: New file.
28320         * sysdeps/unix/inet/configure: New generated file.
28321         * sysdeps/unix/inet/Subdirs: Add libidn.
28322         * Makeconfig (sysdeps-srcdirs): Remove variable.
28323         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28324         ($(common-objpfx)config.status): Do not depend on add-on files.
28325         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28326         comment.
28327         (all-subdirs): Do not include $(add-on-subdirs).
28328         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28329         * config.make.in (add-ons): Remove variable.
28330         (add-on-subdirs): Likewise.
28331         (sysdeps-add-ons): Likewise.
28332         * manual/Makefile (add-chapters): Remove.
28333         ($(objpfx)texis): Do not depend on $(add-chapters).
28334         (nonexamples): Do not handle $(add-chapters).
28335         (examples): Do not handle $(add-ons).
28336         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28337         libc-texinfo.sh.
28338         * manual/install.texi (Installation): Do not mention add-ons.
28339         (--enable-add-ons): Do not document configure option.
28340         * INSTALL: Regenerated.
28341         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28342         * manual/maint.texi (Hierarchy Conventions): Do not mention
28343         add-ons.
28344         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28345         --enable-add-ons.
28346         * scripts/gen-sorted.awk: Do not handle Subdirs files from
28347         add-ons.
28348         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28349         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28350
28351 2017-10-05  Andreas Schwab  <schwab@suse.de>
28352
28353         [BZ #15142]
28354         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
28355         (_IO_flush_all_lockp): Always lock list_all_lock.
28356         (_IO_flush_all_linebuffered): Likewise.
28357         (_IO_unbuffer_all): Likewise.
28358
28359 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28360
28361         [BZ #15436]
28362         Do not flush stdio streams on abort.
28363         * stdlib/abort.c (fflush): Remove macro definition.
28364         (abort): Remove stages related to stdio flushing.
28365
28366 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28367
28368         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28369
28370 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
28371
28372         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28373
28374 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28375
28376         * support/support_format_hostent.c (support_format_hostent): Add
28377         more error information for NETDB_INTERNAL.
28378
28379 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28380
28381         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28382         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28383         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28384         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28385         AC_DEFINE if multi-arch is enabled.
28386         * sysdeps/i386/configure: Regenerated.
28387
28388 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28389
28390         * Makeconfig (+link-static-before-libc): Use
28391         $(DEFAULT-LDFLAGS-$(@F)).
28392         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28393         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28394         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28395
28396 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28397
28398         * elf/Makefile (tests): Add tst-main1.
28399         (modules-names): Add tst-main1mod.
28400         ($(objpfx)tst-main1): New.
28401         (CRT-tst-main1): Likewise.
28402         (LDFLAGS-tst-main1): Likewise.
28403         (LDLIBS-tst-main1): Likewise.
28404         (tst-main1mod.so-no-z-defs): Likewise.
28405         * elf/tst-main1.c: New file.
28406         * elf/tst-main1mod.c: Likewise.
28407
28408 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28409
28410         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28411
28412 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28413
28414         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28415         (fma): Define using libm_alias_double.
28416         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28417         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28418         <math_ldbl_opt.h>.
28419         (fmal): Do not define as compat symbol here.
28420         * sysdeps/alpha/fpu/s_fma.c: New file.
28421
28422 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28423
28424         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28425
28426 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28427
28428         [BZ #22229]
28429         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28430         <math_ldbl_opt.h>
28431         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28432         and libc.
28433         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28434         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28435         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28436         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28438         Include <math_ldbl_opt.h>
28439         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28440         and libc.
28441         (compat_symbol): Undefine and redefine.
28442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28443         <math_ldbl_opt.h>
28444         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28445         (compat_symbol): Undefine and redefine.
28446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28447         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28448         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28449         GLIBC_2_1 for libm.
28450         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28451         GLIBC_2.0 copysignl symbol.
28452         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28453         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28454
28455         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28456
28457 2017-10-04  Florian Weimer  <fweimer@redhat.com>
28458
28459         * scripts/check-local-headers.sh: Ignore nspr4 header file
28460         directory in addition to nspr.
28461
28462 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
28463
28464         [BZ #17956]
28465         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28466         * configure: Regenerate.
28467         * crypt/Makefile (nss-cpp-flags): New variable.
28468         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28469         (CPPFLAGS-md5-crypt.c): Use it.
28470         * scripts/check-local-headers.sh: Ignore nspr header file
28471         directory.
28472
28473 2017-10-04  Andreas Schwab  <schwab@suse.de>
28474
28475         * nis/Makefile (services): Remove compat.
28476         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28477         ($(objpfx)libnss_compat.so): Remove rule.
28478         * nis/Versions (libnss_compat): Remove.
28479         * nss/Makefile (services): Add compat.
28480         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28481         * nss/Versions (libnss_compat): Define.
28482         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28483         Don't include <rpc/types.h>.  Replace bool_t by bool.
28484         * nss/nss_compat/compat-initgroups.c: Likewise.
28485         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
28486         instead of <rpcsrv/ypclnt.h>.
28487         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28488         yp_get_default_domain.
28489         * nss/nss_compat/compat-pwd.c: Likewise.
28490         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28491         yp_get_default_domain.
28492         * nss/nss_compat/nisdomain.c: New file.
28493         * nss/nss_compat/nisdomain.h: Likewise.
28494
28495 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28496
28497         [BZ #22244]
28498         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28499         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28500
28501 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28502
28503         [BZ #22243]
28504         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28505         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28506
28507 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28508
28509         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28510         "movl main@GOTOFF(%ebx), %eax".
28511
28512 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28513
28514         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28515         allow undefined _DYNAMIC in PIE libc.a.
28516         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28517         Likewse.
28518
28519 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28520
28521         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28522         check _DYNAMIC.
28523
28524 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28525
28526         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28527         check _DYNAMIC.
28528
28529 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28530
28531         * math/test-math-iscanonical.cc (error): Replace bool with int.
28532
28533 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28534
28535         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28536         (modf): Define using libm_alias_double, only if [!__modf].
28537         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28538         <libm-alias-double.h>.
28539         (modf): Define using libm_alias_double, only if [!__modf].
28540         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28541         compat symbol here.
28542         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28543         (weak_alias): Do not undefine and redefine.
28544         (strong_alias): Likewise.
28545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28546         (weak_alias): Likewise.
28547         (strong_alias): Likewise.
28548
28549         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28550         (logb): Define using libm_alias_double, only if [!__logb].
28551         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28552         <libm-alias-double.h>.
28553         (logb): Define using libm_alias_double, only if [!__logb].
28554         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28555         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28556         (weak_alias): Do not undefine and redefine.
28557         (strong_alias): Likewise.
28558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28559         (weak_alias): Likewise.
28560         (strong_alias): Likewise.
28561
28562 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28563
28564         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28565         Check SHARED instead PIC.
28566
28567 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28568
28569         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28570         [!__fmaf] (fmaf): Define using libm_alias_float.
28571
28572         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28573         (frexp): Define using libm_alias_double.
28574         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28575         <libm-alias-double.h>.
28576         (frexp): Define using libm_alias_double.
28577         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28578         compat symbol here.
28579
28580 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28581
28582         [BZ #22235]
28583         * math/math.h: Trivial fix for unbalanced parentheses in comment.
28584         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28585         (CFLAGS-test-math-iscanonical.cc): New variable.
28586         * math/test-math-iscanonical.cc: New file.
28587         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28588         Provide a C++ implementation based on function overloading,
28589         rather than using __MATH_TG, which uses C-only builtins.
28590         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28591         Likewise.
28592         * sysdeps/powerpc/powerpc64le/Makefile
28593         (CFLAGS-test-math-iscanonical.cc): New variable.
28594
28595 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28596
28597         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28598         (ceil): Define using libm_alias_double.
28599         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28600         (floor): Define using libm_alias_double.
28601         * sysdeps/ieee754/dbl-64/s_llround.c: Include
28602         <libm-alias-double.h>.
28603         (llround): Define using libm_alias_double.
28604         * sysdeps/ieee754/dbl-64/s_lround.c: Include
28605         <libm-alias-double.h>.
28606         (lround): Define using libm_alias_double.
28607         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28608         <libm-alias-double.h>.
28609         (nearbyint): Define using libm_alias_double.
28610         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28611         <libm-alias-double.h>.
28612         (remquo): Define using libm_alias_double.
28613         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28614         (rint): Define using libm_alias_double.
28615         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28616         (round): Define using libm_alias_double.
28617         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28618         (trunc): Define using libm_alias_double.
28619         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28620         <libm-alias-double.h>.
28621         (ceil): Define using libm_alias_double.
28622         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28623         <libm-alias-double.h>.
28624         (floor): Define using libm_alias_double.
28625         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28626         <libm-alias-double.h>.
28627         (llround): Define using libm_alias_double.
28628         [_LP64] (lround): Likewise.
28629         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28630         <libm-alias-double.h>.
28631         [!_LP64] (lround): Define using libm_alias_double.
28632         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28633         <libm-alias-double.h>.
28634         (nearbyint): Define using libm_alias_double.
28635         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28636         <libm-alias-double.h>.
28637         (remquo): Define using libm_alias_double.
28638         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28639         <libm-alias-double.h>.
28640         (rint): Define using libm_alias_double.
28641         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28642         <libm-alias-double.h>.
28643         (round): Define using libm_alias_double.
28644         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28645         <libm-alias-double.h>.
28646         (trunc): Define using libm_alias_double.
28647         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28648         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28649         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28650         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28651         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28652         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28653         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28654         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28655         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28656
28657 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28658
28659         * math/w_remainder.c: New file.
28660         * math/w_remainderf.c: New file.
28661         * math/w_remainderl.c: New file.
28662
28663 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28664
28665         * elf/rtld.c (BOOTSTRAP_MAP): New.
28666         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28667         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28668         Likewise.
28669         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28670         Likewise.
28671         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28672         Likewise.
28673
28674 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28675
28676         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28677         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28678         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28679         rtld_hidden_data_ver): Define to empty.
28680         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28681         __assert_perror_fail): Likewise.
28682         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28683         (__rewinddir): Likewise.
28684         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28685         (__profile_frequency): Likewise.
28686         * include/setjmp.h (__sigsetjmp): Likewise.
28687         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28688         __libc_sigaction): Likewise.
28689         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28690         not set hidden attribute.
28691         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28692         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28693         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28694         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28695         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28696         __fxstatat64): Likewise.
28697         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28698         (__uname): Likewise.
28699         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28700         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28701         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28702         (NO_RTLD_HIDDEN): Set.
28703         * sysdeps/mach/hurd/configure: Refresh.
28704         * config.h.in: Refresh.
28705
28706 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
28707
28708         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28709         (atan): Define using libm_alias_double.
28710         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28711         (tan): Define using libm_alias_double.
28712         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28713         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28714
28715         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28716         define as weak alias of __atan.  Do not define any aliases if
28717         [__atan].
28718         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28719         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28720         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28721         as weak alias of __tan.  Do not define any aliases if [__tan].
28722         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28723         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28724         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28725         __atan.
28726         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28727         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28728         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28729         and define as weak alias of __atan.
28730         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28731         __atan.
28732         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28733         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28734         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28735         define as weak alias of __tan.
28736
28737 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28738
28739         * math/w_lgamma.c: New file.
28740         * math/w_lgammaf.c: New file.
28741         * math/w_lgammal.c: New file.
28742
28743 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28744
28745         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28746         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28747         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28748         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28749         * sysdeps/ieee754/flt-32/w_logf.c: New file.
28750         * sysdeps/ieee754/flt-32/w_powf.c: New file.
28751         * sysdeps/i386/fpu/w_log2f.c: New file.
28752         * sysdeps/i386/fpu/w_logf.c: New file.
28753         * sysdeps/i386/fpu/w_powf.c: New file.
28754         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28755         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28756         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28757
28758 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28759             H.J. Lu  <hongjiu.lu@intel.com>
28760
28761         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28762         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28763         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28764         * sysdeps/ieee754/flt-32/w_expf.c: New file.
28765         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28766         the new expf code.
28767         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28768         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28769         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28770         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28771         * sysdeps/i386/fpu/w_exp2f.c: New file.
28772         * sysdeps/i386/fpu/w_expf.c: New file.
28773         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28774         * sysdeps/x86_64/fpu/w_expf.c: New file.
28775
28776 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28777
28778         * math/Versions (logf): New libm symbol at GLIBC_2.27.
28779         (log2f): Likewise.
28780         (powf): Likewise.
28781         * math/w_log2f.c: New file.
28782         * math/w_logf.c: New file.
28783         * math/w_powf.c: New file.
28784         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28785         * math/w_logf_compat.c (__logf_compat): Likewise.
28786         * math/w_powf_compat.c (__powf_compat): Likewise.
28787         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28788         * sysdeps/ia64/fpu/e_logf.S: Likewise.
28789         * sysdeps/ia64/fpu/e_powf.S: Likewise.
28790         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28791         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28792         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28793         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28794         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28795         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28796         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28797         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28798         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28799         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28800         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28801         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28803         Likewise.
28804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28805         Likewise.
28806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28807         Likewise.
28808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28809         Likewise.
28810         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28811         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28812         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28813         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28814         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28815         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28816         Likewise.
28817         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28818         Likewise.
28819         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28820         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28821         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28822
28823 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28824
28825         * sysdeps/powerpc/powerpc64/multiarch/Makefile
28826         (sysdep_routines): Add memrchr_power8.
28827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28828         (memrchr): Add __memrchr_power8 to list of memrchr functions.
28829         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28830         New file.
28831         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28832         (memrchr): Add __memrchr_power8 to ifunc list.
28833         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28834
28835 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28836
28837         [BZ #18822]
28838         * sysdeps/unix/sysv/linux/posix_fadvise64.c
28839         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28840         libc_hidden_def.
28841         * sysdeps/unix/sysv/linux/posix_fallocate64.c
28842         (__posix_fallocate64_l64): Likewise.
28843
28844 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28845
28846         [BZ #18822]
28847         * sysdeps/unix/sysv/linux/sched_setaffinity.c
28848         (__sched_setaffinity_new): Add libc_hidden_proto and
28849         libc_hidden_def.
28850
28851 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28852
28853         [BZ #18822]
28854         * include/glob.h (__glob64): Add libc_hidden_proto.
28855         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28856         libc_hidden_def.
28857
28858 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28859
28860         [BZ #18822]
28861         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28862         attribute_hidden.
28863
28864 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28865
28866         [BZ #18822]
28867         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28868
28869 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28870
28871         [BZ #18822]
28872         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28873         libc_hidden_def.
28874
28875 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28876
28877         [BZ #18822]
28878         * csu/version.c (__libc_print_version): Add attribute_hidden.
28879
28880 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28881
28882         [BZ #18822]
28883         * include/libc-internal.h (__init_misc): Add attribute_hidden.
28884
28885 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28886
28887         [BZ #18822]
28888         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28889
28890 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28891
28892         [BZ #18822]
28893         * nscd/nscd_helper.c (__nis_hash): New prototype.
28894
28895 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28896
28897         [BZ #18822]
28898         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28899         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28900         libc_hidden_def.
28901         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28902         * termios/tcgetattr.c (__tcgetattr): Likewise.
28903
28904 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28905
28906         [BZ #18822]
28907         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28908         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28909         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28910         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28911         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28912
28913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28914
28915         [BZ #18822]
28916         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28917
28918 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28919
28920         [BZ #18822]
28921         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28922         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28923
28924 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28925
28926         [BZ #18822]
28927         * intl/hash-string.h (__hash_string): Add attribute_hidden.
28928
28929 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28930
28931         [BZ #18822]
28932         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28933         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28934
28935 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28936
28937         [BZ #18822]
28938         * include/ifreq.h: New file.
28939         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28940         (__ifreq): Likewise.
28941         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28942         (__ifreq): Likewise.
28943
28944 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28945
28946         [BZ #18822]
28947         * include/idna.h: New file.
28948         * inet/getnameinfo.c: Include <idna.h> instead of
28949         <libidn/idna.h>.
28950         (__idna_to_unicode_lzlz): Removed.
28951         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28952         <libidn/idna.h>.
28953         (__idna_to_ascii_lz): Removed.
28954         (__idna_to_unicode_lzlz): Likewise.
28955
28956 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28957
28958         [BZ #18822]
28959         * include/plural-exp.h: New file.
28960         * intl/plural-exp.c: Include <plural-exp.h> instead of
28961         "plural-exp.h".
28962
28963 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28964
28965         [BZ #18822]
28966         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28967         "getsourcefilter.h".
28968         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28969         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28970         "getsourcefilter.h".
28971         (__get_sol): Removed.
28972
28973 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28974
28975         [BZ #18822]
28976         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28977         to ...
28978         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28979
28980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28981
28982         [BZ #18822]
28983         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28984         attribute_hidden.
28985
28986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28987
28988         [BZ #18822]
28989         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28990
28991 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28992
28993         [BZ #18822]
28994         * include/search.h (__tdestroy): Add libc_hidden_proto.
28995         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28996
28997 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28998
28999         [BZ #18822]
29000         * include/assert.h (__assert_fail_base): Add attribute_hidden.
29001
29002 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29003
29004         [BZ #18822]
29005         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29006         attribute_hidden.
29007
29008 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29009
29010         [BZ #18822]
29011         * include/signal.h (__kill): Add libc_hidden_proto.
29012         (__sigblock): Likewise.
29013         (__sigprocmask): Likewise.
29014         (__sigaltstack): Likewise.
29015         * signal/kill.c (__kill): Add libc_hidden_def.
29016         * signal/sigblock.c (__sigblock): Likewise.
29017         * signal/sigprocmask.c (__sigprocmask): Likewise.
29018         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29019         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29020         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29021         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29022         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29023         Likewise.
29024         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29025         Likewise.
29026         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29027         (__sigprocmask): Likewise.
29028         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29029         Likewise.
29030         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29031         (__sigprocmask): Likewise.
29032         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29033         Likewise.
29034
29035 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29036
29037         [BZ #18822]
29038         * include/string.h (__strsep): Add libc_hidden_proto.
29039         * string/strsep.c (__strsep): Add libc_hidden_def.
29040
29041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29042
29043         [BZ #18822]
29044         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29045         attribute_hidden.
29046         (__spawni): Likewise.
29047
29048 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29049
29050         [BZ #18822]
29051         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29052         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29053         libc_hidden_def.
29054
29055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29056
29057         [BZ #18822]
29058         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29059
29060 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29061
29062         [BZ #18822]
29063         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29064         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29065         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29066         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29067         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29068         Likewise.
29069         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29070         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29071
29072 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29073
29074         [BZ #18822]
29075         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29076         (__dcigettext): Likewise.
29077
29078 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29079
29080         [BZ #18822]
29081         * include/sys/sysinfo.h (__get_nprocs_conf): Add
29082         libc_hidden_proto.
29083         (__get_nprocs): Likewise.
29084         (__get_phys_pages): Likewise.
29085         (__get_avphys_pages): Likewise.
29086         (__get_child_max): Add attribute_hidden.
29087         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29088         (__get_nprocs): Likewise.
29089         (__get_phys_pages): Likewise.
29090         (__get_avphys_pages): Likewise.
29091         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29092         libc_hidden_def.
29093         (__get_nprocs): Likewise.
29094         (__get_phys_pages): Likewise.
29095         (__get_avphys_pages): Likewise.
29096         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29097         libc_hidden_def.
29098         (__get_nprocs_conf): Likewise.
29099         (__get_phys_pages): Likewise.
29100         (__get_avphys_pages): Likewise.
29101
29102 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29103
29104         [BZ #18822]
29105         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29106         attribute_hidden.
29107         (__netlink_close): Likewise.
29108         (__netlink_free_handle): Likewise.
29109         (__netlink_request): Likewise.
29110
29111 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29112
29113         [BZ #18822]
29114         * include/rpc/rpc.h (__rpc_thread_variables): Add
29115         attribute_hidden.
29116         (__rpc_thread_svc_cleanup): Likewise.
29117         (__rpc_thread_clnt_cleanup): Likewise.
29118         (__rpc_thread_key_cleanup): Likewise.
29119
29120 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29121
29122         [BZ #18822]
29123         * include/sys/uio.h (__readv): Add libc_hidden_proto.
29124         (__writev): Likewise.
29125         * misc/readv.c (__readv): Add libc_hidden_def.
29126         * misc/writev.c (__writev): Likewise.
29127         * sysdeps/posix/readv.c (__readv): Likewise.
29128         * sysdeps/posix/writev.c (__writev): Likewise.
29129         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29130         (__readv): Likewise.
29131         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29132         (__writev): Likewise.
29133
29134 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29135
29136         [BZ #18822]
29137         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29138         (__regcomp): Add libc_hidden_proto.
29139         (__regexec): Likewise.
29140         (__regfree): Likewise.
29141         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29142         (__regfree): Likewise.
29143         * posix/regexec.c (__regexec): Likewise.
29144
29145 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29146
29147         [BZ #18822]
29148         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29149         (__getutent): Likewise.
29150         (__getutid): Likewise.
29151         (__getutline): Likewise.
29152         (__pututline): Likewise.
29153         (__getutent_r): Likewise.
29154         (__getutid_r): Likewise.
29155         (__getutline_r): Likewise.
29156         (__utmpname): Add attribute_hidden.
29157         (__setutent): Likewise.
29158         (__endutent): Likewise.
29159         * login/getutent.c (__getutent): Add libc_hidden_def.
29160         * login/getutent_r.c (__getutent_r): Likewise.
29161         (__pututline): Likewise.
29162         * login/getutid.c (__getutid): Likewise.
29163         * login/getutid_r.c (__getutid_r): Likewise.
29164         * login/getutline.c (__getutline): Likewise.
29165         * login/getutline_r.c (__getutline_r): Likewise.
29166         * login/updwtmp.c (__updwtmp): Likewise.
29167
29168 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29169
29170         [BZ #18822]
29171         * include/dirent.h (__opendir): Always add attribute_hidden.
29172         (__fdopendir): Likewise.
29173         (__closedir): Likewise.
29174         (__readdir): Likewise.
29175         (__readdir64): Add libc_hidden_proto.
29176         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29177         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29178         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29179         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29180         New alias.
29181
29182 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29183
29184         [BZ #18822]
29185         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29186         * include/netdb.h (__gethostbyaddr_r): Likewise.
29187         (__gethostbyname_r): Likewise.
29188         (__gethostbyname2_r): Likewise.
29189         (__getnetbyaddr_r): Likewise.
29190         (__getnetbyname_r): Likewise.
29191         (__getservbyname_r): Likewise.
29192         (__getservbyport_r): Likewise.
29193         (__getprotobyname_r): Likewise.
29194         (__getprotobynumber_r): Likewise.
29195         (__getnetgrent_r): Likewise.
29196         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29197         (__getrpcbynumber_r): Likewise.
29198         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29199
29200 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29201
29202         [BZ #18822]
29203         * include/stdio.h (__fcloseall): Add attribute_hidden.
29204         (__getline): Likewise.
29205         (__path_search): Likewise.
29206         (__gen_tempname): Likewise.
29207         (__libc_message): Likewise.
29208         (__flockfile): Likewise.
29209         (__funlockfile): Likewise.
29210         (__fxprintf): Likewise.
29211         (__fxprintf_nocancel): Likewise.
29212
29213 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29214
29215         [BZ #18822]
29216         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29217         (__sgetsgent_r): Likewise.
29218
29219 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29220
29221         [BZ #18822]
29222         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29223         (__statfs64): Likewise.
29224         (__fstatfs64): Likewise.
29225         * include/sys/statvfs.h (__statvfs64): Likewise.
29226         (__fstatvfs64): Likewise.
29227         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29228         (__statfs_filesize_max): Likewise.
29229         (__statfs_symlinks): Likewise.
29230         (__statfs_chown_restricted): Likewise.
29231
29232 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29233
29234         [BZ #18822]
29235         * include/time.h (__tzstring): Add attribute_hidden.
29236         (__tzfile_read): Likewise.
29237         (__tzfile_compute): Likewise.
29238         (__tzfile_default): Likewise.
29239         (__tzset_parse_tz): Likewise.
29240         (__offtime): Likewise.
29241         (__asctime_r): Likewise.
29242         (__tzset): Likewise.
29243         (__tz_convert): Likewise.
29244         (__getdate_r): Likewise.
29245         (__getclktck): Likewise.
29246
29247 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29248
29249         [BZ #18822]
29250         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29251         (__nscd_unmap): Likewise.
29252         (__nscd_cache_search): Likewise.
29253         (__nscd_get_nl_timestamp): Likewise.
29254         (__nscd_getpwnam_r): Likewise.
29255         (__nscd_getpwuid_r): Likewise.
29256         (__nscd_getgrnam_r): Likewise.
29257         (__nscd_getgrgid_r): Likewise.
29258         (__nscd_gethostbyname_r): Likewise.
29259         (__nscd_gethostbyname2_r): Likewise.
29260         (__nscd_gethostbyaddr_r): Likewise.
29261         (__nscd_getai): Likewise.
29262         (__nscd_getgrouplist): Likewise.
29263         (__nscd_getservbyname_r): Likewise.
29264         (__nscd_getservbyport_r): Likewise.
29265         (__nscd_innetgr): Likewise.
29266         (__nscd_setnetgrent): Likewise.
29267
29268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29269
29270         [BZ #18822]
29271         * include/gmp.h: Declare internal functions only if _ISOMAC is
29272         undefined.
29273         (__mpn_extract_double): Add attribute_hidden.
29274         (__mpn_extract_long_double): Likewise.
29275         (__mpn_extract_float128): Likewise.
29276         (__mpn_construct_float): Likewise.
29277         (__mpn_construct_double): Likewise.
29278         (__mpn_construct_long_double): Likewise.
29279         (__mpn_construct_float128): Likewise.
29280         (mpn_add_1): Likewise.
29281         (mpn_addmul_1): Likewise.
29282         (mpn_add_n): Likewise.
29283         (mpn_cmp): Likewise.
29284         (mpn_divrem): Likewise.
29285         (mpn_lshift): Likewise.
29286         (mpn_mul): Likewise.
29287         (mpn_mul_1): Likewise.
29288         (mpn_rshift): Likewise.
29289         (mpn_sub_1): Likewise.
29290         (mpn_submul_1): Likewise.
29291         (mpn_sub_n): Likewise.
29292
29293 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29294
29295         [BZ #18822]
29296         * include/wchar.h (__wcsnlen): Add attribute_hidden.
29297         (__wcscat): Likewise.
29298         (__btowc): Likewise.
29299         (__wcrtomb): Likewise.
29300         (__mbsrtowcs): Likewise.
29301         (__wcsrtombs): Likewise.
29302         (__mbsnrtowcs): Likewise.
29303         (__wcsnrtombs): Likewise.
29304         (__wcsncpy): Likewise.
29305         (__wcpncpy): Likewise.
29306         (__wmemcpy): Likewise.
29307         (__wmempcpy): Likewise.
29308         (__wmemmove): Likewise.
29309         (__wcschrnul): Likewise.
29310         (__vfwscanf): Likewise.
29311         (__vswprintf): Likewise.
29312         (__fwprintf): Likewise.
29313         (__vfwprintf): Likewise.
29314
29315 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29316
29317         [BZ #18822]
29318         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29319         (__getgrgid_r): Likewise.
29320         (__getgrnam_r): Likewise.
29321         * include/pwd.h (__getpwuid_r): Likewise.
29322         (__getpwnam_r): Likewise.
29323         (__fgetpwent_r): Likewise.
29324         * include/shadow.h (__getspnam_r): Likewise.
29325         (__sgetspent_r): Likewise.
29326         (__fgetspent_r): Likewise.
29327
29328 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29329
29330         [BZ #18822]
29331         * include/unistd.h (__access): Add attribute_hidden.
29332         (__lseek64): Likewise.
29333         (__libc_pread64): Likewise.
29334         (__pipe2): Likewise.
29335         (__sleep): Likewise.
29336         (__chdir): Likewise.
29337         (__fchdir): Likewise.
29338         (__getcwd): Likewise.
29339         (__rmdir): Likewise.
29340         (__execvpe): Likewise.
29341         (__execve): Likewise.
29342         (__setsid): Likewise.
29343         (__getuid): Likewise.
29344         (__geteuid): Likewise.
29345         (__getgid): Likewise.
29346         (__getegid): Likewise.
29347         (__getgroups): Likewise.
29348         (__group_member): Likewise.
29349         (__ttyname_r): Likewise.
29350         (__isatty): Likewise.
29351         (__readlink): Likewise.
29352         (__unlink): Likewise.
29353         (__gethostname): Likewise.
29354         (__profil): Likewise.
29355         (__getdtablesize): Likewise.
29356         (__brk): Likewise.
29357         (__ftruncate): Likewise.
29358         (__ftruncate64): Likewise.
29359
29360 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29361
29362         [BZ #18822]
29363         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29364         * argp/argp-fs-xinl.c: Likewise.
29365         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29366         * argp/argp-parse.c: Include <argp.h>.
29367         * argp/argp-xinl.c: Likewise.
29368         * include/argp-fmtstream.h: New file.
29369         * include/argp.h (__argp_error): Add attribute_hidden.
29370         (__argp_failure): Likewise.
29371         (__argp_input): Likewise.
29372         (__argp_state_help): Likewise.
29373
29374 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29375
29376         [BZ #18822]
29377         * include/wchar.h (____wcstof_l_internal): New prototype.
29378         (____wcstod_l_internal): Likewise.
29379         (____wcstold_l_internal): Likewise.
29380         (____wcstol_l_internal): Likewise.
29381         (____wcstoul_l_internal): Likewise.
29382         (____wcstoll_l_internal): Likewise.
29383         (____wcstoull_l_internal): Likewise.
29384         (____wcstof128_l_internal): Likewise.
29385         * sysdeps/ieee754/float128/wcstof128.c
29386         (____wcstof128_l_internal): Removed.
29387         * sysdeps/ieee754/float128/wcstof128_l.c
29388         (____wcstof128_l_internal): Likewise.
29389         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29390         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29391         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29392         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29393         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29394         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29395         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29396         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29397         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29398         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29399
29400 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29401
29402         [BZ #18822]
29403         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29404         instead of <sys/statvfs.h>.
29405         (__internal_statvfs): Removed.
29406         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29407         instead of <sys/statvfs.h>.
29408         (__internal_statvfs64): Removed.
29409         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29410         "internal_statvfs.h" instead of <sys/statvfs.h>.
29411         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29412         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29413         instead of <sys/statvfs.h>.
29414         (__internal_statvfs): Removed.
29415         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29416         instead of <sys/statvfs.h>.
29417         (__internal_statvfs64): Removed.
29418
29419 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29420
29421         [BZ #18822]
29422         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29423         (__gconv_close): Likewise.
29424         (__gconv): Likewise.
29425         (__gconv_find_transform): Likewise.
29426         (__gconv_lookup_cache): Likewise.
29427         (__gconv_compare_alias_cache): Likewise.
29428         (__gconv_load_cache): Likewise.
29429         (__gconv_get_path): Likewise.
29430         (__gconv_close_transform): Likewise.
29431         (__gconv_release_cache): Likewise.
29432         (__gconv_find_shlib): Likewise.
29433         (__gconv_release_shlib): Likewise.
29434         (__gconv_get_builtin_trans): Likewise.
29435         (__gconv_compare_alias): Likewise.
29436         * include/dlfcn.h (_dlerror_run): Likewise.
29437         * include/stdio.h (__fortify_fail_abort): Likewise.
29438         * include/time.h (__tz_compute): Likewise.
29439         (__strptime_internal): Likewise.
29440         * intl/gettextP.h (_nl_find_domain): Likewise.
29441         (_nl_load_domain): Likewise.
29442         (_nl_find_msg): Likewise.
29443         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29444         (EXTRACT_PLURAL_EXPRESSION): Likewise.
29445         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29446         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29447         (__gai_find_request): Likewise.
29448         (__gai_remove_request): Likewise.
29449         (__gai_notify): Likewise.
29450         (__gai_notify_only): Likewise.
29451         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29452         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29453         (_dl_non_dynamic_init): Likewise.
29454         (_dl_aux_init): Likewise.
29455         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29456         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29457         Likewise.
29458         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29459         (__wcsmbs_clone_conv): Likewise.
29460         (__wcsmbs_named_conv): Likewise.
29461
29462 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29463
29464         [BZ #18822]
29465         * include/stdlib.h (__random): Add attribute_hidden.
29466         (__random_r): Likewise.
29467         (__srandom_r): Likewise.
29468         (__initstate_r): Likewise.
29469         (__setstate_r): Likewise.
29470         (__erand48_r): Likewise.
29471         (__nrand48_r): Likewise.
29472         (__jrand48_r): Likewise.
29473         (__srand48_r): Likewise.
29474         (__seed48_r): Likewise.
29475         (__lcong48_r): Likewise.
29476         (__drand48_iterate): Likewise.
29477         (__setenv): Likewise.
29478         (__unsetenv): Likewise.
29479         (__clearenv): Likewise.
29480         (__ptsname_r): Likewise.
29481         (__posix_openpt): Likewise.
29482         (__add_to_environ): Likewise.
29483         (__realpath): Add libc_hidden_proto.
29484         (__ecvt_r): Likewise.
29485         (__fcvt_r): Likewise.
29486         (__qecvt_r): Likewise.
29487         (__qfcvt_r): Likewise.
29488         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29489         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29490
29491 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29492
29493         [BZ #18822]
29494         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29495         * include/time.h (__mktime_internal): Likewise.
29496         * libio/iolibio.h (__fopen_internal): Likewise.
29497
29498 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
29499
29500         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29501         pointer in frame.
29502         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29503         Correct offset used to restore PIC register.
29504
29505 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
29506
29507         [BZ libc/22165]
29508         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29509         code to load address of __getcontext_ret when generating PIC code.
29510
29511 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
29512
29513         * elf/Makefile (tests-static-internal): Add
29514         tst-tls1-static-non-pie.
29515         (LDFLAGS-tst-tls1-static-non-pie): New.
29516         * elf/tst-tls1-static-non-pie.c: New file.
29517
29518 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29519
29520         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29521         (asinh): Define using libm_alias_double.
29522         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29523         (cbrt): Define using libm_alias_double.
29524         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29525         <libm-alias-double.h>.
29526         (copysign): Define using libm_alias_double.
29527         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29528         (erf): Define using libm_alias_double.
29529         (erfc): Likewise.
29530         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29531         (expm1): Define using libm_alias_double.
29532         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29533         (fabs): Define using libm_alias_double.
29534         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29535         libm_alias_double.
29536         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29537         <libm-alias-double.h>.
29538         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29539         libm_alias_double.
29540         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29541         <libm-alias-double.h>.
29542         (getpayload): Define using libm_alias_double.
29543         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29544         <libm-alias-double.h>.
29545         (llrint): Define using libm_alias_double.
29546         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29547         (lrint): Define using libm_alias_double.
29548         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29549         <libm-alias-double.h>.
29550         (nextup): Define using libm_alias_double.
29551         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29552         <libm-alias-double.h>.
29553         (roundeven): Define using libm_alias_double.
29554         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29555         libm_alias_double.
29556         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29557         <libm-alias-double.h>.
29558         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29559         using libm_alias_double.
29560         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29561         (cos): Define using libm_alias_double.
29562         (sin): Likewise.
29563         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29564         <libm-alias-double.h>.
29565         (sincos): Define using libm_alias_double.
29566         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29567         (tanh): Define using libm_alias_double.
29568         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29569         <libm-alias-double.h>.
29570         (totalorder): Define using libm_alias_double.
29571         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29572         <libm-alias-double.h>.
29573         (totalordermag): Define using libm_alias_double.
29574         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29575         libm_alias_double.
29576         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29577         libm_alias_double.
29578         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29579         <libm-alias-double.h>.
29580         (getpayload): Define using libm_alias_double.
29581         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29582         <libm-alias-double.h>.
29583         (roundeven): Define using libm_alias_double.
29584         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29585         <libm-alias-double.h>.
29586         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29587         <libm-alias-double.h>.
29588         (totalorder): Define using libm_alias_double.
29589         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29590         <libm-alias-double.h>.
29591         (totalordermag): Define using libm_alias_double.
29592         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29593         libc compat symbol here.
29594         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29595         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29596         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29597         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29598         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29599         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29600         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29601         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29602         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29603         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29604
29605 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29606
29607         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29608         _dl_relocate_static_pie instead of _dl_start to compute load
29609         address in static PIE.  Return 0 if _DYNAMIC is undefined for
29610         static executable.
29611
29612 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29613
29614         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29615         _DYNAMIC is undefined for static executable.
29616
29617 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29618
29619         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29620
29621 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29622
29623         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29624
29625 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29626
29627         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29628         (__ieee754_lgamma_r): Use fabs rather than __fabs.
29629         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29630         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29631         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29632         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29633         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29634         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29635         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29636         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29637         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29638         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29639         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29640         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29641         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29642         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29643         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29644
29645 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29646
29647         * math/bits/cmathcalls.h (cimag): Remove inline.
29648         (creal): Remove inline.
29649         (conj): Remove inline.
29650
29651 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29652
29653         * math/Makefile (type-float-routines): Add e_powf_log2_data.
29654         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29655         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29656         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29657         (issignalingf_inline): Likewise.
29658         (POWF_LOG2_TABLE_BITS): Likewise.
29659         (POWF_LOG2_POLY_ORDER): Likewise.
29660         (POWF_SCALE_BITS): Likewise.
29661         (POWF_SCALE): Likewise.
29662         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29663         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29664         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29665
29666 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29667
29668         * math/Makefile (type-float-routines): Add e_log2f_data.
29669         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29670         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29671         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29672         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29673         * sysdeps/i386/fpu/e_log2f_data.c: New file.
29674         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29675         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29676
29677 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29678
29679         * math/Makefile (type-float-routines): Add e_logf_data.
29680         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29681         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29682         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29683         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29684         * sysdeps/i386/fpu/e_logf_data.c: New file.
29685         * sysdeps/ia64/fpu/e_logf_data.c: New file.
29686         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29687
29688 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
29689
29690         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29691         undefined _DYNAMIC in PIE libc.a.
29692         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29693         Likewse.
29694
29695 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29696
29697         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29698         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29699         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29700         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29701         (__signbit): Remove.
29702         (__signbitl): Remove.
29703         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29704         (__signbit): Remove.
29705         (__signbitl): Remove.
29706         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29707         (__signbit): Remove.
29708         (__signbitl): Remove.
29709         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29710         (__signbit): Remove.
29711         (__signbitl): Remove.
29712         * sysdeps/tile/bits/mathinline.h: Delete file.
29713         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29714         (__signbit): Remove.
29715         (__signbitl): Remove.
29716
29717 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29718
29719         * math/math.h: Improve handling of C99 isgreater macros.
29720         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29721         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29722         * sysdeps/powerpc/bits/mathinline.h: Likewise.
29723         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29724         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29725
29726 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29727
29728         * sysdeps/aarch64/libm-test-ulps: Update.
29729
29730 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
29731
29732         [BZ #22225]
29733         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29734         math_opt_barrier on argument when doing arithmetic on it.
29735         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29736         Likewise.  Use math_force_eval not math_opt_barrier after
29737         arithmetic.
29738         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29739         math_opt_barrier on argument when doing arithmetic on it.
29740         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29741         Likewise.
29742
29743 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
29744
29745         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29746         libc_hidden_def.
29747         (__freeifaddrs): Likewise.
29748
29749 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29750
29751         * include/dirent.h (__dirfd): New declaration.
29752         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29753         alias.
29754         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29755         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29756         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29757         * include/unistd.h (__revoke): New declaration.
29758         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29759         alias.
29760         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29761         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29762         revoke.
29763         * include/dirent.h (__seekdir): New declaration.
29764         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29765         redefine as weak alias.
29766         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29767         of seekdir.
29768         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29769         and use libc_hidden_def on them.
29770         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29771         them.
29772         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29773         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29774         instead of getifaddrs and freeifaddrs.
29775
29776 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29777
29778         [BZ #18822]
29779         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29780         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29781         (__dso_handle): Remove declaration.
29782         * dlfcn/tstatexit.c (__dso_handle): Removed.
29783         (main): Don't check __dso_handle.
29784         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29785         (main): Don't check __dso_handle.
29786         * include/dso_handle.h: New file.
29787         * malloc/mtrace.c: Include <dso_handle.h>.
29788         (mtrace): Pass __dso_handle directly.
29789         * nptl/pthread_atfork.c: Include <dso_handle.h>.
29790         (__dso_handle): Remove declaration.
29791         (__pthread_atfork): Pass __dso_handle directly.
29792         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29793         (__dso_handle): Removed.
29794         * posix/wordexp-test.c: Include <dso_handle.h>.
29795         (__dso_handle): Remove declaration.
29796         (__app_register_atfork): Pass __dso_handle directly.
29797         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29798         (__dso_handle): Remove declaration.
29799         (at_quick_exit): Pass __dso_handle directly.
29800         * stdlib/atexit.c: Include <dso_handle.h>.
29801         (__dso_handle): Remove declaration.
29802         (atexit): Pass __dso_handle directly.
29803         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29804         (__dso_handle): Removed.
29805
29806 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29807
29808         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29809         using VDSO.
29810
29811 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
29812
29813         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29814         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29815         values to correct default value for given type.
29816
29817 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29818
29819         [BZ #22101]
29820         * elf/Makefile (tests): Add tst-debug1.
29821         ($(objpfx)tst-debug1): New.
29822         ($(objpfx)tst-debug1.out): Likewise.
29823         ($(objpfx)tst-debug1mod1.so): Likewise.
29824         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29825         with p_filesz == 0.
29826         * elf/tst-debug1.c: New file.
29827
29828 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29829
29830         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29831         Define using __ifunc.
29832
29833 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29834
29835         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29836         exp2f() values.
29837
29838 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29839
29840         [BZ #22156]
29841         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29842
29843 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29844
29845         * resolv/Makefile (tests-internal): Fix typo in comment.
29846
29847 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29848
29849         * resolv/nss_dns/dns-host.c: Fix typo in comment.
29850
29851 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29852
29853         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29854         Use an union instead of a max_align_t array for __space,
29855         so that __space is the same size on all platforms.
29856         * malloc/scratch_buffer_grow_preserve.c
29857         (__libc_scratch_buffer_grow_preserve): Likewise.
29858
29859         [BZ #22183]
29860         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29861         version to 2.
29862         * posix/Makefile (routines): Add glob-lstat-compat and
29863         glob64-lstat-compat.
29864         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29865         * posix/glob-lstat-compat.c: New file.
29866         * posix/glob64-lstat-compat.c: Likewise.
29867         * posix/tst-glob_lstat_compat.c: Likewise.
29868         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29869         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29870         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29871         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29872         Likewise.
29873         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29874         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29875         * posix/glob.c (glob_lstat): New function.
29876         (glob): Rename to __glob and add versioned symbol to 2.27.
29877         (glob_in_dir): Use glob_lstat.
29878         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29879         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29880         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29881         2.27.
29882         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29883         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29884         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29885         gl_lstat on glob call.
29886         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29887         and glob64 symbols.
29888         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29889         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29890         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29891         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29892         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29893         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29894         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29895         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29896         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29897         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29898         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29899         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29901         Likewise.
29902         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29904         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29905         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29906         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29907         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29908         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29911         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29912         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29913         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29914
29915 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
29916
29917         * configure.ac (AS): Require binutils 2.25 or later.
29918         * configure: Regenerated.
29919
29920 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
29921
29922         [BZ #22207]
29923         * stdlib/test-atexit-race-common.c (do_test): Minimize required
29924         VM size.
29925
29926 2017-09-25  DJ Delorie  <dj@redhat.com>
29927
29928         [BZ #22161]
29929         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29930         resetting timeout.
29931
29932 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
29933
29934         * sysdeps/ieee754/dbl-64/sincos32.h
29935         [SINCCOS32_H]: Remove define.
29936         [SINCOS32_H]: Define.
29937
29938 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29939
29940         * math/Versions (expf): New libm symbol at GLIBC_2.27.
29941         (exp2f): Likewise.
29942         * math/w_exp2f.c: New file.
29943         * math/w_expf.c: New file.
29944         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29945         * math/w_expf_compat.c (__expf_compat): Likewise.
29946         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29947         * sysdeps/ia64/fpu/e_expf.S: Likewise.
29948         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29949         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29950         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29951         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29952         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29953         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29954         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29955         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29956         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29957         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29958         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29959         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29961         Likewise.
29962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29963         Likewise.
29964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29965         Likewise.
29966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29967         Likewise.
29968         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29969         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29970         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29971         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29972         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29973         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29974         Likewise.
29975         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29976         Likewise.
29977         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29978         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29979         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29980
29981 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29982
29983         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29984         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29985         (roundtoint, converttoint): Likewise.
29986         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29987         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29988         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29989         * sysdeps/ieee754/flt-32/math_config.h: New file.
29990         * sysdeps/ieee754/flt-32/math_errf.c: New file.
29991         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29992         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29993         * sysdeps/i386/fpu/math_errf.c: New file.
29994         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29995         * sysdeps/ia64/fpu/math_errf.c: New file.
29996         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29997         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29998
29999 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30000
30001         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30002         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30003         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30004         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30005         to make sure that these symbols are defined.
30006         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30007         of <limits.h>
30008         (__need_NULL): Do not define.
30009         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30010         alignment.
30011         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30012         CMGROUP_MAX, cmsgcred): Do not define.
30013         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30014         NULL.
30015         * bits/socket.h: Likewise.
30016         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30017         __gettimeofday instead of gettimeofday.
30018         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30019         instead of settimeofday.
30020
30021 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30022
30023         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30024         (asinhf): Define using libm_alias_float.
30025         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30026         (atanf): Define using libm_alias_float.
30027         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30028         (cbrtf): Define using libm_alias_float.
30029         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30030         (ceilf): Define using libm_alias_float.
30031         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30032         <libm-alias-float.h>.
30033         (copysignf): Define using libm_alias_float.
30034         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30035         (cosf): Define using libm_alias_float.
30036         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30037         (erff): Define using libm_alias_float.
30038         (erfcf): Likewise.
30039         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30040         (expm1f): Define using libm_alias_float.
30041         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30042         (fabsf): Define using libm_alias_float.
30043         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30044         (floorf): Define using libm_alias_float.
30045         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30046         (frexpf): Define using libm_alias_float.
30047         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30048         libm_alias_float.
30049         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30050         <libm-alias-float.h>.
30051         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30052         libm_alias_float.
30053         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30054         <libm-alias-float.h>.
30055         (getpayloadf): Define using libm_alias_float.
30056         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30057         <libm-alias-float.h>.
30058         (llrintf): Define using libm_alias_float.
30059         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30060         <libm-alias-float.h>.
30061         (llroundf): Define using libm_alias_float.
30062         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30063         (logbf): Define using libm_alias_float.
30064         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30065         (lrintf): Define using libm_alias_float.
30066         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30067         (lroundf): Define using libm_alias_float.
30068         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30069         (modff): Define using libm_alias_float.
30070         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30071         <libm-alias-float.h>.
30072         (nearbyintf): Define using libm_alias_float.
30073         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30074         <libm-alias-float.h>.
30075         (nextafterf): Define using libm_alias_float.
30076         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30077         <libm-alias-float.h>.
30078         (nextupf): Define using libm_alias_float.
30079         * sysdeps/ieee754/flt-32/s_remquof.c: Include
30080         <libm-alias-float.h>.
30081         (remquof): Define using libm_alias_float.
30082         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30083         (rintf): Define using libm_alias_float.
30084         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30085         <libm-alias-float.h>.
30086         (roundevenf): Define using libm_alias_float.
30087         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30088         (roundf): Define using libm_alias_float.
30089         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30090         using libm_alias_float.
30091         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30092         <libm-alias-float.h>.
30093         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30094         Define using libm_alias_float.
30095         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30096         <libm-alias-float.h>.
30097         (sincosf): Define using libm_alias_float.
30098         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30099         (sinf): Define using libm_alias_float.
30100         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30101         (tanf): Define using libm_alias_float.
30102         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30103         (tanhf): Define using libm_alias_float.
30104         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30105         <libm-alias-float.h>.
30106         (totalorderf): Define using libm_alias_float.
30107         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30108         <libm-alias-float.h>.
30109         (totalordermagf): Define using libm_alias_float.
30110         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30111         (truncf): Define using libm_alias_float.
30112         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30113         libm_alias_float.
30114         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30115         libm_alias_float.
30116
30117 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30118
30119         [BZ #22146]
30120         math/math.h: Let fpclassify use the builtin in C++ mode, even
30121         when optimazing for size.
30122
30123 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
30124
30125         * csu/Makefile (generated): Do not add version-info.h.
30126         (before-compile): Likewise.
30127         (all-Banner-files): Remove variable.
30128         ($(objpfx)version-info.h): Remove rule.
30129         * csu/version.c (banner): Do not include "version-info.h".
30130         * libidn/Banner: Remove.
30131         * manual/contrib.texi (Simon Josefsson): New entry.
30132
30133 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30134
30135         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30136         Remove conditionals on LDBL_MANT_DIG.
30137         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30138         (__ieee754_lgammal_r): Likewise.
30139
30140 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30141
30142         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30143         _Float128 and L().
30144         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30145         _Float128 and L(). Replace _Float128 with long double and L(x)
30146         with xL, throughout the file.
30147         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30148         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30149         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30150         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30151
30152 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30153
30154         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30155         sysdeps/ieee754/ldbl-128ibm.
30156         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30157         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30158         of including it.  Keep _Float128 and L() intact.  These will be
30159         reviewed by a separate patch.
30160         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30161         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30162         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30163         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30164
30165 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30166
30167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30168         (__finitef128): Define to __redirect___finitef128.
30169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30170         (__isinff128): Define to __redirect___isinff128.
30171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30172         (__isnanf128): Define to __redirect___isnanf128.
30173
30174 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
30175
30176         * sysdeps/powerpc/powerpc64le/Makefile
30177         (CFLAGS-tst-strtod-nan-locale.c): New variable.
30178         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30179
30180 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
30181             Carlos O'Donell  <carlos@redhat.com>
30182
30183         [BZ #22180]
30184         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30185         * stdlib/test-dlclose-exit-race.c: New file.
30186         * stdlib/test-dlclose-exit-race-helper.c: New file.
30187         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30188
30189 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
30190
30191         * crypt/Banner: Remove file.
30192         * nptl/Banner: Likewise.
30193         * resolv/Banner: Likewise.
30194         * soft-fp/Banner: Likewise.
30195         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30196         ($(objpfx)version.d): Remove dependency on banner.h.
30197         ($(objpfx)version.os): Likewise.
30198         * nptl/version.c (banner): Do not include banner.h.
30199         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30200         Jelinek and BIND code.
30201
30202 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30203             Carlos O'Donell  <carlos@redhat.com>
30204
30205         * support/xdlfcn.h: New file.
30206         * support/xdlfcn.c: New file.
30207         * support/Makefile (libsupport-routines): Add xdlfcn.
30208         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30209
30210 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
30211
30212         [BZ #20142]
30213         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30214         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30215         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30216         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30217         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30218         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30219         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30220         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30221
30222 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
30223             Ricky Zhou  <rickyz@google.com>
30224             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
30225
30226         [BZ #14333]
30227         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30228         Remove atomics.
30229         (__new_exitfn): Fail registration when we finished at_exit processing.
30230         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30231         * stdlib/on_exit.c (__on_exit): Likewise.
30232         * stdlib/exit.c (__exit_funcs_done): New variable.
30233         (__run_exit_handlers): Use __exit_funcs_lock.
30234         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30235         declarations.
30236         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30237         (test-cxa_atexit-race, test-on_exit-race): New tests.
30238         * stdlib/test-atexit-race-common.c: New file.
30239         * stdlib/test-atexit-race.c: New file.
30240         * stdlib/test-at_quick_exit-race.c: New file.
30241         * stdlib/test-cxa_atexit-race.c: New file.
30242         * stdlib/test-on_exit-race.c: New file.
30243
30244 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30245
30246         * benchtests/Makefile: Add exp2f and log2f benchmarks.
30247         * benchtests/exp2f-inputs: Copy of expf-inputs.
30248         * benchtests/log2f-inputs: Copy of logf-inputs.
30249
30250 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30251
30252         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30253         Explicitly take address of first element of array arguments in
30254         call to INLINE_SYSCALL.
30255
30256 2017-09-19  Andreas Schwab  <schwab@suse.de>
30257
30258         [BZ #22134]
30259         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30260         execveat first.
30261         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30262         unimplemented.
30263         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30264         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30265         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30266         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30267         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30268         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30269         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30270         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30271         * posix/Makefile (tests): Add tst-fexecve.
30272         * posix/tst-fexecve.c: New file.
30273
30274 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30275
30276         * benchtests/Makefile: Add logf benchmark.
30277         * benchtests/logf-inputs: Add reduced trace from wrf_r.
30278
30279 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30280
30281         * benchtests/Makefile: Add expf benchmark.
30282         * benchtests/expf-inputs: Add reduced trace from wrf_r.
30283
30284 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
30285
30286         * csu/Makefile: Add -funwind-tables to libc-start.c.
30287         * debug/Makefile: Add -funwind-tables to backtrace.c.
30288         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30289         * sysdeps/arm/Makefile: Likewise.
30290         * sysdeps/i386/Makefile: Likewise.
30291         * sysdeps/m68k/Makefile: Likewise.
30292         * sysdeps/mips/Makefile: Likewise.
30293         * sysdeps/nios2/Makefile: Likewise.
30294         * sysdeps/sh/Makefile: Likewise.
30295         * sysdeps/sparc/Makefile: Likewise.
30296
30297 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
30298
30299         * benchtests/Makefile (bench-math): Add trunc and truncf.
30300         (CFLAGS-bench-trunc.c): New variable.
30301         (CFLAGS-bench-truncf.c): Likewise.
30302         * benchtests/trunc-inputs: New file.
30303         * benchtests/truncf-inputs: Likewise.
30304
30305 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
30306
30307         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30308
30309 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
30310
30311         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30312         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30313         redefine.
30314         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30315         (exp10l): Define as weak alias.
30316         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30317         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30318         and redefine.
30319         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30320         (remainderl): Define as weak alias.
30321
30322         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30323         (fmal): Define using libm_alias_ldouble.
30324         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30325         (acoshl): Define using libm_alias_ldouble.
30326         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30327         (acosl): Define using libm_alias_ldouble.
30328         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30329         (asinl): Define using libm_alias_ldouble.
30330         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30331         (atan2l): Define using libm_alias_ldouble.
30332         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30333         (atanhl): Define using libm_alias_ldouble.
30334         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30335         (coshl): Define using libm_alias_ldouble.
30336         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30337         (exp10l): Define using libm_alias_ldouble.
30338         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30339         (exp2l): Define using libm_alias_ldouble.
30340         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30341         (expl): Define using libm_alias_ldouble.
30342         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30343         (fmodl): Define using libm_alias_ldouble.
30344         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30345         (hypotl): Define using libm_alias_ldouble.
30346         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30347         (j0l): Define using libm_alias_ldouble.
30348         (y0l): Likewise.
30349         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30350         (j1l): Define using libm_alias_ldouble.
30351         (y1l): Likewise.
30352         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30353         (jnl): Define using libm_alias_ldouble.
30354         (ynl): Likewise.
30355         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30356         (log10l): Define using libm_alias_ldouble.
30357         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30358         (log2l): Define using libm_alias_ldouble.
30359         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30360         (logl): Define using libm_alias_ldouble.
30361         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30362         (powl): Define using libm_alias_ldouble.
30363         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30364         (remainderl): Define using libm_alias_ldouble.
30365         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30366         (sinhl): Define using libm_alias_ldouble.
30367         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30368         (sqrtl): Define using libm_alias_ldouble.
30369         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30370         (tgammal): Define using libm_alias_ldouble.
30371         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30372         (exp10l): Do not use long_double_symbol here.
30373         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30374         [LIBM_SVID_COMPAT] (remainderl): Likewise.
30375         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30376         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30377         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30378         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30379         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30380         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30381         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30382         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30383         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30384         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30385         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30386         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30387         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30388         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30389         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30390         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30391         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30392         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30393         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30394         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30395
30396 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
30397
30398         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30399         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30400
30401 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30402
30403         * io/read.c (read): Add libc_hidden_weak.
30404         * sysdeps/mach/hurd/read.c (read): Likewise.
30405         * io/write.c (write): Likewise.
30406         * sysdeps/mach/hurd/write.c (write): Likewise.
30407         * io/pread64.c (__pread64): Likewise.
30408         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30409         * posix/pread64.c (__pread64): Add libc_hidden_def.
30410
30411 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30412
30413         * benchtests/scripts/compare_strings.py: New option -g.
30414         (draw_graph): Print a message that a graph is being generated.
30415         (process_results): Generate graph only if -g is passed.
30416         (main): Process option -g.
30417
30418         * benchtests/scripts/compare_strings.py (process_results):
30419         Better spacing for output.
30420
30421         * benchtests/scripts/compare_strings.py: Use argparse.
30422         * benchtests/README: Document existence of compare_strings.py.
30423
30424 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30425
30426         * math/s_fma.c: Include <libm-alias-double.h>.
30427         (fma): Define using libm_alias_double.
30428         * math/s_nextafter.c: Include <libm-alias-double.h>.
30429         (nextafter): Define using libm_alias_double.
30430         * math/w_acos_compat.c: Include <libm-alias-double.h>.
30431         (acos): Define using libm_alias_double.
30432         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30433         (aocsh): Define using libm_alias_double.
30434         * math/w_asin_compat.c: Include <libm-alias-double.h>.
30435         (asin): Define using libm_alias_double.
30436         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30437         (atan2): Define using libm_alias_double.
30438         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30439         (atanh): Define using libm_alias_double.
30440         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30441         (cosh): Define using libm_alias_double.
30442         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30443         (exp10): Define using libm_alias_double.
30444         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30445         (exp2): Define using libm_alias_double.
30446         * math/w_exp_compat.c: Include <libm-alias-double.h>.
30447         (exp): Define using libm_alias_double.
30448         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30449         (fmod): Define using libm_alias_double.
30450         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30451         (hypot): Define using libm_alias_double.
30452         * math/w_j0_compat.c: Include <libm-alias-double.h>.
30453         (j0): Define using libm_alias_double.
30454         (y0): Likewise.
30455         * math/w_j1_compat.c: Include <libm-alias-double.h>.
30456         (j1): Define using libm_alias_double.
30457         (y1): Likewise.
30458         * math/w_jn_compat.c: Include <libm-alias-double.h>.
30459         (jn): Define using libm_alias_double.
30460         (yn): Likewise.
30461         * math/w_log10_compat.c: Include <libm-alias-double.h>.
30462         (log10): Define using libm_alias_double.
30463         * math/w_log2_compat.c: Include <libm-alias-double.h>.
30464         (log2): Define using libm_alias_double.
30465         * math/w_log_compat.c: Include <libm-alias-double.h>.
30466         (log): Define using libm_alias_double.
30467         * math/w_pow_compat.c: Include <libm-alias-double.h>.
30468         (pow): Define using libm_alias_double.
30469         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30470         (remainder): Define using libm_alias_double.
30471         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30472         (sinh): Define using libm_alias_double.
30473         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30474         (sqrt): Define using libm_alias_double.
30475         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30476         (tgamma): Define using libm_alias_double.
30477         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30478         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30479         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30480         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30481         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30482         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30483         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30484         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30485         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30486         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30487         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30488         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30489         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30490         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30491         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30492         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30493         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30494         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30495         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30496         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30497         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30498         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30499         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30500         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30501         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30502
30503         * math/e_acoshl.c: Remove.
30504         * math/e_acosl.c: Likewise.
30505         * math/e_asinl.c: Likewise.
30506         * math/e_atan2l.c: Likewise.
30507         * math/e_atanhl.c: Likewise.
30508         * math/e_coshl.c: Likewise.
30509         * math/e_expl.c: Likewise.
30510         * math/e_fmodl.c: Likewise.
30511         * math/e_gammal_r.c: Likewise.
30512         * math/e_hypotl.c: Likewise.
30513         * math/e_j0l.c: Likewise.
30514         * math/e_j1l.c: Likewise.
30515         * math/e_jnl.c: Likewise.
30516         * math/e_lgammal_r.c: Likewise.
30517         * math/e_log10l.c: Likewise.
30518         * math/e_log2l.c: Likewise.
30519         * math/e_logl.c: Likewise.
30520         * math/e_powl.c: Likewise.
30521         * math/e_rem_pio2l.c: Likewise.
30522         * math/e_sinhl.c: Likewise.
30523         * math/e_sqrtf128.c: Likewise.
30524         * math/e_sqrtl.c: Likewise.
30525         * math/k_cosl.c: Likewise.
30526         * math/k_sinl.c: Likewise.
30527         * math/k_tanl.c: Likewise.
30528         * math/s_asinhl.c: Likewise.
30529         * math/s_atanl.c: Likewise.
30530         * math/s_cbrtl.c: Likewise.
30531         * math/s_erfl.c: Likewise.
30532         * math/s_expm1l.c: Likewise.
30533         * math/s_log1pl.c: Likewise.
30534         * math/s_tanhl.c: Likewise.
30535
30536 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30537
30538         [BZ #21745]
30539         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30540         [$(subdir) = math] (sysdep_calls): New variable.  Has the
30541         previous contents of sysdep_routines, but re-sorted..
30542         [$(subdir) = math] (sysdep_routines): Re-use the contents from
30543         sysdep_calls.
30544         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30545         defined in sysdep_calls and replace by the respective m_* names.
30546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30547         (compat_symbol): Undefine to avoid duplicated compat symbols in
30548         libc.
30549
30550 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30551
30552         * math/s_fmaf.c: Include <libm-alias-float.h>.
30553         (fmaf): Define using libm_alias_float.
30554         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30555         (acosf): Define using libm_alias_float.
30556         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30557         (acoshf): Define using libm_alias_float.
30558         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30559         (asinf): Define using libm_alias_float.
30560         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30561         (atan2f): Define using libm_alias_float.
30562         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30563         (atanhf): Define using libm_alias_float.
30564         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30565         (coshf): Define using libm_alias_float.
30566         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30567         (exp10f): Define using libm_alias_float.
30568         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30569         (fmodf): Define using libm_alias_float.
30570         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30571         (hypotf): Define using libm_alias_float.
30572         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30573         (j0f): Define using libm_alias_float.
30574         (y0f): Likewise.
30575         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30576         (j1f): Define using libm_alias_float.
30577         (y1f): Likewise.
30578         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30579         (jnf): Define using libm_alias_float.
30580         (ynf): Likewise.
30581         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30582         (log10f): Define using libm_alias_float.
30583         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30584         (log2f): Define using libm_alias_float.
30585         * math/w_logf_compat.c: Include <libm-alias-float.h>.
30586         (logf): Define using libm_alias_float.
30587         * math/w_powf_compat.c: Include <libm-alias-float.h>.
30588         (powf): Define using libm_alias_float.
30589         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30590         (remainderf): Define using libm_alias_float.
30591         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30592         (sinhf): Define using libm_alias_float.
30593         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30594         (sqrtf): Define using libm_alias_float.
30595         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30596         (tgammaf): Define using libm_alias_float.
30597
30598 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30599
30600         * include/math.h (roundeven): Change hidden_proto call to
30601         __roundeven.
30602         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30603         alias.
30604         [NO_LONG_DOUBLE] (__j0l): New strong alias.
30605         (y0): Rename to __y0 and define as weak alias.
30606         [NO_LONG_DOUBLE] (__y0l): New strong alias.
30607         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30608         alias.
30609         (y0f): Rename to __y0f and define as weak alias.
30610         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30611         alias.
30612         [NO_LONG_DOUBLE] (__j1l): New strong alias.
30613         (y1): Rename to __y1 and define as weak alias.
30614         [NO_LONG_DOUBLE] (__y1l): New strong alias.
30615         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30616         alias.
30617         (y1f): Rename to __y1f and define as weak alias.
30618         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30619         alias.
30620         [NO_LONG_DOUBLE] (__jnl): New strong alias.
30621         (yn): Rename to __yn and define as weak alias.
30622         [NO_LONG_DOUBLE] (__ynl): New strong alias.
30623         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30624         alias.
30625         (ynf): Rename to __ynf and define as weak alias.
30626         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30627         (fromfp): Define as weak alias.
30628         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30629         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30630         (fromfpx): Define as weak alias.
30631         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30632         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30633         __getpayload and define as weak alias.
30634         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30635         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30636         __roundeven and define as weak alias.
30637         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30638         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30639         __setpayload.
30640         (setpayload): Define as weak alias.
30641         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30642         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30643         __setpayloadsig.
30644         (setpayloadsig): Define as weak alias.
30645         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30646         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30647         __totalorder and define as weak alias.
30648         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30649         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30650         to __totalordermag and define as weak alias.
30651         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30652         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30653         (ufromfp): Define as weak alias.
30654         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30655         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30656         __ufromfpx.
30657         (ufromfpx): Define as weak alias.
30658         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30659         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30660         Rename to __getpayload and define as weak alias.
30661         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30662         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30663         Rename to __roundeven and define as weak alias.
30664         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30665         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30666         Rename to __totalorder and define as weak alias.
30667         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30668         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30669         (totalordermag): Rename to __totalordermag and define as weak
30670         alias.
30671         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30672         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30673         macro.
30674         (__roundevenl): Likewise.
30675         (__totalorderl): Likewise.
30676         (__totalordermagl): Likewise
30677         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30678         __fromfpf128.
30679         (fromfpf128): Define as weak alias.
30680         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30681         __fromfpxf128.
30682         (fromfpxf128): Define as weak alias.
30683         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30684         __setpayloadf128.
30685         (setpayloadf128): Define as weak alias.
30686         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30687         __setpayloadsigf128.
30688         (setpayloadsigf128): Define as weak alias.
30689         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30690         __ufromfpf128.
30691         (ufromfpf128): Define as weak alias.
30692         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30693         __ufromfpxf128.
30694         (ufromfpxf128): Define as weak alias.
30695         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30696         (fromfpf): Define as weak alias.
30697         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30698         __fromfpxf.
30699         (fromfpxf): Define as weak alias.
30700         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30701         __getpayloadf and define as weak alias.
30702         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30703         __roundevenf and define as weak alias.
30704         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30705         __setpayloadf.
30706         (setpayloadf): Define as weak alias.
30707         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30708         __setpayloadsigf.
30709         (setpayloadsigf): Define as weak alias.
30710         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30711         __totalorderf and define as weak alias.
30712         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30713         Rename to __totalordermagf and define as weak alias.
30714         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30715         __ufromfpf.
30716         (ufromfpf): Define as weak alias.
30717         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30718         __ufromfpxf.
30719         (ufromfpxf): Define as weak alias.
30720         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30721         __fromfpl.
30722         (fromfpl): Define as weak alias.
30723         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30724         __fromfpxl.
30725         (fromfpxl): Define as weak alias.
30726         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30727         to __getpayloadl and define as weak alias.
30728         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30729         __roundevenl and define as weak alias.
30730         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30731         __setpayloadl.
30732         (setpayloadl): Define as weak alias.
30733         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30734         __setpayloadsigl.
30735         (setpayloadsigl): Define as weak alias.
30736         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30737         to __totalorderl and define as weak alias.
30738         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30739         Rename to __totalordermagl and define as weak alias.
30740         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30741         __ufromfpl.
30742         (ufromfpl): Define as weak alias.
30743         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30744         __ufromfpxl.
30745         (ufromfpxl): Define as weak alias.
30746         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30747         __fromfpl.
30748         (fromfpl): Define as weak alias.
30749         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30750         __fromfpxl.
30751         (fromfpxl): Define as weak alias.
30752         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30753         Rename to __getpayloadl and define as weak alias.
30754         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30755         to __roundevenl and define as weak alias.  Call __roundeven
30756         instead of roundeven.
30757         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30758         __setpayloadl.
30759         (setpayloadl): Define as weak alias.
30760         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30761         __setpayloadsigl.
30762         (setpayloadsigl): Define as weak alias.
30763         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30764         Rename to __totalorderl and define as weak alias.
30765         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30766         Rename to __totalordermagl and define as weak alias.
30767         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30768         __ufromfpl.
30769         (ufromfpl): Define as weak alias.
30770         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30771         __ufromfpxl.
30772         (ufromfpxl): Define as weak alias.
30773         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30774         __fromfpl.
30775         (fromfpl): Define as weak alias.
30776         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30777         __fromfpxl.
30778         (fromfpxl): Define as weak alias.
30779         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30780         __getpayloadl and define as weak alias.
30781         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30782         __roundevenl and define as weak alias.
30783         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30784         __setpayloadl.
30785         (setpayloadl): Define as weak alias.
30786         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30787         __setpayloadsigl.
30788         (setpayloadsigl): Define as weak alias.
30789         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30790         __totalorderl and define as weak alias.
30791         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30792         Rename to __totalordermagl and define as weak alias.
30793         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30794         __ufromfpl.
30795         (ufromfpl): Define as weak alias.
30796         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30797         __ufromfpxl.
30798         (ufromfpxl): Define as weak alias.
30799
30800 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30801
30802         * benchtests/bench-string.h (realloc_bufs): New function.
30803         (test_init): Call it.
30804         * benchtests/bench-memset-large.c (do_test): Likewise.
30805         * benchtests/bench-memset.c (do_test): Likewise.
30806
30807         * benchtests/bench-memset-large.c: Print output in JSON
30808         format.
30809         * benchtests/bench-memset.c: Likewise.
30810
30811 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30812
30813         [BZ #21084]
30814         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30815         * iconvdata/Makefile: Add IBM858.
30816         * iconvdata/gconv-modules: Likewise.
30817         * iconvdata/tst-tables.sh: Likewise.
30818         * iconvdata/ibm858.c: New file.
30819         * localedata/charmaps/IBM858: Likewise.
30820
30821 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
30822
30823         [BZ #22023]
30824         * locales/niu_NZ (LC_TIME): copy "niu_NU".
30825         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30826
30827 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30828
30829         [BZ #22112]
30830         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30831         and add tel_int_fmt.
30832
30833 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30834
30835         * sysdeps/generic/libm-alias-float128.h: New file.
30836         * sysdeps/generic/math-type-macros-float128.h: Include
30837         <libm-alias-float128.h>.
30838         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30839
30840 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30841
30842         * sysdeps/generic/libm-alias-ldouble.h: New file.
30843         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30844         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30845         * sysdeps/generic/math-type-macros-ldouble.h: Include
30846         <libm-alias-ldouble.h>.
30847         [!declare_mgen_alias] (declare_mgen_alias): Define to use
30848         libm_alias_ldouble.
30849
30850 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30851
30852         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30853         * math/w_exp_compat.c: ... here.
30854         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30855         * math/w_expf_compat.c: ... here.
30856         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30857         * math/w_expl_compat.c: ... here.
30858         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30859         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30860         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30861         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30862
30863 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30864
30865         * math/w_scalbln_template.c (strong_alias): Do not undefine and
30866         redefine.
30867         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30868         macro.
30869         (ldexpl): Only define as compat symbol for libc, not libm.
30870         (scalbnl): Define as compat symbol for libc here.
30871         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30872         define for [IS_IN (libc)].
30873         (__ldexpl_2): Remove alias.
30874         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30875         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
30876         name in long_double_symbol call.
30877         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30878         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30879         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30880         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30881         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30882         Remove macro.
30883         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30884         Define as compat symbol.
30885
30886 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30887
30888         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30889         * sysdeps/unix/sysv/linux/alpha/Makefile
30890         [$(subdir) = csu] (sysdep_routines): Remove rule.
30891
30892 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30893
30894         * sysdeps/generic/libm-alias-double.h: New file.
30895         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30896         * sysdeps/generic/math-type-macros-double.h: Include
30897         <libm-alias-double.h>.
30898         [declare_mgen_alias] (declare_mgen_alias): Define to use
30899         libm_alias_double.
30900         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30901         (M_LIBM_NEED_COMPAT): Remove macro.
30902         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30903         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30904         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30905         code.
30906         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30907         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30908         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30909         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30910         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30911         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30912         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30913         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30914         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30915         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30916         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30917         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30918         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30919         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30920         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30921         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30922         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30923         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30924         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30925         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30926         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30927         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30928         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30929         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30930         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30931         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30932         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30933         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30934         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30935         macro.
30936         (declare_mgen_alias): New macro.
30937         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30938         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30940         (M_LIBM_NEED_COMPAT): Remove macro.
30941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30942         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30943         <first-versions.h>.
30944         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30945         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30946
30947 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
30948
30949         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30950         (declare_mgen_alias_2): Remove.
30951         * sysdeps/generic/math-type-macros-double.h
30952         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30953         Likewise.
30954         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30955         alias.
30956         (ldexp): Define with declare_mgen_alias.
30957         (scalbn): Likewise.
30958
30959 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
30960
30961         * grp/initgroups.c: Include config.h.
30962         (DEFAULT_CONFIG): New macro.
30963         (internal_getgrouplist): Use DEFAULT_CONFIG.
30964         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30965         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30966         (DEFAULT_DEFCONFIG): New macro.
30967         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30968         * nss/grp-lookup.c: Include config.h
30969         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30970         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30971         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30972         * manual/nss.texi: Update default values section.
30973
30974 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
30975
30976         [BZ #21967]
30977         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30978         New.
30979         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30980         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30981         Handle MathVec_Prefer_No_AVX512.
30982         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30983         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30984         is set.
30985
30986 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30987
30988         * posix/sched_primax.c (__sched_get_priority_max): Add
30989         libc_hidden_def.
30990         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30991         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30992         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30993         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30994         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30995         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30996         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30997         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30998         Add aliases.
30999
31000 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
31001
31002         * sysdeps/generic/libm-alias-float.h: New file.
31003         * sysdeps/generic/math-type-macros-float.h: Include
31004         <libm-alias-float.h>.
31005         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31006
31007 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
31008
31009         [BZ #22093]
31010         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31011         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31012         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31013         (HWCAP_IMPORTANT): Likewise.
31014         (HWCAP_X86_64): New enum.
31015         (HWCAP_X86_AVX512_1): Updated.
31016         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31017         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31018         (modules-names): Add x86_64/tst-x86_64mod-1.
31019         (LDFLAGS-tst-x86_64mod-1.so): New.
31020         ($(objpfx)tst-x86_64-1): Likewise.
31021         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31022         (tst-x86_64-1-clean): Likewise.
31023         * sysdeps/x86_64/tst-x86_64-1.c: New file.
31024         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31025
31026 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31027
31028         * po/sv.po: Update translations.
31029         * po/fr.po: Likewise.
31030
31031 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31032
31033         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31034         seconds.
31035         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31036         seconds.
31037         * elf/rtld-Rules: Fix $(error) use.
31038
31039 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
31040
31041         [BZ #14925]
31042         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31043         * locale/iso-639.def: Change “Bengali” to “Bangla”.
31044         * localedata/locales/bn_BD: “Bengali” was still used in some
31045         comments. Change it to “Bangla”.
31046
31047 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
31048
31049         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31050
31051 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31052
31053         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31054         thunderx2t99p1 to list of cpu names.
31055         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31056         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31057
31058 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
31059
31060         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31061         Use strcmp instead of tunable_is_name.
31062
31063 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
31064
31065         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31066         (F_GET_RW_HINT): New macro.
31067         [__USE_GNU] (F_SET_RW_HINT): Likewise.
31068         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31069         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31070         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31071         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31072         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31073         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31074         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31075         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31076
31077         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31078         (F_ADD_SEALS): New macro.
31079         [__USE_GNU] (F_GET_SEALS): Likewise.
31080         [__USE_GNU] (F_SEAL_SEAL): Likewise.
31081         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31082         [__USE_GNU] (F_SEAL_GROW): Likewise.
31083         [__USE_GNU] (F_SEAL_WRITE): Likewise.
31084
31085 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31086
31087         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31088         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31089         * posix/glob_internal.h (__glob_pattern_type):
31090         * posix/glob.c (glob):
31091         * posix/glob_pattern_p.c (__glob_pattern_p):
31092         Use them.
31093
31094         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31095         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31096         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31097         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31098         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31100         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31101         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31102         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31103         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31104         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31105         * sysdeps/wordsize-64/glob.c: Likewise.
31106         * sysdeps/wordsize-64/glob64.c: Likewise.
31107         * sysdeps/wordsize-64/globfree.c: Likewise.
31108         * sysdeps/wordsize-64/globfree64.c: Likewise.
31109         * sysdeps/unix/sysv/linux/glob.c: New file.
31110         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31111         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31112         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31113         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31114         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31115         adds !GLOB_NO_OLD_VERSION as an extra condition.
31116         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31117         using relative path instead of absolute one.
31118         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31119         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31120         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31121         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31122         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31123         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31124
31125         [BZ #1062]
31126         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31127         (glob): Use the same scratch buffer for both getlogin_r and
31128         getpwnam_r.  Don’t require preallocation of the login name.  This
31129         simplifies storage allocation, and corrects the handling of
31130         long login names.
31131
31132         [BZ #1062]
31133         * posix/glob.c (glob): Port recent patches to platforms
31134         lacking getpwnam_r.
31135         (glob): Fix longstanding misuse of errno after getpwnam_r, which
31136         returns an error number rather than setting errno.
31137
31138         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31139         instead of GCC extension.
31140         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31141         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31142         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31143
31144         [BZ #866]
31145         [BZ #1062]
31146         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31147         * posix/bug-glob1.c: Remove file.
31148         * posix/tst-glob_symlinks.c: New file.
31149         * posix/glob.c (__lstat64): New macro.
31150         (is_dir): New function.
31151         (glob, glob_in_dir): Match symlinks even if they are dangling.
31152         (link_stat, link_exists_p): Remove.  All uses removed.
31153
31154         [BZ #1062]
31155         [BZ #19971]
31156         * posix/glob.c (struct readdir_result): Remove skip_entry member.
31157         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31158         All uses removed.
31159
31160         [BZ #1062]
31161         CVE-2017-15671
31162         * posix/Makefile (routines): Add globfree, globfree64, and
31163         glob_pattern_p.
31164         * posix/flexmember.h: New file.
31165         * posix/glob_internal.h: Likewise.
31166         * posix/glob_pattern_p.c: Likewise.
31167         * posix/globfree.c: Likewise.
31168         * posix/globfree64.c: Likewise.
31169         * sysdeps/gnu/globfree64.c: Likewise.
31170         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31171         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31172         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31173         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31174         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31175         * sysdeps/wordsize-64/globfree.c: Likewise.
31176         * sysdeps/wordsize-64/globfree64.c: Likewise.
31177         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31178         [NDEBUG): Remove comments.
31179         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31180         (dirent_type): New type.  Use uint_fast8_t not
31181         uint8_t, as C99 does not require uint8_t.
31182         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31183         (struct readdir_result): Use dirent_type.  Do not define skip_entry
31184         unless it is needed; this saves a byte on platforms lacking d_ino.
31185         (readdir_result_type, readdir_result_skip_entry):
31186         New functions, replacing ...
31187         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31188         these functions, which were removed.  This makes the callers
31189         easier to read.  All callers changed.
31190         (D_INO_TO_RESULT): Now empty if there is no d_ino.
31191         (size_add_wrapv, glob_use_alloca): New static functions.
31192         (glob, glob_in_dir): Check for size_t overflow in several places,
31193         and fix some size_t checks that were not quite right.
31194         Remove old code using SHELL since Bash no longer
31195         uses this.
31196         (glob, prefix_array): Separate MS code better.
31197         (glob_in_dir): Remove old Amiga and VMS code.
31198         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31199         separate files.
31200         (glob_in_dir): Do not rely on undefined behavior in accessing
31201         struct members beyond their bounds.  Use a flexible array member
31202         instead
31203         (link_stat): Rename from link_exists2_p and return -1/0 instead of
31204         0/1.  Caller changed.
31205         (glob): Fix memory leaks.
31206         * posix/glob64 (globfree64): Move to separate file.
31207         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31208         (globfree64): Remove hidden alias.
31209         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31210         oldglob.
31211         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31212         separate file.
31213         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31214         define.
31215         Move compat code to separate file.
31216         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31217         separate file.
31218
31219 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
31220
31221         * resolv/tst-resolv-qtypes.c (domain): Changed to
31222         "const char domain[] =".
31223
31224 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
31225
31226         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31227         version to 3.1.6.
31228
31229         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31230         (TCP_MD5SIG_EXT): Likewise.
31231         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31232         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31233         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
31234
31235         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31236
31237 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
31238
31239         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31240
31241 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
31242
31243         [BZ #22100]
31244         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31245
31246 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31247
31248         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31249         before assuming that the file is empty.  Avoid testing buffer content
31250         when nread == 0.
31251
31252 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31253
31254         [BZ #18858]
31255         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31256         Remove define.
31257         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31258         Likewise.
31259         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31260         Likewise.
31261         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31262         Likewise.
31263         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31264         Likewise.
31265         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31266         Likewise.
31267         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31268         Likewise.
31269
31270 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31271
31272         * malloc/dynarray_emplace_enlarge.c
31273         (__libc_dynarray_emplace_enlarge): Add missing else.
31274
31275 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31276
31277         [BZ #22096]
31278         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31279         case of failure to obtain the global conf object.
31280
31281 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31282
31283         [BZ #22095]
31284         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31285         dynarray allocation failure.
31286
31287 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31288
31289         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31290         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31291         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31292         New functions.
31293         (response): Call them.  Add 'p', '6' flag processing.
31294         (test_reverse): New function.
31295         (test_get2_any): Call it.
31296         (test_no_inet6): Add 'p' test.
31297         (test_inet6): Likewise.
31298
31299 2017-09-06  Florian Weimer  <fweimer@redhat.com>
31300
31301         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31302         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31303         the QNAME.
31304         (test_gai): Adjust query names.  Add additional tests.
31305         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31306         test_get2.  Adjust query names.  Add additional tests.
31307         (test_no_inet6): New function, extracted from threadfunc.
31308         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31309         Add additional tests.
31310
31311 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31312
31313         [BZ #22070]
31314         * localedata/unicode-gen/utf8_gen.py: Set the width for
31315         characters with Prepended_Concatenation_Mark property to 1
31316         * localedata/charmaps/UTF-8: Updated using the improved script.
31317
31318 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
31319
31320         [BZ #21750]
31321         * localedata/unicode-gen/utf8_gen.py: Improve the script to
31322         use the range notation for all ranges of neighbouring characters
31323         with the same width.
31324
31325 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31326
31327         * sysdeps/generic/math-type-macros-double.h: Include
31328         <math-svid-compat.h>.
31329         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31330         * sysdeps/generic/math-type-macros-float.h: Include
31331         <math-svid-compat.h>.
31332         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31333         * sysdeps/generic/math-type-macros-ldouble.h: Include
31334         <math-svid-compat.h>.
31335         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31336         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31337         condition.
31338         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31339         * math/w_acosf_compat.c: Likewise.
31340         * math/w_acosh_compat.c: Likewise.
31341         * math/w_acoshf_compat.c: Likewise.
31342         * math/w_acoshl_compat.c: Likewise.
31343         * math/w_acosl_compat.c: Likewise.
31344         * math/w_asin_compat.c: Likewise.
31345         * math/w_asinf_compat.c: Likewise.
31346         * math/w_asinl_compat.c: Likewise.
31347         * math/w_atan2_compat.c: Likewise.
31348         * math/w_atan2f_compat.c: Likewise.
31349         * math/w_atan2l_compat.c: Likewise.
31350         * math/w_atanh_compat.c: Likewise.
31351         * math/w_atanhf_compat.c: Likewise.
31352         * math/w_atanhl_compat.c: Likewise.
31353         * math/w_cosh_compat.c: Likewise.
31354         * math/w_coshf_compat.c: Likewise.
31355         * math/w_coshl_compat.c: Likewise.
31356         * math/w_exp10_compat.c: Likewise.
31357         * math/w_exp10f_compat.c: Likewise.
31358         * math/w_exp10l_compat.c: Likewise.
31359         * math/w_exp2_compat.c: Likewise.
31360         * math/w_exp2f_compat.c: Likewise.
31361         * math/w_exp2l_compat.c: Likewise.
31362         * math/w_fmod_compat.c: Likewise.
31363         * math/w_fmodf_compat.c: Likewise.
31364         * math/w_fmodl_compat.c: Likewise.
31365         * math/w_hypot_compat.c: Likewise.
31366         * math/w_hypotf_compat.c: Likewise.
31367         * math/w_hypotl_compat.c: Likewise.
31368         * math/w_j0_compat.c: Likewise.
31369         * math/w_j0f_compat.c: Likewise.
31370         * math/w_j0l_compat.c: Likewise.
31371         * math/w_j1_compat.c: Likewise.
31372         * math/w_j1f_compat.c: Likewise.
31373         * math/w_j1l_compat.c: Likewise.
31374         * math/w_jn_compat.c: Likewise.
31375         * math/w_jnf_compat.c: Likewise.
31376         * math/w_jnl_compat.c: Likewise.
31377         * math/w_lgamma_r_compat.c: Likewise.
31378         * math/w_lgammaf_r_compat.c: Likewise.
31379         * math/w_lgammal_r_compat.c: Likewise.
31380         * math/w_log10_compat.c: Likewise.
31381         * math/w_log10f_compat.c: Likewise.
31382         * math/w_log10l_compat.c: Likewise.
31383         * math/w_log2_compat.c: Likewise.
31384         * math/w_log2f_compat.c: Likewise.
31385         * math/w_log2l_compat.c: Likewise.
31386         * math/w_log_compat.c: Likewise.
31387         * math/w_logf_compat.c: Likewise.
31388         * math/w_logl_compat.c: Likewise.
31389         * math/w_pow_compat.c: Likewise.
31390         * math/w_powf_compat.c: Likewise.
31391         * math/w_powl_compat.c: Likewise.
31392         * math/w_remainder_compat.c: Likewise.
31393         * math/w_remainderf_compat.c: Likewise.
31394         * math/w_remainderl_compat.c: Likewise.
31395         * math/w_sinh_compat.c: Likewise.
31396         * math/w_sinhf_compat.c: Likewise.
31397         * math/w_sinhl_compat.c: Likewise.
31398         * math/w_sqrt_compat.c: Likewise.
31399         * math/w_sqrtf_compat.c: Likewise.
31400         * math/w_sqrtl_compat.c: Likewise.
31401         * math/w_tgamma_compat.c: Likewise.
31402         * math/w_tgammaf_compat.c: Likewise.
31403         * math/w_tgammal_compat.c: Likewise.
31404         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31405         [LIBM_SVID_COMPAT].
31406         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31407         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31408         [LIBM_SVID_COMPAT].
31409         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31410         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31411         [LIBM_SVID_COMPAT].
31412         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31413         * sysdeps/i386/fpu/w_sqrt.c: New file.
31414         * sysdeps/ia64/fpu/w_acos.c: Likewise.
31415         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31416         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31417         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31418         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31419         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31420         * sysdeps/ia64/fpu/w_asin.c: Likewise.
31421         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31422         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31423         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31424         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31425         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31426         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31427         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31428         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31429         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31430         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31431         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31432         * sysdeps/ia64/fpu/w_exp.c: Likewise.
31433         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31434         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31435         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31436         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31437         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31438         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31439         * sysdeps/ia64/fpu/w_expf.c: Likewise.
31440         * sysdeps/ia64/fpu/w_expl.c: Likewise.
31441         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31442         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31443         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31444         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31445         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31446         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31447         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31448         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31449         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31450         * sysdeps/ia64/fpu/w_log.c: Likewise.
31451         * sysdeps/ia64/fpu/w_log10.c: Likewise.
31452         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31453         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31454         * sysdeps/ia64/fpu/w_log2.c: Likewise.
31455         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31456         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31457         * sysdeps/ia64/fpu/w_logf.c: Likewise.
31458         * sysdeps/ia64/fpu/w_logl.c: Likewise.
31459         * sysdeps/ia64/fpu/w_pow.c: Likewise.
31460         * sysdeps/ia64/fpu/w_powf.c: Likewise.
31461         * sysdeps/ia64/fpu/w_powl.c: Likewise.
31462         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31463         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31464         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31465         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31466         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31467         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31468         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31469         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31470         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31471         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31472         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31473         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31474         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31475         [LIBM_SVID_COMPAT].
31476         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31477         * sysdeps/ieee754/k_standard.c: Likewise.
31478         * sysdeps/ieee754/k_standardf.c: Likewise.
31479         * sysdeps/ieee754/k_standardl.c: Likewise.
31480         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31481         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31482         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31483         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31484         long_double_symbol call on [LIBM_SVID_COMPAT].
31485         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31486         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31487         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31488         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31489         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31490         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31491         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31492         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31493         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31494         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31495         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31496         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31497         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31498         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31499         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31500         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31501         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31502         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31503         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31504         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31505         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31506         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31507
31508 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
31509
31510         * include/shlib-compat.h (TEST_COMPAT): New Macro.
31511         * malloc/tst-mallocstate.c: Convert from test-skeleton
31512         to test-driver.  Ifdef code using TEST_COMPAT macro.
31513         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31514         * math/test-matherr.c: Likewise.
31515
31516 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31517
31518         [BZ #22086]
31519         * debug/pcprofiledump.c (main): Use byte-swapped mask when
31520         comparing word with byte-swapped constant.
31521
31522 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
31523
31524         [BZ #20498]
31525         * locale/iso-639.def: add Miskito.
31526         * localedata/SUPPORTED: Add miq_NI/UTF-8.
31527         * localedata/locales/miq_NI: New file.
31528
31529 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
31530
31531         [BZ #18822]
31532         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31533         (__mkdir): Likewise.
31534         * io/chmod.c (__chmod): Add libc_hidden_def.
31535         * io/mkdir.c (__mkdir): Likewise.
31536         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31537         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31538         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31539         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31540
31541 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31542
31543         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31544         version to 4.13.
31545
31546         [BZ #22082]
31547         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31548         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31549
31550 2017-09-04  Florian Weimer  <fweimer@redhat.com>
31551
31552         * math/math.h: Issue warning if log is defined.
31553
31554 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31555
31556         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31557         kernel version to 4.13.
31558
31559 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31560
31561         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31562         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31563         parameter.
31564         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31565         just <bits/types.h>.
31566         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31567         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31568         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31569         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31570         * misc/preadv2.c: Include <errno.h>.
31571         * misc/preadv64v2.c: Include <errno.h>.
31572         * misc/pwritev2.c: Include <errno.h>.
31573         * misc/pwritev64v2.c: Include <errno.h>.
31574         * sysdeps/posix/preadv2.c: Include <errno.h>.
31575         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31576         Fix <unistd.h> inclusion.
31577         * sysdeps/posix/pwritev2.c: Include <errno.h>.
31578         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31579         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31580         __strtoul_internal): New functions.
31581         * sysdeps/posix/pause.c: Include <sigsetops.h>.
31582         * sysdeps/posix/system.c: Include <sigsetops.h>.
31583         * sysdeps/mach/hurd/i386/Makefile
31584         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31585         [$(subdir) = csu] (sysdep-only-routines): Likewise.
31586         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31587         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31588         __feraiseexcept_renamed to feraiseexcept instead of
31589         __GI_feraiseexcept.
31590         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31591         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31592         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31593         RWF_NOWAIT): Define to 0 if undefined already.
31594         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31595         boils down to 0.
31596         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31597         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31598
31599 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31600
31601         * manual/math.texi (pow10): Do not document.
31602         (pow10f): Likewise.
31603         (pow10l): Likewise.
31604         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31605         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31606         * math/libm-test-exp10.inc (pow10_test): Remove.
31607         (do_test): Do not call pow10.
31608         * math/w_exp10_compat.c (pow10): Make into compat symbol.
31609         [NO_LONG_DOUBLE] (pow10l): Likewise.
31610         * math/w_exp10f_compat.c (pow10f): Likewise.
31611         * math/w_exp10l_compat.c (pow10l): Likewise.
31612         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31613         (pow10): Make into compat symbol.
31614         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31615         (pow10f): Make into compat symbol.
31616         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31617         (pow10l): Make into compat symbol.
31618         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31619         pow10.
31620         (CFLAGS-nldbl-pow10.c): Remove variable..
31621         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31622         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31623         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31624         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31625         Undefine and redefine.
31626         (pow10l): Make into compat symbol.
31627         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31628         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31629         * sysdeps/arm/libm-test-ulps: Likewise.
31630         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31631         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31632         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31633         * sysdeps/microblaze/libm-test-ulps: Likewise.
31634         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31635         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31636         * sysdeps/nios2/libm-test-ulps: Likewise.
31637         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31638         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31639         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31640         * sysdeps/sh/libm-test-ulps: Likewise.
31641         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31642         * sysdeps/tile/libm-test-ulps: Likewise.
31643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31644
31645 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31646
31647         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31648
31649 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31650
31651         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31652         "../ChangeLog.old/ChangeLog.8".
31653         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31654         "../ChangeLog.old/ChangeLog.14".
31655
31656 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31657
31658         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31659         Threads Library.
31660
31661 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31662
31663         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31664
31665 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31666
31667         * csu/version.c (banner): Remove "by Roland McGrath et al.".
31668         * nptl/Banner: Remove "by Ulrich Drepper et al.".
31669
31670 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31671
31672         * stdlib/tst-atexit-common.c (do_test): Test support for at least
31673         32 atexit handlers.
31674
31675 2017-09-01  Zack Weinberg  <zackw@panix.com>
31676
31677         * math/math.h (HUGE_VAL): Improve commentary.
31678
31679 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31680             Andreas Schwab  <schwab@suse.de>
31681
31682         [BZ #21530]
31683         * include/stdio.h (__gen_tempfd): New function.
31684         * stdio-common/Makefile (routines): Add gentempfd.
31685         * stdio-common/gentempfd.c: New file.
31686         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31687         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31688         unnamed file first.
31689
31690 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31691
31692         [BZ #21915]
31693         [BZ #21922]
31694         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31695         result to determine success or failure, not the errno value.
31696         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31697         (tst-nss-files-hosts-erange): Link with -ldl.
31698         * nss/tst-nss-files-hosts-erange.c: New file.
31699         * nss/tst-resolv-basic.c (response): Handle nodata.example.
31700         (do_test): Add NO_DATA tests.
31701         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31702         (do_test): Call it.
31703
31704 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31705
31706         [BZ #21922]
31707         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31708         coming from gethostbyname2_r.
31709
31710 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31711
31712         * support/namespace.h (struct support_chroot_configuration): Add
31713         hosts, host_conf.
31714         (struct support_chroot): Add path_hosts, path_host_conf.
31715         * support/support_chroot.c (write_file): New function.
31716         (support_chroot_create): Call it to process /etc/resolv.conf,
31717         /etc/hosts, /etc/host.conf.
31718         (support_chroot_free): Update.
31719
31720 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31721
31722         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31723         status indicates it is set.
31724
31725 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31726
31727         [BZ #20532]
31728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31729         function lookup failures more reliable.
31730
31731 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31732
31733         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31734         (getcanonname): Likewise.
31735         (gaih_inet): Likewise.
31736
31737 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31738
31739         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31740         (getcanonname): Likewise.
31741         (gaih_inet): Likewise.
31742
31743 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31744             Richard Henderson  <rth@twiddle.net>
31745
31746         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31747         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31748         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31749         (IREG_SIZE, OREG_SIZE): New macros.
31750         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31751         (IREG_SIZE, OREG_SIZE): New macros.
31752         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31753         (IREG_SIZE): New macro.
31754         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31755         (IREG_SIZE): New macro.
31756         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31757         New includes.
31758         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31759         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31760         (__CONCATX): Handle exceptions correctly on large values that may
31761         set FE_INVALID.
31762         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31763         Initialize if not already set.
31764         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31765
31766 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31767
31768         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31769         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31770         Likewise.
31771         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31772         Likewise.
31773         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31774         Likewise.
31775         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31776         Likewise.
31777         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31778         Likewise.
31779         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31780         Likewise.
31781         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31782         Likewise.
31783         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31784         (NO_CANCELLATION): Likewise.
31785         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31786         Likewise.
31787         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31788         Likewise.
31789         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31790         Likewise.
31791         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31792         (NO_CANCELLATION): Likewise.
31793         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31794         (NO_CANCELLATION): Likewise.
31795         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31796         Likewise
31797         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31798         Likewise.
31799         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31800         Likewise.
31801         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31802         Likewise.
31803         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31804         hidden prototype.
31805         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31806         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31807
31808 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31809
31810         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31811         in resolver call.
31812
31813 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31814
31815         * include/libc-symbols.h (internal_function): Remove.
31816
31817 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31818
31819         * stdlib/fmtmsg.c (internal_addseverity): Remove
31820         internal_function.
31821
31822 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31823
31824         * stdio-common/printf_fp.c (group_number): Remove
31825         internal_function.
31826         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31827
31828 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31829
31830         * posix/fnmatch.c (internal_function): Remove definition.
31831         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31832         * posix/regcomp.c (peek_token, init_word_char)
31833         (duplicate_node_closure, fetch_token, peek_token)
31834         (peek_token_bracket, build_range_exp, build_collating_symbol):
31835         Likewise.
31836         * posix/regex_internal.c (re_string_construct_common)
31837         (create_ci_newstate, create_cd_newstate, re_string_allocate)
31838         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31839         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31840         (re_string_translate_buffer, re_string_reconstruct)
31841         (re_string_peek_byte_case, re_string_fetch_byte_case)
31842         (re_string_destruct, re_string_context_at, re_node_set_alloc)
31843         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31844         (re_node_set_add_intersect, re_node_set_init_union)
31845         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31846         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31847         (re_dfa_add_node, calc_state_hash, re_acquire_state)
31848         (re_acquire_state_context): Likewise.
31849         * posix/regex_internal.h (internal_function): Remove definition.
31850         (re_string_realloc_buffers, build_wcs_buffer)
31851         (build_wcs_upper_buffer, build_upper_buffer)
31852         (re_string_translate_buffer, re_string_context_at)
31853         (re_string_char_size_at, re_string_wchar_at)
31854         (re_string_elem_size_at): Likewise.
31855         * posix/regexec.c (match_ctx_init, match_ctx_clean)
31856         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31857         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31858         (re_search_internal, re_search_2_stub, re_search_stub)
31859         (re_copy_regs, prune_impossible_nodes, check_matching)
31860         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31861         (free_fail_stack_return, sift_states_iter_mb)
31862         (sift_states_backward, build_sifted_states)
31863         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31864         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31865         (check_subexp_limits, sift_states_bkref, merge_state_array)
31866         (find_recover_state, transit_state, merge_state_with_log)
31867         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31868         (transit_state_mb, transit_state_bkref, get_subexp)
31869         (get_subexp_sub, find_subexp_node, check_arrival)
31870         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31871         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31872         (check_node_accept_bytes, find_collation_sequence_value)
31873         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31874         (acquire_init_state_context, check_halt_node_context)
31875         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31876         (sub_epsilon_src_nodes): Likewise.
31877         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31878         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31879         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31880         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31881         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31882         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31883         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31884         * sysdeps/posix/ttyname.c (getttyname): Likewise.
31885         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31886         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31887         (PREADV): Likewise.
31888         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31889         (PREADV): Likewise.
31890         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31891         (PWRITEV): Likewise.
31892         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31893         (PWRITEV): Likewise.
31894         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31895         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31896
31897 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31898
31899         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31900         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31901         Remove internal_function.
31902         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31903         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31904         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31905         (__deallocate_stack, __libc_pthread_init)
31906         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31907         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31908         (__libc_disable_asynccancel, __librt_disable_asynccancel):
31909         Likewise.
31910         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31911         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31912         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31913         Likewise.
31914         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31915         (__pthread_mutex_unlock_usercnt): Likewise.
31916
31917 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31918
31919         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31920         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31921         (fts_safe_changedir): Remove internal_function.
31922         * io/ftw.c (internal_function): Remove definition.
31923         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31924
31925 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31926
31927         * inet/deadline.c (__deadline_current_time)
31928         (__deadline_from_timeval, __deadline_to_ms): Remove
31929         internal_function.
31930         * inet/getnameinfo.c (nrl_domainname): Likewise.
31931         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31932         * inet/inet6_option.c (add_pad): Likewise.
31933         * inet/net-internal.h (__deadline_current_time)
31934         (__deadline_from_timeval, __deadline_to_ms): Likewise.
31935         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31936         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31937         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31938
31939 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
31940
31941         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
31942         include <bits/nan.h>.
31943         * math/Makefile (headers): Remove bits/nan.h.
31944         * bits/nan.h: Remove.
31945         * sysdeps/ieee754/bits/nan.h: Likewise.
31946         * sysdeps/mips/bits/nan.h: Likewise.
31947
31948         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
31949         not include <bits/inf.h>.
31950         * math/Makefile (headers): Remove bits/inf.h.
31951         * bits/inf.h: Remove.
31952         * sysdeps/ieee754/bits/inf.h: Likewise.
31953
31954         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31955         bits/huge_vall.h or bits/huge_val_flt128.h.
31956         (HUGE_VAL): Define directly here.
31957         [__USE_ISOC99] (HUGE_VALF): Likewise.
31958         [__USE_ISOC99] (HUGE_VALL): Likewise.
31959         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31960         (HUGE_VAL_F128): Likewise.
31961         * math/Makefile (headers): Remove bits/huge_val.h,
31962         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31963         * bits/huge_val.h: Remove.
31964         * bits/huge_val_flt128.h: Likewise.
31965         * bits/huge_valf.h: Likewise.
31966         * bits/huge_vall.h: Likewise.
31967         * sysdeps/ia64/bits/huge_vall.h: Likewise.
31968         * sysdeps/ieee754/bits/huge_val.h: Likewise.
31969         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31970         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31971         * sysdeps/sh/bits/huge_val.h: Likewise.
31972         * sysdeps/sparc/bits/huge_vall.h: Likewise.
31973         * sysdeps/x86/bits/huge_vall.h: Likewise.
31974
31975 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31976
31977         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31978         internal_function.
31979         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31980         Likewise.
31981         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31982         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31983         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31984         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31985         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31986         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31987         * elf/dl-libc.c (dlerror_run): Likewise.
31988         * elf/dl-load.c (add_name_to_object, decompose_rpath)
31989         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31990         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31991         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31992         Likewise.
31993         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31994         (_dl_higher_prime_number, _dl_strtoul): Likewise.
31995         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31996         * elf/dl-profile.c (_dl_start_profile): Likewise.
31997         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31998         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31999         Likewise.
32000         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32001         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32002         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32003         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32004         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32005         (_dl_allocate_tls_storage): Likewise.
32006         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32007         (_dl_check_all_versions): Likewise.
32008         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32009         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32010         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32011         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32012         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32013         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32014         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32015         internal_function from __dl_start.
32016         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32017         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32018         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32019         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32020         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32021         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32022         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32023         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32024         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32025         (_dl_next_ld_env_entry, _dl_important_hwcaps)
32026         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32027         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32028         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32029         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32030         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32031         Likewise.
32032         (struct rtld_global_ro): Remove internal_function from the
32033         _dl_lookup_symbol_x member.
32034         (_dl_symbol_value): Remove.  No longer defined anywhere.
32035         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32036         internal_function.
32037         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32038         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32039         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32040         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32041         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32042         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32043         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32044         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32045         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32046         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32047         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32048         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32049
32050 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32051
32052         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32053         Remove internal_function.
32054         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32055         Likewise.
32056         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32057         Likewise.
32058
32059 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32060
32061         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32062         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32063         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32064
32065 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32066
32067         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32068         (__gai_enqueue_request): Remove internal_function.
32069         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32070         (__gai_remove_request, __gai_notify, __gai_notify_only)
32071         (__gai_sigqueue): Likewise.
32072         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32073         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32074         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32075         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32076         Likewise.
32077
32078 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32079
32080         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32081         * include/dirent.h (__opendirat, __getdents, __getdents64)
32082         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32083         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32084         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32085         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32086         Likewise.
32087         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32088
32089 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32090
32091         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32092         internal_function.
32093         (GETCWD_RETURN_TYPE): Likewise.
32094
32095 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32096
32097         * include/time.h (__tz_compute, __strptime_internal): Remove
32098         internal_function.
32099         * time/strptime_l.c (__strptime_internal): Likewise.
32100         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32101
32102 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32103
32104         * iconv/gconv.c (__gconv): Remove internal_function.
32105         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32106         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32107         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32108         (__gconv_release_cache): Likewise.
32109         * iconv/gconv_close.c (__gconv_close): Likewise.
32110         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32111         (read_conf_file, __gconv_get_path): Likewise.
32112         * iconv/gconv_db.c (derivation_lookup, add_derivation)
32113         (__gconv_release_step, gen_steps, increment_counter)
32114         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32115         (__gconv_close_transform, free_modules_db): Likewise.
32116         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32117         Likewise.
32118         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32119         (__gconv_find_transform, __gconv_lookup_cache)
32120         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32121         (__gconv_close_transform, __gconv_release_cache)
32122         (__gconv_loaded_object, __gconv_release_shlib)
32123         (__gconv_compare_alias): Likewise.
32124         * iconv/gconv_open.c (__gconv_open): Likewise.
32125         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32126         * iconv/iconvconfig.c (add_module): Likewise.
32127         * intl/dcigettext.c (plural_lookup, guess_category_value)
32128         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32129         * intl/eval-plural.h (plural_eval): Likewise.
32130         * intl/finddomain.c (_nl_find_domain): Likewise.
32131         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32132         (_nl_load_domain, _nl_find_msg): Likewise.
32133         (internal_function): Remove definition.
32134         * intl/loadinfo.h (internal_function): Likewise.
32135         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32136         internal_function.
32137         * intl/localealias.c (internal_function): Remove definition.
32138         (read_alias_file): Remove internal_function.
32139         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32140         * intl/plural-exp.h (internal_function): Remove definition.
32141         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32142         internal_function.
32143         * intl/plural.c: Regenerate.
32144         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32145         * locale/coll-lookup.c (__collidx_table_lookup)
32146         (__collseq_table_lookup): Likewise.
32147         * locale/coll-lookup.h (__collidx_table_lookup)
32148         (__collseq_table_lookup): Likewise.
32149         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32150         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32151         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32152         (_nl_unload_locale): Likewise.
32153         * locale/localeinfo.h (struct __locale_data): Remove
32154         internal_function from cleanup member.
32155         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32156         (_nl_remove_locale, _nl_load_locale_from_archive)
32157         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32158         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32159         (_nl_cleanup_time): Remove internal_function.
32160         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32161         (_nl_parse_alt_digit): Likewise.
32162         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32163         (_nl_select_era_entry): Likewise.
32164         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32165         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32166         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32167         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32168         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32169
32170 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32171
32172         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32173         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32174         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32175         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32176         Likewise.
32177         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32178         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32179         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32180         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32181         Likewise.
32182         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32183
32184 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32185
32186         * misc/getttyent.c (skip, value): Remove internal_function.
32187         * misc/syslog.c (openlog_internal): Likewise.
32188         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32189
32190 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32191
32192         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32193         (__nss_rewrite_field): Remove internal_function.
32194         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32195         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32196         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32197         * nss/nsswitch.c (nss_parse_file, nss_getline)
32198         (nss_parse_service_list, nss_new_service): Likewise.
32199         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32200         * nss/valid_field.c (__nss_valid_field): Likewise.
32201         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32202
32203 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32204
32205         * malloc/arena.c (__malloc_fork_lock_parent)
32206         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32207         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32208         internal_function from defintions.
32209         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32210         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32211         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32212         internal_function from declarations.
32213         * malloc/malloc.c (internal_function): Do not define.
32214         (mem2mem_check): Remove internal_function from declaration.
32215         (munmap_chunk, mremap_chunk): Remove internal_function.
32216         * malloc/mtrace.c (tr_where): Likewise.
32217
32218 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32219
32220         * include/rpc/pmap_clnt.h (__get_socket): Remove
32221         internal_function.
32222         * sunrpc/auth_des.c (synchronize): Likewise.
32223         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32224         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32225         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32226         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32227         (key_call): Likewise.
32228         * sunrpc/pm_getport.c (__get_socket): Likewise.
32229         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32230         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32231         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32232         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32233         (invalidate): Likewise.
32234         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32235         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32236         (set_input_fragment, get_input_bytes): Likewise.
32237
32238 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32239
32240         * malloc/malloc.c (_int_free): Remove locked variable and related
32241         asserts.
32242
32243 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
32244
32245         [BZ #22051]
32246         * Makerules (build-module-helper-objlist): Filter out
32247         $(elf-objpfx)sofini.os.
32248         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32249         needed.
32250
32251 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32252
32253         * libio/fcloseall.c: Assume weak_alias is defined.
32254         * libio/feof.c: Likewise.
32255         * libio/fileno.c: Likewise.
32256         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32257         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32258         definitions.
32259         (_IO_file_open): Call __open directly.
32260         (_IO_new_file_sync): Assume ESPIPE is defined.
32261         (_IO_file_seekoff_maybe_mmap): Call __read directly.
32262         (_IO_new_file_write): Call __write directly.
32263         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32264         * libio/ftello64.c (__ftello64): Assume EIO is defined.
32265         * libio/genops.c: Assume _LIBC is defined.
32266         (save_for_backup): Remove internal_function.
32267         * libio/getc.c: Assume weak_alias is defined.
32268         * libio/getwc.c: Likewise.
32269         * libio/iofclose.c: Assume _LIBC is defined.
32270         * libio/iofdopen.c: Likewise.
32271         (_IO_fcntl): Remove macro definition.
32272         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32273         Call __fcntl directly.
32274         * libio/iofflush.c: Assume weak_alias is defined.
32275         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32276         defined.
32277         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32278         * libio/iofgets.c: Likewise.
32279         * libio/iofopen.c: Assume _LIBC is defined.
32280         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32281         * libio/iofputs.c: Assume weak_alias is defined.
32282         * libio/iofread.c: Likewise.
32283         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32284         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32285         * libio/ioftell.c: Assume weak_alias is defined.
32286         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32287         * libio/iofwide.c: Assume _LIBC is defined.
32288         (_IO_fwide): Drop SHARED conditional because it is implied by
32289         SHLIB_COMPAT.
32290         * libio/iofwrite.c: Assume weak_alias is defined.
32291         * libio/iogetdelim.c: Likewise.
32292         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32293         * libio/iogetwline.c (wmemcpy): Remove macro definition.
32294         (_IO_getwline): Call __wmemcpy directly.
32295         * libio/iopopen.c: Assume _LIBC is defined.
32296         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32297         (_IO_close): Remove macro definitions.
32298         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32299         _exit directly.
32300         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32301         directly.
32302         * libio/ioputs.c: Assume weak_alias is defined.
32303         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32304         * libio/iosetbuffer.c: Assume weak_alias is defined.
32305         * libio/iosetvbuf.c: Likewise.
32306         * libio/ioungetc.c: Likewise.
32307         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32308         libc_hidden_def, libc_hidden_weak, NULL are defined.
32309         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32310         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32311         defined.
32312         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32313         definitions.
32314         (_IO_old_file_init_internal): Drop SHARED conditional because it
32315         is implied by SHLIB_COMPAT.
32316         (_IO_old_file_fopen): Call __open directly.
32317         (_IO_old_file_sync): Assume ESPIPE is defined.
32318         (_IO_old_file_write): Call __write directly.
32319         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32320         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32321         Call __fcntl directly.
32322         * libio/oldiofgetpos.c: Assume weak_alias is defined.
32323         (_IO_old_fgetpos): Assume EIO is defined.
32324         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32325         (_IO_old_fgetpos64): Assume EIO is defined.
32326         * libio/oldiofsetpos.c: Assume weak_alias is defined.
32327         (_IO_old_fsetpos): Assume EIO is defined.
32328         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32329         (_IO_old_fsetpos64): Assume EIO is defined.
32330         * libio/oldiopopen.c:  Assume _LIBC is defined.
32331         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32332         (_IO_close): Remove macro definitions.
32333         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32334         directly.
32335         (_IO_old_proc_close): Call __close, __waitpid directly.
32336         * libio/put.c: Assume weak_alias is defined.
32337         * libio/stdfiles.c: Assume _LIBC is defined.
32338         * libio/stdio.c: Likewise.
32339         * libio/wfileops.c: Likewise.
32340         (_IO_wfile_sync): Assume ESPIPE is defined.
32341         * libio/wgenops.c: Assume _LIBC is defined.
32342         (save_for_wbackup): Remove internal_function.
32343
32344 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32345
32346         * malloc/malloc.c (top_check): Change return type to void.  Remove
32347         internal_function.
32348         * malloc/hooks.c (top_check): Likewise.
32349         (malloc_check, realloc_check, memalign_check): Adjust.
32350
32351 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
32352
32353         [BZ #21457]
32354         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32355         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32356         sigcontext and namespace requirements.
32357         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32358         * sysdeps/m68k/sys/ucontext.h: Likewise.
32359         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
32360         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32361         <bits/sigcontext.h>.
32362         (__ctx): Define earlier.
32363         (mcontext_t): Define structure contents rather than using struct
32364         sigcontext.
32365         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32366         __glibc_reserved1 instead of __reserved.
32367         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32368         <bits/sigcontext.h>.
32369         (__ctx): Define earlier.
32370         (mcontext_t): Define structure contents rather than using struct
32371         sigcontext.
32372         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32373         mcontext_t instead of struct sigcontext.
32374         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32375         <bits/sigcontext.h>.
32376         (__ctx): Define earlier.
32377         (mcontext_t): Define structure contents rather than using struct
32378         sigcontext.
32379         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32380         <bits/sigcontext.h>.
32381         (__ctx): Define earlier.
32382         (mcontext_t): Define structure contents rather than using struct
32383         sigcontext.
32384         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32385         mcontext_t instead of struct sigcontext.
32386         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32387         mcontext_t instead of struct sigcontext.
32388         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32389         <bits/sigcontext.h>.
32390         (__ctx): New macro.
32391         (struct __ia64_fpreg_mcontext): New type.
32392         (mcontext_t): Define structure contents rather than using struct
32393         sigcontext.
32394         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32395         (uc_sigmask): Define using __ctx.
32396         (uc_stack): Likewise.
32397         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32398         <bits/sigcontext.h>.
32399         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32400         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32401         <bits/sigcontext.h>.
32402         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32403         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32404         <bits/sigcontext.h>.
32405         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32406         <bits/sigcontext.h>.
32407         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32408         <bits/sigcontext.h>.
32409         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32410         <bits/sigcontext.h>.
32411         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32412         <bits/sigcontext.h>.
32413         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32414         <bits/sigcontext.h>.
32415         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32416         <bits/sigcontext.h>.
32417         (__ctx): Define earlier.
32418         (mcontext_t): Define structure contents rather than using struct
32419         sigcontext.
32420         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32421         <bits/sigcontext.h>.  Include <bits/types.h>.
32422         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32423         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32424         (test-xfail-XPG42/ucontext.h/conform): Likewise.
32425         (test-xfail-UNIX98/signal.h/conform): Likewise.
32426         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32427         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32428         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32429         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32430         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32431         (test-xfail-POSIX2008/signal.h/conform): Likewise.
32432         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32433         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32434         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32435
32436 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32437
32438         * malloc/dynarray_emplace_enlarge.c
32439         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32440         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32441         * malloc/tst-dynarray.c (test_long_overflow): New function.
32442         (do_test): Call it.
32443
32444 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32445
32446         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32447         (set_arena_corrupt): Remove definitions.
32448         (mtrim): Do not check for corrupt arena.
32449         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32450         Likewise.
32451
32452 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32453
32454         [BZ #21754]
32455         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32456         check_action.
32457         (ptmalloc_init): Do not set or use check_action.
32458         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32459         call to malloc_printerr.  Remove return statement.
32460         (free_check): Likewise.  Remove arena unlock.
32461         (top_check): Update comment.  Adjust call to malloc_printerr.
32462         Remove heap repair code.
32463         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32464         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32465         (sysmalloc): Adjust call to malloc_printerr.
32466         (munmap_chunk, __libc_realloc): Likewise.  Remove return
32467         statement.
32468         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
32469         Remove errout label and corresponding gotos.
32470         (_int_free): Likewise.  Remove arena unlock.
32471         (do_set_mallopt_check): Do not set check_action.
32472         (malloc_printerr): Adjust parameter list.  Do not mark arena as
32473         corrupt.
32474         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32475         comment.
32476         * manual/probes.texi (Memory Allocation Probes): Remove
32477         memory_mallopt_check_action.
32478
32479 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
32480
32481         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32482         Use pointer to uint64_t instead of long int for sp.
32483
32484 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32485
32486         [BZ #21754]
32487         * malloc/malloc.c (malloc_printerr): Always terminate the process,
32488         without printing a backtrace.  Do not leak any information in the
32489         error message.
32490         * manual/memory.texi (Heap Consistency Checking): Update.
32491         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32492
32493 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32494
32495         Do not scale NPTL tests with available number of CPUs.
32496         * nptl/tst-cond16.c (count): Set to constant value of 8.
32497         * nptl/tst-cond18.c (count): Likewise.
32498
32499 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32500
32501         [BZ #22035]
32502         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32503         Define to take a second argument that is a macro that
32504         concatentates a suffix, not the suffix itself.
32505         (__CONCAT_d): New macro.
32506         (__CONCAT_f): Likewise.
32507         (__CONCAT_l): Likewise.
32508
32509 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
32510
32511         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32512         by child.
32513
32514 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32515             Aurelien Jarno  <aurelien@aurel32.net>
32516             Maciej W. Rozycki  <macro@imgtec.com>
32517
32518         [BZ #21956]
32519         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32520         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32521         `mips16-syscall6' and `mips16-syscall7'.
32522         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32523         (CFLAGS-mips16-syscall7.c): Remove.
32524         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32525         Remove `__mips16_syscall5', `__mips16_syscall6' and
32526         `__mips16_syscall7'.
32527         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32528         (__mips16_syscall0): Rename `__mips16_syscall_return' to
32529         `__mips_syscall_return'.
32530         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32531         (__mips16_syscall1): Likewise.
32532         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32533         (__mips16_syscall2): Likewise.
32534         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32535         (__mips16_syscall3): Likewise.
32536         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32537         (__mips16_syscall4): Likewise.
32538         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32539         Remove.
32540         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32541         Remove.
32542         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32543         Remove.
32544         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32545         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32546         `__mips16_syscall5'.  Remove prototype.
32547         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32548         `__mips16_syscall6'.  Remove prototype.
32549         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32550         `__mips16_syscall7'.  Remove prototype.
32551         (__nomips16, __mips16_syscall_return): Move to...
32552         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32553         (__nomips16, __mips_syscall_return): ... here.
32554         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32555         `__mips16_syscall_return' to `__mips_syscall_return'.
32556         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32557         `internal_syscall##nr'.
32558         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32559         `internal_syscall##nr'.
32560         (FORCE_FRAME_POINTER): Remove.
32561         (__mips_syscall5): New prototype.
32562         (internal_syscall5): Rewrite to call `__mips_syscall5'.
32563         (__mips_syscall6): New prototype.
32564         (internal_syscall6): Rewrite to call `__mips_syscall6'.
32565         (__mips_syscall7): New prototype.
32566         (internal_syscall7): Rewrite to call `__mips_syscall7'.
32567         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32568         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32569         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32570         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32571         (sysdep_routines): Add libc-do-syscall.
32572         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32573         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32574
32575 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32576
32577         [BZ #21672]
32578         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32579         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32580         (advise_stack_range): New function.
32581         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32582         stack non required to advise_stack_range at allocatestack.c
32583
32584 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32585
32586         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32587
32588 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32589
32590         [BZ #22026]
32591         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32592         __end_fct.  Mangle __end_fct after setting it to NULL.
32593         * iconv/Makefile (tests): Add tst-gconv-init-failure.
32594         (modules-names, modules-names-tests): Add
32595         tst-gconv-init-failure-mod.
32596         (gconv-modules): New target.
32597         (tst-gconv-init-failure-mod.so): Link against libsupport.
32598         (tst-gconv-init-failure): Depend on gconv-modules,
32599         tst-gconv-init-failure-mod.so.
32600         * iconv/tst-gconv-init-failure-mod.c: New file.
32601         * iconv/tst-gconv-init-failure.c: Likewise.
32602         * iconv/test-gconv-modules: Likewise.
32603
32604 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32605
32606         [BZ #22025]
32607         * iconv/gconv_db.c (free_derivation): Remove redundant
32608         parentheses.
32609         (gen_steps): Unconditionally mangle __btowc_fct after
32610         initialization.
32611         (increment_counter): Likewise.  Do not call init_fct for internal
32612         modules.
32613
32614 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32615
32616         [BZ #22028]
32617         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32618         (_MSUF_): Remove macro.
32619         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32620         Likewise.
32621         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32622         (__REDIRFROM_X): New macro.
32623         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32624         Likewise.
32625         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32626         (__REDIRTO_X): Likewise.
32627         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32628         arguments.
32629         (__MATH_REDIRCALL_2): Likewise.
32630         (__MATH_REDIRCALL_INTERNAL): Likewise.
32631         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32632         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32633         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32634         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32635         * math/test-finite-macros.c: New file.
32636         * math/Makefile (tests): Add test-finite-macros.
32637         (CFLAGS-test-finite-macros.c): New variable.
32638
32639 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
32640             Jeff Law  <law@redhat.com>
32641
32642         [BZ #22025]
32643         Mangle NULL pointers in iconv/gconv.
32644         * iconv/gconv_cache.c (find_module): Demangle init_fct before
32645         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32646         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32647         is non-NULL before demangling the end_fct.  Check for NULL
32648         end_fct after demangling.
32649         (__gconv_release_step): Demangle the end_fct before checking
32650         it for NULL.   Remove assert on __shlibc_handle != NULL.
32651         (gen_steps): Don't check btowc_fct for NULL before mangling.
32652         Demangle init_fct before checking for NULL.
32653         (increment_counter): Likewise.
32654         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32655         end_fct for NULL before mangling.
32656         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32657         for NULL.
32658
32659 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
32660
32661         [BZ #21971]
32662         * locale/iso-639.def: add Morisyen.
32663
32664 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32665
32666         [BZ #21930]
32667         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32668         (iszero): New C++ implementation that does not use
32669         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32670         signaling nans are enabled, since __builtin_types_compatible_p
32671         is a C-only feature.
32672         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32673         defined, include ieee754_float128.h for access to the union and
32674         member ieee854_float128.ieee.
32675         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32676         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32677         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32678         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32679         options of test-math-zero on powerpc64le.
32680
32681 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
32682
32683         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32684         Change double to float.
32685
32686 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
32687
32688         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32689         unconditional.
32690         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32691         conditional code; define contents only for [LIBM_SVID_COMPAT].
32692
32693 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32694
32695         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32696         (abi-lp64_be-options): Remove.
32697         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32698         (abi-hard-options): Likewise.
32699         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32700         (abi-o32_hard-options, abi-o32_soft_2008-options)
32701         (abi-o32_hard_2008-options, abi-n32_soft-options)
32702         (abi-n32_hard-options, abi-n32_soft_2008-options)
32703         (abi-n32_hard_2008-options, abi-n64_soft-options)
32704         (abi-n64_hard-options, abi-n64_soft_2008-options)
32705         (abi-n64_hard_2008-options): Likewise.
32706         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32707         (abi-64-v1-options, abi-64-v2-options): Likewise.
32708         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32709         (abi-64-options): Likewise.
32710         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32711         (abi-64-options): Likewise.
32712         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32713         (abi-64-options): Likewise.
32714         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32715         (abi-64-options, abi-x32-options): Likewise.
32716
32717 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32718
32719         Store supported list of SYS_* system calls in the source tree.
32720         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32721         (bits/syscall.h): Generate from list file.
32722         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32723         [$(subdir) = misc] (tests): Add tst-syscall-list.
32724         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32725         [$(subdir) = misc] (tst-syscall-list-macros.list)
32726         [$(subdir) = misc] (tst-syscall-list-nr.list)
32727         (tst-syscall-list-sys.list): Helper targets for new
32728         tst-syscall-list test.
32729         [$(subdir) = misc] (tst-syscall-list.out): Run test script
32730         tst-syscall-list.sh.
32731         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32732         target. Do not include bits/syscall.d.
32733         [$(subdir) = misc] (generated): Do not update.
32734         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32735         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32736         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32737         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32738
32739 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
32740
32741         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32742         (tst-cxa_atexit, tst-on_exit): Likewise.
32743         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32744         tst-cxa_atexit, and tst-on_exit.
32745         * stdlib/tst-atexit-common.c: New file.
32746         * stdlib/tst-atexit.c: New file.
32747         * stdlib/tst-at_quick_exit.c: New file.
32748         * stdlib/tst-cxa_atexit.c: New file.
32749         * stdlib/tst-on_exit.c: New file.
32750
32751 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32752
32753         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32754         * mach/stack_chk_fail_local.c: New file.
32755         * hurd/stack_chk_fail_local.c: New file.
32756         * mach/Machrules ($(interface-library)-routines): Add
32757         stack_chk_fail_local.
32758         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32759         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32760         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32761         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32762         * hurd/Makefile (CFLAGS-hurdstartup.o,
32763         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32764
32765 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
32766
32767         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32768         (index_cpu_*, index_arch_*): Removed.
32769
32770 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32771
32772         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32773         Use uint64_t instead of unsigned long.
32774
32775 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
32776
32777         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32778         [__HAVE_DISTINCT_FLOAT128].
32779
32780         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32781         of <bits/math-finite.h>.
32782         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32783         inclusion of <bits/math-finite.h>.
32784         * math/bits/math-finite.h (__REDIRTO_X): Do not define
32785         conditionally on [__MATH_DECLARING_LDOUBLE && defined
32786         __NO_LONG_DOUBLE_MATH].
32787         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32788         (__MATH_REDIRCALL_2): Likewise.
32789         (__MATH_REDIRCALL_INTERNAL): Likewise.
32790         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32791         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32792         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32793
32794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32795         Remove file.
32796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32797         Likewise.
32798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32799         Likewise.
32800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32801         Likewise.
32802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32803         Likewise.
32804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32805         Likewise.
32806         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32807         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32808         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32809         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32811         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32812         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32813         w_sqrtf_compat-ppc32.
32814
32815 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32816
32817         * math/math.h [defined __cplusplus] (issignaling): In the long
32818         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32819         is not defined.  Call __issignaling, otherwise.
32820
32821 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32822
32823         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32824         syscall definitions and replace __builtin_expect with __glibc_likely.
32825         * sysdeps/unix/syscall-template.S: Update comment about cancellable
32826         syscall.
32827         (SYSCALL_CANCELLABLE): Removedefinition
32828         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32829         definition.
32830         (PSEUDO_END): Likewise.
32831         [IS_IN (libpthread)] (CENABLE): Likewise.
32832         [IS_IN (libpthread)] (CDISABLE): Likewise.
32833         [IS_IN (libc)] (CENABLE): Likewise.
32834         [IS_IN (libc)] (CENABLE): Likewise.
32835         [IS_IN (librt)] (CDISABLE): Likewise.
32836         [IS_IN (librt)] (CDISABLE): Likewise.
32837         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32838         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32839         definition.
32840         (PSEUDO_END): Likewise.
32841         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32842         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32843         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32844         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32845         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32846         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32847         (CENABLE): Likewise.
32848         (CDISABLE): Likewise.
32849         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32850         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32851         defintion.
32852         (PSEUDO_END): Likewise.
32853         [IS_IN (libpthread)] (CENABLE): Likewise.
32854         [IS_IN (libpthread)] (CDISABLE): Likewise.
32855         [IS_IN (libc)] (CENABLE): Likewise.
32856         [IS_IN (libc)] (CENABLE): Likewise.
32857         [IS_IN (librt)] (CDISABLE): Likewise.
32858         [IS_IN (librt)] (CDISABLE): Likewise.
32859         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32860         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32861         definition.
32862         (PSEUDO_END): Likewise.
32863         [IS_IN (libpthread)] (CENABLE): Likewise.
32864         [IS_IN (libpthread)] (CDISABLE): Likewise.
32865         [IS_IN (libc)] (CENABLE): Likewise.
32866         [IS_IN (libc)] (CENABLE): Likewise.
32867         [IS_IN (librt)] (CDISABLE): Likewise.
32868         [IS_IN (librt)] (CDISABLE): Likewise.
32869         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32870         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32871         definition.
32872         (PSEUDO_END): Likewise.
32873         [IS_IN (libpthread)] (CENABLE): Likewise.
32874         [IS_IN (libpthread)] (CDISABLE): Likewise.
32875         [IS_IN (libc)] (CENABLE): Likewise.
32876         [IS_IN (libc)] (CENABLE): Likewise.
32877         [IS_IN (librt)] (CDISABLE): Likewise.
32878         [IS_IN (librt)] (CDISABLE): Likewise.
32879         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32880         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32881         definition.
32882         (PSEUDO_END): Likewise.
32883         [IS_IN (libpthread)] (CENABLE): Likewise.
32884         [IS_IN (libpthread)] (CDISABLE): Likewise.
32885         [IS_IN (libc)] (CENABLE): Likewise.
32886         [IS_IN (libc)] (CENABLE): Likewise.
32887         [IS_IN (librt)] (CDISABLE): Likewise.
32888         [IS_IN (librt)] (CDISABLE): Likewise.
32889         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32890         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32891         definition.
32892         (PSEUDO_END): Likewise.
32893         [IS_IN (libpthread)] (CENABLE): Likewise.
32894         [IS_IN (libpthread)] (CDISABLE): Likewise.
32895         [IS_IN (libc)] (CENABLE): Likewise.
32896         [IS_IN (libc)] (CENABLE): Likewise.
32897         [IS_IN (librt)] (CDISABLE): Likewise.
32898         [IS_IN (librt)] (CDISABLE): Likewise.
32899         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32900         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32901         definition.
32902         (PSEUDO_END): Likewise.
32903         [IS_IN (libpthread)] (CENABLE): Likewise.
32904         [IS_IN (libpthread)] (CDISABLE): Likewise.
32905         [IS_IN (libc)] (CENABLE): Likewise.
32906         [IS_IN (libc)] (CENABLE): Likewise.
32907         [IS_IN (librt)] (CDISABLE): Likewise.
32908         [IS_IN (librt)] (CDISABLE): Likewise.
32909         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32910         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32911         Remove definition.
32912         (PSEUDO_END): Likewise.
32913         [IS_IN (libpthread)] (CENABLE): Likewise.
32914         [IS_IN (libpthread)] (CDISABLE): Likewise.
32915         [IS_IN (libc)] (CENABLE): Likewise.
32916         [IS_IN (libc)] (CENABLE): Likewise.
32917         [IS_IN (librt)] (CDISABLE): Likewise.
32918         [IS_IN (librt)] (CDISABLE): Likewise.
32919         (SINGLE_THREAD_P): Likewise.
32920         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32921         definition.
32922         (PSEUDO_END): Likewise.
32923         [IS_IN (libpthread)] (CENABLE): Likewise.
32924         [IS_IN (libpthread)] (CDISABLE): Likewise.
32925         [IS_IN (libc)] (CENABLE): Likewise.
32926         [IS_IN (libc)] (CENABLE): Likewise.
32927         [IS_IN (librt)] (CDISABLE): Likewise.
32928         [IS_IN (librt)] (CDISABLE): Likewise.
32929         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32930         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32931         definition.
32932         (PSEUDO_END): Likewise.
32933         [IS_IN (libpthread)] (CENABLE): Likewise.
32934         [IS_IN (libpthread)] (CDISABLE): Likewise.
32935         [IS_IN (libc)] (CENABLE): Likewise.
32936         [IS_IN (libc)] (CENABLE): Likewise.
32937         [IS_IN (librt)] (CDISABLE): Likewise.
32938         [IS_IN (librt)] (CDISABLE): Likewise.
32939         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32940         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32941         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32942         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32943         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32944         definition.
32945         (PSEUDO_END): Likewise.
32946         [IS_IN (libpthread)] (CENABLE): Likewise.
32947         [IS_IN (libpthread)] (CDISABLE): Likewise.
32948         [IS_IN (libc)] (CENABLE): Likewise.
32949         [IS_IN (libc)] (CENABLE): Likewise.
32950         [IS_IN (librt)] (CDISABLE): Likewise.
32951         [IS_IN (librt)] (CDISABLE): Likewise.
32952         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32953         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32954         definition.
32955         (PSEUDO_END): Likewise.
32956         [IS_IN (libpthread)] (CENABLE): Likewise.
32957         [IS_IN (libpthread)] (CDISABLE): Likewise.
32958         [IS_IN (libc)] (CENABLE): Likewise.
32959         [IS_IN (libc)] (CENABLE): Likewise.
32960         [IS_IN (librt)] (CDISABLE): Likewise.
32961         [IS_IN (librt)] (CDISABLE): Likewise.
32962         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32963         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32964         definition.
32965         (PSEUDO_END): Likewise.
32966         [IS_IN (libpthread)] (CENABLE): Likewise.
32967         [IS_IN (libpthread)] (CDISABLE): Likewise.
32968         [IS_IN (libc)] (CENABLE): Likewise.
32969         [IS_IN (libc)] (CENABLE): Likewise.
32970         [IS_IN (librt)] (CDISABLE): Likewise.
32971         [IS_IN (librt)] (CDISABLE): Likewise.
32972         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32973         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32974         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32975         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32976         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32977         definition.
32978         (PSEUDO_END): Likewise.
32979         [IS_IN (libpthread)] (CENABLE): Likewise.
32980         [IS_IN (libpthread)] (CDISABLE): Likewise.
32981         [IS_IN (libc)] (CENABLE): Likewise.
32982         [IS_IN (libc)] (CENABLE): Likewise.
32983         [IS_IN (librt)] (CDISABLE): Likewise.
32984         [IS_IN (librt)] (CDISABLE): Likewise.
32985         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32986         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32987         definition.
32988         (PSEUDO_END): Likewise.
32989         [IS_IN (libpthread)] (CENABLE): Likewise.
32990         [IS_IN (libpthread)] (CDISABLE): Likewise.
32991         [IS_IN (libc)] (CENABLE): Likewise.
32992         [IS_IN (libc)] (CENABLE): Likewise.
32993         [IS_IN (librt)] (CDISABLE): Likewise.
32994         [IS_IN (librt)] (CDISABLE): Likewise.
32995         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32996
32997 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32998
32999         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33000
33001 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33002
33003         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33004
33005 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33006
33007         [BZ #21982]
33008         * string/stratcliff.c (do_test): Declare size, nchars, inner,
33009         middle and outer with size_t instead of int.  Repleace %d and
33010         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
33011         "MAX (outer, nchars - 64)" to support unsigned outer and
33012         nchars.  Also exit loop when outer == 0.
33013
33014 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33015
33016         * include/fcntl.h (__fcntl_nocancel): Remove definition.
33017         * include/signal.h (__sigsuspend_nocancel): Likewise.
33018         * include/time.h (__nanosleep_nocancel): Likewise.
33019         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33020         * login/utmp_file.c: Include non cancellable syscall header.
33021         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33022         prototype.
33023
33024 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
33025
33026         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33027         .byte sequences with AVX512F instructions.
33028         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33029         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33030         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33031         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33032         Likewise.
33033         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33034         Likewise.
33035
33036 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
33037             Steve Ellcey  <sellcey@cavium.com>
33038
33039         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33040         Use PTR_REG macro in cmp instruction.
33041
33042 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33043
33044         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33045         Change the return type of the ifunc resolver to match the return
33046         type of the target function.
33047
33048 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33049
33050         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33051         (preadv64): Likewise.
33052         (pwrite64(: Likewise.
33053         (pwritev64): Likewise.
33054
33055         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33056         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33057         (LOAD_ARGS_0): Likewise.
33058         (LOAD_ARGS_1): Likewise.
33059         (LOAD_ARGS_2): Likewise.
33060         (LOAD_ARGS_3): Likewise.
33061         (LOAD_ARGS_4): Likewise.
33062         (LOAD_ARGS_5): Likewise.
33063         (LOAD_ARGS_6): Likewise.
33064         (LOAD_REGS_0): Likewise.
33065         (LOAD_REGS_1): Likewise.
33066         (LOAD_REGS_2): Likewise.
33067         (LOAD_REGS_3): Likewise.
33068         (LOAD_REGS_4): Likewise.
33069         (LOAD_REGS_5): Likewise.
33070         (LOAD_REGS_6): Likewise.
33071         (ASM_ARGS_0): Likewise.
33072         (ASM_ARGS_1): Likewise.
33073         (ASM_ARGS_2): Likewise.
33074         (ASM_ARGS_3): Likewise.
33075         (ASM_ARGS_4): Likewise.
33076         (ASM_ARGS_5): Likewise.
33077         (ASM_ARGS_6): Likewise.
33078         (LOAD_ARGS_TYPES_1): Likewise.
33079         (LOAD_ARGS_TYPES_2): Likewise.
33080         (LOAD_ARGS_TYPES_3): Likewise.
33081         (LOAD_ARGS_TYPES_4): Likewise.
33082         (LOAD_ARGS_TYPES_5): Likewise.
33083         (LOAD_ARGS_TYPES_6): Likewise.
33084         (LOAD_REGS_TYPES_1): Likewise.
33085         (LOAD_REGS_TYPES_2): Likewise.
33086         (LOAD_REGS_TYPES_3): Likewise.
33087         (LOAD_REGS_TYPES_4): Likewise.
33088         (LOAD_REGS_TYPES_5): Likewise.
33089         (LOAD_REGS_TYPES_6): Likewise.
33090         (TYPEFY): New define.
33091         (ARGIFY): Likewise.
33092         (internal_syscall0): Likewise.
33093         (internal_syscall1): Likewise.
33094         (internal_syscall2): Likewise.
33095         (internal_syscall3): Likewise.
33096         (internal_syscall4): Likewise.
33097         (internal_syscall5): Likewise.
33098         (internal_syscall6): Likewise.
33099         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33100         (INTERNAL_SYSCALL_NCS): Remove define.
33101         (internal_syscall1): Add define.
33102
33103 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33104
33105         * math/w_remainder_compat.c: Remove duplicate inclusion of
33106         math-svid-compat.h.
33107         * math/w_remainderf_compat.c: Likewise.
33108         * math/w_remainderl_compat.c: Likewise.
33109
33110 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33111
33112         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33113
33114 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33115
33116         [BZ #21684]
33117         * math/tgmath.h (__floating_type): Simplify definitions.
33118         (__real_integer_type): New macro.
33119         (__complex_integer_type): Likewise.
33120         (__expr_is_real): Likewise.
33121         (__tgmath_real_type_sub): Update comment to describe handling of
33122         complex types.
33123         (__tgmath_complex_type_sub): New macro.
33124         (__tgmath_complex_type): Likewise.
33125         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33126         (__TGMATH_CF128): Use __expr_is_real.
33127         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33128         __expr_is_real.
33129         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33130         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33131         * math/gen-tgmath-tests.py (Type.create_type): Create complex
33132         integer types.
33133
33134 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33135
33136         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33137         macro.
33138         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33139         alias.
33140         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33141         Likewise.
33142
33143         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33144         nanosleep_not_cancel with __nanosleep_nocancel.
33145         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33146         (__nanosleep_nocancel): New macro.
33147         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33148         function.
33149         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33150         macro.
33151         (__nanosleep_nocancel): New prototype.
33152
33153         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33154         pause_not_cancel with __pause_nocancel.
33155         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33156         (__pause_nocancel): New macro.
33157         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33158         macro.
33159         (__pause_nocancel): New prototype.
33160         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33161
33162 2017-08-22  Martin Sebor  <msebor@redhat.com>
33163
33164         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33165         to return a pointer to the same type as the target function.
33166
33167 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33168
33169         [BZ #18822]
33170         [BZ #21986]
33171         * include/printf.h (__printf_fphex): Add attribute_hidden.
33172         (__guess_grouping): New prototype.
33173         * stdio-common/printf_fp.c (__guess_grouping): Removed.
33174         * stdio-common/reg-printf.c (__register_printf_specifier): Add
33175         libc_hidden_proto and libc_hidden_def.
33176         * stdlib/strfmon_l.c (__guess_grouping): Removed.
33177         (__vstrfmon_l): Remove the third argument passed to
33178         __guess_grouping.
33179
33180 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33181
33182         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33183         definition for issignaling that does not rely on __MATH_TG,
33184         since __MATH_TG uses __builtin_types_compatible_p, which is only
33185         available in C mode.
33186         (CFLAGS-test-math-issignaling.cc): New variable.
33187         * math/Makefile [CXX] (tests): Add test-math-issignaling.
33188         * math/test-math-issignaling.cc: New test for C++ implementation
33189         of type-generic issignaling.
33190         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33191         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33192         options of test-math-issignaling on powerpc64le.
33193
33194 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
33195
33196         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33197         building libc.a.
33198         (hidden_proto): Likewise.
33199         (hidden_tls_proto): Likewise.
33200         (__hidden_proto): Likewise.
33201
33202 2017-08-22  Florian Weimer  <fweimer@redhat.com>
33203
33204         math: Statically link tests of internal functionality.
33205         * math/Makefile (tests): Remove atest-exp, atest-sincos,
33206         atest-exp2.
33207         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33208         (gmp-objs): Remove assignment.
33209         (atest-exp, atest-sincos, atest-exp2): Remove targets.
33210
33211 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
33212
33213         [BZ #21987]
33214         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33215         and copy to ...
33216         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33217         ... here.
33218         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33219         ... and here.
33220
33221         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33222         variable definitions above inclusion of ../Rules.
33223
33224 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33225
33226         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33227         case calling __builtin_unreachable.
33228
33229 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33230
33231         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33232         __waitpid_nocancel.
33233         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33234         (__waitpid_nocancel): New macro.
33235         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33236         macro.
33237         (__waitpid_nocancel): Replace macro with a function.
33238         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33239         function.
33240
33241         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33242         __fcntl_nocancel.
33243         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33244         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33245
33246         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33247         __writev_nocancel_nostatus.
33248         (write_call_graph): Likewise.
33249         (write_bb_counts): Likewise.
33250         * resolv/herror.c (herror): Likewise.
33251         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33252         macro.
33253         (__writev_nocancel_nostatus): New macro.
33254         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33255         Remove macro.
33256         (__writev_nocancel_nostatus): New function.
33257
33258 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
33259
33260         Revert:
33261         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33262
33263         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33264         building libc.a.
33265         (hidden_proto): Likewise.
33266         (hidden_tls_proto): Likewise.
33267         (__hidden_proto): Likewise.
33268
33269         [BZ #21973]
33270         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33271         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33273         Likewise.
33274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33275         Likewise.
33276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33277         Likewise.
33278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33279         Likewise.
33280         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33281         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33282         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33283         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33284         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33285         GLIBC_2.0 sqrtl symbol.
33286
33287         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33288         [__USE_MISC] (_LIB_VERSION): Likewise.
33289         [__USE_MISC] (struct exception): Likewise.
33290         [__USE_MISC] (matherr): Likewise.
33291         [__USE_MISC] (DOMAIN): Likewise.
33292         [__USE_MISC] (SING): Likewise.
33293         [__USE_MISC] (OVERFLOW): Likewise.
33294         [__USE_MISC] (UNDERFLOW): Likewise.
33295         [__USE_MISC] (TLOSS): Likewise.
33296         [__USE_MISC] (PLOSS): Likewise.
33297         [__USE_MISC] (HUGE): Likewise.
33298         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33299         * math/math-svid-compat.h: New file.
33300         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33301         and matherrl.
33302         * include/math.h [!_ISOMAC] (__matherr): Remove.
33303         * manual/arith.texi (FP Exceptions): Do not document matherr.
33304         * math/Makefile (tests): Change test-matherr to test-matherr-3.
33305         (tests-internal): New variable.
33306         (install-lib): Do not add libieee.a.
33307         (non-lib.a): Likewise.
33308         (extra-objs): Do not add libieee.a and ieee-math.o.
33309         (CPPFLAGS-s_lib_version.c): Remove variable.
33310         ($(objpfx)libieee.a): Remove rule.
33311         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33312         * math/ieee-math.c: Remove.
33313         * math/libm-test-support.c (matherr): Remove.
33314         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
33315         and license notices.  Include <math-svid-compat.h> and
33316         <shlib-compat.h>.
33317         (matherr): Undefine as macro.  Use compat_symbol_reference.
33318         (_LIB_VERSION): Likewise.
33319         * math/test-matherr-2.c: New file.
33320         * math/test-matherr-3.c: Likewise.
33321         * sysdeps/generic/math_private.h (__kernel_standard): Remove
33322         declaration.
33323         (__kernel_standard_f): Likewise.
33324         (__kernel_standard_l): Likewise.
33325         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33326         <math_private.h>.  Include <math-svid-compat.h>.
33327         (_LIB_VERSION): Undefine as macro.
33328         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
33329         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
33330         [LIBM_SVID_COMPAT], use compat_symbol.
33331         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33332         <math_private.h>.  Include <math-svid-compat.h>.
33333         (matherr): Undefine as macro.
33334         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
33335         compat_symbol.
33336         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33337         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33338         compat_symbol_reference.
33339         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33340         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33341         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33342         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33343         (MATHERR_D): Remove declaration.
33344         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33345         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33346         [LIBM_BUILD] (pmatherrf): Likewise.
33347         [LIBM_BUILD] (pmatherr): Likewise.
33348         [LIBM_BUILD] (pmatherrl): Likewise.
33349         (DOMAIN): Likewise.
33350         (SING): Likewise.
33351         (OVERFLOW): Likewise.
33352         (UNDERFLOW): Likewise.
33353         (TLOSS): Likewise.
33354         (PLOSS): Likewise.
33355         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33356         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
33357         compat_symbol.
33358         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33359         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
33360         compat_symbol.
33361         * math/lgamma-compat.h: Include <math-svid-compat.h>.
33362         * math/w_acos_compat.c: Likewise.
33363         * math/w_acosf_compat.c: Likewise.
33364         * math/w_acosh_compat.c: Likewise.
33365         * math/w_acoshf_compat.c: Likewise.
33366         * math/w_acoshl_compat.c: Likewise.
33367         * math/w_acosl_compat.c: Likewise.
33368         * math/w_asin_compat.c: Likewise.
33369         * math/w_asinf_compat.c: Likewise.
33370         * math/w_asinl_compat.c: Likewise.
33371         * math/w_atan2_compat.c: Likewise.
33372         * math/w_atan2f_compat.c: Likewise.
33373         * math/w_atan2l_compat.c: Likewise.
33374         * math/w_atanh_compat.c: Likewise.
33375         * math/w_atanhf_compat.c: Likewise.
33376         * math/w_atanhl_compat.c: Likewise.
33377         * math/w_cosh_compat.c: Likewise.
33378         * math/w_coshf_compat.c: Likewise.
33379         * math/w_coshl_compat.c: Likewise.
33380         * math/w_exp10_compat.c: Likewise.
33381         * math/w_exp10f_compat.c: Likewise.
33382         * math/w_exp10l_compat.c: Likewise.
33383         * math/w_exp2_compat.c: Likewise.
33384         * math/w_exp2f_compat.c: Likewise.
33385         * math/w_exp2l_compat.c: Likewise.
33386         * math/w_fmod_compat.c: Likewise.
33387         * math/w_fmodf_compat.c: Likewise.
33388         * math/w_fmodl_compat.c: Likewise.
33389         * math/w_hypot_compat.c: Likewise.
33390         * math/w_hypotf_compat.c: Likewise.
33391         * math/w_hypotl_compat.c: Likewise.
33392         * math/w_j0_compat.c: Likewise.
33393         * math/w_j0f_compat.c: Likewise.
33394         * math/w_j0l_compat.c: Likewise.
33395         * math/w_j1_compat.c: Likewise.
33396         * math/w_j1f_compat.c: Likewise.
33397         * math/w_j1l_compat.c: Likewise.
33398         * math/w_jn_compat.c: Likewise.
33399         * math/w_jnf_compat.c: Likewise.
33400         * math/w_jnl_compat.c: Likewise.
33401         * math/w_lgamma_main.c: Likewise.
33402         * math/w_lgamma_r_compat.c: Likewise.
33403         * math/w_lgammaf_main.c: Likewise.
33404         * math/w_lgammaf_r_compat.c: Likewise.
33405         * math/w_lgammal_main.c: Likewise.
33406         * math/w_lgammal_r_compat.c: Likewise.
33407         * math/w_log10_compat.c: Likewise.
33408         * math/w_log10f_compat.c: Likewise.
33409         * math/w_log10l_compat.c: Likewise.
33410         * math/w_log2_compat.c: Likewise.
33411         * math/w_log2f_compat.c: Likewise.
33412         * math/w_log2l_compat.c: Likewise.
33413         * math/w_log_compat.c: Likewise.
33414         * math/w_logf_compat.c: Likewise.
33415         * math/w_logl_compat.c: Likewise.
33416         * math/w_pow_compat.c: Likewise.
33417         * math/w_powf_compat.c: Likewise.
33418         * math/w_powl_compat.c: Likewise.
33419         * math/w_remainder_compat.c: Likewise.
33420         * math/w_remainderf_compat.c: Likewise.
33421         * math/w_remainderl_compat.c: Likewise.
33422         * math/w_scalb_compat.c: Likewise.
33423         * math/w_scalbf_compat.c: Likewise.
33424         * math/w_scalbl_compat.c: Likewise.
33425         * math/w_sinh_compat.c: Likewise.
33426         * math/w_sinhf_compat.c: Likewise.
33427         * math/w_sinhl_compat.c: Likewise.
33428         * math/w_sqrt_compat.c: Likewise.
33429         * math/w_sqrtf_compat.c: Likewise.
33430         * math/w_sqrtl_compat.c: Likewise.
33431         * math/w_tgamma_compat.c: Likewise.
33432         * math/w_tgammaf_compat.c: Likewise.
33433         * math/w_tgammal_compat.c: Likewise.
33434         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33435         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33436         * sysdeps/ieee754/k_standard.c: Likewise.
33437         * sysdeps/ieee754/k_standardf.c: Likewise.
33438         * sysdeps/ieee754/k_standardl.c: Likewise.
33439         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33440         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33441         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33442         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33443         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33444         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33445         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33446         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33447         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33449         Likewise.
33450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33451         Likewise.
33452         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33453         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33454         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33455         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33456
33457 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33458
33459         [BZ #21864]
33460         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33461         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33462         Move before inclusion of ../Rules.
33463
33464 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33465
33466         [BZ #21972]
33467         * assert/assert.h (assert): Use static_cast (bool) for C++.
33468         Use the ternary operator in the warning branch for GNU C.
33469         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33470         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33471         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33472         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33473         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33474
33475 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33476
33477         [BZ #18822]
33478         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33479         (__syscall_clock_gettime): Add attribute_hidden.
33480         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33481         (__start_context): Likewise.
33482
33483 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33484
33485         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33486         building libc.a.
33487         (hidden_proto): Likewise.
33488         (hidden_tls_proto): Likewise.
33489         (__hidden_proto): Likewise.
33490
33491 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33492
33493         * include/libc-symbols.h (attribute_hidden): Enable hidden
33494         visibility in libc.a compiled with PIE.
33495
33496 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33497
33498         [BZ #18822]
33499         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33500         Add attribute_hidden.
33501
33502 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33503
33504         [BZ #21864]
33505         * Makerules (all-nonlib): Add $(others-extras).
33506         * catgets/Makefile (others-extras): New.
33507         * elf/Makefile (others-extras): Likewise.
33508         * nss/Makefile (others-extras): Likewise.
33509
33510 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33511
33512         [BZ #18822]
33513         * csu/libc-start.c (__libc_multiple_libcs): Removed.
33514         * elf/dl-open.c: Include <libc-internal.h>.
33515         (__libc_multiple_libcs): Removed.
33516         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33517         <hp-timing.h>.
33518         * include/libc-internal.h (__libc_multiple_libcs): New.
33519         * misc/sbrk.c: Include <libc-internal.h>.
33520         (__libc_multiple_libcs): Removed.
33521
33522 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33523
33524         [BZ #18822]
33525         * grp/initgroups.c (__nss_group_database): Removed.
33526         (__nss_initgroups_database): Likewise.
33527         * nscd/gai.c (__nss_hosts_database): Likewise.
33528         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33529         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33530         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33531         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33532         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33533         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33534         attribute_hidden.
33535         * nss/nsswitch.c (__nss_database_custom): Define only if
33536         USE_NSCD is defined.
33537         (__nss_configure_lookup): Use __nss_database_custom only if
33538         USE_NSCD is defined.
33539         * nss/nsswitch.h (__nss_database_custom): Declare only if
33540         USE_NSCD is defined.  Add attribute_hidden.
33541         (__nss_setent): Add attribute_hidden.
33542         (__nss_endent): Likewise.
33543         (__nss_getent_r): Likewise.
33544         (__nss_getent): Likewise.
33545         (DEFINE_DATABASE): Declare __nss_##arg##_database.
33546
33547 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33548
33549         [BZ #18822]
33550         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33551         libc_hidden_proto and libc_hidden_def.
33552
33553 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33554
33555         [BZ #18822]
33556         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33557         Add libc_hidden_proto.
33558         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33559         Add libc_hidden_def.
33560
33561 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33562
33563         [BZ #21974]
33564         * gmon/Makefile (routines): Remove bb_init_func and
33565         bb_exit_func.
33566         (elide-routines.os): Removed.
33567         * gmon/bb_exit_func.c: Likewise.
33568         * gmon/bb_init_func.c: Likewise.
33569         * include/sys/gmon.h (__bb): Likewise.
33570         (__bb_init_func): Likewise.
33571         (__bb_exit_func): Likewise.
33572         * sysdeps/alpha/bb_init_func.S: Likewise.
33573
33574 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33575
33576         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33577         * include/setjmp.h (____longjmp_chk): Here.  Add
33578         attribute_hidden.
33579
33580 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
33581
33582         [BZ #18822]
33583         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33584         attribute_hidden.
33585         (__strspn_sse2): Likewise.
33586
33587 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33588
33589         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33590         (close_not_cancel_no_status): Likewise.
33591         (__close_nocancel): New macro.
33592         (__close_nocancel_nostatus): Likewise.
33593         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33594         macro.
33595         (close_not_cancel): Likewise.
33596         (close_not_cancel_no_status): Likewise.
33597         (__close_nocancel): New prototype.
33598         (__close_nocancel_nostatus): New function.
33599         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33600         * catgets/open_catalog.c (__open_catalog): Replace
33601         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33602         * gmon/gmon.c (write_gmon): Likewise.
33603         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33604         * intl/loadmsgcat.c (close): Likewise.
33605         * io/ftw.c (open_dir_stream): Likewise.
33606         (ftw_startup): Likewise.
33607         * libio/fileops.c (_IO_file_open): Likewise.
33608         (_IO_file_close_mmap): Likewise.
33609         (_IO_file_close): Likewise.
33610         * libio/iopopen.c (_IO_dup2): Likewise.
33611         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33612         * locale/loadlocale.c (_nl_load_locale): Likewise.
33613         * login/utmp_file.c (pututline_file): Likewise.
33614         (endutent_file): Likewise.
33615         * misc/daemon.c (daemon): Likewise.
33616         * nscd/nscd_getai.c (__nscd_getai): Likewise.
33617         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33618         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33619         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33620         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33621         * nscd/nscd_helper.c (open_socket): Likewise.
33622         (__nscd_open_socket): Likewise.
33623         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33624         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33625         (__nscd_innetgr): Likewise.
33626         * nss/nss_db/db-open.c (internal_setent): Likewise.
33627         * resolv/res-close.c (__res_iclose): Likewise.
33628         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33629         * sysdeps/posix/closedir.c (__closedir): Likewise.
33630         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33631         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33632         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33633         (opendir_tail): Likewise.
33634         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33635         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33636         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33637         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33638         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33639         (gethostid): Likewise.
33640         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33641         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33642         Likewise.
33643         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33644         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33645         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33646         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33647         Likewise.
33648         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33649         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33650         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33651         Likewise.
33652         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33653         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33654         Likewise.
33655         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33656         Likewise.
33657         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33658         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33659         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33660         __close_nocancel.
33661
33662         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33663         (openat_not_cancel_3): Likewise.
33664         (openat64_not_cancel_3): Likewise).
33665         (openat_not_cancel_3): Likewise).
33666         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33667         macro.
33668         (openat_not_cancel_3): Likewise.
33669         (openat64_not_cancel): Likewise.
33670         (openat64_not_cancel_3): Likewise.
33671         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33672         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33673         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33674         __open{64}_nocancel.
33675         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33676         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33677         * sysdeps/posix/opendir.c (__opendirat): Likewise.
33678
33679 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33680
33681         [BZ #18822]
33682         * include/argz.h (__argz_create_sep): New function prototype.
33683         (__argz_append): Likewise.
33684         (__argz_add): Likewise.
33685         (__argz_add_sep): Likewise.
33686         (__argz_delete): Likewise.
33687         (__argz_insert): Likewise.
33688         (__argz_replace): Likewise.
33689         * string/argz.h (__argz_create_sep): Removed.
33690         (__argz_append): Likewise.
33691         (__argz_add): Likewise.
33692         (__argz_add_sep): Likewise.
33693         (__argz_delete): Likewise.
33694         (__argz_insert): Likewise.
33695         (__argz_replace): Likewise.
33696
33697 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33698
33699         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33700         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33701         (GNU_PROPERTY_STACK_SIZE): Likewie.
33702         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33703         (GNU_PROPERTY_LOPROC): Likewise.
33704         (GNU_PROPERTY_HIPROC): Likewise.
33705         (GNU_PROPERTY_LOUSER): Likewise.
33706         (GNU_PROPERTY_HIUSER): Likewise.
33707         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33708         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33709         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33710         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33711         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33712         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33713         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33714         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33715         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33716         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33717         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33718         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33719         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33720         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33721         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33722         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33723         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33724         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33725         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33726         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33727         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33728         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33729         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33730
33731 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33732
33733         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33734         in C++ mode.
33735
33736 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33737
33738         [BZ #21930]
33739         * math/math.h (isinf): Check if in C or C++ mode before using
33740         __builtin_types_compatible_p, since this is a C mode feature.
33741
33742 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33743
33744         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33745         (__write_nocancel): New macro.
33746         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33747         Rewrite as a function prototype.
33748         (write_not_cancel): Remove macro.
33749         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33750         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33751         (write_gmon): Likewise.
33752         * libio/fileops.c (_IO_new_file_write): Likewise.
33753         * login/utmp_file.c (pututline_file): Likewise.
33754         (updwtmp_file): Likewise.
33755         * stdio-common/psiginfo.c (psiginfo): Likewise.
33756         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33757         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33758         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33759         Likewise.
33760         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33761         Likewise.
33762
33763         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33764         (__read_nocancel): New macro.
33765         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33766         __read_nocancel.
33767         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33768         macro.
33769         (__read_nocancel): New prototype.
33770         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33771         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33772         with __read_nocancel.
33773         * intl/loadmsgcat.c (read): Likewise.
33774         * libio/fileops.c (_IO_file_read): Likewise.
33775         * locale/loadlocale.c (_nl_load_locale): Likewise.
33776         * login/utmp_file.c (getutent_r_file): Likewise.
33777         (internal_getut_r): Likewise.
33778         (getutline_r_file): Likewise.
33779         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33780         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33781         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33782         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33783         Likewise.
33784         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33785         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33786         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33787         Likewise.
33788         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33789         Likewise.
33790         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33791         Likewise.
33792         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33793         Likewise.
33794         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33795
33796 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33797
33798         [BZ #21966]
33799         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33800         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33801         usable.
33802
33803 2017-08-17  DJ Delorie  <dj@redhat.com>
33804
33805         * bug17079.c: Update to new test harness.
33806         * test-digits-dots.c: Likewise.
33807         * test-netdb.c: Likewise.
33808         * tst-field.c: Likewise.
33809         * tst-nss-getpwent.c: Likewise.
33810         * tst-nss-static.c: Likewise.
33811         * tst-nss-test1.c: Likewise.
33812         * tst-nss-test2.c: Likewise.
33813         * tst-nss-test3.c: Likewise.
33814         * tst-nss-test4.c: Likewise.
33815         * tst-nss-test5.c: Likewise.
33816
33817 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33818
33819         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33820         (open_not_cancel_2): Likewise.
33821         (open_nocancel): New macro.
33822         (open64_nocancel): Likewise.
33823         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33824         (open_not_cancel_2): Likewise.
33825         (__open_nocancel): New prototype.
33826         (__open64_nocancel): Likewise.
33827         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33828         __open_nocancel.
33829         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33830         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33831         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33832         with __open_nocancel.
33833         * csu/check_fds.c (check_one_fd): Likewise.
33834         * gmon/gmon.c (write_gmon): Likewise.
33835         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33836         * intl/loadmsgcat.c (open): Likewise.
33837         * libio/fileops.c (_IO_file_open): Likewise.
33838         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33839         * locale/loadlocale.c (_nl_load_locale): Likewise.
33840         * login/utmp_file.c (setutent_file): Likewise.
33841         * misc/daemon.c (daemon): Likewise.
33842         * nss/nss_db/db-open.c (internal_setent): Likewise.
33843         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33844         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33845         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33846         (__opendir): Likewise.
33847         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33848         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33849         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33850         (gethostid): Likewise.
33851         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33852         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33853         Likewise.
33854         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33855         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33856         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33857         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33858         Likewise.
33859         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33860         Likewise.
33861         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33862         Likewise.
33863         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33864         Likewise.
33865         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33866         Likewise.
33867         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33868         Likewise.
33869         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33870         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33871
33872 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
33873
33874         * benchtests/bench-skeleton.c (main): Add support for
33875         latency benchmarking.
33876         * benchtests/scripts/bench.py: Add support for latency benchmarking.
33877
33878 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
33879
33880         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33881         the startup object.
33882
33883 2017-08-17  Florian Weimer  <fweimer@redhat.com>
33884
33885         * include/sys/socket.h (__opensock): Remove internal_function.
33886         * socket/opensock.c (__opensock): Likewise.
33887         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33888
33889 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33890
33891         [BZ #21944]
33892         * signal/bits/types/__sigval_t.h: New file.
33893         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33894         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33895         and define sigval_t using __sigval_t.
33896         * include/bits/types/__sigval_t.h: New file.
33897         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33898         instead of <bits/types/__sigval_t.h>.
33899         (struct sigevent): Use __sigval_t instead of sigval_t.
33900         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33901         instead of <bits/types/__sigval_t.h>.
33902         (siginfo_t): Use __sigval_t instead of sigval_t.
33903         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33904         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33905         (struct sigevent): Use __sigval_t instead of sigval_t.
33906         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33907         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33908         (siginfo_t): Use __sigval_t instead of sigval_t.
33909         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33910
33911 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33912
33913         * NEWS: Remove "[Add new features here]" for 2.27.
33914
33915 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33916
33917         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33918         libc.so.
33919
33920 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33921
33922         * NEWS: Mention x86-64 FMA optimization.
33923
33924 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33925
33926         [BZ #21912]
33927         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33928         Add e_expf-fma.
33929         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33930         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33931         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33932
33933 2017-08-16  Andreas Schwab  <schwab@suse.de>
33934
33935         [BZ #16750]
33936         CVE-2009-5064
33937         * elf/ldd.bash.in: Never run file directly.
33938
33939 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
33940
33941         [BZ #21955]
33942         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33943         (L(SP_INF_0)): Likewise.
33944
33945 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33946
33947         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33948         run-built-tests.
33949
33950 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33951
33952         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33953         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33954         BROKEN_THREAD_SIGNALS code.
33955         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33956         request_list): Remove caller_pid member used for
33957         BROKEN_THREAD_SIGNALS.
33958         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33959         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33960         Remove BROKEN_THREAD_SIGNALS support.
33961         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33962         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33963
33964 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33965
33966         * gmon/Makefile (tests): Add tst-gmon.
33967         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33968         Set.
33969         (tests-special): Add tst-gmon-prof.out.
33970         (tst-gmon.out): Depend on clean-tst-gmon-data.
33971         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33972         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33973         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33974         startup object.
33975         * aclocal.m4 (GPROF): Set and substitute.
33976         * config.amke.in (GPROF): Set.
33977         * configure: Regenerate.
33978
33979 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
33980
33981         * elf/elf.h A (NT_PPC_TAR): New macro.
33982         (NT_PPC_PPR): Likewise.
33983         (NT_PPC_DSCR): Likewise.
33984         (NT_PPC_EBB): Likewise.
33985         (NT_PPC_PMU): Likewise.
33986         (NT_PPC_TM_CGPR): Likewise.
33987         (NT_PPC_TM_CFPR): Likewise.
33988         (NT_PPC_TM_CVMX): Likewise.
33989         (NT_PPC_TM_CVSX): Likewise.
33990         (NT_PPC_TM_SPR): Likewise.
33991         (NT_PPC_TM_CTAR): Likewise.
33992         (NT_PPC_TM_CPPR): Likewise.
33993         (NT_PPC_TM_CDSCR): Likewise.
33994
33995 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33996
33997         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33998         regparm (2) instead of internal_function.
33999         (_MCOUNT_DECL): Adjust.
34000
34001 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
34002
34003         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34004         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34005
34006 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
34007
34008         * conform/data/sys/wait.h-data (si_value): Do not expect for
34009         XPG42.
34010
34011 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34012
34013         [BZ #21962]
34014         NSS: Create stubs for accidentally exported lookup functions.
34015         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34016         Remove declaration.
34017         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34018         (ether_hostton): Call __nss_ethers_lookup2 instead.
34019         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34020         (ether_ntohost): Call __nss_ethers_lookup2 instead.
34021         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34022         (setup): Call __nss_netgroup_lookup2 instead.
34023         * nss/Makefile (routines): Add compat-lookup.
34024         * nss/Versions (GLIBC_2.27): Add symbol version.
34025         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
34026         (DB_COMPAT_FCT): Remove.
34027         * nss/compat-lookup.c: New file.
34028         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34029         from databases.def.
34030         * nss/service-lookup.c (NO_COMPAT): Remove definition.
34031         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34032         (netname2user): Call __nss_publickey_lookup2 instead.
34033         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34034         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34035         instead.
34036
34037 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34038             Sergei Trofimovich  <slyfox@inbox.ru>
34039
34040         [BZ #21908]
34041         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34042         Rename to MMAP2_PAGE_UNIT.
34043         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34044         __OFF_T_MATCHES_OFF64_T is not defined.
34045         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34046         uint64_t.
34047         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34048         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34049
34050 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34051
34052         i386: Do not set internal_function.
34053         * config.h.in (USE_REGPARMS, internal_function): Remove.
34054         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34055         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34056
34057 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34058
34059         * elf/dl-init.c (_dl_init): Remove internal_function.
34060         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34061         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34062
34063 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34064
34065         * elf/rtld.c (_dl_start): Remove internal_function.
34066         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34067         _dl_start.
34068
34069 2017-08-14  Florian Weimer  <fweimer@redhat.com>
34070
34071         * elf/dl-fini.c (_dl_fini): Remove internal_function
34072         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34073
34074 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
34075
34076         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34077         (bit_cpu_SHSTK): Likewise.
34078         (index_cpu_IBT): Likewise.
34079         (index_cpu_SHSTK): Likewise.
34080         (reg_IBT): Likewise.
34081         (reg_SHSTK): Likewise.
34082         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34083         Handle index_cpu_IBT and index_cpu_SHSTK.
34084
34085 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
34086
34087         [BZ #19982]
34088         * po/fr.po: Fix spelling mistake.
34089
34090 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34091
34092         * elf/dl-addr.c (_dl_addr): Remove internal_function.
34093         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34094         (_dl_catch_error, _dl_receive_error): Likewise.
34095         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34096         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34097         (_dl_deallocate_tls): Likewise.
34098         * include/dlfcn.h (_dl_addr): Likewise.
34099         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34100         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34101         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34102         Likewise.
34103
34104 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34105
34106         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34107         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34108         internal_function.
34109         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34110
34111 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34112
34113         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34114         internal_function.
34115         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34116         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34117         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34118         internal_function from _dl_make_stack_executable_hook member.
34119         (_dl_make_stack_executable): Remove internal_function.
34120         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34121         Likewise.
34122         * sysdeps/unix/sysv/linux/dl-execstack.c
34123         (_dl_make_stack_executable): Likewise.
34124
34125 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34126
34127         * sysdeps/unix/sysv/linux/netlinkaccess.h
34128         (__netlink_assert_response): Remove internal_function.
34129         * sysdeps/unix/sysv/linux/netlink_assert_response.c
34130         (__netlink_assert_response): Likewise.
34131
34132 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34133
34134         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34135         internal_function.
34136         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34137
34138 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34139
34140         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34141         internal_function.
34142         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34143         * inet/netgroup.h (__internal_setnetgrent)
34144         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34145         * inet/getnetgrent_r.c (__internal_setnetgrent)
34146         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34147         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34148         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34149         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34150         * nss/nsswitch.h (db_lookup_function): Likewise.
34151
34152 2017-08-13  Florian Weimer  <fweimer@redhat.com>
34153
34154         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34155         Remove internal_function.
34156         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34157         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34158         message argument on the stack.
34159         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34160         Likeweise.
34161
34162 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
34163
34164         Adapt test case data to the changes in the thousands
34165         separators.
34166
34167         [BZ #20756]
34168         * localedata/tst-langinfo.sh: Adapt test case data.
34169         * stdlib/tst-strfmon_l.c: Likewise.
34170         * stdlib/tst-strtod4.c: Likewise.
34171         * stdlib/tst-strtod5i.c: Likewise.
34172
34173 2017-08-11  Florian Weimer  <fweimer@redhat.com>
34174
34175         [BZ #21242]
34176         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34177         Suppress pedantic warning resulting from statement expression.
34178         (__ASSERT_FUNCTION): Add missing __extension__.
34179
34180 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34181
34182         * benchtests/bench-memmove-large.c: Print output in JSON
34183         format.
34184         * benchtests/bench-memmove.c: Likewise.
34185
34186         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34187         * benchtests/bench-memchr.c (do_one_test): Likewise.
34188         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34189         * benchtests/bench-memcpy.c (do_one_test): Likewise.
34190         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34191         * benchtests/bench-memmove.c (do_one_test): Likewise.
34192         * benchtests/bench-memset-large.c (do_one_test): Likewise.
34193         * benchtests/bench-memset.c (do_one_test): Likewise.
34194         * benchtests/bench-string.h (test_init): Remove memsets.
34195
34196 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34197
34198         * manual/lang.texi
34199         (Computing the Width of an Integer Data Type): Rename section to
34200         "Width of an Integer Type".  Remove inaccurate statement regarding
34201         lack of C language facilities for determining width of integer
34202         types, and reorder content to improve flow and context of
34203         discussion.
34204
34205 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
34206
34207         * lang.texi (va_copy): Change standard from ISO to C99.
34208         (__va_copy): Add standard and header annotation.
34209         Update description for clarity of origins and current use.
34210
34211 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
34212
34213         [BZ #21941]
34214         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34215         xssqrtqp requires operands to be in Vector Registers
34216         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34217         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34218         (__ieee754_sqrtf128): Likewise.
34219
34220 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
34221
34222         * sysdeps/aarch64/memcmp.S (memcmp):
34223         Rewrite of optimized memcmp.
34224
34225 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34226
34227         Introduce ld.so exceptions.
34228         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34229         (_dl_exception_create, _dl_exception_create_format)
34230         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34231         (_dl_catch_exception): Declare.
34232         (_dl_catch_error): Update comment.
34233         * elf/dl-error-skeleton.c (struct catch): Replace objname,
34234         errstring, malloced members with exception member.
34235         (_dl_out_of_memory): Remove.
34236         (fatal_error): New function, extracted from _dl_signal_error.
34237         (_dl_signal_exception, _dl_signal_cexception): New functions.
34238         (_dl_signal_error): Call _dl_exception_create to allocate an
34239         exception object.
34240         (_dl_catch_exception): New function, based on _dl_catch_error.
34241         (_dl_catch_error): Implement using _dl_catch_exception.
34242         * elf/dl-exception.c: New file.
34243         * elf/Makefile (dl-routines): Add dl-exception.
34244         (elide-routines.os): Likewise.
34245         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34246         _dl_exception_create_format, _dl_exception_free.
34247         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34248         _dl_signal_exception.
34249         * elf/dl-lookup.c (make_string): Remove.
34250         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34251         _dl_signal_cexception, _dl_exception_free.
34252         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34253         _dl_signal_exception.
34254         * elf/dl-sym.c (do_sym): Likewise.
34255         * elf/dl-version.c (make_string): Remove.
34256         (match_symbol): Use _dl_exception_create_format,
34257         _dl_signal_cexception, _dl_exception_free.
34258         (_dl_check_map_versions): Likewise.
34259         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34260         _dl_catch_exception.
34261         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34262         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34263         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34264         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34265         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34266         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34267         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34268         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34269         Likewise.
34270         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34272         (ld.so): Likewise.
34273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34274         (ld.so): Likewise.
34275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34276         Likewise.
34277         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34278         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34279         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34280         Likewise.
34281         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34282         Likewise.
34283         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34284
34285 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34286
34287         * inet/net-internal.h (__inet6_scopeid_pton): Remove
34288         attribute_hidden, internal_function.
34289         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34290         internal_function.
34291
34292 2017-08-10  Florian Weimer  <fweimer@redhat.com>
34293
34294         * malloc/malloc.c (get_max_fast): Reimplement as an inline
34295         function which calls __builtin_unreachable.
34296
34297 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
34298
34299         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34300         Indian monetary formatting
34301         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34302         test cases.
34303
34304 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
34305
34306         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34307         Fix typo in comment.
34308
34309         [BZ #21928]
34310         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34311         PTRACE_SEIZE_DEVEL): Remove.
34312         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34313         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34314         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34315         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34316         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34317
34318 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
34319
34320         * posix/bits/types.h (__qaddr_t): Remove.
34321
34322         [BZ #21457]
34323         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34324         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34325         __glibc_reserved1.
34326         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34327         (ucontext_t): Use __ctx with uc_flags.
34328         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34329         (__ctxt): Likewise.
34330         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34331         __glibc_reserved1.
34332         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34333         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34334         __glibc_reserved1.
34335         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34336         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34337         __glibc_reserved1.
34338         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34339         macro.
34340         (ucontext_t): Use __ctx with uc_flags.
34341         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34342         (ucontext_t): Use __ctx with uc_flags.
34343         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34344         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34345         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34346         (ucontext_t): Use __ctx with uc_flags.
34347         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34348         undefine further down.
34349         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34350         __glibc_reserved1.
34351         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34352         undefine further down.
34353         (ucontext_t): Use __ctx with uc_flags.
34354         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34355         undefine further down.
34356         (ucontext_t): Use __ctx with uc_flags.
34357         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34358         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34359         Rename uc_pad to __glibc_reserved1.
34360         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34361         undefine further down.
34362         (ucontext_t): Use __ctx with uc_flags.
34363         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34364         further down.
34365         (ucontext_t): Use __ctx with uc_flags.
34366         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34367         __ctx with uc_flags.
34368         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34369         (ucontext_t): Use __ctx with uc_flags.
34370         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34371         __ctx with uc_flags.
34372
34373 2017-08-09  Florian Weimer  <fweimer@redhat.com>
34374
34375         [BZ #21932]
34376         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34377         before early return.
34378
34379 2017-08-09  Andreas Schwab  <schwab@suse.de>
34380
34381         [BZ #21041]
34382         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34383         renamed alias.
34384
34385         [BZ #21041]
34386         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34387         tst-compat-forwarder.
34388         (modules-names): Add tst-compat-forwarder-mod.
34389         ($(objpfx)tst-compat-forwarder): Depend on
34390         $(objpfx)tst-compat-forwarder-mod.so.
34391         * nptl/tst-compat-forwarder.c: New file.
34392         * nptl/tst-compat-forwarder-mod.c: New file.
34393
34394 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34395
34396         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34397         comments.
34398
34399         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34400         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34401         memcpy_falkor.
34402         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34403         Bump.
34404         (__libc_ifunc_impl_list): Add __memcpy_falkor.
34405         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34406         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34407         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34408         Add falkor.
34409         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34410         New macro.
34411
34412 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34413
34414         [BZ #759]
34415         * manual/setjmp.texi (getcontex): Document uc_stack value
34416         compatibility differences.
34417
34418 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
34419
34420         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34421         (old_malloc_hook): Likewise.
34422         (old_memalign_hook): Likewise.
34423         (old_realloc_hook): Likewise.
34424         (struct hdr): Likewise.
34425         (flood): Likewise.
34426         (freehook): Likewise.
34427         (mallochook): Likewise.
34428         (memalignhook): Likewise.
34429         (reallochook): Likewise.
34430         (mprobe): Likewise.
34431         * malloc/mtrace.c (mallwatch): Likewise.
34432         (tr_old_free_hook): Likewise.
34433         (tr_old_malloc_hook): Likewise.
34434         (tr_old_realloc_hook): Likewise.
34435         (tr_old_memalign_hook): Likewise.
34436         (tr_where): Likewise.
34437         (lock_and_info): Likewise.
34438         (tr_freehook): Likewise.
34439         (tr_mallochook): Likewise.
34440         (tr_reallochook): Likewise.
34441         (tr_memalignhook): Likewise.
34442         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34443         * misc/mmap.c (__mmap): Likewise.
34444         * misc/mmap64.c (__mmap64): Likewise.
34445         * misc/mprotect.c (__mprotect): Likewise.
34446         * misc/msync.c (msync): Likewise.
34447         * misc/munmap.c (__munmap): Likewise.
34448         * posix/posix_madvise.c (posix_madvise): Likewise.
34449         * socket/send.c (__send): Likewise.
34450         * socket/sendto.c (__sendto): Likewise.
34451         * socket/setsockopt.c (__setsockopt): Likewise.
34452         * string/memcmp.c (__ptr_t): Remove macro.
34453         (MEMCMP): Use void * instead of ptr_t.
34454         * string/memrchr.c (__ptr_t): Remove macro.
34455         (__memrchr): Use void * instead of ptr_t.
34456         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34457         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34458         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34459         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34460         * sysdeps/mach/msync.c (msync): Likewise.
34461         * sysdeps/mach/munmap.c (__munmap): Likewise.
34462         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34463         Likewise.
34464         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34465         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34466         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34467         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34468         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34469         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34470         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34471         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34472         Likewise.
34473         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34474         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34475         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34476         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34477         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34478         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34479         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34480         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34481         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34482         Likewise.
34483         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34484         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34485         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34486         (MEMCMP): Use void * instead of ptr_t.
34487         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34488         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34489
34490 2017-08-08  Florian Weimer  <fweimer@redhat.com>
34491
34492         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34493         return statement.
34494
34495 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
34496
34497         [BZ #21913]
34498         * csu/libc-tls.c: Include <startup.h> first.
34499         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34500         * elf/dl-tunables.c: Include <startup.h> first.
34501         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34502         * sysdeps/generic/startup.h: New file.
34503         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34504         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34505         (I386_USE_SYSENTER): New.  Defined to 0.
34506
34507 2017-08-08  Andreas Schwab  <schwab@suse.de>
34508
34509         [BZ #21041]
34510         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34511         * nptl/pt-system.c (system): Likewise.
34512
34513 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34514
34515         [BZ #21780]
34516         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34517         EOPNOTSUPP.
34518         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34519         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34520         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34521         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34522         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34523         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34524         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34525
34526 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
34527
34528         [BZ #21899]
34529         * bits/sigaction.h (struct sigaction): Define sa_handler and
34530         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34531         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34532         [__USE_XOPEN_EXTENDED].
34533         (SA_RESTART): Likewise.
34534         (SA_NODEFER): Likewise.
34535         (SA_RESETHAND): Likewise.
34536         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34537         (struct sigaction): Define sa_handler and sa_sigaction using union
34538         also for [__USE_XOPEN_EXTENDED].
34539         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34540         [__USE_XOPEN_EXTENDED].
34541         (SA_RESTART): Likewise.
34542         (SA_NODEFER): Likewise.
34543         (SA_RESETHAND): Likewise.
34544         * sysdeps/unix/sysv/linux/bits/sigaction.h
34545         (struct sigaction): Define sa_handler and sa_sigaction using union
34546         also for [__USE_XOPEN_EXTENDED].
34547         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34548         [__USE_XOPEN_EXTENDED].
34549         (SA_RESTART): Likewise.
34550         (SA_NODEFER): Likewise.
34551         (SA_RESETHAND): Likewise.
34552         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34553         (struct sigaction): Define sa_handler and sa_sigaction using union
34554         also for [__USE_XOPEN_EXTENDED].
34555         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34556         [__USE_XOPEN_EXTENDED].
34557         (SA_RESTART): Likewise.
34558         (SA_NODEFER): Likewise.
34559         (SA_RESETHAND): Likewise.
34560         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34561         (struct sigaction): Define sa_handler and sa_sigaction using union
34562         also for [__USE_XOPEN_EXTENDED].
34563         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34564         [__USE_XOPEN_EXTENDED].
34565         (SA_RESTART): Likewise.
34566         (SA_NODEFER): Likewise.
34567         (SA_RESETHAND): Likewise.
34568         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34569         (struct sigaction): Define sa_handler and sa_sigaction using union
34570         also for [__USE_XOPEN_EXTENDED].
34571         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34572         [__USE_XOPEN_EXTENDED].
34573         (SA_RESTART): Likewise.
34574         (SA_NODEFER): Likewise.
34575         (SA_RESETHAND): Likewise.
34576         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34577         (struct sigaction): Define sa_handler and sa_sigaction using union
34578         also for [__USE_XOPEN_EXTENDED].
34579         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34580         [__USE_XOPEN_EXTENDED].
34581         (SA_RESTART): Likewise.
34582         (SA_NODEFER): Likewise.
34583         (SA_RESETHAND): Likewise.
34584         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34585         (struct sigaction): Define sa_handler and sa_sigaction using union
34586         also for [__USE_XOPEN_EXTENDED].
34587         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34588         [__USE_XOPEN_EXTENDED].
34589         (SA_RESTART): Likewise.
34590         (SA_NODEFER): Likewise.  Define directly rather than as alias.
34591         (SA_RESETHAND): Likewise.
34592         (SA_INTERRUPT): Define only for [__USE_MISC].
34593         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34594         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34595         [__USE_MISC].
34596         (SA_STACK): Define only for [__USE_MISC].
34597         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34598         (struct sigaction): Define sa_handler and sa_sigaction using union
34599         also for [__USE_XOPEN_EXTENDED].
34600         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34601         [__USE_XOPEN_EXTENDED].
34602         (SA_RESTART): Likewise.
34603         (SA_NODEFER): Likewise.
34604         (SA_RESETHAND): Likewise.
34605         (SA_NOPTRACE): Define only for [__USE_MISC].
34606
34607         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34608         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34609         (struct catalog_info): Likewise.
34610         * inet/htontest.c (lo): Likewise.
34611         (foo): Likewise.
34612         * inet/inet_lnaof.c (inet_lnaof): Likewise.
34613         * inet/inet_net.c (inet_network): Likewise.
34614         * inet/inet_netof.c (inet_netof): Likewise.
34615         * inet/rcmd.c (__ivaliduser): Likewise.
34616         (iruserok): Likewise.
34617         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34618         * locale/programs/locale-spec.c (locale_special): Likewise.
34619         * nis/nis_findserv.c (struct findserv_req): Likewise.
34620         (__nis_findfastest_with_timeout): Likewise.
34621         * nss/test-netdb.c (test_network): Likewise.
34622         * resolv/inet_neta.c (inet_neta): Likewise.
34623         * resolv/ns_date.c (ns_datetosecs): Likewise.
34624         (SECS_PER_DAY): Likewise.
34625         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34626         Likewise.
34627         * resolv/res_comp.c (__putlong): Likewise.
34628         (__putshort): Likewise.
34629         (_getlong): Likewise.
34630         (_getshort): Likewise.
34631         * resolv/res_debug.c (p_time): Likewise.
34632         (precsize_ntoa): Likewise.
34633         (precsize_aton): Likewise.
34634         (latlon2ul): Likewise.
34635         (loc_aton): Likewise.
34636         (loc_ntoa): Likewise.
34637         * resolv/res_hconf.c (struct netaddr): Likewise.
34638         (_res_hconf_reorder_addrs): Likewise.
34639         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34640         (clnttcp_control): Likewise.
34641         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34642         (clntudp_control): Likewise.
34643         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34644         (clntunix_control): Likewise.
34645         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34646         * sunrpc/rpc/auth.h (union des_block): Likewise.
34647         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34648         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34649         (xdrrec_create): Likewise.
34650         (xdrrec_endofrecord): Likewise.
34651         (flush_out): Likewise.
34652         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34653         (xdrstdio_putlong): Likewise.
34654         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34655         Likewise.
34656
34657         * misc/sys/cdefs.h (__long_double_t): Remove.
34658         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34659         instead of __long_double_t,
34660         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34661
34662 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34663
34664         * benchtests/scripts/compare_strings.py: Avoid display error when
34665         running on a text terminal.
34666
34667         * benchtests/scripts/compare_strings.py (main): Add an
34668         optional -base option.
34669         (process_results): New argument base_func.
34670
34671         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34672         hardcoding memcpy.
34673         * benchtests/bench-memcpy-large.c (test_name): Likewise.
34674         * benchtests/bench-memcpy-random.c (test_name): Likewise.
34675
34676 2017-08-07  Andreas Schwab  <schwab@suse.de>
34677
34678         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34679         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34680         * intl/Makefile ($(objpfx)tst-gettext.out)
34681         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34682         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34683         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34684         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34685         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34686         * posix/Makefile ($(objpfx)globtest.out)
34687         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34688         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34689         ($(objpfx)tst-printf.out): Likewise.
34690         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34691         ($(objpfx)tst-setcontext3.out): Likewise.
34692
34693 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
34694
34695         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34696         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34697         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34698         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34699         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34700         and mptan-fma.
34701         (CFLAGS-doasin-fma.c): New.
34702         (CFLAGS-dosincos-fma.c): Likewise.
34703         (CFLAGS-e_asin-fma.c): Likewise.
34704         (CFLAGS-e_atan2-fma.c): Likewise.
34705         (CFLAGS-e_exp-fma.c): Likewise.
34706         (CFLAGS-e_log-fma.c): Likewise.
34707         (CFLAGS-e_pow-fma.c): Likewise.
34708         (CFLAGS-halfulp-fma.c): Likewise.
34709         (CFLAGS-mpa-fma.c): Likewise.
34710         (CFLAGS-mpatan-fma.c): Likewise.
34711         (CFLAGS-mpatan2-fma.c): Likewise.
34712         (CFLAGS-mpexp-fma.c): Likewise.
34713         (CFLAGS-mplog-fma.c): Likewise.
34714         (CFLAGS-mpsqrt-fma.c): Likewise.
34715         (CFLAGS-mptan-fma.c): Likewise.
34716         (CFLAGS-s_atan-fma.c): Likewise.
34717         (CFLAGS-sincos32-fma.c): Likewise.
34718         (CFLAGS-slowexp-fma.c): Likewise.
34719         (CFLAGS-slowpow-fma.c): Likewise.
34720         (CFLAGS-s_sin-fma.c): Likewise.
34721         (CFLAGS-s_tan-fma.c): Likewise.
34722         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34723         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34724         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34725         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34726         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34727         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34728         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34729         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34730         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34731         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34732         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34733         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34734         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34735         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34736         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34737         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34738         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34739         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34740         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34741         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34742         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34743         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34744         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34745         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34746         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34747         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34748         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34749         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34750         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34751         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34752         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34753
34754 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
34755
34756         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34757         (min_of_type_f): New macro.
34758         (min_of_type_): Likewise.
34759         (min_of_type_l): Likewise.
34760         (min_of_type_f128): Likewise.
34761         (min_of_type): Define using __MATH_TG and taking an expression
34762         argument.
34763         (math_check_force_underflow): Pass expression instead of type to
34764         min_of_type.
34765         (math_check_force_underflow_nonneg): Likewise.
34766
34767 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34768
34769         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34770         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34771         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34772
34773 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34774
34775         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34776         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34777         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34778         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34779         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34780         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34781         memcpy_chk-nonshared, mempcpy_chk-nonshared,
34782         memmove_chk-nonshared and memset_chk-nonshared
34783         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34784         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34785         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34786         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34787         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34788         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34789         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34790         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34791         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34792         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34793         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34794         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34795         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34796         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34797         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34798         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34799         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34800         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34801         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34802         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34803         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34804         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34805         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34806         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34807         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34808         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34809         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34810         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34811         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34812         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34813         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34814         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34815         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34816         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34817         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34818         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34819         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34820         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34821         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34822         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34823         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34824         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34825         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34826         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34827         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34828         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34829         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34830         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34831         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34832         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34833         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34834         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34835         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34836         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34837         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34838         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34839         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34840         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34841         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34842         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34843         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34844         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34845         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34846         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34847         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34848         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34849         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34850         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34851         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34852         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34853         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34854         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34855         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34856         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34857         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34858         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34859         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34860         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34861         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34862         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34863         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34864         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34865         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34866         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34867         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34868         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34869         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34870         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34871         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34872         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34873         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34874         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34875         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34876         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34877         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34878         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34879         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34880         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34881         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34882         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34883         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34884         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34885         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34886         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34887         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34888         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34889         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34890         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34891
34892 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34893
34894         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34895         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34896         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34897         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34898         svml_d_log2_core-sse2, svml_d_log4_core-sse,
34899         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34900         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34901         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34902         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34903         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34904         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34905         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34906         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34907         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34908         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34909         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34910         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34911         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34912         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34913         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34914         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34915         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34916         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34917         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34918         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34919         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34920         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34921         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34922         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34923         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34924         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34925         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34926         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34927         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34928         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34929         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34930         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34931         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34932         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34933         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34934         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34935         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34936         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34937         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34938         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34939         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34940         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34941         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34942         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34943         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34944         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34945         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34946         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34947         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34948         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34949         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34950         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34951         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34952         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
34953         ...
34954         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34955         Don't include <sysdep.h> nor <init-arch.h>.
34956         (_ZGVbN2v_cos): Removed.
34957         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
34958         ...
34959         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34960         Don't include <sysdep.h> nor <init-arch.h>.
34961         (_ZGVdN4v_cos): Removed.
34962         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
34963         ...
34964         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34965         Don't include <sysdep.h> nor <init-arch.h>.
34966         (_ZGVeN8v_cos): Removed.
34967         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
34968         ...
34969         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34970         Don't include <sysdep.h> nor <init-arch.h>.
34971         (_ZGVbN2v_exp): Removed.
34972         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
34973         ...
34974         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34975         Don't include <sysdep.h> nor <init-arch.h>.
34976         (_ZGVdN4v_exp): Removed.
34977         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
34978         ...
34979         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34980         Don't include <sysdep.h> nor <init-arch.h>.
34981         (_ZGVeN8v_exp): Removed.
34982         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
34983         ...
34984         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34985         Don't include <sysdep.h> nor <init-arch.h>.
34986         (_ZGVbN2v_log): Removed.
34987         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
34988         ...
34989         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34990         Don't include <sysdep.h> nor <init-arch.h>.
34991         (_ZGVdN4v_log): Removed.
34992         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
34993         ...
34994         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34995         Don't include <sysdep.h> nor <init-arch.h>.
34996         (_ZGVeN8v_log): Removed.
34997         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
34998         ...
34999         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35000         Don't include <sysdep.h> nor <init-arch.h>.
35001         (_ZGVbN2vv_pow): Removed.
35002         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
35003         ...
35004         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35005         Don't include <sysdep.h> nor <init-arch.h>.
35006         (_ZGVdN4vv_pow): Removed.
35007         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
35008         ...
35009         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35010         Don't include <sysdep.h> nor <init-arch.h>.
35011         (_ZGVeN8vv_pow): Removed.
35012         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
35013         ...
35014         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35015         Don't include <sysdep.h> nor <init-arch.h>.
35016         (_ZGVbN2v_sin): Removed.
35017         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
35018         ...
35019         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35020         Don't include <sysdep.h> nor <init-arch.h>.
35021         (_ZGVbN4v_sin): Removed.
35022         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
35023         ...
35024         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35025         Don't include <sysdep.h> nor <init-arch.h>.
35026         (_ZGVbN8v_sin): Removed.
35027         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
35028         ...
35029         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35030         Don't include <sysdep.h> nor <init-arch.h>.
35031         (_ZGVbN2vvv_sincos): Removed.
35032         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
35033         ...
35034         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35035         Don't include <sysdep.h> nor <init-arch.h>.
35036         (_ZGVdN4vvv_sincos): Removed.
35037         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
35038         ...
35039         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35040         Don't include <sysdep.h> nor <init-arch.h>.
35041         (_ZGVeN8vvv_sincos): Removed.
35042         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
35043         ...
35044         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35045         Don't include <sysdep.h> nor <init-arch.h>.
35046         (_ZGVeN16v_cosf): Removed.
35047         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
35048         ...
35049         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35050         Don't include <sysdep.h> nor <init-arch.h>.
35051         (_ZGVbN4v_cosf): Removed.
35052         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
35053         ...
35054         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35055         Don't include <sysdep.h> nor <init-arch.h>.
35056         (_ZGVdN8v_cosf): Removed.
35057         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
35058         ...
35059         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35060         Don't include <sysdep.h> nor <init-arch.h>.
35061         (_ZGVeN16v_expf): Removed.
35062         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
35063         ...
35064         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35065         Don't include <sysdep.h> nor <init-arch.h>.
35066         (_ZGVbN4v_expf): Removed.
35067         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
35068         ...
35069         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35070         Don't include <sysdep.h> nor <init-arch.h>.
35071         (_ZGVdN8v_expf): Removed.
35072         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
35073         ...
35074         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35075         Don't include <sysdep.h> nor <init-arch.h>.
35076         (_ZGVeN16v_logf): Removed.
35077         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
35078         ...
35079         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35080         Don't include <sysdep.h> nor <init-arch.h>.
35081         (_ZGVbN4v_logf): Removed.
35082         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
35083         ...
35084         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35085         Don't include <sysdep.h> nor <init-arch.h>.
35086         (_ZGVdN8v_logf): Removed.
35087         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
35088         ...
35089         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35090         Don't include <sysdep.h> nor <init-arch.h>.
35091         (_ZGVeN16vv_powf): Removed.
35092         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
35093         ...
35094         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35095         Don't include <sysdep.h> nor <init-arch.h>.
35096         (_ZGVbN4vv_powf): Removed.
35097         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
35098         ...
35099         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35100         Don't include <sysdep.h> nor <init-arch.h>.
35101         (_ZGVdN8vv_powf): Removed.
35102         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
35103         ...
35104         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35105         Don't include <sysdep.h> nor <init-arch.h>.
35106         (_ZGVeN16vvv_sincosf): Removed.
35107         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
35108         ...
35109         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35110         Don't include <sysdep.h> nor <init-arch.h>.
35111         (_ZGVbN4vvv_sincosf): Removed.
35112         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
35113         ...
35114         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35115         Don't include <sysdep.h> nor <init-arch.h>.
35116         (_ZGVdN8vvv_sincosf): Removed.
35117         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
35118         ...
35119         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35120         Don't include <sysdep.h> nor <init-arch.h>.
35121         (_ZGVeN16v_sinf): Removed.
35122         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
35123         ...
35124         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35125         Don't include <sysdep.h> nor <init-arch.h>.
35126         (_ZGVbN4v_sinf): Removed.
35127         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
35128         ...
35129         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35130         Don't include <sysdep.h> nor <init-arch.h>.
35131         (_ZGVdN8v_sinf): Removed.
35132
35133 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35134
35135         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35136         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35137         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35138         s_rint-sse4_1 and s_rintf-sse4_1.
35139         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35140         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35141         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35142         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35143         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35145         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35146         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35147         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35148         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35149         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
35150         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35151         (__ceil): Removed.
35152         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35153         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
35154         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35155         (__ceilf): Removed.
35156         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35157         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
35158         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35159         (__floor): Removed.
35160         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35161         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
35162         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35163         (__floorf): Removed.
35164         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35165         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
35166         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35167         (__nearbyint): Removed.
35168         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35169         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
35170         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35171         (__nearbyintf): Removed.
35172         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35173         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
35174         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35175         (__rint): Removed.
35176         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35177         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
35178         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
35179         (__rintf): Removed.
35180
35181 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35182
35183         * sysdeps/i386/start.S (_start): Check Check PIC instead of
35184         SHARED.  Avoid dynamic relocation against main in static PIE.
35185
35186 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35187
35188         [BZ #21815]
35189         * elf/Makefile (CFLAGS-tst-prelink.c): New.
35190         (LDFLAGS-tst-prelink): Likewise.
35191
35192 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35193
35194         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35195         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35196         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35197         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35198         (INTERNAL_SYSCALL_NCS): Likewise.
35199         (LOADARGS_1): Likewise.
35200         (LOADARGS_5): Likewise.
35201         (RESTOREARGS_1): Likewise.
35202         (RESTOREARGS_5): Likewise.
35203
35204 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35205
35206         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35207         (MEMPCPY_SYMBOL): Likewise.
35208         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35209         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35210         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35211         in libc.a.
35212         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35213         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35214         Likewise.
35215         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35216         (__hidden_ver1): Don't use in libc.a.
35217         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35218         (__mempcpy): Don't create a weak alias in libc.a.
35219         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35220         libc.a.
35221         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35222         (__hidden_ver1): Don't use in libc.a.
35223
35224 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35225
35226         * config.make.in (have-insert): New.
35227         * configure.ac (libc_cv_insert): New.  Set to yes if linker
35228         supports INSERT in linker script.
35229         (AC_SUBST(libc_cv_insert): New.
35230         * configure: Regenerated.
35231         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35232         if $(have-insert) == yes.
35233
35234 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35235
35236         * elf/Makefile (tests): Add vismain only if
35237         $(have-protected-data) == yes.
35238         (tests-pie): Likewise.
35239
35240 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35241
35242         [BZ #21871]
35243         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35244         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35245
35246 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
35247
35248         [BZ #21790]
35249         * sysdeps/i386/i586/memset.S
35250         (__memset_zero_constant_len_parameter): Removed.
35251         * sysdeps/i386/i686/memset.S
35252         (__memset_zero_constant_len_parameter): Likewise.
35253         * sysdeps/i386/i686/multiarch/memset_chk.S
35254         (__memset_zero_constant_len_parameter): Likewise.
35255         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35256         Likewise.
35257
35258 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35259
35260         * stdlib/getentropy.c (getentropy): Change return type to int.
35261
35262 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
35263
35264         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35265
35266 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
35267
35268         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35269         u_intN_t.
35270         * math/s_nexttowardf.c (__nexttowardf): Likewise.
35271         * sysdeps/generic/math_private.h (ieee_double_shape_type):
35272         Likewise.
35273         (ieee_float_shape_type): Likewise.
35274         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35275         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35276         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35277         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35278         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35279         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35280         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35281         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35282         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35283         Likewise.
35284         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35285         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35286         (__ieee754_yn): Likewise.
35287         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35288         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35289         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35290         Likewise.
35291         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35292         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35293         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35294         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35295         (__erfc): Likewise.
35296         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35297         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35298         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35299         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35300         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35301         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35302         Likewise.
35303         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35304         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35305         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35306         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35307         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35308         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35309         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35310         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35311         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35312         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35313         (__issignaling): Likewise.
35314         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35315         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35316         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35317         Likewise.
35318         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35319         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35320         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35321         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35322         Likewise.
35323         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35324         Likewise.
35325         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35326         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35327         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35328         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35329         (__erfcf): Likewise.
35330         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35331         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35332         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35333         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35334         Likewise.
35335         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35336         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35337         Likewise.
35338         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35339         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35340         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35341         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35342         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35343         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35344         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35345         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35346         Likewise.
35347         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35348         Likewise.
35349         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35350         Likewise.
35351         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35352         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35353         Likewise.
35354         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35355         Likewise.
35356         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35357         (__ieee754_ynl): Likewise.
35358         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35359         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35360         Likewise.
35361         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35362         Likewise.
35363         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35364         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35365         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35366         Likewise.
35367         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35368         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35369         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35370         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35371         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35372         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35373         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35374         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35375         Likewise.
35376         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35377         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35378         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35379         Likewise.
35380         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35381         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35382         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35383         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35384         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35385         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35386         Likewise.
35387         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35388         Likewise.
35389         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35390         Likewise.
35391         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35392         Likewise.
35393         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35394         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35395         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35396         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35397         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35398         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35399         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35400         Likewise.
35401         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35402         Likewise.
35403         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35404         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35405         Likewise.
35406         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35407         (__ieee754_remainderl): Likewise.
35408         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35409         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35410         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35411         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35412         Likewise.
35413         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35414         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35415         Likewise.
35416         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35417         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35418         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35419         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35420         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35421         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35422         Likewise.
35423         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35424         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35425         (__ieee754_y0l): Likewise.
35426         (pzero): Likewise.
35427         (qzero): Likewise.
35428         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35429         (__ieee754_y1l): Likewise.
35430         (pone): Likewise.
35431         (qone): Likewise.
35432         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35433         (__ieee754_ynl): Likewise.
35434         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35435         (__ieee754_lgammal_r): Likewise.
35436         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35437         Likewise.
35438         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35439         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35440         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35441         (__erfcl): Likewise.
35442         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35443         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35444         Likewise.
35445         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35446         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35447         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35448         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35449         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35450         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35451         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35452         Likewise.
35453         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35454         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35455         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35456         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35457         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35458         Likewise.
35459         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35460         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35461         Likewise.
35462         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35463         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35464         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35465         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35466         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35467
35468 2017-08-03  Florian Weimer  <fweimer@redhat.com>
35469
35470         [BZ #21885]
35471         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35472         on memory allocation failure.
35473
35474 2017-08-03  Alan Modra  <amodra@gmail.com>
35475
35476         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35477         tst-tlsopt-powerpc.c with function name change and no test harness.
35478         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35479         Call tls_get_addr_opt_test.
35480         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35481         (modules-names): Add mod-tlsopt-powerpc.
35482         (mod-tlsopt-powerpc.so-no-z-defs): Define.
35483         (tst-tlsopt-powerpc): Depend on .so.
35484         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35485         define.  Expand use in TLS_GD and TLS_LD.
35486
35487 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35488
35489         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35490         function.
35491         * sysdeps/posix/shm_open.c: Include <pthread.h>.
35492
35493 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35494
35495         [BZ #21686]
35496         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35497         comparing size with that of double.
35498         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35499         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35500         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35501         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35502         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35503         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35504         unsigned __int128 types.
35505
35506 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
35507
35508         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35509         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35510         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35511         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35512         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35513
35514 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35515
35516         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35517
35518 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35519
35520         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35521         of SHARED.
35522         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35523         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35524         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35525         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35526         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35527         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35528         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35529
35530 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35531
35532         [BZ #21685]
35533         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35534         bit-field expressions passed to sizeof or typeof.
35535         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35536         (__TGMATH_F128): Likewise.
35537         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35538         (__TGMATH_CF128): Likewise.
35539         (__TGMATH_UNARY_REAL_ONLY): Likewise.
35540         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35541         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35542         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35543         (__TGMATH_BINARY_REAL_ONLY): Likewise.
35544         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35545         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35546         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35547         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35548         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35549         (__TGMATH_UNARY_REAL_IMAG): Likewise.
35550         (__TGMATH_UNARY_IMAG): Likewise.
35551         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35552         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35553         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35554         type.
35555         (define_vars_for_type): Handle bit_field type specially.
35556         (Tests.__init__): Declare structure with bit-field element.
35557
35558 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35559
35560         [BZ #21791]
35561         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35562         (MEMCPY_CHK): Define only if SHARED is defined.
35563         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35564         Likewise.
35565         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35566         Likewise.
35567
35568 See ChangeLog.18 for earlier changes.