]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
S390: Regenerate ULPs.
[thirdparty/glibc.git] / ChangeLog
1 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2
3 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4
5 2019-06-24 Rafal Luzynski <digitalfreak@lingonborough.com>
6
7 [BZ #24652]
8 * localedata/locales/szl_PL (day): Use the correct Unicode
9 sequences instead of non-ASCII characters.
10
11 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
12
13 [BZ #24652]
14 * localedata/locales/szl_PL (abday): Spelling corrections.
15 (day): Likewise.
16 (abmon): Likewise.
17 (mon): Rename to...
18 (alt_mon): This, then apply spelling corrections.
19 (mon): New entry, month names in the genitive case.
20
21 2019-06-21 Rafal Luzynski <digitalfreak@lingonborough.com>
22
23 [BZ #23831]
24 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
25 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
26 (thousands_sep): Likewise.
27 (grouping): Set to 3;3.
28
29 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
30
31 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
32 PREPARE_VERSION_KNOWN.
33 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
34 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
35 define.
36 (VDSO_HASH_LINUX_2_6_39): Likewise.
37 (VDSO_NAME_LINUX_4_9): Likewise.
38 (VDSO_HASH_LINUX_4_9): Likewise.
39 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
40 * sysdeps/unix/sysv/linux/powerpc/init-first.c
41 (_libc_vdso_platform_setup): Likewise.
42 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
43 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
44 Likewise.
45 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
46 Likewise.
47
48 2019-06-20 Mike Crowe <mac@mcrowe.com>
49
50 * nptl/eintr.c: Use libsupport.
51 * nptl/tst-eintr1.c: Likewise.
52 * nptl/tst-eintr2.c: Likewise.
53 * nptl/tst-eintr3.c: Likewise.
54 * nptl/tst-eintr4.c: Likewise.
55 * nptl/tst-eintr5.c: Likewise.
56 * nptl/tst-mutex-errorcheck.c: Likewise.
57 * nptl/tst-mutex5.c: Likewise.
58
59 * support/test-driver.h: Add verbose_printf macro.
60
61 * support/xtime.h: Add xclock_now() helper function.
62
63 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
64 Florian Weimer <fweimer@redhat.com>
65
66 [BZ #24228]
67 * libio/genops.c (_IO_unbuffer_all)
68 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
69 buffers and access _IO_FILE_complete members of legacy libio streams.
70 * libio/tst-bz24228.c: New file.
71 * libio/tst-bz24228.map: Likewise.
72 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
73 [build-shared] (generated): Add tst-bz24228.mtrace and
74 tst-bz24228.check.
75 [run-built-tests && build-shared] (tests-special): Add
76 $(objpfx)tst-bz24228-mem.out.
77 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
78 ($(objpfx)tst-bz24228-mem.out): New rule.
79
80 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
81
82 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
83 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
84 (__FPU_MFFSL): Likewise.
85 (_FPU_SETCW): Likewise.
86
87 2019-06-19 Stan Shebs <stanshebs@google.com>
88 Raoni Fassina Firmino <raoni@linux.ibm.com>
89
90 [BZ #24640]
91 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
92 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
93 static-linking version.
94 * sysdeps/unix/sysv/linux/powerpc/Makefile
95 (tests-static): Add test-gettimebasefreq-static.
96 (tests): Likewise.
97 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
98 New file.
99
100 2019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
101
102 [BZ #24614]
103 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
104 between the currency symbol and the minus sign).
105 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
106
107 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
108
109 [BZ #24556]
110 * string/test-strcasestr.c (check_result): Add NULL check.
111 * nss/tst-field.c (check_rewrite): Likewise.
112 * benchtests/bench-strstr.c (do_one_test): Likewise.
113 * string/test-strstr.c (check_result): Likewise.
114 * argp/argp-test.c (popt): Increase size of buf to 12.
115 * benchtests/bench-malloc-simple.c (bench):
116 Do not initialize tests array out of bounds.
117
118 2019-06-19 Florian Weimer <fweimer@redhat.com>
119
120 [BZ #24166]
121 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
122 dls_serpath field.
123
124 2019-06-18 Florian Weimer <fweimer@redhat.com>
125
126 [BZ #24323]
127 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
128 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
129 fail when called from dlopen.
130 * elf/Makefile [have-fpie && build-shared] (tests): Add
131 tst-dlopen-pie.
132 (tst-dlopen-pie): Link with -ldl.
133 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
134 * elf/tst-dlopen-pie.c (do_test): New file.
135
136 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
137
138 [BZ #24614]
139 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
140 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
141 between the currency symbol and the minus sign).
142 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
143 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
144
145 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
146
147 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
148 sysdep-rtld-routines): Remove rules.
149 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
150 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
151 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
152 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
153 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
154 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
155 vDSO path for SHARED.
156 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
157 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
158 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
159 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
160 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
161 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
162
163 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
164 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
165 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
166 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
167 CFLAGS-s_llround-power5+.c): New rule.
168 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
169 New file.
170 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
171 Likewise.
172 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
173 Likewise.
174 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
175 Likewise.
176 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
177 Likewise.
178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
179 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
180 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
181 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
183 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
184 * sysdeps/powerpc/powerpc64/fpu/Makefile
185 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
186 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
187 (libm-sysdep_routines): Remove s_llround-* objects.
188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
189 file.
190 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
191 Likewise.
192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
193 Likewise.
194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
195 Likewise.
196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
197 Likewise.
198 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
199 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
200 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
201 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
202 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
203 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
204 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
205 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
206 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
207 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
208 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
209 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
210 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
211 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
212
213 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
214 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
215 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
216 * sysdeps/powerpc/powerpc32/fpu/Makefile
217 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
218 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
219 optimization.
220 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
221 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
222 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
224 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
225 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
226 CFLAGS-s_lrint-ppc32.c): New rule.
227 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
228 Remove file.
229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
230 Likewise.
231 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
232 Likewise.
233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
234 Likewise.
235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
236 Likewise.
237 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
238 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
239 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
240 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
242 New file.
243 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
244 Likewise.
245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
246 Likewise.
247 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
248 Likewise.
249 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
250 Likewise.
251
252 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
253 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
254 s_llrint-ppc64.
255 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
256 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
257 file.
258 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
259 Likewise.
260 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
261 Likewise.
262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
263 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
265 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
267 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
268 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
269 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
270 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
271 (libm-sysdep_routines): Remove s_llrint-* objects.
272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
273 file.
274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
275 Likewise.
276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
277 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
278 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
279 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
280 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
281 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
282 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
283 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
284 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
285 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
286
287 2019-06-14 Florian Weimer <fweimer@redhat.com>
288
289 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
290 argument to __glibc_has_include to inhibit macro expansion.
291
292 2019-06-14 Florian Weimer <fweimer@redhat.com>
293
294 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
295 function-like macro, so that __has_include can inhibit expansion
296 of its argument.
297
298 2019-06-13 Joseph Myers <joseph@codesourcery.com>
299
300 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
301 New macro.
302
303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
304 Allow memset in libc.so.
305
306 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
307
308 * sysdeps/aarch64/dl-dtprocnum.h: New file.
309 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
310 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
311 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
312 symbols at load time.
313 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
314
315 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
316
317 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
318 (DT_AARCH64_VARIANT_PCS): Define.
319
320 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
321
322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
323 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
324 objects.
325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
326 Remove file.
327 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
328 Likewise.
329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
331 Likewise.
332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
333 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
334 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
335 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
336 Remove s_finite* objects.
337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
343 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
344 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
345 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
346 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
347
348 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
349 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
350
351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
352 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
353 objects.
354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
355 Remove file.
356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
357 Likewise.
358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
360 Likewise.
361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
362 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
363 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
364 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
365 Remove s_isinf* and s_isinf* objects.
366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
372 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
373 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
374 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
375 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
376
377 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
378 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
379
380 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
381 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
382 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
384 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
385 s_isnanf-* objects.
386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
387 Remove file
388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
389 Likewise.
390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
391 Likewise.
392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
393 Likewise.
394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
396 Likewise.
397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
398 Likewise.
399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
400 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
401 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
402 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
403 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
404 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
405 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
406 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
407 Remove s_isnan-* and s_isnanf-* objects.
408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
410 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
411 Likewise.
412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
414 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
415 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
417 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
418 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
419 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
420 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
421 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
422 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
423 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
424 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
425
426 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
427 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
428
429 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
430 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
431 CFLAGS-bench-isfinite.c): New rule.
432 * benchtests/isnan-input: New file.
433 * benchtests/isinf-input: New file.
434 * benchtests/isfinite-input: New file.
435
436 * sysdeps/powerpc/fpu/s_copysign.c: New file.
437 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
438 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
439 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
440 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
441 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
442 s_copysign-ppc32.
443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
444 Remove file.
445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
446 Likewise.
447 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
448 Likewise.
449 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
450 Likewise.
451 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
452 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
453 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
454 Remove s_copysign-power6 s_copysign-ppc64.
455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
456 Remove file.
457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
458 Likewise.
459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
461 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
462 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
463 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
464 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
465
466 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
467 round_to_integer_float, round_mode): Add RINT handling.
468 (reset_fenv_mode): New symbol.
469 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
470 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
471 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
472 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
473 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
474 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
475
476 2019-06-12 Florian Weimer <fweimer@redhat.com>
477
478 [BZ #24632]
479 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
480 * libio/freopen.c (freopen): Use it.
481
482 2019-06-12 Florian Weimer <fweimer@redhat.com>
483
484 Linux: Deprecate sysctl.
485 * include/sysctl.h (__sysctl): Remove declaration.
486 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
487 check.
488 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
489 (sysctl): Add deprecation attribute.
490 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
491 directly, to avoid the deprecation warning. Do not include
492 <string.h>.
493 (__sysctl): Remove hidden alias.
494
495 2019-06-12 Florian Weimer <fweimer@redhat.com>
496
497 Linux: Use kernel headers for statx definitions if available.
498 * include/bits/statx-generic.h: New file.
499 * include/bits/types/struct_statx.h: Likewise.
500 * include/bits/types/struct_statx_timestamp.h: Likewise.
501 * io/Makefile (headers): Add bits/statx-generic.h.
502 * io/bits/statx-generic.h: New file. Partly copied from
503 io/bits/statx.h.
504 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
505 define original_statx.
506 * io/bits/types/struct_statx.h: Likewise.
507 * io/bits/types/struct_statx_timestamp.h: Likewise.
508 (statx_generic): Use original_statx.
509 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
510 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
511
512 2019-06-12 Florian Weimer <fweimer@redhat.com>
513
514 * misc/sys/cdefs.h (__glibc_has_include): Define.
515
516 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
517
518 * string/memmem.c (__memmem): Rewrite to improve performance.
519
520 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
521
522 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
523 warning.
524 (two_way_long_needle): Block inlining.
525 * string/strstr.c (strstr2): Add new function.
526 (strstr3): Likewise.
527 (STRSTR): Completely rewrite strstr to improve performance.
528
529 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
530
531 * benchtests/bench-strstr.c (test_hard_needle): New function.
532
533 2019-06-10 Joseph Myers <joseph@codesourcery.com>
534
535 * malloc/tst-calloc.c: Include <libc-diag.h>.
536 (null_test): Ignore -Wunused-result around calls to calloc.
537 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
538 (do_test): Ignore -Wunused-result around call to malloc.
539
540 2019-06-07 Florian Weimer <fweimer@redhat.com>
541
542 Linux: Add getdents64 system call.
543 * include/dirnent.h (getdents): Add comment and change buffer
544 argument type to void *.
545 (getdents64): Likewise. Add hidden prototype.
546 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
547 getdents64.
548 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
549 Add tst-getdents64.
550 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
551 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
552 argument type to void *.
553 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
554 Add hidden definition and getdents64 alias.
555 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
556 Likewise.
557 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
558 * manual/filesys.texi (Accessing Directories): Add Low-level
559 Directory Access node reference.
560 (Opening a Directory): Cross-reference it.
561 (Low-level Directory Access): New node.
562 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
563 getdents64.
564 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
565 Likewise.
566 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
567 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
568 Likewise.
569 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
570 Likewise.
571 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
572 Likewise.
573 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
574 Likewise.
575 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
576 Likewise.
577 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
578 Likewise.
579 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
580 Likewise.
581 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
582 (GLIBC_2.30): Likewise.
583 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
584 (GLIBC_2.30): Likewise.
585 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
586 (GLIBC_2.30): Likewise.
587 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
588 (GLIBC_2.30): Likewise.
589 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
590 Likewise.
591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
592 (GLIBC_2.30): Likewise.
593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
594 (GLIBC_2.30): Likewise.
595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
596 (GLIBC_2.30): Likewise.
597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
598 (GLIBC_2.30): Likewise.
599 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
600 Likewise.
601 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
602 Likewise.
603 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
604 Likewise.
605 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
606 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
607 Likewise.
608 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
609 Likewise.
610 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
611 Likewise.
612 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
613 Likewise.
614
615 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
616
617 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
618 (__FPU_MFFS): New.
619 (__FPU_MFFSL): New.
620 (_FPU_GET_RC): New.
621 (_FPU_GETCW): Use __FPU_MFFS().
622 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
623
624 2019-06-06 Florian Weimer <fweimer@redhat.com>
625
626 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
627 internal GCC preprocessor identifier __has_include__.
628
629 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
630
631 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
632 with call to equivalent function.
633
634 2019-06-04 Florian Weimer <fweimer@redhat.com>
635
636 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
637 (do_release_shlib): Adjust for __twalk_r.
638 (__gconv_release_shlib): Call __twalk_r.
639
640 2019-06-04 Andreas Schwab <schwab@suse.de>
641
642 [BZ #18830]
643 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
644 no irreversible characters occurred.
645 * iconv/gconv_simple.c (internal_ucs4_loop)
646 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
647 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
648 (ucs4_internal_loop_single, internal_ucs4le_loop)
649 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
650 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
651 (ucs4le_internal_loop_single): Add const to outend.
652 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
653 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
654 * iconv/Makefile (tests): Add tst-iconv7.
655 * iconv/tst-iconv7.c: New file.
656
657 2019-06-03 Joseph Myers <joseph@codesourcery.com>
658
659 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
660
661 2019-06-01 Florian Weimer <fweimer@redhat.com>
662
663 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
664 * sysdeps/unix/sysv/linux/arm/Makefile
665 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
666 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
667 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
668 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
669 compatibility symbols.
670
671 2019-05-31 Florian Weimer <fweimer@redhat.com>
672
673 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
674 system calls for the arm architecture: breakpoint, get_tls,
675 set_tls, usr26, usr32.
676
677 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
678
679 * sysdeps/powerpc/Makefile
680 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
681 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
682 Declare '.machine power7' to get support for ldbrx.
683 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
684 directive based on the directory of the file.
685 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
686 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
687 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
688 '.machine' directive.
689 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
690 (VADDUQM_V7_V8): Remove.
691 (__STRCASECMP): Replace macros with actual instructions.
692 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
693 '.machine' directive.
694 (VCLZD_V8_v7): Remove.
695 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
696
697 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
698
699 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
700 Remove file.
701 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
702
703 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
704
705 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
706 NEARBYINT handling.
707 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
708 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
709 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
710 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
711 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
712 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
713
714 2019-05-28 mansayk <6688000@gmail.com>
715
716 [BZ #24370]
717 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
718
719 2019-05-28 mansayk <6688000@gmail.com>
720
721 [BZ #24369]
722 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
723 (abmon): Likewise, but remove the trailing dots.
724
725 2019-05-28 Joseph Myers <joseph@codesourcery.com>
726
727 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
728
729 2019-05-27 Florian Weimer <fweimer@redhat.com>
730
731 * nptl/nptl-init.c: Add comment.
732
733 2019-05-24 Florian Weimer <fweimer@redhat.com>
734
735 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
736 struct in_addr/struct in6_addr alignment.
737
738 2019-05-23 Joseph Myers <joseph@codesourcery.com>
739
740 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
741 (F_SEAL_FUTURE_WRITE): New macro.
742
743 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
744
745 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
746 * elf/tst-ldconfig-bad-aux-cache.c: New file.
747 * elf/tst-ldconfig_aux-cache.root: New directory.
748 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
749 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
750 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
751
752 2019-05-22 Zack Weinberg <zackw@panix.com>
753
754 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
755 host type.
756 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
757 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
758
759 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
762 Delete.
763
764 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
765 Issue an #error if used with a compiler in SPE-float mode.
766 * sysdeps/powerpc/powerpc32/__longjmp_common.S
767 * sysdeps/powerpc/powerpc32/setjmp_common.S
768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
774 Remove code to preserve SPE register state.
775
776 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
777 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
778 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
779 Remove __SPE__ ifndefs.
780
781 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
782
783 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
784 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
785 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
786 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
787 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
788 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
789 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
790 (INNER_LOOP_ITERS_MEDIUM): New define.
791 (INNER_LOOP_ITERS_SMALL): New define.
792 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
793 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
794 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
795 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
796 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
797
798 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
799
800 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
801 New define.
802 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
803 (SEMTIMEDOP_IPC_ARGS): Likewise.
804
805 2019-05-21 Florian Weimer <fweimer@redhat.com>
806
807 [BZ #24584]
808 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
809 before updating __counter field and release it afterwards. Add
810 overflow check.
811 * iconv/gconv.h (struct __gconv_step): Mention synchronization
812 requirement for __counter member.
813
814 2019-05-21 Florian Weimer <fweimer@redhat.com>
815
816 [BZ #24583]
817 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
818 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
819 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
820 instead of __gconv_release_step.
821 * libio/Makefile (tests): Add tst-wfile-gconv.
822 (tests-container): Add tst-wfile-ascii.
823 (tst-wfile-gconv-ENV): Enable mtrace.
824 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
825 (tests-special): Add tst-wfile-gconv-mem.out.
826 (tst-wfile-gconv.out): Depend on locales.
827 (tst-wfile-gconv-mem.out): Add mtrace rule.
828 * libio/tst-wfile-ascii.c: New file.
829 * libio/tst-wfile-gconv.c: Likewise.
830
831 2019-05-20 Florian Weimer <fweimer@redhat.com>
832
833 [BZ #24588]
834 libio: Remove codecvt vtable.
835 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
836 __libio_codecvt.
837 * libio/iofgetpos.c (_IO_new_fgetpos): Call
838 __libio_codecvt_encoding.
839 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
840 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
841 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
842 * libio/iofwide.c (__libio_codecvt): Remove variable.
843 (_IO_fwide): Do not copy __libio_codecvt.
844 (__libio_codecvt_out): Rename from do_out and export.
845 (do_unshift): Remove function.
846 (__libio_codecvt_in): Rename from do_in and export.
847 (__libio_codecvt_encoding): Rename from do_encoding and export.
848 (do_always_noconv): Remove function.
849 (__libio_codecvt_length): Rename from do_length and export.
850 (do_max_length): Remove function.
851 * libio/libio.h (enum __codecvt_result): Remove definition; moved
852 to libioP.h.
853 (struct _IO_codecvt): Remove fields __codecvt_destr,
854 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
855 __codecvt_do_encoding, __codecvt_do_always_noconv,
856 __codecvt_do_length, __codecvt_do_max_length.
857 * libio/libioP.h (enum __codecvt_result): Define; moved from
858 libio.h.
859 (__libio_codecvt_out, __libio_codecvt_in)
860 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
861 functions.
862 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
863 (_IO_wfile_underflow): Call __libio_codecvt_in.
864 (_IO_wfile_underflow): Likewise.
865 (_IO_wfile_underflow_mmap): Likewise.
866 (_IO_wfile_sync): Call __libio_codecvt_encoding,
867 __libio_codecvt_length.
868 (adjust_wide_data): Call __libio_codecvt_encoding,
869 __libio_codecvt_in.
870 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
871 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
872 __libio_codecvt_length.
873
874 2019-05-20 Florian Weimer <fweimer@redhat.com>
875
876 * support/support.h (support_sbindir_prefix): Declare.
877 (support_install_rootsbindir): Update comment.
878 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
879 * support/support_paths.c (support_sbindir_prefix): Define.
880
881 2019-05-20 Mike Crowe <mac@mcrowe.com>
882
883 * support/timespec.c: Add backslash to correct newline in failure
884 message.
885
886 * support/timespec.h: Correct confusing comment.
887
888 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
889
890 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
891 define.
892 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
893 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
894 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
895 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
896
897 [BZ #24570]
898 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
899 usage.
900
901 2019-05-20 Joseph Myers <joseph@codesourcery.com>
902
903 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
904 (NT_ARM_PACG_KEYS): Likewise.
905
906 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
907
908 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
909 (tcache_put): Remove redundant assert.
910 (tcache_get): Remove redundant asserts.
911 (__libc_malloc): Check tcache count is not zero.
912 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
913
914 2019-05-17 Florian Weimer <fweimer@redhat.com>
915
916 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
917
918 2019-05-16 Joseph Myers <joseph@codesourcery.com>
919
920 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
921 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
922 0x050100].
923 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
924 Likewise.
925 * sysdeps/unix/sysv/linux/sh/kernel-features.h
926 (__ASSUME_STATX): Likewise.
927
928 2019-05-16 Florian Weimer <fweimer@redhat.com>
929
930 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
931 flags argument.
932 (LINE_PARSER): Do not map IPv4 addresses.
933 (internal_nis_gethostent_r): Remove flags argument. Adjust call
934 to parse_line.
935 (_nss_nis_gethostent_r): Always pass AF_INET to
936 internal_nis_gethostent_r.
937 (internal_gethostbyname2_r): Remove flags argument. Adjust call
938 to parse_line.
939 (_nss_nis_gethostbyname2_r): Adjust call to
940 internal_nis_gethostent_r.
941 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
942 call to internal_nis_gethostent_r.
943 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
944 from parse_line.
945 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
946 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
947 Remove flags argument. Do not map IPv4 addresses.
948 (internal_nisplus_gethostent_r): Adjust call to
949 _nss_nisplus_parse_hostent.
950 (internal_gethostbyname2_r): Remove flags argument. Adjust call
951 to _nss_nisplus_parse_hostent.
952 (_nss_nisplus_gethostbyname2_r): Adjust call to
953 internal_gethostbyname2_r.
954 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
955 Adjust call to internal_gethostbyname2_r.
956 (_nss_nisplus_gethostbyaddr_r): Adjust call to
957 _nss_nisplus_parse_hostent.
958 (_nss_nisplus_gethostbyname4_r): Adjust call to
959 internal_gethostbyname2_r.
960
961 2019-05-16 Florian Weimer <fweimer@redhat.com>
962
963 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
964 Remove flags.
965 (LINE_PARSER): Remove address mapping.
966 (EXTRA_ARGS_VALUE): Remove flags argument.
967 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
968 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
969 gethostbyname3_multi.
970 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
971 _nss_files_gethostbyname3_r.
972 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
973
974 2019-05-16 Florian Weimer <fweimer@redhat.com>
975
976 * support/support_test_compare_blob.c (report_blob): Report
977 incorrect NULL blobs.
978
979 2019-05-15 Mark Wielaard <mark@klomp.org>
980
981 [BZ# 24476]
982 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
983 __libc_once_get (once) and static_buf == NULL.
984 (__dlerror): Check we have a valid key, set result to static_buf
985 otherwise.
986
987 2019-05-15 Andreas Schwab <schwab@suse.de>
988
989 [BZ #20568]
990 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
991 __codecvt_do_length.
992 * libio/Makefile (tests): Add tst-wfile-sync.
993 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
994 * libio/tst-wfile-sync.c: New file.
995 * libio/tst-wfile-sync.input: New file.
996
997 2019-05-15 Florian Weimer <fweimer@redhat.com>
998
999 nss: Turn __nss_database_lookup into a compatibility symbol.
1000 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
1001 __nss_database_lookup.
1002 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
1003 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
1004 __nss_database_lookup.
1005 (__nss_next): Move to …
1006 * nss/compat-lookup.c (nss_next): … here. Change it to fail
1007 unconditionally.
1008 (__nss_database_lookup): New function.
1009 * nss/Versions (GLIBC_2.0): Update comment.
1010 (GLIBC_PRIVATE): Export __nss_database_lookup2.
1011 * grp/initgroups.c (internal_getgrouplist): Call
1012 __nss_database_lookup2 instead of __nss_database_lookup.
1013 * nscd/aicache.c (addhstaiX): Likewise.
1014 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1015 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1016 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1017 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1018 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1019 Likewise.
1020 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1021 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1022 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1023
1024 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
1025
1026 * support/support.h (support_install_rootsbindir): New variable.
1027 * support/support_paths.c: Likewise.
1028 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1029
1030 2019-05-15 Florian Weimer <fweimer@redhat.com>
1031
1032 * iconv/gconv.h (__gconv_transliterate): Move declaration …
1033 * iconv/gconv_int.h (__gconv_transliterate): … here.
1034 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1035 * iconv/skeleton.c: Likewise.
1036
1037 2019-05-14 Florian Weimer <fweimer@redhat.com>
1038
1039 Linux: Add the tgkill function.
1040 * bits/signal_ext.h: New file.
1041 * manual/signal.texi (Signaling Another Process): Document tgkill.
1042 * signal/Makefile (headers): Add bits/signal_ext.h.
1043 * signal/signal.h: Include <bits/signal_ext.h>.
1044 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1045 (tst-tgkill): Link with libpthread.
1046 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1047 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1048 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1049 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1050 tgkill.
1051 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1052 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1053 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1054 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1055 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1056 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1057 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1058 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1059 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1060 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1061 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1062 Likewise.
1063 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1064 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1065 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1067 Likewise.
1068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1069 Likewise.
1070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1071 Likewise.
1072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1073 Likewise.
1074 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1075 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1076 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1077 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1079 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1080 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1081 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1082
1083 2019-05-14 Carlos O'Donell <carlos@redhat.com>
1084
1085 * manual/search.texi (Tree Search Function): Adjust twalk_r
1086 documentation.
1087
1088 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1089
1090 [BZ #24544]
1091 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1092 pre-defined value.
1093
1094 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1095 * support/support.h (support_bindir_prefix): New variable.
1096 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1097
1098 * config.make.in (bindir): New variable.
1099
1100 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1101 (lll_trylock): Call __lll_trylock.
1102 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1103 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1104 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1105 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1106 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1107 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1108 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1109 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1110 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1111 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1112 lowlevellock-futex.h.
1113
1114 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1115 initialization for LLL_LOCK_INITIALIZER different than 0.
1116 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1117 Assume LLL_LOCK_INITIALIZER being 0.
1118 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1119 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1120 Likewise.
1121 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1122 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1123
1124 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1125 Optimize futex call and add systemtap probe.
1126
1127 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1128 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1129 __libc_disable_asynccancel, __librt_enable_asynccancel,
1130 __libc_disable_asynccancel, __librt_enable_asynccancel,
1131 __librt_disable_asynccancel): Move to ...
1132 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1133 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1134 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1135 * sysdeps/generic/single-thread.h: New file.
1136 * sysdeps/unix/sysdep.h: Include single-thread.h.
1137 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1138 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1139
1140 2019-05-08 Mike FABIAN <mfabian@redhat.com>
1141
1142 [BZ #24535]
1143 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1144 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1145 Unicode 12.1.0.
1146 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1147 * localedata/unicode-gen/PropList.txt: Likewise.
1148 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1149 * localedata/charmaps/UTF-8: Regenerate.
1150 * localedata/locales/i18n_ctype: Likewise.
1151 * localedata/locales/tr_TR: Likewise.
1152 * localedata/locales/translit_circle: Likewise.
1153 * localedata/locales/translit_cjk_compat: Likewise.
1154 * localedata/locales/translit_combining: Likewise.
1155 * localedata/locales/translit_compat: Likewise.
1156 * localedata/locales/translit_font: Likewise.
1157 * localedata/locales/translit_fraction: Likewise.
1158
1159 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1160
1161 [BZ #24531]
1162 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1163 (do_set_tcache_count): Only update if count is small enough.
1164 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1165
1166 2019-05-10 Florian Weimer <fweimer@redhat.com>
1167
1168 * nptl/sem_close.c (struct walk_closure): Define.
1169 (walker): Adjust for __twalk_r.
1170 (sem_close): Call __twalk_r.
1171
1172 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1173
1174 * support/timespec.c (test_timespec_before_impl,
1175 test_timespec_equal_or_after_impl): print timespec member as intmax_t
1176 insted of long int.
1177
1178 2019-05-09 Mike Crowe <mac@mcrowe.com>
1179
1180 * nptl/tst-abstime.c: Use libsupport.
1181
1182 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1183 small bug where only tv.tv_usec was checked which could cause an
1184 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1185 than a second.
1186
1187 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1188 libsupport.
1189
1190 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1191 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1192
1193 * nptl/tst-cond11.c: Use libsupport.
1194
1195 * support/timespec.h: New file. Provide timespec helper functions
1196 along with macros in the style of those in check.h.
1197 * support/timespec.c: New file. Implement check functions declared
1198 in support/timespec.h.
1199 * support/timespec-add.c: New file from gnulib containing
1200 timespec_add implementation that handles overflow.
1201 * support/timespec-sub.c: New file from gnulib containing
1202 timespec_sub implementation that handles overflow.
1203 * support/README: Mention timespec.h.
1204
1205 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
1206
1207 [BZ #24537]
1208 * nptl/Makefile: Move tst-eintr1 to xtests.
1209
1210 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1211
1212 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1213 TRUNC handling.
1214 (round_mode): Add definition for TRUNC.
1215 * sysdeps/powerpc/fpu/s_trunc.c: New file.
1216 * sysdeps/powerpc/fpu/s_truncf.c: New file.
1217 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1218 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1219 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1220 Likewise.
1221 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1222 Likewise.
1223 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1224 Likewise.
1225 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1226 Likewise.
1227 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1228 file.
1229 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1230 Likewise.
1231 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1232 Likewise.
1233 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1234 Likewise.
1235 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1236 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1237 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1238 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1239 s_truncf-power5+, and s_truncf-ppc64.
1240 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1241 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1242 file.
1243 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1245 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1246 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1247 file.
1248 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1249 Likewise.
1250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1251 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1252 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1253 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1254 s_truncf-power5+, and s_truncf-ppc64.
1255 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1256 file.
1257 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1258 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1259 Likewise.
1260 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1261 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1262 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1263 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1264 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1265
1266 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1267 ROUND handling.
1268 (round_mode): Add definition for ROUND.
1269 (round_to_integer_float): Likewise.
1270 * sysdeps/powerpc/fpu/s_round.c: New file.
1271 * sysdeps/powerpc/fpu/s_roundf.c: New file.
1272 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1273 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1274 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1275 Likewise.
1276 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1277 Likewise.
1278 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1279 Likewise.
1280 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1281 Likewise.
1282 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1283 file.
1284 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1285 Likewise.
1286 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1287 Likewise.
1288 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1289 Likewise.
1290 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1291 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1292 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1293 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1294 s_roundf-power5+, and s_roundf-ppc64.
1295 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1296 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1297 file.
1298 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1300 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1301 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1302 file.
1303 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1304 Likewise.
1305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1306 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1307 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1308 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1309 s_roundf-power5+, and s_roundf-ppc64.
1310 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1311 file.
1312 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1313 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1314 Likewise.
1315 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1316 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1317 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1318 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1319 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1320
1321 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1322 Add FLOOR option.
1323 (round_mode): Add definition for FLOOR.
1324 * sysdeps/powerpc/fpu/s_floor.c: New file.
1325 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1326 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1327 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1329 Remove file.
1330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1331 Likewise
1332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1333 Likewise.
1334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1335 Likewise.
1336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1337 New file.
1338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1339 Likewise.
1340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1341 Likewise.
1342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1343 Likewise.
1344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1345 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1346 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1347 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1348 s_floorf-power5+, and s_floorf-ppc64.
1349 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1350 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1351 file.
1352 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1354 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1355 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1356 file.
1357 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1358 Likewise.
1359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1360 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1361 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1362 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1363 s_floorf-power5+, and s_floorf-ppc64.
1364 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1365 file.
1366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1367 file.
1368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1369 Likewise.
1370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1371 Likewise.
1372 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1373 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1375 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1376
1377 2019-05-08 Mike Crowe <mac@mcrowe.com>
1378
1379 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1380 clock_gettime wrapper for use in tests that fails the test rather
1381 than returning failure.
1382
1383 * support/xtime.h: New file to declare xclock_gettime.
1384
1385 * support/Makefile: Add xclock_gettime.c.
1386
1387 * support/README: Mention xtime.h.
1388
1389 2019-05-08 Florian Weimer <fweimer@redhat.com>
1390
1391 malloc/tst-mallocfork2: Use process-shared barriers.
1392 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1393 (signal_count, sigusr1_sender_pid): Remove.
1394 (iterations): Define constant.
1395 (shared): New variable.
1396 (sigusr1_received): Update comment.
1397 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1398 (signal_sender): Optional use barriers to avoid sending signals
1399 during irrelevant times.
1400 (do_it): Initialize variable shared. Use xfork for error
1401 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1402 the iteration count, independent of signal delivery. Check for
1403 deadlocks in fork. Introduce barriers for reducing signal
1404 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1405 replaced by the barriers. Count signals during fork/free/malloc
1406 and report them.
1407 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1408
1409 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1410
1411 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1412 version to 5.1.
1413 (clock_adjtime64) New syscall.
1414 (clock_getres_time64) Likewise.
1415 (clock_gettime64) Likewise.
1416 (clock_nanosleep_time64) Likewise.
1417 (clock_settime64) Likewise.
1418 (futex_time64) Likewise.
1419 (io_pgetevents_time64) Likewise.
1420 (io_uring_enter) Likewise.
1421 (io_uring_register) Likewise.
1422 (io_uring_setup) Likewise.
1423 (mq_timedreceive_time64) Likewise.
1424 (mq_timedsend_time64) Likewise.
1425 (pidfd_send_signal) Likewise.
1426 (ppoll_time64) Likewise.
1427 (pselect6_time64) Likewise.
1428 (recvmmsg_time64) Likewise.
1429 (rt_sigtimedwait_time64) Likewise.
1430 (sched_rr_get_interval_time64) Likewise.
1431 (semtimedop_time64) Likewise.
1432 (timer_gettime64) Likewise.
1433 (timer_settime64) Likewise.
1434 (timerfd_gettime64) Likewise.
1435 (timerfd_settime64) Likewise.
1436 (utimensat_time64) Likewise.
1437
1438 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1439 version to 9 branch.
1440
1441 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1442
1443 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1444 __memmove_thunderx2 to the list of implementations
1445 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1446 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1447 (__memmove_thunderx2): Rewritten using SIMD ld/st
1448 (__memcpy_thunderx2): Fixed handling overlapping cases.
1449 Used ldp/stp instead of ldr/str if possible. Made loops
1450 tails branchless.
1451
1452 2019-05-03 Florian Weimer <fweimer@redhat.com>
1453
1454 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1455
1456 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1457
1458 [BZ #24506]
1459 * elf/tst-pldd.c (in_str_list): New function.
1460 (do_test): Add default names for ld and libc as one option.
1461
1462 2019-05-02 Florian Weimer <fweimer@redhat.com>
1463
1464 misc: Add twalk_r function.
1465 * include/search.h (__twalk_r): Declare.
1466 * manual/examples/twalk.c: New file.
1467 * manual/search.texi (Tree Search Function): Document twalk_r.
1468 * misc/Versions (2.30): Export twalk_r.
1469 (GLIBC_PRIVATE): Export __twalk_r.
1470 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1471 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1472 (twalk_r): Add weak alias.
1473 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1474 (walk_trace): New variable.
1475 (struct twalk_with_twalk_r_closure): Define.
1476 (twalk_with_twalk_r_action): New function.
1477 (twalk_with_twalk_r): Likewise.
1478 (walk_action): Call walk_trace_add.
1479 (walk_tree_with): Rename from walk_tree. Add walk argument.
1480 (walk_tree): New function.
1481 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1482 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1483 Likewise.
1484 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1485 Likewise.
1486 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1487 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1488 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1489 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1490 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1491 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1492 Likewise.
1493 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1494 Likewise.
1495 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1496 Likewise.
1497 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1498 (GLIBC_2.30): Likewise.
1499 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1500 (GLIBC_2.30): Likewise.
1501 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1502 (GLIBC_2.30): Likewise.
1503 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1504 (GLIBC_2.30): Likewise.
1505 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1506 Likewise.
1507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1508 (GLIBC_2.30): Likewise.
1509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1510 (GLIBC_2.30): Likewise.
1511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1512 (GLIBC_2.30): Likewise.
1513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1514 (GLIBC_2.30): Likewise.
1515 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1516 Likewise.
1517 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1518 Likewise.
1519 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1520 Likewise.
1521 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1522 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1523 Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1525 Likewise.
1526 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1527 Likewise.
1528 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1529 Likewise.
1530
1531 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1532
1533 Make mktime etc. compatible with __time64_t
1534 Keep these functions compatible with Gnulib while adding
1535 __time64_t support. The basic idea is to move private API
1536 declarations from include/time.h to time/mktime-internal.h, since
1537 the former file cannot easily be shared with Gnulib whereas the
1538 latter can.
1539 Also, do some other minor cleanup while in the neighborhood.
1540 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1541 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1542 since Gnulib needs it.
1543 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1544 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1545 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1546 (in_time_t_range): New static function.
1547 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1548 so that glibc users are not tempted to use __time64_t.
1549 * time/mktime-internal.h: Rewrite so that it does both glibc
1550 and Gnulib work. Include time.h if not _LIBC.
1551 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1552 (__time64_t): New type or macro, moved here from
1553 posix/bits/types.h.
1554 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1555 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1556 from include/time.h.
1557 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1558 New macros, taken from GNulib.
1559 (__mktime_internal): New prototype, moved here from include/time.h.
1560 * time/mktime.c (mktime_min, mktime_max, convert_time)
1561 (ranged_convert, __mktime_internal, __mktime64):
1562 * time/timegm.c (__timegm64):
1563 Use __time64_t, not time_t.
1564 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1565 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1566 Rename from mktime.
1567 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1568 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1569 for libc_hidden_def.
1570 Include errno.h.
1571 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1572 Rename from timegm.
1573 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1574
1575 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1576
1577 [BZ #19444]
1578 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1579 from `-Wmaybe-uninitialized'.
1580 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1581
1582 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1583
1584 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1585 function.
1586 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1587 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1588 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1589 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1590 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1591 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1592 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1594 Remove file.
1595 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1596 Likewise.
1597 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1598 Likewise.
1599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1600 Likewise.
1601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1602 New file.
1603 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1604 Likewise.
1605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1606 Likewise.
1607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1608 Likewise.
1609 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1610 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1611 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1612 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1613 Likewise.
1614 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1615 Likewise.
1616 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1617 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1618 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1619 file.
1620 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1621 Likewise.
1622 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1623 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1624 * here.
1625 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1626 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1627 s_ceilf-power5+, and s_ceilf-ppc64.
1628 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1629 file.
1630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1633 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1634 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1635 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1636 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1637
1638 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1639 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1640 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1641
1642 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1643
1644 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1645 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1646 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1647 (sem_getvalue): Likewise.
1648
1649 2019-04-26 Florian Weimer <fweimer@redhat.com>
1650
1651 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1652 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1653
1654 2019-04-26 Florian Weimer <fweimer@redhat.com>
1655
1656 Makeconfig: Move -Wl,-rpath-link options before library references.
1657 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1658 (link-libc): Remove $(link-libc-rpath-link).
1659
1660 2019-04-25 Florian Weimer <fweimer@redhat.com>
1661
1662 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1663 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1664 (+link-static-before-libc): Remove $(CC).
1665 (+link-static, +link-static-tests): Add $(CC).
1666 (+link-before-libc): Remove $(CC).
1667 (+link, +link-pie, +link-pie-printers): Add $(CC).
1668
1669 2019-04-26 Florian Weimer <fweimer@redhat.com>
1670
1671 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1672 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1673 (+link-static-before-libc): Remove $(CC).
1674 (+link-static, +link-static-tests): Add $(CC).
1675 (+link-before-libc): Remove $(CC).
1676 (+link, +link-pie, +link-pie-printers): Add $(CC).
1677
1678 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1679
1680 [BZ#24484]
1681 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1682
1683 2019-04-25 Florian Weimer <fweimer@redhat.com>
1684
1685 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1686 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1687 (bench-link-targets): New variable.
1688 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1689
1690 2019-04-25 Florian Weimer <fweimer@redhat.com>
1691
1692 Also enable BIND_NOW for programs if --enable-bind-now.
1693 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1694 (+link-pie): Use $(link-extra-flags).
1695 (+link-static): Likewise.
1696 [! $(build-pie-default)] (+link): Likewise.
1697 * manual/install.texi (Configuring and compiling): Update
1698 --enable-bind-now description.
1699 * INSTALL: Regenerated.
1700
1701 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1702
1703 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1704 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1705
1706 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1707
1708 [BZ #18465]
1709 * malloc/Makefile (others): Add memusagestat.
1710 ($(objpfx)memusagestat): Delete rule.
1711 (LDLIBS-memusagestat): New variable.
1712
1713 2019-04-24 Florian Weimer <fweimer@redhat.com>
1714
1715 * locale/Makefile (tests-special): Guard setting by
1716 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1717 to run while cross-compiling.
1718
1719 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1720
1721 [BZ #18035]
1722 * elf/Makefile (tests-container): Add tst-pldd.
1723 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1724 (E(find_maps)): Avoid use alloca, use default read file operations
1725 instead of explicit LFS names, and fix infinite loop.
1726 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1727 (get_process_info): Use _Static_assert instead of assert, use default
1728 directory operations instead of explicit LFS names, and free some
1729 leadek pointers.
1730 * elf/tst-pldd.c: New file.
1731
1732 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1733
1734 * malloc/arena.c (do_set_mallopt_check): Removed.
1735
1736 2019-04-23 Florian Weimer <fweimer@redhat.com>
1737
1738 locale: Add LOCPATH diagnostics to the locale program.
1739 * locale/programs/locale.c (setlocale_failed): New variable.
1740 (try_setlocale): New function.
1741 (quote_string): Likewise.
1742 (setlocale_diagnostics): Likewise.
1743 (main): Call try_setlocale instead of setlocale. Call
1744 setlocale_diagnostics.
1745 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1746 (tst-locale-locpath.out): New target.
1747 * locale/tst-locale-locpath.sh: New file.
1748
1749 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1750
1751 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1752 to 2.30 notes.
1753
1754 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1755
1756 [BZ #23741]
1757 * malloc/hooks.c (malloc_check, realloc_check): Use
1758 __builtin_add_overflow on overflow check and adapt to
1759 checked_request2size change.
1760 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1761 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1762 allocation size to PTRDIFF_MAX.
1763 (REQUEST_OUT_OF_RANGE): Remove macro.
1764 (checked_request2size): Change to inline function and limit maximum
1765 requested size to PTRDIFF_MAX.
1766 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1767 maximum allocation size to PTRDIFF_MAX.
1768 (_mid_memalign): Use _int_memalign call for overflow check.
1769 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1770 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1771 limit maximum requested size to PTRDIFF_MAX.
1772 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1773 valloc, pvalloc): Add __attribute_alloc_size__.
1774 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1775 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1776 larger than PTRDIFF_MAX.
1777 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1778 around tests of malloc with negative sizes.
1779 * malloc/tst-posix_memalign.c (do_test): Likewise.
1780 * malloc/tst-pvalloc.c (do_test): Likewise.
1781 * malloc/tst-valloc.c (do_test): Likewise.
1782 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1783 with resulting size allocation larger than PTRDIFF_MAX with
1784 reallocarray_nowarn.
1785 (reallocarray_nowarn): New function.
1786 * NEWS: Mention the malloc function semantic change.
1787
1788 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1789
1790 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1791 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1792
1793 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1794 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1795 * sysdeps/powerpc/fpu/s_fma.c: New file.
1796 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1797
1798 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1799 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1800
1801 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1802 the magic flag store.
1803 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1804 Likewise.
1805 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1806 Likewise.
1807 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1808 Remove rt_sigreturn call.
1809
1810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1811 Remove rt_sigreturn call.
1812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1813 Likewise.
1814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1816
1817 * support/Makefile (libsupport-routines): Add support_subprocess,
1818 xposix_spawn, xposix_spawn_file_actions_addclose, and
1819 xposix_spawn_file_actions_adddup2.
1820 (tst-support_capture_subprocess-ARGS): New rule.
1821 * support/capture_subprocess.h (support_capture_subprogram): New
1822 prototype.
1823 * support/support_capture_subprocess.c (support_capture_subprocess):
1824 Refactor to use support_subprocess and support_capture_poll.
1825 (support_capture_subprogram): New function.
1826 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1827 str_to_write_mode, test_common, parse_int, handle_restart,
1828 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1829 (do_test): Add support_capture_subprogram tests.
1830 * support/subprocess.h: New file.
1831 * support/support_subprocess.c: Likewise.
1832 * support/xposix_spawn.c: Likewise.
1833 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1834 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1835 * support/xspawn.h: Likewise.
1836
1837 2019-04-17 Mike Gerow <gerow@google.com>
1838
1839 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1840 groups limit.
1841
1842 2019-04-11 Florian Weimer <fweimer@redhat.com>
1843
1844 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1845 domain with empty string.
1846 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1847
1848 2019-04-11 Florian Weimer <fweimer@redhat.com>
1849
1850 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1851 comment.
1852 (alloc_buffer_next): Change return type to non-const. Update
1853 comment.
1854
1855 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1856
1857 * manual/time.texi (Formatting Calendar Time): Add missing percent
1858 sign to conversion specifier.
1859
1860 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1861 Kwok Cheung Yeung <kcy@codesourcery.com>
1862
1863 [BZ #16573]
1864 * malloc/mtrace.c: Define prototypes for all hooks.
1865 (set_default_hooks): New function.
1866 (set_trace_hooks): Likewise.
1867 (save_default_hooks): Likewise.
1868 (tr_freehook): Use new s*_hooks functions.
1869 (tr_mallochook): Likewise.
1870 (tr_reallochook): Likewise.
1871 (tr_memalignhook): Likewise.
1872 (mtrace): Likewise.
1873 (muntrace): Likewise.
1874
1875 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1876
1877 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1878 (generic_stpcpy): New function.
1879 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1880 (generic_stpncpy): New function.
1881 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1882 (generic_strcat): New function.
1883 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1884 (generic_strcpy): New function.
1885 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1886 (STUPID_STRNCAT): Remove function.
1887 (generic_strncat): New function.
1888 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1889 (STUPID_STRNCPY): Remove function.
1890 (generic_strncpy): New function.
1891 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1892 (generic_strnlen): New function.
1893 (memchr_strnlen): New function.
1894 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1895 (memchr_strlen): Likewise.
1896
1897 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1898
1899 * benchtests/bench-strstr.c (input): Add realistic input text.
1900 (stupid_strstr): Remove function.
1901 (basic_strstr): Add function.
1902 (twoway_strstr): Add function.
1903 (do_one_test): Add result checking.
1904 (do_test): Use new input text. Remove accidental early matches.
1905 (test_main): Improve range of tests, reduce unaligned cases.
1906
1907 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1908
1909 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1910 (basic_memmem): Add function.
1911 (twoway_memmem): Add function.
1912
1913 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1914
1915 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1916 * benchtests/bench-malloc-thread.c: Likewise.
1917 * benchtests/bench-skeleton.c: Likewise.
1918 * benchtests/bench-strtod.c: Likewise.
1919 * benchtests/bench-timing.h: Likewise.
1920
1921 2019-04-08 Florian Weimer <fweimer@redhat.com>
1922
1923 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1924 definitions.
1925 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1926 RES_INSECURE2 security checks.
1927 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1928 RES_INSECURE2 handling.
1929
1930 2019-04-08 Florian Weimer <fweimer@redhat.com>
1931
1932 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1933 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1934 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1935 GETHOSTBYNAME.
1936 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1937 (tests-internal): Update justification for tst-resolv-res_init,
1938 tst-resolv-res_init-thread.
1939 (tst-res_use_inet6): Remove target.
1940 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1941 * resolv/res_debug.c (p_option): Remove "inet6" support.
1942 * resolv/res_init.c (res_setoptions): Likewise.
1943 * resolv/res_use_inet6.h: Remove file.
1944 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1945 definition.
1946 (res_use_inet6): Always return false.
1947 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1948 * resolv/resolv_context.h: Adjust file comment.
1949 (struct resolv_context): Update comment on __next field.
1950 (__resolv_context_put): Update comment.
1951 * resolv/tst-res_use_inet6.c: Remove file.
1952 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1953 "inet6" support.
1954 (test_cases): Adjust test case.
1955 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1956 (thread_byname2_af_inet6): Use old byname_inet6 code.
1957 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1958 (gai): Remove do_inet6 argument.
1959 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1960 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1961 (thread_gai_unspec_inet6): Remove functions.
1962 (do_test): Adjust thread_funcs.
1963 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1964 RES_USE_INET6 flag.
1965 (gaih_inet): Do not disable RES_USE_INET6 flag.
1966
1967 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1968
1969 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1970 and remove redundant code.
1971
1972 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1973
1974 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1975 New rule.
1976 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1977 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1978 Likewise.
1979 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1980 Likewise.
1981 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1982 Likewise.
1983 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1984 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1985 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1986 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1987 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1988 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1989 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1990 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1991 wcsrchr-power7.
1992 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1993 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1994 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1995 Remove wcsrchr optimizations.
1996 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1997
1998 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1999 the loop unroll.
2000
2001 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
2002 New rule.
2003 * sysdeps/powerpc/power6/wcschr.c: Remove file.
2004 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
2005 Likewise.
2006 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
2007 Likewise.
2008 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
2009 Likewise.
2010 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2011 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2012 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2013 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2014 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2015 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2016 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2017 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2018 wcschr-power7.
2019 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2020 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2021 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2022 Remove wcschr optimizations.
2023 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2024
2025 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2026 the loop unroll.
2027
2028 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2029 New rule.
2030 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2031 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2032 Likewise.
2033 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2034 Likewise.
2035 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2036 Likewise.
2037 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2038 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2039 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2040 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2041 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2042 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2043 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2044 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2045 wcscpy-power7.
2046 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2047 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2048 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2049 Remove wcscpy optimizations.
2050 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2051
2052 * include/loop_unroll.h: New file.
2053 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2054 besides generic implementation.
2055
2056 2019-04-03 DJ Delorie <dj@redhat.com>
2057
2058 * time/tst-strftime3.c (tm_to_printed): Disable warning about
2059 snprintf truncating output.
2060
2061 2019-04-02 DJ Delorie <dj@redhat.com>
2062
2063 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
2064 warning.
2065
2066 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2067
2068 [BZ #22964]
2069 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2070 era.
2071 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2072 (mkreftable): Add rules for the new Japanese era and the new dates.
2073
2074 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2075 Rafal Luzynski <digitalfreak@lingonborough.com>
2076
2077 * time/tst-strftime2.c (date_t): Explicitly define the type.
2078 (dates): Use natural month and year numbers to express a date.
2079 (is_before): New function to compare dates.
2080 (mkreftable): Minor improvements to simplify maintenance.
2081 (do_test): Reflect the changes in dates array.
2082
2083 [BZ #24293]
2084 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2085 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2086 * time/tst-strftime2.c (locales): Likewise.
2087 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2088 2010-04-01, and 2011-04-01.
2089 (mkreftable): Add rules for the new locales and the new dates.
2090
2091 2019-04-01 Carlos O'Donell <carlos@redhat.com>
2092
2093 * localedata/locales/ja_JP: Add comments to era entries.
2094
2095 2019-04-01 DJ Delorie <dj@redhat.com>
2096
2097 [BZ #24394]
2098 * time/strptime_l.c (%Ey): Fix fencepost error.
2099 * time/tst-strftime3.c: New.
2100 * time/Makefile (tests): Add tst-strftime3.
2101
2102 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
2103
2104 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2105 conditional branch to DIVBYZERO. Fix unwind info.
2106 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2107 excb after conditional branch to $powerof2. Add missing unop
2108 instructions and .align directives and reorder instructions to
2109 match __divqu.
2110
2111 2019-04-01 Richard Henderson <rth@twiddle.net>
2112
2113 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2114 Do not redefine.
2115 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2116 Do not redefine.
2117
2118 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
2119
2120 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2121 $libc_cv_riscv_float_abi in `test' invocation.
2122 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2123
2124 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
2125
2126 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2127 asm with builtin.
2128 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2129 Likewise.
2130 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2131 (_GET_SI_FPSCR): Likewise.
2132 (_SET_SI_FPSCR): Likewise.
2133
2134 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2135
2136 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2137 clang 2.8.
2138 (signbit): Use builtin for clang 3.3.
2139 (isinf): Use builtin for clang 3.7.
2140
2141 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2142
2143 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2144
2145 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
2146
2147 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2148 quote in printf.
2149
2150 2019-03-25 Mike Crowe <mac@mcrowe.com>
2151
2152 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2153 pthread_rwlock_timedrdlock with calls to
2154 pthread_rwlock_timedwrlock to ensure that the latter is tested
2155 too. Use new function name in diagnostic messages too.
2156
2157 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2158 (do_test) Use libsupport test macros rather than hand-coded
2159 conditionals and error messages. Ensure that sem_init returns zero
2160 rather than not -1. Use <support/test-driver.c> rather than
2161 test-skeleton.c.
2162
2163 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2164 test macros rather than hand-coded conditionals and error messages.
2165 Use <support/test-driver.c> rather than test-skeleton.c.
2166
2167 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2168
2169 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2170
2171 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2172 (NT_MIPS_MSA): Likewise.
2173
2174 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2175
2176 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2177 * benchtests/README: Update description.
2178 * benchtests/bench-timing.h: Default to hp-timing.
2179 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2180 HP_TIMING_PRINT): Remove.
2181 (HP_TIMING_NOW): Add generic implementation.
2182 (hp_timing_t): Change to uint64_t.
2183
2184 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2185 HP_TIMING_INLINE.
2186 * nptl/descr.h: Likewise.
2187 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2188 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2189 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2190 Abstract hp-timing usage with RTLD_* macros.
2191 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2192 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2193 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2194 HP_TIMING_NONAVAIL): Likewise.
2195 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2196 Likewise.
2197 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2198 HP_SMALL_TIMING_AVAIL): Likewise.
2199 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2200 HP_SMALL_TIMING_AVAIL): Likewise.
2201 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2202 HP_SMALL_TIMING_AVAIL): Likewise.
2203 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2204 HP_SMALL_TIMING_AVAIL): Likewise.
2205 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2206 Likewise.
2207 * sysdeps/generic/hp-timing-common.h: Update comment with
2208 HP_TIMING_AVAIL removal.
2209
2210 * include/random-bits.h: New file.
2211 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2212 (__res_context_mkquery): Remove usage hp-timing usage and replace with
2213 random_bits.
2214 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2215 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2216 Likewise.
2217
2218 * include/libc-internal.h (__get_clockfreq): Remove prototype.
2219 * rt/Makefile (clock-routines): Remove get_clockfreq.
2220 * rt/get_clockfreq.c: Remove file.
2221 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2222 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2223 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2224 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2225 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2226
2227 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2228 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2229 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2230 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2231 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2232
2233 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2234 pthread_clock_settime.
2235 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2236 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2237 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2238 * elf/rtld.c (_dl_start_final): Likewise.
2239 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2240 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2241 Remove.
2242 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2243 (_dl_cpuclock_offset): Remove.
2244 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2245 cpuclock_offset_ununsed.
2246 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2247 cpuclock_offset set.
2248 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2249 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2250 * nptl/pthread_clock_gettime.c: Remove file.
2251 * nptl/pthread_clock_settime.c: Likewise.
2252 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2253 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2254 and CLOCK_PROCESS_CPUTIME_ID support.
2255 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2256 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2257 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2258 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2259 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2260 Likewise.
2261 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2262
2263 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2264
2265 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2266 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2267 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2268 New defines.
2269 * sysdeps/s390/memmem-arch13.S: New file.
2270 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2271 if it is only used as fallback.
2272 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2273 * sysdeps/s390/multiarch/ifunc-impl-list.c
2274 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2275
2276 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2277
2278 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2279 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2280 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2281 New defines.
2282 * sysdeps/s390/multiarch/ifunc-impl-list.c
2283 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2284 * sysdeps/s390/strstr-arch13.S: New file.
2285 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2286 if it is only used as fallback.
2287 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2288
2289 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2290
2291 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2292 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2293 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2294 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2295 ifunc selector.
2296 * sysdeps/s390/multiarch/ifunc-impl-list.c
2297 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2298 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2299 S390_IS_ARCH13_MIE3): New defines.
2300
2301 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2302
2303 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2304 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2305 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2306 * sysdeps/s390/configure: Regenerated.
2307
2308 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2309
2310 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2311 Add vxe2, vxp, dflt, sort flags.
2312 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2313 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2314 capabilities.
2315 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2316 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2317 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2318 HWCAP_S390_DFLT): Define.
2319
2320 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2321
2322 [BZ #24372]
2323 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2324 of compiler warning.
2325 * locale/programs/ld-collate.c (collate_output): Likewise.
2326
2327 2019-03-21 DJ Delorie <dj@redhat.com>
2328
2329 [BZ #24372]
2330 * iconv/iconvconfig.c (write_output): Replace floating point math
2331 with integer math to avoid imprecise results.
2332 * locale/programs/ld-collate.c (collate_output): Likewise.
2333
2334 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2335
2336 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2337 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2338
2339 2019-03-20 mansayk <6688000@gmail.com>
2340
2341 [BZ #24296]
2342 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2343 (abday): Likewise, but remove the trailing dots.
2344
2345 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2346
2347 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2348 macro.
2349 (HWCAP_PACA): Likewise.
2350 (HWCAP_PACG): Likewise.
2351 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2352 Increase to 32.
2353 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2354
2355 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2356
2357 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2358 should be handled.
2359
2360 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2361
2362 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2363 version to 5.0.
2364 (old_getpagesize): New syscall.
2365
2366 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2367
2368 [BZ #24293]
2369 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2370 * localedata/locales/cmn_TW (era): Likewise.
2371 * localedata/locales/hak_TW (era): Likewise.
2372 * localedata/locales/lzh_TW (era): Likewise.
2373 * localedata/locales/nan_TW (era): Likewise.
2374
2375 2019-03-14 Adam Maris <amaris@redhat.com>
2376
2377 * malloc/malloc.c (_int_malloc): Check for large bin list
2378 corruption when inserting unsorted chunk.
2379
2380 2019-03-14 Florian Weimer <fweimer@redhat.com>
2381
2382 Remove obsolete, never-implemented XSI STREAMS declarations.
2383 * manual/terminal.texi (Allocation): Remove portability note and
2384 adjust example.
2385 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2386 _SC_STREAMS.
2387 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2388 * sysdeps/unix/inet/Subdirs (streams): Remove.
2389 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2390 (conformtest-headers-UNIX98): Likewise.
2391 (conformtest-headers-XOPEN2K): Likewise.
2392 (conformtest-headers-POSIX2008): Likewise.
2393 * posix/compat-streams.c: New file.
2394 * posix/Makefile (routines): Add it.
2395 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2396 getpmsg, isastream, putmsg, putpmsg.
2397 (GLIBC_2.30): New section.
2398 * bits/stropts.h: Remove file.
2399 * bits/xtitypes.h: Likewise.
2400 * conform/data/stropts.h-data: Likewise.
2401 * include/stropts.h: Likewise.
2402 * include/sys/stropts.h: Likewise.
2403 * include/xtitypes.h: Likewise.
2404 * streams/Makefile: Likewise.
2405 * streams/fattach.c: Likewise.
2406 * streams/fdetach.c: Likewise.
2407 * streams/getmsg.c: Likewise.
2408 * streams/getpmsg.c: Likewise.
2409 * streams/isastream.c: Likewise.
2410 * streams/putmsg.c: Likewise.
2411 * streams/putpmsg.c: Likewise.
2412 * streams/stropts.h: Likewise.
2413 * streams/sys/stropts.h: Likewise.
2414 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2415 * sysdeps/s390/bits/xtitypes.h: Likewise.
2416 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2417 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2418 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2419 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2420 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2421 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2422 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2423 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2424 * sysdeps/x86/bits/xtitypes.h: Likewise.
2425
2426 2019-03-14 Florian Weimer <fweimer@redhat.com>
2427
2428 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2429 libnss_files.
2430 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2431 but not with libnss_files.
2432 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2433
2434 2019-03-14 Zack Weinberg <zackw@panix.com>
2435
2436 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2437 Specify encoding="utf-8" when opening headers to check.
2438
2439 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2440
2441 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2442 version to 5.0.
2443 (Context.checkout_tar): Handle variable major version for Linux
2444 kernel.
2445
2446 2019-03-13 Florian Weimer <fweimer@redhat.com>
2447
2448 [BZ #24047]
2449 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2450
2451 2019-03-13 Zack Weinberg <zackw@panix.com>
2452
2453 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2454 Move to stdlib.
2455 * include/inttypes.h: Adjust to match.
2456 * include/stdint.h: New wrapper.
2457
2458 2019-03-13 Zack Weinberg <zackw@panix.com>
2459
2460 * scripts/check-obsolete-constructs.py: New test script.
2461 * scripts/check-installed-headers.sh: Remove tests for
2462 obsolete typedefs, superseded by check-obsolete-constructs.py.
2463 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2464 as a special test. Update commentary.
2465 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2466 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2467 Update commentary.
2468 * posix/sys/types.h (__u_intN_t): Remove.
2469 (u_int8_t): Typedef using __uint8_t.
2470 (u_int16_t): Typedef using __uint16_t.
2471 (u_int32_t): Typedef using __uint32_t.
2472 (u_int64_t): Typedef using __uint64_t.
2473
2474 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2475
2476 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2477 call _dl_procinfo.
2478 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2479 Ignore types other than AT_HWCAP.
2480 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2481 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2482 Likewise.
2483 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2484 in the case of falling back to generic output mechanism.
2485 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2486 Likewise.
2487
2488 2019-03-12 Florian Weimer <fweimer@redhat.com>
2489
2490 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2491
2492 2019-03-12 Florian Weimer <fweimer@redhat.com>
2493
2494 [BZ #24047]
2495 resolv: Enable full ICMP errors for UDP DNS sockets
2496 * resolv/res_enable_icmp.c: New file.
2497 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2498 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2499 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2500 socket.
2501
2502 2019-03-11 Mao Han <han_mao@c-sky.com>
2503
2504 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2505 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2506
2507 2019-03-11 Mao Han <han_mao@c-sky.com>
2508
2509 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2510 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2511 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2512
2513 2019-03-11 Mao Han <han_mao@c-sky.com>
2514
2515 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2516 directly.
2517 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2518 definition.
2519
2520 2019-03-11 Mao Han <han_mao@c-sky.com>
2521
2522 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2523 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2524 in mcontext_t
2525
2526 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2527
2528 [BZ #24307]
2529 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2530 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2531 Unicode 12.0.0.
2532 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2533 * localedata/unicode-gen/PropList.txt: Likewise.
2534 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2535 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2536 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2537 * localedata/charmaps/UTF-8: Regenerate.
2538 * localedata/locales/i18n_ctype: Likewise.
2539 * localedata/locales/tr_TR: Likewise.
2540 * localedata/locales/translit_circle: Likewise.
2541 * localedata/locales/translit_cjk_compat: Likewise.
2542 * localedata/locales/translit_combining: Likewise.
2543 * localedata/locales/translit_compat: Likewise.
2544 * localedata/locales/translit_font: Likewise.
2545 * localedata/locales/translit_fraction: Likewise.
2546
2547 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2548
2549 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2550 than after operators.
2551 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2552 (setitimer_locked): Likewise.
2553 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2554 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2555 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2556 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2557 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2558 (PPC_CPU_SUPPORTED): Likewise.
2559 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2560 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2561 (stat_overflow): Likewise.
2562 (statfs_overflow): Likewise.
2563 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2564 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2565 (eq_ttyname_r): Likewise.
2566 (run_chroot_tests): Likewise.
2567
2568 2019-03-07 Florian Weimer <fweimer@redhat.com>
2569
2570 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2571 header check.
2572
2573 2019-03-07 Martin Liska <mliska@suse.cz>
2574
2575 * math/Makefile: Change location where math-vector-fortran.h is
2576 installed.
2577 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2578 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2579 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2580 * scripts/check-installed-headers.sh: Skip Fortran header files.
2581 * scripts/check-wrapper-headers.py: Likewise.
2582
2583 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2584
2585 * nptl/nptl-init.c (__have_futex_clock_realtime,
2586 __have_futex_clock_realtime): Remove definition.
2587 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2588 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2589 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2590 __ASSUME_FUTEX_CLOCK_REALTIME support.
2591 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2592 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2593 * sysdeps/unix/sysv/linux/kernel-features.h
2594 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2595 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2596 Adjust comment.
2597
2598 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2599
2600 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2601 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2602 __GI___wcscpy and wcscpy.
2603
2604 2019-03-04 Florian Weimer <fweimer@redhat.com>
2605
2606 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2607 declaration.
2608 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2609 defined.
2610
2611 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2612
2613 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2614 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2615
2616 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2617
2618 [BZ #24162]
2619 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2620 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2621
2622 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2623
2624 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2625 tests.
2626 (do_test): Likewise.
2627 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2628 (do_test_call_varg): Likewise.
2629 (do_test_call_rarg): Likewise.
2630 * sysdeps/ieee754/ldbl-opt/Makefile
2631 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2632 tst-nldbl-error.
2633 ($(objpfx)tst-nldbl-warn.c): New rule.
2634 ($(objpfx)tst-nldbl-error.c): Likewise.
2635 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2636 New variables.
2637
2638 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2639
2640 [BZ #23984]
2641 * include/bits/error-ldbl.h: New file.
2642 * include/error.h: Include stdarg.h. Declare internal functions
2643 __error_internal and __error_at_line_internal.
2644 * misc/Makefile (headers): Add bits/error-ldbl.h.
2645 * misc/bits/error-ldbl.h: New file.
2646 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2647 avoid the inclusion of bits/error.h.
2648 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2649 and __nldbl_error_at_line.
2650 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2651 (__nldbl_error, __ndlbl_error_at_line): New functions.
2652 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2653 Redirect error and error_at_line.
2654 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2656 Likewise.
2657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2658 Likewise.
2659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2660 Likewise.
2661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2662 Likewise.
2663 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2664 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2665 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2666
2667 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2668
2669 [BZ #23984]
2670 * include/bits/err-ldbl.h: New file.
2671 * include/err.h: Add prototypes for the internal functions:
2672 __vwarnx_internal and __vwarn_internal.
2673 * misc/Makefile (headers): Add bits/err-ldbl.h.
2674 * misc/bits/err-ldbl.h: New file.
2675 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2676 defined, i.e.: when -mlong-double-64 is in use.
2677 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2678 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2679 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2680 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2681 (VA_CALL): New macro.
2682 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2683 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2684 functions.
2685 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2686 declare prototypes for the new functions.
2687 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2689 Likewise.
2690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2691 Likewise.
2692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2693 Likewise.
2694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2695 Likewise.
2696 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2697 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2698 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2699
2700 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2701
2702 * sysdeps/ieee754/ldbl-opt/Makefile
2703 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2704 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2705 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2706
2707 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2708
2709 [BZ #23983]
2710 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2711 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2712 * argp/bits/argp-ldbl.h: New file.
2713 * include/argp.h: Include stdarg.h. Add prototypes for internal
2714 functions: __argp_error_internal and __argp_failure_internal.
2715 * include/bits/argp-ldbl.h: New file.
2716 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2717 __nldbl_argp_error and __nldbl_argp_failure.
2718 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2719 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2720 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2721 Redirect argp_error and argp_failure calls.
2722 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2724 Likewise.
2725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2726 Likewise.
2727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2728 Likewise.
2729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2730 Likewise.
2731 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2732 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2733 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2734
2735 2019-03-01 Florian Weimer <fweimer@redhat.com>
2736
2737 [BZ #20419]
2738 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2739 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2740 code, to avoid creating an ABI tag note.
2741 (modules-names-nobuild): Add tst-big-note-lib.
2742
2743 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2744
2745 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2746 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2747
2748 2019-03-01 Florian Weimer <fweimer@redhat.com>
2749
2750 [BZ #20271]
2751 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2752 (__netlink_assert_response): Add additional missing newlines.
2753
2754 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2755
2756 * sysdeps/powerpc/powerpc32/dl-machine.c
2757 (__elf_machine_fixup_plt): Use space before '('.
2758 (__process_machine_rela): Likewise.
2759 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2760 Likewise.
2761 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2762 Likewise.
2763 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2764 Likewise.
2765 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2766 (pattern): Likewise.
2767 (delta): Likewise.
2768 (check_result): Likewise.
2769 (check_excepts): Likewise.
2770 (check_op): Likewise.
2771 (fail_xr): Likewise.
2772 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2773 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2774 (SCNHSZ): Likewise.
2775 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2776 Likewise.
2777 (ARGS): Likewise.
2778 (__makecontext): Likewise.
2779 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2780 Likewise.
2781
2782 2019-02-28 Florian Weimer <fweimer@redhat.com>
2783
2784 [BZ #23937]
2785 elf: Add test with a local IFUNC resolver.
2786 * elf/ifuncmain9.c: New file.
2787 * elf/ifuncmain9pic.c: Likewise.
2788 * elf/ifuncmain9picstatic.c: Likewise.
2789 * elf/ifuncmain9pie.c: Likewise.
2790 * elf/ifuncmain9static.c: Likewise.
2791 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2792 ifuncmain9static, ifuncmain9picstatic.
2793 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2794 Add ifuncmain9, ifuncmain9pic.
2795 * elf/Makefile [multi-arch && build-shared && have-fpie]
2796 (ifunc-pie-tests): Add ifuncmain9pie.
2797 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2798 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2799 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2800
2801 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2802
2803 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2804 * configure: Regenerated.
2805 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2806
2807 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2808
2809 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2810 symbol as __wcspcy instead of wcscpy.
2811
2812 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2813
2814 * include/stdio.h (__renameat2): New hidden prototype.
2815 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2816 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2817 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2818 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2819
2820 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2821
2822 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2823 if statement.
2824
2825 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2826 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2827 * benchtests/bench-strlen.c (do_test): Likewise.
2828 (test_main): Likewise.
2829 * catgets/gencat.c (read_old): Likewise.
2830 * elf/cache.c (load_aux_cache): Likewise.
2831 * iconvdata/bug-iconv8.c (do_test): Likewise.
2832 * math/test-tgmath-ret.c (do_test): Likewise.
2833 * nis/nis_call.c (rec_dirsearch): Likewise.
2834 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2835 * nptl/tst-audit-threads.c (do_test): Likewise.
2836 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2837 * nss/nss_test1.c (init): Likewise.
2838 * nss/test-netdb.c (test_hosts): Likewise.
2839 * posix/execvpe.c (maybe_script_execute): Likewise.
2840 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2841 * stdio-common/tst-printf.c (do_test): Likewise.
2842 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2843 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2844 * stdlib/qsort.c (STACK_SIZE): Likewise.
2845 * stdlib/test-canon.c (do_test): Likewise.
2846 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2847 * string/memcmp.c (OPSIZ): Likewise.
2848 * string/test-strcpy.c (do_test): Likewise.
2849 (do_random_tests): Likewise.
2850 * string/test-strlen.c (do_test): Likewise.
2851 (test_main): Likewise.
2852 * string/test-strrchr.c (do_test): Likewise.
2853 (do_random_tests): Likewise.
2854 * string/tester.c (test_memrchr): Likewise.
2855 (test_memchr): Likewise.
2856 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2857 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2858 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2859 (read_encoded_value_with_base): Likewise.
2860 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2861 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2862 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2863 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2864 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2865 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2866 Likewise.
2867 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2868 Likewise.
2869 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2870 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2871 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2872 Likewise.
2873 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2874 Likewise.
2875 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2876 Likewise.
2877 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2878 Likewise.
2879 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2880 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2881 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2882 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2883 * time/test_time.c (main): Likewise.
2884
2885 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2886
2887 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2888
2889 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2890 wmemcpy.
2891
2892 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2893 wmemcpy.
2894
2895 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2896
2897 * include/wchar.h (__wcscpy): New prototype.
2898 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2899 (__wcscpy): Route internal symbol to generic implementation.
2900 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2901 Add internal __wcscpy alias.
2902 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2903 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2904 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2905 * wcsmbs/wcscpy.c (wcscpy): Add
2906 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2907 use generic implementation.
2908 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2909
2910 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2911 wmemset.
2912
2913 * sysdeps/m68k/wcpcpy.c: Remove file.
2914 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2915
2916 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2917
2918 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2919 than after operators.
2920 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2921 * sysdeps/mach/hurd/getcwd.c
2922 (__hurd_canonicalize_directory_name_internal): Likewise.
2923 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2924 (pthread_mutex_consistent): Likewise.
2925 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2926 Likewise.
2927 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2928 (__pthread_mutex_transfer_np): Likewise.
2929 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2930 (__pthread_mutex_unlock): Likewise.
2931 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2932 (mtx_owned_p): Likewise.
2933 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2934 (pthread_mutexattr_getrobust): Likewise.
2935 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2936 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2937 Likewise.
2938 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2939 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2940 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2941 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2942 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2943 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2944 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2945 Likewise.
2946 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2947 Likewise.
2948 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2949 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2950 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2951 (____longjmp_chk): Likewise.
2952 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2953 Likewise.
2954 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2955 (INTERNAL_SYSCALL): Likewise.
2956 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2957 (INTERNAL_SYSCALL): Likewise.
2958 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2959 (__get_clockfreq_via_cpuinfo): Likewise.
2960
2961 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2962 comments.
2963 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2964 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2965 (WORD_COPY_BWD): Likewise.
2966 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2967 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2968 Likewise.
2969 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2970 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2971 comment.
2972 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2973
2974 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2975
2976 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2977 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2978 rather than after operators.
2979 * elf/cache.c (print_cache): Likewise.
2980 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2981 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2982 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2983 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2984 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2985 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2986 (reauth_proc): Likewise.
2987 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2988 (__file_name_split_at): Likewise.
2989 (__directory_name_split_at): Likewise.
2990 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2991 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2992 * iconv/gconv_dl.c (do_print): Likewise.
2993 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2994 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2995 * locale/setlocale.c (new_composite_name): Likewise.
2996 * malloc/memusagestat.c (main): Likewise.
2997 * misc/fstab.c (fstab_convert): Likewise.
2998 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2999 Likewise.
3000 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
3001 (getgrent_next_file): Likewise.
3002 (internal_getgrnam_r): Likewise.
3003 (internal_getgrgid_r): Likewise.
3004 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
3005 Likewise.
3006 (internal_getgrent_r): Likewise.
3007 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3008 (getpwent_next_nss): Likewise.
3009 (getpwent_next_file): Likewise.
3010 (internal_getpwnam_r): Likewise.
3011 (internal_getpwuid_r): Likewise.
3012 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3013 Likewise.
3014 (getspent_next_nss): Likewise.
3015 (internal_getspnam_r): Likewise.
3016 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3017 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3018 * string/strchr.c (STRCHR): Likewise.
3019 * string/strchrnul.c (STRCHRNUL): Likewise.
3020 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3021 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3022 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3023 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3024 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3025 Likewise.
3026 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3027 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3028 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3029 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3030 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3031 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3032 (open_file): Likewise.
3033 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3034 (pthread_mutexattr_setprotocol): Likewise.
3035 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3036 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3037 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3038 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3039 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3040 Likewise.
3041 (elf_machine_rela): Likewise.
3042 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3043 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3044 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3045 * sysdeps/posix/rename.c (rename): Likewise.
3046 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3047 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3048 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3049 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3050 * sysdeps/unix/grantpt.c (grantpt): Likewise.
3051 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3052 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3053 Likewise.
3054 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3055 Likewise.
3056 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3057 * time/tzfile.c (__tzfile_compute): Likewise.
3058
3059 2019-02-22 Joseph Myers <joseph@codesourcery.com>
3060
3061 * benchtests/bench-memmem.c (simple_memmem): Break lines before
3062 rather than after operators.
3063 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3064 * crypt/md5.c (md5_finish_ctx): Likewise.
3065 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3066 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3067 * elf/cache.c (load_aux_cache): Likewise.
3068 * elf/dl-load.c (open_verify): Likewise.
3069 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3070 * elf/readelflib.c (process_elf_file): Likewise.
3071 * elf/rtld.c (dl_main): Likewise.
3072 * elf/sprof.c (generate_call_graph): Likewise.
3073 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3074 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3075 * hurd/dtable.c (reauth_dtable): Likewise.
3076 * hurd/getdport.c (__getdport): Likewise.
3077 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3078 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3079 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3080 Likewise.
3081 * hurd/hurdioctl.c (fioctl): Likewise.
3082 * hurd/hurdselect.c (_hurd_select): Likewise.
3083 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3084 (STOPSIGS): Likewise.
3085 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3086 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3087 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3088 * hurd/msgportdemux.c (msgport_server): Likewise.
3089 * hurd/setauth.c (_hurd_setauth): Likewise.
3090 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3091 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3092 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3093 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3094 * login/tst-utmp.c (do_check): Likewise.
3095 (simulate_login): Likewise.
3096 * mach/lowlevellock.h (lll_lock): Likewise.
3097 (lll_trylock): Likewise.
3098 * math/test-fenv.c (ALL_EXC): Likewise.
3099 * math/test-fenvinline.c (ALL_EXC): Likewise.
3100 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3101 * nis/nis_call.c (__do_niscall3): Likewise.
3102 * nis/nis_callback.c (cb_prog_1): Likewise.
3103 * nis/nis_defaults.c (searchaccess): Likewise.
3104 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3105 * nis/nis_ismember.c (internal_ismember): Likewise.
3106 * nis/nis_local_names.c (nis_local_principal): Likewise.
3107 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3108 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3109 Likewise.
3110 * nis/ypclnt.c (yp_match): Likewise.
3111 (yp_first): Likewise.
3112 (yp_next): Likewise.
3113 (yp_master): Likewise.
3114 (yp_order): Likewise.
3115 * nscd/hstcache.c (cache_addhst): Likewise.
3116 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3117 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3118 (internal_getpwuid_r): Likewise.
3119 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3120 * posix/glob.h (__GLOB_FLAGS): Likewise.
3121 * posix/regcomp.c (peek_token): Likewise.
3122 (peek_token_bracket): Likewise.
3123 (parse_expression): Likewise.
3124 * posix/regexec.c (sift_states_iter_mb): Likewise.
3125 (check_node_accept_bytes): Likewise.
3126 * posix/tst-spawn3.c (do_test): Likewise.
3127 * posix/wordexp-test.c (testit): Likewise.
3128 * posix/wordexp.c (parse_tilde): Likewise.
3129 (exec_comm): Likewise.
3130 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3131 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3132 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3133 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3134 * stdio-common/tst-fileno.c (do_test): Likewise.
3135 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3136 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3137 * stdlib/strtod_l.c (round_and_return): Likewise.
3138 (____STRTOF_INTERNAL): Likewise.
3139 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3140 * string/strcspn.c (STRCSPN): Likewise.
3141 * string/test-memmem.c (simple_memmem): Likewise.
3142 * termios/tcsetattr.c (tcsetattr): Likewise.
3143 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3144 * time/asctime.c (asctime_internal): Likewise.
3145 * time/strptime_l.c (__strptime_internal): Likewise.
3146 * time/sys/time.h (timercmp): Likewise.
3147 * time/tzfile.c (__tzfile_compute): Likewise.
3148
3149 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
3150
3151 [BZ #21915]
3152 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3153
3154 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3155
3156 * argp/argp-help.c (__argp_error_internal): New function,
3157 renamed from __argp_error, but that takes a 'mode_flags'
3158 parameter to control the format of long double parameters.
3159 (__argp_error): Converted into a call __argp_error_internal.
3160 (__argp_failure_internal): New function, renamed from
3161 __argp_failure, but that takes a 'mode_flags' parameter.
3162 (__argp_failure): Converted into a call __argp_failure_internal.
3163 * misc/err.c (__vwarnx_internal): New function, renamed from
3164 vwarnx, but that takes a 'mode_flags' parameter.
3165 (vwarnx): Converted into a call to __vwarnx_internal.
3166 (__vwarn_internal): New function, renamed from vwarn, but that
3167 takes a 'mode_flags' parameter.
3168 (vwarn): Converted into a call to __vwarn_internal.
3169 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3170 call to __vfxprintf with 'mode_flags'.
3171 (__error_internal): New function, renamed from error, but that
3172 takes a 'mode_flags' parameter.
3173 (error): Converted into a call to __error_internal.
3174 (__error_at_line_internal): New function, renamed from
3175 error_at_line, but that takes a 'mode_flags' parameter.
3176 (error_at_line): Converted into a call to
3177 __error_at_line_internal.
3178 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3179 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3180 Likewise.
3181
3182 2019-02-20 Martin Liska <mliska@suse.cz>
3183
3184 * math/Makefile: Install math-vector-fortran.h.
3185 * bits/math-vector-fortran.h: New file.
3186 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3187
3188 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3189
3190 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3191 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3192
3193 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
3194
3195 * nptl/pthread_mutex_trylock.c: Fix comment.
3196
3197 2019-02-19 Carlos O'Donell <carlos@redhat.com>
3198
3199 * nptl/pthread_tryjoin.c: Fix comment.
3200
3201 2019-02-18 Joseph Myers <joseph@codesourcery.com>
3202
3203 [BZ #24231]
3204 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3205 after R_SPARC_H34 case.
3206
3207 2019-02-18 Florian Weimer <fweimer@redhat.com>
3208
3209 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3210 (getanswer): Do not call Dprintf.
3211 (res_gethostbyname2_context): Likewise.
3212 (res_gethostbyaddr_context): Likewise.
3213
3214 2019-02-18 Florian Weimer <fweimer@redhat.com>
3215
3216 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3217 declaration.
3218 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3219 Remove definitions.
3220 * libio/stdfiles.c: Update comment.
3221 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
3222 set _IO_stdin, _IO_stdout, _IO_stderr.
3223 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3224 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3225 inline function.
3226 (_IO_deallocate_file): New inline function.
3227 * libio/iolibio.h (_IO_vprintf): Remove definition.
3228 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3229 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3230 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3231 _IO_legacy_file.
3232 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3233 __builtin_expect. Use _IO_legacy_file.
3234
3235 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
3236
3237 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3238 Initialize ctid with a known value and remove update of ctid
3239 after clone.
3240 (wait_tid): Adjust arguments and call futex_wait with ctid_val
3241 as assumed current value of ctid_ptr.
3242
3243 2019-02-16 Florian Weimer <fweimer@redhat.com>
3244
3245 Check that non-sysdeps headers have wrapper headers.
3246 * scripts/check-wrapper-headers.py: New file.
3247 * Makefile (tests-special): Add check-wrapper-headers.out.
3248 (check-wrapper-headers.out): New target.
3249 * Rules (tests-special): Add check-wrapper-headers.out.
3250 (check-wrapper-headers.out): New target.
3251
3252 2019-02-16 Florian Weimer <fweimer@redhat.com>
3253
3254 Add missing header wrappers under include/.
3255 * include/ar.h: New file.
3256 * include/bits/mqueue2.h: Likewise.
3257 * include/bits/stdio.h: Likewise.
3258 * include/bits/stdio2.h: Likewise.
3259 * include/fstab.h: Likewise.
3260 * include/fts.h: Likewise.
3261 * include/lastlog.h: Likewise.
3262 * include/netinet/icmp6.h: Likewise.
3263 * include/netinet/igmp.h: Likewise.
3264 * include/netinet/ip6.h: Likewise.
3265 * include/re_comp.h: Likewise.
3266 * include/regexp.h: Likewise.
3267 * include/rpcsvc/bootparam.h: Likewise.
3268 * include/rpcsvc/yp_prot.h: Likewise.
3269 * include/sys/random.h: Likewise.
3270 * include/sys/stropts.h: Likewise.
3271 * include/sys/ttychars.h: Likewise.
3272 * include/sys/vfs.h: Likewise.
3273 * include/wait.h: Likewise.
3274
3275 2019-02-16 Florian Weimer <fweimer@redhat.com>
3276
3277 * nptl_db/proc_service.h: Move to ...
3278 * sysdeps/nptl/proc_service.h: ... here.
3279 * nptl_db/thread_db.h: Move to ...
3280 * sysdeps/nptl/thread_db.h: ... here.
3281 * nptl/descr.h: Include <thread_db.h>.
3282
3283 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3284
3285 * io/Makefile (tests): Add tst-lockf.
3286 * io/lockf.c (lockf): Use __fcntl and only define for
3287 !__OFF_T_MATCHES_OFF64_T.
3288 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3289 __OFF_T_MATCHES_OFF64_T case.
3290 * io/tst-lockf.c: New file.
3291 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3292 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3293 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3294 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3295 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3297 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3298 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3299 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3300
3301 2019-02-15 Florian Weimer <fweimer@redhat.com>
3302
3303 [BZ #24211]
3304 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3305 pd->result after the thread descriptor has been freed.
3306
3307 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3308
3309 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3310 from function return type.
3311
3312 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3313
3314 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * scripts/test_printers_common.py: Set TERM to a known harmless
3317 value.
3318
3319 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3320
3321 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3322 (xdr_u_int): Likewise.
3323 (xdr_enum): Likewise.
3324 (xdr_bytes): Reword fall-through comment.
3325 (xdr_string): Likewise.
3326
3327 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3328
3329 [BZ #2421]
3330 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3331 (tests): Add tst-join8 tst-join9.
3332 * nptl/lll_timedwait_tid.c: Remove file.
3333 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3334 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3335 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3336 * nptl/pthread_join_common.c (timedwait_tid): New function.
3337 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3338 is set.
3339 * nptl/tst-join5.c (thread_join): New function.
3340 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3341 check.
3342 * nptl/tst-join8.c: New file.
3343 * nptl/tst-join9.c: Likewise.
3344 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3345 lll_futex_timed_wait_cancel): Add generic macros.
3346 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3347 Remove definitions.
3348 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3349 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3350 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3351 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3352 Remove function.
3353 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3354 Likewise.
3355 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3356 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3357 (lll_futex_timed_wait_cancel): New macro.
3358
3359 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3360
3361 * benchtests/Makefile: Add malloc-simple benchmark.
3362 * benchtests/bench-malloc-simple.c: New benchmark.
3363
3364 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3365
3366 * benchtests/bench-memmove.c (do_one_test): Remove unused
3367 ORIG_SRC.
3368 (do_test): Adjust.
3369 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3370 ORIG_SRC.
3371 (do_test): Adjust.
3372
3373 2019-01-13 Jim Wilson <jimw@sifive.com>
3374
3375 [BZ #24040]
3376 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3377 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3378 (func): New.
3379 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3380 call func directly.
3381 * nptl/Makefile (tests): Add tst-unwind-thread.
3382 (CFLAGS-tst-unwind-thread.c): Define.
3383 * nptl/tst-unwind-thread.c: New file.
3384 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3385 as undefined.
3386
3387 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3388
3389 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3390 comment wording.
3391 * nis/nis_call.c (__do_niscall3): Likewise.
3392
3393 * catgets/gencat.c (normalize_line): Use braces around empty
3394 'else' body.
3395 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3396 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3397 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3398 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3399 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3400 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3401 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3402 definition.
3403
3404 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3405 execlp returns.
3406
3407 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3408
3409 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3410 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3411 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3412 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3413 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3414 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3415 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3416 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3417 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3418 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3419 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3420 * benchtests/bench-bcopy.c: Delete file.
3421 * benchtests/bench-bzero.c: Likewise.
3422 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3423 (simple_memccpy): Remove.
3424 (generic_memccpy): Add function.
3425 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3426 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3427 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3428 (generic_mempcpy): Add new function.
3429 * benchtests/bench-memset.c (simple_bzero): Remove.
3430 (builtin_bzero): Remove.
3431 (builtin_memset): Remove.
3432 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3433 (generic_rawmemchr): Add new function.
3434
3435 2019-02-12 Florian Weimer <fweimer@redhat.com>
3436
3437 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3438
3439 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3440
3441 [BZ #24122]
3442 * elf/Makefile (tests): Add tst-audit13.
3443 (modules-names): Add tst-audit13mod1.
3444 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3445 rule.
3446 * elf/tst-audit13.c: New file.
3447 * elf/tst-audit13mod1.c: Likewise.
3448
3449 2019-02-12 Florian Weimer <fweimer@redhat.com>
3450
3451 [BZ #24122]
3452 * elf/rtld.c (unload_audit_module): New function.
3453 (report_audit_module_load_error): Likewise.
3454 (load_audit_module): Likewise. Extracted from dl_main. Call
3455 _dl_close if the laversion symbol cannot be found. Use early
3456 returns for error handling. Add malloc error check. Check for a
3457 zero return value from la_version. Remove spurious comment about
3458 static TLS initialization. Remove useless casts.
3459 (notify_audit_modules_of_loaded_object): New function. Extracted
3460 from dl_main.
3461 (load_audit_module): Likewise.
3462 (dl_main): Call load_audit_modules.
3463
3464 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3465
3466 * elf/dl-exception.c (_dl_exception_create_format): Add
3467 fall-through comments.
3468 * elf/ldconfig.c (parse_conf_include): Likewise.
3469 * elf/rtld.c (print_statistics): Likewise.
3470 * locale/programs/charmap.c (parse_charmap): Likewise.
3471 * misc/mntent_r.c (__getmntent_r): Likewise.
3472 * posix/wordexp.c (parse_arith): Likewise.
3473 (parse_backtick): Likewise.
3474 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3475 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3476 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3477
3478 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3479
3480 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3481 Use float instead of double.
3482
3483 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3484
3485 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3486
3487 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3488
3489 * sysdeps/powerpc/bits/mathinline.h: Remove.
3490
3491 2019-02-08 Florian Weimer <fweimer@redhat.com>
3492
3493 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3494 * math/bits/math-finite.h: Move to ...
3495 * bits/math-finite.h: ... here.
3496
3497 2019-02-08 Florian Weimer <fweimer@redhat.com>
3498
3499 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3500 * bits/unistd_ext.h: here.
3501
3502 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3503
3504 [BZ #21915]
3505 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3506 * nss/tst-nss-files-hosts-long.c: New file.
3507 * nss/tst-nss-files-hosts-long.root: New directory.
3508 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3509 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3510
3511 2019-02-08 Florian Weimer <fweimer@redhat.com>
3512
3513 * include/bits/unistd_ext.h: Remove file.
3514 * posix/bits/unistd_ext.h: Move to ...
3515 * sysdeps/generic/bits/unistd_ext.h: ... here.
3516
3517 2019-02-08 Florian Weimer <fweimer@redhat.com>
3518
3519 * include/bits/unistd_ext.h: New file.
3520
3521 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3522
3523 * time/tst-strftime2.c: Use array_length macros instead of magic
3524 numbers.
3525
3526 2019-02-08 Florian Weimer <fweimer@redhat.com>
3527
3528 [BZ #24161]
3529 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3530 argument.
3531 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3532 locking if the new do_locking argument is true.
3533 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3534 __run_fork_handlers.
3535
3536 2019-02-08 Florian Weimer <fweimer@redhat.com>
3537
3538 [BZ #6399]
3539 Linux: Add gettid system call wrapper.
3540 * posix/Makefile (headers): Add bits/unistd_ext.h.
3541 * posix/bits/unistd_ext.h: New file.
3542 * posix/unistd.h: Include it.
3543 * manual/process.texi (Process Identification): Document gettid.
3544 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3545 tst-gettid, tst-gettid-kill.
3546 (tst-gettid): Link with $(shared-thread-library).
3547 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3548 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3549 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3550 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3551 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3552 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3553 Add gettid.
3554 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3555 Likewise.
3556 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3557 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3558 Likewise.
3559 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3560 Likewise.
3561 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3562 Likewise.
3563 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3564 Likewise.
3565 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3566 Likewise.
3567 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3568 Likewise.
3569 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3570 Likewise.
3571 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3572 (GLIBC_2.30): Likewise.
3573 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3574 (GLIBC_2.30): Likewise.
3575 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3576 (GLIBC_2.30): Likewise.
3577 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3578 (GLIBC_2.30): Likewise.
3579 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3580 Likewise.
3581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3582 (GLIBC_2.30): Likewise.
3583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3584 (GLIBC_2.30): Likewise.
3585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3586 (GLIBC_2.30): Likewise.
3587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3588 (GLIBC_2.30): Likewise.
3589 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3590 Likewise.
3591 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3592 Likewise.
3593 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3594 Likewise.
3595 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3596 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3597 Likewise.
3598 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3599 Likewise.
3600 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3601 Likewise.
3602 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3603 Likewise.
3604 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3605
3606 2019-02-08 Florian Weimer <fweimer@redhat.com>
3607
3608 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3609 compatibility symbols.
3610
3611 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3612
3613 [BZ #24180]
3614 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3615 Add compiler barriers and comments.
3616
3617 2019-02-07 Florian Weimer <fweimer@redhat.com>
3618
3619 * include/array_length.h (array_length): Do not use a statement
3620 expression and _Static_assert, so that array_length can be used at
3621 file scope and as a constant expression.
3622
3623 2019-02-07 Florian Weimer <fweimer@redhat.com>
3624
3625 * support/xdlfcn.h (xdlmopen): Declare.
3626 * support/xdlmopen.c: New file.
3627 * support/Makefile (libsupport-routines): Add xdlmopen.
3628
3629 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3630
3631 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3632 before return type, without separate inline.
3633 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3634 * elf/dl-tunables.h (tunable_is_name): Likewise.
3635 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3636 (do_set_top_pad): Likewise.
3637 (do_set_mmap_threshold): Likewise.
3638 (do_set_mmaps_max): Likewise.
3639 (do_set_mallopt_check): Likewise.
3640 (do_set_perturb_byte): Likewise.
3641 (do_set_arena_test): Likewise.
3642 (do_set_arena_max): Likewise.
3643 (do_set_tcache_max): Likewise.
3644 (do_set_tcache_count): Likewise.
3645 (do_set_tcache_unsorted_limit): Likewise.
3646 * nis/nis_subr.c (count_dots): Likewise.
3647 * nptl/allocatestack.c (advise_stack_range): Likewise.
3648 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3649 (do_sin): Likewise.
3650 (reduce_sincos): Likewise.
3651 (do_sincos): Likewise.
3652 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3653 (do_set_elision_enable): Likewise.
3654 (TUNABLE_CALLBACK_FNDECL): Likewise.
3655
3656 2019-02-06 Florian Weimer <fweimer@redhat.com>
3657
3658 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3659 (xdlsym): Use dlerror to detect a NULL symbol.
3660
3661 2019-02-06 Florian Weimer <fweimer@redhat.com>
3662
3663 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3664 <stap-probe.h>.
3665 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3666
3667 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3668
3669 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3670
3671 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3672
3673 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3674 __wmemcmp and weak alias to wmemcmp.
3675
3676 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3677
3678 [BZ #23403]
3679 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3680 TLS_TCB_AT_TP tls variant.
3681 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3682 Add alignment checks.
3683 * support/Makefile (libsupport-routines): Add xposix_memalign and
3684 xpthread_setstack.
3685 * support/support.h: Add xposix_memalign.
3686 * support/xthread.h: Add xpthread_attr_setstack.
3687 * support/xposix_memalign.c: New File.
3688 * support/xpthread_attr_setstack.c: Likewise.
3689
3690 2019-02-05 Florian Weimer <fweimer@redhat.com>
3691
3692 [BZ #24164]
3693 arm: Use "nr" constraint for Systemtap probes, to avoid the
3694 compiler using memory operands for constants, due to the "o"
3695 alternative in the default "nor" constraint.
3696 * include/stap-probe.h [USE_STAP_PROBE]: Include
3697 <stap-probe-machine.h>
3698 * sysdeps/generic/stap-probe-machine.h: New file.
3699 * sysdeps/arm/stap-probe-machine.h: Likewise.
3700
3701 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3702
3703 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3704 with 0, not tcache->entries[tc_idx].
3705
3706 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3707 once.
3708
3709 2019-02-04 Andreas Schwab <schwab@suse.de>
3710
3711 [BZ #16976]
3712 [BZ #17396]
3713 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3714 looking up collating elements match against (wide) character
3715 sequence instead of name. Correct alignment adjustment.
3716 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3717 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3718 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3719 (LOCALES): Add cs_CZ.ISO-8859-2.
3720 * posix/tst-fnmatch4.c: New file.
3721 * posix/tst-fnmatch5.c: New file.
3722 * include/wchar.h (__wmemcmp): Declare.
3723 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3724 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3725 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3726 * sysdeps/s390/wmemcmp.c: Likewise.
3727
3728 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3729
3730 [BZ #24155]
3731 CVE-2019-7309
3732 * NEWS: Updated for CVE-2019-7309.
3733 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3734 upper 32 bits of RDX register for x32. Use unsigned Jcc
3735 instructions, instead of signed.
3736 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3737 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3738
3739 2019-02-04 Florian Weimer <fweimer@redhat.com>
3740
3741 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3742 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3743 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3744 Likewise.
3745 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3746 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3747 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3748 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3749 Likewise.
3750 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3751 Likewise.
3752 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3753 Likewise.
3754 (posix_spawn_file_actions_addopen): Likewise.
3755 (posix_spawn_file_actions_addclose): Likewise.
3756 (posix_spawn_file_actions_adddup2): Likewise.
3757 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3758 qualifiers.
3759 (posix_spawn_file_actions_addfchdir_np): Likewise.
3760
3761 2019-02-04 David Newall <glibc@davidnewall.com>
3762
3763 elf: Implement --preload option for the dynamic linker.
3764 * elf/rtld.c (preloadarg): New variable.
3765 (handle_preload_list): Pass through “where” argument to
3766 do_preload.
3767 (dl_main): Handle "--preload" and add second call to
3768 handle_preload_list.
3769 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3770 (tst-rtld-preload-OBJS): Set variable.
3771 (tst-rtld-preload.out): New target.
3772 * elf/tst-rtld-preload.sh: New file.
3773
3774 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3775
3776 * Makefile (testrun.sh): Exit in case of incorrect argument.
3777
3778 2019-02-04 Florian Weimer <fweimer@redhat.com>
3779
3780 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3781 alignment gaps.
3782
3783 2019-02-03 Florian Weimer <fweimer@redhat.com>
3784
3785 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3786 implicit overflow checks.
3787
3788 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3789
3790 * stdlib/isomac.c: Include <unistd.h>.
3791
3792 2019-02-03 Florian Weimer <fweimer@redhat.com>
3793
3794 * include/time.h (__tzfile_default): Use int, not long int, for
3795 the GMT offsets.
3796 * time/tzfile.c (struct ttinfo): Change type of the offset member
3797 to int.
3798 (__tzfile_read): Remove useless cast.
3799 (__tzfile_default): Adjust prototype.
3800 * time/tzset.c (tz_rule): Change type of the offset member to int.
3801 (parse_offset): Change the type of the sign variable to int.
3802
3803 2019-02-03 Florian Weimer <fweimer@redhat.com>
3804
3805 [BZ #24153]
3806 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3807 * libio/getchar.c (getchar): Likewise.
3808 * libio/getchar_u.c (getchar_unlocked): Likewise.
3809 * libio/getwchar.c (getwchar): Likewise.
3810 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3811 * libio/iogets.c (_IO_gets): Likewise.
3812 * libio/vscanf.c (_IO_vscanf): Likewise.
3813 * libio/vwscanf.c (__vwscanf): Likewise.
3814 * libio/tst-bz24153.c: New file.
3815 * libio/Makefile (tests): Add it.
3816
3817 2019-02-02 Florian Weimer <fweimer@redhat.com>
3818
3819 [BZ #14829]
3820 * manual/resource.texi (Basic Scheduling Functions): Add
3821 portability note. Change process to task throughout the section.
3822 Remove incorrect comment about sched_yield as it affects
3823 tasks/threads, not entire processes.
3824 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3825 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3826
3827 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3828
3829 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3830 * configure: Regenerated.
3831 * manual/install.texi (Tools for Compilation): Update minimum GCC
3832 version.
3833 * INSTALL: Regenerated.
3834
3835 2019-02-01 Florian Weimer <fweimer@redhat.com>
3836
3837 * support/support_test_compare_string.c
3838 (support_test_compare_string): Use "string" in error message.
3839 * support/tst-test_compare_string.c (do_test): Adjust.
3840
3841 2019-02-01 Florian Weimer <fweimer@redhat.com>
3842
3843 * support/support_format_address_family.c
3844 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3845
3846 2019-02-01 Florian Weimer <fweimer@redhat.com>
3847
3848 * manual/socket.texi (Internet Address Formats): Clarify the byte
3849 order of struct sockaddr_in, struct sockaddr_in6. Document
3850 sin6_flowinfo and sin6_scope_id.
3851
3852 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3853
3854 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3855 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3856 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3857 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3858 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3859 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3860
3861 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3862
3863 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3864 [!MEMCHR](MEMCHR): Set to __memchr.
3865 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3866 Add memchr_generic and memchr_nosimd.
3867 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3868 (__libc_ifunc_impl_list): Add memchr ifuncs.
3869 * sysdeps/aarch64/multiarch/memchr.c: New file.
3870 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3871 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3872
3873 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3874
3875 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3876 Add memset_emag.
3877 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3878 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3879 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3880 Add IS_EMAG check for ifunc dispatch.
3881 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3882 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3883
3884 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3885
3886 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3887 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3888 Add emag.
3889 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3890 New macro.
3891
3892 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3893
3894 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3895
3896 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3897
3898 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3899 syscall-template file.
3900
3901 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3902 Torvald Riegel <triegel@redhat.com>
3903 Rik Prohaska <prohaska7@gmail.com>
3904
3905 [BZ# 23844]
3906 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3907 tst-rwlock-trywrlock-stall.
3908 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3909 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3910 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3911 Set __wrphase_fute to 1 only if we started the write phase.
3912 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3913 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3914 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3915 * support/xpthread_rwlock_destroy.c: New file.
3916 * support/xthread.h: Declare xpthread_rwlock_destroy.
3917
3918 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3919
3920 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3921 version to 4.0.2.
3922
3923 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3924
3925 [BZ #24051]
3926 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3927 * libio/fileops.c (_IO_new_file_underflow): Likewise
3928 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3929 * libio/putchar.c (putchar): Likewise.
3930 * libio/putchar_u.c (putchar_unlocked): Likewise.
3931 * libio/putwchar.c (putchar): Likewise.
3932 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3933 * libio/tst-bz24051.c: New test.
3934 * libio/Makefile (tests): Add tst-bz24051
3935
3936 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3937
3938 CVE-2019-9169
3939 regex: fix read overrun [BZ #24114]
3940 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3941 https://debbugs.gnu.org/34140
3942 * posix/regexec.c (proceed_next_node):
3943 Do not read past end of input buffer.
3944
3945 2019-01-31 Florian Weimer <fweimer@redhat.com>
3946
3947 [BZ #24059]
3948 * nss/nss_files/files-alias.c (get_next_alias): Handle
3949 continuation line without newline at the end.
3950 * nss/tst-nss-files-alias-truncated.c: New file.
3951 * nss/Makefile [$(build-shared)] (tests): Add
3952 tst-nss-files-alias-truncated.
3953 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3954 * support/namespace.h (struct support_chroot_configuration): Add
3955 aliases member.
3956 (struct support_chroot): Add path_aliases member.
3957 * support/support_chroot.c (support_chroot_create): Handle
3958 aliases.
3959 (support_chroot_free): Free path_aliases.
3960
3961 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3962
3963 * version.h (RELEASE): Set to "development".
3964 (VERSION): Set to "2.29.9000".
3965 * NEWS: Add section for 2.30.
3966
3967 * version.h (RELEASE): Set to "stable".
3968 (VERSION): Set to "2.29".
3969 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3970
3971 * NEWS: Add the list of bugs fixed in 2.29.
3972 * manual/contrib.texi: Update contributors list with some more
3973 names.
3974 * manual/install.texi: Update latest versions of packages
3975 tested.
3976 * INSTALL: Regenerated.
3977
3978 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3979
3980 * po/be.po: Update translations.
3981 * po/bg.po: Likewise.
3982 * po/ca.po: Likewise.
3983 * po/cs.po: Likewise.
3984 * po/da.po: Likewise.
3985 * po/de.po: Likewise.
3986 * po/el.po: Likewise.
3987 * po/eo.po: Likewise.
3988 * po/es.po: Likewise.
3989 * po/fi.po: Likewise.
3990 * po/fr.po: Likewise.
3991 * po/gl.po: Likewise.
3992 * po/hr.po: Likewise.
3993 * po/hu.po: Likewise.
3994 * po/ia.po: Likewise.
3995 * po/id.po: Likewise.
3996 * po/it.po: Likewise.
3997 * po/ja.po: Likewise.
3998 * po/ko.po: Likewise.
3999 * po/lt.po: Likewise.
4000 * po/nb.po: Likewise.
4001 * po/nl.po: Likewise.
4002 * po/pl.po: Likewise.
4003 * po/pt_BR.po: Likewise.
4004 * po/ru.po: Likewise.
4005 * po/rw.po: Likewise.
4006 * po/sk.po: Likewise.
4007 * po/sl.po: Likewise.
4008 * po/sv.po: Likewise.
4009 * po/tr.po: Likewise.
4010 * po/uk.po: Likewise.
4011 * po/vi.po: Likewise.
4012 * po/zh_CN.po: Likewise.
4013 * po/zh_TW.po: Likewise.
4014
4015 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4016
4017 [BZ #24130]
4018 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4019 of $f3 register on $y_is_neg path.
4020
4021 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4022
4023 [BZ #24110]
4024 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4025 sigaltstack.ss_flags.
4026
4027 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
4028
4029 [BZ #23758]
4030 * manual/time.texi (strftime): Document "%Ey".
4031 * time/strftime_l.c (__strftime_internal): Set the default width
4032 padding with zero of "%Ey" to 2.
4033
4034 [BZ #24096]
4035 * manual/time.texi (strftime): Document "%EC" and "%EY".
4036 * time/Makefile (tests): Add tst-strftime2.
4037 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4038 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4039 override padding for "%Ey".
4040 If an optional flag ('_' or '-') is specified to "%EY", interpret the
4041 "%Ey" in the subformat as if decorated with that flag.
4042 * time/tst-strftime2.c: New file.
4043
4044 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4045
4046 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4047 are not defined.
4048
4049 [BZ #24122]
4050 * elf/Makefile (tests): Add tst-audit13.
4051 (modules-names): Add tst-audit13mod1.
4052 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4053 rule.
4054 * elf/rtld.c (dl_main): Handle invalid audit module version.
4055 * elf/tst-audit13.c: New file.
4056 * elf/tst-audit13mod1.c: Likewise.
4057
4058 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4059
4060 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4061 returned by __hurd_at_flags.
4062 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4063 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4064 directly instead of __hurd_file_name_lookup.
4065
4066 2019-01-21 Joseph Myers <joseph@codesourcery.com>
4067
4068 * scripts/build-many-glibcs.py (Context.checkout): Default
4069 binutils version to 2.32 branch.
4070
4071 2019-01-21 Florian Weimer <fweimer@redhat.com>
4072
4073 [BZ #20018]
4074 CVE-2016-10739
4075 resolv: Reject trailing characters in host names
4076 * include/arpa/inet.h (__inet_aton_exact): Declare.
4077 (inet_aton): Remove hidden prototype. No longer used internally.
4078 * nscd/gai.c (__inet_aton): Do not define.
4079 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4080 * nss/digits_dots.c (__inet_aton): Likewise.
4081 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4082 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4083 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4084 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4085 (tst-resolv-trailing): Likewise.
4086 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4087 libc.
4088 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4089 Make static. Add endp parameter.
4090 (__inet_aton_exact): New function.
4091 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4092 (__inet_addr): Call inet_aton_end.
4093 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4094 not just IPv6. Call __inet_aton_exact.
4095 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4096 (tests): Make const. Add additional test cases with trailing
4097 characters.
4098 (do_test): Use array_length.
4099 * resolv/tst-inet_aton_exact.c: New file.
4100 * resolv/tst-resolv-trailing.c: Likewise.
4101 * resolv/tst-resolv-nondecimal.c: Likewise.
4102 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4103
4104 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4105
4106 [BZ# 24097]
4107 CVE-2019-6488
4108 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4109 Clear the upper 32 bits of RSI register.
4110 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4111 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4112 and tst-size_t-wcsnlen.
4113 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4114 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
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/strcpy-avx2.S: Use RDX_LP for length.
4121 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4122 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4123 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4124 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4125
4126 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4127
4128 [BZ# 24097]
4129 CVE-2019-6488
4130 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4131 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4132 * sysdeps/x86_64/strcmp.S: Likewise.
4133 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4134 tst-size_t-strncmp and tst-size_t-wcsncmp.
4135 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4136 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4137 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4138
4139 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4140
4141 [BZ# 24097]
4142 CVE-2019-6488
4143 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4144 RDX_LP for length. Clear the upper 32 bits of RDX register.
4145 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4146 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4147 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4148 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4149
4150 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4151
4152 [BZ# 24097]
4153 CVE-2019-6488
4154 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4155 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4156 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4157 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4158
4159 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4160
4161 [BZ# 24097]
4162 CVE-2019-6488
4163 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4164 length. Clear the upper 32 bits of RDX register.
4165 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4166 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4167 Likewise.
4168 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4169 Likewise.
4170 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4171 tst-size_t-wmemchr.
4172 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4173
4174 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4175
4176 [BZ# 24097]
4177 CVE-2019-6488
4178 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4179 length. Clear the upper 32 bits of RDX register.
4180 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4181 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4182 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4183 tst-size_t-wmemcmp.
4184 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4185 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4186
4187 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4188
4189 [BZ# 24097]
4190 CVE-2019-6488
4191 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
4192 upper 32 bits of RDX register.
4193 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4194 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4195 tst-size_t-wmemchr.
4196 * sysdeps/x86_64/x32/test-size_t.h: New file.
4197 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4198 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4199
4200 2019-01-18 Florian Weimer <fweimer@redhat.com>
4201
4202 [BZ #24112]
4203 resolv: Do not send queries for non-host-names in nss_dns.
4204 * resolv/nss_dns/dns-host.c (check_name): New function.
4205 (_nss_dns_gethostbyname2_r): Use it.
4206 (_nss_dns_gethostbyname_r): Likewise.
4207 (_nss_dns_gethostbyname4_r): Likewise.
4208
4209 2019-01-21 Florian Weimer <fweimer@redhat.com>
4210
4211 * resolv/inet_addr.c: Reformat to GNU style.
4212 (__inet_addr, __inet_aton): Update comment.
4213
4214 2019-01-18 Florian Weimer <fweimer@redhat.com>
4215
4216 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4217 ("malloc: Use current (C11-style) atomics for fastbin access").
4218 This commit introduces a substantial performance regression on
4219 POWER and Aarch64.
4220 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4221 (REMOVE_FB): Define.
4222 (_int_malloc): Use it and reindent.
4223 (_int_free): Use CAS loop with
4224 catomic_compare_and_exchange_val_rel.
4225 (malloc_consolidate): Use atomic_exchange_acq.
4226
4227
4228 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4229
4230 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
4231 -Wl,-z,now.
4232 (LDFLAGS-tst-minsigstksz-2): Likewise.
4233 (LDFLAGS-tst-minsigstksz-3): Likewise.
4234 (LDFLAGS-tst-minsigstksz-3a): Likewise.
4235 (LDFLAGS-tst-minsigstksz-4): Likewise.
4236
4237 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
4238
4239 * manual/time.texi (strftime): Fix the wording to "alternative" rather
4240 than "alternate".
4241
4242 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
4243
4244 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4245
4246 2019-01-16 Zack Weinberg <zackw@panix.com>
4247
4248 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4249 (xget_sigstack_location): New test support functions.
4250 * support/xsigstack.c: New file, implementing them.
4251 * support/tst-xsigstack.c: New test for them.
4252 * support/Makefile: Update.
4253
4254 * signal/tst-minsigstksz-1.c
4255 * signal/tst-minsigstksz-2.c
4256 * signal/tst-minsigstksz-3.c
4257 * signal/tst-minsigstksz-3a.c
4258 * signal/tst-minsigstksz-4.c: New tests.
4259 * signal/Makefile: Run them.
4260
4261 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4262
4263 * po/libc.pot: Regenerate.
4264
4265 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4266
4267 * math/libm-test-fma.inc (fma_test_data): Set
4268 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4269
4270 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4271
4272 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4273 (do_test): Changed __vector __int128_t to __vector unsigned int.
4274
4275 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4276
4277 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4278 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4279 stpcpy-avx2 and stpncpy-avx2.
4280 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4281 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4282 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4283 and __stpncpy_avx2.
4284 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4285 ifunc-strcpy.h}: rename header for a more generic name.
4286 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4287 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4288 AVX unaligned load is fast and vzeroupper is preferred.
4289 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4290 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4291 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4292 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4293 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4294 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4295
4296 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4297
4298 * argp/argp-help.c: Fix typo in comment.
4299 * misc/sys/cdefs.h: Likewise.
4300 * posix/regexec.c (sift_states_iter_mb): Likewise.
4301 * socket/sockatmark.c: Likewise.
4302 * socket/sys/socket.h: Likewise.
4303 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4304 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4305 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4306 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4307 * sysdeps/unix/sockatmark.c: Likewise.
4308 * time/strptime_l.c: Likewise.
4309
4310 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4311
4312 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4313 missing space after the cast of "_NL_CURRENT".
4314
4315 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4316
4317 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4318 ifdef to fix read of VSCR.
4319 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4320 tst-ucontext-ppc64-vscr.c to test list.
4321 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4322
4323 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4324
4325 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4326 fall-through.
4327
4328 2019-01-09 Jim Wilson <jimw@sifive.com>
4329
4330 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4331
4332 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4333
4334 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4335 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4336 __memcpy_falkor for ares.
4337 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4338 Add new define.
4339 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4340 Add ares cpu.
4341
4342 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4343
4344 [BZ #24066]
4345 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4346 4_FP_W_TYPEs are used for IEEE quad precision.
4347 * soft-fp/extendhftf2.c: Likewise.
4348 * soft-fp/extendsftf2.c: Likewise.
4349 * soft-fp/extendxftf2.c: Likewise.
4350 * soft-fp/trunctfdf2.c: Likewise.
4351 * soft-fp/trunctfhf2.c: Likewise.
4352 * soft-fp/trunctfsf2.c: Likewise.
4353 * soft-fp/trunctfxf2.c: Likewise.
4354 * sysdeps/alpha/ots_cvttx.c: Likewise.
4355 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4356 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4357 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4358 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4359 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4360 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4361 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4362 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4363 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4364 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4365 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4366 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4367 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4368 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4369 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4370 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4371 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4372
4373 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4374
4375 [BZ #24024]
4376 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4377 code with -fmath-errno.
4378 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4379 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4380 * string/test-strerror-errno.c: New file.
4381
4382 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4383
4384 [BZ #24046]
4385 * localedata/locales/en_US (date_fmt): Add, set to
4386 "%a %d %b %Y %r %Z".
4387
4388 2019-01-07 Florian Weimer <fweimer@redhat.com>
4389
4390 [BZ #24063]
4391 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4392 instead of @var{errno}.
4393 (Parsing of Integers): Likewise.
4394 (Parsing of Floats): Likewise.
4395 * manual/filesys.texi (Working with Directory Trees): Likewise.
4396 (Temporary Files): Likewise.
4397 * manual/job.texi (Terminal Access Functions): Likewise.
4398 * manual/llio.texi (Synchronizing I/O): Likewise.
4399 * manual/math.texi (SVID Random): Likewise.
4400 * manual/message.texi (The catgets Functions): Likewise.
4401 (Translation with gettext): Likewise.
4402 (Locating gettext catalog): Likewise.
4403 (Charset conversion in gettext): Likewise.
4404 * manual/nss.texi (NSS Module Function Internals): Likewise.
4405 * manual/search.texi (Hash Search Function): Likewise.
4406 * manual/setjmp.texi (System V contexts): Likewise.
4407 * manual/time.texi (Sleeping): Likewise.
4408 * manual/users.texi (Lookup User): Likewise.
4409 (Lookup Group): Likewise.
4410
4411 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4412
4413 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4414 fix typo.
4415
4416 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4417
4418 [BZ #19444]
4419 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4420 __builtin_unreachable for default case in switch.
4421 (__ieee754_yn): Likewise.
4422 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4423 (__ieee754_ynl): Likewise.
4424 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4425 (__ieee754_ynl): Likewise.
4426 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4427 (__ieee754_ynl): Likewise.
4428
4429 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4430
4431 * manual/maint.texi: Use @{ and @}.
4432
4433 2019-01-04 Florian Weimer <fweimer@redhat.com>
4434
4435 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4436 function.
4437 (do_in_chroot_1): Call it.
4438 (run_chroot_tests):
4439 Improve error reporting in case it is not possible to create a
4440 collision for the PTY name required by the test.
4441
4442 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4443
4444 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4445 lll_wait_tid with timeout.
4446 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4447 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4448 futex_reltimed_wait_cancelable for cancelabla mode.
4449 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4450 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4451 macros.
4452 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4453 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4454 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4455 SYSCALL_CANCEL_NCS): New macro.
4456 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4457 (lll_timedwait_tid): Remove macro.
4458 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4459 Likewise.
4460 (lll_timedwait_tid): Likewise.
4461 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4462 Likewise.
4463 (lll_timedwait_tid): Likewise.
4464 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4465 Likewise.
4466 (lll_timedwait_tid): Likewise.
4467 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4468 Use INTERNAL_SYSCALL_CANCEL.
4469 * sysdeps/unix/sysv/linux/futex-internal.h
4470 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4471 instead of __pthread_{enable,disable}_asynccancel.
4472 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4473 (lll_futex_wait_cancel): New macro.
4474
4475 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4476 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4477
4478 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4479 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4480
4481 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4482 in backtrace analysis.
4483 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4484 side-effects.
4485 (tf_send): Likewise.
4486
4487 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4488 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4489 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4490 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4491 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4492 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4493 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4494 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4495 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4496 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4497 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4498 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4499 Likewise.
4500 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4501 tst-cancel-wrappers.sh.
4502 (generated): Remove tst-cancel-wrappers.out.
4503 (tst-cancel-wrappers.out): Remove rule.
4504 * nptl/tst-cancel-wrappers.sh: Remove file.
4505
4506 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4507
4508 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4509 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4510 Update.
4511
4512 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4513
4514 [BZ #23640]
4515 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4516 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4517 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4518 close-on-exec reset for adddup2 file action.
4519 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4520
4521 2019-01-03 Zack Weinberg <zackw@panix.com>
4522
4523 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4524 parameter. Only use deprecated scanf when __USE_GNU is defined
4525 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4526 than 201103L, whichever is relevant for the language being compiled.
4527
4528 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4529 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4530 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4531 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4532 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4533
4534 * libio/iovsscanf.c
4535 * libio/fwscanf.c
4536 * libio/iovswscanf.c
4537 * libio/swscanf.c
4538 * libio/vscanf.c
4539 * libio/vwscanf.c
4540 * libio/wscanf.c
4541 * stdio-common/fscanf.c
4542 * stdio-common/scanf.c
4543 * stdio-common/vfscanf.c
4544 * stdio-common/vfwscanf.c
4545 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4546 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4547 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4548 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4549 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4550 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4551 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4552 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4553 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4554 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4555 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4556 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4557 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4558 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4559 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4560
4561 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4562 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4563 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4564 not sscanf.
4565 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4566 with a preprocessor macro.
4567
4568 * stdio-common/bug21.c, stdio-common/scanf14.c:
4569 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4570 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4571 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4572 to xscanf, xfscanf, xsscanf.
4573
4574 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4575 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4576 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4577 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4578 xfscanf, xsscanf.
4579 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4580 override feature selection macros or provide definitions of u_char etc.
4581 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4582 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4583 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4584 with -std=gnu89.
4585
4586 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4587
4588 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4589 bits/termios-misc.h.
4590 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4591 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4592 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4593 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4594 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4595 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4596
4597 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4598 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4599 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4600 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4601 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4602 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4603 termios-misc.h.
4604 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4605 (sysdep_headers): Add termios-misc.h.
4606
4607 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4608 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4609 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4610
4611 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4612 termios-tcflow.h.
4613 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4614 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4615 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4616 TCSAFLUSH): Move to termios-tcflow.h.
4617 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4618 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4619 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4620 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4621
4622 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4623 termios-c_lflag.h.
4624 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4625 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4626 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4627 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4628 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4629 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4630 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4631 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4632 Likewise.
4633 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4634 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4635 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4636 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4637
4638 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4639 termios-c_cflag.h.
4640 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4641 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4642 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4643 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4644 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4645 termios-c_cflag.h.
4646 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4647 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4648 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4649 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4650
4651 [BZ #23783]
4652 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4653 termios-baud.h.
4654 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4655 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4656 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4657 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4658 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4659 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4660 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4661 __MAX_BAUD): Move to termios-baud.h.
4662 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4663 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4664 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4665 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4666 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4667
4668 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4669 termios-c_oflag.h.
4670 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4671 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4672 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4673 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4674 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4675 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4676 termios-c_oflag.h.
4677 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4678 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4679 FFR1): Likewise.
4680 [USE_MISC] (XTABS): Likewise.
4681 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4682 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4683 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4684 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4685
4686 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4687 termios-c_iflag.h.
4688 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4689 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4690 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4691 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4692 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4693 IUTF8): Move to termios-c_iflag.h.
4694 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4695 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4696 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4697 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4698
4699 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4700 termios-cc.h.
4701 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4702 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4703 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4704 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4705 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4706 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4707 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4708 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4709 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4710 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4711 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4712 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4713
4714 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4715 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4716 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4717 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4718 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4719 termios-struct.h.
4720 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4721 termios-struct.h.
4722 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4723 Likewise.
4724 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4725 Likewise.
4726 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4727 Likewise.
4728 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4729 Likewise.
4730 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4731 _HAVE_C_OSPEED): Define.
4732 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4733 _HAVE_C_OSPEED): Likewise.
4734 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4735 _HAVE_C_OSPEED): Likewise.
4736 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4737 (cfsetospeed): Check for define value instead of existence.
4738 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4739 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4740 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4741 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4742 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4743
4744 [BZ #17783]
4745 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4746 Define.
4747 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4748 (TIOCSER_TEMT): Likewise.
4749 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4750 (TEOCSER_TEMT): Likewise.
4751
4752 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4753
4754 [BZ #24011]
4755 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4756
4757 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4758
4759 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4760
4761 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4762
4763 * sysdeps/htl/pt-barrierattr-setpshared.c
4764 (pthread_barrierattr_setpshared): Add stub warning.
4765 * sysdeps/htl/pt-condattr-setpshared.c
4766 (pthread_condattr_setpshared): Likewise.
4767 * sysdeps/htl/pt-mutexattr-setpshared.c
4768 (pthread_mutexattr_setpshared): Likewise.
4769 * sysdeps/htl/pt-rwlockattr-setpshared.c
4770 (pthread_rwlockattr_setpshared): Likewise.
4771 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4772 (pthread_mutexattr_setpshared): Likewise.
4773
4774 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4775
4776 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4777 constants to match with Linux 4.20.
4778
4779 * sysdeps/mips/mips32/libm-test-ulps: Update.
4780 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4781
4782 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4783
4784 [BZ #24034]
4785 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4786 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4787 than __typeof (...) for the a_ptr variable.
4788
4789 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4790
4791 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4792 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4793 * libio/Makefile (tests): Add tst-sprintf-ub and
4794 tst-sprintf-chk-ub.
4795 (CFLAGS-tst-sprintf-ub.c): New variable.
4796 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4797 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4798 destination buffer and check for overflows in fortified mode.
4799 * libio/libioP.h (PRINTF_CHK): New macro.
4800 * libio/tst-sprintf-chk-ub.c: New file.
4801 * libio/tst-sprintf-ub.c: Likewise.
4802
4803 2019-01-02 Florian Weimer <fweimer@redhat.com>
4804
4805 [BZ #24018]
4806 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4807 failure.
4808
4809 2019-01-02 Florian Weimer <fweimer@redhat.com>
4810
4811 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4812
4813 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4814
4815 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4816 macro.
4817
4818 * sysdeps/unix/sysv/linux/netpacket/packet.h
4819 (PACKET_IGNORE_OUTGOING): New macro.
4820
4821 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4822 macro.
4823
4824 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4825 version to 4.20.
4826 (riscv_flush_icache): New syscall.
4827
4828 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4829 trailing whitespace removed.
4830 * scripts/config.guess: Update to version 2019-01-01.
4831 * scripts/config.sub: Update to version 2019-01-01.
4832 * scripts/move-if-change: Update from gnulib.
4833
4834 * NEWS: Update copyright dates.
4835 * catgets/gencat.c (print_version): Likewise.
4836 * csu/version.c (banner): Likewise.
4837 * debug/catchsegv.sh: Likewise.
4838 * debug/pcprofiledump.c (print_version): Likewise.
4839 * debug/xtrace.sh (do_version): Likewise.
4840 * elf/ldconfig.c (print_version): Likewise.
4841 * elf/ldd.bash.in: Likewise.
4842 * elf/pldd.c (print_version): Likewise.
4843 * elf/sotruss.sh: Likewise.
4844 * elf/sprof.c (print_version): Likewise.
4845 * iconv/iconv_prog.c (print_version): Likewise.
4846 * iconv/iconvconfig.c (print_version): Likewise.
4847 * locale/programs/locale.c (print_version): Likewise.
4848 * locale/programs/localedef.c (print_version): Likewise.
4849 * login/programs/pt_chown.c (print_version): Likewise.
4850 * malloc/memusage.sh (do_version): Likewise.
4851 * malloc/memusagestat.c (print_version): Likewise.
4852 * malloc/mtrace.pl: Likewise.
4853 * manual/libc.texinfo: Likewise.
4854 * nptl/version.c (banner): Likewise.
4855 * nscd/nscd.c (print_version): Likewise.
4856 * nss/getent.c (print_version): Likewise.
4857 * nss/makedb.c (print_version): Likewise.
4858 * posix/getconf.c (main): Likewise.
4859 * scripts/test-installation.pl: Likewise.
4860 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4861
4862 * All files with FSF copyright notices: Update copyright dates
4863 using scripts/update-copyrights.
4864 * locale/programs/charmap-kw.h: Regenerated.
4865 * locale/programs/locfile-kw.h: Likewise.
4866
4867 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4868
4869 * timezone/zdump.c: Update from tzcode 2018i.
4870 * timezone/zic.c: Likewise.
4871
4872 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4873
4874 regex: improve Gnulib port to AIX
4875 From the glibc point of view, this removes duplicate macro
4876 definitions and is obviously safe.
4877 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4878 * posix/regex_internal.h:
4879 (__attribute__, __attribute_warn_unused_result__):
4880 Remove; already defined elsewhere.
4881
4882 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4883
4884 [BZ #24027]
4885 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4886 copying operation. (ncopies had the wrong type, resulting in an
4887 integer wraparound and too few elements being copied.)
4888
4889 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4890
4891 [BZ #24022]
4892 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4893 <asm/syscalls.h> exists with __has_include__ before including it.
4894
4895 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4896
4897 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4898 version to 4.20.
4899
4900 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4901
4902 * hurd/lookup-retry: Include <unistd.h>.
4903 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4904 Release it on return. Handle "pid" magical lookup retry.
4905
4906 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4907
4908 [BZ #10496]
4909 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4910 (t_fmt_ampm): Likewise.
4911 * localedata/locales/aa_ER (t_fmt): Likewise.
4912 (t_fmt_ampm): Likewise.
4913 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4914 (t_fmt_ampm): Likewise.
4915 * localedata/locales/aa_ET (t_fmt): Likewise.
4916 (t_fmt_ampm): Likewise.
4917 * localedata/locales/am_ET (t_fmt): Likewise.
4918 (t_fmt_ampm): Likewise.
4919 * localedata/locales/byn_ER (t_fmt): Likewise.
4920 (t_fmt_ampm): Likewise.
4921 * localedata/locales/om_ET (t_fmt): Likewise.
4922 (t_fmt_ampm): Likewise.
4923 * localedata/locales/sid_ET (t_fmt): Likewise.
4924 (t_fmt_ampm): Likewise.
4925 * localedata/locales/so_DJ (t_fmt): Likewise.
4926 (t_fmt_ampm): Likewise.
4927 * localedata/locales/so_ET (t_fmt): Likewise.
4928 (t_fmt_ampm): Likewise.
4929 * localedata/locales/so_SO (t_fmt): Likewise.
4930 (t_fmt_ampm): Likewise.
4931 * localedata/locales/ti_ER (t_fmt): Likewise.
4932 (t_fmt_ampm): Likewise.
4933 * localedata/locales/ti_ET (t_fmt): Likewise.
4934 (t_fmt_ampm): Likewise.
4935 * localedata/locales/tig_ER (t_fmt): Likewise.
4936 (t_fmt_ampm): Likewise.
4937 * localedata/locales/wal_ET (t_fmt): Likewise.
4938 (t_fmt_ampm): Likewise.
4939
4940 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4941 * localedata/locales/ar_IN (t_fmt): Likewise.
4942 * localedata/locales/bhb_IN (t_fmt): Likewise.
4943 * localedata/locales/bho_IN (t_fmt): Likewise.
4944 * localedata/locales/bi_VU (t_fmt): Likewise.
4945 * localedata/locales/bn_BD (t_fmt): Likewise.
4946 * localedata/locales/bn_IN (t_fmt): Likewise.
4947 * localedata/locales/brx_IN (t_fmt): Likewise.
4948 * localedata/locales/doi_IN (t_fmt): Likewise.
4949 * localedata/locales/en_HK (t_fmt): Likewise.
4950 (t_fmt_ampm): Likewise.
4951 * localedata/locales/en_IN (t_fmt): Likewise.
4952 * localedata/locales/en_PH (t_fmt): Likewise.
4953 * localedata/locales/gu_IN (t_fmt): Likewise.
4954 * localedata/locales/hi_IN (t_fmt): Likewise.
4955 * localedata/locales/hif_FJ (t_fmt): Likewise.
4956 * localedata/locales/hne_IN (t_fmt): Likewise.
4957 * localedata/locales/kn_IN (t_fmt): Likewise.
4958 * localedata/locales/kok_IN (t_fmt): Likewise.
4959 * localedata/locales/ks_IN (t_fmt): Likewise.
4960 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4961 * localedata/locales/mag_IN (t_fmt): Likewise.
4962 * localedata/locales/mai_IN (t_fmt): Likewise.
4963 * localedata/locales/mjw_IN (t_fmt): Likewise.
4964 * localedata/locales/ml_IN (t_fmt): Likewise.
4965 * localedata/locales/mni_IN (t_fmt): Likewise.
4966 * localedata/locales/mr_IN (t_fmt): Likewise.
4967 * localedata/locales/ms_MY (t_fmt): Likewise.
4968 * localedata/locales/pa_IN (t_fmt): Likewise.
4969 * localedata/locales/raj_IN (t_fmt): Likewise.
4970 * localedata/locales/sa_IN (t_fmt): Likewise.
4971 * localedata/locales/sat_IN (t_fmt): Likewise.
4972 * localedata/locales/sd_IN (t_fmt): Likewise.
4973 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4974 * localedata/locales/tcy_IN (t_fmt): Likewise.
4975 * localedata/locales/the_NP (t_fmt): Likewise.
4976 * localedata/locales/to_TO (t_fmt): Likewise.
4977 * localedata/locales/ur_IN (t_fmt): Likewise.
4978
4979 * localedata/locales/hif_FJ (d_t_fmt): Set to
4980 "%A %d %b %Y %I:%M:%S %p".
4981 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4982
4983 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4984 * localedata/locales/ar_BH (t_fmt): Likewise.
4985 * localedata/locales/ar_DZ (t_fmt): Likewise.
4986 * localedata/locales/ar_EG (t_fmt): Likewise.
4987 * localedata/locales/ar_IQ (t_fmt): Likewise.
4988 * localedata/locales/ar_JO (t_fmt): Likewise.
4989 * localedata/locales/ar_KW (t_fmt): Likewise.
4990 * localedata/locales/ar_LB (t_fmt): Likewise.
4991 * localedata/locales/ar_LY (t_fmt): Likewise.
4992 * localedata/locales/ar_OM (t_fmt): Likewise.
4993 * localedata/locales/ar_QA (t_fmt): Likewise.
4994 * localedata/locales/ar_SD (t_fmt): Likewise.
4995 * localedata/locales/ar_SS (t_fmt): Likewise.
4996 * localedata/locales/ar_SY (t_fmt): Likewise.
4997 * localedata/locales/ar_TN (t_fmt): Likewise.
4998 * localedata/locales/ar_YE (t_fmt): Likewise.
4999
5000 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
5001 (t_fmt_ampm): Likewise.
5002 * localedata/locales/gez_ET (t_fmt): Likewise.
5003 (t_fmt_ampm): Likewise.
5004
5005 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
5006 (t_fmt_ampm): Likewise.
5007 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
5008
5009 * localedata/locales/zh_HK (t_fmt):
5010 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5011
5012 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5013 because this locale does not use the 12-hour clock.
5014 (t_fmt): Set to "%Z %H:%M:%S".
5015 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5016
5017 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5018 because this locale does not use the 12-hour clock.
5019 (t_fmt): Set to "%H:%M:%S %Z".
5020 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5021
5022 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5023 because this locale does not use the 12-hour clock.
5024 (t_fmt): Set to "%T".
5025 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5026 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5027
5028 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5029 because this locale does not use the 12-hour clock.
5030 (t_fmt): Set to "%H:%M:%S %Z".
5031 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5032
5033 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5034 because this locale does not use the 12-hour clock.
5035 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5036 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5037
5038 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
5039
5040 [BZ #10496]
5041 [BZ #23724]
5042 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5043 (t_fmt_ampm): Likewise.
5044 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5045 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5046 (d_fmt): Set to "%-d.%-m.%y".
5047
5048 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5049
5050 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5051 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5052 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5053 Likewise.
5054 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5055 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5056 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5057 function.
5058 * support/blob_repeat.c (check_mul_overflow_size_t,
5059 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5060
5061 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
5062
5063 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5064
5065 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
5066
5067 regex: simplify Gnulib port
5068 This simplifies the code, by removing stuff intended for porting
5069 to Gnulib but no longer needed there.
5070 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5071 uses of libc_hidden_def, weak_alias.
5072 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5073 _Restrict_ except for public-facing headers.
5074 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5075 Remove; already defined elsewhere.
5076 * posix/regex.c, posix/regex_internal.h:
5077 Use __GNUC_PREREQ instead of rolling our own.
5078 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5079
5080 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
5081
5082 * benchtests/bench-strlen.c (generic_strlen): New function.
5083 (memchr_strlen): New function.
5084
5085 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5086
5087 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5088 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5089 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5090
5091 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5092
5093 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5094
5095 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5096
5097 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5098 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5099 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
5100 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5101 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5102 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5103 <sysdeps/ieee754/flt-32/s_sincosf.c>.
5104
5105 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5106
5107 [BZ #24023]
5108 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5109 PLT reference in libc.so.
5110 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5111 _Q_lltoq and _Q_qtod PLT references in libc.so.
5112
5113 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
5114
5115 * benchtests/bench-memchr.c: Cleanup defines.
5116 * benchtests/bench-memcmp.c: Likewise.
5117 * benchtests/bench-memset.c: Likewise.
5118 * benchtests/bench-memset-large.c: Likewise.
5119 * benchtests/bench-memset-walk.c: Likewise.
5120 * benchtests/bench-stpcpy.c: Likewise.
5121 * benchtests/bench-stpncpy.c: Likewise.
5122 * benchtests/bench-strcat.c: Likewise.
5123 * benchtests/bench-strchr.c: Likewise.
5124 * benchtests/bench-strcmp.c: Likewise.
5125 * benchtests/bench-strcpy.c: Likewise.
5126 * benchtests/bench-strcspn.c: Likewise.
5127 * benchtests/bench-string.h: Likewise.
5128 * benchtests/bench-strlen.c: Likewise.
5129 * benchtests/bench-strncat.c: Likewise.
5130 * benchtests/bench-strncmp.c: Likewise.
5131 * benchtests/bench-strncpy.c: Likewise.
5132 * benchtests/bench-strnlen.c: Likewise.
5133 * benchtests/bench-strpbrk.c: Likewise.
5134 * benchtests/bench-strrchr.c: Likewise.
5135 * benchtests/bench-strspn.c: Likewise.
5136
5137 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5138
5139 * stdlib/longlong.h: Update from GCC.
5140
5141 [BZ #23993]
5142 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5143 * configure: Regenerated.
5144 * manual/install.texi (Tools for Compilation): Update minimum GCC
5145 version.
5146 * INSTALL: Regenerated.
5147
5148 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
5149
5150 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5151
5152 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
5153
5154 * malloc/malloc.c (mremap_chunk): Additional checks.
5155
5156 2018-12-21 Mao Han <han_mao@c-sky.com>
5157
5158 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5159 * scripts/build-many-glibcs.py: Add C-SKY targets.
5160 * sysdeps/csky/Implies: New file.
5161 * sysdeps/csky/Makefile: Likewise.
5162 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5163 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5164 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5165 * sysdeps/csky/abiv2/memcmp.S: Likewise.
5166 * sysdeps/csky/abiv2/memcpy.S: Likewise.
5167 * sysdeps/csky/abiv2/memmove.S: Likewise.
5168 * sysdeps/csky/abiv2/memset.S: Likewise.
5169 * sysdeps/csky/abiv2/setjmp.S: Likewise.
5170 * sysdeps/csky/abiv2/start.S: Likewise.
5171 * sysdeps/csky/abiv2/strcmp.S: Likewise.
5172 * sysdeps/csky/abiv2/strcpy.S: Likewise.
5173 * sysdeps/csky/abiv2/strlen.S: Likewise.
5174 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5175 * sysdeps/csky/abort-instr.h: Likewise.
5176 * sysdeps/csky/atomic-machine.h: Likewise.
5177 * sysdeps/csky/bits/endian.h: Likewise.
5178 * sysdeps/csky/bits/fenv.h: Likewise.
5179 * sysdeps/csky/bits/link.h: Likewise.
5180 * sysdeps/csky/bits/setjmp.h: Likewise.
5181 * sysdeps/csky/bsd-_setjmp.S: Likewise.
5182 * sysdeps/csky/bsd-setjmp.S: Likewise.
5183 * sysdeps/csky/configure: Likewise.
5184 * sysdeps/csky/configure.ac: Likewise.
5185 * sysdeps/csky/dl-machine.h: Likewise.
5186 * sysdeps/csky/dl-procinfo.c: Likewise.
5187 * sysdeps/csky/dl-procinfo.h: Likewise.
5188 * sysdeps/csky/dl-sysdep.h: Likewise.
5189 * sysdeps/csky/dl-tls.h: Likewise.
5190 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5191 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5192 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5193 * sysdeps/csky/fpu/fegetenv.c: Likewise.
5194 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5195 * sysdeps/csky/fpu/fegetmode.c: Likewise.
5196 * sysdeps/csky/fpu/fegetround.c: Likewise.
5197 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5198 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5199 * sysdeps/csky/fpu/fenv_private.h: Likewise.
5200 * sysdeps/csky/fpu/fesetenv.c: Likewise.
5201 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5202 * sysdeps/csky/fpu/fesetmode.c: Likewise.
5203 * sysdeps/csky/fpu/fesetround.c: Likewise.
5204 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5205 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5206 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5207 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5208 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5209 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5210 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5211 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5212 * sysdeps/csky/fpu_control.h: Likewise.
5213 * sysdeps/csky/gccframe.h: Likewise.
5214 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5215 * sysdeps/csky/ldsodefs.h: Likewise.
5216 * sysdeps/csky/libc-tls.c: Likewise.
5217 * sysdeps/csky/linkmap.h: Likewise.
5218 * sysdeps/csky/machine-gmon.h: Likewise.
5219 * sysdeps/csky/memusage.h: Likewise.
5220 * sysdeps/csky/nofpu/Implies: Likewise.
5221 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5222 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5223 * sysdeps/csky/nptl/Makefile: Likewise.
5224 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5225 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5226 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5227 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5228 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5229 * sysdeps/csky/nptl/tls.h: Likewise.
5230 * sysdeps/csky/preconfigure: Likewise.
5231 * sysdeps/csky/sfp-machine.h: Likewise.
5232 * sysdeps/csky/sotruss-lib.c: Likewise.
5233 * sysdeps/csky/stackinfo.h: Likewise.
5234 * sysdeps/csky/sysdep.h: Likewise.
5235 * sysdeps/csky/tininess.h: Likewise.
5236 * sysdeps/csky/tst-audit.h: Likewise.
5237 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5238 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5239 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5240 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5241 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5242 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5243 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5244 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5245 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5246 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5247 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5248 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5249 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5250 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5251 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5252 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5253 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5254 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5255 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5256 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5257 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5258 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5259 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5260 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5261 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5262 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5263 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5264 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5265 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5266 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5267 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5268 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5269 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5270 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5271 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5272 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5273 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5274 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5275 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5276 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5277 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5278 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5279 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5280 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5281
5282 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5283
5284 * include/time.h (__difftime64): Add.
5285 * time/difftime.c (subtract): convert to 64-bit time.
5286 * time/difftime.c (__difftime64): Add.
5287 * time/difftime.c (__difftime): Wrap around __difftime64.
5288
5289 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5290
5291 * manual/examples/add.c: Remove redundant "if not".
5292 * manual/examples/argp-ex1.c: Likewise.
5293 * manual/examples/argp-ex2.c: Likewise.
5294 * manual/examples/argp-ex3.c: Likewise.
5295 * manual/examples/argp-ex4.c: Likewise.
5296 * manual/examples/atexit.c: Likewise.
5297 * manual/examples/db.c: Likewise.
5298 * manual/examples/dir.c: Likewise.
5299 * manual/examples/dir2.c: Likewise.
5300 * manual/examples/execinfo.c: Likewise.
5301 * manual/examples/filecli.c: Likewise.
5302 * manual/examples/filesrv.c: Likewise.
5303 * manual/examples/fmtmsgexpl.c: Likewise.
5304 * manual/examples/genpass.c: Likewise.
5305 * manual/examples/inetcli.c: Likewise.
5306 * manual/examples/inetsrv.c: Likewise.
5307 * manual/examples/isockad.c: Likewise.
5308 * manual/examples/longopt.c: Likewise.
5309 * manual/examples/memopen.c: Likewise.
5310 * manual/examples/memstrm.c: Likewise.
5311 * manual/examples/mkdirent.c: Likewise.
5312 * manual/examples/mkfsock.c: Likewise.
5313 * manual/examples/mkisock.c: Likewise.
5314 * manual/examples/mygetpass.c: Likewise.
5315 * manual/examples/pipe.c: Likewise.
5316 * manual/examples/popen.c: Likewise.
5317 * manual/examples/rprintf.c: Likewise.
5318 * manual/examples/search.c: Likewise.
5319 * manual/examples/select.c: Likewise.
5320 * manual/examples/setjmp.c: Likewise.
5321 * manual/examples/sigh1.c: Likewise.
5322 * manual/examples/sigusr.c: Likewise.
5323 * manual/examples/stpcpy.c: Likewise.
5324 * manual/examples/strdupa.c: Likewise.
5325 * manual/examples/strftim.c: Likewise.
5326 * manual/examples/subopt.c: Likewise.
5327 * manual/examples/swapcontext.c: Likewise.
5328 * manual/examples/termios.c: Likewise.
5329 * manual/examples/testopt.c: Likewise.
5330 * manual/examples/testpass.c: Likewise.
5331 * manual/examples/timeval_subtract.c: Likewise.
5332
5333 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5334
5335 * sysdeps/x86/fpu/math_private.h: New file.
5336 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5337
5338 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5339 definition.
5340 (cosh): Likewise.
5341 (tanh): Likewise.
5342
5343 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5344
5345 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5346 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5347 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5348 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5349 fields.
5350 (_dl_show_auxv): Give a special treatment to
5351 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5352 and AT_L3_CACHEGEOMETRY.
5353 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5354 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5355 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5356 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5357
5358 2018-12-19 Andreas Schwab <schwab@suse.de>
5359
5360 * nscd/connections.c (check_use): Don't abort on invalid len.
5361
5362 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5363
5364 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5365 values in the 64bit value cases.
5366
5367 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5368
5369 * include/time.h
5370 (__ctime64_r): Add.
5371 * time/ctime_r.c
5372 (__ctime64_r): Add.
5373 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5374
5375 * include/time.h
5376 (__ctime64): Add.
5377 * time/gmtime.c
5378 (__ctime64): Add.
5379 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5380
5381 * include/time.h
5382 (__gmtime64_r): Add.
5383 * time/gmtime.c
5384 (__gmtime64_r): Add.
5385 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5386
5387 * include/time.h
5388 (__gmtime64): Add.
5389 * time/gmtime.c
5390 (__gmtime64): Add.
5391 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5392
5393 * include/time.h
5394 (__localtime64_r): Add.
5395 * time/localtime.c
5396 (__localtime64_r): Add.
5397 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5398
5399 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5400
5401 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5402 kernel_sigction definition.
5403
5404 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5405
5406 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5407
5408 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5409 __syscall_rt_sigaction.
5410 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5411 (kernel_sigaction): Use Linux generic defintion.
5412 (STUB): Define.
5413 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5414 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5415 (__syscall_rt_sigaction): Remove implementation.
5416 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5417 hidden.
5418 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5419 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5420 INTERNAL_SYSCALL): Remove definitions.
5421 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5422 action and signal set size.
5423 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5424 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5425
5426 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5427 James Clarke <jrtc27@jrtc27.com>
5428
5429 [BZ #23967]
5430 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5431 Define if SA_RESTORER is defined.
5432 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5433 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5434 already defined.
5435 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5436 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5437 definitions.
5438 (HAS_SA_RESTORER): Define.
5439 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5440 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5441 (HAS_SA_RESTORER): Define.
5442 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5443 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5444 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5445 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5446 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5447
5448 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5449
5450 * sysdeps/unix/sysv/linux/kernel-features.h
5451 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5452 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5453 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5454 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5455 (__ASSUME_ST_INO_64_BIT): Likewise.
5456 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5457 <kernel-features.h>.
5458 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5459 Remove conditional code.
5460 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5461 <kernel-features.h>.
5462 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5463 Remove conditional code.
5464 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5465 <kernel-features.h>.
5466 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5467 Remove conditional code.
5468 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5469 <kernel-features.h>.
5470 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5471 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5472
5473 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5474
5475 * sysdeps/s390/multiarch/ifunc-resolve.h
5476 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5477 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5478 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5479 Delete macro definition.
5480 (s390_libc_ifunc_init): Rename to
5481 s390_libc_ifunc_expr_stfle_init.
5482 * sysdeps/s390/bzero: Use
5483 s390_libc_ifunc_expr_stfle_init instead of
5484 s390_libc_ifunc_init.
5485 * sysdeps/s390/memcmp.c: Likewise.
5486 * sysdeps/s390/memcpy.c: Likewise.
5487 * sysdeps/s390/mempcpy.c: Likewise.
5488 * sysdeps/s390/memset.c: Likewise.
5489
5490 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5491
5492 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5493 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5494
5495 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5496
5497 * sysdeps/s390/multiarch/Makefile
5498 (sysdep_routines): Remove wmemcmp variants.
5499 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5500 * sysdeps/s390/multiarch/ifunc-impl-list.c
5501 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5502 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5503 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5504 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5505 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5506 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5507 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5508 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5509
5510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5511
5512 * sysdeps/s390/multiarch/Makefile
5513 (sysdep_routines): Remove wmemset variants.
5514 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5515 * sysdeps/s390/multiarch/ifunc-impl-list.c
5516 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5517 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5518 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5519 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5520 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5521 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5522 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5523 * sysdeps/s390/ifunc-wmemset.h: New file.
5524
5525 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5526
5527 * sysdeps/s390/multiarch/Makefile
5528 (sysdep_routines): Remove wmemchr variants.
5529 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5530 * sysdeps/s390/multiarch/ifunc-impl-list.c
5531 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5532 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5533 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5534 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5535 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5536 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5537 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5538 * sysdeps/s390/ifunc-wmemchr.h: New file.
5539
5540 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5541
5542 * sysdeps/s390/multiarch/Makefile
5543 (sysdep_routines): Remove wcscspn variants.
5544 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5545 * sysdeps/s390/multiarch/ifunc-impl-list.c
5546 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5547 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5548 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5549 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5550 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5551 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5552 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5553 * sysdeps/s390/ifunc-wcscspn.h: New file.
5554
5555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5556
5557 * sysdeps/s390/multiarch/Makefile
5558 (sysdep_routines): Remove wcspbrk variants.
5559 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5560 * sysdeps/s390/multiarch/ifunc-impl-list.c
5561 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5562 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5563 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5564 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5565 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5566 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5567 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5568 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5569
5570 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5571
5572 * sysdeps/s390/multiarch/Makefile
5573 (sysdep_routines): Remove wcsspn variants.
5574 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5575 * sysdeps/s390/multiarch/ifunc-impl-list.c
5576 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5577 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5578 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5579 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5580 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5581 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5582 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5583 * sysdeps/s390/ifunc-wcsspn.h: New file.
5584
5585 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5586
5587 * sysdeps/s390/multiarch/Makefile
5588 (sysdep_routines): Remove wcsrchr variants.
5589 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5590 * sysdeps/s390/multiarch/ifunc-impl-list.c
5591 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5592 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5593 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5594 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5595 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5596 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5597 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5598 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5599
5600 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5601
5602 * sysdeps/s390/multiarch/Makefile
5603 (sysdep_routines): Remove wcschrnul variants.
5604 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5605 * sysdeps/s390/multiarch/ifunc-impl-list.c
5606 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5607 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5608 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5609 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5610 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5611 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5612 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5613 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5614
5615 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5616
5617 * sysdeps/s390/multiarch/Makefile
5618 (sysdep_routines): Remove wcschr variants.
5619 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5620 * sysdeps/s390/multiarch/ifunc-impl-list.c
5621 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5622 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5623 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5624 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5625 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5626 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5627 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5628 * sysdeps/s390/ifunc-wcschr.h: New file.
5629
5630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5631
5632 * sysdeps/s390/multiarch/Makefile
5633 (sysdep_routines): Remove wcsncmp variants.
5634 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5635 * sysdeps/s390/multiarch/ifunc-impl-list.c
5636 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5637 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5638 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5639 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5640 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5641 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5642 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5643 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5644
5645 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5646
5647 * sysdeps/s390/multiarch/Makefile
5648 (sysdep_routines): Remove wcscmp variants.
5649 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5650 * sysdeps/s390/multiarch/ifunc-impl-list.c
5651 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5652 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5653 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5654 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5655 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5656 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5657 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5658 * sysdeps/s390/ifunc-wcscmp.h: New file.
5659
5660 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5661
5662 * sysdeps/s390/multiarch/Makefile
5663 (sysdep_routines): Remove wcsncat variants.
5664 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5665 * sysdeps/s390/multiarch/ifunc-impl-list.c
5666 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5667 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5668 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5669 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5670 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5671 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5672 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5673 * sysdeps/s390/ifunc-wcsncat.h: New file.
5674
5675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5676
5677 * sysdeps/s390/multiarch/Makefile
5678 (sysdep_routines): Remove wcscat variants.
5679 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5680 * sysdeps/s390/multiarch/ifunc-impl-list.c
5681 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5682 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5683 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5684 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5685 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5686 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5687 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5688 * sysdeps/s390/ifunc-wcscat.h: New file.
5689
5690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5691
5692 * sysdeps/s390/multiarch/Makefile
5693 (sysdep_routines): Remove wcpncpy variants.
5694 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5695 * sysdeps/s390/multiarch/ifunc-impl-list.c
5696 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5697 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5698 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5699 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5700 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5701 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5702 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5703 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5704
5705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5706
5707 * sysdeps/s390/multiarch/Makefile
5708 (sysdep_routines): Remove wcsncpy variants.
5709 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5710 * sysdeps/s390/multiarch/ifunc-impl-list.c
5711 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5712 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5713 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5714 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5715 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5716 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5717 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5718 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5719
5720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5721
5722 * sysdeps/s390/multiarch/Makefile
5723 (sysdep_routines): Remove wcpcpy variants.
5724 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5725 * sysdeps/s390/multiarch/ifunc-impl-list.c
5726 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5727 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5728 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5729 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5730 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5731 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5732 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5733 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5734
5735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5736
5737 * sysdeps/s390/multiarch/Makefile
5738 (sysdep_routines): Remove wcscpy variants.
5739 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5740 * sysdeps/s390/multiarch/ifunc-impl-list.c
5741 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5742 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5743 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5744 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5745 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5746 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5747 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5748 * sysdeps/s390/ifunc-wcscpy.h: New file.
5749
5750 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5751
5752 * sysdeps/s390/multiarch/Makefile
5753 (sysdep_routines): Remove wcsnlen variants.
5754 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5755 * sysdeps/s390/multiarch/ifunc-impl-list.c
5756 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5757 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5758 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5759 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5760 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5761 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5762 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5763 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5764
5765 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5766
5767 * sysdeps/s390/multiarch/Makefile
5768 (sysdep_routines): Remove wcslen variants.
5769 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5770 * sysdeps/s390/multiarch/ifunc-impl-list.c
5771 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5772 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5773 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5774 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5775 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5776 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5777 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5778 * sysdeps/s390/ifunc-wcslen.h: New file.
5779
5780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5781
5782 * sysdeps/s390/multiarch/Makefile
5783 (sysdep_routines): Remove memrchr variants.
5784 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5785 * sysdeps/s390/multiarch/ifunc-impl-list.c
5786 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5787 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5788 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5789 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5790 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5791 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5792 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5793 * sysdeps/s390/ifunc-memrchr.h: New file.
5794
5795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5796
5797 * sysdeps/s390/multiarch/Makefile
5798 (sysdep_routines): Remove memccpy variants.
5799 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5800 * sysdeps/s390/multiarch/ifunc-impl-list.c
5801 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5802 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5803 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5804 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5805 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5806 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5807 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5808 * sysdeps/s390/ifunc-memccpy.h: New file.
5809
5810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5811
5812 * sysdeps/s390/multiarch/Makefile
5813 (sysdep_routines): Remove rawmemchr variants.
5814 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5815 * sysdeps/s390/multiarch/ifunc-impl-list.c
5816 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5817 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5818 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5819 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5820 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5821 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5822 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5823 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5824
5825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5826
5827 * sysdeps/s390/multiarch/Makefile
5828 (sysdep_routines): Remove memchr variants.
5829 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5830 * sysdeps/s390/multiarch/ifunc-impl-list.c
5831 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5832 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5833 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5834 * sysdeps/s390/multiarch/memchr.c: Move to ...
5835 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5836 * sysdeps/s390/ifunc-memchr.h: New file.
5837 * sysdeps/s390/s390-64/memchr.S: Move to ...
5838 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5839 for 31/64bit and ifunc handling.
5840 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5841 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5842 * sysdeps/s390/s390-32/memchr.S: Likewise.
5843
5844 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5845
5846 * sysdeps/s390/multiarch/Makefile
5847 (sysdep_routines): Remove strcspn variants.
5848 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5849 * sysdeps/s390/multiarch/ifunc-impl-list.c
5850 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5851 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5852 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5853 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5854 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5855 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5856 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5857 * sysdeps/s390/ifunc-strcspn.h: New file.
5858
5859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5860
5861 * sysdeps/s390/multiarch/Makefile
5862 (sysdep_routines): Remove strpbrk variants.
5863 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5864 * sysdeps/s390/multiarch/ifunc-impl-list.c
5865 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5866 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5867 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5868 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5869 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5870 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5871 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5872 * sysdeps/s390/ifunc-strpbrk.h: New file.
5873
5874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5875
5876 * sysdeps/s390/multiarch/Makefile
5877 (sysdep_routines): Remove strspn variants.
5878 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5879 * sysdeps/s390/multiarch/ifunc-impl-list.c
5880 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5881 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5882 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5883 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5884 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5885 * sysdeps/s390/multiarch/strspn.c: Move to ...
5886 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5887 * sysdeps/s390/ifunc-strspn.h: New file.
5888
5889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5890
5891 * sysdeps/s390/multiarch/Makefile
5892 (sysdep_routines): Remove strrchr variants.
5893 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5894 * sysdeps/s390/multiarch/ifunc-impl-list.c
5895 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5896 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5897 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5898 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5899 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5900 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5901 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5902 * sysdeps/s390/ifunc-strrchr.h: New file.
5903
5904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5905
5906 * sysdeps/s390/multiarch/Makefile
5907 (sysdep_routines): Remove strchrnul variants.
5908 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5909 * sysdeps/s390/multiarch/ifunc-impl-list.c
5910 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5911 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5912 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5913 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5914 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5915 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5916 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5917 * sysdeps/s390/ifunc-strchrnul.h: New file.
5918
5919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5920
5921 * sysdeps/s390/multiarch/Makefile
5922 (sysdep_routines): Remove strchr variants.
5923 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5924 * sysdeps/s390/multiarch/ifunc-impl-list.c
5925 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5926 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5927 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5928 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5929 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5930 * sysdeps/s390/multiarch/strchr.c: Move to ...
5931 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5932 * sysdeps/s390/ifunc-strchr.h: New file.
5933
5934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5935
5936 * sysdeps/s390/multiarch/Makefile
5937 (sysdep_routines): Remove strncmp variants.
5938 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5939 * sysdeps/s390/multiarch/ifunc-impl-list.c
5940 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5941 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5942 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5943 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5944 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5945 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5946 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5947 * sysdeps/s390/ifunc-strncmp.h: New file.
5948
5949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5950
5951 * sysdeps/s390/multiarch/Makefile
5952 (sysdep_routines): Remove strcmp variants.
5953 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5954 * sysdeps/s390/multiarch/ifunc-impl-list.c
5955 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5956 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5957 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5958 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5959 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5960 * sysdeps/s390/ifunc-strcmp.h: New file.
5961 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5962 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5963 for 31/64bit and ifunc handling.
5964 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5965 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5966 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5967
5968 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5969
5970 * sysdeps/s390/multiarch/Makefile
5971 (sysdep_routines): Remove strncat variants.
5972 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5973 * sysdeps/s390/multiarch/ifunc-impl-list.c
5974 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5975 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5976 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5977 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5978 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5979 * sysdeps/s390/multiarch/strncat.c: Move to ...
5980 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5981 * sysdeps/s390/ifunc-strncat.h: New file.
5982
5983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5984
5985 * sysdeps/s390/multiarch/Makefile
5986 (sysdep_routines): Remove strcat variants.
5987 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5988 * sysdeps/s390/multiarch/ifunc-impl-list.c
5989 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5990 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5991 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5992 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5993 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5994 * sysdeps/s390/multiarch/strcat.c: Move to ...
5995 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5996 * sysdeps/s390/ifunc-strcat.h: New file.
5997
5998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5999
6000 * sysdeps/s390/multiarch/Makefile
6001 (sysdep_routines): Remove stpncpy variants.
6002 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
6003 * sysdeps/s390/multiarch/ifunc-impl-list.c
6004 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
6005 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
6006 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
6007 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
6008 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
6009 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6010 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6011 * sysdeps/s390/ifunc-stpncpy.h: New file.
6012
6013 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6014
6015 * sysdeps/s390/multiarch/Makefile
6016 (sysdep_routines): Remove strncpy variants.
6017 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6018 * sysdeps/s390/multiarch/ifunc-impl-list.c
6019 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6020 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6021 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6022 * sysdeps/s390/multiarch/strncpy.c: Move to ...
6023 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6024 * sysdeps/s390/ifunc-strncpy.h: New file.
6025 * sysdeps/s390/s390-64/strncpy.S: Move to ...
6026 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6027 and adjust ifunc handling.
6028 * sysdeps/s390/s390-32/strncpy.S: Move to ...
6029 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6030 and adjust ifunc handling.
6031 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6032 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6033
6034 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6035
6036 * sysdeps/s390/multiarch/Makefile
6037 (sysdep_routines): Remove stpcpy variants.
6038 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6039 * sysdeps/s390/multiarch/ifunc-impl-list.c
6040 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6041 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6042 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6043 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6044 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6045 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6046 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6047 * sysdeps/s390/ifunc-stpcpy.h: New file.
6048
6049 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6050
6051 * sysdeps/s390/multiarch/Makefile
6052 (sysdep_routines): Remove strcpy variants.
6053 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6054 * sysdeps/s390/multiarch/ifunc-impl-list.c
6055 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6056 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6057 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6058 * sysdeps/s390/multiarch/strcpy.c: Move to ...
6059 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6060 * sysdeps/s390/ifunc-strcpy.h: New file.
6061 * sysdeps/s390/s390-64/strcpy.S: Move to ...
6062 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6063 for 31/64bit and ifunc handling.
6064 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6065 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6066 * sysdeps/s390/s390-32/strcpy.S: Likewise.
6067
6068 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6069
6070 * sysdeps/s390/multiarch/Makefile
6071 (sysdep_routines): Remove strnlen variants.
6072 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6073 * sysdeps/s390/multiarch/ifunc-impl-list.c
6074 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6075 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6076 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6077 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6078 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6079 * sysdeps/s390/multiarch/strnlen.c: Move to ...
6080 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6081 * sysdeps/s390/ifunc-strnlen.h: New file.
6082
6083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6084
6085 * sysdeps/s390/multiarch/Makefile
6086 (sysdep_routines): Remove strlen variants.
6087 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6088 * sysdeps/s390/multiarch/ifunc-impl-list.c
6089 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6090 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6091 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6092 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6093 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6094 * sysdeps/s390/multiarch/strlen.c: Move to ...
6095 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6096 * sysdeps/s390/ifunc-strlen.h: New file.
6097
6098 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6099
6100 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6101 * sysdeps/s390/multiarch/ifunc-impl-list.c
6102 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6103 * sysdeps/s390/ifunc-memmem.h: New file.
6104 * sysdeps/s390/memmem.c: Likewise.
6105 * sysdeps/s390/memmem-c.c: Likewise.
6106 * sysdeps/s390/memmem-vx.c: Likewise.
6107
6108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6109
6110 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6111 * sysdeps/s390/multiarch/ifunc-impl-list.c
6112 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6113 * sysdeps/s390/ifunc-strstr.h: New file.
6114 * sysdeps/s390/strstr.c: Likewise.
6115 * sysdeps/s390/strstr-c.c: Likewise.
6116 * sysdeps/s390/strstr-vx.c: Likewise.
6117
6118 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6119
6120 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6121 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6122 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6123 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6124 New defines.
6125 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6126 * sysdeps/s390/memmove-c.c: New file.
6127 * sysdeps/s390/memmove.c: Likewise.
6128 * sysdeps/s390/multiarch/ifunc-impl-list.c
6129 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6130
6131 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6132
6133 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6134 * sysdeps/s390/configure.ac: Add check for z13 support.
6135 * sysdeps/s390/configure: Regenerated.
6136
6137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6138
6139 * sysdeps/s390/memcopy.h: New file.
6140
6141 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6142
6143 * sysdeps/s390/s390-32/bcopy.S: Remove.
6144 * sysdeps/s390/s390-64/bcopy.S: Likewise.
6145
6146 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6147
6148 * sysdeps/s390/ifunc-memcpy.h: New File.
6149 * sysdeps/s390/memcpy.S: Move to ...
6150 * sysdeps/s390/memcpy-z900.S ... here.
6151 Move implementations from memcpy-s390x.s to here.
6152 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6153 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6154 Remove memcpy/mempcpy variants.
6155 * sysdeps/s390/Makefile (sysdep_routines):
6156 Add memcpy/mempcpy variants.
6157 * sysdeps/s390/multiarch/ifunc-impl-list.c
6158 (__libc_ifunc_impl_list): Adjust ifunc variants for
6159 memcpy and mempcpy.
6160 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6161 to ...
6162 * sysdeps/s390/memcpy.c: ... here.
6163 Adjust ifunc variants for memcpy.
6164 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6165 * sysdeps/s390/mempcpy.c: ... here.
6166 Adjust ifunc variants for mempcpy.
6167 * sysdeps/s390/mempcpy.S: Delete file.
6168
6169 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6170
6171 * sysdeps/s390/s390-64/memcpy.S: Move to ...
6172 * sysdeps/s390/memcpy.S: ... here.
6173 Adjust to be usable for 31/64bit.
6174 * sysdeps/s390/s390-32/memcpy.S: Delete File.
6175 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6176 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6177 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6178 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6179 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6180 Adjust to be usable for 31/64bit.
6181 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6182 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6183 * sysdeps/s390/multiarch/memcpy.c: ... here.
6184 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6185
6186 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6187
6188 * sysdeps/s390/ifunc-memcmp.h: New File.
6189 * sysdeps/s390/memcmp.S: Move to ...
6190 * sysdeps/s390/memcmp-z900.S ... here.
6191 Move implementations from memcmp-s390x.s to here.
6192 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6193 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6194 Remove memcmp variants.
6195 * sysdeps/s390/Makefile (sysdep_routines):
6196 Add memcmp variants.
6197 * sysdeps/s390/multiarch/ifunc-impl-list.c
6198 (__libc_ifunc_impl_list): Adjust ifunc variants for
6199 memcmp.
6200 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6201 to ...
6202 * sysdeps/s390/memcmp.c: ... here.
6203 Adjust ifunc variants for memcmp.
6204
6205 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6206
6207 * sysdeps/s390/s390-64/memcmp.S: Move to ...
6208 * sysdeps/s390/memcmp.S: ... here.
6209 Adjust to be usable for 31/64bit.
6210 * sysdeps/s390/s390-32/memcmp.S: Delete File.
6211 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6212 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6213 Remove memcmp.
6214 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6215 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6216 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6217 Adjust to be usable for 31/64bit.
6218 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6219 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6220 * sysdeps/s390/multiarch/memcmp.c: ... here.
6221 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6222
6223 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6224
6225 * sysdeps/s390/s390-32/bzero.S: Delete file.
6226 * sysdeps/s390/s390-64/bzero.S: Likewise.
6227 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6228 * sysdeps/s390/bzero.c: New file.
6229 * sysdeps/s390/memset-z900.S: Add bzero entry points.
6230 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6231 * sysdeps/s390/multiarch/ifunc-impl-list.c
6232 (__libc_ifunc_impl_list): Add bzero ifunc variants.
6233
6234 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6235
6236 * sysdeps/s390/ifunc-memset.h: New File.
6237 * sysdeps/s390/memset.S: Move to ...
6238 * sysdeps/s390/memset-z900.S ... here.
6239 Move implementations from memset-s390x.s to here.
6240 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6241 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6242 Remove memset variants.
6243 * sysdeps/s390/Makefile (sysdep_routines):
6244 Add memset variants.
6245 * sysdeps/s390/multiarch/ifunc-impl-list.c
6246 (__libc_ifunc_impl_list): Adjust ifunc variants for
6247 memset.
6248 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6249 to ...
6250 * sysdeps/s390/memset.c: ... here.
6251 Adjust ifunc variants for memset.
6252
6253 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6254
6255 * sysdeps/s390/s390-64/memset.S: Move to ...
6256 * sysdeps/s390/memset.S: ... here.
6257 Adjust to be usable for 31/64bit.
6258 * sysdeps/s390/s390-32/memset.S: Delete File.
6259 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6260 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6261 Remove memset.
6262 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6263 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6264 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6265 Adjust to be usable for 31/64bit.
6266 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6267 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6268 * sysdeps/s390/multiarch/memset.c: ... here.
6269 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6270
6271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6272
6273 * sysdeps/s390/multiarch/ifunc-resolve.h
6274 (s390_libc_ifunc_init, s390_libc_ifunc,
6275 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6276
6277 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6278
6279 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6280 * sysdeps/s390/configure.ac: Add check for z10 support.
6281 * sysdeps/s390/configure: Regenerated.
6282
6283 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
6284
6285 * sysdeps/i386/atomic-machine.h: Merged with ...
6286 * sysdeps/x86_64/atomic-machine.h: To ...
6287 * sysdeps/x86/atomic-machine.h: This. New file.
6288
6289 2018-12-18 Florian Weimer <fweimer@redhat.com>
6290
6291 Rewrite locale/gen-translit.pl in Python.
6292 * locale/Makefile (generated): Add C-translit.h.
6293 (before-compile): Add $(objpfx)C-translit.h.
6294 (C-translit.h): Move to $(objpfx). Create target directory.
6295 Build using Python script.
6296 * locale/gen-translit.py: New file.
6297 * locale/gen-translit.pl: Remove file.
6298 * locale/C-translit.h.in: Change comment character to '#' for
6299 easier parsing without a C preprocessor.
6300 * locale/C-translit.h: Remove generated file.
6301 * manual/install.texi (Tools for Compilation): Do not mention
6302 C-translit.h.
6303 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6304 Remove locale/C-translit.h.
6305 * scripts/update-copyrights: Likewise.
6306 * INSTALL: Regenerate.
6307
6308 2018-12-18 Florian Weimer <fweimer@redhat.com>
6309
6310 [BZ #23995]
6311 * localedata/locales/bi_VU: Remove executable bit from file.
6312
6313 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6314
6315 * include/time.h
6316 (__localtime64): Add.
6317 * manual/maint.texi: Document Y2038 symbol handling.
6318 * time/localtime.c
6319 (__localtime64): Add.
6320 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6321
6322 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6323
6324 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6325 Do not clobber r12.
6326
6327 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6328 to allow extra macros from first or second sources.
6329 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6330 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6331 (tests-special): Add $(objpfx)tst-mman-consts.out.
6332 ($(objpfx)tst-mman-consts.out): New makefile target.
6333
6334 2018-12-17 Mao Han <han_mao@c-sky.com>
6335
6336 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6337 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6338 without stat64 system call support.
6339 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6340 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6341 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6342 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6343 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6344 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6345 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6346 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6347 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6348 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6349 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6350
6351 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6352
6353 regex: fix storage-exhaustion error
6354 [BZ #18040]
6355 * posix/regexec.c (get_subexp):
6356 Do not continue if storage is exhausted.
6357
6358 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6359
6360 regex: fix heap-use-after-free error
6361 [BZ #18040]
6362 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6363 https://debbugs.gnu.org/32592
6364 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6365 call extend_buffers which reallocates the re_string_t internal buffer.
6366 Local variable 'buf' was not updated in such case, resulting in
6367 use-after-free.
6368 * posix/regexec.c (get_subexp): Update 'buf' after call to
6369 get_subexp_sub.
6370
6371 2018-12-15 Florian Weimer <fweimer@redhat.com>
6372
6373 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6374 (minimum_stride_size): Use it.
6375 (support_blob_repeat_allocate): Likewise.
6376
6377 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6378
6379 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6380 definition.
6381 (acosh): Likewise.
6382 (atanh): Likewise.
6383
6384 2018-12-14 Florian Weimer <fweimer@redhat.com>
6385
6386 * manual/process.texi (Process Creation Concepts): Remove
6387 documentation of process (ID) lifetime. List more process
6388 creation functions. Reference Process Identification section.
6389 (Process Identification): Add information about process ID
6390 lifetime. Describe Linux thread/task IDs.
6391 * manual/signal.texi (Signaling Another Process): Mention that the
6392 signal is always sent to the process.
6393
6394 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6395
6396 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6397 and tst-ldbl-efgcvt.
6398 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6399 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6400 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6401 (fcvt_tests, output_error, output_r_error, do_test): Use the
6402 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6403 select the type of floating-point variables and arguments; to
6404 produce extra tests for double and conversion specifiers for
6405 printf; and to set the names of called functions.
6406 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6407 in tst-efgcvt-template.c.
6408 * misc/tst-ldbl-efgcvt.c: Likewise.
6409
6410 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6411
6412 * nss/Makefile (tst-nss-test3.out): New rule.
6413
6414 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6415
6416 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6417 clobber sp.
6418
6419 2018-12-13 fanjinke <fanjinke@hygon.cn>
6420
6421 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6422 "HygonGenuine".
6423
6424 2018-12-13 Andreas Schwab <schwab@suse.de>
6425
6426 [BZ #23861]
6427 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6428 (__pthread_rwlock_rdlock_full): Update expected value for
6429 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6430 * nptl/tst-rwlock-pwn.c: New file.
6431 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6432
6433 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6434
6435 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6436 definition.
6437
6438 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6439
6440 * benchtests/scripts/compare_bench.py (do_compare): write to
6441 stderr in casestat is not present.
6442 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6443 stderr in case timings field is not present. Also string showing
6444 the output filename goes into the stderr.
6445
6446 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6447
6448 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6449 and ZeroDivisorError exceptions.
6450 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6451 argument to loop through user provided statistics.
6452 * benchtests/scripts/compare_bench.py (main): Include the --stats
6453 argument.
6454
6455 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6456
6457 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6458 instead of return.
6459
6460 2018-12-12 Florian Weimer <fweimer@redhat.com>
6461
6462 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6463 clause to copyright header.
6464
6465 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6466
6467 [BZ #23614]
6468 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6469 registers saved in the stack frame.
6470 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6471 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6472
6473 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6474
6475 * include/bits/monetary-ldbl.h: New file.
6476 * include/bits/printf-ldbl.h: Likewise.
6477 * include/bits/stdio-ldbl.h: Likewise.
6478 * include/bits/stdlib-ldbl.h: Likewise.
6479 * include/bits/syslog-ldbl.h: Likewise.
6480 * include/bits/wchar-ldbl.h: Likewise.
6481
6482 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6483
6484 * libio/libio.h: Remove redirection for _IO_vfprintf.
6485
6486 2018-12-11 Andreas Schwab <schwab@suse.de>
6487
6488 * Makerules: Remove all references to abilist-pattern.
6489 (update-all-abi): Simplify find expression.
6490
6491 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6492
6493 [BZ #23961]
6494 * math/auto-libm-test-in: Add new test case.
6495 * math/auto-libm-test-out-pow: Regenerated.
6496 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6497
6498 2018-12-10 DJ Delorie <dj@redhat.com>
6499
6500 [BZ #23948]
6501 * support/test-container.c: Move postclean step to before we
6502 change namespaces.
6503
6504 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6505
6506 * scripts/gen-as-const.py (main): Handle --python option.
6507 * scripts/gen-py-const.awk: Remove.
6508 * Makerules (py-const-script): Use gen-as-const.py.
6509 ($(py-const)): Likewise.
6510 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6511 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6512 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6513 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6514 ~PTHREAD_MUTEX_NO_ELISION_NP.
6515 * manual/README.pretty-printers: Update reference to
6516 gen-py-const.awk.
6517
6518 * scripts/glibcextract.py: New file.
6519 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6520 or tempfile. Import glibcexctract.
6521 (compute_c_consts): Remove. Moved to glibcextract.py.
6522 (gen_test): Update reference to compute_c_consts.
6523 (main): Likewise.
6524 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6525 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6526 * sysdeps/unix/sysv/linux/Makefile
6527 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6528 Redirect stderr as well as stdout.
6529
6530 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6531
6532 [BZ #19767]
6533 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6534 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6535 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6536 ALWAYS_USE_VSYSCALL.
6537 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6538 ALWAYS_USE_VSYSCALL.
6539 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6540 ALWAYS_USE_VSYSCALL.
6541
6542 2018-12-10 Florian Weimer <fweimer@redhat.com>
6543
6544 [BZ #23972]
6545 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6546 offset instead of count for clarity. Fix typo in comment.
6547 (__old_getdents64): Keep track of previous offset. Use it to call
6548 handle_overflow.
6549 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6550 that d_off is never zero.
6551
6552 2018-12-10 Andreas Schwab <schwab@suse.de>
6553
6554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6555 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6557 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6558 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6559
6560 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6561
6562 * timezone/private.h: Update from tzcode 2018g.
6563 * timezone/tzfile.h: Likewise.
6564 * timezone/tzselect.ksh: Likewise.
6565 * timezone/zdump.c: Likewise.
6566 * timezone/zic.c: Likewise.
6567
6568 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6569
6570 [BZ #23490]
6571 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6572 (do_test): Adjust buffer size and fix format.
6573
6574 2018-12-07 DJ Delorie <dj@redhat.com>
6575
6576 [BZ #23907]
6577 * malloc/tst-tcfree3.c: New.
6578 * malloc/Makefile: Add it.
6579
6580 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6581
6582 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6583
6584 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6585
6586 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6587 used as a mask for the mode argument of __vfscanf_internal and
6588 __vfwscanf_internal.
6589 * stdio-common/vfscanf-internal.c
6590 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6591 (__strtof128_internal): Define to __wcstof128_internal.
6592 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6593 __strtof128_internal or __wcstof128_internal when the format of
6594 long double is the same as _Float128.
6595
6596 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6597
6598 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6599 * posix/confstr.c (confstr): Rename to __confstr.
6600 (__confstr): Add hidden def.
6601 (confstr): Add weak alias for __confstr.
6602 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6603 confstr.
6604
6605 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6606
6607 * NEWS: Mention getcpu.
6608 * include/sched.h (__getcpu): New libc_hidden_proto.
6609 * manual/resource.texi: Document getcpu.
6610 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6611 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6612 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6613 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6614 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6615 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6616 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6617 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6618 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6619 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6620 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6621 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6622 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6623 Likewise.
6624 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6625 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6626 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6628 Likewise.
6629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6630 Likewise.
6631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6632 Likewise.
6633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6634 Likewise.
6635 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6636 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6637 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6638 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6639 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6640 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6641 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6642 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6643 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6644 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6645 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6646 Also check getcpu.
6647
6648 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6649
6650 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6651 functions.
6652 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6653
6654 2018-12-07 Florian Weimer <fweimer@redhat.com>
6655
6656 [BZ #17405]
6657 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6658 * posix/Versions (GLIBC_2.29): Export
6659 posix_spawn_file_actions_addfchdir_np.
6660 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6661 * posix/spawn_faction_destroy.c
6662 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6663 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6664 and the field action.fchdir_action.
6665 * posix/tst-spawn-chdir.c (add_chdir): New function.
6666 (do_test): Add do_fchdir loop. Call add_chdir.
6667 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6668 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6669 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6670 posix_spawn_file_actions_addfchdir_np.
6671 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6672 Likewise.
6673 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6674 Likewise.
6675 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6676 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6677 Likewise.
6678 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6679 Likewise.
6680 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6681 Likewise.
6682 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6683 Likewise.
6684 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6685 Likewise.
6686 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6687 Likewise.
6688 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6689 (GLIBC_2.29): Likewise.
6690 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6691 (GLIBC_2.29): Likewise.
6692 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6693 (GLIBC_2.29): Likewise.
6694 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6695 (GLIBC_2.29): Likewise.
6696 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6697 Likewise.
6698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6699 (GLIBC_2.29): Likewise.
6700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6701 (GLIBC_2.29): Likewise.
6702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6703 (GLIBC_2.29): Likewise.
6704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6705 (GLIBC_2.29): Likewise.
6706 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6707 Likewise.
6708 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6709 Likewise.
6710 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6711 Likewise.
6712 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6713 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6714 Likewise.
6715 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6716 Likewise.
6717 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6718 Likewise.
6719 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6720 Likewise.
6721
6722 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6723
6724 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6725 trailing whitespace removed.
6726 * scripts/config.guess: Update to version 2018-11-28.
6727 * scripts/config.sub: Update to version 2018-11-28.
6728 * scripts/install-sh: Update to version 2018-03-11.20.
6729 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6730 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6731
6732 2018-12-07 Florian Weimer <fweimer@redhat.com>
6733
6734 [BZ #23927]
6735 CVE-2018-19591
6736 * inet/tst-if_index-long.c: New file.
6737 * inet/Makefile (tests): Add tst-if_index-long.
6738
6739 2018-12-07 Florian Weimer <fweimer@redhat.com>
6740
6741 * support/check.h (support_record_failure_is_failed): Declare.
6742 * support/descriptors.h: New file.
6743 * support/support_descriptors.c: Likewise.
6744 * support/tst-support_descriptors.c: Likewise.
6745 * support/support_record_failure.c
6746 (support_record_failure_is_failed): New function.
6747 * support/Makefile (libsupport-routines): Add support_descriptors.
6748 (tests): Add tst-support_descriptors.
6749
6750 2018-12-05 Zack Weinberg <zackw@panix.com>
6751 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6752
6753 * stdio-common/vfprintf-internal.c
6754 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6755 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6756 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6757 and __no_long_double.
6758 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6759 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6760 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6761 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6762 and __nldbl_*syslog* functions.
6763 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6764 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6765 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6766 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6767 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6768 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6769 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6770 (__nldbl_vwprintf, __nldbl_wprintf):
6771 Directly call the appropriate __v*printf_internal routine, passing
6772 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6773 variable names.
6774 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6775 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6776 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6777 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6778 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6779 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6780 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6781 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6782 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6783 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6784 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6785 (__nldbl_syslog, __nldbl_vsyslog):
6786 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6787 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6788 appropriate.
6789 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6790 appropriate.
6791
6792 2018-12-05 Zack Weinberg <zackw@panix.com>
6793 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6794
6795 [BZ #11319]
6796 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6797 Moved here from debug/vsprintf_chk.c.
6798 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6799 and completion logic for the strfile to match exactly what
6800 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6801 _IO_str_init_static_internal instead of maxlen-1.
6802 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6803 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6804 __vsprintf_internal.
6805
6806 * debug/vsprintf_chk.c (__vsprintf_chk)
6807 * debug/sprintf_chk.c (__sprintf_chk):
6808 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6809 'flags' argument is positive, and slen as maxlen. No need to lock
6810 the FILE and/or construct a temporary FILE. Minimize and normalize
6811 header inclusions and variable names. Do not libc_hidden_def anything.
6812
6813 * debug/asprintf_chk.c (__asprintf_chk)
6814 * debug/dprintf_chk.c (__dprintf_chk)
6815 * debug/fprintf_chk.c (__fprintf_chk)
6816 * debug/fwprintf_chk.c (__fwprintf_chk)
6817 * debug/printf_chk.c (__printf_chk)
6818 * debug/snprintf_chk.c (__snprintf_chk)
6819 * debug/swprintf_chk.c (__swprintf_chk)
6820 * debug/vasprintf_chk.c (__vasprintf_chk)
6821 * debug/vdprintf_chk.c (__vdprintf_chk)
6822 * debug/vfprintf_chk.c (__vfprintf_chk)
6823 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6824 * debug/vprintf_chk.c (__vprintf_chk)
6825 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6826 * debug/vswprintf_chk.c (__vswprintf_chk)
6827 * debug/vwprintf_chk.c (__vwprintf_chk)
6828 * debug/wprintf_chk.c (__wprintf_chk):
6829 Directly call the corresponding vxxprintf_internal function, passing
6830 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6831 the FILE and/or construct a temporary FILE. Minimize and normalize
6832 header inclusions and variable names. Do not libc_hidden_def anything.
6833
6834 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6835 __obstack_vprintf_internal.
6836 (__obstack_vprintf_chk): Convert into a wrapper that calls
6837 __obstack_vprintf_internal (these two functions already had the
6838 same code) and move to new file...
6839 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6840 file.
6841 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6842 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6843 * debug/Makefile (routines): Add vobprintf_chk.
6844
6845 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6846 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6847 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6848 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6849 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6850 (__nldbl___obstack_vfprintf_chk):
6851 Directly call the corresponding vxxprintf_internal function,
6852 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6853 duplicate comparison of slen with 0 or maxlen from the corresponding
6854 non-__nldbl function.
6855
6856 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6857 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6858 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6859 Remove libc_hidden_proto.
6860
6861 * stdio-common/vfprintf-internal.c
6862 (__vfprintf_internal, __vfwprintf_internal):
6863 Do not check _IO_FLAGS2_FORTIFY.
6864 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6865 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6866 a comment explaining why it has the maxlen argument.
6867 (_IO_acquire_lock_clear_flags2_fct): Remove.
6868 (_IO_acquire_lock_clear_flags2): Remove.
6869 (_IO_release_lock): Remove conditional statement which will
6870 now never execute.
6871 (_IO_acquire_lock): Remove variable which is now unused.
6872 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6873 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6874
6875 * stdio-common/Makefile (tests): Add tst-bz11319 and
6876 tst-bz11319-fortify2.
6877 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6878 * stdio-common/tst-bz11319-fortify2.c: New file.
6879 * stdio-common/tst-bz11319.c: Likewise.
6880
6881 2018-12-05 Zack Weinberg <zackw@panix.com>
6882 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6883
6884 * misc/syslog.c: Include libioP.h, not iolibio.h.
6885 (__vsyslog_internal): New function with the former body of
6886 __vsyslog_chk; takes mode_flags argument same as
6887 __v*printf_internal. Call __vfprintf_internal directly.
6888
6889 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6890 Remove libc_hidden_def.
6891 (__syslog, __syslog_chk): Use __vsyslog_internal.
6892 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6893
6894 * include/sys/syslog.h: Add multiple inclusion guard.
6895 Add prototype for __vsyslog_internal.
6896 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6897
6898 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6899 Use __vsyslog_internal.
6900
6901 2018-12-05 Zack Weinberg <zackw@panix.com>
6902 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6903
6904 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6905 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6906 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6907 New functions.
6908 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6909 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6910
6911 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6912 Include wctype.h here if COMPILE_WPRINTF is defined.
6913 Define __vfprintf_internal or __vfwprintf_internal, depending
6914 on COMPILE_WPRINTF.
6915 Temporarily, on entry to this function, update mode_flags
6916 according to the environmental settings corresponding to
6917 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6918 Throughout, check mode_flags instead of __ldbl_is_dbl and
6919 _IO_FLAGS2_FORTIFY on the destination FILE.
6920 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6921 Include vfprintf-internal.c. Don't include wctype.h.
6922 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6923 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6924 and vfprintf.
6925 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6926 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6927 and vfwprintf.
6928 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6929
6930 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6931 and add mode_flags argument; use __vfprintf_internal.
6932 (__vdprintf): New function. Alias vdprintf to this.
6933 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6934 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6935 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6936 (__obstack_printf): Use __obstack_printf_internal.
6937 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6938 public aliases __vsnprintf and vsnprintf.
6939 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6940 called internally.
6941 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6942 public aliases _IO_vsprintf and vsprintf.
6943 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6944 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6945 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6946 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6947 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6948
6949 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6950 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6951 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6952 * stdio-common/printf.c: Use __vfprintf_internal.
6953
6954 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6955 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6956 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6957
6958 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6959 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6960 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6961 __vfwprintf_internal.
6962
6963 * libio/libio.h: Remove libc_hidden_proto and declaration for
6964 _IO_vfprintf.
6965 Remove declaration of _IO_vfwprintf.
6966 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6967 _IO_vsprintf.
6968 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6969 _IO_obstack_printf.
6970 * include/stdio.h: Add prototype for __vasprintf.
6971 (__vsnprintf): Remove declaration, because there are no more
6972 internal calls.
6973 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6974 declaration, because there are no more internal calls.
6975
6976 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6977 __vsnprintf_internal, instead of _IO_vsnprintf.
6978 * argp/argp-help.c (__argp_error, __argp_failure): Use
6979 __vasprintf_internal, instead of _IO_vasprintf.
6980 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6981 redefine, because there are no more internal calls.
6982
6983 2018-12-05 Zack Weinberg <zackw@panix.com>
6984 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6985
6986 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6987 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6988 Include libio/strfile.h instead of libioP.h.
6989 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6990 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6991 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6992 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6993 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6994 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6995 necessary. Do not set __no_long_double. Normalize variable names.
6996 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6997 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6998 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6999 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
7000 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
7001 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
7002 Call __vfscanf_internal / __vfwscanf_internal directly, passing
7003 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
7004 Do not set __no_long_double. Normalize variable names.
7005
7006 2018-12-05 Zack Weinberg <zackw@panix.com>
7007 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7008
7009 * stdio-common/isoc99_scanf.c
7010 * stdio-common/isoc99_fscanf.c
7011 * stdio-common/isoc99_sscanf.c
7012 * stdio-common/isoc99_vscanf.c
7013 * stdio-common/isoc99_vfscanf.c
7014 * stdio-common/isoc99_vsscanf.c
7015 * wcsmbs/isoc99_wscanf.c
7016 * wcsmbs/isoc99_fwscanf.c
7017 * wcsmbs/isoc99_swscanf.c
7018 * wcsmbs/isoc99_vwscanf.c
7019 * wcsmbs/isoc99_vfwscanf.c
7020 * wcsmbs/isoc99_vswscanf.c:
7021 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7022 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7023 No need to lock and unlock the FILE passed to that function.
7024
7025 * stdio-common/vfscanf-internal.c
7026 (__vfscanf_internal, __vfwscanf_internal):
7027 Don't look at _IO_FLAGS2_SCANF_STD.
7028 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7029 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7030 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7031
7032 2018-12-05 Zack Weinberg <zackw@panix.com>
7033 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7034
7035 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7036 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7037 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7038 * libio/strfile.h: Add multiple inclusion guard.
7039 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7040
7041 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7042 consistency with the other version of this file.
7043 (ldbl_compat_symbol): New macro.
7044 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7045 New macro.
7046
7047 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7048 Define __vfscanf_internal or __vfwscanf_internal, depending on
7049 COMPILE_WSCANF; don't define any other public symbols.
7050 Remove errval and code to set errp.
7051 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7052 as the mode_flags argument.
7053 (encode_error, conv_error, input_error): Don't set errval.
7054 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7055 Include vfscanf-internal.c.
7056 * stdio-common/vfscanf.c: New file defining the public entry
7057 point vfscanf, which calls __vfscanf_internal.
7058 * stdio-common/vfwscanf.c: New file defining the public entry
7059 point vfwscanf, which calls __vfwscanf_internal.
7060
7061 * stdio-common/iovfscanf.c: New file.
7062 * stdio-common/iovfwscanf.c: Likewise.
7063
7064 * stdio-common/Makefile (routines): Add vfscanf-internal,
7065 vfwscanf-internal, iovfscanf, iovfwscanf.
7066 * stdio-common/Versions: Mention GLIBC_2.29, so that
7067 it can be used in SHLIB_COMPAT expressions.
7068 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7069 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7070 Call __vfscanf_internal, instead of _IO_vfscanf.
7071 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7072 _IO_vfscanf.
7073 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7074 _IO_vfwscanf.
7075
7076 * libio/iovsscanf.c: Clean up includes, when possible. Use
7077 _IO_strfile_read or _IO_strfile_readw, when needed. Call
7078 __vfscanf_internal or __vfwscanf_internal directly.
7079 * libio/iovswscanf.c: Likewise.
7080 * libio/swscanf.c: Likewise.
7081 * libio/vscanf.c: Likewise.
7082 * libio/vwscanf.c: Likewise.
7083 * libio/wscanf.c: Likewise.
7084 * stdio-common/isoc99_fscanf.c: Likewise.
7085 * stdio-common/isoc99_scanf.c: Likewise.
7086 * stdio-common/isoc99_sscanf.c: Likewise.
7087 * stdio-common/isoc99_vfscanf.c: Likewise.
7088 * stdio-common/isoc99_vscanf.c: Likewise.
7089 * stdio-common/isoc99_vsscanf.c: Likewise.
7090 * stdio-common/scanf.c: Likewise.
7091 * stdio-common/sscanf.c: Likewise.
7092 * wcsmbs/isoc99_fwscanf.c: Likewise.
7093 * wcsmbs/isoc99_swscanf.c: Likewise.
7094 * wcsmbs/isoc99_vfwscanf.c: Likewise.
7095 * wcsmbs/isoc99_vswscanf.c: Likewise.
7096 * wcsmbs/isoc99_vwscanf.c: Likewise.
7097 * wcsmbs/isoc99_wscanf.c: Likewise.
7098
7099 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
7100
7101 * include/time.h
7102 (__tz_compute): Replace time_t with __time64_t.
7103 (__tz_convert): Replace time_t* with __time64_t.
7104 (__offtime): Replace time_t* with __time64_t.
7105 * time/gmtime.c
7106 (__gmtime_r): Adjust call to __tz_convert.
7107 (gmtime): Likewise.
7108 * time/localtime.c
7109 (__localtime_r): Likewise.
7110 (localtime): Likewise.
7111 * time/offtime.c: Replace time_t with __time64_t.
7112 * time/tzset.c: Likewise.
7113
7114 2018-12-04 Joseph Myers <joseph@codesourcery.com>
7115
7116 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7117 dynamic linker unless [$(run-built-tests) = yes].
7118
7119 2018-12-03 DJ Delorie <dj@delorie.com>
7120
7121 * support/test-container.c (check_for_unshare_hints): New.
7122 (main): Call it if unshare fails. Add support for "su" scriptlet
7123 command.
7124
7125 2018-12-03 Joseph Myers <joseph@codesourcery.com>
7126
7127 * scripts/gen-as-const.py (compute_c_consts): Take an argument
7128 'START' to indicate that start text should be output.
7129 (gen_test): Likewise.
7130 (main): Generate 'START' for first symbol or '--' line, or at end
7131 of input if not previously generated.
7132
7133 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
7134
7135 [BZ #19767]
7136 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7137 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7138 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7139 ALWAYS_USE_VSYSCALL.
7140
7141 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7142
7143 [BZ #23913]
7144 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7145 new_argv by one.
7146
7147 2018-12-03 Carlos O'Donell <carlos@redhat.com>
7148
7149 [BZ #23923]
7150 * locale/programs/localedef.c: Declare boolean hard_links default true.
7151 (options): Add --no-hard-links option.
7152 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7153 * locale/programs/localedef.h: Declare prototype for hard_links.
7154 * locale/programs/locfile.c (write_locale_data): Don't use hard
7155 links if hard_links is false.
7156
7157 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
7158
7159 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7160 cpu_features_basic.
7161 (__cache_sysconf): Likewise.
7162 (init_cacheinfo): Likewise.
7163 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7164 populate COMMON_CPUID_INDEX_80000007 and
7165 COMMON_CPUID_INDEX_80000008.
7166 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7167 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7168 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
7169 (init_cpu_features): Use _Static_assert on
7170 index_arch_Fast_Unaligned_Load.
7171 __get_cpuid_registers and __get_arch_feature. Updated for
7172 cpu_features_basic. Set stepping in cpu_features.
7173 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7174 (FEATURE_INDEX_2): New.
7175 (FEATURE_INDEX_MAX): Changed to enum.
7176 (COMMON_CPUID_INDEX_D_ECX_1): New.
7177 (COMMON_CPUID_INDEX_80000007): Likewise.
7178 (COMMON_CPUID_INDEX_80000008): Likewise.
7179 (cpuid_registers): Likewise.
7180 (cpu_features_basic): Likewise.
7181 (CPU_FEATURE_USABLE): Likewise.
7182 (bit_arch_XXX_Usable): Likewise.
7183 (cpu_features): Use cpuid_registers and cpu_features_basic.
7184 (bit_arch_XXX): Reweritten.
7185 (bit_cpu_XXX): Likewise.
7186 (index_cpu_XXX): Likewise.
7187 (reg_XXX): Likewise.
7188 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7189 <support/check.h>.
7190 (CHECK_CPU_FEATURE): New.
7191 (CHECK_CPU_FEATURE_USABLE): Likewise.
7192 (cpu_kinds): Likewise.
7193 (do_test): Print vendor, family, model and stepping. Check
7194 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7195 (TEST_FUNCTION): Removed.
7196 Include <support/test-driver.c> instead of
7197 "../../test-skeleton.c".
7198 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7199 Check POPCNT instead of POPCOUNT.
7200 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7201
7202 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7203
7204 * scripts/gen-as-const.py (main): Avoid emitting empty line when
7205 there is no element in `consts'.
7206
7207 2018-12-01 Florian Weimer <fweimer@redhat.com>
7208
7209 * support/support_capture_subprocess.c
7210 (support_capture_subprocess): Check that pipe descriptors have
7211 expected values. Close original pipe descriptors in subprocess.
7212
7213 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7214
7215 [BZ #23032]
7216 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7217 attr with __pthread_default_barrierattr.
7218 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7219 attr with __pthread_default_condattr.
7220 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7221 attr with __pthread_default_mutexattr.
7222 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7223 attr with __pthread_default_rwlockattr.
7224
7225 2018-12-01 Kemi Wang <kemi.wang@intel.com>
7226
7227 * manual/tunables.texi (POSIX Thread Tunables): New node.
7228 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7229 * nptl/nptl-init.c: Include pthread_mutex_conf.h
7230 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7231 __pthread_tunables_init.
7232 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7233 (max_adaptive_count): Define.
7234 * nptl/pthread_mutex_conf.c: New file.
7235 * nptl/pthread_mutex_conf.h: New file.
7236 * sysdeps/generic/adaptive_spin_count.h: New file.
7237 * sysdeps/nptl/dl-tunables.list: New file.
7238 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7239 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7240 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7241 Likewise.
7242
7243 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
7244
7245 [BZ #20544]
7246 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7247 * stdlib/on_exit.c (__on_exit): Likewise.
7248 * stdlib/Makefile (tests): Add tst-bz20544.
7249 * stdlib/tst-bz20544.c: New test.
7250
7251 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
7252
7253 [BZ #19767]
7254 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7255 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7256 New.
7257
7258 2018-11-30 Florian Weimer <fweimer@redhat.com>
7259
7260 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7261 Extend error logging.
7262 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7263 symbol.
7264
7265 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7266
7267 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7268 __sigismember instead of sigismember.
7269 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7270 cancel_handler): New definitions.
7271 (do_system): Use posix_spawn instead of fork and execl and remove
7272 reentracy code.
7273 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7274 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7275 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7276 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7277 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7278 * sysdeps/unix/sysv/linux/system.c: Likewise.
7279
7280 [BZ #22834]
7281 [BZ #17490]
7282 * NEWS: Add new semantic for atfork with popen and system.
7283 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7284 fork and execl.
7285
7286 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7287
7288 [BZ #23690]
7289 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7290 modification order when accessing reloc_result->addr.
7291 * include/link.h (reloc_result): Add field init.
7292 * nptl/Makefile (tests): Add tst-audit-threads.
7293 (modules-names): Add tst-audit-threads-mod1 and
7294 tst-audit-threads-mod2.
7295 Add rules to build tst-audit-threads.
7296 * nptl/tst-audit-threads-mod1.c: New file.
7297 * nptl/tst-audit-threads-mod2.c: Likewise.
7298 * nptl/tst-audit-threads.c: Likewise.
7299 * nptl/tst-audit-threads.h: Likewise.
7300
7301 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7302
7303 * scripts/gen-as-const.py: New file.
7304 * scripts/gen-as-const.awk: Remove.
7305 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7306 gen-as-const.py.
7307 ($(objpfx)test-as-const-%.c): Likewise.
7308
7309 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7310
7311 * elf/dl-exception.c: Include <_itoa.h>.
7312
7313 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7314
7315 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7316 returned by __f_setlk.
7317
7318 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7319 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7320
7321 * elf/Makefile (tests-internal): Add tst-create_format1.
7322 * elf/dl-exception.c (_dl_exception_create_format): Support
7323 %x, %lx and %zx.
7324 * elf/tst-create_format1.c: New file.
7325
7326 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7327
7328 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7329 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7330 gnulib.)
7331 * argp/argp-help.c (__argp_failure): Likewise.
7332
7333 2018-11-29 Mao Han <han_mao@c-sky.com>
7334
7335 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7336 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7337 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7338 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7339 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7340 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7341 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7342 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7343 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7344 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7345 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7346 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7347 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7348 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7349 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7350 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7351 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7352 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7353 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7354 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7355 (R_CKCORE_TLS_TPOFF32): New defines.
7356
7357 2018-11-29 Florian Weimer <fweimer@redhat.com>
7358
7359 * posix/Makefile (before-compile): Remove testcases.h and
7360 ptestcases.h.
7361 (generated): Add testcases.h and ptestcases.h.
7362 (testcases.h, ptestcases.h): Move to $(objpfx).
7363 (runtests.o): Add dependency on testcases.h.
7364 (runptests.o): Add dependency on ptestcases.h.
7365 * posix/testcases.h, posix/ptestcases.h: Remove files.
7366 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7367 not touch posix/testcases.h and posix/ptestcases.h.
7368
7369 2018-11-28 Florian Weimer <fweimer@redhat.com>
7370
7371 support: Add signal support to support_capture_subprocess_check.
7372 * support/capture_subprocess.h (support_capture_subprocess_check):
7373 Adjust comment and rename parameter.
7374 * support/support_capture_subprocess_check.c
7375 (print_actual_status): New function.
7376 (support_capture_subprocess_check): Support negative
7377 status_or_signal. Call print_actual_status.
7378 * support/tst-support_capture_subprocess.c (do_test): Call
7379 support_capture_subprocess_check.
7380 * libio/tst-vtables-common.c (termination_status)
7381 (init_termination_status): Remove.
7382 (check_for_termination): Adjust support_capture_subprocess_check
7383 call.
7384 (do_test): Remove call to init_termination_status.
7385
7386 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7387
7388 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7389 source directory instead of a copy.
7390 (CommandList.create_copy_dir): Remove.
7391
7392 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7393
7394 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7395
7396 2018-11-28 Florian Weimer <fweimer@redhat.com>
7397
7398 * support/support.h (support_quote_string): Do not use str
7399 parameter name.
7400
7401 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7402
7403 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7404 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7405
7406 2018-11-27 Florian Weimer <fweimer@redhat.com>
7407
7408 * support/support.h (support_quote_string): Declare.
7409 * support/support_quote_string.c: New file.
7410 * support/tst-support_quote_string.c: Likewise.
7411 * support/Makefile (libsupport-routines): Add
7412 support_quote_string.
7413 (tests): Add tst-support_quote_string.
7414
7415 2018-11-27 Florian Weimer <fweimer@redhat.com>
7416
7417 [BZ #23927]
7418 CVE-2018-19591
7419 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7420 descriptor leak in case of ENODEV error.
7421
7422 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7423
7424 [BZ #19767]
7425 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7426 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7427 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7428
7429 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7430
7431 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7432 Error for unknown lines.
7433
7434 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7435
7436 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7437 Touch additional files.
7438
7439 2018-11-26 Florian Weimer <fweimer@redhat.com>
7440
7441 [BZ #23907]
7442 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7443 double-frees.
7444
7445 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7446
7447 [BZ #19767]
7448 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7449 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7450 SHARED. Include sysdep.h.
7451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7452 ALWAYS_USE_VSYSCALL.
7453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7454 ALWAYS_USE_VSYSCALL.
7455
7456 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7457
7458 [BZ #19767]
7459 * nptl/Makefile (tests-static): Add tst-cond11-static.
7460 (tests): Likewise.
7461 * nptl/tst-cond11-static.c: New File.
7462 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7463 tst-affinity-static.
7464 (tests): Likewise.
7465 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7466 instead of SHARED.
7467 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7468 (USE_VSYSCALL): Likewise.
7469 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7470 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7471 instead of SHARED.
7472 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7473 SHARED.
7474 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7475 New.
7476
7477 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7478
7479 [BZ #23915]
7480 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7481 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7482 Undefine.
7483
7484 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7485
7486 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7487 (tst-cet-legacy-1a-ARGS): New.
7488 ($(objpfx)tst-cet-legacy-1a): New target.
7489 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7490
7491 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7492
7493 * conform/conformtest.py (CompileSubTest.__init__): Set
7494 self.run_early to False.
7495 (ExecuteSubTest.__init__): Likewise.
7496 (HeaderTests.run): Try running all non-optional, non-XFAILed
7497 compilation tests in a single execution of the compiler.
7498
7499 * conform/conformtest.py (CompileSubTest): New class.
7500 (ExecuteSubTest): Likewise.
7501 (ElementTest.run): Rename to gen_subtests. Append tests to
7502 self.subtests instead of running them.
7503 (ConstantTest.run): Likewise.
7504 (SymbolTest.run): Likewise.
7505 (TypeTest.run): Likewise.
7506 (TagTest.run): Likewise.
7507 (FunctionTest.run): Likewise.
7508 (VariableTest.run): Likewise.
7509 (MacroFunctionTest.run): Likewise.
7510 (MacroStrTest.run): Likewise.
7511 (HeaderTests.handle_test_line): Generate subtests for tests.
7512 (HeaderTests.run): Run subtests for tests.
7513
7514 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7515
7516 * math/Versions (GLIBC_2.29): Add pow.
7517 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7518 symbol.
7519 * math/w_pow.c: New file.
7520 * sysdeps/i386/fpu/w_pow.c: New file.
7521 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7522 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7523 and add necessary aliases.
7524 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7525 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7526 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7527 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7528 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7529 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7530 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7531 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7532 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7533 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7534 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7535 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7536 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7537 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7538 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7543 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7544 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7545 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7546 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7547 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7548 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7549 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7550 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7551 __pow.
7552 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7553 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7554 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7555
7556 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7557
7558 * math/Versions (GLIBC_2.29): Add log2.
7559 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7560 symbol.
7561 * math/w_log2.c: New file.
7562 * sysdeps/i386/fpu/w_log2.c: New file.
7563 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7564 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7565 and add necessary aliases.
7566 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7567 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7568 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7569 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7570 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7571 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7572 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7573 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7574 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7575 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7576 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7577 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7578 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7579 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7580 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7585 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7586 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7587 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7588 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7589 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7590 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7591 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7592
7593 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7594
7595 * math/Versions (GLIBC_2.29): Add log.
7596 * math/w_log_compat.c (__log_compat): Change to versioned compat
7597 symbol.
7598 * math/w_log.c: New file.
7599 * sysdeps/i386/fpu/w_log.c: New file.
7600 * sysdeps/ia64/fpu/e_log.S: Update.
7601 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7602 and add necessary aliases.
7603 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7604 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7605 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7606 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7607 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7608 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7609 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7610 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7611 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7612 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7613 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7614 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7615 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7616 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7617 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7622 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7623 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7624 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7625 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7626 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7627 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7628 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7629 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7630 __log.
7631 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7632 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7633 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7634 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7635
7636 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7637
7638 * math/Versions (GLIBC_2.29): Add exp and exp2.
7639 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7640 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7641 * math/w_exp_compat.c (__exp_compat): Likewise.
7642 * math/w_exp.c: New file.
7643 * math/w_exp2.c: New file.
7644 * sysdeps/i386/fpu/w_exp.c: New file.
7645 * sysdeps/i386/fpu/w_exp2.c: New file.
7646 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7647 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7648 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7649 and add necessary aliases.
7650 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7651 and add necessary aliases.
7652 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7653 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7654 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7655 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7656 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7657 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7658 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7659 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7660 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7661 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7662 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7663 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7664 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7665 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7666 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7667 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7668 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7673 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7674 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7675 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7676 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7677 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7678 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7679 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7680 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7681 (__ieee754_exp): Rename to __exp.
7682 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7683 (__ieee754_exp): Rename to __exp.
7684 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7685 (__ieee754_exp): Rename to __exp.
7686 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7687 __exp.
7688 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7689
7690 2018-11-20 DJ Delorie <dj@redhat.com>
7691
7692 * malloc/malloc.c (tcache_entry): Add key field.
7693 (tcache_put): Set it.
7694 (tcache_get): Likewise.
7695 (_int_free): Check for double free in tcache.
7696 * malloc/tst-tcfree1.c: New.
7697 * malloc/tst-tcfree2.c: New.
7698 * malloc/Makefile: Run the new tests.
7699 * manual/probes.texi: Document memory_tcache_double_free probe.
7700
7701 * dlfcn/dlerror.c (check_free): Prevent double frees.
7702
7703 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7704
7705 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7706
7707 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7708
7709 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7710 in tests. Use names for format arguments.
7711 (ConstantTest.run): Likewise.
7712 (SymbolTest.run): Likewise.
7713 (TypeTest.run): Likewise.
7714 (TagTest.run): Likewise.
7715 (FunctionTest.run): Likewise.
7716 (VariableTest.run): Likewise.
7717 (MacroFunctionTest.run): Likewise.
7718 (MacroStrTest.run): Likewise.
7719 (HeaderTests.__init__): Set self.num_tests.
7720 (HeaderTests.handle_test_line): Set test.num. Increment
7721 self.num_tests.
7722
7723 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7724
7725 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7726 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7727 SEEK_SET.
7728
7729 2018-11-19 Mao Han <han_mao@c-sky.com>
7730
7731 * scripts/config.guess: Update to version 2018-08-29.
7732 * scripts/config.sub: Update to version 2018-08-29.
7733
7734 2018-11-19 Florian Weimer <fweimer@redhat.com>
7735
7736 support: Print timestamps in timeout handler.
7737 * support/support_test_main.c (print_timestamp): New function.
7738 (signal_handler): Use it to print the termination time and the
7739 time of the last write to standard output.
7740
7741 2018-11-16 Zack Weinberg <zackw@panix.com>
7742 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7743
7744 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7745 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7746 argument.
7747 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7748 and add flags argument. Check flags instead of __ldbl_is_dbl when
7749 deciding whether to set is_long_double.
7750 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7751 passing zero for flags argument.
7752 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7753
7754 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7755 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7756 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7757 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7758 variable names. Remove libc_hidden_def/libc_hidden_proto from
7759 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7760 longer called from within the library.
7761 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7762 for __nldbl___vstrfmon_l, declare it explicitly.
7763
7764 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7765
7766 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7767
7768 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7769 macros
7770 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7771 F_SETLK64, F_SETLKW64, respectively.
7772 * sysdeps/mach/hurd/f_setlk.c: New file.
7773 * sysdeps/mach/hurd/f_setlk.h: New file.
7774 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7775 f_setlk.
7776 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7777 (__libc_fcntl): Move non-flock operations to...
7778 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7779 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7780
7781 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7782
7783 mktime: DEBUG_MKTIME cleanup
7784 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7785 And it’s no longer needed now that glibc and Gnulib both have
7786 their own testing mechanisms for mktime.
7787 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7788
7789 mktime: fix non-EOVERFLOW errno handling
7790 [BZ#23789]
7791 mktime was not properly reporting failures when the underlying
7792 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7793 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7794 The problem could happen on non-glibc platforms, with Gnulib.
7795 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7796 (tm_diff): ... this simpler function, which does not change errno.
7797 All callers changed to deal with errno themselves.
7798 (ranged_convert, __mktime_internal): Return failure immediately if
7799 the underlying function reports any failure other than EOVERFLOW.
7800 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7801 gap code fails.
7802
7803 mktime: fix bug with Y2038 DST transition
7804 [BZ#23789]
7805 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7806 mishandle a DST transition that jumps over the Y2038 boundary.
7807 No such DST transitions are known so this is only a theoretical
7808 bug, but we might as well do things right.
7809
7810 mktime: make more room for overflow
7811 [BZ#23789]
7812 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7813 This is so that we can add tm_diff results to a previous guess,
7814 which will be useful in a later patch.
7815
7816 mktime: simplify offset guess
7817 [BZ#23789]
7818 * time/mktime.c (__mktime_internal): Omit excess precision.
7819
7820 mktime: new test for mktime failure
7821 [BZ#23789]
7822 Based on a test suggested by Albert Aribaud in:
7823 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7824 * time/Makefile (tests): Add bug-mktime4.
7825 * time/bug-mktime4.c: New file.
7826
7827 mktime: fix EOVERFLOW bug
7828 [BZ#23789]
7829 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7830 Include libc-config.h, not config.h, for __set_errno.
7831 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7832
7833 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7834
7835 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7836 __attribute_copy__ to copy attributes from name. Drop static qualifier
7837 to avoid warnings about leaf attribute not having effect on static
7838 functions.
7839
7840 2018-11-13 Florian Weimer <fweimer@redhat.com>
7841
7842 * malloc/malloc.c (fastbin_push_entry): New function.
7843 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7844 (REMOVE_FB): Remove macro.
7845 (_int_malloc): Use fastbin_pop_entry and reindent.
7846 (_int_free): Use fastbin_push_entry.
7847 (malloc_consolidate): Use atomic_exchange_acquire.
7848
7849 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7850
7851 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7852 alias attribute, not with strong_alias.
7853
7854 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7855 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7856 with additional parameter thread.
7857 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7858 in terms of __hidden_ver2.
7859 (hidden_tls_def): New macro.
7860 (libc_hidden_tls_def): Likewise.
7861 (rtld_hidden_tls_def): Likewise.
7862 (libm_hidden_tls_def): Likewise.
7863 (libmvec_hidden_tls_def): Likewise.
7864 (libresolv_hidden_tls_def): Likewise.
7865 (librt_hidden_tls_def): Likewise.
7866 (libdl_hidden_tls_def): Likewise.
7867 (libnss_files_hidden_tls_def): Likewise.
7868 (libnsl_hidden_tls_def): Likewise.
7869 (libnss_nisplus_hidden_tls_def): Likewise.
7870 (libutil_hidden_tls_def): Likewise.
7871 (libutil_hidden_tls_def): Likweise.
7872 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7873 libc_hidden_tls_def.
7874 (__sim_disabled_exceptions_thread): Likewise.
7875 (__sim_round_mode_thread): Likewise.
7876
7877 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7878 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7879 copy attributes from name.
7880
7881 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7882
7883 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7884 Use __attribute_copy__ to copy attributes from name.
7885
7886 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7887 with __hidden_ver1 call.
7888 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7889 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7890 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7891 (__cosf): Do not declare here.
7892 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7893 (__sincosf): Do not declare here.
7894 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7895 (__sinf): Do not declare here.
7896
7897 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7898 (__BIG_ENDIAN): Likewise.
7899 (__BYTE_ORDER): Likewise.
7900 (strong_alias): Likewise.
7901 (_strong_alias): Likewise.
7902
7903 2018-11-12 Florian Weimer <fweimer@redhat.com>
7904
7905 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7906 function. Move after the definition of in_smallbin_range. Do not
7907 use __builtin_expect for paths that lead to a noreturn function.
7908 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7909 because it is unclear whether this is in fact an unlikely
7910 condition.
7911 (_int_malloc, _int_free): Adjust.
7912 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7913 variables.
7914 * malloc/arena.c (heap_trim): Likewise.
7915
7916 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7917
7918 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7919 it, free it if needed.
7920 (reauthenticate): Test and use ccwdir.
7921 (child_init_port): In non-resetids case, test and use ccwdir.
7922 (child_chdir): New nested function to set ccwdir.
7923 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7924 * hurd/hurd/port.h (_hurd_port_move): New function.
7925 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7926 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7927 * hurd/Versions (_hurd_port_move): Export function.
7928 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7929 symbol.
7930 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7931 of dtablesize for allocating dtable_cloexec.
7932
7933 2018-11-09 Martin Sebor <msebor@redhat.com>
7934
7935 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7936 it's already defined.
7937 (_strong_alias): Use __attribute_copy__.
7938 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7939 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7940 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7941 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7942 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7943 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7944 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7945 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7946 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7947 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7948 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7949 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7950 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7951 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7952 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7953 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7954 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7955 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7956 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7957
7958 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7959
7960 * misc/tst-efgcvt.c: Include support/check.h and
7961 support/test-driver.c. Do not include test-skeleton.c.
7962 (error_count): Remove.
7963 (output_error): Replace increments to error_count with calls to
7964 support_record_failure.
7965 (output_r_error): Likewise.
7966 (special): Likewise.
7967 (do_test): Unconditionally return zero.
7968 (TEST_FUNCTION): Remove.
7969
7970 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7971
7972 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7973 not $(@D)/scratch.
7974 ($(linknamespace-header-tests)): Likewise.
7975
7976 * conform/conformtest.py: New file.
7977 * conform/conformtest.pl: Remove.
7978 * conform/GlibcConform.pm: Likewise.
7979 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7980 (KEYWORDS_C99): Likewise.
7981 (KEYWORDS): Likewise.
7982 * conform/Makefile ($(conformtest-header-tests)): Use
7983 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7984 option. Use --header instead of --headers.
7985 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7986 function entries.
7987 * conform/data/spawn.h-data: Likewise.
7988 * conform/data/fcntl.h-data (openat): Add space after function
7989 name.
7990 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7991 (wcscasecmp_l): Likewise.
7992 * conform/data/termios.h-data (c_cc): Add space after element
7993 name.
7994
7995 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7996
7997 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7998 instead of manually comparing and reporting mismatching strings.
7999 * misc/tst-ldbl-error.c (do_one_test): Likewise.
8000 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
8001
8002 2018-11-08 Joseph Myers <joseph@codesourcery.com>
8003
8004 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
8005 __ASSUME_SOCKETCALL.
8006 * sysdeps/unix/sysv/linux/i386/kernel-features.h
8007 (__ASSUME_SOCKETCALL): Remove.
8008 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8009 (__ASSUME_SOCKETCALL): Likewise.
8010 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8011 (__ASSUME_SOCKETCALL): Likewise.
8012 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8013 (__ASSUME_SOCKETCALL): Likewise.
8014 * sysdeps/unix/sysv/linux/s390/kernel-features.h
8015 (__ASSUME_SOCKETCALL): Likewise.
8016 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8017 (__ASSUME_SOCKETCALL): Likewise.
8018 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8019 (__ASSUME_SOCKETCALL): Likewise.
8020
8021 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
8022
8023 [BZ #23509]
8024 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8025 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8026 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8027 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8028 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
8029 lc_unknown.
8030
8031 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
8032
8033 [BZ #17630]
8034 * resolv/tst-resolv-network.c: Add test for getnetbyname.
8035
8036 2018-11-07 Joseph Myers <joseph@codesourcery.com>
8037
8038 [BZ #23867]
8039 * sysdeps/unix/sysv/linux/arm/kernel-features.h
8040 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8041 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8042 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8043
8044 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8045
8046 * support/support_test_compare_string.c
8047 (support_test_compare_string): Fix printf format.
8048
8049 2018-11-07 Florian Weimer <fweimer@redhat.com>
8050
8051 Implement TEST_COMPARE_STRING.
8052 * support/check.h (TEST_COMPARE_STRING): Define.
8053 (support_test_compare_string): Declare.
8054 * support/Makefile (libsupport-routines): Add
8055 support_test_compare_string.
8056 (tests): Add tst-test_compare_string.
8057 * support/support_test_compare_string.c: New file.
8058 * support/tst-test_compare_string.c: Likewise.
8059
8060 2018-11-07 Andreas Schwab <schwab@suse.de>
8061
8062 [BZ #23864]
8063 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8064 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8065 Undef.
8066
8067 2018-11-06 Joseph Myers <joseph@codesourcery.com>
8068
8069 [BZ #23862]
8070 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8071 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8072 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8073 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8074 Likewise.
8075
8076 2018-11-06 Florian Weimer <fweimer@redhat.com>
8077
8078 [BZ #17405]
8079 * posix/Makefile (routines): Add spawn_faction_addchdir.
8080 (tests): Add tst-spawn-chdir.
8081 * posix/Versions (GLIBC_2.29): Add
8082 posix_spawn_file_actions_addchdir_np.
8083 * posix/spawn_faction_addchdir.c: New file.
8084 * posix/spawn_faction_destroy.c
8085 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8086 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8087 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8088 chdir_action.
8089 * posix/tst-spawn-chdir.c: New file.
8090 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8091 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8092 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8093 posix_spawn_file_actions_addchdir_np.
8094 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8095 Likewise.
8096 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8097 Likewise.
8098 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8099 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8100 Likewise.
8101 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8102 Likewise.
8103 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8104 Likewise.
8105 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8106 Likewise.
8107 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8108 Likewise.
8109 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8110 Likewise.
8111 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8112 (GLIBC_2.29): Likewise.
8113 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8114 (GLIBC_2.29): Likewise.
8115 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8116 (GLIBC_2.29): Likewise.
8117 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8118 (GLIBC_2.29): Likewise.
8119 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8120 Likewise.
8121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8122 (GLIBC_2.29): Likewise.
8123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8124 (GLIBC_2.29): Likewise.
8125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8126 (GLIBC_2.29): Likewise.
8127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8128 (GLIBC_2.29): Likewise.
8129 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8130 Likewise.
8131 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8132 Likewise.
8133 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8134 Likewise.
8135 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8137 Likewise.
8138 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8139 Likewise.
8140 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8141 Likewise.
8142 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8143 Likewise.
8144
8145 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8146
8147 * misc/Makefile (tests): Add tst-ldbl-error.
8148 * misc/tst-ldbl-error.c: New file.
8149
8150 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8151
8152 * misc/Makefile (tests): Add tst-ldbl-warn.
8153 * misc/tst-ldbl-warn.c: New file.
8154
8155 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8156
8157 * argp/Makefile (tests): Add tst-ldbl-argp.
8158 * argp/tst-ldbl-argp.c: New file.
8159
8160 2018-11-05 Arjun Shankar <arjun@redhat.com>
8161
8162 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8163 __gconv_path_elem and call __gconv_get_path unconditionally.
8164
8165 2018-11-05 Andreas Schwab <schwab@suse.de>
8166
8167 [BZ #22927]
8168 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8169 creating the first helper thread failed.
8170
8171 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8172
8173 * sysdeps/mach/hurd/msync.c: New file.
8174
8175 2018-11-02 Florian Weimer <fweimer@redhat.com>
8176
8177 * support/shell-container.c (copy_func): Call
8178 support_copy_file_range instead of copy_file_range to support
8179 cross-device copies.
8180
8181 2018-11-02 Florian Weimer <fweimer@redhat.com>
8182
8183 * support/test-container.c: Include <libc-pointer-arith.h> for
8184 ALIGN_UP.
8185
8186 2018-11-01 Zong Li <zong@andestech.com>
8187
8188 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8189 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8190 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8191 (__FP_FRAC_SET_8): Add implementation for RV32 use.
8192
8193 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8194 variable to avoid overlap arguments.
8195
8196 2018-11-01 Joseph Myers <joseph@codesourcery.com>
8197
8198 * posix/bug-regex22.c (main): Use puts with distinct error
8199 messages for unexpected success of re_compile_pattern, not printf
8200 with NULL argument to %s.
8201
8202 * stdio-common/bug22.c: Include <libc-diag.h>.
8203 (do_test): Disable -Wformat-overflow= warnings around fprintf
8204 calls outputting more than INT_MAX characters.
8205 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8206 around printf call with NULL %s argument.
8207
8208 [BZ #23848]
8209 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8210 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8211 Undefine.
8212 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8213 (__ASSUME_RECVMSG_SYSCALL): Likewise.
8214 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8215 (__ASSUME_SENDTO_SYSCALL): Likewise.
8216 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8217 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8218 [!__arch64__].
8219 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8220 (__ASSUME_CONNECT_SYSCALL): Likewise.
8221 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8222 (__ASSUME_RECVFROM_SYSCALL): Likewise.
8223 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8224 Define.
8225 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8226 Likewise.
8227 [__LINUX_KERNEL_VERSION >= 0x040400]
8228 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8229 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8230 Remove.
8231 (listen): Likewise.
8232 (setsockopt): Likewise.
8233
8234 2018-11-01 Fredrik Noring <noring@nocrew.org>
8235
8236 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8237 with the ISA override.
8238
8239 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
8240
8241 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8242 #endif.
8243
8244 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8245
8246 * manual/errno.texi (EIEIO): Document how translators should
8247 translate the error message.
8248 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
8249 printing trailing whitespaces refused by git.
8250 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8251 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8252 * hurd/Makefile (user-interfaces): Add pci.
8253
8254 2018-10-30 Joseph Myers <joseph@codesourcery.com>
8255
8256 * conform/linknamespace.py: New file.
8257 * conform/linknamespace.pl: Remove file.
8258 * conform/Makefile ($(linknamespace-header-tests)): Use
8259 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
8260 option.
8261
8262 2018-10-30 Florian Weimer <fweimer@redhat.com>
8263
8264 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8265 memory leaks.
8266
8267 2018-10-30 Florian Weimer <fweimer@redhat.com>
8268
8269 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8270
8271 2018-10-30 Florian Weimer <fweimer@redhat.com>
8272
8273 * stdlib/tst-strtod-overflow.c (do_test): Switch to
8274 support_blob_repeat.
8275
8276 2018-10-30 Florian Weimer <fweimer@redhat.com>
8277
8278 Avoid spurious test failures in stdlib/test-bz22786.
8279 * support/Makefile (libsupport-routines): Add blob_repeat.
8280 (tests): Add tst-support_blob_repeat.
8281 * support/blob_repeat.h: New file.
8282 * support/blob_repeat.c: Likewise.
8283 * support/tst-support_blob_repeat.c: Likewise.
8284 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8285 support_blob_repeat_allocate.
8286
8287 2018-10-30 Andreas Schwab <schwab@suse.de>
8288
8289 [BZ #23125]
8290 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8291 Don't use tail call.
8292 * elf/tst-unwind-main.c: New file.
8293 * elf/Makefile (tests): Add tst-unwind-main.
8294 (CFLAGS-tst-unwind-main.c): Define.
8295
8296 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8297
8298 [BZ #23791]
8299 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8300 n_cs_precedes to 0.
8301 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8302
8303 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8304
8305 * conform/glibcconform.py: Do not import shutil.
8306 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8307 of mkdtemp.
8308
8309 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8310 critic_missing for versions before 3.4.
8311 * configure: Regenerated.
8312 * manual/install.texi (Tools for Compilation): Document
8313 requirement for Python to build glibc.
8314 * INSTALL: Regenerated.
8315 * Rules [PYTHON]: Make code unconditional.
8316 * benchtests/Makefile [PYTHON]: Likewise.
8317 * conform/Makefile [PYTHON]: Likewise.
8318 * manual/Makefile [PYTHON]: Likewise.
8319 * math/Makefile [PYTHON]: Likewise.
8320
8321 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8322
8323 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8324 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8325 answer to interrupt_operation, return EIEIO instead of EINTR.
8326 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8327 _hurd_intr_rpc_msg_about_to global point to start of controlled
8328 assembly snippet. Make it check canceled flag.
8329 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8330 the _hurd_intr_rpc_msg_about_to point.
8331 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8332 issue, remove cancel flag check.
8333
8334 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8335
8336 * scripts/build-many-glibcs.py: Remove compatibility for missing
8337 os.cpu_count and re.fullmatch.
8338
8339 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8340
8341 [BZ #23822]
8342 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8343 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8344 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8345
8346 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8347
8348 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8349 macro.
8350
8351 2018-10-25 Florian Weimer <fweimer@redhat.com>
8352
8353 [BZ #23562]
8354 [BZ #23821]
8355 XFAIL siginfo_t si_band conform test on sparc64.
8356 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8357 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8358 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8359 (conformtest-xfail-conds): Add sparc64-linux.
8360 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8361 sparc64.
8362 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8363
8364 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8365
8366 * elf/elf.h (NT_MIPS_DSP): New macro.
8367 (NT_MIPS_FP_MODE): Likewise.
8368
8369 2018-10-25 Zong Li <zong@andestech.com>
8370
8371 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8372 name by adding the file extension (.so).
8373
8374 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8375
8376 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8377 (test-xfail-ISO11/threads.h/linknamespace,
8378 test-xfail-ISO11/threads.h/conform): Add.
8379
8380 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8381
8382 * math/gen-libm-test.py: Import os.
8383 (ALL_FLOATS_MANUAL): New constant.
8384 (ALL_FLOATS_SUFFIX): Likewise.
8385 (Ulps.all_functions): New function.
8386 (real_all_ulps): Likewise.
8387 (generate_err_table_sub): Likewise.
8388 (generate_err_table): Likewise.
8389 (main): Handle -s and -m options.
8390 * manual/libm-err-tab.pl: Remove.
8391 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8392 instead of libm-err-tab.pl.
8393 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8394 != no].
8395 * manual/install.texi (Tools for Compilation): Document
8396 requirement for Python to build manual.
8397 * INSTALL: Regenerated.
8398
8399 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8400
8401 * bits/time64.h: New file.
8402 * include/time.h: Replace internal_time_t with __time64_t.
8403 * posix/bits/types (__time64_t): Add.
8404 * stdlib/Makefile: Add bits/time64.h to includes.
8405 * time/tzfile.c: Replace internal_time_t with __time64_t.
8406
8407 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8408
8409 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8410 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8411 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8412 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8413 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8414 prototype.
8415 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8416 * posix/spawn_faction_addclose.c
8417 (__posix_spawn_file_actions_addclose): Add hidden definition.
8418 * posix/spawn_faction_adddup2.c
8419 (__posix_spawn_file_actions_adddup2): Likewise.
8420 * posix/spawn_faction_destroy.c
8421 (__posix_spawn_file_actions_destroy): Likewise.
8422 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8423 Likewise.
8424 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8425 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8426 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8427 Likewise.
8428 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8429 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8430 Likewise.
8431
8432 2018-10-24 Andreas Schwab <schwab@suse.de>
8433
8434 [BZ #18093]
8435 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8436 format cache.
8437 * elf/cache.c (print_cache): Likewise.
8438
8439 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8440
8441 * bits/timesize.h: New file.
8442 * stdlib/Makefile (headers): Add bits/timesize.h.
8443 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8444 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8445 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8446 (__SEM_PAD_AFTER_TIME): Likewise.
8447 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8448 (__SHM_PAD_AFTER_TIME): Likewise.
8449 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8450 (__MSQ_PAD_BEFORE_TIME): Likewise.
8451 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8452 (__SEM_PAD_BEFORE_TIME): Likewise.
8453 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8454 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8455 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8456 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8457 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8458 (__MSQ_PAD_BEFORE_TIME): Likewise.
8459 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8460 (__SEM_PAD_BEFORE_TIME): Likewise.
8461 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8462 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8463 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8464 (__MSQ_PAD_BEFORE_TIME): Likewise.
8465 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8466 (__SEM_PAD_BEFORE_TIME): Likewise.
8467 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8468 (__SHM_PAD_BEFORE_TIME): Likewise.
8469 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8470 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8471 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8472
8473 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8474
8475 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8476 USE_RDTSCP is defined.
8477 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8478 USE_RDTSCP is defined.
8479
8480 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8481
8482 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8483 defined.
8484
8485 [BZ #23709]
8486 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8487 independently of other flags.
8488
8489 2018-10-23 Florian Weimer <fweimer@redhat.com>
8490
8491 * time/tst-mktime2.c (N_STRINGS): Remove.
8492 (set_timezone): New function.
8493 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8494 (mktime_test1): Report localtime failure and check errno value.
8495 Use TEST_COMPARE.
8496 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8497 (do_test): Remove alarm call. Use set_timezone and array_length.
8498
8499 2018-10-23 Andreas Schwab <schwab@suse.de>
8500
8501 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8502 (__start_context): Use END instead of PSEUDO_END.
8503
8504 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8505
8506 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8507 version to 4.19.
8508
8509 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8510 version to 4.19.
8511
8512 [BZ #23793]
8513 * wcsmbs/c32rtomb.c: New file.
8514 * wcsmbs/mbrtoc32.c: Likewise.
8515 * wcsmbs/tst-c32-state.c: Likewise.
8516 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8517 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8518 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8519 (tests): Add tst-c32-state.
8520 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8521 $(gen-locales).
8522
8523 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8524
8525 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8526 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8527
8528 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8529
8530 [BZ #23794]
8531 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8532 pair and return 0 in that case, and use saved character to
8533 interpret following character.
8534 * wcsmbs/tst-c16-surrogate.c: New file.
8535 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8536 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8537 Depend on $(gen-locales)
8538
8539 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8540
8541 [BZ #23562]
8542 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8543 (struct siginfo_t): Use correct type for si_band.
8544
8545 2018-10-19 Florian Weimer <fweimer@redhat.com>
8546
8547 [BZ #23689]
8548 * resource/bits/types/struct_rusage.h (struct rusage): Update
8549 comment on struct. Remove extraneous field comment.
8550
8551 2018-10-18 David S. Miller <davem@davemloft.net>
8552
8553 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8554 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8555 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8556 sysdep_routines in subdir elf.
8557 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8558 version for __vdso_clock_gettime.
8559 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8560 Define.
8561 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8562 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8563
8564 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8565
8566 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 * sysdeps/i386/init-arch.h: Removed.
8569 * sysdeps/i386/i586/init-arch.h: Likewise.
8570 * sysdeps/i386/i686/init-arch.h: Likewise.
8571 * sysdeps/i386/i686/hp-timing.h: Likewise.
8572 * sysdeps/x86_64/hp-timing.h: Likewise.
8573 * sysdeps/i386/isa.h: New file.
8574 * sysdeps/i386/i586/isa.h: Likewise.
8575 * sysdeps/i386/i686/isa.h: Likewise.
8576 * sysdeps/x86_64/isa.h: Likewise.
8577 * sysdeps/x86/hp-timing.h: New file.
8578 * sysdeps/x86/init-arch.h: Include <isa.h>.
8579
8580 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8581
8582 * math/libm-test-pow.inc (pow_test_data): Do not allow
8583 divide-by-zero exception for pow(+/- 0, -Inf).
8584
8585 2018-10-17 Zack Weinberg <zackw@panix.com>
8586
8587 * manual/job.texi (Job Control is Optional): Remove node, as
8588 job control has not been optional in quite some time.
8589 (Job Control): Mention briefly that systems older than
8590 POSIX.1-2001 might not support job control.
8591 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8592 defined on systems conforming to POSIX.1-2001.
8593
8594 2018-10-17 Arjun Shankar <arjun@redhat.com>
8595
8596 [BZ #22062]
8597 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8598 indentation.
8599 * (__gconv_read_conf): Mark function static.
8600 * (once): New static variable.
8601 * (__gconv_load_conf): New function.
8602 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8603 * iconv/gconv_db.c (once): Remove static variable.
8604 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8605 __gconv_read_conf.
8606 * (__gconv_find_transform): Likewise.
8607 * iconv/tst-iconv-mt.c: New test.
8608 * iconv/Makefile: Add tst-iconv_mt.
8609
8610 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8611
8612 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8613 bits/shm-pad.h.
8614 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8615 (shmatt_t): Define as __syscall_ulong_t.
8616 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8617 and [__SHM_PAD_AFTER_TIME].
8618 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8619 Define shm_segsz and associated padding based on
8620 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8621 Use __syscall_ulong_t instead of unsigned long int.
8622 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8623 unsigned long int.
8624 [__USE_MISC] (struct shm_info): Likewise.
8625 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8626 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8627 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8628 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8629 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8630 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8631 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8632 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8633 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8634 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8635 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8636
8637 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8638 bits/shmlba.h.
8639 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8640 (SHMLBA): Remove macro.
8641 (__getpagesize): Remove function declaration.
8642 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8643 <bits/shmlba.h>.
8644 (SHMLBA): Remove macro.
8645 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8646 <bits/shmlba.h>.
8647 (SHMLBA): Remove macro.
8648 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8649 <bits/shmlba.h>.
8650 (SHMLBA): Remove macro.
8651 (__getpagesize): Remove function declaration.
8652 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8653 <bits/shmlba.h>.
8654 (SHMLBA): Remove macro.
8655 (__getshmlba): Remove function declaration.
8656 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8657 (SHMLBA): Remove macro.
8658 (__getpagesize): Remove function declaration.
8659 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8660 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8661 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8662 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8663 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8664 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8665 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8666 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8667 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8668 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8669
8670 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8671
8672 [BZ #23275]
8673 * nptl/tst-mutex10.c: New File.
8674 * nptl/Makefile (tests): Add tst-mutex10.
8675 (tst-mutex10-ENV): New variable.
8676 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8677 Ensure that elision path is used if elision is available.
8678 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8679 Likewise.
8680 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8681 Likewise.
8682 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8683 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8684 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8685 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8686 Likewise.
8687 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8688 (__pthread_mutex_cond_lock_adjust): Likewise.
8689 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8690 Likewise.
8691 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8692 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8693 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8694 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8695 Add comments.
8696 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8697 Use atomic_load_relaxed and atomic_store_relaxed.
8698 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8699 Use atomic_store_relaxed.
8700
8701 2018-10-17 Andreas Schwab <schwab@suse.de>
8702
8703 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8704 * crypt/badsalttest.c (TIMEOUT): Likewise.
8705 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8706 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8707 * io/test-lfs.c (TIMEOUT): Likewise.
8708 * libio/tst-atime.c (TIMEOUT): Likewise.
8709 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8710 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8711 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8712 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8713 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8714 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8715 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8716 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8717 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8718 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8719 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8720 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8721 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8722 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8723 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8724 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8725 * nptl/tst-once2.c (TIMEOUT): Likewise.
8726 * nptl/tst-once3.c (TIMEOUT): Likewise.
8727 * nptl/tst-once4.c (TIMEOUT): Likewise.
8728 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8729 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8730 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8731 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8732 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8733 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8734 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8735 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8736 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8737 * posix/tst-chmod.c (TIMEOUT): Likewise.
8738 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8739 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8740 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8741 * posix/tst-regex2.c (TIMEOUT): Likewise.
8742 * posix/tst-waitid.c (TIMEOUT): Likewise.
8743 * rt/tst-aio.c (TIMEOUT): Likewise.
8744 * rt/tst-aio10.c (TIMEOUT): Likewise.
8745 * rt/tst-aio4.c (TIMEOUT): Likewise.
8746 * rt/tst-aio5.c (TIMEOUT): Likewise.
8747 * rt/tst-aio6.c (TIMEOUT): Likewise.
8748 * rt/tst-aio64.c (TIMEOUT): Likewise.
8749 * rt/tst-aio7.c (TIMEOUT): Likewise.
8750 * rt/tst-aio9.c (TIMEOUT): Likewise.
8751 * rt/tst-clock.c (TIMEOUT): Likewise.
8752 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8753 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8754 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8755 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8756 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8757 * rt/tst-timer4.c (TIMEOUT): Likewise.
8758 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8759 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8760 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8761 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8762 * time/tst-ftime.c (TIMEOUT): Likewise.
8763 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8764
8765 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8766
8767 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8768 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8769 for thunderX2.
8770
8771 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8772
8773 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8774 bits/sem-pad.h.
8775 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8776 instead of <bits/wordsize.h>.
8777 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8778 and [__SEM_PAD_AFTER_TIME].
8779 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8780 __syscall_ulong_t instead of unsigned long int.
8781 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8782 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8783 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8784 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8785 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8786 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8787 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8788 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8789 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8790 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8791 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8792
8793 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8794
8795 regex: simplify by using intprops.h
8796 [BZ#23744]
8797 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8798 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8799 intprops.h defines them.
8800
8801 regex: __builtin_expect → __glibc_unlikely
8802 [BZ#23744]
8803 This refactoring was prompted by a problem when the regex code is
8804 used as part of Gnulib and when the builder’s compiler does not grok
8805 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8806 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8807 Although this refactoring does not fix the problem directly,
8808 we might as well have Gawk use the now-preferred glibc style for when
8809 __builtin_expect is unavailable.
8810 * posix/regex_internal.h (BE): Remove.
8811 All uses replaced by __glibc_unlikely or __glibc_likely.
8812
8813 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8814
8815 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8816 bits/msq-pad.h.
8817 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8818 instead of <bits/wordsize.h>.
8819 (msgqnum_t): Define as __syscall_ulong_t.
8820 (msglen_t): Likewise.
8821 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8822 and [__MSQ_PAD_AFTER_TIME].
8823 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8824 __syscall_ulong_t instead of unsigned long int.
8825 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8826 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8827 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8828 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8829 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8830 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8831 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8832 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8833 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8834 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8835 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8836
8837 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8838
8839 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8840 (struct shmid_ds): Condition padding after time fields on
8841 [__WORDSIZE == 32].
8842 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8843 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8844 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8845
8846 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8847 (struct semid_ds): Condition padding after time fields on
8848 [__WORDSIZE == 32].
8849 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8850 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8851 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8852 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8853
8854 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8855 (struct msqid_ds): Condition padding after time fields on
8856 [__WORDSIZE == 32].
8857 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8858 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8859 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8860 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8861
8862 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8863
8864 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8865
8866 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8867
8868 * libio/tst-readline.c (TIMEOUT): Define.
8869
8870 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8871
8872 mktime fix for Gnulib + coreutils
8873 [BZ#23745]
8874 This fix affects only Gnulib. Problem discovered when
8875 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8876 * time/mktime.c:
8877 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8878 Do not define since it is not used. Defining an unused static
8879 function prompts a warning from GCC when Coreutils is configured
8880 with --enable-gcc-warnings.
8881
8882 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8883
8884 * benchtests/scripts/compare_bench.py (main): set float type on
8885 threshold argument.
8886
8887 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8888
8889 [BZ #23740]
8890 * localedata/locales/kl_GL (mon): Update, the relative case.
8891 (alt_mon): Add, fill with month names in the nominative case.
8892 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8893 (d_fmt): Set to "%b %d %Y".
8894
8895 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8896
8897 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8898 <bits/mman-linux.h>.
8899 (PROT_READ): Don't define here.
8900 (PROT_WRITE): Likewise.
8901 (PROT_EXEC): Likewise.
8902 (PROT_NONE): Likewise.
8903 (PROT_GROWSDOWN): Likewise.
8904 (PROT_GROWSUP): Likewise.
8905 (MAP_SHARED): Likewise.
8906 (MAP_PRIVATE): Likewise.
8907 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8908 [__USE_MISC] (MAP_FILE): Likewise.
8909 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8910 [__USE_MISC] (MAP_ANON): Likewise.
8911 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8912 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8913 (MCL_CURRENT): Likewise.
8914 (MCL_FUTURE): Likewise.
8915 (MCL_ONFAULT): Likewise.
8916 [__USE_MISC] (MADV_NORMAL): Likewise.
8917 [__USE_MISC] (MADV_RANDOM): Likewise.
8918 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8919 [__USE_MISC] (MADV_WILLNEED): Likewise.
8920 [__USE_MISC] (MADV_DONTNEED): Likewise.
8921 [__USE_MISC] (MADV_FREE): Likewise.
8922 [__USE_MISC] (MADV_REMOVE): Likewise.
8923 [__USE_MISC] (MADV_DONTFORK): Likewise.
8924 [__USE_MISC] (MADV_DOFORK): Likewise.
8925 [__USE_MISC] (MADV_HWPOISON): Likewise.
8926 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8927 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8928 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8929 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8930 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8931 (__MAP_ANONYMOUS): New macro.
8932 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8933 <bits/mman-linux.h> inclusion.
8934 (MAP_FIXED): Likewise.
8935 (MS_SYNC): Likewise.
8936 (MS_ASYNC): Likewise.
8937 (MS_INVALIDATE): Likewise.
8938 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8939 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8940 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8941 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8942 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8943 [__USE_MISC] (MADV_DODUMP): Likewise.
8944 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8945 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8946
8947 [BZ #23735]
8948 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8949 Define.
8950 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8951 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8952 Add test-nldbl-redirect.
8953 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8954 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8955 $(objpfx)libnldbl_nonshared.a.
8956
8957 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8958
8959 * support/support.h (support_objdir_elf_ldso): New variable.
8960 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8961 * support/Makefile (CFLAGS-support_paths.c): Add definition
8962 for OBJDIR_ELF_LDSO_PATH.
8963 * support/test-container.c (main): Search for the ld.so
8964 which is also used by the testsuite.
8965
8966 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8967
8968 [BZ #20209]
8969 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8970 should be "sap" rather than "sab".
8971 (day): Fix spelling of Sunday, should be "sapaat" rather than
8972 "sabaat".
8973
8974 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8975
8976 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8977
8978 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8979
8980 [BZ #19444]
8981 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8982 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8983 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8984
8985 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8986
8987 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8988
8989 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8990
8991 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8992 Add -mrtm.
8993 (CFLAGS-elision-unlock.c): Likewise.
8994 (CFLAGS-elision-timed.c): Likewise.
8995 (CFLAGS-elision-trylock.c): Likewise.
8996 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8997
8998 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8999
9000 [BZ #21037]
9001 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
9002 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
9003 new fd_to_filename interface.
9004 * libio/freopen64.c (freopen64): Likewise.
9005 * libio/tst-memstream.h: New file.
9006 * libio/tst-memstream4.c: Likewise.
9007 * libio/tst-wmemstream4.c: Likewise.
9008 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
9009 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9010 and remove internal dynamic allocation.
9011
9012 2018-10-01 Joseph Myers <joseph@codesourcery.com>
9013
9014 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9015 (MREMAP_MAYMOVE): Do not define here.
9016 [__USE_GNU] (MREMAP_FIXED): Likewise.
9017 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9018 (MREMAP_MAYMOVE): Define here instead.
9019 [__USE_GNU] (MREMAP_FIXED): Likewise.
9020 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9021 (MREMAP_MAYMOVE): Remove.
9022 [__USE_GNU] (MREMAP_FIXED): Likewise.
9023
9024 2018-09-28 Joseph Myers <joseph@codesourcery.com>
9025
9026 * math/fromfp.h: Do not include <math_private.h>.
9027 * math/s_cacosh_template.c: Likewise.
9028 * math/s_casin_template.c: Likewise.
9029 * math/s_casinh_template.c: Likewise.
9030 * math/s_ccos_template.c: Likewise.
9031 * math/s_cproj_template.c: Likewise.
9032 * math/s_fdim_template.c: Likewise.
9033 * math/s_fmaxmag_template.c: Likewise.
9034 * math/s_fminmag_template.c: Likewise.
9035 * math/s_iseqsig_template.c: Likewise.
9036 * math/s_ldexp_template.c: Likewise.
9037 * math/s_nextdown_template.c: Likewise.
9038 * math/w_log1p_template.c: Likewise.
9039 * math/w_scalbln_template.c: Likewise.
9040 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9041 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9042 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9043 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9044 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9045 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9046 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9047 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9048 * sysdeps/i386/fpu/s_atanl.c: Likewise.
9049 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9050 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9051 * sysdeps/i386/fpu/s_fdim.c: Likewise.
9052 * sysdeps/i386/fpu/s_logbl.c: Likewise.
9053 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9054 * sysdeps/i386/fpu/s_significandl.c: Likewise.
9055 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9056 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9057 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9058 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9059 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9060 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9061 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9062 * sysdeps/ieee754/k_standardf.c: Likewise.
9063 * sysdeps/ieee754/k_standardl.c: Likewise.
9064 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9065 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9066 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9067 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9068 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9069 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9070 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9071 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9072 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9073 * sysdeps/ieee754/s_signgam.c: Likewise.
9074 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9075 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9076 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9077 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9078 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9079 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9080 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9081 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9082 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9083 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9084 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9085 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9086 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9087 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9088 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9089 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9090 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9091 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9092 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9093 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9094 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9095 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9096 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9097 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9098 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9099 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9100 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9101 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9102 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9103 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9104 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9105 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9106 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9107 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9108 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9109 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9110 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9111 <math_private.h>.
9112 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9113
9114 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
9115
9116 [BZ #23716]
9117 * sysdeps/i386/dl-cet.c: Removed.
9118 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9119 prototype.
9120 (_dl_runtime_profile_shstk): Likewise.
9121 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9122 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9123
9124 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9125
9126 [BZ #23579]
9127 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9128 do_test_with_invalid_iov): New tests.
9129 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9130 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9131 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9132 errno is ENOSYS.
9133 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9134 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9135 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9136
9137 2018-09-27 Joseph Myers <joseph@codesourcery.com>
9138
9139 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9140 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9141 (MATH_REDIRECT_BINARY_ARGS): New macro.
9142 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9143 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9144 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9145 header inclusion.
9146 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9147 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9148 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9149 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9150 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9151 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9152 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9154 Likewise.
9155 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9156 Likewise.
9157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9159 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9160 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9161 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9162 Likewise.
9163 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9164 Likewise.
9165 * sysdeps/generic/math_private_calls.h
9166 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9167 Do not declare and define as an inline function.
9168 * math/divtc3.c (__divtc3): Use copysign functions instead of
9169 __copysign variants.
9170 * math/multc3.c (__multc3): Likewise.
9171 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9172 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9173 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9174 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9175 Likewise.
9176 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9177 (__ieee754_yn): Likewise.
9178 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9179 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9180 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9181 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9182 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9183 (__sin): Likewise.
9184 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9185 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9186 Likewise.
9187 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9188 Likewise.
9189 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9190 Likewise.
9191 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9192 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9193 Likewise.
9194 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9195 (__ieee754_ynf): Likewise.
9196 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9197 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9198 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9199 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9200 Likewise.
9201 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9202 (__ieee754_ynl): Likewise.
9203 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9204 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9205 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9206 Likewise.
9207 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9208 (__ieee754_ynl): Likewise.
9209 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9210 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9211 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9212 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9213 Likewise.
9214 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9215 (__ieee754_ynl)
9216 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9217 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9218 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9219 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9220 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9221
9222 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9223 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9224 using MATH_REDIRECT.
9225 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9226 header inclusion.
9227 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9228 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9229 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9230 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9231 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9232 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9233 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9234 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9236 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9238 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9239 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9240 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9241 (round): Redirect to __round.
9242 (__roundl): Call round instead of __round.
9243 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9244 Remove macro.
9245 [_ARCH_PWR5X] (__roundf): Likewise.
9246 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9247 functions instead of __round variants.
9248 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9249 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9250 Likewise.
9251 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9252 Likewise.
9253 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9254 Likewise.
9255 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9256 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9257 __lroundl.
9258 (__ieee754_expl): Call roundl instead of __roundl.
9259
9260 2018-09-27 Andreas Schwab <schwab@suse.de>
9261
9262 [BZ #23717]
9263 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9264 (do_test): Make st1 static.
9265
9266 2018-09-26 Andreas Schwab <schwab@suse.de>
9267
9268 [BZ #23707]
9269 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9270 * elf/Makefile (tests): Add tst-unwind-ctor.
9271 (modules-names): Add tst-unwind-ctor-lib.
9272 ($(objpfx)tst-unwind-ctor): Depend on
9273 $(objpfx)tst-unwind-ctor-lib.so.
9274
9275 2018-09-26 Joseph Myers <joseph@codesourcery.com>
9276
9277 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9278 file. Most contents moved from ....
9279 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
9280 and include <bits/mman-map-flags-generic.h>.
9281 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9282 (sysdep_headers): Add bits/mman-map-flags-generic.h.
9283 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9284 <bits/mman-map-flags-generic.h>.
9285 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9286 macros defined in <bits/mman-map-flags-generic.h>.
9287 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9288 <bits/mman-map-flags-generic.h>.
9289 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9290 defined in <bits/mman-map-flags-generic.h>.
9291
9292 2018-09-26 Andreas Schwab <schwab@suse.de>
9293
9294 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9295 output.
9296
9297 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9298 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9299 Fangrui Song <maskray@google.com>
9300
9301 [BZ #20480]
9302 * config.make.in (have-textrel_ifunc): New define.
9303 * configure.ac: Add check if linker supports textrel relocation with
9304 ifunc.
9305 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9306 tst-ifunc-textrel.
9307 (CFLAGS-tst-ifunc-textrel.c): New rule.
9308 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9309 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9310 * elf/tst-ifunc-textrel.c: New file.
9311
9312 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9313
9314 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9315 <bits/procfs-prregset.h>.
9316 (prgregset_t): Define using __prgregset_t.
9317 (prfpregset_t): Define using __prfpregset_t.
9318 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9319 (sysdep_headers): Add bits/procfs-prregset.h.
9320 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9321 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9322 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9323 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9324
9325 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9326 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9327 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9328 pr_uid and pr_gid.
9329 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9330 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9331 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9332 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9333 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9334 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9335 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9336 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9337 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9338 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9339 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9340 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9341 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9342 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9343 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9344 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9345 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9346 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9347 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9348 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9349 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9350 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9351 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9352 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9353
9354 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9355 AArch64 version. Include <bits/procfs.h>.
9356 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9357 (sysdep_headers): Add bits/procfs.h.
9358 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9359 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9360 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9361 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9362 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9363 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9364 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9365 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9366 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9367 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9368 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9369 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9370 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9371 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9372 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9373 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9374 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9375
9376 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9377
9378 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9379 Use libsupport.
9380
9381 2018-09-25 Arjun Shankar <arjun@redhat.com>
9382
9383 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9384 (__gconv_max_path_elem_len): Likewise.
9385 (__gconv_nmodules): Likewise.
9386 (__gconv_get_path): Likewise.
9387 (path_elem): Move to ...
9388 * iconv/gconv_conf.c: ... here.
9389 (__gconv_get_path): Mark function static.
9390 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9391 * iconv/gconv_open.c: ... here.
9392
9393 2018-09-24 Andreas Schwab <schwab@suse.de>
9394
9395 * scripts/haveversions.awk: New file.
9396 * Makerules ($(common-objpfx)Versions.def)
9397 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9398 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9399 Move rules ...
9400 * Makeconfig ($(common-objpfx)Versions.def)
9401 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9402 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9403 ... here.
9404 ($(common-objpfx)Versions.mk): New rule. Include it.
9405 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9406 Emit error if build-obsolete-nsl = yes.
9407 * manual/install.texi (Configuring and compiling): Describe
9408 --enable-obsolete-nsl as unavaiable after version 2.28.
9409 * INSTALL: Regenerate.
9410
9411 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9412
9413 * NEWS: Add note about new TLE support on powerpc64le.
9414 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9415 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9416 __ununsed1.
9417 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9418 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9419 * sysdeps/powerpc/powerpc32/sysdep.h,
9420 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9421 ABORT_TRANSACTION): Remove macros.
9422 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9423 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9424 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9426 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9427 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9428 usage.
9429 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9430
9431 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9432
9433 [BZ #10425]
9434 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9435 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9436 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9437 which is the same as in it_IT.
9438 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9439 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9440
9441 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9442
9443 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9444 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9445 using MATH_REDIRECT.
9446 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9447 header inclusion.
9448 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9449 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9450 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9451 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9452 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9453 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9458 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9459 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9460 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9461 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9462 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9463 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9464 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9465 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9466 (ceil): Redirect to __ceil.
9467 (floor): Redirect to __floor.
9468 (trunc): Redirect to __trunc.
9469 (__truncl): Call trunc instead of __trunc.
9470 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9471 Remove macro.
9472 [_ARCH_PWR5X] (__truncf): Likewise.
9473 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9474 trunc functions instead of __trunc variants.
9475 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9476 Likewise.
9477 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9478 Likewise.
9479 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9480 Likewise.
9481 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9482 Likewise.
9483
9484 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9485 [__i586__ || __pentium__].
9486 [__i486__]: Handle explicitly.
9487 (HAS_CPUID): Define to 1 if above macros are undefined.
9488 (HAS_I586): Likewise.
9489 (HAS_I686): Likewise.
9490
9491 2018-09-20 Florian Weimer <fweimer@redhat.com>
9492
9493 * misc/tst-gethostid.c: New file.
9494 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9495 (tst-gethostid): Link with -ldl.
9496
9497 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9498
9499 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9500 value from gethostbyname_r.
9501
9502 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9503
9504 * stdlib/tst-setcontext9.c (f1): Rename to...
9505 (f1a): ... this.
9506 (f1b): New function implementing lower half of f1 in alternate stack.
9507
9508 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9509
9510 Fix mktime localtime offset confusion
9511 [BZ #23603]
9512 * include/time.h (__mktime_internal): The localtime offset is now
9513 of type long int instead of time_t. This is the longstanding type
9514 in glibc, and it is more than enough to represent difference
9515 between localtime and gmtime even if it is 32 bits and time_t is
9516 64. Changing it now will let us avoid an unnecessary change when
9517 time_t is widened to 64 bits on 32-bit platforms.
9518 * time/mktime-internal.h (mktime_offset_t): Now long int.
9519
9520 Merge mktime, timegm from upstream Gnulib
9521 [BZ #23603][BZ #16346]
9522 This fixes some obscure problems with integer overflow.
9523 Although it looks scary, it is almost all a byte-for-byte copy
9524 from Gnulib, and the Gnulib code has been tested reasonably well.
9525 * include/intprops.h: New file, copied from Gnulib.
9526 * include/verify.h, time/mktime-internal.h:
9527 New tiny files, simplified from Gnulib.
9528 * time/mktime.c: Copy from Gnulib. This has the following changes:
9529 Do not include config.h if DEBUG_MKTIME is nonzero.
9530 Include stdbool.h, intprops.h, verify.h.
9531 Include string.h only if needed.
9532 Include stdlib.h on MS-Windows.
9533 Include mktime-internal.h.
9534 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9535 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9536 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9537 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9538 simplify later conditionals; default the others to zero. Use
9539 these conditionals to express only the code needed on the current
9540 platform. In uses of these conditionals, explicitly spell out how
9541 _LIBC affects things, so it’s easier to review from a glibc
9542 viewpoint.
9543 (WRAPV): Remove; no longer needed now that we have
9544 systematic overflow checking.
9545 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9546 compartmentalize tzset issues. Move system-dependent tzsettish
9547 code here from mktime.
9548 (verify): Remove; now done by verify.h. All uses changed.
9549 (long_int): Use a more-conservative definition, to avoid
9550 integer overflow.
9551 (SHR): Remove, replacing with ...
9552 (shr): New function, which means we needn’t worry about side
9553 effects in args, and conversion analysis is simpler.
9554 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9555 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9556 (time_t_avg, time_t_add_ok): Remove.
9557 (mktime_min, mktime_max): New constants.
9558 (leapyear, isdst_differ): Use bool for booleans.
9559 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9560 Use long_int, not time_t, for mktime differences.
9561 (long_int_avg): New function, replacing time_t_avg.
9562 INT_ADD_WRAPV replaces time_t_add_ok.
9563 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9564 All uses changed.
9565 (convert_time): New function.
9566 (ranged_convert): Use it.
9567 (__mktime_internal): Last arg now points to mktime_offset_t, not
9568 time_t. All uses changed. This is a no-op on glibc, where
9569 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9570 offset guess. Directly check for integer overflow instead of
9571 using a heuristic that works only 99.9...% of the time.
9572 Access *OFFSET only once, to avoid an unlikely race if the
9573 compiler delays a load and if this cascades into a signed integer
9574 overflow.
9575 (mktime): Move tzsettish code to my_tzset, and move
9576 localtime_offset to within mktime so that it doesn’t
9577 need a separate ifdef.
9578 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9579 instead of localtime.
9580 * time/timegm.c: Copy from Gnulib. This has the following changes:
9581 Include mktime-internal.h.
9582 [!_LIBC]: Include config.h and time.h. Do not include
9583 timegm.h or time_r.h. Make __mktime_internal a macro,
9584 and include mktime-internal.h to get its declaration.
9585 (timegm): Temporary is now mktime_offset_t, not time_t.
9586 This affects only Gnulib.
9587
9588 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9589
9590 [BZ #23637]
9591 * string/test-strstr.c (pr23637): New function.
9592 (test_main): Add tests with longer needles.
9593 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9594 * string/strstr.c (AVAILABLE): Likewise.
9595
9596 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9597
9598 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9599
9600 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9601
9602 * NEWS: Mention pow improvements.
9603 * math/Makefile (type-double-routines): Add e_pow_log_data.
9604 * sysdeps/generic/math_private.h (__exp1): Remove.
9605 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9606 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9607 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9608 contraction.
9609 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9610 (exp_inline): Remove.
9611 (__ieee754_exp): Only single double input is handled.
9612 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9613 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9614 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9615 (__pow_log_data): Define.
9616 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9617 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9618 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9619 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9620 contraction.
9621 (CFLAGS-e_pow-fma4.c): Likewise.
9622
9623 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9624
9625 Simplify tzfile fstat failure code
9626 [BZ #21716]
9627 * time/tzfile.c (__tzfile_read): Simplify slightly.
9628
9629 Fix tzfile low-memory assertion failure
9630 [BZ #21716]
9631 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9632 when registering time zone abbreviations.
9633
9634 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9635
9636 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9637 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9638 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9639 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9640 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9641 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9642 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9643 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9644 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9645
9646 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9647 __ceil.
9648 (__ceill): Call ceil instead of __ceil.
9649 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9650 __floor.
9651 (__floorl): Call floor instead of __floor.
9652
9653 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9654
9655 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9656 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9657 using MATH_REDIRECT.
9658 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9659 header inclusion.
9660 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9661 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9662 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9663 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9664 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9665 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9666 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9667 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9672 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9673 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9674 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9675 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9676 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9677 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9678 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9679 Remove macro.
9680 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9681 functions instead of __ceil variants.
9682 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9683 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9684 Likewise.
9685 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9686 Likewise.
9687 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9688 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9689 Likewise.
9690 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9691 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9692
9693 [BZ #21286]
9694 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9695 constant.
9696 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9697 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9698 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9699 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9700 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9701 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9702 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9703 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9704 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9705 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9706 (ILL_BADIADDR): Remove constant.
9707 (TRAP_BRANCH): Likewise.
9708 (TRAP_HWBKPT): Likewise.
9709
9710 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9711
9712 [BZ #23656]
9713 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9714 Remove [_MIPS_SIM = _ABIN32] conditional case.
9715 (struct elf_prpsinfo): Likewise.
9716
9717 [BZ #23649]
9718 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9719 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9720 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9721 Likewise.
9722 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9723 elf_prpsinfo): Likewise.
9724 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9725 elf_prpsinfo): Likewise.
9726 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9727 Likewise.
9728
9729 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9730 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9731 using MATH_REDIRECT.
9732 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9733 header inclusion.
9734 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9735 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9736 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9737 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9738 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9739 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9740 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9741 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9742 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9743 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9744 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9745 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9746 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9747 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9748 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9749 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9750 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9751 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9752 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9755 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9756 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9757 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9758 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9759 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9760 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9761 __rint variants.
9762 * math/e_scalbf.c (invalid_fn): Likewise.
9763 * math/e_scalbl.c (invalid_fn): Likewise.
9764 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9765 Likewise.
9766 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9767 Likewise.
9768 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9769 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9770 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9771 Likewise.
9772 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9773 Likewise.
9774 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9775 Likewise.
9776 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9777 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9778
9779 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9780 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9781 New macro.
9782 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9783 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9784 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9785 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9786 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9787 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9788 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9789 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9790 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9791 && !NO_MATH_REDIRECT] (floor): Likewise.
9792 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9793 header inclusion.
9794 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9795 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9796 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9797 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9798 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9799 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9800 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9801 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9802 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9803 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9804 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9806 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9807 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9808 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9809 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9810 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9811 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9812 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9813 Remove macro.
9814 [_ARCH_PWR5X] (__floorf): Likewise.
9815 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9816 inline function.
9817 [__SSE4_1__] (__floorf): Likewise.
9818 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9819 instead of __floor variants.
9820 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9821 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9822 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9823 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9824 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9825 * math/w_tgamma_compat.c (__tgamma): Likewise.
9826 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9827 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9828 * math/w_tgammal_compat.c (__tgammal): Likewise.
9829 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9830 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9831 Likewise.
9832 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9833 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9834 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9835 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9836 Likewise.
9837 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9838 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9839 Likewise.
9840 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9841 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9842 Likewise.
9843 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9844 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9845 Likewise.
9846 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9847 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9848 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9849 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9850 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9851 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9852
9853 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9854
9855 * elf/Makefile (modules-names-tests): New variable.
9856
9857 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9858
9859 * NEWS: Mention log2 improvements.
9860 * math/Makefile (type-double-routines): Add e_log2_data.
9861 * sysdeps/i386/fpu/e_log2_data.c: New file.
9862 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9863 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9864 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9865 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9866 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9867 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9868
9869 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9870
9871 * NEWS: Mention log improvement.
9872 * math/Makefile (type-double-routines): Add e_log_data.
9873 * sysdeps/i386/fpu/e_log_data.c: New file.
9874 * sysdeps/ia64/fpu/e_log_data.c: New file.
9875 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9876 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9877 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9878 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9879 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9880 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9881
9882 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9883 Xuepeng Guo <xuepeng.guo@intel.com>
9884
9885 [BZ #23606]
9886 * sysdeps/i386/start.S: Include <sysdep.h>
9887 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9888 enabled. Add cfi_undefined (eip).
9889
9890 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9891
9892 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9893 (MOVQ): Likewise.
9894 (EXTRACT_WORDS64): Likewise.
9895 (INSERT_WORDS64): Likewise.
9896 (GET_FLOAT_WORD): Likewise.
9897 (SET_FLOAT_WORD): Likewise.
9898
9899 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9900 argument.
9901 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9902 build, but not for second build if --full-gcc. Use
9903 --enable-languages=all for second build if --full-gcc.
9904 (get_parser): Add --full-gcc option.
9905 (main): Update call to Context.
9906
9907 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9908
9909 [BZ #10797]
9910 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9911 Single Quotation Mark).
9912 (thousands_sep): Likewise.
9913 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9914 * localedata/locales/it_IT (thousands_sep): Use ".".
9915 (grouping): Use "3;3".
9916
9917 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9918
9919 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9920 x86_64 and i686 configs using --enable-obsolete-rpc
9921 --enable-obsolete-nsl.
9922
9923 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9924
9925 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9926
9927 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9928
9929 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9930 Increment size of new_argv by one.
9931
9932 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9933
9934 [BZ #17426]
9935 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9936 * localedata/locales/ar_IN (d_fmt): Likewise.
9937 * localedata/locales/bhb_IN (d_fmt): Likewise.
9938 * localedata/locales/bho_IN (d_fmt): Likewise.
9939 * localedata/locales/bn_BD (d_fmt): Likewise.
9940 * localedata/locales/bn_IN (d_fmt): Likewise.
9941 * localedata/locales/doi_IN (d_fmt): Likewise.
9942 * localedata/locales/gu_IN (d_fmt): Likewise.
9943 * localedata/locales/hi_IN (d_fmt): Likewise.
9944 * localedata/locales/hne_IN (d_fmt): Likewise.
9945 * localedata/locales/kn_IN (d_fmt): Likewise.
9946 * localedata/locales/mag_IN (d_fmt): Likewise.
9947 * localedata/locales/mai_IN (d_fmt): Likewise.
9948 * localedata/locales/mjw_IN (d_fmt): Likewise.
9949 * localedata/locales/ml_IN (d_fmt): Likewise.
9950 * localedata/locales/mni_IN (d_fmt): Likewise.
9951 * localedata/locales/mr_IN (d_fmt): Likewise.
9952 * localedata/locales/pa_IN (d_fmt): Likewise.
9953 * localedata/locales/raj_IN (d_fmt): Likewise.
9954 * localedata/locales/sat_IN (d_fmt): Likewise.
9955 * localedata/locales/sd_IN (d_fmt): Likewise.
9956 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9957 * localedata/locales/ta_IN (d_fmt): Likewise.
9958 * localedata/locales/ta_LK (d_fmt): Likewise.
9959 * localedata/locales/tcy_IN (d_fmt): Likewise.
9960 * localedata/locales/ur_IN (d_fmt): Likewise.
9961
9962 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9963 * localedata/locales/ks_IN (d_fmt): Likewise.
9964 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9965
9966 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9967 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9968 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9969 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9970
9971 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9972
9973 * NEWS: Mention exp and exp2 improvements.
9974 * math/Makefile (libm-support): Remove t_exp.
9975 (type-double-routines): Add math_err and e_exp_data.
9976 * sysdeps/aarch64/libm-test-ulps: Update.
9977 * sysdeps/arm/libm-test-ulps: Update.
9978 * sysdeps/i386/fpu/e_exp_data.c: New file.
9979 * sysdeps/i386/fpu/math_err.c: New file.
9980 * sysdeps/i386/fpu/t_exp.c: Remove.
9981 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9982 * sysdeps/ia64/fpu/math_err.c: New file.
9983 * sysdeps/ia64/fpu/t_exp.c: Remove.
9984 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9985 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9986 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9987 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9988 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9989 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9990 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9991 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9992 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9993 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9994 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9995 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9996 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9997 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9998 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9999 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10000
10001 2018-09-05 Joseph Myers <joseph@codesourcery.com>
10002
10003 * sysdeps/alpha/fpu/math_private.h: Remove.
10004
10005 * sysdeps/generic/math_private.h
10006 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
10007 Move this inline function ....
10008 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
10009 * include/math.h [!_ISOMAC]: To here....
10010
10011 2018-09-04 Joseph Myers <joseph@codesourcery.com>
10012
10013 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10014 code ....
10015 [!FE_HAVE_ROUNDING_MODES]: And this code ....
10016 * include/fenv.h [!_ISOMAC]: ... to here.
10017 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10018 (feraiseexcept): Likewise.
10019 * math/fromfp.h: Do not include <fenv_private.h>.
10020 * math/s_cexp_template.c: Likewise.
10021 * math/s_csin_template.c: Likewise.
10022 * math/s_csinh_template.c: Likewise.
10023 * math/s_ctan_template.c: Likewise.
10024 * math/s_ctanh_template.c: Likewise.
10025 * math/s_iseqsig_template.c: Likewise.
10026 * math/w_acos_compat.c: Likewise.
10027 * math/w_acosf_compat.c: Likewise.
10028 * math/w_acosl_compat.c: Likewise.
10029 * math/w_asin_compat.c: Likewise.
10030 * math/w_asinf_compat.c: Likewise.
10031 * math/w_asinl_compat.c: Likewise.
10032 * math/w_j0_compat.c: Likewise.
10033 * math/w_j0f_compat.c: Likewise.
10034 * math/w_j0l_compat.c: Likewise.
10035 * math/w_j1_compat.c: Likewise.
10036 * math/w_j1f_compat.c: Likewise.
10037 * math/w_j1l_compat.c: Likewise.
10038 * math/w_jn_compat.c: Likewise.
10039 * math/w_jnf_compat.c: Likewise.
10040 * math/w_log10_compat.c: Likewise.
10041 * math/w_log10f_compat.c: Likewise.
10042 * math/w_log10l_compat.c: Likewise.
10043 * math/w_log2_compat.c: Likewise.
10044 * math/w_log2f_compat.c: Likewise.
10045 * math/w_log2l_compat.c: Likewise.
10046 * math/w_log_compat.c: Likewise.
10047 * math/w_logf_compat.c: Likewise.
10048 * math/w_logl_compat.c: Likewise.
10049 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10050 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10051 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10052 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10053 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10054 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10055 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10056 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10057 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10058 * sysdeps/ieee754/k_standardl.c: Likewise.
10059 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10060 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10061 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10062 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10063 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10064 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10065 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10066 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10067 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10068 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10069 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10070 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10071 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10072 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10073 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10074 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10075 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10076 * math/w_ilogb_template.c: Include <fenv.h> instead of
10077 <fenv_private.h>.
10078 * math/w_llogb_template.c: Likewise.
10079 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10080 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10081
10082 2018-09-03 Joseph Myers <joseph@codesourcery.com>
10083
10084 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10085 * math/fromfp.h: Include <fenv_private.h>.
10086 * math/math-narrow.h: Likewise.
10087 * math/s_cexp_template.c: Likewise.
10088 * math/s_csin_template.c: Likewise.
10089 * math/s_csinh_template.c: Likewise.
10090 * math/s_ctan_template.c: Likewise.
10091 * math/s_ctanh_template.c: Likewise.
10092 * math/s_iseqsig_template.c: Likewise.
10093 * math/w_acos_compat.c: Likewise.
10094 * math/w_acosf_compat.c: Likewise.
10095 * math/w_acosl_compat.c: Likewise.
10096 * math/w_asin_compat.c: Likewise.
10097 * math/w_asinf_compat.c: Likewise.
10098 * math/w_asinl_compat.c: Likewise.
10099 * math/w_ilogb_template.c: Likewise.
10100 * math/w_j0_compat.c: Likewise.
10101 * math/w_j0f_compat.c: Likewise.
10102 * math/w_j0l_compat.c: Likewise.
10103 * math/w_j1_compat.c: Likewise.
10104 * math/w_j1f_compat.c: Likewise.
10105 * math/w_j1l_compat.c: Likewise.
10106 * math/w_jn_compat.c: Likewise.
10107 * math/w_jnf_compat.c: Likewise.
10108 * math/w_llogb_template.c: Likewise.
10109 * math/w_log10_compat.c: Likewise.
10110 * math/w_log10f_compat.c: Likewise.
10111 * math/w_log10l_compat.c: Likewise.
10112 * math/w_log2_compat.c: Likewise.
10113 * math/w_log2f_compat.c: Likewise.
10114 * math/w_log2l_compat.c: Likewise.
10115 * math/w_log_compat.c: Likewise.
10116 * math/w_logf_compat.c: Likewise.
10117 * math/w_logl_compat.c: Likewise.
10118 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10119 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10120 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10121 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10122 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10123 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10124 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10125 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10126 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10127 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10128 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10129 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10130 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10131 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10132 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10133 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10134 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10135 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10136 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10137 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10138 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10139 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10140 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10141 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10142 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10143 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10144 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10145 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10146 * sysdeps/ieee754/float128/float128_private.h: Likewise.
10147 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10148 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10149 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10150 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10151 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10152 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10153 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10154 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10155 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10156 * sysdeps/ieee754/k_standardl.c: Likewise.
10157 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10158 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10159 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10160 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10161 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10162 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10163 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10164 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10165 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10166 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10167 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10168 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10169 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10170 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10171 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10172 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10173 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10174 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10175 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10176 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10177 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10178 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10179 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10180 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10181 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10182 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10183 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10184 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10185 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10186 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10187 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10188 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10189 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10190 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10191 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10192 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10193 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10194 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10195 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10196 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10197 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10198 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10199 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10200 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10201 * sysdeps/riscv/rvd/s_finite.c: Likewise.
10202 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10203 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10204 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10205 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10206 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10207 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10208 * sysdeps/riscv/rvf/fegetround.c: Likewise.
10209 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10210 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10211 * sysdeps/riscv/rvf/fesetround.c: Likewise.
10212 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10213 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10214 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10215 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10216 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10217 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10218 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10219 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10220 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10221 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10222 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10223 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10224 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10225 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10226 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10227 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10228
10229 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10230
10231 [BZ #20271]
10232 * include/stdio.h (__libc_fatal): Mention newline in comment.
10233 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10234 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10235 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10236 * nss/nsswitch.c (__nss_next2): Likewise.
10237 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10238 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10239 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10240 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10241 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10242 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10243 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10244 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10245 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10246 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10247 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10248 * sysdeps/unix/sysv/linux/netlink_assert_response.c
10249 (__netlink_assert_response): Likewise.
10250
10251 2018-08-31 Joseph Myers <joseph@codesourcery.com>
10252
10253 * conform/glibcconform.py: New file.
10254 * conform/list-header-symbols.py: Likewise.
10255 * conform/list-header-symbols.pl: Remove.
10256 * conform/Makefile (tests-special): Only add linknamespace tests
10257 if [PYTHON].
10258 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10259
10260 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
10261
10262 [BZ #23597]
10263 * support/Makefile (libsupport-routines): Add
10264 support_copy_file_range and xcopy_file_range.
10265 * support/support.h: Include <sys/types.h>.
10266 (support_copy_file_range): New prototype.
10267 * support/support_copy_file_range.c: New file. Copied and
10268 modified from io/copy_file_range-compat.c.
10269 * support/test-container.c (copy_one_file): Call xcopy_file_rang
10270 instead of copy_file_range.
10271 * support/xcopy_file_range.c: New file.
10272 * support/xunistd.h (xcopy_file_range): New prototype.
10273
10274 2018-08-30 Carlos O'Donell <carlos@redhat.com>
10275
10276 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10277 xpthread_create and xpthread_join.
10278
10279 2018-08-30 Florian Weimer <fweimer@redhat.com>
10280
10281 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10282
10283 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
10284
10285 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10286 if malloc fails.
10287
10288 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10289
10290 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10291 and minus_oflow as non-finite.
10292
10293 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10294
10295 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10296 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10297 moved to fenv_private.h except for ...
10298 (TOINT_INTRINSICS): Kept in math_private.h.
10299 (roundtoint): Likewise.
10300 (converttoint): Likewise.
10301 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10302 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10303 * sysdeps/arm/math_private.h: Remove.
10304 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10305 ....
10306 * sysdeps/generic/math_private.h: ... this file. Include
10307 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10308 Include <fenv_private.h>. Remove functions and macros moved to
10309 fenv_private.h.
10310 * sysdeps/i386/fpu/math_private.h: Remove.
10311 * sysdeps/mips/math_private.h: Move to ....
10312 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10313 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10314 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10315 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10316 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10317 * sysdeps/powerpc/fpu/math_private.h: Do not include
10318 <fenv_private.h>.
10319 * sysdeps/riscv/rvf/math_private.h: Move to ....
10320 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10321 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10322 <fenv_private.h>.
10323 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10324 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10325 * sysdeps/sparc/fpu/math_private.h: Remove.
10326 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10327 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10328 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10329 <fenv_private.h>.
10330 * sysdeps/x86_64/fpu/math_private.h: Do not include
10331 <sysdeps/i386/fpu/fenv_private.h>.
10332
10333 2018-08-28 Florian Weimer <fweimer@redhat.com>
10334
10335 [BZ #23578]
10336 * posix/tst-regcomp-truncated.c: New file.
10337 * posix/Makefile (tests): Add it.
10338 (tst-regcomp-truncated.out): Depend on generated locales.
10339
10340 2018-08-28 Florian Weimer <fweimer@redhat.com>
10341
10342 * support/test-container.c (main): Treat unshare failure with
10343 EPERM as an unsupported test.
10344
10345 2018-08-28 Florian Weimer <fweimer@redhat.com>
10346
10347 [BZ #23520]
10348 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10349 * nscd/netgroupcache.c
10350 (addgetnetgrentX): Add tofreep parameter. Do not free
10351 heap-allocated buffer.
10352 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10353 (addgetnetgrentX_ignore): New function.
10354 (addgetnetgrent): Call it.
10355 (readdgetnetgrent): Likewise.
10356
10357 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10358
10359 * string/memmem.c: Use memcmp for first match.
10360
10361 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10362
10363 [BZ #17426]
10364 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10365
10366 2018-08-27 DJ Delorie <dj@redhat.com>
10367
10368 * support/Makefile (others): Don't list programs explicitly as a
10369 dependency of "others".
10370
10371 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10372
10373 * sysdeps/generic/math-tests-trap-force.h: New file.
10374 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10375 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10376 * sysdeps/powerpc/math-tests.h: Remove file.
10377 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10378
10379 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10380 Torvald Riegel <triegel@redhat.com>
10381
10382 [BZ #23538]
10383 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10384 Update r to include the set wake-request flag if waiters are
10385 remaining after spinning.
10386
10387 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10388
10389 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10390
10391 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10392
10393 [BZ #23578]
10394 regex: fix uninitialized memory access
10395 I introduced this bug into gnulib in commit
10396 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10397 eventually it was merged into glibc. The bug was found by
10398 project-repo <bugs@feusi.co> and reported here:
10399 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10400 Diagnosis and draft fix reported by Assaf Gordon here:
10401 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10402 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10403 * posix/regex_internal.c (build_wcs_upper_buffer):
10404 Fix bug when mbrtowc returns 0.
10405
10406 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10407
10408 * po/be.po: Update translation.
10409
10410 2018-08-24 DJ Delorie <dj@delorie.com>
10411
10412 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10413 $(libunwind).
10414
10415 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10416
10417 [BZ #23400]
10418 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10419 create temporary files in source tree.
10420
10421 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10422
10423 * sysdeps/generic/math-tests-trap.h: New file.
10424 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10425 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10426 * sysdeps/aarch64/math-tests.h: Remove file.
10427 * sysdeps/arm/math-tests.h: Likewise.
10428 * sysdeps/riscv/math-tests.h: Likewise.
10429 * sysdeps/aarch64/math-tests-trap.h: New file.
10430 * sysdeps/arm/math-tests-trap.h: Likewise.
10431 * sysdeps/riscv/math-tests-trap.h: Likewise.
10432
10433 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10434
10435 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10436 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10437 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10438 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10439 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10440 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10441 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10442 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10443 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10444 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10445 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10446 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10447 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10448 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10449 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10450 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10451 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10452 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10453
10454 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10455
10456 * sysdeps/generic/math-tests-exceptions.h: New file.
10457 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10458 (EXCEPTION_TESTS_float): Do not define here.
10459 (EXCEPTION_TESTS_double): Likewise.
10460 (EXCEPTION_TESTS_long_double): Likewise.
10461 (EXCEPTION_TESTS_float128): Likewise.
10462 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10463 Likewise.
10464 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10465 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10466 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10467 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10468 * sysdeps/mips/math-tests.h: Likewise.
10469 * sysdeps/nios2/math-tests.h: Likewise.
10470 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10471 (EXCEPTION_TESTS_float): Do not define here.
10472 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10473 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10474 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10475
10476 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10477
10478 * NEWS: Move optimized sinf entry to 2.29.
10479
10480 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10481
10482 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10483
10484 2018-08-22 DJ Delorie <dj@redhat.com>
10485
10486 * Makefile (testroot.pristine): New rules to initialize the
10487 test-in-container "testroot".
10488 * Makerules (all-testsuite): Add tests-container.
10489 * Rules (tests-expected): Add tests-container.
10490 (binaries-all-tests): Likewise.
10491 (tests-container): New, run these tests in the testroot container.
10492 * support/Makefile (others): Add *-container, support_paths.c,
10493 xmkdirp, and links-dso-program.
10494 * support/links-dso-program-c.c: New.
10495 * support/links-dso-program.cc: New.
10496 * support/test-container.c: New.
10497 * support/shell-container.c: New.
10498 * support/echo-container.c: New.
10499 * support/true-container.c: New.
10500 * support/xmkdirp.c: New.
10501 * support/xsymlink.c: New.
10502 * support/support_paths.c: New.
10503 * support/support.h: Add support paths prototypes.
10504 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10505
10506 * nss/tst-nss-test3.c: Convert to test-in-container.
10507 * nss/tst-nss-test3.root/: New.
10508
10509 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10510
10511 regex: port Gnulib code to z/OS POSIX environment
10512 Problem reported by Arnold Robbins in:
10513 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10514 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10515 Undef.
10516
10517 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10518
10519 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10520 (ROUNDING_TESTS_double): Remove.
10521 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10522 (ROUNDING_TESTS_double): Remove.
10523 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10524 (ROUNDING_TESTS_double): Remove.
10525 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10526 (ROUNDING_TESTS_float): Remove.
10527 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10528 (ROUNDING_TESTS_float): Remove.
10529 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10530 (ROUNDING_TESTS_float): Remove.
10531 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10532 !TEST_MATHVEC here.
10533 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10534 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10535
10536 * sysdeps/generic/math-tests-rounding.h: New file.
10537 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10538 (ROUNDING_TESTS_float): Do not define here.
10539 (ROUNDING_TESTS_double): Likewise.
10540 (ROUNDING_TESTS_long_double): Likewise.
10541 (ROUNDING_TESTS_float128): Likewise.
10542 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10543 (ROUNDING_TESTS_double): Undefine before defining.
10544 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10545 (ROUNDING_TESTS_double): Undefine before defining.
10546 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10547 (ROUNDING_TESTS_double): Undefine before defining.
10548 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10549 (ROUNDING_TESTS_float): Undefine before defining.
10550 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10551 (ROUNDING_TESTS_float): Undefine before defining.
10552 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10553 (ROUNDING_TESTS_float): Undefine before defining.
10554 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10555 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10556 not define here.
10557 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10558 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10559 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10560 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10561 (ROUNDING_TESTS_float): Do not define here.
10562 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10563 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10564 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10565 (ROUNDING_TESTS_float): Likewise.
10566 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10567 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10568 * sysdeps/mips/math-tests.h [__mips_soft_float]
10569 (ROUNDING_TESTS_float): Likewise.
10570 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10571 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10572 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10573 (ROUNDING_TESTS_double): Likewise.
10574 (ROUNDING_TESTS_long_double): Likewise.
10575
10576 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10577
10578 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10579 (PF_XDP): New macro.
10580 (AF_XDP): New macro.
10581 (SOL_XDP): New macro.
10582
10583 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10584
10585 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10586 (TCP_INQ): Likewise.
10587 (TCP_CM_INQ): Likewise.
10588 (TCP_REPAIR_ON): Likewise.
10589 (TCP_REPAIR_OFF): Likewise.
10590 (TCP_REPAIR_OFF_NO_WP): Likewise.
10591 (struct tcp_zerocopy_receive): New type.
10592
10593 2018-08-21 Florian Weimer <fweimer@redhat.com>
10594
10595 * support/support.h (support_descriptor_supports_holes): Declare.
10596 * support/Makefile (libsupport-routines): Add
10597 support_descriptor_supports_holes.
10598 * support/support_descriptor_supports_holes.c: New file.
10599 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10600 and stop testing if holes are not supported.
10601 * io/test-lfs.c (do_prepare): Likewise.
10602 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10603 Likewise.
10604 * timezone/tst-tzset.c (create_tz_file): Likewise.
10605 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10606 variable.
10607 (do_prepare): Set it.
10608 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10609
10610 2018-08-21 Florian Weimer <fweimer@redhat.com>
10611
10612 [BZ #17248]
10613 * Makeconfig (+cflags): Do not sort (and deduplicate).
10614
10615 2018-08-21 Florian Weimer <fweimer@redhat.com>
10616
10617 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10618 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10619
10620 2018-08-20 Florian Weimer <fweimer@redhat.com>
10621
10622 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10623 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10624
10625 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10626
10627 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10628 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10629 and ssi_arch members.
10630
10631 * elf/elf.c (NT_VMCOREDD): New macro.
10632 (AT_MINSIGSTKSZ): Likewise.
10633
10634 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10635
10636 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10637 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10638 s_cosf-ppc64 and s_cosf-power8.
10639 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10640 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10641 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10642 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10649 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10650 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10651
10652 2018-08-17 Florian Weimer <fweimer@redhat.com>
10653
10654 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10655
10656 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10657
10658 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10659
10660 2018-08-16 Florian Weimer <fweimer@redhat.com>
10661
10662 * configure.ac: Add --with-nonshared-cflags option.
10663 * config.make.in (extra-nonshared-cflags): Set variable.
10664 * Makeconfig (CFLAGS-.oS): Use it.
10665 * manual/install.texi (Configuring and compiling): Document
10666 --with-nonshared-cflags.
10667 * configure: Regenerate.
10668 * INSTALL: Likewise.
10669
10670 2018-08-16 Florian Weimer <fweimer@redhat.com>
10671
10672 * Makeconfig (ASFLAGS): Always append required assembler flags.
10673
10674 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10675
10676 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10677 (malloc_consolidate): Likewise.
10678
10679 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10680
10681 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10682
10683 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10684
10685 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10686 every strlen call.
10687
10688 * benchtests/bench-strlen.c: Print performance numbers in json.
10689
10690 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10691
10692 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10693 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10694 only for little endian.
10695 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10696 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10697 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10698 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10699 Add check for little endian.
10700 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10701 (__strcmp_power9): Add check for little endian.
10702 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10703 Add check for little endian.
10704 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10705 (__strncmp_power9): Add check for little endian.
10706 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10707 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10708 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10709 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10710 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10711
10712 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10713
10714 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10715 [!STRLEN](STRLEN): Set to __strlen.
10716 * sysdeps/aarch64/multiarch/strlen.c: New file.
10717 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10718 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10719 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10720 (__libc_ifunc_impl_list): Add strlen.
10721 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10722 strlen_generic and strlen_asimd.
10723
10724 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10725
10726 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10727 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10728 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10729
10730 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10731
10732 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10733
10734 2018-08-14 Florian Weimer <fweimer@redhat.com>
10735
10736 [BZ #23519]
10737 * include/stdio.h (__vfxprintf): Declare.
10738 * stdio-common/fxprintf.c (__vfxprintf): New function.
10739 (__fxprintf): Call it.
10740 * misc/err.c (convert_and_print): Remove function.
10741 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10742 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10743 * misc/Makefile (tests): Add tst-warn-wide.
10744 * misc/tst-warn-wide.c: New file.
10745
10746 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10747 Szabolcs Nagy <szabolcs.nagy@arm.com>
10748
10749 * NEWS: Mention sinf, cosf, sincosf.
10750 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10751 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10752 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10753 constants rather than including generic sincosf.h.
10754 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10755 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10756 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10757 (reduced_cos): Remove.
10758 (sinf_poly): New function.
10759 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10760
10761 2018-08-14 Florian Weimer <fweimer@redhat.com>
10762
10763 [BZ #23521]
10764 [BZ #23522]
10765 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10766 processing, bail out if no room, and close the stream before
10767 returning ERANGE.
10768 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10769 (tst-nss-files-alias-leak): Link with libdl.
10770 (tst-nss-files-alias-leak.out): Depend on nss_files.
10771
10772 * nss/tst-nss-files-alias-leak.c: New file.
10773
10774 2018-08-14 Florian Weimer <fweimer@redhat.com>
10775
10776 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10777 server_user, stat_user.
10778
10779 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10780
10781 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10782 version to 4.18.
10783 (io_pgetevents): New syscall.
10784 (rseq): Likewise.
10785
10786 * manual/install.texi (Configuring and compiling): Do not list
10787 tools used for testing pretty printers here.
10788 (Tools for Compilation): List Python, PExpect and GDB here.
10789 Update descriptions of uses of Perl and Python.
10790 * INSTALL: Regenerate.
10791
10792 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10793 version to 4.18.
10794
10795 2018-08-13 Florian Weimer <fweimer@redhat.com>
10796
10797 * misc/error.c (error): Add missing va_end call.
10798 (error_at_line): Likewise.
10799
10800 2018-08-13 Florian Weimer <fweimer@redhat.com>
10801
10802 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10803
10804 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10805
10806 * benchtests/scripts/benchout.schema.json (properties): Add
10807 new properties.
10808
10809 * benchtests/bench-skeleton.c (main): Add duration and
10810 iterations attributes.
10811
10812 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10813
10814 regex: Gnulib unibyte RRI uses bytes not chars
10815 Adjust the non-glibc code to agree with what Gawk needs for
10816 rational range interpretation (RRI) for regular expression ranges.
10817 In unibyte locales, Gawk wants ranges to use the underlying byte
10818 rather than the character code point. This change does not affect
10819 glibc proper.
10820 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10821 In unibyte locales, use the byte value rather than
10822 running it through btowc.
10823
10824 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10825
10826 * sysdeps/generic/math-tests-snan.h: New file.
10827 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10828 (SNAN_TESTS_float): Do not define here.
10829 (SNAN_TESTS_double): Likewise.
10830 (SNAN_TESTS_long_double): Likewise.
10831 (SNAN_TESTS_float128): Likewise.
10832 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10833 * sysdeps/i386/fpu/math-tests.h: Remove file.
10834 * sysdeps/ia64/math-tests-snan.h: New file.
10835 * sysdeps/ia64/math-tests.h: Remove file.
10836 * sysdeps/x86/math-tests.h: Likewise.
10837 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10838
10839 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10840 Szabolcs Nagy <szabolcs.nagy@arm.com>
10841
10842 * math/Makefile: Add s_sincosf_data.c.
10843 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10844 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10845 (sincosf_poly): Likewise.
10846 (reduce_small): Likewise.
10847 (reduce_large): Likewise.
10848 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10849 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10850 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10851 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10852
10853 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10854 Szabolcs Nagy <szabolcs.nagy@arm.com>
10855
10856 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10857 (converttoint): Use lround.
10858 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10859 document the semantics when TOINT_INTRINSICS is set.
10860 (converttoint): Likewise.
10861 (TOINT_RINT): Remove.
10862 (TOINT_SHIFT): Remove.
10863 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10864 path.
10865
10866 2018-08-10 Florian Weimer <fweimer@redhat.com>
10867
10868 [BZ #23497]
10869 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10870 function.
10871 (__old_getdents64): Use getdents64. Convert entries without
10872 moving them.
10873 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10874 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10875 tst-readdir64-compat.
10876
10877 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10878
10879 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10880 Fix unwind.
10881
10882 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10883
10884 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10885 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10886 code to s390x-mcount.h and #include it.
10887 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10888 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10889 (__fentry__): Add.
10890
10891 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10892
10893 * stdlib/Versions: Remove __fentry__.
10894 * sysdeps/i386/Versions: Add __fentry__.
10895 * sysdeps/x86_64/Versions: Add __fentry__.
10896
10897 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10898
10899 * sysdeps/s390/Makefile: Register the new tests.
10900 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10901 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10902 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10903 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10904 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10905 * sysdeps/s390/tst-dl-runtime.c: New file.
10906
10907 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10908
10909 * sysdeps/s390/s390-64/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-64/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-32/dl-trampoline.h (_dl_runtime_profile):
10920 Do not clobber R0.
10921
10922 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10923
10924 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10925 Do not clobber R0.
10926
10927 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10928
10929 * sysdeps/s390/s390-64/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-64/dl-trampoline.h (_dl_runtime_resolve):
10935 Use symbolic offsets for stack variables.
10936
10937 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10938
10939 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10940 Use symbolic offsets for stack variables.
10941
10942 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10943
10944 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10945 Use symbolic offsets for stack variables.
10946
10947 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10948
10949 * math/gen-libm-test.py: New file.
10950 * math/gen-libm-test.pl: Remove.
10951 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10952 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10953 gen-libm-test.pl.
10954 ($(libm-test-c-noauto-obj)): Likewise.
10955 ($(libm-test-c-auto-obj)): Likewise.
10956 ($(libm-test-c-narrow-obj)): Likewise.
10957 (regen-ulps): Likewise.
10958 * math/README.libm-test: Update references to gen-libm-test.pl.
10959 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10960 referencing gen-libm-test.pl.
10961 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10962 * math/libm-test-support.c: Likewise.
10963 * math/libm-test-support.h: Likewise.
10964 * sysdeps/generic/libm-test-ulps: Likewise.
10965
10966 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10967
10968 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10969 Fix value.
10970
10971 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10972
10973 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10974 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10975
10976 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10977
10978 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10979 symbols.
10980 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10981 __pthread_setspecific): Add hidden proto.
10982 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10983 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10984
10985 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10986
10987 * benchtests/bench-string.h (buf1_size, buf2_size): New
10988 variables.
10989 (init_sizes): New function.
10990 (test_init): Use it.
10991 (alloc_buf, exit_error): New functions.
10992 (alloc_bufs): Use ALLOC_BUF.
10993 (realloc_bufs): Remove.
10994 * benchtests/bench-memcmp.c (do_test): Adjust.
10995 * benchtests/bench-memset-large.c (do_test): Likewise.
10996 * benchtests/bench-memset-walk.c (do_test): Likewise.
10997 * benchtests/bench-memset.c (do_test): Likewise.
10998 * benchtests/bench-strncmp.c (do_test): Likewise.
10999
11000 2018-08-06 Andreas Schwab <schwab@suse.de>
11001
11002 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
11003 of CONST_THREAD_AREA.
11004
11005 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
11006
11007 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
11008 (STATE_SAVE_MASK): Likewise.
11009 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11010 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11011 (STATE_SAVE_MASK): Likewise.
11012 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11013 instead of <cpu-features.h>.
11014
11015 2018-08-03 DJ Delorie <dj@redhat.com>
11016
11017 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11018 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11019
11020 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11021
11022 2018-08-03 Joseph Myers <joseph@codesourcery.com>
11023
11024 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11025 after TEST_* calls.
11026 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11027 * math/libm-test-logb.inc (logb_test_data): Likewise.
11028
11029 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
11030
11031 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11032 * string/strstr.c (AVAILABLE): Likewise.
11033
11034 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11035
11036 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11037 <init-arch.h>.
11038 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11039 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11040 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11041
11042 2018-08-03 Carlos O'Donell <carlos@redhat.com>
11043
11044 * po/be.po: Update translation.
11045
11046 * po/be.po: Update translation.
11047
11048 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11049
11050 * sysdeps/x86/cpu-features-offsets.sym
11051 (rtld_global_ro_offsetof): Removed.
11052 (CPU_FEATURES_SIZE): Likewise.
11053 (CPUID_OFFSET): Likewise.
11054 (CPUID_SIZE): Likewise.
11055 (CPUID_EAX_OFFSET): Likewise.
11056 (CPUID_EBX_OFFSET): Likewise.
11057 (CPUID_ECX_OFFSET): Likewise.
11058 (CPUID_EDX_OFFSET): Likewise.
11059 (FAMILY_OFFSET): Likewise.
11060 (MODEL_OFFSET): Likewise.
11061 (FEATURE_OFFSET): Likewise.
11062 (FEATURE_SIZ): Likewise.
11063 (COMMON_CPUID_INDEX_1): Likewise.
11064 (COMMON_CPUID_INDEX_7): Likewise.
11065 (FEATURE_INDEX_1): Likewise.
11066 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11067
11068 2018-08-02 Carlos O'Donell <carlos@redhat.com>
11069
11070 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11071 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11072 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11073 (install-locales): Depend on install-locale-archive.
11074 (install-locale-archive): Define.
11075 (install-locale-files): Define.
11076 (build-one-locale): Define macro.
11077 * manual/install.texi (Running make install): Document.
11078 * manual/INSTALL: Regenerate.
11079
11080 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
11081
11082 * benchtests/scripts/compare_strings.py: Import traceback.
11083 (parse_file): Pretty-print error.
11084
11085 * NEWS: Mention the change.
11086 * elf/dl-tunables.list: Rename tune namespace to cpu.
11087 * sysdeps/powerpc/dl-tunables.list: Likewise.
11088 * sysdeps/x86/dl-tunables.list: Likewise.
11089 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11090 cpu.name.
11091 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11092 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11093 * manual/README.tunables: Likewise.
11094 * manual/tunables.texi: Likewise.
11095 * sysdeps/powerpc/cpu-features.c: Likewise.
11096 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11097 (init_cpu_features): Likewise.
11098 * sysdeps/x86/cpu-features.c: Likewise.
11099 * sysdeps/x86/cpu-features.h: Likewise.
11100 * sysdeps/x86/cpu-tunables.c: Likewise.
11101 * sysdeps/x86_64/Makefile: Likewise.
11102 * sysdeps/x86/dl-cet.c: Likewise.
11103
11104 2018-08-02 Joseph Myers <joseph@codesourcery.com>
11105
11106 [BZ #23479]
11107 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11108 [__mips_hard_float].
11109 (FE_UNDERFLOW): Likewise.
11110 (FE_OVERFLOW): Likewise.
11111 (FE_DIVBYZERO): Likewise.
11112 (FE_INVALID): Likewise.
11113 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11114 (FE_TOWARDZERO): Define only if [__mips_hard_float].
11115 (FE_UPWARD): Likewise.
11116 (FE_DOWNWARD): Likewise.
11117 (__FE_UNDEFINED): Define if [!__mips_hard_float]
11118 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11119 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11120 [__mips_hard_float].
11121 (FP_ROUNDMODE): Likewise.
11122 (FP_RND_NEAREST): Likewise.
11123 (FP_RND_ZERO): Likewise.
11124 (FP_RND_PINF): Likewise.
11125 (FP_RND_MINF): Likewise.
11126 (FP_EX_INVALID): Likewise.
11127 (FP_EX_OVERFLOW): Likewise.
11128 (FP_EX_UNDERFLOW): Likewise.
11129 (FP_EX_DIVZERO): Likewise.
11130 (FP_EX_INEXACT): Likewise.
11131 (FP_INIT_ROUNDMODE): Likewise.
11132 * sysdeps/mips/nofpu/fesetenv.c: New file.
11133 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11134
11135 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11136
11137 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11138 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11139 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11140 conditional on [FE_UPWARD].
11141
11142 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
11143
11144 regex: fix memory leak in Gnulib
11145 Problem and fix reported by Assaf Gordon in:
11146 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11147 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11148 range_ends members too, as they are defined in 'struct
11149 re_charset_t' even if not _LIBC. This affects only Gnulib.
11150
11151 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
11152
11153 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11154 ...
11155 (get_common_indices): This.
11156 (init_cpu_features): Updated.
11157
11158 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11159
11160 * sysdeps/generic/math-tests-snan-payload.h: New file.
11161 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11162 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11163 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11164 * sysdeps/generic/math-tests.h: Include
11165 <math-tests-snan-payload.h>.
11166 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11167 * sysdeps/hppa/math-tests.h: Remove file.
11168 * sysdeps/mips/math-tests.h [!__mips_nan2008]
11169 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11170 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11171 Likewise.
11172
11173 * sysdeps/generic/math-tests-snan-cast.h: New file.
11174 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11175 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11176 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11177 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11178
11179 2018-08-01 Carlos O'Donel <carlos@redhat.com>
11180
11181 * version.h (RELEASE): Set to "development".
11182 (VERSION): Set to "2.28.9000".
11183 * NEWS (2.29): New section.
11184
11185 * version.h (RELEASE): Set to "stable".
11186 (VERSION): Set to "2.28".
11187 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11188 * NEWS: Add the list of bugs fixed in 2.28.
11189
11190 * po/ca.po: Update to latest version.
11191 * po/cs.po: Likewise
11192 * po/da.po: Likewise
11193 * po/el.po: Likewise
11194 * po/eo.po: Likewise
11195 * po/es.po: Likewise
11196 * po/fi.po: Likewise
11197 * po/fr.po: Likewise
11198 * po/gl.po: Likewise
11199 * po/hu.po: Likewise
11200 * po/ia.po: Likewise
11201 * po/id.po: Likewise
11202 * po/it.po: Likewise
11203 * po/ja.po: Likewise
11204 * po/ko.po: Likewise
11205 * po/lt.po: Likewise
11206 * po/nb.po: Likewise
11207 * po/nl.po: Likewise
11208 * po/pt_BR.po: Likewise
11209 * po/ru.po: Likewise
11210 * po/rw.po: Likewise
11211 * po/sk.po: Likewise
11212 * po/sl.po: Likewise
11213 * po/tr.po: Likewise
11214 * po/zh_CN.po: Likewise
11215 * po/zh_TW.po: Likewise
11216
11217 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11218
11219 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11220 initialization...
11221 (init): ... before initializing libpthread.
11222
11223 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11224 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11225 (__mach_setup_tls): ... new function.
11226 (mach_setup_tls): New alias.
11227 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11228 __mach_setup_thread.
11229 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11230 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11231 * mach/Versions [libc] (mach_setup_tls): Add symbol.
11232 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11233
11234 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11235
11236 * manual/install.texi: Update versions.
11237 * INSTALL: Regenerate.
11238
11239 * manual/contrib.texi (Contributors): Update contributions.
11240
11241 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11242
11243 * po/be.po: Update translations.
11244
11245 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11246
11247 * sysdeps/sh/libm-test-ulps: Update.
11248
11249 2018-07-30 Carlos O'Donell <carlos@redhat.com>
11250
11251 * po/bg.po: Update translations.
11252 * po/de.po: Likewise.
11253 * po/hr.po: Likewise.
11254 * po/pt_BR.po: Likewise.
11255 * po/sv.po: Likewise.
11256 * po/vi.po: Likewise.
11257
11258 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11259
11260 [BZ #23467]
11261 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11262 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11263 (CFLAGS-tst-cet-property-1.o): New.
11264 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11265 ($(objpfx)tst-cet-property-2): Likewise.
11266 ($(objpfx)tst-cet-property-2.out): Likewise.
11267 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11268 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11269 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11270 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11271 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11272
11273 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11274
11275 [BZ #23458]
11276 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11277
11278 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11279
11280 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11281 __sbrk): Do not set attribute_hidden.
11282 * sysdeps/mach/hurd/not-errno.h: New file.
11283 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11284 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11285
11286 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11287
11288 * po/uk.po: Update translations.
11289 * po/cs.po: Likewise.
11290 * po/pl.po: Likewise.
11291
11292 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11293
11294 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11295 parse beyond the note end.
11296
11297 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11298
11299 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11300 kernel does not support OFD locks.
11301 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11302
11303 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11304
11305 * sysdeps/mach/hurd/Versions (libc): Make __access and
11306 __access_noerrno external so they can override the ld symbols.
11307 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11308 __writev, __open64, __access_noerrno extern so they can be overrided.
11309 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11310 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11311
11312 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11313
11314 * po/libc.pot: Regenerate.
11315
11316 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11317
11318 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11319
11320 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11321
11322 [BZ #23459]
11323 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11324 function.
11325 (init_cpu_features): Call get_extended_indices for both Intel
11326 and AMD CPUs.
11327 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11328 Remove "for AMD" comment.
11329
11330 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11331
11332 [BZ # 23456]
11333 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11334 COMMON_CPUID_INDEX_80000001.
11335
11336 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11337
11338 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11339 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11340
11341 2018-07-26 Florian Weimer <fweimer@redhat.com>
11342
11343 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11344 aliases for symbols not in the implementation namespace.
11345
11346 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11347
11348 [BZ #23393]
11349 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11350 lowercase in LATIN script.
11351 * localedata/Makefile (test-input): Add en_US.UTF-8.
11352 * localedata/en_US.UTF-8.in: New file.
11353 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11354 and restore old tests.
11355 * posix/tst-regexloc.c (do_test): Add back range expression test.
11356
11357 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11358
11359 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11360
11361 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11362
11363 * nptl/threads.h: Move to ...
11364 * sysdeps/nptl/threads.h: ... here.
11365 * sysdeps/hurd/stdc-predef.h: New file.
11366
11367 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11368
11369 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11370 tst-cet-setcontext-1 if CET is enabled.
11371 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11372 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11373
11374 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11375
11376 * include/threads.h: Move to ...
11377 * sysdeps/nptl/threads.h: ... here.
11378 * sysdeps/htl/threads.h: New file.
11379 * conform/Makefile (linknamespace-libs-ISO11): Use
11380 static-thread-library instead of linking libpthread.
11381 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11382
11383 2018-07-25 Florian Weimer <fweimer@redhat.com>
11384
11385 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11386 nanoseconds into seconds.
11387 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11388 (do_test): Likewise.
11389 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11390 (do_test): Likewise. Avoid nanosecond overflow and spurious
11391 timeouts due to system load.
11392 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11393 (child_wait): Increment it.
11394 (do_test): Wait as long as necessary until all expected threads
11395 have arrived.
11396
11397 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11398 H.J. Lu <hongjiu.lu@intel.com>
11399
11400 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11401 __ssp.
11402 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11403 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11404 (__push___start_context): New.
11405 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11406 <asm/prctl.h>.
11407 (__getcontext): Record the current shadow stack base. Save the
11408 caller's shadow stack pointer and base.
11409 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11410 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11411 (__push___start_context): New prototype.
11412 (__makecontext): Call __push___start_context to allocate a new
11413 shadow stack, push __start_context onto the new stack as well
11414 as the new shadow stack.
11415 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11416 <asm/prctl.h>.
11417 (__setcontext): Restore the target shadow stack.
11418 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11419 <asm/prctl.h>.
11420 (__swapcontext): Record the current shadow stack base. Save
11421 the caller's shadow stack pointer and base. Restore the target
11422 shadow stack.
11423 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11424 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11425 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11426
11427 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11428
11429 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11430 tst-setcontext8 and tst-setcontext9.
11431 * stdlib/tst-setcontext6.c: New file.
11432 * stdlib/tst-setcontext7.c: Likewise.
11433 * stdlib/tst-setcontext8.c: Likewise.
11434 * stdlib/tst-setcontext9.c: Likewise.
11435
11436 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11437
11438 * stdlib/Makefile ((tests): Add tst-setcontext5.
11439 * stdlib/tst-setcontext5.c: New file.
11440
11441 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11442
11443 * stdlib/Makefile (tests): Add tst-setcontext4.
11444 * stdlib/tst-setcontext4.c: New file.
11445
11446 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11447
11448 * stdlib/Makefile (tests): Add tst-swapcontext1.
11449 * stdlib/tst-swapcontext1.c: New test.
11450
11451 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11452
11453 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11454 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11455 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11456 and tst-cet-legacy-4c.
11457 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11458 and tst-cet-legacy-mod-4.
11459 (CFLAGS-tst-cet-legacy-2.c): New.
11460 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11461 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11462 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11463 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11464 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11465 ($(objpfx)tst-cet-legacy-1): Likewise.
11466 ($(objpfx)tst-cet-legacy-2): Likewise.
11467 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11468 ($(objpfx)tst-cet-legacy-2a): Likewise.
11469 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11470 ($(objpfx)tst-cet-legacy-4): Likewise.
11471 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11472 ($(objpfx)tst-cet-legacy-4a): Likewise.
11473 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11474 (tst-cet-legacy-4a-ENV): Likewise.
11475 ($(objpfx)tst-cet-legacy-4b): Likewise.
11476 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11477 (tst-cet-legacy-4b-ENV): Likewise.
11478 ($(objpfx)tst-cet-legacy-4c): Likewise.
11479 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11480 (tst-cet-legacy-4c-ENV): Likewise.
11481 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11482 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11483 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11484 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11485 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11486 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11487 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11488 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11489 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11490 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11491 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11492
11493 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11496 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11497 with ssp_base.
11498 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11499 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11500 with ssp_base.
11501
11502 2018-07-25 Andreas Schwab <schwab@suse.de>
11503
11504 [BZ #23442]
11505 * locale/weightwc.h (findidx): Handle the case where usrc is a
11506 prefix of cp but one character too short.
11507
11508 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11509
11510 * NEWS: Add ISO C threads addition.
11511
11512 2018-07-24 Florian Weimer <fweimer@redhat.com>
11513
11514 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11515 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11516 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11517 4.13.
11518
11519 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11520
11521 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11522 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11523 <sys/prctl.h> and <asm/prctl.h>.
11524 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11525 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11526 and <asm/prctl.h>.
11527 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11528 ARCH_CET_LEGACY_BITMAP.
11529 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11530 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11531 * sysdeps/x86/libc-start.c: Include <startup.h>.
11532
11533 2018-07-24 Florian Weimer <fweimer@redhat.com>
11534
11535 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11536 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11537
11538 2018-07-24 Rical Jasan <rj@2c3t.io>
11539 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11540 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11541
11542 [BZ #14092]
11543 * manual/debug.texi: Update adjacent chapter name.
11544 * manual/probes.texi: Likewise.
11545 * manual/threads.texi (ISO C Threads): New section.
11546 (POSIX Threads): Convert to a section.
11547
11548 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11549 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11550
11551 [BZ# 14092]
11552 * nptl/Makefile (tests): Add new test files.
11553 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11554 * nptl/tst-cnd-basic.c: Likewise.
11555 * nptl/tst-cnd-broadcast.c: Likewise.
11556 * nptl/tst-cnd-timedwait.c: Likewise.
11557 * nptl/tst-mtx-basic.c: Likewise.
11558 * nptl/tst-mtx-recursive.c: Likewise.
11559 * nptl/tst-mtx-timedlock.c: Likewise.
11560 * nptl/tst-mtx-trylock.c: Likewise.
11561 * nptl/tst-thrd-basic.c: Likewise.
11562 * nptl/tst-thrd-detach.c: Likewise.
11563 * nptl/tst-thrd-sleep.c: Likewise.
11564 * nptl/tst-tss-basic.c: Likewise.
11565
11566 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11567
11568 [BZ #14092]
11569 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11570 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11571 symbols.
11572 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11585 Likewise.
11586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11587 Likewise.
11588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11589 Likewise.
11590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11600 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11601 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11602 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11603 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11604 Likewise.
11605 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11617 ikewise.
11618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11620 Likewise.
11621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11622 Likewise.
11623 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11631
11632 [BZ #14092]
11633 * conform/data/threads.h-data (thread_local): New macro.
11634 (TSS_DTOR_ITERATIONS): Likewise.
11635 (tss_t): New type.
11636 (tss_dtor_t): Likewise.
11637 (tss_create): New function.
11638 (tss_get): Likewise.
11639 (tss_set): Likewise.
11640 (tss_delete): Likewise.
11641 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11642 tss_get, and tss_set objects.
11643 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11644 * nptl/tss_create.c: New file.
11645 * nptl/tss_delete.c: Likewise.
11646 * nptl/tss_get.c: Likewise.
11647 * nptl/tss_set.c: Likewise.
11648 * sysdeps/nptl/threads.h (thread_local): New define.
11649 (TSS_DTOR_ITERATIONS): Likewise.
11650 (tss_t): New typedef.
11651 (tss_dtor_t): Likewise.
11652 (tss_create): New prototype.
11653 (tss_get): Likewise.
11654 (tss_set): Likewise.
11655 (tss_delete): Likewise.
11656
11657 [BZ #14092]
11658 * conform/data/threads.h-data (cnd_t): New type.
11659 (cnd_init): New function.
11660 (cnd_signal): Likewise.
11661 (cnd_broadcast): Likewise.
11662 (cnd_wait): Likewise.
11663 (cnd_timedwait): Likewise.
11664 (cnd_destroy): Likewise.
11665 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11666 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11667 object.
11668 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11669 * nptl/cnd_broadcast.c: New file.
11670 * nptl/cnd_destroy.c: Likewise.
11671 * nptl/cnd_init.c: Likewise.
11672 * nptl/cnd_signal.c: Likewise.
11673 * nptl/cnd_timedwait.c: Likewise.
11674 * nptl/cnd_wait.c: Likewise.
11675 * sysdeps/nptl/threads.h (cnd_t): New type.
11676 (cnd_init): New prototype.
11677 (cnd_signa): Likewise.
11678 (cnd_broadcast): Likewise.
11679 (cnd_wait): Likewise.
11680 (cnd_timedwait): Likewise.
11681 (cnd_destroy): Likewise.
11682
11683 [BZ #14092]
11684 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11685 (once_flag): New type.
11686 (call_once): New function.
11687 * nptl/Makefile (libpthread-routines): Add call_once object.
11688 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11689 * nptl/call_once.c: New file.
11690 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11691 (once_flag): New type.
11692 (call_once): New prototype.
11693
11694 [BZ #14092]
11695 * conform/data/threads.h-data (mtx_plain): New constant.
11696 (mtx_recursive): Likewise.
11697 (mtx_timed): Likewise.
11698 (mtx_t): New type.
11699 (mtx_init): New function.
11700 (mtx_lock): Likewise.
11701 (mtx_timedlock): Likewise.
11702 (mtx_trylock): Likewise.
11703 (mtx_unlock): Likewise.
11704 (mtx_destroy): Likewise.
11705 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11706 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11707 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11708 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11709 * nptl/mtx_destroy.c: New file.
11710 * nptl/mtx_init.c: Likewise.
11711 * nptl/mtx_lock.c: Likewise.
11712 * nptl/mtx_timedlock.c: Likewise.
11713 * nptl/mtx_trylock.c: Likewise.
11714 * nptl/mtx_unlock.c: Likewise.
11715 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11716 (mtx_recursive): Likewise.
11717 (mtx_timed): Likewise.
11718 (mtx_t): New type.
11719 (mtx_init): New prototype.
11720 (mtx_lock): Likewise.
11721 (mtx_timedlock): Likewise.
11722 (mtx_trylock): Likewise.
11723 (mtx_unlock): Likewise.
11724 (mtx_destroy): Likewise.
11725
11726 [BZ #14092]
11727 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11728 (linknamespace-libs-ISO11): Add libpthread.a.
11729 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11730 functions.
11731 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11732 * nptl/Makefile (headers): Add threads.h.
11733 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11734 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11735 thrd_yield.
11736 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11737 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11738 thrd_join, thrd_sleep, and thrd_yield symbols.
11739 * nptl/descr.h (struct pthread): Add c11 field.
11740 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11741 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11742 routine with expected function prototype.
11743 (__pthread_create_2_1): Add C11 threads check based on attribute
11744 value.
11745 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11746 * nptl/thrd_create.c: New file.
11747 * nptl/thrd_current.c: Likewise.
11748 * nptl/thrd_detach.c: Likewise.
11749 * nptl/thrd_equal.c: Likewise.
11750 * nptl/thrd_exit.c: Likewise.
11751 * nptl/thrd_join.c: Likewise.
11752 * nptl/thrd_priv.h: Likewise.
11753 * nptl/thrd_sleep.c: Likewise.
11754 * nptl/thrd_yield.c: Likewise.
11755 * include/threads.h: Likewise.
11756
11757 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11758
11759 * bits/indirect-return.h: New file.
11760 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11761 * sysdeps/x86/bits/indirect-return.h: Likewise.
11762 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11763 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11764 (swapcontext): Add __INDIRECT_RETURN.
11765 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11766 (prepare_test_buffer): Use it.
11767
11768 2018-07-24 Andreas Schwab <schwab@suse.de>
11769
11770 [BZ #23448]
11771 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11772 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11773
11774 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11775
11776 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11777 Redefine if shadow stack is enabled.
11778 (SYSCALL_ERROR_LABEL): Likewise.
11779 (__vfork): Pop shadow stack and jump back to to caller directly
11780 when shadow stack is in use.
11781 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11782 Redefine if shadow stack is enabled.
11783 (SYSCALL_ERROR_LABEL): Likewise.
11784 (__vfork): Pop shadow stack and jump back to to caller directly
11785 when shadow stack is in use.
11786
11787 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11788
11789 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11790 enabled.
11791 (foo): Likewise.
11792 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11793 (foo): Likewise.
11794
11795 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11796
11797 * scripts/build-many-glibcs.py (Context.checkout): Default
11798 binutils version to 2.31 branch.
11799
11800 2018-07-20 Zong Li <zong@andestech.com>
11801
11802 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11803 URL of gcc's tarball.
11804
11805 2018-07-20 Florian Weimer <fweimer@redhat.com>
11806
11807 [BZ #23396]
11808 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11809 not compare an extra byte after the end of the weights.
11810
11811 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11812
11813 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11814 to 1.
11815 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11816 hidden prototypes.
11817 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11818 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11819 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11820 list of libraries whose stack executability is expected.
11821 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11822 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11823 variable.
11824 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11825 libc.so libpthread.so.
11826
11827 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11828
11829 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11830 SOCK_NONBLOCK.
11831 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11832 and SOCK_NONBLOCK.
11833 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11834 implement __pipe2.
11835 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11836
11837 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11838
11839 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11840 library to improve command line parsing.
11841 (__main__): make schema file as optional parameter (--schema),
11842 defaulting to benchtests/scripts/benchout.schema.json.
11843 (main): move out of the parsing stuff to __main_  and leave it
11844 only as caller of main comparison functions.
11845
11846 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11847
11848 * NEWS: Add a note for Intel CET status.
11849 * manual/install.texi: Likewise.
11850 * INSTALL: Regenerated.
11851
11852 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11853
11854 [BZ #23140]
11855 * localedata/locales/oc_FR (mon): Rename to...
11856 (alt_mon): This, then update October (typo fix).
11857 (mon): New content (genitive case, month names preceded by
11858 "de" or "d’").
11859
11860 [BZ #23422]
11861 * localedata/locales/oc_FR (abday): Update all items.
11862 (day): Update Wednesday and Saturday (typo fixes).
11863 (abmon): Update all items, except May.
11864 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11865 (LC_IDENTIFICATION): Bump the revision number and date.
11866 Keep the "category" entries in alphabetic order.
11867 (LC_ADDRESS): Remove no longer needed comment.
11868 (LC_COLLATE): Use “copy "ca_ES"”.
11869 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11870 "name_mrs".
11871
11872 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11873
11874 * grp/tst_fgetgrent.c: Include <unistd.h>.
11875 (main): Use mkstemp instead of tmpnam.
11876 * io/test-utime.c (main): Likewise.
11877 * posix/annexc.c (macrofile): Change to modifiable array.
11878 (main): Remove macrofile here.
11879 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11880 macrofile here.
11881 (check_header): Do not remove macrofile here.
11882 * posix/bug-getopt1.c: Include <stdlib.h>.
11883 (do_test): Use mkstemp instead of tmpnam.
11884 * posix/bug-getopt2.c: Include <stdlib.h>.
11885 (do_test): Use mkstemp instead of tmpnam.
11886 * posix/bug-getopt3.c: Include <stdlib.h>.
11887 (do_test): Use mkstemp instead of tmpnam.
11888 * posix/bug-getopt4.c: Include <stdlib.h>.
11889 (do_test): Use mkstemp instead of tmpnam.
11890 * posix/bug-getopt5.c: Include <stdlib.h>.
11891 (do_test): Use mkstemp instead of tmpnam.
11892 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11893 (main): Use mkstemp instead of tmpnam.
11894 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11895 (main): Use mkstemp instead of tmpnam.
11896 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11897 (main): use mkstemp instead of tmpnam.
11898 * stdlib/isomac.c (macrofile): Change to modifiable array.
11899 (main): Remove macrofile here.
11900 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11901 macrofile here.
11902 (check_header): Do not remove macrofile here.
11903
11904 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11905
11906 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11907 glibc.tune.x86_shstk.
11908
11909 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11910
11911 * NEWS: Mention --enable-cet.
11912 * manual/install.texi: Document --enable-cet.
11913 * INSTALL: Regenerated.
11914
11915 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11916
11917 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11918 Add _CET_NOTRACK before indirect jump to jump table.
11919
11920 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11921
11922 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11923 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11924 to jump table.
11925
11926 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11927
11928 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11929 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11930 to jump table.
11931
11932 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11933
11934 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11935 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11936 to jump table.
11937
11938 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11939
11940 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11941 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11942 to jump table.
11943
11944 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11945
11946 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11947 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11948 to jump table.
11949 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11950
11951 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11952
11953 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11954 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11955 to jump table.
11956
11957 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11958
11959 * sysdeps/i386/i686/multiarch/memset-sse2.S
11960 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11961 to jump table.
11962
11963 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11964
11965 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11966 indirect jump to jump table.
11967
11968 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11969
11970 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11971 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11972 to jump table.
11973 (MEMCPY): Likewise.
11974
11975 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11976
11977 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11978 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11979 to jump table.
11980 (MEMCPY): Likewise.
11981
11982 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11983
11984 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11985 _CET_NOTRACK before indirect jump to jump table.
11986
11987 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11988
11989 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11990 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11991 to jump table.
11992
11993 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11994
11995 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11996 indirect jump to jump table.
11997
11998 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11999
12000 [BZ #22241]
12001 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
12002 (LOCALES): Likewise.
12003 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
12004 * localedata/locales/sah_RU: New file.
12005 * localedata/sah_RU.UTF-8.in: New file.
12006
12007 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12008
12009 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12010 "sysdep.h".
12011 (__mpn_add_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 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
12015 "sysdep.h".
12016 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
12017 _CET_ENDBR to indirect jump targets and adjust jump destination
12018 for _CET_ENDBR.
12019 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
12020 "sysdep.h".
12021 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
12022 _CET_ENDBR to indirect jump targets and adjust jump destination
12023 for _CET_ENDBR.
12024
12025 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12026
12027 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12028 _CET_ENDBR.
12029
12030 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12031
12032 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12033 _CET_ENDBR.
12034 (_dl_tlsdesc_undefweak): Likewise.
12035 (_dl_tlsdesc_dynamic): Likewise.
12036 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12037 (_dl_tlsdesc_resolve_rel): Likewise.
12038 (_dl_tlsdesc_resolve_rela): Likewise.
12039 (_dl_tlsdesc_resolve_hold): Likewise.
12040 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12041 (_dl_tlsdesc_undefweak): Likewise.
12042 (_dl_tlsdesc_dynamic): Likewise.
12043 (_dl_tlsdesc_resolve_rela): Likewise.
12044 (_dl_tlsdesc_resolve_hold): Likewise.
12045
12046 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12047
12048 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12049 (_fini): Likewise.
12050 * sysdeps/x86_64/crti.S (_init): Likewise.
12051 (_fini): Likewise.
12052
12053 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
12054
12055 [BZ #23140]
12056 * localedata/locales/os_RU (mon): Rename to...
12057 (alt_mon): This.
12058 (mon): Import from CLDR (genitive case).
12059
12060 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12061
12062 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12063 cet-tunables.h> when CET is enabled.
12064
12065 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
12066
12067 [BZ #21598]
12068 * configure.ac: Add --enable-cet.
12069 * configure: Regenerated.
12070 * elf/Makefille (all-built-dso): Add a comment.
12071 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12072 Include <dl-prop.h>.
12073 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12074 segment.
12075 * elf/dl-open.c: Include <dl-prop.h>.
12076 (dl_open_worker): Call _dl_open_check.
12077 * elf/rtld.c: Include <dl-prop.h>.
12078 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
12079 _rtld_main_check.
12080 * sysdeps/generic/dl-prop.h: New file.
12081 * sysdeps/i386/dl-cet.c: Likewise.
12082 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12083 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12084 * sysdeps/x86/cet-tunables.h: Likewise.
12085 * sysdeps/x86/check-cet.awk: Likewise.
12086 * sysdeps/x86/configure: Likewise.
12087 * sysdeps/x86/configure.ac: Likewise.
12088 * sysdeps/x86/dl-cet.c: Likewise.
12089 * sysdeps/x86/dl-procruntime.c: Likewise.
12090 * sysdeps/x86/dl-prop.h: Likewise.
12091 * sysdeps/x86/libc-start.h: Likewise.
12092 * sysdeps/x86/link_map.h: Likewise.
12093 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12094 _CET_ENDBR.
12095 (_dl_runtime_profile): Likewise.
12096 (_dl_runtime_resolve_shstk): New.
12097 (_dl_runtime_profile_shstk): Likewise.
12098 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12099 if CET is enabled.
12100 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12101 (CFLAGS-.os): Likewise.
12102 (CFLAGS-.op): Likewise.
12103 (CFLAGS-.oS): Likewise.
12104 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12105 is enabled.
12106 (tests-special): Add $(objpfx)check-cet.out.
12107 (cet-built-dso): New.
12108 (+$(cet-built-dso:=.note)): Likewise.
12109 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12110 ($(objpfx)check-cet.out): New.
12111 (generated): Add check-cet.out.
12112 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12113 <cet-tunables.h>.
12114 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12115 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12116 (init_cpu_features): Call get_cet_status to check CET status
12117 and update dl_x86_feature_1 with CET status. Call
12118 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12119 (set_x86_shstk). Disable and lock CET in libc.a.
12120 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12121 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12122 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12123 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12124 (_CET_ENDBR): Define if not defined.
12125 (ENTRY): Add _CET_ENDBR.
12126 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12127 x86_shstk.
12128 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12129 _CET_ENDBR.
12130 (_dl_runtime_profile): Likewise.
12131
12132 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12133
12134 [BZ #21895]
12135 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12136 restore r2 on longjmp.
12137 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12138 test list.
12139 Added rules to build test tst-setjmp-bug21895-static.
12140 Added module setjmp-bug21895 and rules to build a shared object from it.
12141 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12142 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12143
12144 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
12145
12146 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12147 * benchtests/bench-strstr.c: Likewise.
12148 * string/memmem.c (FASTSEARCH): Define.
12149 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12150 Add support for FASTSEARCH.
12151 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12152 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12153 (FASTSEARCH): Define.
12154 * string/test-strcasestr.c: Rename __strnlen to strnlen.
12155 * string/test-strstr.c: Likewise.
12156
12157 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
12158
12159 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12160 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12161
12162 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12163 H.J. Lu <hongjiu.lu@intel.com>
12164
12165 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12166 (__longjmp): Restore shadow stack pointer if shadow stack is
12167 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12168 isn't defined for __longjmp_cancel.
12169 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12170 (_setjmp): Save shadow stack pointer if shadow stack is enabled
12171 and SHADOW_STACK_POINTER_OFFSET is defined.
12172 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12173 (setjmp): Save shadow stack pointer if shadow stack is enabled
12174 and SHADOW_STACK_POINTER_OFFSET is defined.
12175 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12176 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12177 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12178 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12179 <jmp_buf-ssp.h>.
12180 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12181 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12182 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12183 Remove jmp_buf-ssp.sym.
12184 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12185 <jmp_buf-ssp.h>.
12186 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12187 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12188 * sysdeps/x86/Makefile (gen-as-const-headers): Add
12189 jmp_buf-ssp.sym.
12190 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12191 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12192 (__longjmp): Restore shadow stack pointer if shadow stack is
12193 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12194 isn't defined for __longjmp_cancel.
12195 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12196 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12197 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12198
12199 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
12200
12201 [BZ #22563]
12202 * nptl/pthread_create.c: Include <tls-setup.h>.
12203 (__pthread_create_2_1): Call tls_setup_tcbhead.
12204 * sysdeps/generic/tls-setup.h: New file.
12205 * sysdeps/x86/nptl/tls-setup.h: Likewise.
12206 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12207 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12208 Likewise.
12209 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12210 to feature_1.
12211 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12212 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12213 (X86_FEATURE_1_SHSTK): Likewise.
12214 (CET_ENABLED): Likewise.
12215 (IBT_ENABLED): Likewise.
12216 (SHSTK_ENABLED): Likewise.
12217
12218 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
12219
12220 [BZ #23208]
12221 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12222 (LOCALES): Likewise.
12223 * localedata/dsb_DE.UTF-8.in: New file.
12224 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12225
12226 2018-07-12 Florian Weimer <fweimer@redhat.com>
12227
12228 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12229 __mprotect, not mprotect.
12230
12231 2018-07-11 Florian Weimer <fweimer@redhat.com>
12232
12233 * io/Makefile (headers): Add bits/statx.h.
12234
12235 2018-07-10 Mike FABIAN <mfabian@redhat.com>
12236
12237 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12238 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12239 and headers.
12240 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12241 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12242 for utf8_gen.py
12243
12244 2018-07-10 Florian Weimer <fweimer@redhat.com>
12245
12246 * io/Makefile (routines): Add statx.
12247 (tests-internal): Add tst-statx.
12248 * io/Versions (GLIBC_2.28): Export statx.
12249 * io/bits/statx.h: New file.
12250 * io/sys/stat.h [__USE_GNU]: Include it.
12251 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12252 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12253 Define.
12254 * io/statx.c: New file.
12255 * io/statx_generic.: Likewise.
12256 * io/tst-statx.: Likewise.
12257 * include/bits/statx.h: Likewise.
12258 * sysdeps/unix/sysv/linux/kernel-features.h
12259 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12260 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12261 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12262 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12263 Undefine.
12264 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12265 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12266 * sysdeps/unix/sysv/linux/statx.c: New file.
12267 * manual/filesys.texi: Note that statx is undocumented.
12268 * sysdeps/**/libc*.abilist: Update.
12269
12270 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12271
12272 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12273 a kernel issue which lead to test failure in some cases.
12274
12275 2018-07-10 Florian Weimer <fweimer@redhat.com>
12276
12277 [BZ #23036]
12278 * posix/regexec.c (check_node_accept_bytes): When comparing
12279 weights, do not compare an extra byte after the end of the
12280 weights.
12281
12282 2018-07-10 Florian Weimer <fweimer@redhat.com>
12283
12284 * libio/readline.c: Fix copyright year.
12285 * libio/tst-readline.c Likewise.
12286 * nss/tst-nss-files-hosts-getent.c: Likewise.
12287
12288 2018-07-06 Florian Weimer <fweimer@redhat.com>
12289
12290 [BZ #18991]
12291 * nss/nss_files/files-XXX.c (internal_getent): Use
12292 __libc_readline_unlocked. Seek back to the start of the line if
12293 parsing failes with ERANGE.
12294 (get_contents_ret, get_contents): Remove.
12295 * nss/tst-nss-files-hosts-getent.c: New file.
12296 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12297 (tst-nss-files-hosts-getent): Link with -ldl.
12298
12299 2018-07-06 Florian Weimer <fweimer@redhat.com>
12300
12301 * include/stdio.h (__libc_readline_unlocked): Declare.
12302 (__ftello64, __fseeko64): Declare aliases.
12303 * libio/readline.c: New file.
12304 * libio/tst-readline.c: Likewise.
12305 (routines): Add readline.
12306 (tests-internal): Add tst-readlime.
12307 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12308 __libc_readline_unlocked.
12309 * libio/fseeko.c (__fseeko): Rename from fseeko.
12310 (fseeko): Add alias.
12311 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12312 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12313 (fseeko64): Add alias.
12314 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12315 * libio/ftello64.c (__ftello64): Rename from ftello64.
12316 (ftello64): Add alias.
12317
12318 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12319
12320 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12321 HWCAP_ATOMICS.
12322
12323 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12324
12325 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12326 Use dl_hwcap without masking.
12327 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12328 Remove HWCAP_CPUID.
12329
12330 2018-07-06 Florian Weimer <fweimer@redhat.com>
12331
12332 * conform/conformtest.pl (checknamespace): Escape literal braces
12333 in regular expressions.
12334
12335 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12336
12337 * sysdeps/x86/cpu-features.c (get_common_indeces):
12338 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12339 * sysdeps/x86/cpu-features.c (init_cpu_features):
12340 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12341
12342 2018-07-05 Florian Weimer <fweimer@redhat.com>
12343
12344 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12345 protector.
12346 (CFLAGS-elf-init.oS): Likewise.
12347
12348 2018-07-05 Florian Weimer <fweimer@redhat.com>
12349 Carlos O'Donell <carlos@redhat.com>
12350
12351 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12352 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12353 with stack protector enabled because there is no risk of infinite
12354 recursion.
12355
12356 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12357
12358 [BZ #19818]
12359 [BZ #23307]
12360 * libc-abis (ABSOLUTE): New ABI.
12361 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12362 * NEWS: Mention the new ABI.
12363
12364 2018-07-05 Florian Weimer <fweimer@redhat.com>
12365
12366 [BZ # 17662]
12367 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12368 (RENAME_WHITEOUT): Define.
12369 [__USE_GNU] (renameat2): Declare.
12370 * stdio-common/Makefile (routines): Add renameat2.
12371 (tests): Add tst-renameat2.
12372 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12373 * stdio-common/renameat2.c: New file.
12374 * stdio-common/tst-renameat2.c: Likewise.
12375 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12376 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12377 undocumented.
12378 * sysdeps/unix/sysv/linux/kernel-features.h
12379 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12380 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12381 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12382 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12383 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12384 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12385 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12386 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12387 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12388 * include/stdio.h (__renameat): Add alias for renameat.
12389 * stdio-common/renameat.c (__renameat): Rename from renameat.
12390 Add hidden definition and alias.
12391 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12392 * sysdeps/mach/hurd/renameat.c: Likewise.
12393 * sysdeps/**/libc*.abilist: Add renameat2.
12394
12395 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12396
12397 * posix/bug-regex33.c: Fix build after regex sync.
12398
12399 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12400
12401 [BZ #23164]
12402 * localedata/tst-langinfo-setlocale.c: New file.
12403 * localedata/tst-langinfo-setlocale-static.c: New file.
12404 * localedata/tst-langinfo-newlocale.c: New file.
12405 * localedata/tst-langinfo-newlocale-static.c: New file.
12406 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12407 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12408 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12409 (tests-static): Remove tst-langinfo-static. Add
12410 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12411 (tests-special): Remove $(objpfx)tst-langinfo.out,
12412 $(objpfx)tst-langinfo-static.out. Add
12413 $(objpfx)tst-langinfo-setlocale.out,
12414 $(objpfx)tst-langinfo-newlocale.out,
12415 $(objpfx)tst-langinfo-setlocale-static.out,
12416 $(objpfx)tst-langinfo-newlocale-static.out.
12417 ($(objpfx)tst-langinfo.out): Remove.
12418 ($(objpfx)tst-langinfo-static.out): Remove.
12419 ($(objpfx)tst-langinfo-newlocale.out): New target.
12420 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12421 (test-xfail-tst-langinfo-newlocale-static): Add.
12422 ($(objpfx)tst-langinfo-setlocale.out): New target.
12423 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12424 * localedata/tst-langinfo.c: Call test_locale.
12425 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12426 data.
12427
12428 2018-07-04 Florian Weimer <fweimer@redhat.com>
12429
12430 testrun.sh: Implement --tool=strace, --tool=valgrind
12431 * Makefile (testrun-script): Define variable.
12432 (testrun.sh): Use variable.
12433 * manual/install.texi (Tools for Compilation): make 4.0 or later
12434 is required.
12435 * configure.ac: Check for make 4.0 or later.
12436 * INSTALL: Regenerate.
12437 * configure: Likewise.
12438
12439 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12440
12441 [BZ #23233]
12442 [BZ #21163]
12443 [BZ #18986]
12444 [BZ #13762]
12445 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12446 * posix/PCRE.tests: Remove invalid test.
12447 * posix/bug-regex28.c: Fix expected values for used syntax.
12448 * posix/bug-regex37.c: New file.
12449 * posix/bug-regex38.c: Likewise.
12450 * posix/regcomp.c: Sync with gnulib.
12451 * posix/regex.c: Likewise.
12452 * posix/regex.h: Likewise.
12453 * posix/regex_internal.c: Likewise.
12454 * posix/regex_internal.h: Likewise.
12455 * posix/regexec.c: Likewise.
12456
12457 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12458
12459 [BZ #23308]
12460 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12461 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12462 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12463 * localedata/unicode-gen/PropList.txt: likewise.
12464 * localedata/unicode-gen/UnicodeData.txt: likewise.
12465 * localedata/charmaps/UTF-8: Regenerate.
12466 * localedata/locales/i18n_ctype: likewise.
12467 * localedata/locales/tr_TR: likewise.
12468 * localedata/locales/translit_circle: likewise.
12469 * localedata/locales/translit_cjk_compat: likewise.
12470 * localedata/locales/translit_combining: likewise.
12471 * localedata/locales/translit_compat: likewise.
12472 * localedata/locales/translit_font: likewise.
12473 * localedata/locales/translit_fraction: likewise.
12474
12475 2018-07-03 Florian Weimer <fweimer@redhat.com>
12476
12477 [BZ #23363]
12478 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12479 * stdio-common/tst-printf.sh: Adjust expected output.
12480 * LICENSES: Update.
12481
12482 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12483
12484 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12485 symbol.
12486
12487 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12488
12489 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12490 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12491 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12492 * stdio-common/tst-printfsz-islongdouble.c: New file.
12493 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12494 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12495 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12496 [subdir == stdio-common] (tests-internal): Add
12497 test-printf-size-ieee128, and test-printf-size-ibm128.
12498 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12499 (CFLAGS-test-printf-size-ibm128.c): New variables.
12500 [subdir == stdio-common] (tests-special): Add
12501 $(objpfx)test-printf-size-ieee128.out and
12502 $(objpfx)test-printf-size-ibm128.out.
12503 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12504 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12505 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12506 __printf_sizeieee128.
12507 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12508 New file.
12509 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12510 Likewise.
12511 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12512 Likewise.
12513
12514 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12515
12516 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12517 (exp2f_inline): Likewise.
12518 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12519 (__math_uflowf): Likewise.
12520 (__math_may_uflowf): Likewise.
12521 (__math_divzerof): Likewise.
12522 (__math_invalidf): Likewise.
12523 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12524 (__math_oflowf): Likewise.
12525 (__math_uflowf): Likewise.
12526 (__math_may_uflowf): Likewise.
12527 (__math_divzerof): Likewise.
12528 (__math_invalidf): Likewise.
12529
12530 2018-06-29 DJ Delorie <dj@redhat.com>
12531 Carlos O'Donell <carlos@redhat.com>
12532
12533 [BZ #23329]
12534 * include/libc-symbols.h: Comment the freeres framework.
12535 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12536 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12537 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12538 * dlfcn/dlerror.c: Include libc-symbols.h
12539 (__dlerror_main_freeres): New function.
12540 * dlfcn/dlfreeres.c: New file.
12541 * dlfcn/sdlfreeres.c: New file.
12542 * include/dlfcn.h: Declare __dlerror_main_freeres.
12543 * malloc/set-freeres.c: Declare __libdl_freeres, and
12544 __libpthread_freeres.
12545 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12546 the releavant libraries are loaded.
12547 * malloc/thread-freeres.c: Add comments.
12548 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12549 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12550 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12551 (__free_stacks): Rename to...
12552 (free_stacks): ...this. Mark static.
12553 (queue_stack): Call free_stacks.
12554 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12555 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12556 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12557 ptr_freeres element from struct.
12558 (pthread_functions): Remove .ptr_freeres from struct initializer.
12559 [SHARED] (nptl_freeres): Remove.
12560 * nptl/nptlfreeres.c: New file.
12561 * nptl/pthreadP.h
12562 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12563 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12564 attribute_hidden.
12565 (__free_stacks): Rename to...
12566 (__nptl_stacks_freeres): ...this.
12567 (__shm_directory_freeres): Declare.
12568 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12569 (__nptl_unwind_freeres): ...this.
12570 * resolv/res-close.c: Add comment.
12571 * resolv/resolv_conf.c: Include libc-symbols.h.
12572 * string/strerror_l.c: Include libc-symbols.h.
12573 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12574 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12575 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12576 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12577
12578 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12579
12580 * stdlib/tst-strfmon_l.c: Add tests for long double.
12581
12582 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12583
12584 [BZ #23208]
12585 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12586 * localedata/locales/dsb_DE: New file.
12587
12588 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12589
12590 [BZ #23140]
12591 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12592 genitive case).
12593 (alt_mon): New entry, import from CLDR (nominative case).
12594
12595 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12596
12597 [BZ #22996]
12598 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12599
12600 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12601
12602 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12603 Use vector registers.
12604
12605 * sysdeps/aarch64/multiarch/memmove_falkor.S
12606 (__memcpy_falkor): Use vector registers.
12607
12608 2018-06-29 Martin Sebor <msebor@redhat.com>
12609
12610 * manual/stdio.texi (Customizing Printf): Mention interaction
12611 with GCC built-ins.
12612
12613 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12614
12615 [BZ #23307]
12616 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12617 `st_value' is 0 if `st_shndx' is SHN_ABS.
12618 * elf/tst-absolute-zero.c: New file.
12619 * elf/tst-absolute-zero-lib.c: New file.
12620 * elf/tst-absolute-zero-lib.lds: New file.
12621 * elf/Makefile (tests): Add `tst-absolute-zero'.
12622 (modules-names): Add `tst-absolute-zero-lib'.
12623 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12624 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12625 ($(objpfx)tst-absolute-zero: New dependency.
12626
12627 2018-06-29 Zack Weinberg <zackw@panix.com>
12628
12629 * configure.ac: New command-line option --disable-crypt.
12630 Force --disable-nss-crypt when --disable-crypt is given, with a
12631 warning if it was explicitly enabled.
12632 * configure: Regenerate.
12633 * config.make.in: New boolean substitution variable $(build-crypt).
12634 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12635 when $(build-crypt).
12636 * manual/install.texi: Document --disable-crypt.
12637 * INSTALL: Regenerate.
12638
12639 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12640 which is never set.
12641 * conform/Makefile: Only include libcrypt.a in
12642 linknamespace-libs-xsi and linknamespace-libs-XPG4
12643 when $(build-crypt).
12644 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12645 USE_CRYPT to 1 when $(build-crypt).
12646 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12647 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12648 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12649
12650 2018-06-29 Zack Weinberg <zackw@panix.com>
12651
12652 * crypt/crypt.h, posix/unistd.h: Update comments and
12653 prototypes for crypt and crypt_r.
12654
12655 * manual/crypt.texi (Cryptographic Functions): New initial
12656 exposition.
12657 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12658 (Unpredictable Bytes): Improve initial exposition. Clarify error
12659 behavior of getentropy and getrandom.
12660 * manual/examples/genpass.c: Generate a salt using getentropy
12661 instead of the current time. Use hash $5$ (SHA-2-256).
12662 * manual/examples/testpass.c: Demonstrate validation against
12663 hashes generated with three different one-way functions.
12664
12665 * manual/intro.texi: crypt.texi does not need an overview
12666 anymore.
12667
12668 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12669 * manual/terminal.texi: Consistently refer to "passphrases"
12670 * instead of "passwords", and to the "user database" instead
12671 * of the "password database".
12672 * manual/users.texi: Similarly. Add notes about how actual
12673 passphrase hashes are now stored in the shadow database.
12674 Remove 20-year-old junk todo note.
12675
12676 2018-06-29 Zack Weinberg <zackw@panix.com>
12677
12678 * manual/crypt.texi: Use a normal top-level @node declaration.
12679 Move most of the introductory text to the 'crypt' section.
12680 Move the example programs below the @deftypefun for 'crypt_r'.
12681 Move the 'getpass' section...
12682 * manual/terminal.texi: ...here.
12683
12684 2018-06-29 Zack Weinberg <zackw@panix.com>
12685 Florian Weimer <fweimer@redhat.com>
12686
12687 * posix/unistd.h: Do not declare encrypt.
12688 (_XOPEN_CRYPT): Remove macro definition.
12689 (crypt): Declare only for _USE_MISC.
12690 * stdlib/stdlib.h: Do not declare setkey.
12691 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12692 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12693
12694 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12695 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12696 into compat symbols. Don't define initial_perm if it's not
12697 going to be used.
12698 * crypt/cert.c: Link explicitly with the expected versions for
12699 setkey and encrypt. If they are not available at all, mark
12700 the test as unsupported.
12701
12702 * sunrpc/des_crypt.c: Unconditionally block linkage with
12703 cbc_crypt and ecb_crypt for new binaries.
12704 * sunrpc/des_soft.c: Unconditionally block linkage with
12705 des_setparity for new binaries.
12706
12707 * manual/crypt.texi: Remove the entire "DES Encryption"
12708 section. Also remove the paragraph talking about FIPS 140-2
12709 from the introduction.
12710 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12711 of libgcrypt for "real" encryption, not DES.
12712 * manual/conf.texi (Constants for Sysconf): Mention that
12713 _XOPEN_CRYPT is no longer impelemented.
12714
12715 * conform/data/unistd.h-data: Remove crypt function declaration.
12716
12717 2018-06-29 Florian Weimer <fweimer@redhat.com>
12718
12719 [BZ #23351]
12720 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12721 (disallow_malloc_check): Remove variable.
12722 (__malloc_check_init): Adjust.
12723 (malloc_set_state): Update comment.
12724 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12725 declarations.
12726
12727 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12728
12729 [BZ #23140]
12730 * localedata/locales/ast_ES (mon): Rename to...
12731 (alt_mon): This.
12732 (mon): Import from CLDR (genitive case).
12733
12734 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12735 Jakub Sitnicki <jkbs@redhat.com>
12736
12737 [BZ #21812]
12738 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12739 on NLM_F_DUMP_INTR.
12740
12741 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12742
12743 * manual/llio.texi: Remove spurious space.
12744
12745 2018-06-28 Florian Weimer <fweimer@redhat.com>
12746
12747 [BZ #23349]
12748 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12749 _STRUCT_TIMESPEC.
12750
12751 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12752
12753 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12754 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12755 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12756 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12757 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12758 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12759 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12760
12761 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12762
12763 [BZ #23266]
12764 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12765 Copy and null-terminate entries that are not terminated, in
12766 addition to empty ones.
12767
12768 2018-06-27 Florian Weimer <fweimer@redhat.com>
12769
12770 [BZ #18023]
12771 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12772 (extend_alloca_account): Remove.
12773 * manual/stdio.texi (Variable Arguments Output): Update comment.
12774
12775 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12776
12777 * nptl/sockperf.c: Remove file.
12778
12779 2018-06-27 Florian Weimer <fweimer@redhat.com>
12780
12781 [BZ #18023]
12782 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12783 scratch_buffer instead of extend_alloca.
12784
12785 2018-06-27 Florian Weimer <fweimer@redhat.com>
12786
12787 [BZ #18023]
12788 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12789 scratch_buffer instead of extend_alloca. Update comments.
12790
12791 2018-06-27 Florian Weimer <fweimer@redhat.com>
12792
12793 [BZ #18023]
12794 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12795 instead of extend_alloca.
12796
12797 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12798
12799 [BZ #13888]
12800 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12801 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12802 /tmp.
12803 * scripts/test-installation.pl: Put temporary files in build
12804 directory, not /tmp.
12805 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12806 (CFLAGS-bug4.c): Likewise.
12807 (CFLAGS-bug5.c): Likewise.
12808 (CFLAGS-test-fseek.c): Likewise.
12809 (CFLAGS-test-popen.c): Likewise.
12810 (CFLAGS-test_rdwr.c): Likewise.
12811 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12812 /tmp.
12813 * stdio-common/bug4.c (main): Likewise.
12814 * stdio-common/bug5.c (main): Likewise.
12815 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12816 * stdio-common/test-popen.c (do_test): Likewise.
12817 * stdio-common/test_rdwr.c (main): Likewise.
12818
12819 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12820
12821 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12822 (sem_open): Set sem.newsem.pad to zero for valgrind.
12823
12824 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12825
12826 [BZ #20251]
12827 * NEWS: Mention fcntl64 addition.
12828 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12829 * login/utmp_file.c: Likewise.
12830 * sysdeps/posix/fdopendir.c: Likewise.
12831 * sysdeps/posix/opendir.c: Likewise.
12832 * sysdeps/unix/pt-fcntl.c: Likewise.
12833 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12834 __fcntl64_nocancel_adjusted): New prototype.
12835 (__fcntl_nocancel_adjusted): Remove prototype.
12836 * io/Makefile (routines): Add fcntl64.
12837 (CFLAGS-fcntl64.c): New rule.
12838 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12839 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12840 * io/fcntl.h (fcntl64): Add prototype and redirect if
12841 __USE_FILE_OFFSET64 is defined.
12842 * io/fcntl64.c: New file.
12843 * manual/llio.text: Add a note for which commands fcntl acts a
12844 cancellation point.
12845 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12846 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12847 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12848 New symbols.
12849 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12850 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12851 non-LFS case.
12852 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12853 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12854 to __fcntl64_nocancel.
12855 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12856 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12857 to __fcntl64_nocancel.
12858 * sysdeps/generic/not-cancel.h: Likewise.
12859 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12860 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12861 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12862 (fcntl64): New symbol.
12863 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12864 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12865 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12868 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12869 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12870 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12871 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12872 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12873 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12874 fcntl64): Likewise.
12875 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12876 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12877 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12878 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12879 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12880 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12881 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12882 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12883 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12885 Likewise.
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12887 Likewise.
12888 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12889 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12890 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12891
12892 2018-06-26 Florian Weimer <fweimer@redhat.com>
12893
12894 Run thread shutdown functions in an explicit order.
12895 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12896 definition.
12897 (__libc_thread_freeres): Call thread shutdown functions
12898 explicitly.
12899 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12900 * include/string.h (__strerror_thread_freeres): Declare.
12901 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12902 arena_thread_freeres. No longer static. Remove thread shutdown
12903 hook registration.
12904 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12905 Declare.
12906 * resolv/res-close.c (__res_thread_freeres): Renamed from
12907 res_thread_freeres. No longer static. Remove thread shutdown
12908 hook registration.
12909 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12910 * resolv/resolv_conf.c (freeres): Remove incorrect section
12911 attribute and use libc_freeres_fn.
12912 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12913 strerror_thread_freeres. No longer static. Remove thread
12914 shutdown hook registration.
12915 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12916 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12917 shutdown hook registration.
12918 * Makerules (shlib.lds): Do not provide section boundary symbols
12919 for __libc_thread_subfreeres.
12920 * manual/memory.texi (Basic Allocation): Update comment.
12921
12922 2018-06-26 Florian Weimer <fweimer@redhat.com>
12923
12924 Remove always-defined _RPC_THREAD_SAFE_ macro.
12925 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12926 Do not define _RPC_THREAD_SAFE_.
12927 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12928 conditional.
12929 * sunrpc/clnt_perr.c: Likewise.
12930 * sunrpc/clnt_raw.c: Likewise.
12931 * sunrpc/clnt_simp.c: Likewise.
12932 * sunrpc/key_call.c: Likewise.
12933 * sunrpc/rpc_common.c: Likewise.
12934 * sunrpc/rpc_main.c: Likewise.
12935 * sunrpc/rpc_thread.c: Likewise.
12936 * sunrpc/svc.c: Likewise.
12937 * sunrpc/svc_raw.c: Likewise.
12938 * sunrpc/svc_simple.c: Likewise.
12939 * sumrpc/svcauth_des.c: Likewise.
12940
12941 2018-06-26 Florian Weimer <fweimer@redhat.com>
12942
12943 * libio/Makefile (tests-internal): Add tst-vtables,
12944 tst-vtables-interposed.
12945 * libio/tst-vtables.c: New file.
12946 * libio/tst-vtables-common.c: Likewise.
12947 * libio/tst-vtables-interposed.c: Likewise.
12948
12949 2018-06-26 Florian Weimer <fweimer@redhat.com>
12950
12951 * support/support_test_main.c (support_test_main): Only call
12952 setvbuf if not disables.
12953 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12954 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12955
12956 2018-06-26 Florian Weimer <fweimer@redhat.com>
12957
12958 [BZ #23313]
12959 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12960
12961 2018-06-25 Florian Weimer <fweimer@redhat.com>
12962
12963 [BZ #18023]
12964 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12965 Use struct scratch_buffer instead of extend_alloca.
12966
12967 2018-06-25 Florian Weimer <fweimer@redhat.com>
12968
12969 [BZ #18023]
12970 * nss/getent.c (initgroups_keys): Use dynarray instead of
12971 extend_alloca.
12972
12973 2018-06-25 Florian Weimer <fweimer@redhat.com>
12974
12975 [BZ #18023]
12976 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12977 Use struct scratch_buffer instead of extend_alloca.
12978
12979 2018-06-25 Florian Weimer <fweimer@redhat.com>
12980
12981 [BZ #18023]
12982 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12983 back to malloc directly, without stack allocations.
12984
12985 2018-06-25 Florian Weimer <fweimer@redhat.com>
12986
12987 [BZ #18023]
12988 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12989 of extend_alloca.
12990
12991 2018-06-25 Florian Weimer <fweimer@redhat.com>
12992
12993 [BZ #18023]
12994 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12995 of extend_alloca.
12996 * nscd/hstcache.c (addhstbyX): Likewise.
12997 * nscd/pwdcache.c (addpwbyX): Likewise.
12998 * nscd/servicescache.c (addservbyX): Likewise.
12999
13000 2018-06-25 Florian Weimer <fweimer@redhat.com>
13001
13002 [BZ #18023]
13003 * nscd/connections.c (read_cmdline): New function.
13004 (restart): Use it. Update comment.
13005
13006 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13007
13008 [BZ #23140]
13009 * localedata/locales/csb_PL (mon): Rename to...
13010 (alt_mon): This.
13011 (abmon): Rename to...
13012 (ab_alt_mon): This.
13013 (mon): Add with proper genitive forms, copy from Wikipedia.
13014 (abmon): Likewise.
13015
13016 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13017
13018 [BZ #19485]
13019 * localedata/locales/csb_PL (mon): Fix typos:
13020 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13021 (yesstr): Add, value is "jo".
13022 (nostr): Add, value is "nié".
13023
13024 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13025
13026 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13027 all log1p and significand functions on m680x0.
13028 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13029 of s_significand.c..
13030 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13031 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13032 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13033 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13034 s_log1p.c and include it..
13035
13036 2018-06-21 Vincent Chen <vincentc@andestech.com>
13037
13038 * elf/elf.h (R_NDS32_NONE): New define.
13039 (R_NDS32_32_RELA): Likewise.
13040 (R_NDS32_COPY): Likewise.
13041 (R_NDS32_GLOB_DAT): Likewise.
13042 (R_NDS32_JUMP_SLOT): Likewise.
13043 (R_NDS32_RELATIVE): Likewise.
13044 (R_NDS32_TLS_TPOFF): Likewise.
13045 (R_NDS32_TLS_DESC): Likewise.
13046
13047 2018-06-21 Mark Wielaard <mark@klomp.org>
13048
13049 * elf/elf.h (R_BPF_MAP_FD): Removed.
13050 (R_BPF_64_64, R_BPF_64_32): New.
13051
13052 2018-06-21 Florian Weimer <fweimer@redhat.com>
13053
13054 [BZ #23253]
13055 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13056 Renamed from libc_feholdsetround_ctx.
13057 (default_libc_feresetround_ctx): Renamed from
13058 libc_feresetround_ctx.
13059 (default_libc_feholdsetround_noex_ctx): Renamed from
13060 libc_feholdsetround_noex_ctx.
13061 (default_libc_feresetround_noex_ctx): Renamed from
13062 libc_feresetround_noex_ctx.
13063 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13064 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13065 forwardning to the old implementations under the new names.
13066 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13067 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13068 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13069 (libc_feresetround_ctx): Forward to default implements for i386
13070 and MATH_SET_BOTH_ROUNDING_MODES.
13071 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13072 Add -DMATH_SET_BOTH_ROUNDING_MODES.
13073
13074 2018-06-20 Joseph Myers <joseph@codesourcery.com>
13075
13076 * string/tst-cmp.c: Include <libc-diag.h>.
13077 (strncmp_max): Disable -Wstringop-overflow= around call to
13078 strncmp.
13079 (strncasecmp_max): Disable -Wstringop-overflow= around call to
13080 strncasecmp.
13081
13082 * string/bug-strpbrk1.c: Include <libc-diag.h>.
13083 (main): Disable -Wunused-value around call to strpbrk.
13084 * string/bug-strspn1.c: Include <libc-diag.h>.
13085 (main): Disable -Wunused-value around call to strspn.
13086
13087 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13088 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13089
13090 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13091 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13092
13093 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13094
13095 * math/Makefile (libm-calls): Move s_significandF to...
13096 (gen-libm-calls): ... here.
13097 * math/s_significand_template.c: New file.
13098 * math/s_significand.c: Removed.
13099 * math/s_significandf.c: Removed.
13100 * math/s_significandl.c: Removed.
13101 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13102 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13103
13104 * math/e_exp2_template.c (declare_mgen_finite_alias,
13105 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13106 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13107 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13108
13109 2018-06-20 Florian Weimer <fweimer@redhat.com>
13110
13111 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13112
13113 2018-06-19 Joseph Myers <joseph@codesourcery.com>
13114
13115 [BZ #23280]
13116 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13117 floating-point number to strtod functions rather than possibly
13118 negating result of those functions.
13119 * stdio-common/tst-scanf-round.c: New file.
13120 * stdio-common/Makefile (tests): Add tst-scanf-round.
13121 ($(objpfx)tst-scanf-round): Depend on $(libm).
13122
13123 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13124
13125 * sysdeps/mach/hurd/localplt.data: Move to...
13126 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13127 R_386_GLOB_DAT like on Linux i386.
13128
13129 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13130
13131 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13132 (SHM_STAT_ANY): New macro.
13133 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13134 (SHM_STAT_ANY): Likewise.
13135 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13136 (SHM_STAT_ANY): Likewise.
13137 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13138 (SHM_STAT_ANY): Likewise.
13139 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13140 (SHM_STAT_ANY): Likewise.
13141 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13142 (SHM_STAT_ANY): Likewise.
13143 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13144 (SHM_STAT_ANY): Likewise.
13145 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13146 (SHM_STAT_ANY): Likewise.
13147 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13148 (SHM_STAT_ANY): Likewise.
13149 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13150 (SHM_STAT_ANY): Likewise.
13151 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13152 (SHM_STAT_ANY): Likewise.
13153 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13154 (SHM_STAT_ANY): Likewise.
13155
13156 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13157 (SEM_STAT_ANY): New macro.
13158 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13159 (SEM_STAT_ANY): Likewise.
13160 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13161 (SEM_STAT_ANY): Likewise.
13162 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13163 (SEM_STAT_ANY): Likewise.
13164 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13165 (SEM_STAT_ANY): Likewise.
13166 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13167 (SEM_STAT_ANY): Likewise.
13168 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13169 (SEM_STAT_ANY): Likewise.
13170 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13171 (SEM_STAT_ANY): Likewise.
13172 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13173 (SEM_STAT_ANY): Likewise.
13174 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13175 (SEM_STAT_ANY): Likewise.
13176
13177 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13178 (MSG_STAT_ANY): New macro.
13179 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13180 (MSG_STAT_ANY): Likewise.
13181 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13182 (MSG_STAT_ANY): Likewise.
13183 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13184 (MSG_STAT_ANY): Likewise.
13185 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13186 (MSG_STAT_ANY): Likewise.
13187 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13188 (MSG_STAT_ANY): Likewise.
13189 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13190 (MSG_STAT_ANY): Likewise.
13191 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13192 (MSG_STAT_ANY): Likewise.
13193 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13194 (MSG_STAT_ANY): Likewise.
13195 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13196 (MSG_STAT_ANY): Likewise.
13197
13198 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13199 (MAP_TYPE): Change value to 0x2b.
13200
13201 2018-06-18 Florian Weimer <fweimer@redhat.com>
13202
13203 [BZ #15722]
13204 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13205 socket with SOCK_CLOEXEC.
13206
13207 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13208
13209 [BZ #23303]
13210 * sysdeps/powerpc/powerpc64/le/Makefile
13211 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13212 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13213 (gnulib-tests): Also add $(f128-loader-link) for
13214 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13215
13216 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
13217
13218 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13219 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13220 of sendfile.
13221 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13222 (sendfile64): New strong alias.
13223 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13224 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13225 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13226 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13227 attribute.
13228 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13229 ___pthread_get_cleanup_stack.
13230 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13231 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13232 * mach/shortcut.awk: Make syscall stubs include
13233 <mach-shortcuts-hidden.h> and add hidden definition.
13234 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13235 (__mach_msg): Add hidden prototype.
13236 * mach/msg.c: Include <mach.h>.
13237 (__mach_msg): Add hidden definition.
13238 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13239 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13240 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13241 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13242 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13243 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13244 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13245 prototype and definition.
13246 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13247 hidden target for _hurd_self_sigstate.
13248
13249 2018-06-15 Joseph Myers <joseph@codesourcery.com>
13250
13251 [BZ #23007]
13252 * stdlib/tst-strtod-nan-sign-main.c: New file.
13253 * stdlib/tst-strtod-nan-sign.c: Likewise.
13254 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13255 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13256 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13257 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13258 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13259
13260 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
13261
13262 [BZ #23007]
13263 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13264 appropriate sign.
13265
13266 2018-06-14 Florian Weimer <fweimer@redhat.com>
13267
13268 [BZ #23290]
13269 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13270 that the result stays within the ISO-8859-1 range.
13271 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13272 characters are defined in IBM273.
13273
13274 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13275
13276 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13277 __mach_task_self): Remove attribute_hidden.
13278
13279 2018-06-14 Joseph Myers <joseph@codesourcery.com>
13280
13281 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13282 ignore -Wrestrict for one test.
13283
13284 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
13285 Szabolcs Nagy <szabolcs.nagy@arm.com>
13286
13287 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13288
13289 2018-06-14 Florian Weimer <fweimer@redhat.com>
13290
13291 * scripts/update-abilist.sh: Accept empty list of files to patch.
13292
13293 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13294
13295 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13296 test-xfail-check-abi-libmachuser): Add.
13297 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13298 __libc_read and __libc_write to __read and __write.
13299 * sysdeps/hurd/include/hurd/port.h: New file.
13300 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13301 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13302 __thread_switch, __evc_wait): Move declarations to...
13303 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13304 attribute_hidden.
13305 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13306 use PLT to call _hurd_self_sigstate.
13307
13308 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13309
13310 [BZ #23279]
13311 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13312 MAX_EXP as overflowing.
13313 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13314 overflow flag.
13315 (round_str): Output also whether result overflows in each rounding
13316 mode.
13317 * stdlib/tst-strtod-round-data: Add more tests.
13318 * stdlib/tst-strtod-round-data.h: Regenerated.
13319 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13320 (TEST): Handle extra arguments for overflow flags.
13321 (struct test_overflow): New type.
13322 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13323 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13324 (test_in_one_mode): Take argument with overflow information.
13325 (do_test): Update calls to test_in_one_mode.
13326
13327 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13328
13329 * elf/dl-load (_dl_dst_substitute): Correct comment.
13330 (_dl_dst_count): Likewise.
13331
13332 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13333 lll_futex_timed_wait.
13334
13335 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13336
13337 [BZ #23277]
13338 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13339 attribute.
13340 * math/test-nan-const.c: New file.
13341 * math/Makefile (tests): Add test-nan-const.
13342 (CFLAGS-test-nan-const.c): New variable.
13343
13344 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13345
13346 * benchtests/scripts/compare_strings.py (process_results): Add
13347 funcs argument. Compare only functions which are selected.
13348 (main): Check if base function is among selected functions.
13349 Pass selected functions to process_results.
13350 (__main__): Add -f/--functions argument.
13351
13352 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13353 Hongbo Zhang <hongbo.zhang@linaro.org>
13354
13355 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13356 __memcpy_falkor for phecda core.
13357 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13358 __memmove_falkor for phecda core.
13359 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13360 __memset_falkor for phecda core.
13361 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13362 for phecda core.
13363 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13364 macro to identify phecda core.
13365
13366 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13367 Andreas Schwab <schwab@suse.de>
13368 Dmitry V. Levin <ldv@altlinux.org>
13369 Florian Weimer <fweimer@redhat.com>
13370
13371 [BZ #23102]
13372 [BZ #21942]
13373 [BZ #18018]
13374 [BZ #23259]
13375 CVE-2011-0536
13376 * elf/dl-dst.h: Remove DL_DST_COUNT.
13377 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13378 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13379 (is_dst): Comment. Support ELF gABI.
13380 (_dl_dst_count): Comment. Simplify and count DSTs.
13381 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13382 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13383 locals.
13384
13385 2018-06-12 Zack Weinberg <zackw@panix.com>
13386
13387 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13388 * sysdeps/unix/sysv/linux/dl-sysdep.c
13389 Include not-cancel.h. Use __close_nocancel instead of __close,
13390 __open64_nocancel instead of __open, __read_nocancel instead of
13391 __libc_read, and __write_nocancel instead of __libc_write.
13392
13393 * csu/check_fds.c (check_one_fd)
13394 * sysdeps/posix/fdopendir.c (__fdopendir)
13395 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13396 instead of __fcntl and/or __libc_fcntl.
13397
13398 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13399 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13400 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13401 Use __open64_nocancel instead of __open_nocancel.
13402
13403 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13404 hidden_proto declarations to the end and issue them if either
13405 IS_IN(libc) or IS_IN(rtld).
13406 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13407 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13408 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13409 read_nocancel, waitpid_nocancel, write_nocancel.
13410
13411 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13412 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13413 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13414
13415 * nptl/pt-fcntl.c: New file.
13416 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13417 (libpthread-routines): Add pt-fcntl.
13418 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13419 (__libc_fcntl): Remove attribute_hidden.
13420 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13421 __fcntl_nocancel_adjusted, not fcntl_common.
13422 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13423 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13424 to fcntl_nocancel.c.
13425 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13428 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13429
13430 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13431 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13432 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13433 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13434 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13435 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13436 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13437 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13438 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13439 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13440 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13441 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13442 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13443 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13444 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13445 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13446 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13447 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13448 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13449 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13450
13451 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13452 libpthread-routines.
13453 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13454 defines nothing.
13455
13456 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13457 __libc_read, and __write instead of __libc_write. Define
13458 __open64 in addition to __open.
13459
13460 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13461
13462 [BZ #23250]
13463 [BZ #10686]
13464 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13465 to _private_tm[3] and add __glibc_reserved2.
13466 Add _Static_assert of offset of __private_ss == 0x30.
13467 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13468 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13469
13470 2018-06-12 Florian Weimer <fweimer@redhat.com>
13471
13472 x86: Make strncmp usable from rtld.
13473 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13474 __strncmp_ia32 if in libc (and not in rtld).
13475 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13476 strncmp if not in libc (and not to __strncmp_sse2).
13477
13478 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13479
13480 [BZ #23140]
13481 * localedata/locales/gd_GB (mon): Rename to...
13482 (alt_mon): This.
13483 (mon): Import from CLDR (genitive case).
13484 * localedata/locales/hsb_DE (mon): Rename to...
13485 (alt_mon): This.
13486 (mon): Import from CLDR (genitive case).
13487 * localedata/locales/wa_BE (mon): Rename to...
13488 (alt_mon): This.
13489 (mon): Add, fill with the proper genitive forms, but CLDR data
13490 is incomplete; completed according to the comments in this file.
13491 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13492
13493 * localedata/locales/wa_BE (country_name): Reword
13494 "Beljike" -> "Beldjike".
13495
13496 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13497
13498 [BZ #23272]
13499 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13500 cases of non-finite arguments.
13501 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13502
13503 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13504
13505 [BZ #23174]
13506 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13507
13508 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13509
13510 [BZ #23264]
13511 * include/unistd.h (__execvpex): New prototype.
13512 * posix/Makefile (tests): Add tst-spawn4.
13513 (tests-internal): Add tst-spawn4-compat.
13514 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13515 * posix/tst-spawn4-compat.c: New file.
13516 * posix/tst-spawn4.c: Likewise.
13517 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13518 binaries as shell scripts.
13519 * sysdeps/posix/spawni.c (__spawni): Likewise.
13520
13521 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13522
13523 [BZ #23145]
13524 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13525 ($(all-built-dso:=.dynsym): New target.
13526 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13527 ($(objpfx)check-initfini.out): New target.
13528 (generated): Add check-initfini.out.
13529 * scripts/check-initfini.awk: New file.
13530 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13531 (_fini): Likewise.
13532 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13533 (_fini): Likewise.
13534 * sysdeps/arm/crti.S (_init): Mark as hidden.
13535 (_fini): Likewise.
13536 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13537 (_fini): Likewise.
13538 * sysdeps/i386/crti.S (_init): Mark as hidden.
13539 (_fini): Likewise.
13540 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13541 (_fini): Likewise.
13542 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13543 (_fini): Likewise.
13544 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13545 (_fini): Likewise.
13546 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13547 (_fini): Likewise.
13548 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13549 (_fini): Likewise.
13550 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13551 (_fini): Likewise.
13552 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13553 (_fini): Likewise.
13554 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13555 (_fini): Likewise.
13556 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13557 (_fini): Likewise.
13558 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13559 (_fini): Likewise.
13560 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13561 (_fini): Likewise.
13562 * sysdeps/sh/crti.S (_init): Mark as hidden.
13563 (_fini): Likewise.
13564 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13565 (_fini): Likewise.
13566 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13567 (_fini): Likewise.
13568
13569 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13570
13571 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13572 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13573 and TF redirection to KFtype and KF only when the default
13574 long double type is not the IEEE 128-bit floating point type.
13575
13576 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13577
13578 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13579 macro.
13580 (HWCAP_USCAT): Likewise.
13581 (HWCAP_ILRCPC): Likewise.
13582 (HWCAP_FLAGM): Likewise.
13583 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13584 Increase to 28.
13585 (_dl_aarch64_cap_flags): Add new flag names.
13586
13587 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13588 (MAP_FIXED_NOREPLACE): New macro.
13589 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13590 (MAP_FIXED_NOREPLACE): Likewise.
13591 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13592 (MAP_FIXED_NOREPLACE): Likewise.
13593 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13594 (MAP_FIXED_NOREPLACE): Likewise.
13595 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13596 (MAP_FIXED_NOREPLACE): Likewise.
13597 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13598 (MAP_FIXED_NOREPLACE): Likewise.
13599 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13600 (MAP_FIXED_NOREPLACE): Likewise.
13601 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13602 (MAP_FIXED_NOREPLACE): Likewise.
13603 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13604 (MAP_FIXED_NOREPLACE): Likewise.
13605 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13606 (MAP_FIXED_NOREPLACE): Likewise.
13607 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13608 (MAP_FIXED_NOREPLACE): Likewise.
13609 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13610 (MAP_FIXED_NOREPLACE): Likewise.
13611 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13612 (MAP_FIXED_NOREPLACE): Likewise.
13613 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13614 (MAP_FIXED_NOREPLACE): Likewise.
13615 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13616 (MAP_FIXED_NOREPLACE): Likewise.
13617
13618 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13619 version to 4.17.
13620
13621 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13622
13623 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13624 version to 4.17
13625
13626 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13627
13628 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13629 int.
13630 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13631
13632 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13633
13634 * benchtests/scripts/compare_string.py: (process_results) Catch
13635 exception in non-existent base_func and catch exception in
13636 non-existent attribute.
13637 (parse_file) Catch exception if input file does not exist.
13638
13639 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13640
13641 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13642 options to avoid diff calculation and omit header, respectively.
13643 (main): process --no-diff and --no-header
13644
13645 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13646 H.J. Lu <hongjiu.lu@intel.com>
13647
13648 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13649 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13650 wcsncmp-sse2.
13651 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13652 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13653 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13654 and __wcsncmp_sse2.
13655 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13656 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13657 AVX unaligned load is fast and vzeroupper is preferred.
13658 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13659 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13660 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13661 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13662 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13663 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13664 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13665 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13666 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13667 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13668 is undefined.
13669
13670 2018-06-01 Florian Weimer <fweimer@redhat.com>
13671
13672 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13673 configuring with --disable-multi-arch, building with
13674 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13675 Haswell-era CPU.
13676
13677 2018-06-01 Florian Weimer <fweimer@redhat.com>
13678
13679 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13680 results from building with “-march=x86-64 -mtune=generic
13681 -mfpmath=sse” and running on a Haswell-era CPU.
13682
13683 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13684
13685 [BZ #18473]
13686 * soft-fp/sqrttf2.c: Remove file.
13687 * soft-fp/sqrtdf2.c: Move to ....
13688 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13689 <shlib-compat.h>.
13690 (__sqrtdf2): Make conditional on
13691 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13692 symbol.
13693 * soft-fp/sqrtsf2.c: Move to ....
13694 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13695 <shlib-compat.h>.
13696 (__sqrtsf2): Make conditional on
13697 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13698 symbol.
13699 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13700 (gcc-double-routines): Remove sqrtdf2.
13701 (gcc-quad-routines): Remove sqrttf2.
13702 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13703 Do not filter out sqrtsf2 and sqrtdf2.
13704 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13705 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13706
13707 2018-06-01 Florian Weimer <fweimer@redhat.com>
13708
13709 * sysdeps/generic/libcidn.abilist: Remove file.
13710
13711 2018-06-01 Florian Weimer <fweimer@redhat.com>
13712
13713 [BZ #23236]
13714 * libio/strfile.h (struct _IO_str_fields): Rename members to
13715 discourage their use and add comment.
13716 (_IO_STR_DYNAMIC): Remove unused macro.
13717 * libio/strops.c (_IO_str_init_static_internal): Do not use
13718 callback pointers. Call malloc and free.
13719 (_IO_str_overflow): Do not use callback pointers. Call malloc
13720 and free.
13721 (enlarge_userbuf): Likewise.
13722 (_IO_str_finish): Call free.
13723 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13724 _allocate_buffer_unused.
13725 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13726 and free.
13727 (enlarge_userbuf): Likewise.
13728 (_IO_wstr_finish): Call free.
13729 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13730 _allocate_buffer_unused, _free_buffer_unused.
13731 * libio/memstream.c (__open_memstream): Likewise.
13732 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13733 * libio/wmemstream.c (open_wmemstream): Likewise.
13734
13735 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13736
13737 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13738 AMD Ryzen 7 1800X.
13739
13740 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13741
13742 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13743 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13744 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13745 New file.
13746 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13747 Likewise.
13748 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13749
13750 2018-05-29 Florian Weimer <fweimer@redhat.com>
13751
13752 * support/Makefile (libsupport-routines): Add
13753 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13754 xpthread_barrierattr_setpshared.
13755 * support/xpthread_barrierattr_destroy.c: New file.
13756 * support/xpthread_barrierattr_init.c: Likewise.
13757 * support/xpthread_barrierattr_setpshared.c: Likewise.
13758
13759 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13760
13761 [BZ #23206]
13762 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13763 _r_debug and update DT_DEBUG for debugger.
13764
13765 2018-05-29 Florian Weimer <fweimer@redhat.com>
13766
13767 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13768 (tst-strtod5i.out): Likewise.
13769
13770 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13771
13772 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13773 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13774 (sparc64-quad-routines): New variable. Moved from ....
13775 [$(subdir) = soft-fp] (sysdep_routines): Add
13776 $(sparc64-quad-routines). Moved from ....
13777 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13778 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13779 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13780 moved from ....
13781 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13782 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13783 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13784 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13785 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13786 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13787 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13788 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13789 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13790 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13791 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13792 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13793 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13794 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13795 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13796 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13797 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13798 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13799 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13800 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13801 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13802 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13803 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13804 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13805 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13806 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13807 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13808 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13809 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13810 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13811 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13812 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13813 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13814 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13815 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13816 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13817 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13818 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13819 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13820 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13821 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13822 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13823 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13824 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13825 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13826 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13827 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13828 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13829 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13830 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13831 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13832 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13833 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13834 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13835 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13836 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13837 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13838 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13839
13840 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13841 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13842 (sparc32-quad-routines): New variable. Moved from ....
13843 [$(subdir) = soft-fp] (sysdep_routines): Add
13844 $(sparc32-quad-routines). Moved from ....
13845 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13846 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13847 moved from ....
13848 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13849 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13850 * sysdeps/sparc/sparc32/q_add.c: ... here.
13851 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13852 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13853 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13854 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13855 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13856 * sysdeps/sparc/sparc32/q_div.c: ... here.
13857 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13858 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13859 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13860 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13861 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13862 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13863 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13864 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13865 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13866 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13867 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13868 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13869 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13870 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13871 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13872 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13873 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13874 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13875 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13876 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13877 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13878 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13879 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13880 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13881 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13882 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13883 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13884 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13885 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13886 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13887 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13888 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13889 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13890 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13891 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13892 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13893 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13894 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13895 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13896 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13897 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13898 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13899 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13900 * sysdeps/sparc/sparc32/q_util.c: ... here.
13901 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13902 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13903 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13904 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13905
13906 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13907 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13908
13909 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13910 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13911 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13912 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13913
13914 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13915
13916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13917 powerpc/soft-fp.
13918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13919 Likewise.
13920 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13921 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13922
13923 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13924
13925 [BZ #23171]
13926 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13927 double version.
13928
13929 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13930
13931 * sysdeps/sh/Implies: Remove sh/soft-fp.
13932 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13933 * sysdeps/sh/sfp-machine.h: ... here.
13934
13935 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13936
13937 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13938 (__mempcpy_erms): Skip zero length.
13939 (__memmove_erms): Likewise.
13940 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13941 (__memset_erms): Likewise.
13942
13943 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13944
13945 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13946 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13947 Add functions moved from ....
13948 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13949 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13950 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13951 from ....
13952 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13953 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13954 * sysdeps/alpha/e_sqrtl.c: ... here.
13955 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13956 * sysdeps/alpha/local-soft-fp.h: ... here.
13957 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13958 * sysdeps/alpha/ots_add.c: ... here.
13959 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13960 * sysdeps/alpha/ots_cmp.c: ... here.
13961 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13962 * sysdeps/alpha/ots_cmpe.c: ... here.
13963 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13964 * sysdeps/alpha/ots_cvtqux.c: ... here.
13965 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13966 * sysdeps/alpha/ots_cvtqx.c: ... here.
13967 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13968 * sysdeps/alpha/ots_cvttx.c: ... here.
13969 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13970 * sysdeps/alpha/ots_cvtxq.c: ... here.
13971 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13972 * sysdeps/alpha/ots_cvtxt.c: ... here.
13973 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13974 * sysdeps/alpha/ots_div.c: ... here.
13975 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13976 * sysdeps/alpha/ots_mul.c: ... here.
13977 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13978 * sysdeps/alpha/ots_nintxq.c: ... here.
13979 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13980 * sysdeps/alpha/ots_sub.c: ... here.
13981 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13982 * sysdeps/alpha/sfp-machine.h: ... here.
13983
13984 2018-05-23 Florian Weimer <fweimer@redhat.com>
13985
13986 [BZ #19728]
13987 [BZ #19729]
13988 [BZ #22247]
13989 CVE-2016-6261
13990 CVE-2016-6263
13991 CVE-2017-14062
13992 Switch to extern IDNA implementation (libidn2).
13993 * libidn: Remove subdirectory.
13994 * LICENSES: Do not mention licensing conditions for the removed
13995 libidn code.
13996 * config.h.in (HAVE_LIBIDN): Remove.
13997 * include/dlfcn.h (__libc_dlopen): Update comment.
13998 * include/idna.h: Remove file.
13999 * inet/Makefile (routines): Add idna.
14000 (tests-static, tests-internal): Add tst-idna_name_classify.
14001 (LOCALES): Generate locales for tests.
14002 (tst-idna_name_classify.out): Depend on generated locales.
14003 * inet/idna_name_classify.c: New file.
14004 * inet/tst-idna_name_classify.c: Likewise.
14005 * inet/net-internal.h (__idna_to_dns_encoding)
14006 (__idna_from_dns_encoding): Declare.
14007 * inet/net-internal.h (enum idna_name_classification): Define.
14008 (__idna_name_classify): Declare.
14009 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14010 __idna_from_dns_encoding.
14011 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14012 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
14013 name as a fallback in case of encoding errors.
14014 (getnameinfo): Use DEPRECATED_NI_IDN.
14015 * inet/idna.c: New file.
14016 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14017 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14018 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14019 (modules-names): Add tst-no-libidn2.
14020 (extra-test-objs): Add tst-no-libidn2.os.
14021 (LDFLAGS-tst-no-libidn2.so): Set soname.
14022 (LOCALES): Set, and generate locales.
14023 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14024 (tst-resolv-ai_idn-latin1): Likewise.
14025 (tst-resolv-ai_idn-nolibidn2): Likewise.
14026 (tst-resolv-ai_idn.out): Depend on locales.
14027 (tst-resolv-ai_idn-latin1.out): Depend on locales.
14028 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14029 tst-no-libidn2.so.
14030 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14031 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14032 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14033 * resolv/tst-resolv-ai_idn.c: New file.
14034 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14035 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14036 * resolv/tst-no-libidn2.c: Likewise.
14037 * support/support_format_addrinfo.c (format_ai_flags): Do not
14038 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14039 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14040 (gaih_inet): Call __idna_to_dns_encoding and
14041 __idna_from_dns_encoding, and use the original (punycode) name if
14042 __idna_from_dns_encoding fails due to an encoding error.
14043 (getaddrinfo): Use DEPRECATED_AI_IDN.
14044 * sysdeps/unix/inet/Subdirs (libidn): Remove.
14045 * sysdeps/unix/inet/configure: Remove file.
14046 * sysdeps/unix/inet/configure.ac: Likewise.
14047
14048 2018-05-23 Florian Weimer <fweimer@redhat.com>
14049
14050 Implement allocate_once.
14051 * include/allocate_once.h: New file.
14052 * misc/allocate_once.c: Likewise.
14053 * misc/tst-allocate_once.c: Likewise.
14054 * misc/Makefile (routines): Add allocate_once.
14055 (tests-internal): Add tst-allocate_once.
14056 (generated): Add tst-allocate_once.mtrace,
14057 tst-allocate_once-mem.out.
14058 (tests-special): Add tst-allocate_once-mem.out.
14059 (tst-allocate_once-ENV): Set MALLOC_TRACE.
14060 (tst-allocate_once-mem.out): Call mtrace.
14061 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14062
14063 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
14064
14065 [BZ #23196]
14066 * string/test-memcpy.c (do_test1): New function.
14067 (test_main): Call it.
14068
14069 2018-05-23 Andreas Schwab <schwab@suse.de>
14070
14071 [BZ #23196]
14072 CVE-2018-11237
14073 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14074 (L(preloop_large)): Save initial destination pointer in %r11 and
14075 use it instead of %rax after the loop.
14076 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14077
14078 2018-05-22 Joseph Myers <joseph@codesourcery.com>
14079
14080 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14081 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14082 -I../soft-fp. Moved from ....
14083 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
14084 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14085 * sysdeps/aarch64/e_sqrtl.c: ... here.
14086 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14087 * sysdeps/aarch64/sfp-machine.h: ... here.
14088
14089 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14090 -Wmaybe-uninitialized around access to fq[0].
14091 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14092 Likewise.
14093
14094 [BZ #18471]
14095 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14096 aliases for non-libc case of versioned symbols.
14097 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14098 (llseek): Define as compat symbol if
14099 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14100 with link warning.
14101 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14102 Make into a compat symbol, disabled for minimum symbol version
14103 GLIBC_2.28 and later.
14104 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14105
14106 2018-05-22 Florian Weimer <fweimer@redhat.com>
14107
14108 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14109 not add -mpreferred-stack-boundary=4.
14110 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14111 (stack-align-test-flags): Likewise.
14112 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14113 Likewise.
14114 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14115 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14116 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14117 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14118 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14119 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14120 (CFLAGS-tst-align2.c): Likewise.
14121
14122 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14123
14124 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14125 (index_arch_Prefer_FSRM): Likewise.
14126 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14127 Also check Prefer_FSRM.
14128 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14129 Also return OPTIMIZE (erms) for Prefer_FSRM.
14130
14131 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14132
14133 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14134 (index_cpu_FSRM): Likewise.
14135 (reg_FSRM): Likewise.
14136
14137 2018-05-18 Joseph Myers <joseph@codesourcery.com>
14138
14139 * math/gen-tgmath-tests.py: Import sys.
14140 (Tests.__init__): Initialize macros_seen.
14141 (Tests.add_tests): Add macro to macros_seen. Only generate tests
14142 if requested to do so for this macro.
14143 (Tests.add_all_tests): Take argument for macro for which to
14144 generate tests.
14145 (Tests.check_macro_list): New function.
14146 (main): Handle check-list argument and argument specifying macro
14147 for which to generate tests.
14148 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14149 [PYTHON] (tgmath3-macro-tests): Likewise.
14150 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14151 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14152 not test-tgmath3.c.
14153 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14154 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14155 to CFLAGS.
14156 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14157 [PYTHON] ($(foreach
14158 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
14159 rule.
14160 [PYTHON] (tests-special): Add
14161 $(objpfx)test-tgmath3-macro-list.out.
14162 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14163
14164 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14165 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14166 later.
14167
14168 [BZ #22639]
14169 * time/tzset.c (SECSPERDAY): Cast to time_t.
14170 * time/tst-y2039.c: New file.
14171 * time/Makefile (tests): Add tst-y2039.
14172
14173 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14174
14175 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14176 (PREFETCH_ONE_SET): Remove duplicate line.
14177
14178 2018-05-17 Florian Weimer <fweimer@redhat.com>
14179
14180 * sysdeps/generic/math-type-macros-double.h: Include
14181 <math-nan-payload-double.h> after <libm-alias-double.h>.
14182 * sysdeps/generic/math-type-macros-float.h: Include
14183 <math-nan-payload-float.h> after <libm-alias-float.h>.
14184 * sysdeps/generic/math-type-macros-float128.h: Include
14185 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14186 * sysdeps/generic/math-type-macros-ldouble.h: Include
14187 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14188
14189 2018-05-17 Andreas Schwab <schwab@suse.de>
14190
14191 * resolv/res_send.c (__res_context_send): Don't set errno when
14192 returing error after malloc failure.
14193
14194 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
14195
14196 * nptl/allocatestack.c (allocate_stack): Remove the
14197 !__ASSUME_PRIVATE_FUTEX paths.
14198 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14199 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14200 Likewise.
14201 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14202 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14203 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14204 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14205 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14206 !__ASSUME_PRIVATE_FUTEX path.
14207 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14208 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14209 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14210 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14211 !__ASSUME_PRIVATE_FUTEX macros.
14212 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14213 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14214 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14215 * sysdeps/unix/sysv/linux/kernel-features.h
14216 (__ASSUME_PRIVATE_FUTEX): Removed.
14217
14218 2018-05-17 Joseph Myers <joseph@codesourcery.com>
14219
14220 * math/Makefile (libm-narrow-fns): Add div.
14221 (libm-test-funcs-narrow): Likewise.
14222 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14223 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14224 * math/gen-auto-libm-tests.c (test_functions): Add div.
14225 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14226 (NARROW_DIV_ROUND_TO_ODD): Likewise.
14227 (NARROW_DIV_TRIVIAL): Likewise.
14228 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14229 macro.
14230 (__ddivl): Likewise.
14231 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14232 ddiv.
14233 (CFLAGS-nldbl-ddiv.c): New variable.
14234 (CFLAGS-nldbl-fdiv.c): Likewise.
14235 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14236 __nldbl_ddivl.
14237 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14238 prototype.
14239 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14240 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14241 * math/auto-libm-test-in: Add tests of div.
14242 * math/auto-libm-test-out-narrow-div: New generated file.
14243 * math/libm-test-narrow-div.inc: New file.
14244 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14245 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14246 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14247 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14248 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14249 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14250 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14251 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14252 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14253 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14254 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14255 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14256 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14257 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14258 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14259 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14260 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14261 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14262 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14263 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14264 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14266 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14267 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14268 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14269 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14270 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14271 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14272 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14273 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14274 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14275 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14280 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14283 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14284 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14285 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14286 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14287 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14288
14289 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14290
14291 [BZ #23178]
14292 * nscd/nscd-client.h (sendfileall): Remove prototype.
14293 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14294 (handle_request): Use writeall instead of sendfileall.
14295 * nscd/aicache.c (addhstaiX): Likewise.
14296 * nscd/grpcache.c (cache_addgr): Likewise.
14297 * nscd/hstcache.c (cache_addhst): Likewise.
14298 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14299 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14300 * nscd/pwdcache.c (cache_addpw): Likewise.
14301 * nscd/servicescache.c (cache_addserv): Likewise.
14302 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14303 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14304 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14305 Remove define.
14306
14307 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14308
14309 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14310 Include <string/strncat.c>.
14311 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14312 alias.
14313 (__GI___strncat): New hidden alias.
14314
14315 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14316
14317 * sysdeps/mips/mips32/libm-test-ulps: Update.
14318 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14319
14320 2018-05-16 Florian Weimer <fweimer@redhat.com>
14321
14322 * support/Makefile (libsupport-routines): Add support_quote_blob,
14323 support_test_compare_blob.
14324 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14325 * support/check.h (TEST_COMPARE_BLOB): Define.
14326 (support_test_compare_blob): Declare.
14327 * support/support.h (support_quote_blob): Declare.
14328 * support/support_quote_blob.c: New file.
14329 * support/support_test_compare_blob.c: Likewise.
14330 * support/tst-support_quote_blob.c: Likewise.
14331 * support/tst-test_compare_blob.c: Likewise.
14332
14333 2018-05-16 Florian Weimer <fweimer@redhat.com>
14334
14335 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14336 of <strtod_nan_double.h>.
14337 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14338 instead of SET_MANTISSA.
14339 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14340 of include <strtod_nan_float.h>.
14341 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14342 instead of <strtod_nan_ldouble.h>.
14343 * stdlib/strtod_nan_double.h: Move to ...
14344 * sysdeps/generic/math-nan-payload-double.h: ... here.
14345 (FLOAT): Remove definition.
14346 (SET_MANTISSA): Rename to ...
14347 (SET_NAN_PAYLOAD): ... this.
14348 * stdlib/strtod_nan_float.h: Move to ...
14349 * sysdeps/generic/math-nan-payload-float.h: ... here.
14350 (FLOAT): Remove definition.
14351 (SET_MANTISSA): Rename to ...
14352 (SET_NAN_PAYLOAD): ... this.
14353 * sysdeps/generic/math-type-macros-double.h: Include
14354 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14355 instead of <math-svid-compat.h>.
14356 * sysdeps/generic/math-type-macros-float.h: Include
14357 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14358 instead of <math-svid-compat.h>.
14359 * sysdeps/generic/math-type-macros-float128.h: Include
14360 <math-nan-payload-float128.h>.
14361 * sysdeps/generic/math-type-macros-ldouble.h: Include
14362 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14363 instead of <math-svid-compat.h>.
14364 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14365 check for definition.
14366 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14367 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14368 Include <ieee754_float128.h>.
14369 (FLOAT): Remove definition.
14370 (SET_MANTISSA): Rename to ...
14371 (SET_NAN_PAYLOAD): ... this.
14372 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14373 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14374 Do not include <float128_private.h>.
14375 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14376 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14377 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14378 (FLOAT): Remove definition.
14379 (SET_MANTISSA): Rename to ...
14380 (SET_NAN_PAYLOAD): ... this.
14381 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14382 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14383 (FLOAT): Remove definition.
14384 (SET_MANTISSA): Rename to ...
14385 (SET_NAN_PAYLOAD): ... this.
14386 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14387 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14388 (FLOAT): Remove definition.
14389 (SET_MANTISSA): Rename to ...
14390 (SET_NAN_PAYLOAD): ... this.
14391 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14392 of "../stdlib/strtod_nan_double.h".
14393 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14394 of "../stdlib/strtod_nan_float.h".
14395 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14396 instead of "../stdlib/strtod_nan_ldouble.h".
14397 * manual/arith.texi (Parsing of Floats): Adjust comment.
14398
14399 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14400
14401 * math/Makefile (libm-narrow-fns): Add mul.
14402 (libm-test-funcs-narrow): Likewise.
14403 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14404 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14405 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14406 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14407 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14408 (NARROW_MUL_TRIVIAL): Likewise.
14409 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14410 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14411 macro.
14412 (__dmull): Likewise.
14413 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14414 dmul.
14415 (CFLAGS-nldbl-dmul.c): New variable.
14416 (CFLAGS-nldbl-fmul.c): Likewise.
14417 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14418 __nldbl_dmull.
14419 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14420 prototype.
14421 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14422 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14423 * math/auto-libm-test-in: Add tests of mul.
14424 * math/auto-libm-test-out-narrow-mul: New generated file.
14425 * math/libm-test-narrow-mul.inc: New file.
14426 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14427 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14428 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14429 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14430 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14431 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14432 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14433 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14434 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14435 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14436 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14437 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14438 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14439 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14440 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14441 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14442 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14443 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14444 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14445 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14470
14471 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14472
14473 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14474 with *%eax in call.
14475
14476 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14477
14478 * sysdeps/i386/ldsodefs.h: Removed.
14479 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14480 * sysdeps/x86/ldsodefs.h: This.
14481 (La_i86_regs): New.
14482 (La_i86_retval): Likewise.
14483 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14484 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14485
14486 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14487
14488 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14489 unnecessary testl.
14490
14491 2018-05-13 Alan Modra <amodra@gmail.com>
14492
14493 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14494 R_PARISC_TLS_DTPOFF32 reloc addend.
14495
14496 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14497
14498 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14499 * math/math.h: Restrict the prototype definition for the functions
14500 issignaling(_Float128) and iszero(_Float128); and template
14501 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14502 __HAVE_FLOAT128_UNLIKE_LDBL.
14503 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14504 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14505 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14506 __f128() constants; define the type _Float128 as long double;
14507 and reuse long double in __CFLOAT128.
14508
14509 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14510
14511 * sysdeps/generic/math_private.h: Do not include
14512 <math-barriers.h>.
14513 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14514 <math_private.h>.
14515 * math/fromfp.h: Include <math-barriers.h>.
14516 * math/math-narrow.h: Likewise.
14517 * math/s_nextafter.c: Likewise.
14518 * math/s_nexttowardf.c: Likewise.
14519 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14520 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14521 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14522 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14523 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14524 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14525 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14526 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14527 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14528 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14529 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14530 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14531 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14532 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14533 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14534 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14535 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14536 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14537 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14538 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14539 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14540 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14541 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14542 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14543 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14544 * sysdeps/ieee754/k_standardl.c: Likewise.
14545 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14546 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14547 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14548 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14549 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14550 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14551 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14552 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14553 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14554 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14555 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14556 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14557 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14558 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14559 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14560 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14561 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14562 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14563 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14564 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14565 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14566 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14567
14568 2018-05-11 Florian Weimer <fweimer@redhat.com>
14569
14570 Use 64-bit epoch values in the time zone file parser.
14571 * include/time.h (internal_time_t): Define.
14572 (__tzfile_compute): Use it.
14573 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14574 member.
14575 (transitions): Switch to internal_time_t.
14576 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14577 types.
14578 (__tzfile_compute): Use internal_time_t for timer argument. Check
14579 for truncation before calling __offtime.
14580
14581 2018-05-11 Florian Weimer <fweimer@redhat.com>
14582
14583 [BZ #23166]
14584 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14585 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14586 Likewise.
14587 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14588 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14589 export without --enable-obsolete-rpc.
14590 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14591 symbol. This should not have been exported, ever.
14592
14593 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14594
14595 [BZ #23152]
14596 * localedata/locales/gd_GB (abmon): Fix typo in May:
14597 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14598
14599 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14600
14601 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14602 Use multiple registers to copy data in loop tail.
14603
14604 * sysdeps/aarch64/multiarch/memmove_falkor.S
14605 (__memmove_falkor): Use multiple registers to move data in
14606 loop tail.
14607
14608 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14609
14610 * math/math-underflow.h: New file.
14611 * sysdeps/generic/math_private.h: Do not include <float.h>.
14612 (fabs_tg): Remove macro. Moved to math-underflow.h.
14613 (min_of_type_f): Likewise.
14614 (min_of_type_): Likewise.
14615 (min_of_type_l): Likewise.
14616 (min_of_type_f128): Likewise.
14617 (min_of_type): Likewise.
14618 (math_check_force_underflow): Likewise.
14619 (math_check_force_underflow_nonneg): Likewise.
14620 (math_check_force_underflow_complex): Likewise.
14621 * math/e_exp2_template.c: Include <math-underflow.h>.
14622 * math/k_casinh_template.c: Likewise.
14623 * math/s_catan_template.c: Likewise.
14624 * math/s_catanh_template.c: Likewise.
14625 * math/s_ccosh_template.c: Likewise.
14626 * math/s_cexp_template.c: Likewise.
14627 * math/s_clog10_template.c: Likewise.
14628 * math/s_clog_template.c: Likewise.
14629 * math/s_csin_template.c: Likewise.
14630 * math/s_csinh_template.c: Likewise.
14631 * math/s_csqrt_template.c: Likewise.
14632 * math/s_ctan_template.c: Likewise.
14633 * math/s_ctanh_template.c: Likewise.
14634 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14635 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14636 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14637 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14638 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14639 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14640 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14641 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14642 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14643 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14644 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14645 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14646 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14647 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14648 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14649 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14650 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14651 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14652 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14653 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14654 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14655 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14656 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14657 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14658 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14659 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14660 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14661 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14662 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14663 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14664 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14665 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14666 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14667 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14668 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14669 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14670 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14671 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14672 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14673 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14674 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14675 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14676 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14677 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14678 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14679 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14680 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14681 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14682 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14683 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14684 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14685 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14686 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14687 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14688 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14689 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14690 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14691 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14692 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14693 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14694 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14695 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14696 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14697 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14698 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14699 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14700 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14701 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14702 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14703 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14704 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14705 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14706 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14707 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14708 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14709 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14710 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14711 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14712 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14713 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14714 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14715 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14716 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14717 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14718
14719 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14720
14721 * sysdeps/generic/math-barriers.h: New file.
14722 * sysdeps/generic/math_private.h [!math_opt_barrier]
14723 (math_opt_barrier): Move to math-barriers.h.
14724 [!math_opt_barrier] (math_force_eval): Likewise.
14725 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14726 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14727 math-barriers.h.
14728 (math_force_eval): Likewise.
14729 * sysdeps/alpha/fpu/math-barriers.h: New file.
14730 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14731 math-barriers.h.
14732 (math_force_eval): Likewise.
14733 * sysdeps/x86/fpu/math-barriers.h: New file.
14734 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14735 math-barriers.h.
14736 (math_force_eval): Likewise.
14737 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14738 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14739 multiple-include guard for rename.
14740 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14741 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14742 math-barriers.h.
14743 (math_force_eval): Likewise.
14744
14745 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14746
14747 [BZ #22786]
14748 CVE-2018-11236
14749 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14750 computation.
14751 * stdlib/Makefile (test-bz22786): New test.
14752 * stdlib/test-bz22786.c: New test.
14753
14754 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14755
14756 * include/math-narrow-eval.h: New file. Contents moved from ....
14757 * sysdeps/generic/math_private.h: ... here.
14758 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14759 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14760 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14761 * stdlib/strtod_l.c: Likewise.
14762 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14763 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14764 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14765 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14766 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14767 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14768 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14769 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14770 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14771 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14772 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14773 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14774 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14775 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14776 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14777 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14778 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14779 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14780 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14781 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14782 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14783 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14784 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14785 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14786 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14787 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14788 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14789 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14790 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14791
14792 2018-05-08 Andreas Schwab <schwab@suse.de>
14793
14794 * sysdeps/nptl/internaltypes.h: Fix comment.
14795
14796 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14797
14798 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14799 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14800 hidden.
14801
14802 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14803
14804 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14805 of I into loop header.
14806 * benchtests/bench-memmove-walk.c
14807 (test_main): Likewise.
14808
14809 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14810
14811 Revert:
14812 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14813 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14814
14815 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14816
14817 [BZ #20419]
14818 * elf/dl-load.c (open_verify): Fix stack overflow.
14819 * elf/Makefile (tst-big-note): New test.
14820 * elf/tst-big-note-lib.S: New.
14821 * elf/tst-big-note.c: New.
14822
14823 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14824
14825 * scripts/abilist.awk: Ignore absolute symbols.
14826 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14827 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14828 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14829 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14830 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14831 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14832 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14833 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14834 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14835 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14836 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14837 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14838 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14839 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14840 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14841 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14842 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14843 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14844 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14845 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14846 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14847 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14848 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14849 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14850 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14851 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14852 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14853 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14854 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14855 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14856 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14857 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14858 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14859 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14860 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14861 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14862 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14863 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14864 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14865 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14866 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14867 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14868 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14869 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14870 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14871 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14872 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14873 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14874 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14875 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14876 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14877 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14878 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14879 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14880 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14881 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14882 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14883 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14884 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14885 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14886 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14887 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14890 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14891 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14892 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14893 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14894 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14895 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14896 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14897 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14898 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14899 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14900 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14901 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14902 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14903 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14911 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14912 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14918 Likewise.
14919 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14921 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14922 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14923 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14924 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14925 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14926 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14927 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14928 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14929 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14930 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14931 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14932 Likewise.
14933 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14934 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14935 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14936 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14937 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14938 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14939 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14940 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14941 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14942 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14943 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14944 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14945 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14946 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14947 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14948 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14949 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14950 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14951 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14952 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14953 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14954 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14955 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14956 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14957 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14958 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14959 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14960 Likewise.
14961 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14962 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14963 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14964 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14965 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14966 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14967 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14968 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14969 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14970 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14971 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14972 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14973 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14974 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14975 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14976 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14977 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14978 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14979 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14980 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14981 Likewise.
14982 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14983 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14984 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14985 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14986 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14987 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14988 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14989 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14990 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14991 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14992 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14993 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14994 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14995 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14996 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14997 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14998 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14999 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
15000 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15001 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
15002 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
15003 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15004 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
15005 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15006 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
15007 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
15008 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
15009 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15014 Likewise.
15015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15020 Likewise.
15021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15022 Likewise.
15023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15025 Likewise.
15026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15028 Likewise.
15029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15030 Likewise.
15031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15034 Likewise.
15035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15036 Likewise.
15037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15038 Likewise.
15039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15043 Likewise.
15044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15050 Likewise.
15051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15053 Likewise.
15054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15055 Likewise.
15056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15057 Likewise.
15058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15059 Likewise.
15060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15063 Likewise.
15064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15065 Likewise.
15066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15067 Likewise.
15068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15069 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15070 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15071 Likewise.
15072 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15073 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15074 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15075 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15076 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15077 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15078 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15079 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15080 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15081 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15082 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15083 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15084 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15085 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15086 Likewise.
15087 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15088 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15089 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15090 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15091 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15092 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15093 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15094 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15095 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15096 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15097 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15098 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15099 Likewise.
15100 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15101 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15102 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15103 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15104 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15105 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15106 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15107 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15108 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15109 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15110 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15111 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15112 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15113 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15114 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15115 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15116 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15117 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15118 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15119 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15120 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15121 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15122 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15123 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15124 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15125 Likewise.
15126 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15127 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15128 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15129 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15130 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15131 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15132 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15133 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15134 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15135 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15136 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15137 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15138 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15139 Likewise.
15140 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15141 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15142 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15143 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15144 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15145 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15146 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15147 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15148 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15149 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15150 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15151 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15152 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15153 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15154 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15155 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15156 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15157 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15158 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15159 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15160 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15161 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15162 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15163 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15164 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15165 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15166 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15167 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15168 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15169 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15170 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15171 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15172 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15173 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15174 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15175 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15176 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15177 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15178
15179 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
15180
15181 [BZ #23137]
15182 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15183 Use atomic_load_acquire to load __tid.
15184
15185 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15186
15187 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15188 Restore the pointer into %rdx, after syscall and use %rdx,
15189 instead of %rsi, to restore context.
15190
15191 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15192
15193 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15194 Pop the pointer into %rdx after syscall and use %rdx, instead
15195 of %rsi, to restore context.
15196
15197 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15198
15199 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15200 handlers after setjmp.
15201 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15202 defined.
15203 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15204 <libc-pointer-arith.h>.
15205 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15206 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15207 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15208 _JUMP_BUF_SIGSET_BITS_PER_WORD.
15209 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15210 * sysdeps/x86/__longjmp_cancel.S: New file.
15211 * sysdeps/x86/longjmp.c: Likewise.
15212 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15213
15214 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15215
15216 * NEWS: Add ustat.h deprecation entry.
15217 * bits/ustat.h: Remove file.
15218 * misc/sys/ustat.h: Likewise.
15219 * misc/ustat.h: Likewise.
15220 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15221 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15222 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15223 compatibility mode.
15224 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15225 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15226 generic Linux implementation.
15227
15228 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15229
15230 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15231 * math/w_expl_compat.c: Likewise.
15232 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
15233
15234 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15235
15236 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15237
15238 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15239
15240 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15241 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15242 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15243 Remove.
15244 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15246 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15247 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15248 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15249 and SYSCALL_LL64.
15250
15251 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15252
15253 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15254
15255 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15256 * math/w_asin_template.c: Likewise.
15257 * math/w_atanh_template.c: Likewise.
15258
15259 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15260
15261 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15262 to powerpc/powerpc64/be for big-endian.
15263 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15264 little-endian.
15265
15266 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15267 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15268 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15269 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15270 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15271 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15272 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15273 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15274 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15275 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15276 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15277 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15278 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15279 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15280 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15281 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15282 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15283 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15284 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15285 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15286 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15287 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15288 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15289 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15290 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15291 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15292 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15293 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15294 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15295 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15296 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15297 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15298
15299 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15300 adjusted to imply powerpc64 and older processors on powerpc64/be.
15301 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15302 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15303 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15304 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15305 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15306 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15307 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15308 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15309 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15310 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15311 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15312 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15313 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15314 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15315 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15316 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15317 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15318 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15319 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15320 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15321 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15322 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15323 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15324 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15325 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15326 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15327 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15328 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15329 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15330 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15331 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15332
15333 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15334 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15335 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15336 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15337
15338 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15339 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15340 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15341 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15342
15343 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15344 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15345 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15346 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15347 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15348 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15349 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15350 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15351 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15352 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15353 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15354
15355 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15356 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15357 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15358 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15359 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15360 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15361 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15362 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15363 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15364 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15365 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15366
15367 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15368 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15369 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15370 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15371 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15372 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15373 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15374 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15375 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15376 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15377 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15378 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15379
15380 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15381 and adjusted to imply olders processors.
15382 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15383 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15384 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15385 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15386 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15387 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15388 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15389 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15390 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15391 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15392 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15393
15394 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15395 powerpc64/le.
15396 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15397 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15398
15399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15400 powerpc64le.
15401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15403
15404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15405 powerpc64/be.
15406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15409
15410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15411 powerpc64 and adjusted.
15412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15415 Likewise.
15416
15417 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15418
15419 * sysdeps/tile: Remove.
15420 * sysdeps/unix/sysv/linux/tile: Likewise.
15421 * README (tilegx-*-linux-gnu): Remove from list of supported
15422 configurations.
15423 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15424 contribution of support for generic Linux kernel syscall
15425 interface.
15426 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15427 tilegx configurations.
15428 (Config.install_linux_headers): Do not handle tile.
15429 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15430 in comment.
15431 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15432 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15433 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15434 conditional undefine and redefine.
15435 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15436 in comment.
15437 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15438 conditional undefine and redefine.
15439
15440 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15441
15442 * signal/tst-sigaction.c: New file to test BZ #23069.
15443 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15444
15445 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15446
15447 [BZ #22766]
15448 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15449 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15450 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15451 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15452
15453 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15454
15455 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15456 _DIRENT_MATCHES_DIRENT64 is not defined.
15457 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15458 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15459 is defined.
15460 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15461 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15462
15463 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15464
15465 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15466 version to GCC 8 branch.
15467
15468 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15469
15470 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15471 (check_no_hidden): Use type of original function when declaring
15472 alias.
15473
15474 * sysdeps/unix/sysv/linux/sys/ptrace.h
15475 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15476 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15477 (struct __ptrace_seccomp_metadata): New type.
15478 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15479 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15480 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15481 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15482 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15483 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15484 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15485 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15486 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15487 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15488 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15489 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15490 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15491 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15492 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15493 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15494
15495 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15496
15497 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15498 defined.
15499 * dirent/versionsort.c (versionsort): Likewise.
15500 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15501 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15502 * dirent/versionsort64.c (versionsort64): Likewise.
15503 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15504 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15505 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15506 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15507 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15508 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15509 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15510 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15511 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15512 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15515 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15516 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15517
15518 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15519
15520 * elf/elf.h (NT_PPC_PKEY): New macro.
15521
15522 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15523
15524 [BZ #23094]
15525 * localedata/locales/hr_HR: fix thousands_sep and
15526 mon_thousands_sep
15527
15528 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15529
15530 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15531 (XTABS): Define to TAB3.
15532
15533 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15534
15535 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15536
15537 * dirent/scandir-tail-common.c: New file.
15538 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15539 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15540 * dirent/scandir.c: Use scandir-tail-common.c.
15541 * dirent/scandirat.c: Likewise.
15542 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15543 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15544 if _DIRENT_MATCHES_DIRENT64 is defined.
15545 * dirent/scandirat64.c (scandirat64): Likewise.
15546 * include/dirent.h (__scandir_tail): Only define iff
15547 _DIRENT_MATCHES_DIRENT64 is not defined.
15548 (__scandir64_tail): Define regardless.
15549 (__scandirat, scandirat64): Remove libc_hidden_proto.
15550 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15551 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15553 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15554 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15555 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15556 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15557
15558 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15559
15560 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15561 New macro.
15562 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15563 Increase to 24.
15564 (_dl_aarch64_cap_flags): Add asimdfhm.
15565
15566 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15567
15568 * sysdeps/nios2/libm-test-ulps: Update.
15569
15570 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15571
15572 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15573 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15574
15575 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15576 requirements.
15577 (_DIRENT_MATCHES_DIRENT64): Undef
15578 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15579 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15580 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15581 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15582 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15583 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15584 use getdents64 syscalls as base.
15585 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15586 symbol if required.
15587 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15588 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15589 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15590 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15591 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15592 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15593 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15594 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15595 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15596 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15597 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15598
15599 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15600
15601 * scripts/test_printers_common.py (init_test): Disable lock elision.
15602
15603 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15604
15605 * math/test-tgmath.c (count_double, count_float,
15606 count_ldouble, count_cdouble, count_cfloat,
15607 count_cldouble): Use volatile int.
15608
15609 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15610
15611 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15612 (conformtest-xfail-conds): Add i386-gnu.
15613 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15614 i386-gnu.
15615 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15616 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15617 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15618 msqid_ds.msg_lrpid): Likewise.
15619 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15620 Likewise.
15621 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15622 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15623 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15624 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15625 unsigned int.
15626 (struct statvfs64): Likewise.
15627 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15628 Likewise.
15629 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15630 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15631 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15632 instead of wait_queue.
15633 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15634 instead of vm_area_struct.
15635 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15636 struct sched_param definition to it.
15637 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15638 * bits/types/struct_sched_param.h: New file.
15639 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15640 <bits/types/struct_sched_param.h> instead of <sched.h>.
15641 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15642 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15643 generic version but include <bits/pthreadtypes.h> to make struct
15644 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15645 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15646 non-compliant.
15647 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15648 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15649 [__USE_XOPEN] (OFDEL): New macro.
15650 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15651 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15652 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15653 prototypes.
15654 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15655 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15656 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15657 non-compliant.
15658 * sysdeps/i386/sys/ucontext.h: Likewise.
15659 * sysdeps/m68k/sys/ucontext.h: Likewise.
15660 * sysdeps/mips/sys/ucontext.h: Likewise.
15661 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15662 * sysdeps/mach/hurd/i386/Makefile
15663 (test-xfail-POSIX/fcntl.h/conform): Add.
15664 (test-xfail-POSIX/signal.h/conform): Add.
15665 (test-xfail-POSIX/semaphore.h/conform): Add.
15666 (test-xfail-POSIX/regex.h/conform): Add.
15667 (test-xfail-POSIX/aio.h/conform): Add.
15668 (test-xfail-POSIX/mqueue.h/conform): Add.
15669 (test-xfail-POSIX/sys/types.h/conform): Add.
15670 (test-xfail-UNIX98/fcntl.h/conform): Add.
15671 (test-xfail-UNIX98/netdb.h/conform): Add.
15672 (test-xfail-UNIX98/signal.h/conform): Add.
15673 (test-xfail-UNIX98/semaphore.h/conform): Add.
15674 (test-xfail-UNIX98/regex.h/conform): Add.
15675 (test-xfail-UNIX98/aio.h/conform): Add.
15676 (test-xfail-UNIX98/ftw.h/conform): Add.
15677 (test-xfail-UNIX98/mqueue.h/conform): Add.
15678 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15679 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15680 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15681 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15682 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15683 (test-xfail-UNIX98/sys/types.h/conform): Add.
15684 (test-xfail-UNIX98/stdlib.h/conform): Add.
15685 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15686 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15687 (test-xfail-POSIX2008/netdb.h/conform): Add.
15688 (test-xfail-POSIX2008/signal.h/conform): Add.
15689 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15690 (test-xfail-POSIX2008/regex.h/conform): Add.
15691 (test-xfail-POSIX2008/aio.h/conform): Add.
15692 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15693 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15694 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15695 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15696 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15697 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15698 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15699 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15700 (test-xfail-XOPEN2K/signal.h/conform): Add.
15701 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15702 (test-xfail-XOPEN2K/regex.h/conform): Add.
15703 (test-xfail-XOPEN2K/aio.h/conform): Add.
15704 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15705 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15706 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15707 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15708 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15709 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15710 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15711 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15712 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15713 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15714 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15715 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15716 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15717 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15718 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15719 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15720 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15721 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15722 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15723 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15724 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15725 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15726 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15727 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15728 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15729 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15730 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15731 i386-gnu.
15732 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15733 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15734
15735 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15736
15737 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15738 --enable-obsolete for powerpc-linux-gnuspe.
15739
15740 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15741
15742 * conform/data/sys/un.h-data: Allow sun_ prefix.
15743 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15744 prototypes.
15745 * sysdeps/mach/include/mach.h: Likewise.
15746 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15747 * sysdeps/mach/include/mach_error.h: Likewise.
15748
15749 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15750
15751 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15752 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15753 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15754 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15755
15756 2018-04-16 Andreas Schwab <schwab@suse.de>
15757
15758 [BZ #19527]
15759 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15760
15761 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15762
15763 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15764 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15765
15766 2018-04-12 DJ Delorie <dj@redhat.com>
15767
15768 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15769 version to 4.16.
15770
15771 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15772
15773 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15774 (struct kernel_sigaction): Use the same definition on 31bit as is used
15775 on 64bit.
15776
15777 2018-04-09 Florian Weimer <fweimer@redhat.com>
15778
15779 [BZ #23037]
15780 * resolv/res_send.c (send_dg): Use designated initializers instead
15781 of assignment to zero-initialize other fields of struct mmsghdr.
15782
15783 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15784
15785 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15786 __READDIR_ALIAS): Undefine after usage.
15787 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15788 __READDIR_R_ALIAS): Likewise.
15789 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15790 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15791 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15792 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15793 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15794 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15795 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15796 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15797 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15798 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15799 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15800 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15801 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15802 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15803 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15804 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15805 * sysdeps/unix/sysv/linux/readdir.c: New file.
15806 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15807 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15808 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15809
15810 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15811
15812 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15813
15814 * manual/charset.texi (Converting a Character): Fix typo.
15815
15816 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15817
15818 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15819
15820 * sysdeps/arm/libm-test-ulps: Update.
15821
15822 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15823 as base implementation.
15824 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15825 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15826 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15827 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15828 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15829 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15830 remove unrequired definitions and update comments.
15831 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15832 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15833 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15834 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15835 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15836 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15837 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15838 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15839 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15840 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15841 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15842 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15843 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15844 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15845 and RESET_SA_RESTORER hooks.
15846
15847 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15848
15849 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15850
15851 2018-04-05 Florian Weimer <fweimer@redhat.com>
15852
15853 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15854 integer overflow, memory leak on error, and indeterminate errno
15855 value. Add a null wide character to terminate the result string.
15856 * manual/charset.texi (Converting a Character): Mention embedded
15857 null bytes in the mbrtowc input string. Explain what happens in
15858 the -2 result case. Do not claim that mbrtowc is simple or
15859 obvious to use. Adjust the description of the code example. Use
15860 @code, not @var, for concrete variables.
15861
15862 2018-04-05 Florian Weimer <fweimer@redhat.com>
15863
15864 * manual/examples/mbstouwcs.c: New file.
15865 * manual/charset.texi (Converting a Character): Include it.
15866
15867 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15868
15869 * include/dirent.h (dirfd): Add hidden proto.
15870 * dirent/dirfd.c (dirfd): Add hidden def.
15871 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15872 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15873
15874 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15875
15876 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15877 sin, cos and sincos to 1 ULP.
15878
15879 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15880
15881 [BZ #19818]
15882 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15883 symbols.
15884 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15885 * elf/tst-absolute-sym.c: New file.
15886 * elf/tst-absolute-sym-lib.c: New file.
15887 * elf/tst-absolute-sym-lib.lds: New file.
15888 * elf/Makefile (tests): Add `tst-absolute-sym'.
15889 (modules-names): Add `tst-absolute-sym-lib'.
15890 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15891 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15892 ($(objpfx)tst-absolute-sym): New dependency.
15893
15894 [BZ #19818]
15895 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15896 parameter.
15897 (SYMBOL_ADDRESS): New macro.
15898 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15899 SYMBOL_ADDRESS for symbol address calculation.
15900 * elf/dl-runtime.c (_dl_fixup): Likewise.
15901 (_dl_profile_fixup): Likewise.
15902 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15903 * elf/rtld.c (dl_main): Likewise.
15904 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15905 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15906 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15907 (elf_machine_rela): Likewise.
15908 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15909 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15910 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15911 (elf_machine_rela): Likewise.
15912 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15913 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15914 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15915 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15916 Likewise.
15917 (elf_machine_reloc): Likewise.
15918 (elf_machine_got_rel): Likewise.
15919 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15920 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15921 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15922 Likewise.
15923 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15924 Likewise.
15925 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15926 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15927 Likewise.
15928 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15929 Likewise.
15930 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15931 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15932 Likewise.
15933 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15934 Likewise.
15935 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15936 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15937
15938 2018-04-04 Zack Weinberg <zackw@panix.com>
15939
15940 * sysdeps/generic/internal-signals.h: Include signal.h,
15941 sigsetops.h, and stdbool.h.
15942 (__libc_signal_block_all): Actually block all signals.
15943 (__libc_signal_block_app): Likewise.
15944 (__libc_signal_restore_set): Actually restore the signal mask.
15945
15946 2018-04-04 Florian Weimer <fweimer@redhat.com>
15947
15948 inet: Actually build and run tst-deadline.
15949 * inet/Makefile (tests-internal): Add tst-deadline and do not
15950 overwrite the variable.
15951 (tests-static-internal): Remove variable.
15952
15953 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15954
15955 [BZ #22947]
15956 * bits/uio-ext.h (RWF_APPEND): New.
15957 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15958 * manual/llio.texi: Document RWF_APPEND.
15959 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15960 (RWF_SUPPORTED): Add RWF_APPEND.
15961
15962 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15963
15964 [BZ #22391]
15965 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15966 check for internal nptl signals.
15967 * nptl/sigaction.c (__sigaction): Likewise.
15968 * signal/sigaddset.c (sigaddset): Likewise.
15969 * signal/sigdelset.c (sigdelset): Likewise.
15970 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15971 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15972 value.
15973 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15974 to filter out internal nptl signals.
15975 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15976 also check realtime signals using standard macros.
15977 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15978 __is_internal_signal, __libc_signal_block_all,
15979 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15980 * sysdeps/nptl/sigfillset.c: Remove file.
15981 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15982 Change return to bool.
15983 (__clear_internal_signals): Remove SIGTIMER clean since it is
15984 equal to SIGCANEL on Linux.
15985 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15986 signal set was constructed using standard functions.
15987
15988 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15989
15990 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15991 ifname is too long.
15992 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15993 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15994 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15995 hidden def.
15996 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15997 * signal/sigaddset.c: Include <sigsetopts.h>.
15998 * signal/sigdelset.c: Likewise.
15999
16000 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16001
16002 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
16003 (__cos): Likewise.
16004 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
16005 logic as sin and cos.
16006
16007 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16008
16009 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16010 inputs. Return correct sign.
16011 (do_sincos): Remove small input check before do_sin, let do_sin set
16012 the sign.
16013 (__sin): Likewise.
16014 (__cos): Likewise.
16015
16016 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16017
16018 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16019 (do_cos_slow): Likewise.
16020 (do_sin_slow): Likewise.
16021 (reduce_and_compute): Likewise.
16022 (slow): Likewise.
16023 (slow1): Likewise.
16024 (slow2): Likewise.
16025 (sloww): Likewise.
16026 (sloww1): Likewise.
16027 (sloww2): Likewise.
16028 (bslow): Likewise.
16029 (bslow1): Likewise.
16030 (bslow2): Likewise.
16031 (cslow2): Likewise.
16032
16033 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16034
16035 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16036 (do_cos): Remove corp parameter and calculations.
16037 (do_sin): Likewise.
16038 (do_sincos): Remove cor variable.
16039 (__sin): Use do_sincos for huge inputs.
16040 (__cos): Likewise.
16041 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16042 (reduce_and_compute_sincos): Remove unused function.
16043
16044 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16045
16046 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16047 reduce_sincos, improve accuracy to 136 bits.
16048 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16049 (__sin): Use improved reduction and simplified do_sincos calculation.
16050 (__cos): Likewise.
16051 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16052
16053 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16054
16055 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16056 (do_sincos_2): Likewise.
16057 (__sin): Remove middle range reduction case.
16058 (__cos): Likewise.
16059 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16060 reduction case.
16061
16062 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16063
16064 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16065 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16066 inputs.
16067 (__cos): Likewise.
16068 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16069
16070 2018-04-03 Joseph Myers <joseph@codesourcery.com>
16071
16072 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16073 version to 4.16
16074
16075 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16076
16077 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16078 Remove definitions.
16079 (opendir_oflags): Use O_DIRECTORY regardless.
16080 (__opendir, __opendirat): Remove need_isdir_precheck usage.
16081 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16082
16083 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16084
16085 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16086 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16087 macros.
16088 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16089 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16090 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16091 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16092 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16093 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16094
16095 * htl/Makefile: Bump licence to LGPL 2.1+.
16096 * htl/alloca_cutoff.c: Likewise.
16097 * htl/cthreads-compat.c: Likewise.
16098 * htl/lockfile.c: Likewise.
16099 * htl/pt-alloc.c: Likewise.
16100 * htl/pt-cancel.c: Likewise.
16101 * htl/pt-cleanup.c: Likewise.
16102 * htl/pt-create.c: Likewise.
16103 * htl/pt-dealloc.c: Likewise.
16104 * htl/pt-detach.c: Likewise.
16105 * htl/pt-exit.c: Likewise.
16106 * htl/pt-getattr.c: Likewise.
16107 * htl/pt-initialize.c: Likewise.
16108 * htl/pt-internal.h: Likewise.
16109 * htl/pt-join.c: Likewise.
16110 * htl/pt-self.c: Likewise.
16111 * htl/pt-setcancelstate.c: Likewise.
16112 * htl/pt-setcanceltype.c: Likewise.
16113 * htl/pt-sigmask.c: Likewise.
16114 * htl/pt-spin-inlines.c: Likewise.
16115 * htl/pt-testcancel.c: Likewise.
16116 * htl/pt-yield.c: Likewise.
16117 * htl/tests/test-1.c: Likewise.
16118 * htl/tests/test-10.c: Likewise.
16119 * htl/tests/test-11.c: Likewise.
16120 * htl/tests/test-12.c: Likewise.
16121 * htl/tests/test-13.c: Likewise.
16122 * htl/tests/test-14.c: Likewise.
16123 * htl/tests/test-15.c: Likewise.
16124 * htl/tests/test-16.c: Likewise.
16125 * htl/tests/test-17.c: Likewise.
16126 * htl/tests/test-2.c: Likewise.
16127 * htl/tests/test-3.c: Likewise.
16128 * htl/tests/test-4.c: Likewise.
16129 * htl/tests/test-5.c: Likewise.
16130 * htl/tests/test-6.c: Likewise.
16131 * htl/tests/test-7.c: Likewise.
16132 * htl/tests/test-8.c: Likewise.
16133 * htl/tests/test-9.c: Likewise.
16134 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16135 * sysdeps/htl/bits/cancelation.h: Likewise.
16136 * sysdeps/htl/bits/pthread-np.h: Likewise.
16137 * sysdeps/htl/bits/pthread.h: Likewise.
16138 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16139 * sysdeps/htl/bits/semaphore.h: Likewise.
16140 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16141 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16142 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16143 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16144 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16145 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16146 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16147 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16148 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16149 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16150 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16151 * sysdeps/htl/old_pt-atfork.c: Likewise.
16152 * sysdeps/htl/pt-atfork.c: Likewise.
16153 * sysdeps/htl/pt-attr-destroy.c: Likewise.
16154 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16155 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16156 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16157 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16158 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16159 * sysdeps/htl/pt-attr-getscope.c: Likewise.
16160 * sysdeps/htl/pt-attr-getstack.c: Likewise.
16161 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16162 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16163 * sysdeps/htl/pt-attr-init.c: Likewise.
16164 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16165 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16166 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16167 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16168 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16169 * sysdeps/htl/pt-attr-setscope.c: Likewise.
16170 * sysdeps/htl/pt-attr-setstack.c: Likewise.
16171 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16172 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16173 * sysdeps/htl/pt-attr.c: Likewise.
16174 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16175 * sysdeps/htl/pt-barrier-init.c: Likewise.
16176 * sysdeps/htl/pt-barrier-wait.c: Likewise.
16177 * sysdeps/htl/pt-barrier.c: Likewise.
16178 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16179 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16180 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16181 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16182 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16183 * sysdeps/htl/pt-cond-destroy.c: Likewise.
16184 * sysdeps/htl/pt-cond-init.c: Likewise.
16185 * sysdeps/htl/pt-cond-signal.c: Likewise.
16186 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16187 * sysdeps/htl/pt-cond-wait.c: Likewise.
16188 * sysdeps/htl/pt-cond.c: Likewise.
16189 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16190 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16191 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16192 * sysdeps/htl/pt-condattr-init.c: Likewise.
16193 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16194 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16195 * sysdeps/htl/pt-destroy-specific.c: Likewise.
16196 * sysdeps/htl/pt-equal.c: Likewise.
16197 * sysdeps/htl/pt-getconcurrency.c: Likewise.
16198 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16199 * sysdeps/htl/pt-getschedparam.c: Likewise.
16200 * sysdeps/htl/pt-getspecific.c: Likewise.
16201 * sysdeps/htl/pt-init-specific.c: Likewise.
16202 * sysdeps/htl/pt-key-create.c: Likewise.
16203 * sysdeps/htl/pt-key-delete.c: Likewise.
16204 * sysdeps/htl/pt-key.h: Likewise.
16205 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16206 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16207 * sysdeps/htl/pt-mutex-init.c: Likewise.
16208 * sysdeps/htl/pt-mutex-lock.c: Likewise.
16209 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16210 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16211 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16212 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16213 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16214 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16215 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16216 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16217 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16218 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16219 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16220 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16221 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16222 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16223 * sysdeps/htl/pt-mutexattr.c: Likewise.
16224 * sysdeps/htl/pt-once.c: Likewise.
16225 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16226 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16227 * sysdeps/htl/pt-rwlock-init.c: Likewise.
16228 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16229 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16230 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16231 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16232 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16233 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16234 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16235 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16236 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16237 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16238 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16239 * sysdeps/htl/pt-setconcurrency.c: Likewise.
16240 * sysdeps/htl/pt-setschedparam.c: Likewise.
16241 * sysdeps/htl/pt-setschedprio.c: Likewise.
16242 * sysdeps/htl/pt-setspecific.c: Likewise.
16243 * sysdeps/htl/pt-spin.c: Likewise.
16244 * sysdeps/htl/pt-startup.c: Likewise.
16245 * sysdeps/htl/pthread.h: Likewise.
16246 * sysdeps/htl/sem-close.c: Likewise.
16247 * sysdeps/htl/sem-destroy.c: Likewise.
16248 * sysdeps/htl/sem-getvalue.c: Likewise.
16249 * sysdeps/htl/sem-init.c: Likewise.
16250 * sysdeps/htl/sem-open.c: Likewise.
16251 * sysdeps/htl/sem-post.c: Likewise.
16252 * sysdeps/htl/sem-timedwait.c: Likewise.
16253 * sysdeps/htl/sem-trywait.c: Likewise.
16254 * sysdeps/htl/sem-unlink.c: Likewise.
16255 * sysdeps/htl/sem-wait.c: Likewise.
16256 * sysdeps/hurd/htl/pt-kill.c: Likewise.
16257 * sysdeps/i386/htl/pt-machdep.h: Likewise.
16258 * sysdeps/mach/htl/pt-block.c: Likewise.
16259 * sysdeps/mach/htl/pt-spin.c: Likewise.
16260 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16261 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16262 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16263 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16264 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16265 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16266 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16267 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16268 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16269 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16270 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16271 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16272 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16273 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16274 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16275 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16276 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16277 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16278 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16279 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16280 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16281 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16282 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16283 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16284 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16285 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16286 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16287 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16288 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16289 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16290 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16291 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16292 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16293 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16294 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16295 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16296 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16297 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16298 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16299 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16300 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16301 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16302 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16303
16304 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16305 * README: Remove the mention of out-of-tree patches needed for
16306 GNU/Hurd.
16307
16308 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16309 (UTIME_NOW, UTIME_OMIT): Define macros.
16310
16311 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16312 instead of pthread_detach.
16313 (__cthread_fork): Call __pthread_create instead of pthread_create.
16314 (__cthread_keycreate): Call __pthread_key_create instead of
16315 pthread_key_create.
16316 (__cthread_getspecific): Call __pthread_getspecific instead of
16317 pthread_getspecific.
16318 (__cthread_setspecific): Call __pthread_setspecific instead of
16319 pthread_setspecific.
16320 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16321 __pthread_mutex_unlock instead of pthread_mutex_lock and
16322 pthread_mutex_unlock.
16323 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16324 ___pthread_get_cleanup_stack.
16325 (__pthread_get_cleanup_stack): New strong alias.
16326 * htl/pt-create.c: Include <pthreadP.h>.
16327 (entry_point): Call __pthread_exit instead of pthread_exit.
16328 (pthread_create): Rename to __pthread_create.
16329 (pthread_create): New strong alias.
16330 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16331 (pthread_detach): New strong alias.
16332 (__pthread_detach): Call __pthread_cond_broadcast instead of
16333 pthread_cond_broadcast.
16334 * htl/pt-exit.c: Include <pthreadP.h>.
16335 (__pthread_exit): Call __pthread_setcancelstate and
16336 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16337 __pthread_get_cleanup_stack.
16338 * htl/pt-testcancel.c: Include <pthreadP.h>.
16339 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16340 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16341 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16342 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16343 pthread_attr_getstacksize.
16344 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16345 Rename to __pthread_attr_getstackaddr.
16346 (pthread_attr_getstackaddr): New strong alias.
16347 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16348 Rename to __pthread_attr_getstacksize.
16349 (pthread_attr_getstacksize): New strong alias.
16350 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16351 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16352 (pthread_attr_setstack): New strong alias.
16353 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16354 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16355 pthread_attr_getstacksize, pthread_attr_setstacksize and
16356 pthread_attr_setstackaddr.
16357 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16358 Rename to __pthread_attr_setstackaddr.
16359 (pthread_attr_setstackaddr): New strong alias.
16360 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16361 Rename to __pthread_attr_setstacksize.
16362 (pthread_attr_setstacksize): New strong alias.
16363 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16364 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16365 pthread_exit.
16366 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16367 (__pthread_key_create): New hidden def.
16368 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16369 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16370 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16371 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16372 __pthread_setspecific, __pthread_setcancelstate,
16373 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16374 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16375 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16376 declarations.
16377 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16378 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16379 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16380 (pthread_attr_setstackaddr): New strong alias.
16381 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16382 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16383 (pthread_attr_setstacksize): New strong alias.
16384 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16385 (call_exit): Call __pthread_exit instead of pthread_exit.
16386 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16387 (_pthread_mutex_init): New hidden definition.
16388 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16389 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16390 instead of pthread_attr_init and pthread_attr_setstack.
16391
16392 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16393 __vm_deallocate instead of vm_allocate and vm_deallocate.
16394 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16395 setenv.
16396 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16397 of geteuid.
16398 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16399 strdup.
16400 * hurd/siginfo.c: Include <libioP.h>.
16401 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16402 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16403 munmap.
16404 * mach/devstream.c: Include <libioP.h>.
16405 (dealloc_ref): Call __mach_port_deallocate instead of
16406 mach_port_deallocate.
16407 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16408 Call __mach_port_deallocate instead of mach_port_deallocate.
16409 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16410 pathconf.
16411 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16412 munmap.
16413 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16414 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16415 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16416 of munmap.
16417 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16418 of close.
16419 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16420 instead of sysconf.
16421 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16422 __clock_gettime instead of clock_gettime.
16423 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16424 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16425 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16426 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16427 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16428 tcgetattr.
16429 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16430 __clock_gettime and __nanosleep instead of clock_gettime and
16431 nanosleep.
16432 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16433 __hurd_catch_signal.
16434 (hurd_catch_signal): New strong alias.
16435 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16436 __hurd_catch_signal instead of hurd_catch_signal.
16437 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16438 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16439 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16440 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16441 (_hurd_thread_sigstate): Add hidden def.
16442 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16443 mutex_unlock.
16444 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16445 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16446 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16447 __hurd_file_name_path_lookup.
16448 (hurd_file_name_path_lookup): New strong alias.
16449 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16450 hurd_file_name_path_lookup.
16451 * mach/errstring.c (mach_error_type): Add hidden def.
16452 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16453 * mach/mutex-init.c (__mutex_init): Add hidden def.
16454 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16455 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16456 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16457 * sysdeps/mach/hurd/getcwd.c
16458 (_hurd_canonicalize_directory_name_internal): Rename to
16459 __hurd_canonicalize_directory_name_internal.
16460 (_hurd_canonicalize_directory_name_internal): New strong alias.
16461 (__canonicalize_directory_name_internal, __getcwd): Call
16462 __hurd_canonicalize_directory_name_internal instead of
16463 _hurd_canonicalize_directory_name_internal.
16464 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16465 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16466 hidden defs.
16467 * sysdeps/hurd/include/hurd.h: New file.
16468 * sysdeps/hurd/include/hurd/fd.h: New file.
16469 * sysdeps/hurd/include/hurd/signal.h: New file.
16470 * sysdeps/mach/include/lock-intern.h: New file.
16471 * sysdeps/mach/include/mach.h: New file.
16472 * sysdeps/mach/include/mach/mig_support.h: New file.
16473 * sysdeps/mach/include/mach_error.h: New file.
16474 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16475 prototype.
16476 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16477 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16478 _HEADER_H_HIDDEN_DEF macro.
16479 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16480 _hurd_fd_error_signal): Add hidden prototype.
16481 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16482 hidden def.
16483 * libio/iolibio.h (_IO_puts): New hidden prototype.
16484 * libio/ioputs.c (_IO_puts): New hidden def.
16485 * sysdeps/mach/hurd/localplt.data: New file.
16486
16487 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16488 Amos Jeffries <squid3@treenet.co.nz>
16489 David Michael <fedora.dm0@gmail.com>
16490 Marco Gerards <marco@gnu.org>
16491 Marcus Brinkmann <marcus@gnu.org>
16492 Neal H. Walfield <neal@gnu.org>
16493 Pino Toscano <toscano.pino@tiscali.it>
16494 Richard Braun <rbraun@sceen.net>
16495 Roland McGrath <roland@gnu.org>
16496 Samuel Thibault <samuel.thibault@ens-lyon.org>
16497 Thomas DiModica <ricinwich@yahoo.com>
16498 Thomas Schwinge <tschwinge@gnu.org>
16499
16500 * htl: New directory.
16501 * sysdeps/htl: New directory.
16502 * sysdeps/hurd/htl: New directory.
16503 * sysdeps/i386/htl: New directory.
16504 * sysdeps/mach/htl: New directory.
16505 * sysdeps/mach/hurd/htl: New directory.
16506 * sysdeps/mach/hurd/i386/htl: New directory.
16507 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16508 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16509 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16510
16511 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16512
16513 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16514 signals in thread created for runing timers.
16515
16516 2018-04-01 Florian Weimer <fweimer@redhat.com>
16517
16518 * support/support_format_addrinfo.c (support_format_addrinfo):
16519 Include unknown error number in formatted result.
16520
16521 2018-03-29 Florian Weimer <fweimer@redhat.com>
16522
16523 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16524 capture SIGBUS.
16525
16526 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16527
16528 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16529 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16530 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16531 (__ASSUME_CLONE_BACKWARDS): Define.
16532
16533 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16534
16535 [BZ #23024]
16536 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16537 early when linux sentinel value is set.
16538
16539 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16540
16541 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16542
16543 2018-03-27 Andreas Schwab <schwab@suse.de>
16544
16545 [BZ #23005]
16546 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16547 allocation of private copy of nsaddr_list fails.
16548
16549 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16550
16551 [BZ #16552]
16552 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16553 * sysdeps/unix/sysv/linux/umount.c: ... here.
16554 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16555 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16556 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16557 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16559 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16560 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16561
16562 2018-03-26 Andreas Schwab <schwab@suse.de>
16563
16564 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16565 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16566 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16567 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16568 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16569 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16570 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16571 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16572 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16573 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16574 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16575 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16576 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16577 (R_RISCV_NUM): Define.
16578
16579 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16580
16581 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16582 TLS declaration of errno.
16583 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16584 __libc_setup_tls.
16585 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16586 (ARCH_SETUP_TLS): Likewise.
16587 * sysdeps/mach/hurd/libc-start.h: New file copied from
16588 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16589 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16590 instead of __libc_setup_tls.
16591 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16592 __libc_setup_tls before initializing libpthread and running _hurd_init
16593 which starts the signal thread.
16594 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16595 Declare function.
16596 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16597
16598 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16599
16600 [BZ #22998]
16601 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16602 after it is defined.
16603
16604 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16605 Max Horn <max@quendi.de>
16606
16607 [BZ #22644]
16608 CVE-2017-18269
16609 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16610 branch conditions.
16611 * string/test-memmove.c (do_test2): New testcase.
16612
16613 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16614
16615 * sysdeps/generic/frame.h: Remove file.
16616 * sysdeps/arm/frame.h: Likewise.
16617 * sysdeps/hppa/frame.h: Likewise.
16618 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16619 macro.
16620 (GET_FRAME): Likewise.
16621 (GET_STACK): Likewise.
16622 (CALL_SIGHANDLER): Likewise.
16623 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16624 Likewise.
16625 (GET_FRAME): Likewise.
16626 (GET_STACK): Likewise.
16627 (CALL_SIGHANDLER): Likewise.
16628 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16629 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16630 (GET_FRAME): Likewise.
16631 (GET_STACK): Likewise.
16632 (CALL_SIGHANDLER): Likewise.
16633 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16634 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16635 (GET_FRAME): Likewise.
16636 (GET_STACK): Likewise.
16637 (ADVANCE_STACK_FRAME): Likewise.
16638 (CALL_SIGHANDLER): Likewise.
16639 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16640 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16641 (GET_FRAME): Likewise.
16642 (GET_STACK): Likewise.
16643 (CALL_SIGHANDLER): Likewise.
16644 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16645 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16646 (GET_FRAME): Likewise.
16647 (GET_STACK): Likewise.
16648 (CALL_SIGHANDLER): Likewise.
16649 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16650 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16651 (GET_FRAME): Likewise.
16652 (GET_STACK): Likewise.
16653 (CALL_SIGHANDLER): Likewise.
16654 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16655 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16656 (GET_FRAME): Likewise.
16657 (GET_STACK): Likewise.
16658 (CALL_SIGHANDLER): Likewise.
16659 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16660 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16661 (GET_FRAME): Likewise.
16662 (GET_STACK): Likewise.
16663 (CALL_SIGHANDLER): Likewise.
16664 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16665 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16666 (GET_FRAME): Likewise.
16667 (GET_STACK): Likewise.
16668 (CALL_SIGHANDLER): Likewise.
16669 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16670 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16671 (GET_FRAME): Likewise.
16672 (GET_STACK): Likewise.
16673 (CALL_SIGHANDLER): Likewise.
16674 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16675 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16676 (GET_FRAME): Likewise.
16677 (GET_STACK): Likewise.
16678 (CALL_SIGHANDLER): Likewise.
16679 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16680 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16681 (GET_FRAME): Likewise.
16682 (GET_STACK): Likewise.
16683 (CALL_SIGHANDLER): Likewise.
16684 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16685 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16686 (FIRST_FRAME_POINTER): Likewise.
16687 (ADVANCE_STACK_FRAME): Likewise.
16688 (GET_STACK): Likewise.
16689 (GET_FRAME): Likewise.
16690 (CALL_SIGHANDLER): Likewise.
16691 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16692 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16693 (ADVANCE_STACK_FRAME): Likewise.
16694 (GET_STACK): Likewise.
16695 (GET_FRAME): Likewise.
16696 (CALL_SIGHANDLER): Likewise.
16697 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16698 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16699 (GET_FRAME): Likewise.
16700 (GET_STACK): Likewise.
16701 (CALL_SIGHANDLER): Likewise.
16702 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16703 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16704 (GET_FRAME): Likewise.
16705 (GET_STACK): Likewise.
16706 (CALL_SIGHANDLER): Likewise.
16707
16708 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16709
16710 * sysdeps/x86_64/backtrace.c: Move to ....
16711 * debug/backtrace.c: ... here.
16712 * sysdeps/aarch64/backtrace.c: Remove file.
16713 * sysdeps/alpha/backtrace.c: Likewise.
16714 * sysdeps/hppa/backtrace.c: Likewise.
16715 * sysdeps/ia64/backtrace.c: Likewise.
16716 * sysdeps/mips/backtrace.c: Likewise.
16717 * sysdeps/nios2/backtrace.c: Likewise.
16718 * sysdeps/riscv/backtrace.c: Likewise.
16719 * sysdeps/sh/backtrace.c: Likewise.
16720 * sysdeps/tile/backtrace.c: Likewise.
16721
16722 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16723
16724 [BZ #22987]
16725 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16726 function.
16727 (fdimf): Likewise.
16728 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16729
16730 [BZ #17343]
16731 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16732 possibly overflowing computations.
16733
16734 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16735
16736 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16737 values from Linux-specific section now that it is in the GNU section.
16738 * sysdeps/gnu/errlist.c: Regenerate.
16739
16740 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16741
16742 * math/Makefile (libm-narrow-fns): Add sub.
16743 (libm-test-funcs-narrow): Likewise.
16744 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16745 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16746 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16747 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16748 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16749 (NARROW_SUB_TRIVIAL): Likewise.
16750 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16751 macro.
16752 (__dsubl): Likewise.
16753 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16754 dsub.
16755 (CFLAGS-nldbl-dsub.c): New variable.
16756 (CFLAGS-nldbl-fsub.c): Likewise.
16757 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16758 __nldbl_dsubl.
16759 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16760 prototype.
16761 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16762 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16763 * math/auto-libm-test-in: Add tests of sub.
16764 * math/auto-libm-test-out-narrow-sub: New generated file.
16765 * math/libm-test-narrow-sub.inc: New file.
16766 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16767 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16768 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16769 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16770 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16771 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16772 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16773 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16774 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16775 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16776 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16777 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16778 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16779 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16780 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16781 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16782 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16783 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16784 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16785 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16786 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16787 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16788 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16789 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16790 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16791 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16792 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16793 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16794 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16795 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16796 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16797 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16802 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16803 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16804 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16805 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16806 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16807 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16808 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16809 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16810 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16811 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16812
16813 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16814
16815 [BZ #20079]
16816 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16817
16818 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16819
16820 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16821
16822 2018-03-18 Richard Braun <rbraun@sceen.net>
16823
16824 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16825 thread reference.
16826
16827 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16828
16829 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16830 (__libc_cleanup_fct): Define function.
16831 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16832 __libc_cleanup_end): Rewrite implementation using
16833 __attribute__ ((__cleanup__)).
16834 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16835 * hurd/Makefile (routines): Add hurdlock.
16836 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16837 interface.
16838 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16839 * hurd/hurdpid.c: Include <lowlevellock.h>
16840 (_S_msg_proc_newids): Use lll_wait to synchronize.
16841 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16842 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16843 * mach/Makefile (lock-headers): Remove machine-lock.h.
16844 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16845 <machine-lock.h>.
16846 (__spin_lock_t): New type.
16847 (__SPIN_LOCK_INITIALIZER): New macro.
16848 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16849 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16850 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16851 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16852 (__mutex_init): Initialize with lll.
16853 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16854 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16855 needing lll.
16856 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16857 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16858 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16859 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16860 (__setpgid): Use lll for synchronization.
16861 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16862 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16863 instead of <cthreads.h>.
16864 (_IO_lock_inexpensive): New macro
16865 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16866 (__libc_lock_self0): New declaration.
16867 (__libc_lock_owner_self): New macro.
16868 (__libc_key_t): Remove type.
16869 (_LIBC_LOCK_INITIALIZER): New macro.
16870 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16871 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16872 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16873 __libc_lock_define_initialized_recursive,
16874 __rtld_lock_define_initialized_recursive,
16875 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16876 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16877 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16878 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16879 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16880 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16881 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16882 New macros.
16883 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16884 * hurd/hurdlock.c: New file.
16885 * hurd/hurdlock.h: New file.
16886 * mach/lowlevellock.h: New file
16887
16888 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16889
16890 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16891 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16892 when opening a symlink with O_NOFOLLOW.
16893 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16894 path when flags contains O_NOFOLLOW.
16895 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16896 if flags contains O_DIRECTORY and the result is a directory.
16897 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16898 oneself when the pointer given in D is nul (as set by ext2fs).
16899 * sysdeps/mach/hurd/mlockall.c: New file.
16900 * sysdeps/mach/hurd/munlockall.c: New file.
16901
16902 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16903
16904 * hurd/hurdsig.c: Include <pthread.h>.
16905 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16906 get the signal thread stack layout.
16907 * hurd/Makefile (headers): Remove threadvar.h.
16908 (inline-headers): Remove threadvar.h.
16909 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16910 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16911 __hurd_threadvar_max, __hurd_errno_location.
16912 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16913 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16914 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16915 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16916 unless TLS is not initialized yet, in which case we do not need a
16917 critical section yet anyway.
16918 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16919 <machine-sp.h>.
16920 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16921 declarations.
16922 (__hurd_threadvar_index): Remove enum.
16923 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16924 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16925 inlines.
16926 (__hurd_reply_port0): New variable declaration.
16927 (__hurd_local_reply_port): New macro.
16928 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16929 (interrupted_reply_port_location): Add thread_t parameter. Use it
16930 with THREAD_TCB to access thread-local variables.
16931 (_hurdsig_abort_rpcs): Pass ss->thread to
16932 interrupted_reply_port_location.
16933 (_hurd_internal_post_signal): Likewise.
16934 (_hurdsig_init): Use presence of cthread_fork instead of
16935 __hurd_threadvar_stack_mask to start signal thread by hand.
16936 Remove signal thread threadvar initialization.
16937 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16938 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16939 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16940 of threadvar.
16941 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16942 __libc_lock_self0.
16943 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16944 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16945 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16946 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16947 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16948 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16949 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16950 define variables.
16951 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16952 <hurd/threadvar.h>.
16953 [IS_IN(rtld)] (rtld_errno): New variable.
16954 [IS_IN(rtld)] (__errno_location): New weak function.
16955 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16956 * sysdeps/mach/hurd/errno.c: Remove file.
16957 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16958 (__fork): Remove THREADVAR_SPACE macro and its use.
16959 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16960 variable.
16961 (init): Do not initialize threadvar.
16962 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16963 symbol.
16964 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16965 __hurd_local_reply_port instead of threadvar.
16966 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16967 _hurd_sigstate fields.
16968 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16969 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16970 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16971 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16972 instead of threadvar.
16973 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16974 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16975 (use_threadvar, global_reply_port): Remove variables.
16976 (__hurd_reply_port0): New variable.
16977 (__mig_get_reply_port): Use __hurd_local_reply_port and
16978 __hurd_reply_port0 instead of threadvar.
16979 (__mig_dealloc_reply_port): Likewise.
16980 (__mig_init): Do not initialize threadvar.
16981 * sysdeps/mach/hurd/profil.c: Fix comment.
16982 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16983 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16984 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16985 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16986 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16987 __cthread_setspecific.
16988 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16989 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16990 __cthread_t instead of cthread_fork, cthread_detach,
16991 pthread_getattr_np, pthread_attr_getstack.
16992 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16993 __cthread_keycreate.
16994 (cthread_getspecific): Rename to __cthread_getspecific.
16995 (cthread_setspecific): Rename to __cthread_setspecific.
16996 (__libc_getspecific): Use __cthread_getspecific instead of
16997 cthread_getspecific.
16998 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16999 __cthread_keycreate instead of cthread_keycreate.
17000 (__libc_setspecific): Use __cthread_setspecific instead of
17001 cthread_setspecific.
17002 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
17003 Likewise.
17004 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
17005 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
17006 testing whether it is defined.
17007
17008 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
17009
17010 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17011 Define macro.
17012 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17013 * sysdeps/mach/i386/thread_state.h
17014 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17015 i386_THREAD_STATE.
17016 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17017 i386_THREAD_STATE.
17018 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17019
17020 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17021 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17022
17023 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17024 macros.
17025 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17026 descriptor instead of creating a new one.
17027 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17028
17029 * mach/setup-thread.c: Include <ldsodefs.h>.
17030 (__mach_setup_thread): Call _dl_allocate_tls, pass
17031 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17032 MACHINE_THREAD_STATE_FLAVOR, before getting
17033 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17034 MACHINE_THREAD_STATE_FLAVOR with the result.
17035 * hurd/hurdfault.c (_hurdsig_fault_init): Call
17036 MACHINE_THREAD_STATE_FIX_NEW.
17037 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17038 too. Add original thread parameter.
17039
17040 2018-03-16 Joseph Myers <joseph@codesourcery.com>
17041
17042 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17043 Remove inline function.
17044
17045 * sysdeps/i386/fpu/libm-test-ulps: Update.
17046 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17047
17048 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
17049
17050 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17051 commit.
17052
17053 2018-03-15 Joseph Myers <joseph@codesourcery.com>
17054
17055 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17056 (__sincos_code): Remove define and undefine.
17057 [__FAST_MATH__] (__sincos): Remove inline function.
17058 [__FAST_MATH__] (__sincosf): Remove inline function.
17059 [__FAST_MATH__] (__sincosl): Remove inline function.
17060 (__atan2l): Remove inline functions.
17061 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17062 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17063 function.
17064 (floor): Remove inline function.
17065 (ceil): Likewise.
17066 [__FAST_MATH__] (__ldexp_code): Remove macro.
17067 [__FAST_MATH__] (ldexp): Remove inline function.
17068 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17069 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17070 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17071 [__USE_ISOC99] (__lrint_code): Remove macro.
17072 [__USE_ISOC99] (__llrint_code): Likewise.
17073 [__USE_ISOC99] (lrintf): Remove inline function.
17074 [__USE_ISOC99] (lrint): Likewise.
17075 [__USE_ISOC99] (lrintl): Likewise.
17076 [__USE_ISOC99] (llrint): Likewise.
17077 [__USE_ISOC99] (llrintf): Likewise.
17078 [__USE_ISOC99] (llrintl): Likewise.
17079
17080 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17081
17082 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17083 (__ieee754_sqrtf): Remove.
17084 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17085 (__ieee754_sqrtf): Remove.
17086 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17087 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17088 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17089 (__ieee754_sqrtf): Remove.
17090 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17091 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17092 (sqrtf): Remove.
17093 (sqrtl): Remove.
17094 (__ieee754_sqrt): Remove.
17095 (__ieee754_sqrtf): Remove.
17096 (__ieee754_sqrtl): Remove.
17097 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17098 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17099 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17100 (__ieee754_sqrtf): Remove.
17101 (__ieee754_sqrtl): Remove.
17102
17103 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17104
17105 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17106 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17107 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17108 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17109 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17110 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17111 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17112 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17113 Likewise.
17114 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17115 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17116 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17117 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17118 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17119 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17120 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17121 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17122 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17123 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17124 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17125 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17126 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17127 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17128 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17129 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17130 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17131 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17132 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17133 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17134 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17135 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17136 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17137 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17138 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17139 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17140 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17141 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17142 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17143 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17144 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17145 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17146 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17147 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17148 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17149 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17150 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17151 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17152 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17153 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17154
17155 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17156
17157 * include/math.h (sqrt): Declare with asm redirect.
17158 (sqrtf): Likewise.
17159 (sqrtl): Likewise.
17160 (sqrtf128): Likewise.
17161 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17162 nonlib and libnldbl with -fmath-errno.
17163 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17164 * math/w_sqrt_template.c: Likewise.
17165 * math/w_sqrtf_compat.c: Likewise.
17166 * math/w_sqrtl_compat.c: Likewise.
17167 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17168 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17169 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17170 complex.h.
17171
17172 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17173
17174 * benchtests/Makefile: Define _ISOMAC.
17175 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17176 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17177 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17178 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17179 * benchtests/bench-timing.h: Define attribute_hidden.
17180
17181 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
17182
17183 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17184 mov + lsr.
17185
17186 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17187
17188 [BZ #22963]
17189 * localedata/locales/cs_CZ (mon): Rename to...
17190 (alt_mon): This.
17191 (mon): Import from CLDR (genitive case).
17192
17193 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17194
17195 [BZ #22937]
17196 * localedata/locales/el_CY (abmon): Rename to...
17197 (ab_alt_mon): This.
17198 (abmon): Import from CLDR (abbreviated genitive case).
17199 * localedata/locales/el_GR (abmon): Rename to...
17200 (ab_alt_mon): This.
17201 (abmon): Import from CLDR (abbreviated genitive case).
17202
17203 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17204
17205 [BZ #22932]
17206 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17207
17208 2018-03-15 Robert Buj <robert.buj@gmail.com>
17209
17210 [BZ #22848]
17211 * localedata/locales/ca_ES (abmon): Rename to...
17212 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17213 (mon): Rename to...
17214 (alt_mon): This.
17215 (abmon): Import from CLDR (genitive case, month names preceded by
17216 "de" or "d’").
17217 (mon): Likewise.
17218 (abday): Synchronize with CLDR.
17219 (d_t_fmt): Likewise.
17220 (d_fmt): Likewise.
17221 (am_pm): Likewise.
17222
17223 (LC_TIME): Improve indentation.
17224 (LC_TELEPHONE): Likewise.
17225 (LC_NAME): Likewise.
17226 (LC_ADDRESS): Likewise.
17227
17228 2018-03-14 Joseph Myers <joseph@codesourcery.com>
17229
17230 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17231 (lrintf): Remove definitions used only with old GCC.
17232 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17233 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17234 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17235 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17236 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17237 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17238 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17239 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17240 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17241 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17242 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17243 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17244 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17245 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17246 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17247 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17248 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17249 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17250 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17251 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17252 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17253 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17254 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17255 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17256 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17257 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17258 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17259 [__FAST_MATH__] (__M_SQRT2): Remove macro.
17260
17261 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17262
17263 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17264 instruction to unbreak builds with binutils 2.26 and older.
17265
17266 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17267
17268 * sysdeps/aarch64/strncmp.S (count): New macro.
17269 (strncmp): Store misaligned length in SRC1 in COUNT.
17270 (mutual_align): Adjust.
17271 (misaligned8): Load dword at a time when it is safe.
17272
17273 2018-03-12 Zack Weinberg <zackw@panix.com>
17274
17275 [BZ #1190]
17276 [BZ #19476]
17277 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17278 if the _IO_EOF_SEEN bit is already set; update commentary.
17279 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17280 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17281
17282 * support/support_openpty.c, support/tty.h: New files.
17283 * support/Makefile (libsupport-routines): Add support_openpty.
17284
17285 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17286 New test cases.
17287 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17288 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17289
17290 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17291
17292 * po/pt_BR.po: Update translations.
17293
17294 2018-03-12 David Michael <fedora.dm0@gmail.com>
17295
17296 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17297 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17298 get a port to the startup server.
17299
17300 2018-03-11 Zack Weinberg <zackw@panix.com>
17301
17302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17303 before nldbl-compat.h.
17304
17305 2018-03-10 Zack Weinberg <zackw@panix.com>
17306
17307 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17308 math.h or math_private.h.
17309
17310 * sysdeps/alpha/fpu/s_isnan.c
17311 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17312 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17313 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17314 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17315 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17316 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17317 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17318 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17319 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17322 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17323 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17324 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17325 Include math_private.h.
17326
17327 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17328 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17329 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17330 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17331 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17332 * sysdeps/powerpc/power7/fpu/s_logb.c:
17333 Include math.h and math_private.h.
17334
17335 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17336 uses of $at in .set noat / .set at.
17337
17338 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17339
17340 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17341 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17342 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17343 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17344 Likewise.
17345
17346 2018-03-09 Florian Weimer <fweimer@redhat.com>
17347
17348 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17349 in comment.
17350
17351 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17352
17353 [BZ #22919]
17354 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17355 Add nop before __startcontext, add explaining comments.
17356
17357 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17358
17359 [BZ #22926]
17360 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17361 empty for __SPE__.
17362 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17363 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17364 Do not build hardware transactional code for __SPE__.
17365 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17366 (__lll_trylock_elision): Likewise.
17367 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17368 (__lll_unlock_elision): Likewise.
17369
17370 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17371 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17372 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17373 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17374 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17375 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17376 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17377 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17378 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17379 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17380 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17381 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17382 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17383 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17384 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17385 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17386 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17387 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17388 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17389 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17390 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17391 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17392 (__ASSUME_CLONE_BACKWARDS): Define.
17393 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17394 __clone2 if __NR_clone2 is defined.
17395 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17396 (__ASSUME_CLONE_BACKWARDS): Likewise.
17397 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17398 (__ASSUME_CLONE_BACKWARDS): Likewise.
17399 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17400 (__ASSUME_CLONE2): Likewise.
17401 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17402 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17403 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17404 variants and the define architecture can use.
17405 (__ASSUME_CLONE_DEFAULT): Define as default.
17406 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17407 (__ASSUME_CLONE_BACKWARDS): Likewise.
17408 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17409 (__ASSUME_CLONE_BACKWARDS): Likewise.
17410 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17411 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17412
17413 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17414
17415 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17416
17417 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17418 time.
17419
17420 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17421 (do_test_limit): Likewise.
17422
17423 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17424 for every implementation.
17425 (do_test): Likewise.
17426
17427 * benchtests/bench-strncmp.c: Convert output to json.
17428
17429 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17430
17431 * io/futimens.c: Add missing start-of-file descriptive comment.
17432 * io/utime.c: Likewise.
17433 * misc/futimesat.c: Likewise.
17434 * misc/utimes.c: Likewise.
17435 * sysdeps/mach/hurd/futimesat.c: Likewise.
17436 * sysdeps/mach/hurd/utimes.c: Likewise.
17437 * sysdeps/posix/utime.c: Likewise.
17438 * sysdeps/posix/utimes.c: Likewise.
17439 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17440 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17441 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17442 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17443
17444 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17445
17446 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17447 hurd_futimes.
17448 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17449 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17450 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17451 (__futimens): Move implementation to...
17452 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17453 utime_tvalue_from_tspec): ... new helper functions.
17454 (hurd_futimens): New function.
17455 * sysdeps/mach/hurd/futimesat.c: New file.
17456 * sysdeps/mach/hurd/utimensat.c: New file.
17457
17458 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17459
17460 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17461 UTIME_OMIT): New macros.
17462 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17463 before reverting to converting time spec to time value and calling
17464 __file_utimes.
17465 * sysdeps/mach/hurd/utime-helper.c: New file.
17466 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17467 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17468 reverting to utime_tvalue_from_tval and __file_utimes.
17469 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17470 (__lutimes): Just call hurd_futimens after lookup.
17471 * sysdeps/mach/hurd/utimes.c: Likewise.
17472
17473 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17474
17475 * bits/sigaction.h: Add include guard.
17476 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17477 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17478 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17479 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17480 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17481 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17482 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17483 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17484 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17485
17486 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17487
17488 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17489 -Wmaybe-uninitialized for -Os.
17490 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17491 this disabling.
17492
17493 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17494
17495 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17496 __INO_T_MATCHES_INO64_T is defined.
17497 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17498 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17499 of definition.
17500 * dirent/alphasort64.c: Likewise.
17501 * dirent/scandir.c: Likewise.
17502 * dirent/scandir64-tail.c: Likewise.
17503 * dirent/scandir64.c: Likewise.
17504 * dirent/scandirat.c: Likewise.
17505 * dirent/scandirat64.c: Likewise.
17506 * dirent/versionsort.c: Likewise.
17507 * dirent/versionsort64.c: Likewise.
17508 * include/dirent.h: Likewise.
17509
17510 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17511 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17512 for socketpair endpoint.
17513 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17514 WRITE_BUFFER_SIZE as buffer size for sending socket.
17515 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17516 issue on system where send is implemented with sendto syscall.
17517 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17518 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17519 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17520 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17521
17522 [BZ #21269]
17523 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17524 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17525 sa_restorer for vDSO case.
17526 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17527
17528 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17529
17530 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17531 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17532 * hurd/hurd/ioctl.h: Include <mach/port.h>
17533 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17534 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17535 <mach/mach_types.h> and <mach/message.h>.
17536 (headers): Move mach/param.h to bits/mach/param.h.
17537 * sysdeps/mach/i386/mach/param.h: Move file to ...
17538 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17539 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17540 of <mach/param.h>.
17541 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17542 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17543 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17544 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17545 trivial, for C++ conformity.
17546 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17547 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17548 Process mig output through $(migheadersed).
17549 * hurd/Makefile (migheadersed): Define variable.
17550 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17551 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17552 headers.
17553 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17554 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17555 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17556 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17557 <bits/types/sigset_t.h>.
17558 [!defined __USE_GNU]: Do not #error out.
17559 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17560 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17561 Include <stddef.h> and <bits/types/sigset_t.h>
17562 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17563 instead of sighandler_t.
17564 * stdlib/errno.h (error_t): Move definition to...
17565 * bits/types/error_t.h: ... new header.
17566 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17567 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17568 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17569 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17570 * hurd/hurd.h: Include <bits/types/error_t.h>
17571 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17572 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17573 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17574 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17575 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17576 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17577 * sysdeps/mach/hurd/futimens.c: New file.
17578
17579 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17580
17581 [BZ #22918]
17582 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17583 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17584 * nscd/gai.c (__nss_hosts_database): Readd definition.
17585 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17586 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17587 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17588
17589 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17590
17591 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17592 (ifunc_one): Likewise.
17593
17594 2018-03-01 DJ Delorie <dj@delorie.com>
17595
17596 [BZ #22342]
17597 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17598 key value.
17599
17600 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17601
17602 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17603 `match_pid' parameter.
17604 (td_ta_thr_iter): Update accordingly.
17605
17606 2018-03-01 Florian Weimer <fweimer@redhat.com>
17607
17608 * nptl/Makefile (install-lib-ldscripts): Remove.
17609 (install): Remove rule.
17610 ($(inst_libdir)/libpthread.so): Likewise.
17611
17612 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17613
17614 [BZ #22896]
17615 * localedata/locales/an_ES: update month and day names,
17616 improve d_fmt, improve postal_fmt, add country_post,
17617 add country_isbn
17618
17619 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17620
17621 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17622 Ukrainian instead of Bulgarian.
17623
17624 2018-03-01 Florian Weimer <fweimer@redhat.com>
17625
17626 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17627 reference.
17628
17629 2018-03-01 Florian Weimer <fweimer@redhat.com>
17630
17631 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17632 * nptl/Makefile (routines): Add pthread_atfork.
17633 (static-only-routines): Set to pthread_atfork.
17634 (libpthread-routines): Remove pthread_atfork.
17635 (libpthread-static-only-routines): Remove.
17636 (install): Update comment.
17637 (libpthread.so): Do not install libpthread_nonshared.a.
17638 (tests): Do not link with libpthread_nonshared.a.
17639 (generated): Remove libpthread_nonshared.a.
17640 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17641 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17642 with libpthread_nonshared.a.
17643
17644 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17645
17646 [BZ #22902]
17647 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17648 (libc_feholdexcept_setroundf128): New macro.
17649 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17650
17651 [BZ #15105]
17652 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17653 libc_hidden_def.
17654 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17655 * include/inttypes.h: New file.
17656
17657 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17658
17659 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17660 -Os in two more places.
17661
17662 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17663
17664 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17665 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17666 be sorted correctly at the moment because of a bug.
17667
17668 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17669
17670 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17671 treat ñ as a primary different character, sync the collation
17672 for Spanish with CLDR.
17673 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17674 * localedata/Makefile: Add new test files.
17675 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17676 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17677 collation order.
17678 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17679 * localedata/am_ET.UTF-8.in: New test file.
17680 * localedata/az_AZ.UTF-8.in: Likewise.
17681 * localedata/be_BY.UTF-8.in: Likewise.
17682 * localedata/ber_DZ.UTF-8.in: Likewise.
17683 * localedata/ber_MA.UTF-8.in: Likewise.
17684 * localedata/bg_BG.UTF-8.in: Likewise.
17685 * localedata/br_FR.UTF-8.in: Likewise.
17686 * localedata/cmn_TW.UTF-8.in: Likewise.
17687 * localedata/crh_UA.UTF-8.in: Likewise.
17688 * localedata/csb_PL.UTF-8.in: Likewise.
17689 * localedata/cv_RU.UTF-8.in: Likewise.
17690 * localedata/cy_GB.UTF-8.in: Likewise.
17691 * localedata/dz_BT.UTF-8.in: Likewise.
17692 * localedata/eo.UTF-8.in: Likewise.
17693 * localedata/es_ES.UTF-8.in: Likewise.
17694 * localedata/fa_IR.UTF-8.in: Likewise.
17695 * localedata/fi_FI.UTF-8.in: Likewise.
17696 * localedata/fil_PH.UTF-8.in: Likewise.
17697 * localedata/fur_IT.UTF-8.in: Likewise.
17698 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17699 * localedata/ha_NG.UTF-8.in: Likewise.
17700 * localedata/ig_NG.UTF-8.in: Likewise.
17701 * localedata/ik_CA.UTF-8.in: Likewise.
17702 * localedata/kk_KZ.UTF-8.in: Likewise.
17703 * localedata/ku_TR.UTF-8.in: Likewise.
17704 * localedata/ky_KG.UTF-8.in: Likewise.
17705 * localedata/ln_CD.UTF-8.in: Likewise.
17706 * localedata/mi_NZ.UTF-8.in: Likewise.
17707 * localedata/ml_IN.UTF-8.in: Likewise.
17708 * localedata/mn_MN.UTF-8.in: Likewise.
17709 * localedata/mr_IN.UTF-8.in: Likewise.
17710 * localedata/mt_MT.UTF-8.in: Likewise.
17711 * localedata/nb_NO.UTF-8.in: Likewise.
17712 * localedata/om_KE.UTF-8.in: Likewise.
17713 * localedata/os_RU.UTF-8.in: Likewise.
17714 * localedata/ps_AF.UTF-8.in: Likewise.
17715 * localedata/ro_RO.UTF-8.in: Likewise.
17716 * localedata/ru_RU.UTF-8.in: Likewise.
17717 * localedata/sc_IT.UTF-8.in: Likewise.
17718 * localedata/se_NO.UTF-8.in: Likewise.
17719 * localedata/sq_AL.UTF-8.in: Likewise.
17720 * localedata/sv_SE.UTF-8.in: Likewise.
17721 * localedata/szl_PL.UTF-8.in: Likewise.
17722 * localedata/tg_TJ.UTF-8.in: Likewise.
17723 * localedata/tk_TM.UTF-8.in: Likewise.
17724 * localedata/tt_RU.UTF-8.in: Likewise.
17725 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17726 * localedata/ug_CN.UTF-8.in: Likewise.
17727 * localedata/uz_UZ.UTF-8.in: Likewise.
17728 * localedata/vi_VN.UTF-8.in: Likewise.
17729 * localedata/yi_US.UTF-8.in: Likewise.
17730 * localedata/yo_NG.UTF-8.in: Likewise.
17731 * localedata/zh_CN.UTF-8.in: Likewise.
17732 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17733 file and fix bugs in the collation.
17734 * localedata/locales/az_AZ: Likewise.
17735 * localedata/locales/be_BY: Likewise.
17736 * localedata/locales/ber_DZ: Likewise.
17737 * localedata/locales/ber_MA: Likewise.
17738 * localedata/locales/bg_BG: Likewise.
17739 * localedata/locales/br_FR: Likewise.
17740 * localedata/locales/br_FR@euro: Likewise.
17741 * localedata/locales/ca_ES: Likewise.
17742 * localedata/locales/cns11643_stroke: Likewise.
17743 * localedata/locales/crh_UA: Likewise.
17744 * localedata/locales/cs_CZ: Likewise.
17745 * localedata/locales/csb_PL: Likewise.
17746 * localedata/locales/cv_RU: Likewise.
17747 * localedata/locales/cy_GB: Likewise.
17748 * localedata/locales/da_DK: Likewise.
17749 * localedata/locales/dz_BT: Likewise.
17750 * localedata/locales/en_CA: Likewise.
17751 * localedata/locales/eo: Likewise.
17752 * localedata/locales/es_CU: Likewise.
17753 * localedata/locales/es_EC: Likewise.
17754 * localedata/locales/es_ES: Likewise.
17755 * localedata/locales/es_US: Likewise.
17756 * localedata/locales/et_EE: Likewise.
17757 * localedata/locales/fa_IR: Likewise.
17758 * localedata/locales/fi_FI: Likewise.
17759 * localedata/locales/fil_PH: Likewise.
17760 * localedata/locales/fur_IT: Likewise.
17761 * localedata/locales/gez_ER@abegede: Likewise.
17762 * localedata/locales/ha_NG: Likewise.
17763 * localedata/locales/hr_HR: Likewise.
17764 * localedata/locales/hsb_DE: Likewise.
17765 * localedata/locales/hu_HU: Likewise.
17766 * localedata/locales/ig_NG: Likewise.
17767 * localedata/locales/ik_CA: Likewise.
17768 * localedata/locales/is_IS: Likewise.
17769 * localedata/locales/iso14651_t1_pinyin: Likewise.
17770 * localedata/locales/kk_KZ: Likewise.
17771 * localedata/locales/ku_TR: Likewise.
17772 * localedata/locales/ky_KG: Likewise.
17773 * localedata/locales/ln_CD: Likewise.
17774 * localedata/locales/lt_LT: Likewise.
17775 * localedata/locales/lv_LV: Likewise.
17776 * localedata/locales/mi_NZ: Likewise.
17777 * localedata/locales/ml_IN: Likewise.
17778 * localedata/locales/mn_MN: Likewise.
17779 * localedata/locales/mr_IN: Likewise.
17780 * localedata/locales/mt_MT: Likewise.
17781 * localedata/locales/nb_NO: Likewise.
17782 * localedata/locales/om_KE: Likewise.
17783 * localedata/locales/os_RU: Likewise.
17784 * localedata/locales/pl_PL: Likewise.
17785 * localedata/locales/ps_AF: Likewise.
17786 * localedata/locales/ro_RO: Likewise.
17787 * localedata/locales/ru_RU: Likewise.
17788 * localedata/locales/ru_UA: Likewise.
17789 * localedata/locales/sc_IT: Likewise.
17790 * localedata/locales/se_NO: Likewise.
17791 * localedata/locales/si_LK: Likewise.
17792 * localedata/locales/sq_AL: Likewise.
17793 * localedata/locales/sv_FI: Likewise.
17794 * localedata/locales/sv_FI@euro: Likewise.
17795 * localedata/locales/sv_SE: Likewise.
17796 * localedata/locales/szl_PL: Likewise.
17797 * localedata/locales/tg_TJ: Likewise.
17798 * localedata/locales/ti_ER: Likewise.
17799 * localedata/locales/tk_TM: Likewise.
17800 * localedata/locales/tl_PH: Likewise.
17801 * localedata/locales/tr_TR: Likewise.
17802 * localedata/locales/tt_RU: Likewise.
17803 * localedata/locales/tt_RU@iqtelif: Likewise.
17804 * localedata/locales/ug_CN: Likewise.
17805 * localedata/locales/uk_UA: Likewise.
17806 * localedata/locales/uz_UZ: Likewise.
17807 * localedata/locales/uz_UZ@cyrillic: Likewise.
17808 * localedata/locales/vi_VN: Likewise.
17809 * localedata/locales/yi_US: Likewise.
17810 * localedata/locales/yo_NG: Likewise.
17811
17812 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17813
17814 * gen-locales.mk: Make test files which contain @ modifiers in their
17815 name work.
17816 * localedata/gen-locale.sh: Likewise.
17817
17818 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17819
17820 * posix/tst-fnmatch.input: Fix results for range expressions
17821 for non C locales.
17822 * posix/tst-regexloc.c: Do not use a range expression for
17823 de_DE.ISO-8859-1 locale.
17824
17825 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17826
17827 * posix/bug-regex5.c: Fix test case because with the new
17828 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17829 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17830 file.
17831
17832 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17833
17834 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17835 downloaded from ISO, the collation order of @-. and space has changed.
17836 Therefore, this test file needed to be adapted.
17837 * localedata/fr_CA.UTF-8.in: Likewise.
17838 * localedata/fr_FR.UTF-8.in: Likewise.
17839 * localedata/uk_UA.UTF-8.in: Likewise.
17840
17841 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17842
17843 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17844 order of ȥ in the new iso14651_t1_common file.
17845 * localedata/pl_PL.UTF-8.in: Likewise.
17846
17847 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17848
17849 * localedata/locales/iso14651_t1_common: Add sections for various
17850 scripts to the iso14651_t1_common file.
17851
17852 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17853
17854 * localedata/locales/iso14651_t1_common: Use the code point of a
17855 character in the fourth collation level instead of IGNORE for all
17856 entries which have IGNORE on all 4 levels.
17857
17858 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17859
17860 * localedata/locales/iso14651_t1_common: Add some convenient collation
17861 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17862 rules similar to those in CLDR.
17863
17864 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17865
17866 * localedata/locales/iso14651_t1_common: The new version of this
17867 file downloaded from ISO contained several syntax errors which
17868 are fixed by this patch.
17869
17870 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17871
17872 * localedata/locales/iso14651_t1_common: replace all <U.....>
17873 with <U000.....> because glibc understands only 4 digit or 8 digit
17874
17875 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17876
17877 * localedata/locales/iso14651_t1_common: Necessary changes
17878 to make the file downloaded from ISO usable by glibc.
17879
17880 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17881
17882 [BZ #14095]
17883 * localedata/locales/iso14651_t1_common: Update file to
17884 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17885
17886 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17887
17888 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17889 of <nptl/pthreadP.h>
17890 (thread_attr_compare): Move function to...
17891 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17892 * sysdeps/nptl/timer_routines.h: ... new header.
17893 * sysdeps/mach/hurd/gai_misc.h: New file.
17894
17895 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17896
17897 * string/strcoll_l.c: Include <libc-diag.h>.
17898 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17899 declarations of seq1 and seq2.
17900
17901 [BZ #15105]
17902 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17903 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17904
17905 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17906
17907 [BZ #22433]
17908 [BZ #22807]
17909 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17910 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17911 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17912 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17913 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17914 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17915
17916 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17917
17918 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17919 macros used in __ptrace_request.
17920
17921 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17922
17923 [BZ #22792]
17924 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17925 to $(CC).
17926 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17927 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17928 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17929 <tcb-offsets.h>.
17930
17931 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17932
17933 [BZ #15105]
17934 * ctype/ctype.c (tolower): Use libc_hidden_def.
17935 (toupper): Likewise.
17936 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17937 [!_ISOMAC] (toupper): Likewise.
17938
17939 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17940
17941 * localedata/Makefile: Remove --quiet argument when
17942 installing locales
17943
17944 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17945
17946 [BZ #17438]
17947 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17948 in d_fmt.
17949 * localedata/locales/pt_PT (LC_TIME): likewise
17950
17951 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17952
17953 [BZ #22646]
17954 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17955 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17956 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17957
17958 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17959
17960 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17961
17962 * nptl/Makefile (routines): Remove unregister-atfork.
17963 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17964 (fork_handler_alloc): Remove function.
17965 (fork_handlers, fork_handler_init): New variables.
17966 (__fork_lock): Rename to atfork_lock.
17967 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17968 to use a dynamic array to add/remove atfork handlers.
17969 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17970 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17971 Remove declaration.
17972 (fork_handler): Remove next, refcntr, and need_signal member.
17973 (__run_fork_handler_type): New enum.
17974 (__run_fork_handlers): New prototype.
17975 * nptl/register-atfork.c: Remove file.
17976 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17977
17978 * sysdeps/nptl/nptl-signals.h: Move to ...
17979 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17980 comments.
17981 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17982 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17983 unnecessary check for SIGTIMER.
17984 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17985 remove unnecessary removal of SIGTIMER.
17986 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17987 include-signals.h rename.
17988 * nptl/pthreadP.h: Likewise.
17989 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17990 __is_internal_signal instead of __nptl_is_internal_signal.
17991
17992 2018-02-22 Andrew Waterman <andrew@sifive.com>
17993
17994 [BZ # 22884]
17995 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17996 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17997 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17998 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17999
18000 2018-02-22 DJ Delorie <dj@delorie.com>
18001
18002 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
18003
18004 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
18005
18006 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
18007 do_misaligned, not misaligned8.
18008
18009 2018-02-22 Steve Ellcey <sellcey@cavium.com>
18010
18011 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18012 Add memcpy_thunderx2.
18013 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18014 Increment to 4.
18015 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18016 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18017 and IS_THUNDERX2PA checks.
18018 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18019 Use macro to set name appropriately.
18020 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18021 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18022 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18023 New macro.
18024 (IS_THUNDERX2): New macro.
18025
18026 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
18027
18028 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18029
18030 2018-02-21 Zack Weinberg <zackw@panix.com>
18031
18032 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18033 Define here, unconditionally.
18034 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18035 * libio/libioP.h: Remove #if 0 blocks.
18036 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18037 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18038 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
18039
18040 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18041 Assume weak_alias is always defined.
18042
18043 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18044 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18045 Remove #if 0 and #ifdef TODO blocks.
18046 Assume text_set_element is always defined.
18047
18048 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18049 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18050 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18051
18052 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18053 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18054 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18055 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18056 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18057 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18058 Reformat bit flags for _flags field to make occupancy clearer.
18059 Update commentary.
18060 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18061 Keep definitions consistent with those in libio/libio.h.
18062
18063 * libio/libio.h (_IO_file_flags): Remove macro.
18064 All uses changed to _flags.
18065
18066 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18067 (__HAVE_COLUMN, _IO_BE): Don't define.
18068 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18069 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18070 * libio/libioP.h (EOF): Don't define.
18071 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18072 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18073 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18074 testing _IO_UNIFIED_JUMPTABLES.
18075
18076 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18077 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18078 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18079 (_IO_size_t): Delete; all uses changed to size_t.
18080 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18081 (_IO_off_t): Delete; all uses changed to off_t.
18082 (_IO_off64_t): Delete; all uses changed to off64_t.
18083 (_IO_pid_t): Delete; all uses changed to pid_t.
18084 (_IO_uid_t): Delete; all uses changed to uid_t.
18085 (_IO_wint_t): Delete; all uses changed to wint_t.
18086 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18087 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18088 (_IO_cookie_io_functions_t): Delete; all uses changed to
18089 cookie_io_functions_t.
18090 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18091 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18092 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18093 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18094
18095 * libio/iofopncook.c: Remove unnecessary forward declarations.
18096 * libio/iolibio.h: Correct outdated commentary.
18097 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18098 * stdio-common/fxprintf.c (__fxprintf_nocancel):
18099 Remove unnecessary casts.
18100 * stdio-common/getline.c: Use _IO_getdelim directly.
18101 Don't redefine ssize_t.
18102 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18103 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18104 Remove outdated comments.
18105 * stdio-common/vfscanf.c: Don't redefine va_list.
18106
18107 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18108 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18109 Remove preprocessor conditionals on _LIBC and __USE_GNU,
18110 which are always true, and __cplusplus, which is always false.
18111
18112 2018-02-21 Joseph Myers <joseph@codesourcery.com>
18113
18114 [BZ #15105]
18115 [BZ #19463]
18116 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18117 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18118 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
18119 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18120 libc_hidden_proto.
18121 [!_ISOMAC] (putc_unlocked): Likewise.
18122 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18123 define inline if [__USE_EXTERN_INLINES].
18124 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18125 putc_unlocked.
18126
18127 [BZ #15105]
18128 [BZ #19463]
18129 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18130 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18131 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18132 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18133 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18134 getc_unlocked.
18135 * time/tzfile.c (__tzfile_read): Likewise.
18136
18137 2018-02-21 Mike FABIAN <mfabian@redhat.com>
18138
18139 [BZ #22517]
18140 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18141
18142 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18143
18144 * io/fcntl.h: Fix a typo in a comment.
18145
18146 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18147
18148 [BZ #22862]
18149 * include/features.h: Add _ISOC11_SOURCE to test for whether to
18150 define _DEFAULT_SOURCE.
18151 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18152
18153 2018-02-21 Florian Weimer <fweimer@redhat.com>
18154
18155 [BZ #20890]
18156 * elf/cache.c (save_cache): Call fsync on temporary file before
18157 renaming it.
18158 (save_aux_cache): Call fdatasync on temporary file before renaming
18159 it.
18160
18161 2018-02-21 Florian Weimer <fweimer@redhat.com>
18162
18163 [BZ #22787]
18164 * include/caller.h: Remove file.
18165 * elf/dl-caller.c: Likewise.
18166 * elf/Makefile (dl-routines): Remove dl-caller.
18167 (shared-only-routines): Do not add dl-caller.
18168 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18169 __check_caller.
18170 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18171 member.
18172 (dl_open_worker): Do not call __check_caller.
18173 (_dl_open): Do not set caller_dl_open member.
18174 * elf/rtld.c (_rtld_global_ro): Do not initialize
18175 _dl_check_caller member.
18176 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18177 _dl_check_caller member.
18178 (_dl_check_caller): Remove declaration.
18179 * sysdeps/unix/sysv/linux/dl-execstack.c
18180 (_dl_make_stack_executable): Do not call __check_caller.
18181
18182 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18183
18184 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18185 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18186
18187 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18188
18189 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18190 description.
18191
18192 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18193
18194 [BZ #16335]
18195 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18196 of 199606L, 200112L, and 200809L.
18197 (_XOPEN_SOURCE): Document special values of 600 and 700.
18198 (_ISOC11_SOURCE): Document macro.
18199 (_ATFILE_SOURCE): Likewise.
18200 (_FORTIFY_SOURCE): Likewise.
18201
18202 2018-02-19 Joseph Myers <joseph@codesourcery.com>
18203
18204 [BZ #15105]
18205 [BZ #19463]
18206 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18207 and define as weak alias of __ferror_unlocked. Use
18208 libc_hidden_weak.
18209 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18210 libc_hidden_proto.
18211 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18212 function if [__USE_EXTERN_INLINES].
18213 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18214 ferror_unlocked.
18215
18216 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
18217
18218 [BZ #6889]
18219 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18220
18221 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18222
18223 [BZ #22818]
18224 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18225 the GLIBC_2.1 version.
18226
18227 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18228
18229 [BZ #21508]
18230 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18231 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18232 intl/tst-gettext-de.po from po/de.po by removing the
18233 POT-Creation-Date line.
18234 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18235 ../po/de.po.
18236 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18237 ../po/de.po.
18238
18239 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18240
18241 * mach/Makefile (headers): Add mach/param.h.
18242 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18243 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18244 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18245 (__ptsname_r): Move implementation to...
18246 (__ptsname_internal): ... new function. Add filling the STP
18247 structure.
18248
18249 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
18250
18251 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18252 idouble to 1 ULP.
18253
18254 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
18255
18256 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18257 syntax.
18258
18259 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
18260
18261 * nptl/Makefile (tst-mutex8-ENV): Delete.
18262 * nptl/tst-mutex8.c (check_type):
18263 Add runtime check if mutex will be elided.
18264
18265 2018-02-15 Joseph Myers <joseph@codesourcery.com>
18266
18267 [BZ #20980]
18268 [BZ #21234]
18269 * manual/install.texi (Configuring and compiling): Describe
18270 passing CC and CFLAGS on configure command line, not as
18271 environment variables. Use @code markup on those variables.
18272 Specify what options go in CC and what go in CFLAGS. Note the
18273 requirement to compile with optimization.
18274 * INSTALL: Regenerated.
18275
18276 [BZ #18124]
18277 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18278 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18279 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18280 __sigprocmask instead of sigprocmask.
18281 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18282 Likewise.
18283 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18284 __sigsetjmp and sigprocmask.
18285
18286 [BZ #15105]
18287 * include/argz.h (argz_next): Use libc_hidden_proto.
18288 (__argz_next): Likewise.
18289 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18290 (argz_next): Use libc_hidden_weak.
18291
18292 [BZ #15105]
18293 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18294 libc_hidden_proto.
18295 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18296 libc_hidden_def.
18297
18298 [BZ #15105]
18299 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18300 libc_hidden_proto.
18301 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18302
18303 [BZ #15105]
18304 [BZ #19463]
18305 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18306 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18307 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18308 (__feof_unlocked): New declaration, and inline function if
18309 [__USE_EXTERN_INLINES].
18310 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18311 instead of feof_unlocked.
18312 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18313 * nss/nsswitch.c (nss_parse_file): Likewise.
18314 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18315 Likewise.
18316 * time/getdate.c (__getdate_r): Likewise.
18317 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18318 Define as macro to call __feof_unlocked.
18319
18320 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18321
18322 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18323
18324 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18325
18326 * math/Makefile: Remove mpexp.c and mplog.c
18327 * sysdeps/i386/fpu/mpexp.c: Delete file.
18328 * sysdeps/i386/fpu/mplog.c: Likewise.
18329 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18330 * sysdeps/ia64/fpu/mplog.c: Likewise.
18331 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18332 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18333 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18334 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18335 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18336 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18337 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18338 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18339 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18340 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18341 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18342 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18343 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18344 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18345 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18346 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18347
18348 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18349
18350 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18351
18352 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18353
18354 * sysdeps/sh/libm-test-ulps: Update.
18355
18356 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18357
18358 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18359 idouble to 1 ULP.
18360
18361 2018-02-12 Zack Weinberg <zackw@panix.com>
18362
18363 [BZ #19239]
18364 * posix/sys/types.h: Don't include sys/sysmacros.h.
18365 * misc/sys/sysmacros.h: Remove the conditional deprecation
18366 warnings for the macros defined by this header.
18367
18368 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18369
18370 * manual/probes.texi: Remove slowexp probes.
18371 * math/Makefile: Remove slowexp.
18372 * sysdeps/generic/math_private.h (__slowexp): Remove.
18373 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18374 document error bounds.
18375 * sysdeps/i386/fpu/slowexp.c: Remove.
18376 * sysdeps/ia64/fpu/slowexp.c: Remove.
18377 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18378 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18379 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18380 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18381 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18382 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18383 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18384 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18385 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18386 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18387 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18388
18389 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18390
18391 [BZ #13932]
18392 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18393 * benchtests/pow-inputs: Update comment for slow path cases.
18394 * manual/probes.texi (slowpow_p10): Delete removed probe.
18395 (slowpow_p10): Likewise.
18396 * math/Makefile: Remove halfulp.c and slowpow.c.
18397 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18398 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18399 (__halfulp): Remove.
18400 (__slowpow): Remove.
18401 * sysdeps/i386/fpu/halfulp.c: Delete file.
18402 * sysdeps/i386/fpu/slowpow.c: Likewise.
18403 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18404 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18405 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18406 improve comments and add error analysis.
18407 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18408 (power1): Remove function:
18409 (log1): Remove error argument, add error analysis.
18410 (my_log2): Remove function.
18411 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18412 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18413 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18414 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18415 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18416 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18417 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18418 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18419 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18420 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18421 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18422 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18423 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18424 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18425
18426 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18427
18428 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18429 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18430
18431 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18432
18433 [BZ #22433]
18434 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18435 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18436 and PTRACE_SETHBPREGS.
18437
18438 2018-02-10 Zack Weinberg <zackw@panix.com>
18439
18440 [BZ #22830]
18441 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18442 correctly.
18443 * malloc/tst-malloc-stats-cancellation.c: New test case.
18444 * malloc/Makefile: Add new test case.
18445
18446 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18447
18448 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18449
18450 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18451
18452 * math/Makefile (libm-narrow-fns): Add add.
18453 (libm-test-funcs-narrow): Likewise.
18454 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18455 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18456 * math/gen-auto-libm-tests.c (test_functions): Add add.
18457 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18458 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18459 (NARROW_ADD_TRIVIAL): Likewise.
18460 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18461 macro.
18462 (__daddl): Likewise.
18463 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18464 dadd.
18465 (CFLAGS-nldbl-dadd.c): New variable.
18466 (CFLAGS-nldbl-fadd.c): Likewise.
18467 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18468 __nldbl_daddl.
18469 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18470 prototype.
18471 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18472 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18473 * math/auto-libm-test-in: Add tests of add.
18474 * math/auto-libm-test-out-narrow-add: New generated file.
18475 * math/libm-test-narrow-add.inc: New file.
18476 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18477 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18478 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18479 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18480 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18481 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18482 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18483 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18484 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18485 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18486 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18487 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18488 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18489 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18490 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18491 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18492 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18493 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18494 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18495 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18496 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18497 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18498 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18499 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18500 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18501 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18502 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18503 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18504 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18505 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18506 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18507 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18512 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18513 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18514 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18515 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18516 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18517 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18518 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18519 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18520 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18521 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18522
18523 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18524 (f128-pairs): New variable.
18525 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18526 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18527 to CFLAGS.
18528 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18529 Also make tests add $(f128-loader-link) to gnulib-tests.
18530
18531 2018-02-09 DJ Delorie <dj@redhat.com>
18532
18533 [BZ #22827]
18534 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18535 64-bit ELF type for 64-bit ELF objects.
18536
18537 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18538
18539 * math/libm-test-driver.c (snan_tests_arg): New variable.
18540 * math/libm-test-support.h (snan_tests_arg): New declaration.
18541 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18542
18543 * math/Makefile (test-type-pairs): New variable.
18544 (test-type-pairs-f64xf128-yes): Likewise.
18545 (tests): Add test-narrow-macros.
18546 (libm-test-funcs-narrow): New variable.
18547 (libm-test-c-narrow): Likewise.
18548 (generated): Add $(libm-test-c-narrow).
18549 (libm-tests-base-narrow): New variable.
18550 (libm-tests-narrow): Likewise.
18551 (libm-tests): Add $(libm-tests-narrow).
18552 (libm-tests-for-type): Handle $(libm-tests-narrow).
18553 (libm-test-c-narrow-obj): New variable.
18554 ($(libm-test-c-narrow-obj)): New rule.
18555 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18556 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18557 $(o-iterator) to set dependencies and CFLAGS.
18558 * math/gen-auto-libm-tests.c: Document use for narrowing
18559 functions.
18560 (output_for_one_input_case): Take argument NARROW.
18561 (generate_output): Likewise. Update call to
18562 output_for_one_input_case.
18563 (main): Take --narrow option. Update call to generate_output.
18564 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18565 (apply_lit): Update call to _apply_lit.
18566 (apply_arglit): New function.
18567 (parse_args): Handle "a" arguments.
18568 (parse_auto_input): Handle format names using ":".
18569 * math/README.libm-test: Document "a" parameter type.
18570 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18571 (ARG_TYPE_TRUE_MIN): Likewise.
18572 (ARG_TYPE_MAX): Likwise.
18573 (ARG_MIN_EXP): Likewise.
18574 (ARG_MAX_EXP): Likewise.
18575 (ARG_MANT_DIG): Likewise.
18576 (TEST_COND_arg_ibm128): Likewise.
18577 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18578 (TEST_COND_arg_fmt): New macro.
18579 (init_max_error): Update prototype.
18580 * math/libm-test-support.c (test_ibm128): New variable.
18581 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18582 instead of using [TEST_COND_ibm128] conditional.
18583 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18584 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18585 [TEST_NARROW] (TEST_MSG): New definition.
18586 (arg_plus_zero): New macro.
18587 (arg_minus_zero): Likewise.
18588 (arg_plus_infty): Likewise.
18589 (arg_minus_infty): Likewise.
18590 (arg_qnan_value_pl): Likewise.
18591 (arg_qnan_value): Likewise.
18592 (arg_snan_value_pl): Likewise.
18593 (arg_snan_value): Likewise.
18594 (arg_max_value): Likewise.
18595 (arg_min_value): Likewise.
18596 (arg_min_subnorm_value): Likewise.
18597 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18598 (RUN_TEST_LOOP_aa_f): New macro.
18599 (TEST_SUFF): New macro.
18600 (TEST_SUFF_STR): Likewise.
18601 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18602 (TEST_COND_any_ibm128): New macro.
18603 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18604 this_func. Update call to init_max_error.
18605 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18606 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18607 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18608 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18609 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18610 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18611 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18612 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18613 * math/test-math-vector.h (TEST_NARROW): Likewise.
18614 * math/test-arg-double.h: New file.
18615 * math/test-arg-float128.h: Likewise.
18616 * math/test-arg-float32x.h: Likewise.
18617 * math/test-arg-float64.h: Likewise.
18618 * math/test-arg-float64x.h: Likewise.
18619 * math/test-arg-ldouble.h: Likewise.
18620 * math/test-math-narrow.h: Likewise.
18621 * math/test-narrow-macros.c: Likewise.
18622 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18623 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18624 test-narrow-macros-ldbl-64.
18625 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18626
18627 * math/bits/mathcalls-narrow.h: New file.
18628 * include/bits/mathcalls-narrow.h: Likewise.
18629 * math/math-narrow.h: Likewise.
18630 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18631 (__MATHCALL_NARROW_ARGS_2): Likewise.
18632 (__MATHCALL_NARROW_ARGS_3): Likewise.
18633 (__MATHCALL_NARROW_NORMAL): Likewise.
18634 (__MATHCALL_NARROW_REDIR): Likewise.
18635 (__MATHCALL_NARROW): Likewise.
18636 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18637 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18638 defined.
18639 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18640 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18641 (libm-narrow-fns): New variable.
18642 (libm-narrow-types-basic): Likewise.
18643 (libm-narrow-types-ldouble-yes): Likewise.
18644 (libm-narrow-types-float128-yes): Likewise.
18645 (libm-narrow-types-float128-alias-yes): Likewise.
18646 (libm-narrow-types): Likewise.
18647 (libm-routines): Add narrowing functions.
18648 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18649 (libc_feholdexcept_setroundf128): New macro.
18650 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18651 * sysdeps/ieee754/float128/float128_private.h: Include
18652 <math/math-narrow.h>.
18653 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18654 Undefine and redefine.
18655 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18656 (libm_alias_float_ldouble): Undefine and redefine.
18657 (libm_alias_double_ldouble): Likewise.
18658
18659 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18660
18661 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18662
18663 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18664 FPCR/FPSR.
18665
18666 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18667
18668 * manual/creature.texi: Convert references to gcc.info to gcc.
18669 * manual/stdio.texi: Likewise.
18670 * manual/string.texi: Likewise.
18671
18672 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18673
18674 [BZ #17979]
18675 * posix/bits/types.h (__int_least8_t): New typedef.
18676 (__uint_least8_t): Likewise.
18677 (__int_least16_t): Likewise.
18678 (__uint_least16_t): Likewise.
18679 (__int_least32_t): Likewise.
18680 (__uint_least32_t): Likewise.
18681 (__int_least64_t): Likewise.
18682 (__uint_least64_t): Likewise.
18683 * sysdeps/generic/stdint.h (int_least8_t): Define using
18684 __int_least8_t.
18685 (int_least16_t): Define using __int_least16_t.
18686 (int_least32_t): Define using __int_least32_t.
18687 (int_least64_t): Define using __int_least64_t.
18688 (uint_least8_t): Define using __uint_least8_t.
18689 (uint_least16_t): Define using __uint_least16_t.
18690 (uint_least32_t): Define using __uint_least32_t.
18691 (uint_least64_t): Define using __uint_least64_t.
18692 * wcsmbs/uchar.h: Include <bits/types.h>.
18693 (char16_t): Define using __uint_least16_t conditional only on
18694 [!__USE_ISOCXX11].
18695 (char32_t): Define using __uint_least32_t conditional only on
18696 [!__USE_ISOCXX11].
18697 * wcsmbs/test-char-types.c: New file.
18698 * wcsmbs/Makefile (tests): Add test-char-types.
18699
18700 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18701 version to 4.0.1.
18702
18703 2018-02-07 Zack Weinberg <zackw@panix.com>
18704
18705 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18706 Delete all contents except for definitions of _G_HAVE_MMAP and
18707 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18708 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18709 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18710 change as above.
18711
18712 * libio/libio.h: Don't include bits/_G_config.h here.
18713 Include stddef.h with __need_wchar_t defined. Include
18714 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18715 Define _IO_iconv_t here, directly.
18716 Don't define _IO_HAVE_ST_BLKSIZE.
18717 * libio/libioP.h: Include _G_config.h here. Move include of
18718 shlib-compat.h up with rest of includes. Simplify conditionals
18719 controlling definition of _IO_JUMPS_OFFSET.
18720
18721 * csu/init.c: Remove always-true #if around entire file.
18722 Don't include stdio.h. Set _IO_stdin_used to hardwired
18723 constant 0x20001, and update commentary.
18724 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18725 Replace all uses of _G_va_list with __gnuc_va_list.
18726 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18727 instead of #if _IO_HAVE_ST_BLKSIZE.
18728 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18729 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18730 not #ifdef.
18731
18732 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18733 multiple-include guard to match.
18734 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18735 into this file.
18736 Remove preprocessor conditionals that are always true and/or
18737 redundant to other preprocessor conditionals in the same nest.
18738 Include shlib-compat.h unconditionally.
18739 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18740 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18741 defined after including stdio.h.
18742 Use __BEGIN_DECLS/__END_DECLS.
18743
18744 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18745 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18746 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18747
18748 2018-02-07 Zack Weinberg <zackw@panix.com>
18749
18750 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18751 New single-type headers split from _G_config.h.
18752 * libio/bits/types/cookie_io_functions_t.h
18753 * libio/bits/types/struct_FILE.h
18754 New single-type headers split from libio.h.
18755
18756 * libio/Makefile: Install the above new headers. Don't install
18757 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18758 bits/libio-ldbl.h.
18759 * libio/_G_config.h, libio/libio.h: Delete file.
18760
18761 * libio/bits/libio.h: Remove improper-inclusion guard.
18762 Include stdio.h and don't repeat anything that it does.
18763 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18764 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18765 __io_read_fn as cookie_read_function_t,
18766 __io_write_fn as cookie_write_function_t,
18767 __io_seek_fn as cookie_seek_function_t,
18768 __io_close_fn as cookie_close_function_t,
18769 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18770 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18771 here, in the "compatibility defines" section. Remove an #if 0
18772 block. Use the "body" macros from bits/types/struct_FILE.h to
18773 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18774 and _IO_ferror_unlocked.
18775 Move prototypes of __uflow and __overflow...
18776
18777 * libio/stdio.h: ...here. Don't include bits/libio.h.
18778 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18779 directly from stdarg.h. Include bits/types/__fpos_t.h,
18780 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18781 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18782 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18783 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18784 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18785 __ssize_t, not _IO_ssize_t. Unconditionally define
18786 BUFSIZ as 8192 and EOF as (-1).
18787
18788 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18789 macros from bits/types/struct_FILE.h instead of _IO_* macros
18790 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18791 instead of _IO_ssize_t.
18792 * libio/bits/stdio2.h: Similarly.
18793
18794 * libio/iolibio.h: Add multiple-include guard.
18795 Include bits/libio.h after stdio.h.
18796 * libio/libioP.h: Add multiple-include guard.
18797 Include stdio.h and bits/libio.h before iolibio.h.
18798
18799 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18800 * include/bits/types/cookie_io_functions_t.h
18801 * include/bits/types/struct_FILE.h: New wrappers.
18802
18803 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18804 Get definitions of _G_fpos_t and _G_fpos64_t from
18805 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18806 respectively. Remove improper-inclusion guards.
18807
18808 * conform/data/stdio.h-data: Update expectations of va_list.
18809 * scripts/check-installed-headers.sh: Remove special case for
18810 libio.h and _G_config.h.
18811
18812 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18813
18814 [BZ #15105]
18815 [BZ #19463]
18816 * include/sys/sysmacros.h [!_ISOMAC]
18817 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18818 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18819 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18820 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18821 libc_hidden_proto.
18822 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18823 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18824 Likewise.
18825 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18826 Undefine and redefine to add use __gnu_dev_ prefix.
18827 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18828 Likewise.
18829 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18830 and define as hidden inline function.
18831 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18832 Likewise.
18833 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18834 Likewise.
18835 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18836 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18837 (gnu_dev_minor): Likewise.
18838 (gnu_dev_makedev): Likewise.
18839 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18840 makedev.
18841 * posix/wordexp.c (exec_comm_child): Likewise.
18842 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18843 instead of minor and __gnu_dev_major instead of major.
18844 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18845 __gnu_dev_major instead of major.
18846 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18847 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18848 instead of gnu_dev_minor.
18849 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18850 (SLAVE_P): Likewise.
18851 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18852 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18853 instead of major.
18854
18855 [BZ #21313]
18856 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18857 in another place.
18858 * locale/weightwc.h (findidx): Likewise.
18859
18860 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18861
18862 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18863 (slowlog_inexact): Likewise
18864 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18865 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18866
18867 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18868
18869 [BZ #22797]
18870 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18871 missing second underscore to parameter name.
18872
18873 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18874
18875 [BZ #14508]
18876 [BZ #15512]
18877 [BZ #17082]
18878 [BZ #20530]
18879 * bits/byteswap.h: Update file comment. Do not include
18880 <bits/byteswap-16.h>.
18881 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18882 constant.
18883 (__bswap_16): Define as inline function.
18884 (__bswap_constant_32): Reformat definition.
18885 (__bswap_32): Always define as inline function, not macro, using
18886 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18887 otherwise __bswap_constant_32.
18888 (__bswap_constant_64): Reformat definition. Do not use
18889 __extension__ here.
18890 (__bswap_64): Always define as inline function, not macro. Use
18891 __extension__ on function definition. Use __builtin_bswap64 if
18892 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18893 * string/test-endian-file-scope.c: New file.
18894 * string/test-endian-sign-conversion.c: Likewise.
18895 * string/Makefile (headers): Remove bits/byteswap-16.h.
18896 (tests): Add test-endian-file-scope and
18897 test-endian-sign-conversion.
18898 (CFLAGS-test-endian-sign-conversion.c): New variable.
18899 * bits/byteswap-16.h: Remove file.
18900 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18901 * sysdeps/ia64/bits/byteswap.h: Likewise.
18902 * sysdeps/m68k/bits/byteswap.h: Likewise.
18903 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18904 * sysdeps/s390/bits/byteswap.h: Likewise.
18905 * sysdeps/tile/bits/byteswap.h: Likewise.
18906 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18907 * sysdeps/x86/bits/byteswap.h: Likewise.
18908
18909 [BZ #17721]
18910 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18911 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18912 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18913 199901L] (__restrict): Define to restrict.
18914
18915 [BZ #19667]
18916 * string/testcopy.c: Include <support/support.h>. Do not include
18917 <malloc.h>. Use <support/test-driver.c>.
18918 (main): Rename to do_test. Make static. Use xmalloc instead of
18919 malloc.
18920
18921 [BZ #13575]
18922 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18923 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18924 (SSIZE_MAX): Define to INT_MAX.
18925 * posix/test-ssize-max.c: New file.
18926 * posix/Makefile (tests): Add test-ssize-max.
18927
18928 [BZ #19668]
18929 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18930 <support/support.h>. Do not include <malloc.h>.
18931 (query_auxv): Use xmalloc instead of malloc.
18932
18933 [BZ #14553]
18934 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18935 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18936 instead of loff_t.
18937
18938 2018-02-06 Florian Weimer <fweimer@redhat.com>
18939
18940 [BZ #18023]
18941 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18942 Use scratch_buffer instead of extend_alloca.
18943
18944 2018-02-06 Zack Weinberg <zackw@panix.com>
18945
18946 * libio/stdio.h: Don't define getc or putc as macros.
18947 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18948 not _IO_getc and _IO_putc.
18949
18950 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18951 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18952
18953 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18954
18955 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18956 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18957
18958 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18959
18960 [BZ #14890]
18961 * elf/elf.h (NT_PRFPREG): New macro.
18962 (NT_S390_VXRS_LOW): Likewise.
18963 (NT_S390_VXRS_HIGH): Likewise.
18964 (NT_S390_GS_CB): Likewise.
18965 (NT_S390_GS_BC): Likewise.
18966 (NT_S390_RI_CB): Likewise.
18967
18968 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18969 (MAP_SYNC): New macro.
18970 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18971 Likewise.
18972 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18973 (MAP_SYNC): Likewise.
18974 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18975 (MAP_SYNC): Likewise.
18976 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18977 (MAP_SYNC): Likewise.
18978 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18979 (MAP_SYNC): Likewise.
18980 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18981 (MAP_SYNC): Likewise.
18982 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18983 (MAP_SYNC): Likewise.
18984 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18985 Likewise.
18986 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18987 Likewise.
18988
18989 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18990 (MAP_SHARED_VALIDATE): New macro.
18991 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18992 (MAP_SHARED_VALIDATE): Likewise.
18993
18994 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18995
18996 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18997 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18998 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18999
19000 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19001
19002 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
19003 (DT_NUM): Updated to 35.
19004
19005 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19006
19007 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
19008 __builtin_expect with __glibc_likely and __glibc_unlikely.
19009 (elf_machine_rela): Likewise.
19010 (elf_machine_lazy_rel): Likewise.
19011
19012 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19013
19014 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19015 __builtin_expect with __glibc_likely and __glibc_unlikely.
19016 (elf_machine_lazy_rel): Likewise.
19017
19018 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19019
19020 [BZ #22638]
19021 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19022 SHARED.
19023 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19024
19025 2018-02-05 Andreas Schwab <schwab@suse.de>
19026
19027 [BZ #22761]
19028 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19029 string.
19030
19031 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
19032
19033 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19034 not check against PTHREAD_STACK_MIN.
19035
19036 2018-02-02 Sean McKean <smckean83@gmail.com>
19037
19038 [BZ #22735]
19039 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19040
19041 2018-02-02 Florian Weimer <fweimer@redhat.com>
19042
19043 [BZ #22753]
19044 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19045 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19046 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19047 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19048 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19049 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19050 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19051 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19052 * manual/llio.texi (Scatter-Gather): Mention offset -1.
19053 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19054 * misc/tst-preadvwritev2.c (do_test): Call it.
19055 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19056
19057 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
19058
19059 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19060
19061 * benchtests/bench-memcmp.c: Print json instead of plain text.
19062
19063 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19064 every test run.
19065
19066 2018-02-01 Joseph Myers <joseph@codesourcery.com>
19067
19068 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19069 version to 4.15.
19070 (s390_sthyi): New syscall.
19071
19072 * sysdeps/generic/ldbl-classify-compat.h: New file.
19073 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19074 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19075 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19076 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19077 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19078 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19079 * sysdeps/ieee754/dbl-64/s_finite.c: Include
19080 <ldbl-classify-compat.h>.
19081 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19082 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19083 <ldbl-classify-compat.h>.
19084 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19085 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19086 <ldbl-classify-compat.h>.
19087 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19088 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19089 <ldbl-classify-compat.h>.
19090 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19091 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19092 <ldbl-classify-compat.h>.
19093 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19094 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19095 <ldbl-classify-compat.h>.
19096 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19097 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19098 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19099 * sysdeps/m68k/coldfire/math_private.h: Remove file.
19100 * sysdeps/microblaze/math_private.h: Likewise.
19101 * sysdeps/nios2/math_private.h: Likewise.
19102 * sysdeps/sh/math_private.h: Likewise.
19103
19104 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19105 * sysdeps/m68k/coldfire/math_private.h: ... here.
19106 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19107 * sysdeps/tile/math_private.h: Likewise.
19108 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19109 Remove macro.
19110 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19111 Likewise.
19112
19113 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19114 Remove macro.
19115 (libc_fetestexcept): Likewise.
19116 (libc_feupdateenv_test): Likewise.
19117 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19118 (libc_fetestexcept): Likewise.
19119 (libc_feupdateenv_test): Likewise.
19120 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19121 (libc_fetestexcept): Likewise.
19122 (libc_feupdateenv_test): Likewise.
19123 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19124 (libc_fetestexcept): Likewise.
19125 (libc_feupdateenv_test): Likewise.
19126
19127 * sysdeps/generic/math_private.h
19128 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19129 New inline function.
19130 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19131 Likewise.
19132
19133 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19134 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19135 * sysdeps/generic/math_private.h
19136 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19137 inline function.
19138 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19139 Likewise.
19140 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19141 Likewise.
19142 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19143 Likewise.
19144 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19145 Likewise.
19146 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19147 Likewise.
19148 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19149 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19150 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19151 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19152 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19153 (__fegetenv): Likewise.
19154 (fesetenv): Likewise.
19155 (__fesetenv): Likewise.
19156 (feupdateenv): Likewise.
19157 (__feupdateenv): Likewise.
19158 (fegetround): Likewise.
19159 (__fegetround): Likewise.
19160 (fesetround): Likewise.
19161 (__fesetround): Likewise.
19162
19163 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19164 (feraiseexcept): New macro.
19165 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19166 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19167 Remove macro.
19168 (__feraiseexcept): Likewise.
19169 (feclearexcept): Likewise.
19170 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19171 (__feraiseexcept): Likewise.
19172 (feclearexcept): Likewise.
19173 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19174 (__feraiseexcept): Likewise.
19175 (feclearexcept): Likewise.
19176 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19177 (__feraiseexcept): Likewise.
19178 (feclearexcept): Likewise.
19179 (fetestexcept): Likewise.
19180
19181 * sysdeps/m68k/coldfire/math-tests.h: New file.
19182
19183 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19184 * sysdeps/m68k/bits/fenv.h: ... here.
19185 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19186 not define.
19187 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19188 Likewise.
19189 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19190 Likewise.
19191 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19192 Likewise.
19193 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19194 Likewise.
19195 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19196 Define to 0.
19197 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19198 (__FE_UNDEFINED): New enum constant.
19199 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19200 Do not define.
19201 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19202 Likewise.
19203 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19204 Likewise.
19205 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19206 to match generic bits/fenv.h.
19207 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19208 Do not define.
19209
19210 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19211 packed on bits.
19212 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19213 * soft-fp/half.h (union _FP_UNION_H): Likewise.
19214 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19215 * soft-fp/single.h (union _FP_UNION_S): Likewise.
19216
19217 2018-02-01 Carlos O'Donell <carlos@redhat.com>
19218 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
19219 Joseph Myers <joseph@codesourcery.com>
19220
19221 [BZ #21314]
19222 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19223 (__log1p): Disable -Wmaybe-uninitialized for -Os around
19224 computation using c.
19225 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19226 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19227 computation using c.
19228
19229 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19230
19231 * version.h (RELEASE): Set to "development".
19232 (VERSION): Set to "2.27.9000".
19233 * NEWS (2.28): New section.
19234
19235 * version.h (RELEASE): Set to "stable".
19236 (VERSION): Set to "2.27".
19237 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19238
19239 * NEWS: Add the list of bugs fixed in 2.27.
19240
19241 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19242
19243 * stdlib/test-atexit-race-common.c (do_test): Check stack size
19244 against PTHREAD_STACK_MIN.
19245
19246 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19247
19248 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19249 New entries.
19250 (Rafal Luzynski, Andreas Schwab): Update.
19251
19252 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
19253
19254 [BZ #10871]
19255 * NEWS: List the languages which actually use the alternative
19256 months feature in this release. Also explain that "alt_mon" and
19257 "ab_alt_mon" are optional.
19258
19259 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
19260
19261 [BZ #22765]
19262 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19263
19264 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
19265
19266 * manual/install.texi (Tools for Compilation): Update the newest
19267 versions of gcc, binutils, texinfo, gawk, bison, and sed.
19268 * INSTALL: Regenerated.
19269
19270 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
19271
19272 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19273 instead of __builtin_expect.
19274
19275 2018-01-30 Florian Weimer <fweimer@redhat.com>
19276
19277 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19278 data.
19279 * nss/tst-nss-getpwent.c (do_test): Likewise.
19280
19281 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
19282
19283 [BZ #10871]
19284 * localedata/locales/hr_HR (mon): Rename to...
19285 (alt_mon): This.
19286 (mon): Import from CLDR (genitive case).
19287 (d_t_fmt): Update the comment.
19288
19289 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19290
19291 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19292 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19293 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19294
19295 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19296
19297 * mach/Versions: Fix version when __mach_host_self_ was added.
19298 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19299 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19300 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19301 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19302 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19303 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19304 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19305 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19306 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19307 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19308 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19309 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19310 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19311 || to respect codestyle.
19312 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19313 (do_test_bz20181): Rename accordingly.
19314 * malloc/malloc.c: Include <assert.h>.
19315 (assert): Do not define.
19316 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19317 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19318 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19319 * sysdeps/mach/hurd/hp-timing.h: New file.
19320 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19321
19322 2018-01-29 Darius Rad <darius@bluespec.com>
19323
19324 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19325
19326 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19327
19328 * sysdeps/init_array/crti.S (.section .init_array): Add
19329 PREINIT_FUNCTION when defined.
19330 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19331 * config.h.in: Regenerate.
19332 * manual/platform.texi: Add RISC-V documenation for
19333 __riscv_flush_icache.
19334 * sysdeps/riscv/__longjmp.S: New file.
19335 * sysdeps/riscv/backtrace.c: Likewise.
19336 * sysdeps/riscv/bits/endian.h: Likewise.
19337 * sysdeps/riscv/bits/setjmp.h: Likewise.
19338 * sysdeps/riscv/bits/wordsize.h: Likewise.
19339 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19340 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19341 * sysdeps/riscv/dl-trampoline.S: Likewise.
19342 * sysdeps/riscv/gccframe.h: Likewise.
19343 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19344 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19345 * sysdeps/riscv/machine-gmon.h: Likewise.
19346 * sysdeps/riscv/memusage.h: Likewise.
19347 * sysdeps/riscv/setjmp.S: Likewise.
19348 * sysdeps/riscv/sys/asm.h: Likewise.
19349 * sysdeps/riscv/tls-macros.h: Likewise.
19350 * sysdeps/riscv/dl-tls.h: New file.
19351 * sysdeps/riscv/libc-tls.c: Likewise.
19352 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19353 * sysdeps/riscv/nptl/tls.h: Likewise.
19354 * sysdeps/riscv/stackinfo.h: Likewise.
19355 * sysdeps/riscv/bits/fenv.h: New file.
19356 * sysdeps/riscv/e_sqrtl.c: Likewise.
19357 * sysdeps/riscv/fpu_control.h: Likewise.
19358 * sysdeps/riscv/math-tests.h: Likewise.
19359 * sysdeps/riscv/nofpu/Implies: Likewise.
19360 * sysdeps/riscv/sfp-machine.h: Likewise.
19361 * sysdeps/riscv/tininess.h: Likewise.
19362 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19363 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19364 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19365 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19366 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19367 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19368 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19369 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19370 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19371 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19372 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19373 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19374 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19375 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19376 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19377 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19378 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19379 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19380 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19381 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19382 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19383 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19384 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19385 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19386 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19387 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19388 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19389 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19390 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19391 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19392 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19393 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19394 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19395 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19396 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19397 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19398 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19399 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19400 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19401 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19402 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19403 * sysdeps/riscv/rvf/math_private.h: Likewise.
19404 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19405 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19406 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19407 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19408 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19409 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19410 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19411 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19412 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19413 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19414 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19415 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19416 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19417 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19418 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19419 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19420 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19421 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19422 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19423 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19424 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19425 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19426 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19427 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19428 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19429 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19430 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19431 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19432 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19433 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19434 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19435 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19436 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19437 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19438 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19439 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19440 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19441 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19442 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19443 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19444 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19445 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19446 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19447 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19448 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19449 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19450 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19451 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19452 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19453 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19454 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19455 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19456 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19457 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19458 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19459 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19460 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19461 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19462 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19463 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19464 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19465 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19466 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19467 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19469 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19470 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19471 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19472 * sysdeps/riscv/Implies: New file.
19473 * sysdeps/riscv/Makefile: Likewise.
19474 * sysdeps/riscv/configure: Likewise.
19475 * sysdeps/riscv/configure.ac: Likewise.
19476 * sysdeps/riscv/nptl/Makefile: Likewise.
19477 * sysdeps/riscv/preconfigure: Likewise.
19478 * sysdeps/riscv/rv64/Implies-after: Likewise.
19479 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19480 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19481 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19482 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19483 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19484 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19485 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19486 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19487 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19488 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19489 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19490 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19491 (Config): Likewise.
19492
19493 2018-01-29 Florian Weimer <fweimer@redhat.com>
19494
19495 [BZ #22701]
19496 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19497 libnsl_hidden_proto.
19498 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19499 libnsl_hidden_proto.
19500 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19501 * nis/Makefile (libnsl-routines): Add nss-default only for
19502 build-obsolete-nsl.
19503 * nis/nis_defaults.c (__nis_default_ttl): Add
19504 libnsl_hidden_nolink_def.
19505 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19506 declaration.
19507 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19508 * nis/ypclnt.c (yp_maplist): Likewise.
19509
19510 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19511
19512 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19513 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19514
19515 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19516
19517 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19518 clean -dxfq for git updates when replacing sources.
19519
19520 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19521 --disable-libcilkrts unconditionally, not just for the final GCC
19522 build for Hurd.
19523
19524 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19525 version to 4.15.
19526
19527 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19528
19529 [BZ #10871]
19530 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19531 case).
19532
19533 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19534
19535 [BZ #10871]
19536 * localedata/locales/be_BY (mon): Rename to...
19537 (alt_mon): This, then synchronize with CLDR (nominative case).
19538 (abmon): Rename to...
19539 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19540 (mon): Import from CLDR (genitive case).
19541 (abmon): Likewise.
19542 * localedata/locales/be_BY@latin (mon): Rename to...
19543 (alt_mon): This.
19544 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19545
19546 * localedata/locales/be_BY@latin (lang_name): Reworded to
19547 "biełaruskaja mova".
19548
19549 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19550
19551 [BZ #10871]
19552 * localedata/locales/el_CY (mon): Renamed to...
19553 (alt_mon): This.
19554 (mon): Import from CLDR (genitive case).
19555 * localedata/locales/el_GR: Likewise.
19556
19557 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19558
19559 [BZ #10871]
19560 * localedata/locales/ru_RU (mon): Rename to...
19561 (alt_mon): This.
19562 (abmon): Rename to...
19563 (ab_alt_mon): This.
19564 (mon): Import from CLDR (genitive case).
19565 (abmon): Copy from the old content except the 5th month which is
19566 now in the genitive case, even when abbreviated.
19567 * localedata/locales/ru_UA: Likewise.
19568 * time/tst-strptime.c (day_tests): Add an actual example of
19569 a difference between %b and %Ob in Russian.
19570
19571 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19572
19573 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19574 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19575 a `c' variable.
19576 * resolv/res-close.c: Include <stdlib.h>.
19577 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19578 <sys/wait.h>, <time.h>, <sys/uio.h>.
19579 (NOT_CANCEL_H): Add inclusion guard.
19580 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19581 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19582 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19583 return 0.
19584 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19585 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19586 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19587 instead of void *.
19588 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19589 timer_ptr2id to cast struct timer_node * to void *.
19590 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19591 --disable-libcilkrts to gcc configure.
19592 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19593 and make them the default for now.
19594 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19595 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19596 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19597 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19598 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19599 MACH_IPC_COMPAT.
19600 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19601 __task_terminate would ever return successfully.
19602 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19603 to global scope.
19604 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19605 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19606 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19607 critical section to make code simpler and avoid warning.
19608 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19609 critical section to make code simpler and avoid warning.
19610 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19611 const char * instead of char *.
19612 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19613 __hurd_file_name_split, hurd_file_name_split,
19614 __hurd_directory_name_split, hurd_directory_name_split,
19615 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19616 hurd_file_name_path_lookup): Make lookup function parameter take a
19617 const char *name instead of char *name.
19618 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19619 __hurd_directory_name_split): Likewise.
19620 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19621 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19622 * sysdeps/mach/hurd/check_native.c: New file.
19623 * sysdeps/mach/hurd/check_pf.c: New file.
19624 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19625 (__freeifaddrs): Define macro to freeifaddrs.
19626 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19627 * sysdeps/mach/libmachuser.abilist: New file.
19628 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19629 (do_test_bz20181): Rename accordingly.
19630 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19631 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19632 <sys/mount.h>.
19633 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19634 version only if __USE_EXTERN_INLINES is defined.
19635 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19636 __hurd_sockfail): Likewise.
19637 (_hurd_fd_get): Always declare functions, and provide inline versions
19638 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19639 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19640 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19641 _hurd_port_set): Always declare functions, and provide inline versions
19642 only if __USE_EXTERN_INLINES and _LIBC are defined and
19643 IS_IN(libc).
19644 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19645 _hurd_critical_section_unlock): Likewise.
19646 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19647 * __hurd_threadvar_location): Likewise.
19648 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19649 _hurd_userlink_clear): Likewise.
19650 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19651 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19652 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19653 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19654 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19655 __spin_lock_locked): Likewise.
19656 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19657 __spin_lock_locked): Likewise.
19658 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19659 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19660 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19661 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19662 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19663 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19664 _POSIX_NO_TRUNC): Define to 0.
19665 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19666 check size against PTHREAD_STACK_MIN.
19667 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19668 IS_IN(libpthread)]: Include <sigsetops.h>.
19669 * mach/Makefile (user-interfaces): Add mach/gnumach.
19670 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19671 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19672 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19673 instead of invalid -1.
19674 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19675 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19676 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19677 <net/ppp_defs.h>.
19678
19679 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19680
19681 * hurd/fcntl-internal.h: New file.
19682
19683 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19684
19685 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19686
19687 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19688
19689 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19690
19691 [BZ #22701]
19692 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19693 Build only shared objects.
19694
19695 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19696
19697 * README: Update for hppa.
19698
19699 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19700
19701 * sysdeps/sparc/fpu/libm-test-ulps: Update
19702 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19703
19704 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19705
19706 Revert:
19707
19708 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19709
19710 [BZ #22563]
19711 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19712 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19713 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19714 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19715 to feature_1.
19716
19717 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19718
19719 [BZ #22563]
19720 * bits/types/__cancel_jmp_buf_tag.h: New file.
19721 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19722 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19723 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19724 * nptl/Makefile (headers): Add
19725 bits/types/__cancel_jmp_buf_tag.h.
19726 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19727 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19728 * sysdeps/nptl/pthread.h: Include
19729 <bits/types/__cancel_jmp_buf_tag.h>.
19730 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19731 __cancel_jmp_buf.
19732 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19733
19734 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19735
19736 [BZ #10871]
19737 * localedata/locales/uk_UA (mon): Renamed to...
19738 (alt_mon): This.
19739 (alt_digits): "0" removed and then renamed to...
19740 (mon): This.
19741 (date_fmt): Definition changed not to use the alternative
19742 digits hack.
19743
19744 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19745
19746 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19747 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19748 * elf/elf.h (EF_RISCV_RVC): New define.
19749 (EF_RISCV_FLOAT_ABI): Likewise.
19750 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19751 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19752 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19753 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19754 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19755 define.
19756 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19757
19758 2018-01-25 Andreas Schwab <schwab@suse.de>
19759
19760 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19761 single quotes.
19762 * sysdeps/gnu/configure: Regenerate.
19763 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19764 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19766 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19767 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19768 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19769 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19770 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19771
19772 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19773
19774 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19775 URL, and run autoconf, make it the default for now.
19776
19777 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19778
19779 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19780 soft-float ColdFire configuration.
19781
19782 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19783 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19784 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19785
19786 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19787 MicroBlaze file.
19788
19789 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19790 ....
19791 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19792 ... here.
19793 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19794 New file.
19795
19796 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19797 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19798 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19799 file.
19800
19801 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19802
19803 [BZ #22742]
19804 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19805 Rename to __reserved and add comment.
19806 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19807 Rename to __reserved.
19808
19809 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19810
19811 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19812 i686-gnu configurations.
19813 (Context.run_builds): Include mig, gnumach and hurd in components
19814 considered.
19815 (Context.checkout): Add mig, gnumach and hurd to components.
19816 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19817 hurd.
19818 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19819 (Config.build): Install gnumach headers, build mig and install
19820 hurd headers for 'gnu' OS.
19821 (Config.install_gnumach_headers): New function.
19822 (Config.install_hurd_headers): Likewise.
19823 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19824 when building for 'gnu' OS.
19825
19826 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19827
19828 * manual/tunables.texi (Hardware Capability Tunables): Fix
19829 spelling.
19830
19831 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19832
19833 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19834 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19835 (ALTMON_11, ALTMON_12): Improve documentation.
19836 * manual/time.texi (strftime): Likewise.
19837
19838 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19839
19840 [BZ #10871]
19841 * localedata/locales/pl_PL: Alternative month names added,
19842 primary month names are genitive now.
19843 * time/tst-strptime.c (day_tests): Actually use a genitive case
19844 of a month name in Polish language.
19845
19846 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19847
19848 [BZ #10871]
19849 * manual/locale.texi: Document ALTMON_1..12 constants for
19850 nl_langinfo. Specify when to use ALTMON instead of MON.
19851 * manual/time.texi (strftime, strptime): Document GNU extension
19852 permitting O modifier with %B and %b. Specify when to use
19853 %OB instead of %B.
19854
19855 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19856
19857 [BZ #10871]
19858 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19859 names, define them as the same as abbreviated month names explicitly.
19860 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19861 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19862 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19863 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19864 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19865 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19866 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19867 _NL_WABALTMON_12): New enum constants.
19868 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19869 wab_alt_mon, and ab_alt_mon_defined members.
19870 (time_output): Output ab_alt_mon and wab_alt_mon members.
19871 (time_read): Read them, initialize them as copies of abmon and wabmon
19872 respectively if they are missing, initialize ab_alt_mon_defined.
19873 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19874 * locale/programs/locfile-kw.h: Regenerate.
19875 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19876 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19877 and ru_RU.UTF-8.
19878 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19879 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19880 (__strftime_internal): Handle %Ob and %Oh formats.
19881 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19882 (__strptime_internal): Handle %Ob and %Oh formats.
19883 * time/tst-strptime.c (day_tests): Add more tests to parse different
19884 forms of month names including the new %Ob format specifier.
19885
19886 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19887
19888 [BZ #10871]
19889 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19890 define them as the same as primary full month names explicitly.
19891 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19892 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19893 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19894 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19895 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19896 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19897 _NL_WALTMON_12): New enum constants.
19898 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19899 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19900 macros.
19901 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19902 walt_mon, and alt_mon_defined members.
19903 (time_output): Output alt_mon and walt_mon members.
19904 (time_read): Read them, initialize them as copies of mon and wmon
19905 respectively if they are missing, initialize alt_mon_defined.
19906 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19907 * locale/programs/locfile-kw.h: Regenerate.
19908 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19909 * localedata/tst-langinfo.c (map): Add tests for the new constants
19910 ALTMON_1 .. ALTMON_12.
19911 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19912 and pl_PL.UTF-8.
19913 * time/strftime_l.c (f_altmonth): New macro.
19914 (__strftime_internal): Handle %OB format.
19915 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19916 (__strptime_internal): Handle %OB format.
19917 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19918 of month names including the new %OB format specifier.
19919
19920 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19921
19922 [BZ #22685]
19923 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19924 from ABORT_TRANSACTION.
19925 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19926 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19927 ABORT_TRANSACTION_IMPL): Likewise.
19928 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19929 Linux code, but remove the code that aborts transactions.
19930
19931 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19932
19933 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19934
19935 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19936
19937 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19938 in date: "2004-14-09" should be "2004-09-14".
19939 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19940 "2003-15-09" should be "2003-09-15".
19941
19942 2018-01-18 Arjun Shankar <arjun@redhat.com>
19943
19944 [BZ #22343]
19945 [BZ #22774]
19946 CVE-2018-6485
19947 CVE-2018-6551
19948 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19949 after padding.
19950 (_int_memalign): check for integer overflow before calling
19951 _int_malloc.
19952 * malloc/tst-malloc-too-large.c: New test.
19953 * malloc/Makefile: Add tst-malloc-too-large.
19954
19955 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19956
19957 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19958 in date: "2017-24-07" should be "2017-07-24".
19959 * localedata/locales/mai_IN: Likewise.
19960 * localedata/locales/mai_NP: Likewise.
19961
19962 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19963
19964 * po/ru.po: Update translations.
19965
19966 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19967
19968 [BZ #22719]
19969 * sysdeps/hppa/backtrace.c: New file.
19970
19971 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19972
19973 [BZ #22715]
19974 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19975 align La_x86_64_retval to VEC_SIZE.
19976
19977 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19978
19979 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19980 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19981
19982 2018-01-16 Florian Weimer <fweimer@redhat.com>
19983
19984 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19985 Move tst-thread-exit-clobber ...
19986 [$(CXX)] (tests-unsupported): ... to here.
19987
19988 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19989
19990 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19991 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19992 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19993 (_dl_aarch64_cap_flags): Update.
19994 (_DL_HWCAP_COUNT): Update.
19995
19996 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19997
19998 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19999 (_DL_HWCAP_LAST): Remove.
20000 (_DL_HWCAP_COUNT): Move to ...
20001 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20002 (_DL_HWCAP_COUNT): ... here.
20003
20004 2018-01-16 Florian Weimer <fweimer@redhat.com>
20005
20006 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
20007 mode with GNU extensions.
20008
20009 2018-01-15 Alan Hayward <alan.hayward@arm.com>
20010
20011 * elf/elf.h (NT_ARM_SVE): Define.
20012
20013 2018-01-15 Florian Weimer <fweimer@redhat.com>
20014
20015 [BZ #22636]
20016 * nptl/tst-minstack-throw.cc: New file.
20017 * nptl/Makefile (tests): Add tst-minstack-throw.
20018 (LDLIBS-tst-minstack-throw): Link with libstdc++.
20019 [!CXX] (tests-unsupported): Add tst-minstack-throw.
20020
20021 2018-01-15 Joseph Myers <joseph@codesourcery.com>
20022
20023 * scripts/build-many-glibcs.py (Context.checkout): Default
20024 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20025 version to 1.1.0.
20026
20027 2018-01-13 Carlos O'Donell <carlos@redhat.com>
20028
20029 [BZ #22707]
20030 * elf/elf.h (DF_1_STUB): Define.
20031 (DF_1_PIE): Define.
20032
20033 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20034
20035 [BZ #22697]
20036 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20037 Do not add 0.5 to integer or out-of-range arguments.
20038
20039 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20040
20041 * po/bg.po: Update translations.
20042 * po/cs.po: Likewise.
20043 * po/de.po: Likewise.
20044 * po/ko.po: Likewise.
20045 * po/pl.po: Likewise.
20046 * po/sv.po: Likewise.
20047 * po/uk.po: Likewise.
20048 * po/vi.po: Likewise.
20049
20050 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20051
20052 * aarch64/start.S (_start): Use __wrap_main.
20053 (__wrap_main): New local symbol.
20054
20055 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20056
20057 [BZ #22679]
20058 CVE-2018-1000001
20059 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20060 generic_getcwd if the path returned by getcwd syscall is not absolute.
20061 * io/tst-getcwd-abspath.c: New test.
20062 * io/Makefile (tests): Add tst-getcwd-abspath.
20063
20064 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
20065
20066 * malloc/malloc.c (malloc_consolidate): Add size check.
20067
20068 2018-01-12 Florian Weimer <fweimer@redhat.com>
20069
20070 * support/write_message.c (write_message): Preserve errno.
20071 * support/check.c (print_failure): Likewise.
20072 * support/support_test_verify_impl.c (support_test_verify_impl):
20073 Likewise.
20074 * support/support_test_compare_failure.c
20075 (support_test_compare_failure): Likewise.
20076
20077 2018-01-12 Florian Weimer <fweimer@redhat.com>
20078
20079 [BZ #22701]
20080 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20081 Prevent installation of libnsl.so.
20082 (libnsl-inhibit-o): Do not build (or install) static libraries.
20083
20084 2018-01-12 Egmont Koblinger <egmont@gmail.com>
20085
20086 [BZ #22657]
20087 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20088 before the day number which may produce a double space.
20089 (date_fmt): Likewise.
20090
20091 2018-01-12 Joseph Myers <joseph@codesourcery.com>
20092
20093 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20094 instead of fegetenv.
20095
20096 2018-01-11 Joseph Myers <joseph@codesourcery.com>
20097
20098 [BZ #22702]
20099 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20100 comment to say exceptions are discarded.
20101 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20102 __fegetenv.
20103 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20104 be enabled.
20105
20106 2018-01-11 Florian Weimer <fweimer@redhat.com>
20107
20108 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20109 and error message.
20110
20111 2018-01-11 Florian Weimer <fweimer@redhat.com>
20112
20113 [BZ #22636]
20114 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20115 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20116
20117 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20118
20119 [BZ #22693]
20120 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20121 negative arguments in test for NaN or infinity argument.
20122
20123 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
20124
20125 * po/libc.pot: Regenerate.
20126
20127 2018-01-10 Florian Weimer <fweimer@redhat.com>
20128
20129 [BZ #22636]
20130 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20131 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20132
20133 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
20134
20135 * hurd/hurd/fd.h: Include <fcntl.h>
20136 (__hurd_at_flags): New function.
20137 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20138 with call to __hurd_at_flags.
20139 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20140 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20141 __faccessat
20142 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20143 (__access_noerrno): Use __faccessat_common instead of access_common.
20144 (__access): Likewise.
20145 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20146 with a call to __faccessat.
20147 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20148 (__faccessat_common): ... this. Move implementation of __access into it when
20149 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20150 reauthenticate_cwdir_at helper to implement AT mechanism.
20151 (__faccessat_noerrno): New function, just calls __faccessat_common.
20152 (__faccessat): New function, just calls __faccessat_common.
20153 (faccessat): Define weak alias.
20154
20155 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20156
20157 [BZ #22691]
20158 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20159 (CFLAGS-s_fmaxmagl.c): New variable.
20160 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20161
20162 [BZ #22690]
20163 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20164 long int for arguments of possibly overflowing addition or
20165 subtraction.
20166 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20167
20168 2018-01-09 Joseph Myers <joseph@codesourcery.com>
20169
20170 [BZ #22688]
20171 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20172 (CFLAGS-e_remainderl.c): New variable.
20173
20174 [BZ #22687]
20175 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20176 variable.
20177 (CFLAGS-s_cacoshl.c): Likewise.
20178 (CFLAGS-s_casinhl.c): Likewise.
20179 (CFLAGS-s_catanl.c): Likewise.
20180 (CFLAGS-s_catanhl.c): Likewise.
20181 (CFLAGS-s_cexpl.c): Likewise.
20182 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20183 (CFLAGS-s_csinhl.c): Likewise.
20184 (CFLAGS-s_clogl.c): Likewise.
20185 (CFLAGS-s_clog10l.c): Likewise.
20186 (CFLAGS-s_csinl.c): Likewise.
20187 (CFLAGS-s_csqrtl.c): Likewise.
20188
20189 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
20190 2017-01-09 Svante Signell <svante.signell@gmail.com>
20191
20192 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20193 (_hurd_exec_paths): New function.
20194 * hurd/hurd.h (_hurd_exec): Deprecate function.
20195 (_hurd_exec_paths): Declare function.
20196 * hurd/Versions: Export _hurd_exec_paths.
20197 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20198 (__execve): Use __getcwd to build absolute path, and use
20199 _hurd_exec_paths instead of _hurd_exec.
20200 * sysdeps/mach/hurd/spawni.c: Likewise.
20201 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20202 _hurd_exec.
20203
20204 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
20205
20206 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20207 test instead of failing in case of ENOENT returned by posix_openpt.
20208
20209 2018-01-08 Florian Weimer <fweimer@redhat.com>
20210
20211 resolv: Support binary labels in test framework.
20212 * support/resolv_test.c (struct to_be_freed): Remove.
20213 (struct compressed_name): New.
20214 (allocate_compressed_name, ascii_tolower)
20215 (compare_compressed_name): New functions.
20216 (struct resolv_response_builder): Update type of
20217 compression_offsets for use with tsearch. Rempve to_be_freed.
20218 (response_push_pointer_to_free): Remove function.
20219 (resolv_response_add_name): Rewrite using struct compressed_name
20220 and tsearch instead of hsearch_r.
20221 (response_builder_allocate): Remove initialization of
20222 compression_offsets.
20223 (response_builder_free): Update for removal of to_be_freed. Use
20224 tdestroy instead of hdestroy_r.
20225 * resolv/Makefile (tests): Add tst-resolv-binary.
20226 (tst-resolv-binary): Link with -lresolv -lpthread.
20227
20228 2018-01-08 Florian Weimer <fweimer@redhat.com>
20229
20230 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20231 time. Pass positive flag instead of negative flag to
20232 support_test_compare_failure.
20233 (support_test_compare_failure): Change negative parameter to
20234 positive.
20235 * support/support_test_compare_failure.c (report)
20236 (support_test_compare_failure): Likewise.
20237 * support/tst-test_compare.c (return_ssize_t, return_int): New.
20238 (do_test): Check int/size_t, ssize_t/size_t comparisons.
20239
20240 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
20241
20242 [BZ #22637]
20243 * nptl/descr.h (stackblock, stackblock_size): Update comments.
20244 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20245 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20246 stacksize.
20247 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20248
20249 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
20250
20251 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20252 Add s_sincosf-sse2 and s_sincosf-fma.
20253 (CFLAGS-s_sincosf-fma.c): New.
20254 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20255 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20256 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20257 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20258 __sincosf is defined.
20259
20260 2018-01-08 Florian Weimer <fweimer@redhat.com>
20261
20262 * nptl/tst-thread-exit-clobber.cc: New file.
20263 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20264 C++11 mode.
20265 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20266 (tests): Add tst-thread-exit-clobber.
20267 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20268
20269 2018-01-08 Florian Weimer <fweimer@redhat.com>
20270
20271 * support/check.h (support_static_assert): Define.
20272 (TEST_COMPARE): Use it.
20273
20274 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
20275
20276 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20277 [!__RLIM_T_MATCHES_RLIM64_T]
20278 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20279 __getrlimit64. Add libc_hidden_weak.
20280
20281 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
20282
20283 * elf/elf.h (R_RISCV_NONE): New define.
20284 (R_RISCV_32): Likewise.
20285 (R_RISCV_64): Likewise.
20286 (R_RISCV_RELATIVE): Likewise.
20287 (R_RISCV_COPY): Likewise.
20288 (R_RISCV_JUMP_SLOT): Likewise.
20289 (R_RISCV_TLS_DTPMOD32): Likewise.
20290 (R_RISCV_TLS_DTPMOD64): Likewise.
20291 (R_RISCV_TLS_DTPREL32): Likewise.
20292 (R_RISCV_TLS_DTPREL64): Likewise.
20293 (R_RISCV_TLS_TPREL32): Likewise.
20294 (R_RISCV_TLS_TPREL64): Likewise.
20295 * Makerules (make-link-multidir): Make directories before linking into
20296 them.
20297 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20298 define.
20299 (VDSO_HASH_LINUX_4_15): Likewise.
20300 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20301 in subdirectories of lib.
20302 * nptl/Makefile (/librt.so): Always depend on
20303 "$(shared-thread-library)".
20304
20305 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20306
20307 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20308 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20309 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20310 (___tls_get_addr).
20311 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20312 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20313 "-O2 -march=i686".
20314 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20315 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20316 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20317 * sysdeps/gnu/glob-lstat-compat.c: New file.
20318 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20319 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20320
20321 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20322
20323 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20324 Reserve 16 chars to reloc_addr before calling _itoa_word.
20325
20326 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20327
20328 [BZ #22678]
20329 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20330 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20331
20332 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20333 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20334
20335 * resource/tst-getrlimit.c: Add copyright header.
20336
20337 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20338 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20339
20340 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20341 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20342 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20343 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20344 instead.
20345 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20346 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20347 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20348 RLIM64_INFINITY): Fix values to match the kernel ones.
20349 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20350 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20351 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20352 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20353 getrlimit64@@GLIBC_2_27.
20354 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20355 and setrlimit64.
20356 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20357 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20358 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20359 setrlimit, getrlimit64 and setrlimit64.
20360
20361 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20362
20363 [BZ #22648]
20364 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20365 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20366
20367 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20368
20369 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20370 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20371 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20372
20373 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20374
20375 [BZ #15479]
20376 [BZ #22666]
20377 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20378 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20379
20380 [BZ #15479]
20381 [BZ #22665]
20382 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20383 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20384 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20385 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20386
20387 2018-01-04 Florian Weimer <fweimer@redhat.com>
20388
20389 [BZ #22667]
20390 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20391 Align the stack before calling exit.
20392 * stdlib/tst-makecontext-align.c: New file.
20393 * stdlib/Makefile (tests): Add tst-makecontext-align.
20394
20395 2018-01-04 Florian Weimer <fweimer@redhat.com>
20396
20397 Add support for calling dlvsym from libc.so.
20398 * include/dlfcn.h (__libc_dlvsym): Declare.
20399 * elf/Makefile (tests-static-internal): Add
20400 tst-libc_dlvsym-static.
20401 (tests-internal): Add tst-libc_dlvsym.
20402 (modules-names): Add tst-libc_dlvsym-dso.
20403 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20404 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20405 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20406 object tst-libc_dlvsym-dso.so needs to be built before running
20407 these tests.
20408 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20409 * elf/Versions: Export __libc_dlvsym.
20410 * elf/dl-libc.c (struct do_dlvsym_args): New.
20411 (do_dlvsym, __libc_dlvsym): New functions.
20412 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20413 (_dl_open_hook2): New variable.
20414 (__libc_register_dl_open_hook): Set it.
20415 * elf/tst-libc_dlvsym-dso.c: New file.
20416 * elf/tst-libc_dlvsym-static.c: Likewise.
20417 * elf/tst-libc_dlvsym.c: Likewise.
20418 * elf/tst-libc_dlvsym.h: Likewise.
20419
20420 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20421
20422 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20423 include <sys/mount.h>.
20424
20425 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20426
20427 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20428 Add __NO_MATH_ERRNO__ check.
20429
20430 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20431
20432 * sysdeps/mips/mips32/libm-test-ulps: Update.
20433 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20434
20435 2018-01-02 Florian Weimer <fweimer@redhat.com>
20436
20437 * misc/tst-pselect.c: Add copyright header.
20438
20439 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20440
20441 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20442 comment.
20443 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20444 comment.
20445 (settrlimit): Rename into setrlimit.
20446 (__sttrlimit): Rename into __setrlimit.
20447
20448 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20449 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20450 never defined in that case.
20451
20452 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20453
20454 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20455
20456 * sysdeps/arm/libm-test-ulps: Update.
20457
20458 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20459 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20460
20461 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20462
20463 * NEWS: Add cosf and sincosf to list of optimized functions.
20464
20465 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20466
20467 [BZ #22660]
20468 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20469 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20470 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20471 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20472
20473 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20474
20475 [BZ #22433]
20476 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20477
20478 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20479 making a copy of it.
20480
20481 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20482
20483 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20484 trailing whitespace removed.
20485 * scripts/config.guess: Update to version 2018-01-01.
20486 * scripts/config.sub: Update to version 2018-01-01.
20487 * scripts/move-if-change: Update from gnulib.
20488
20489 * NEWS: Update copyright dates.
20490 * catgets/gencat.c (print_version): Likewise.
20491 * csu/version.c (banner): Likewise.
20492 * debug/catchsegv.sh: Likewise.
20493 * debug/pcprofiledump.c (print_version): Likewise.
20494 * debug/xtrace.sh (do_version): Likewise.
20495 * elf/ldconfig.c (print_version): Likewise.
20496 * elf/ldd.bash.in: Likewise.
20497 * elf/pldd.c (print_version): Likewise.
20498 * elf/sotruss.sh: Likewise.
20499 * elf/sprof.c (print_version): Likewise.
20500 * iconv/iconv_prog.c (print_version): Likewise.
20501 * iconv/iconvconfig.c (print_version): Likewise.
20502 * locale/programs/locale.c (print_version): Likewise.
20503 * locale/programs/localedef.c (print_version): Likewise.
20504 * login/programs/pt_chown.c (print_version): Likewise.
20505 * malloc/memusage.sh (do_version): Likewise.
20506 * malloc/memusagestat.c (print_version): Likewise.
20507 * malloc/mtrace.pl: Likewise.
20508 * manual/libc.texinfo: Likewise.
20509 * nptl/version.c (banner): Likewise.
20510 * nscd/nscd.c (print_version): Likewise.
20511 * nss/getent.c (print_version): Likewise.
20512 * nss/makedb.c (print_version): Likewise.
20513 * posix/getconf.c (main): Likewise.
20514 * scripts/test-installation.pl: Likewise.
20515 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20516
20517 * All files with FSF copyright notices: Update copyright dates
20518 using scripts/update-copyrights.
20519 * locale/programs/charmap-kw.h: Regenerated.
20520 * locale/programs/locfile-kw.h: Likewise.
20521
20522 2017-12-31 Zack Weinberg <zackw@panix.com>
20523
20524 * libio/bits/libio-ldbl.h: Correct check for improper
20525 inclusion. Add own multiple include guard.
20526
20527 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20528 Dmitry V. Levin <ldv@altlinux.org>
20529
20530 [BZ #22625]
20531 CVE-2017-16997
20532 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20533 string token expansion. Check for NULL pointer or empty string possibly
20534 returned by expand_dynamic_string_token.
20535 (decompose_rpath): Check for empty path after dynamic string
20536 token expansion.
20537
20538 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20539
20540 [BZ #22433]
20541 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20542
20543 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20544 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20545 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20546 and PTRACE_SYSCALL.
20547 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20548 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20549 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20550 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20551 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20552 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20553
20554 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20555 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20556 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20557 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20558 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20559 bits/ptrace-shared.h.
20560 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20561 <bits/ptrace-shared.h>.
20562 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20563 __ptrace_peeksiginfo_flags, ptrace): Remove.
20564 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20565 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20566 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20567 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20568 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20569
20570 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20571
20572 [BZ #17804]
20573 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20574 end of the loop. Improve comments.
20575
20576 2017-12-29 Zack Weinberg <zackw@panix.com>
20577
20578 [BZ #22615]
20579 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20580 might be set on success.
20581
20582 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20583
20584 [BZ #22611]
20585 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20586 is unchanged on success.
20587
20588 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20589
20590 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20591 updated.
20592 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20593 expand_dynamic_string_token): Likewise.
20594 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20595 is_path argument.
20596
20597 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20598 contains ':'.
20599
20600 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20601 is set and name contains ':', and all code depending on these checks.
20602
20603 2017-12-24 Zack Weinberg <zackw@panix.com>
20604
20605 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20606 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20607 respectively.
20608 * libio/libio.h: Rename the original version of this file to
20609 libio/bits/libio.h. Error out if not included by stdio.h or the
20610 stub libio.h.
20611 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20612 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20613 if not included by bits/libio.h or the stub _G_config.h.
20614 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20615 sysdeps/unix/sysv/linux/bits. Error out if not included by
20616 bits/libio.h or the stub _G_config.h.
20617 * libio/stdio.h: Include bits/libio.h, not libio.h.
20618 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20619 well as libio.h and _G_config.h.
20620
20621 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20622 * libio/strfile.h, stdio-common/vfscanf.c
20623 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20624 Include stdio.h, not _G_config.h nor libio.h.
20625 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20626 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20627
20628 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20629
20630 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20631
20632 [BZ #22347]
20633 * stdlib/getrandom.c (getrandom): Fix comment.
20634 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20635
20636 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20637
20638 [BZ #21161]
20639 * manual/arith.texi (strtoul): Fix a typo.
20640
20641 [BZ #22596]
20642 * manual/arith.texi (finite): Fix the description of the return
20643 value.
20644
20645 2017-12-22 Eric Blake <ebb9@byu.net>
20646
20647 Avoid gcc warnings on cygwin
20648 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20649 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20650 Avoid unused variable.
20651
20652 2017-12-22 Florian Weimer <fweimer@redhat.com>
20653
20654 * io/Makefile (routines): Add copy_file_range.
20655 (tests): Add tst-copy_file_range.
20656 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20657 * io/Versions (GLIBC_2.27): Export copy_file_range.
20658 * io/copy_file_range-compat.c: New file.
20659 * io/copy_file_range.c: Likewise.
20660 * io/tst-copy_file_range-compat.c: Likewise.
20661 * io/tst-copy_file_range.c: Likewise.
20662 * manual/llio.texi (Copying File Data): New section.
20663 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20664 * support/Makefile (libsupport-routines): Add support-xfstat,
20665 xftruncate, xlseek.
20666 * support/support-xfstat.c: New file.
20667 * support/xftruncate.c: Likewise.
20668 * support/xlseek.c: Likewise.
20669 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20670 * sysdeps/unix/sysv/linux/**.abilist: Update.
20671 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20672
20673 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20674
20675 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20676 disable-multi-arch variant to aarch64-linux-gnu.
20677
20678 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20679
20680 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20681 trailing whitespace removed.
20682 * scripts/config.guess: Update to version 2017-12-17.
20683 * scripts/config.sub: Update to version 2017-11-23.
20684 * scripts/install-sh: Update to version 2017-09-23.17.
20685 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20686
20687 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20688
20689 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20690 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20691 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20692 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20693 * sysdeps/tile/crtn.S: Likewise.
20694 * sysdeps/tile/dl-start.S (_start): Likewise.
20695 * sysdeps/tile/dl-trampoline.S: Likewise.
20696 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20697 * sysdeps/tile/start.S (_start): Likewise.
20698 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20699 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20700 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20701 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20702 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20703 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20704 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20705
20706 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20707 comment.
20708 * sysdeps/tile/preconfigure: Remove tilegx folder.
20709 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20710 * sysdeps/tile/Implies: ... here.
20711 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20712 * sysdeps/tile/Makefile: ... here.
20713 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20714 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20715 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20716 * sysdeps/tile/bits/wordsize.h: ... here.
20717 * sysdeps/tile/tilegx/*: Move to ...
20718 * sysdeps/tile/*: ... here.
20719 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20720 * sysdeps/tile/tilegx32/Implies: ... here.
20721 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20722 * sysdeps/tile/tilegx64/Implies: ... here.
20723 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20724 to ...
20725 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20726 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20727 * sysdeps/unix/sysv/linux/tile/*: ... here.
20728 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20729 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20730 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20731 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20732
20733 * README: Remove tilepro-*-linux-gnu from supported architecture.
20734 * scripts/build-many-glibcs.py: Likewise.
20735 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20736 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20737 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20738 elf_machine_matches_host, elf_machine_dynamic,
20739 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20740 howto, elf_machine_rela): Likewise.
20741 * sysdeps/tile/dl-start.S (_start): Likewise.
20742 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20743 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20744 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20745 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20746 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20747 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20748 Likewise.
20749 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20750 * sysdeps/tile/preconfigure: Likewise.
20751 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20752 POINTER_CHK_GUARD): Likewise.
20753 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20754 * sysdeps/tile/start.S (_start): Likewise.
20755 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20756 Likewise.
20757 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20758 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20759 CMOVNEZ): Remove.
20760 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20761 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20762 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20763 Likewise.
20764 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20765 * sysdeps/tile/tilepro/Implies: Remove file.
20766 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20767 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20768 * sysdeps/tile/tilepro/memchr.c: Likewise.
20769 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20770 * sysdeps/tile/tilepro/memset.c: Likewise.
20771 * sysdeps/tile/tilepro/memusage.h: Likewise.
20772 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20773 * sysdeps/tile/tilepro/strchr.c: Likewise.
20774 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20775 * sysdeps/tile/tilepro/strlen.c: Likewise.
20776 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20777 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20778 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20779 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20780 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20781 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20782 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20783 Likewise.
20784 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20785 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20786 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20787 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20788 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20789 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20790 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20791 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20792 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20793 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20794 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20795 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20796 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20797 tilepro mention in comment.
20798
20799 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20800 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20801 * nptl/pthread_join_common.c: New file: common function used on
20802 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20803 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20804 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20805 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20806 (cleanup): Move definition to pthread_join_common.c.
20807 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20808 Remove superflous checks.
20809 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20810 Likewise.
20811
20812 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20813
20814 * sysdeps/aarch64/libm-test-ulps: Update.
20815
20816 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20817
20818 * sysdeps/aarch64/memset.S (MEMSET): Define.
20819
20820 2017-12-20 Florian Weimer <fweimer@redhat.com>
20821
20822 [BZ #22635]
20823 nptl: Provide full implementation of pthread_self in libc.so.
20824 * nptl/Makefile (routines): Add pthread_self.
20825 (libpthread-routines): Replace pthread_self with
20826 compat-pthread_self.
20827 * nptl/forward.c (pthread_self): Remove.
20828 * nptl/nptl-init.c (pthread_functions): Do not initialize
20829 ptr_pthread_self.
20830 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20831 * nptl/compat-pthread_self.c: New file.
20832 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20833 Remove ptr_pthread_self.
20834
20835 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20836
20837 * posix/regcomp.c: Fix spelling in comments.
20838 * posix/regex.h: Likewise.
20839 * posix/regex_internal.c: Likewise.
20840 * posix/regexec.c: Likewise.
20841
20842 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20843
20844 [BZ #22377]
20845 * math/Makefile [C++] (tests): Add test for iseqsig.
20846 * math/math.h [C++] (iseqsig): New implementation, which does
20847 not rely on __MATH_TG/__builtin_types_compatible_p.
20848 * math/test-math-iseqsig.cc: New file.
20849 * sysdeps/powerpc/powerpc64le/Makefile
20850 (CFLAGS-test-math-iseqsig.cc): New variable.
20851
20852 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20853
20854 * elf/dl-load.c (is_trusted_path): Remove.
20855 (fillin_rpath): Remove check_trusted argument and its use,
20856 all callers changed.
20857
20858 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20859
20860 [BZ #22630]
20861 * Makeconfig (link-pie-before-libc): Replace -pie with
20862 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20863 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20864 (tst-dlopen-aout-no-pie): New.
20865 (LDFLAGS-tst-prelink): Removed.
20866 (tst-prelink-no-pie): New.
20867 (LDFLAGS-tst-main1): Removed.
20868 (tst-main1-no-pie): New.
20869 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20870 (tst-gmon-no-pie): New.
20871
20872 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20873
20874 * manual/install.texi: Document that --enable-static-pie
20875 implies PIE.
20876 * INSTALL: Regenerated.
20877
20878 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20879
20880 [BZ #21309]
20881 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20882 unsigned.
20883
20884 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20885
20886 Revert:
20887
20888 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20889
20890 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20891
20892 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20893
20894 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20895 <errno.h>. Include "eexp.tbl".
20896 (half): New constant.
20897 (one): Likewise.
20898 (__ieee754_exp): Rewrite.
20899 (__slowexp): Remove prototype.
20900 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20901 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20902 * sysdeps/i386/fpu/slowexp.c: Likewise.
20903 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20904 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20905 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20906 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20907 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20908 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20909 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20910 comment.
20911 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20912 (CPPFLAGS-slowexp.c): Remove variable.
20913 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20914 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20915 (CFLAGS-slowexp-fma.c): Remove variable.
20916 (CFLAGS-slowexp-fma4.c): Likewise.
20917 (CFLAGS-slowexp-avx.c): Likewise.
20918 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20919 define as macro.
20920 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20921 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20922 * math/Makefile (type-double-routines): Remove slowexp.
20923 * manual/probes.texi (slowexp_p6): Remove.
20924 (slowexp_p32): Likewise.
20925
20926 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20927
20928 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20929 arithmetic.
20930
20931 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20932
20933 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20934
20935 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20936
20937 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20938
20939 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20940 <errno.h>. Include "eexp.tbl".
20941 (half): New constant.
20942 (one): Likewise.
20943 (__ieee754_exp): Rewrite.
20944 (__slowexp): Remove prototype.
20945 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20946 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20947 * sysdeps/i386/fpu/slowexp.c: Likewise.
20948 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20949 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20950 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20951 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20952 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20953 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20954 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20955 comment.
20956 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20957 (CPPFLAGS-slowexp.c): Remove variable.
20958 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20959 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20960 (CFLAGS-slowexp-fma.c): Remove variable.
20961 (CFLAGS-slowexp-fma4.c): Likewise.
20962 (CFLAGS-slowexp-avx.c): Likewise.
20963 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20964 define as macro.
20965 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20966 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20967 * math/Makefile (type-double-routines): Remove slowexp.
20968 * manual/probes.texi (slowexp_p6): Remove.
20969 (slowexp_p32): Likewise.
20970
20971 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20972 James Clarke <jrtc27@jrtc27.com>
20973
20974 [BZ #22603]
20975 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20976 addition.
20977
20978 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20979
20980 [BZ #22605]
20981 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20982 code.
20983
20984 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20985
20986 [BZ #22563]
20987 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20988 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20989 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20990 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20991 to feature_1.
20992
20993 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20994
20995 [BZ #22563]
20996 * bits/types/__cancel_jmp_buf_tag.h: New file.
20997 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20998 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20999 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21000 * nptl/Makefile (headers): Add
21001 bits/types/__cancel_jmp_buf_tag.h.
21002 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21003 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21004 * sysdeps/nptl/pthread.h: Include
21005 <bits/types/__cancel_jmp_buf_tag.h>.
21006 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21007 __cancel_jmp_buf.
21008 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21009
21010 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21011
21012 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21013 --enable-static-pie variants to x86_64, x32 and i686.
21014
21015 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21016
21017 [BZ #22631]
21018 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21019 argument for attrubutes. All callers changed.
21020 (__inline_mathop1): Likewise. All callers changed.
21021 (__inline_mathop): Likewise. All callers changed.
21022 [__USE_MISC] (scalbn): Use __inline_forward instead of
21023 __inline_forward_c.
21024 [__USE_ISOC99] (scalbln): Likewise.
21025 [__USE_ISOC99] (nearbyint): Likewise.
21026 [__USE_ISOC99] (lrint): Likewise.
21027 [__USE_MISC] (scalbnf): Likewise.
21028 [__USE_ISOC99] (scalblnf): Likewise.
21029 [__USE_ISOC99] (nearbyintf): Likewise.
21030 [__USE_ISOC99] (lrintf): Likewise.
21031 [__USE_MISC] (scalbnl): Likewise.
21032 [__USE_ISOC99] (scalblnl): Likewise.
21033 [__USE_ISOC99] (nearbyintl): Likewise.
21034 [__USE_ISOC99] (lrintl): Likewise.
21035 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21036 __inline_mathop and __m81_defun changed.
21037
21038 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21039 CPU or FPU for ARM hard-float configurations.
21040
21041 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21042
21043 * nptl/tst-attr3.c: Include <libc-diag.h>.
21044 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21045
21046 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21047
21048 * string/tester.c (test_strncat): Also disable -Warray-bounds
21049 warnings for two tests.
21050
21051 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21052
21053 [BZ #22614]
21054 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21055 $(cc-pie-default) == yes.
21056 * config.make.in (cc-pie-default): New.
21057 * configure.ac (libc_cv_pie_default): Renamed to ...
21058 (libc_cv_cc_pie_default): This.
21059 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21060 * configure: Regenerated.
21061
21062 2017-12-18 Florian Weimer <fweimer@redhat.com>
21063
21064 [BZ #20204]
21065 ld.so: Harden dl-libc/libdl hooks.
21066 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21067 (rtld_active): New function.
21068 * dlfcn/dladdr.c (__dladdr): Call it.
21069 * dlfcn/dladdr1.c (__dladdr1): Likewise.
21070 * dlfcn/dlclose.c (__dlcose): Likewise.
21071 * dlfcn/dlerror.c (__dlerror): Likewise.
21072 * dlfcn/dlinfo.c (__dlinfo): Likewise.
21073 * dlfcn/dlmopen.c (__dlmopen): Likewise.
21074 * dlfcn/dlopen.c (__dlopen): Likewise.
21075 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21076 * dlfcn/dlsym.c (__dlsym): Likewise.
21077 * dlfcn/dlvsym.c (__dlvsym): Likewise.
21078 * libio/vtables.c (_IO_vtable_check): Likewise.
21079 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21080 (__libc_dlclose): Likewise.
21081 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21082 assignment.
21083
21084 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21085
21086 [BZ #22446]
21087 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21088 buffers for readlink input and output.
21089
21090 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
21091
21092 [BZ #22624]
21093 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21094 inhibit_stack_protector.
21095
21096 [BZ #22624]
21097 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21098 inhibit_stack_protector.
21099
21100 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
21101
21102 [BZ #22627]
21103 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21104 code and invocation.
21105
21106 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
21107
21108 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21109
21110 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
21111
21112 [BZ #22505]
21113 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21114
21115 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21116
21117 * sysdeps/s390/fpu/libm-test-ulps: Update.
21118
21119 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21120
21121 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21122
21123 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21124
21125 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21126 constants to s_sincosf.h file.
21127 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21128 * sysdeps/ieee754/flt-32/s_sincosf.c: New
21129 implementation.
21130 * sysdeps/ieee754/flt-32/s_sincosf.h:
21131 New file.
21132
21133 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21134
21135 [BZ #14681]
21136 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21137 before mtrace.
21138
21139 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
21140
21141 [BZ #19574]
21142 * INSTALL: Regenerated.
21143 * Makeconfig (real-static-start-installed-name): New.
21144 (pic-default): Updated for --enable-static-pie.
21145 (pie-default): New for --enable-static-pie.
21146 (default-pie-ldflag): Likewise.
21147 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21148 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21149 Replace $(static-start-installed-name) with
21150 $(real-static-start-installed-name).
21151 (+prectorT): Updated for --enable-static-pie.
21152 (+postctorT): Likewise.
21153 (CFLAGS-.o): Add $(pie-default).
21154 (CFLAGS-.op): Likewise.
21155 * NEWS: Mention --enable-static-pie.
21156 * config.h.in (ENABLE_STATIC_PIE): New.
21157 * configure.ac (--enable-static-pie): New configure option.
21158 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21159 (have-static-pie): Likewise.
21160 Enable static PIE if linker supports --no-dynamic-linker.
21161 (ENABLE_STATIC_PIE): New AC_DEFINE.
21162 (enable-static-pie): New LIBC_CONFIG_VAR.
21163 * configure: Regenerated.
21164 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21165 gr$(start-installed-name) for --enable-static-pie.
21166 (extra-objs): Likewise.
21167 (install-lib): Likewise.
21168 (extra-objs): Add static-reloc.o and static-reloc.os
21169 ($(objpfx)$(start-installed-name)): Also depend on
21170 $(objpfx)static-reloc.o.
21171 ($(objpfx)r$(start-installed-name)): New.
21172 ($(objpfx)g$(start-installed-name)): Also depend on
21173 $(objpfx)static-reloc.os.
21174 ($(objpfx)gr$(start-installed-name)): New.
21175 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21176 in libc.a.
21177 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21178 initimage.
21179 * csu/static-reloc.c: New file.
21180 * elf/Makefile (routines): Add dl-reloc-static-pie.
21181 (elide-routines.os): Likewise.
21182 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21183 (tst-tls1-static-non-pie-no-pie): New.
21184 * elf/dl-reloc-static-pie.c: New file.
21185 * elf/dl-support.c (_dl_get_dl_main_map): New function.
21186 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21187 STATIC_PIE_BOOTSTRAP.
21188 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21189 * gmon/Makefile (tests): Add tst-gmon-static-pie.
21190 (tests-static): Likewise.
21191 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21192 (tst-gmon-static-no-pie): New.
21193 (CFLAGS-tst-gmon-static-pie.c): Likewise.
21194 (CRT-tst-gmon-static-pie): Likewise.
21195 (tst-gmon-static-pie-ENV): Likewise.
21196 (tests-special): Likewise.
21197 ($(objpfx)tst-gmon-static-pie.out): Likewise.
21198 (clean-tst-gmon-static-pie-data): Likewise.
21199 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21200 * gmon/tst-gmon-static-pie.c: New file.
21201 * manual/install.texi: Document --enable-static-pie.
21202 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21203 (_dl_get_dl_main_map): Likewise.
21204 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21205 * sysdeps/x86_64/configure.ac: Likewise.
21206 * sysdeps/i386/configure: Regenerated.
21207 * sysdeps/x86_64/configure: Likewise.
21208 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21209 (ASFLAGS-.op): Likewise.
21210
21211 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21212
21213 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21214 * posix/tst-mmap-offset.c (fname): Use /tmp.
21215 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21216
21217 2017-12-15 Steve Ellcey <sellcey@cavium.com>
21218
21219 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21220
21221 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
21222
21223 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21224 errno.
21225
21226 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21227
21228 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21229 --with-float=hard for arm-linux-gnueabihf configurations.
21230
21231 [BZ #14121]
21232 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21233 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
21234 ($(mo-installed)): Use $(objpfx)%.mo.
21235 (realclean): Remove rule.
21236
21237 * po/Makefile (linguas): Remove rule and dependencies.
21238 (linguas.mo): Likewise.
21239 (.PHONY): Do not depend on linguas and linguas.mo.
21240 (podir): Remove variable.
21241 (pofiles): Likewise.
21242 [$(pofiles)] (%.po): Remove rule.
21243
21244 * sysdeps/sparc/sparc32/Makefile
21245 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21246 start-of-line whitespace in argument of echo.
21247 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21248 with whitespace. Generate __wrap_.udiv alias.
21249 * sysdeps/sparc/sparc32/rem.S: Regenerated.
21250 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21251 * sysdeps/sparc/sparc32/udiv.S: Likewise.
21252 * sysdeps/sparc/sparc32/urem.S: Likewise.
21253
21254 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21255
21256 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21257 for aligned inputs.
21258
21259 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
21260
21261 * benchtests/bench-strcmp.c: Print output in JSON format.
21262
21263 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21264
21265 2017-12-14 Florian Weimer <fweimer@redhat.com>
21266
21267 [BZ #22607]
21268 CVE-2017-1000409
21269 * elf/dl-load.c (_dl_init_paths): Compute number of components in
21270 the expanded path string.
21271
21272 2017-12-14 Florian Weimer <fweimer@redhat.com>
21273
21274 [BZ #22606]
21275 CVE-2017-1000408
21276 * elf/dl-load.c (system_dirs): Update comment.
21277 (nsystem_dirs_len): Use array_length.
21278 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21279
21280 2017-12-14 Florian Weimer <fweimer@redhat.com>
21281
21282 Simplify compiling most of support/ outside of glibc.
21283 * support/check_addrinfo.c: Include <string.h>.
21284 * support/check_dns_packet.c: Likewise.
21285 * support/check_hostent.c: Likewise.
21286 * support/support_can_chroot.c: Include <support/xunistd.h>.
21287 * support/support_format_addrinfo.c: Include <stdlib.h>
21288 * support/support_format_dns_packet.c: Include <stdbool.h>.
21289 * support/support_format_hostent.c: Include <stdlib.h>.
21290 * support/support_format_netent.c: Likewise.
21291 * support/support_write_string.c: Include <support/xunistd.h>.
21292 * support/xdlfcn.c: Include <stddef.h>.
21293
21294 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21295
21296 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21297
21298 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21299 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21300
21301 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21302 (sysdeps_routines): Add memset-niagara7.
21303 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21304 Likewise.
21305 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21306 file.
21307 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21308 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21309 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21310 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21311 Add niagara7 option.
21312 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21313 memset.
21314
21315 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21316 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21317 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21318 Likewise.
21319 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21320 New file.
21321 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21322 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21323 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21324 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21325 and __memmove_niagara7.
21326 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21327 Add niagara7 option.
21328 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21329 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21330 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21331 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21332 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21333
21334 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21335
21336 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21337 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21338 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21339 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21340
21341 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21342 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21343 _dl_sparc_cap_flags array.
21344 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21345
21346 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21347
21348 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21349 time whenever possible.
21350
21351 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21352
21353 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21354 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21355
21356 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21357
21358 * soft-fp/fmadf4.c: Move to ....
21359 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21360 * soft-fp/fmasf4.c: Move to ....
21361 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21362 * soft-fp/fmatf4.c: Move to ....
21363 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21364 * sysdeps/ieee754/soft-fp/Makefile: New file.
21365 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21366 * sysdeps/arm/preconfigure: Regenerated.
21367 * sysdeps/arm/nofpu/Implies: New file.
21368 * sysdeps/arm/s_fma.c: Remove file.
21369 * sysdeps/arm/s_fmaf.c: Likewise.
21370 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21371 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21372 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21373 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21374 * sysdeps/microblaze/s_fma.c: Remove file.
21375 * sysdeps/microblaze/s_fmaf.c: Likewise.
21376 * sysdeps/mips/mips32/nofpu/Implies: New file.
21377 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21378 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21379 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21380 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21381 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21382 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21383 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21384 implementation.
21385 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21386 * sysdeps/nios2/s_fma.c: Remove file.
21387 * sysdeps/nios2/s_fmaf.c: Likewise.
21388 * sysdeps/sh/nofpu/Implies: New file.
21389 * sysdeps/sh/s_fma.c: Remove file.
21390 * sysdeps/sh/s_fmaf.c: Likewise.
21391 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21392 * sysdeps/tile/s_fma.c: Remove file.
21393 * sysdeps/tile/s_fmaf.c: Likewise.
21394
21395 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21396
21397 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21398 Add s_cosf-sse2 and s_cosf-fma.
21399 (CFLAGS-s_cosf-fma.c): New.
21400 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21401 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21402 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21403
21404 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21405
21406 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21407
21408 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21409
21410 * libio/Makefile (tests): Add tst-bz22415.
21411 (tst-bz22415-ENV): New rule.
21412 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21413 (tests-special): Add tst-bz22415-mem.out.
21414 ($(objpfx)tst-bz22415-mem.out): New rule.
21415 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21416 in case of a successful seek operation.
21417 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21418 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21419 buffer is required.
21420 * libio/tst-bz22415.c: New test.
21421
21422 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21423
21424 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21425
21426 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21427 __IPC_64 to 0 to avoid IPC_64 being set.
21428
21429 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21430
21431 [BZ #22593]
21432 * math/bits/mathcalls.h (nextafter): Remove const.
21433 (nexttoward): Likewise.
21434
21435 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21436
21437 * configure.ac (--with-fp): Remove configure option.
21438 (with_fp_cond): New variable.
21439 (libc_cv_with_fp): New configure test. Use this variable instead
21440 of with_fp.
21441 * configure: Regenerated.
21442 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21443 * manual/install.texi (Configuring and compiling): Remove
21444 --without-fp.
21445 * INSTALL: Regenerated.
21446 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21447 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21448 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21449 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21450 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21451 use --without-fp to configure glibc.
21452
21453 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21454
21455 * manual/locale.texi (nl_langinfo): Fix a typo.
21456
21457 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21458
21459 [BZ #22588]
21460 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21461
21462 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21463
21464 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21465 (CFLAGS-argp-parse.c): Likewise.
21466 (CFLAGS-argp-fmtstream.c): Likewise.
21467 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21468 (CPPFLAGS-sha512-crypt.c): Likewise.
21469 (CPPFLAGS-md5-crypt.c): Likewise.
21470 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21471 (CFLAGS-stack_chk_fail_local.c): Likewise.
21472 (CFLAGS-backtrace.c): Likewise.
21473 (CFLAGS-sprintf_chk.c): Likewise.
21474 (CFLAGS-snprintf_chk.c): Likewise.
21475 (CFLAGS-vsprintf_chk.c): Likewise.
21476 (CFLAGS-vsnprintf_chk.c): Likewise.
21477 (CFLAGS-asprintf_chk.c): Likewise.
21478 (CFLAGS-vasprintf_chk.c): Likewise.
21479 (CFLAGS-obprintf_chk.c): Likewise.
21480 (CFLAGS-dprintf_chk.c): Likewise.
21481 (CFLAGS-vdprintf_chk.c): Likewise.
21482 (CFLAGS-printf_chk.c): Likewise.
21483 (CFLAGS-fprintf_chk.c): Likewise.
21484 (CFLAGS-vprintf_chk.c): Likewise.
21485 (CFLAGS-vfprintf_chk.c): Likewise.
21486 (CFLAGS-gets_chk.c): Likewise.
21487 (CFLAGS-fgets_chk.c): Likewise.
21488 (CFLAGS-fgets_u_chk.c): Likewise.
21489 (CFLAGS-fread_chk.c): Likewise.
21490 (CFLAGS-fread_u_chk.c): Likewise.
21491 (CFLAGS-swprintf_chk.c): Likewise.
21492 (CFLAGS-vswprintf_chk.c): Likewise.
21493 (CFLAGS-wprintf_chk.c): Likewise.
21494 (CFLAGS-fwprintf_chk.c): Likewise.
21495 (CFLAGS-vwprintf_chk.c): Likewise.
21496 (CFLAGS-vfwprintf_chk.c): Likewise.
21497 (CFLAGS-fgetws_chk.c): Likewise.
21498 (CFLAGS-fgetws_u_chk.c): Likewise.
21499 (CFLAGS-read_chk.c): Likewise.
21500 (CFLAGS-pread_chk.c): Likewise.
21501 (CFLAGS-pread64_chk.c): Likewise.
21502 (CFLAGS-recv_chk.c): Likewise.
21503 (CFLAGS-recvfrom_chk.c): Likewise.
21504 (CFLAGS-tst-longjmp_chk.c): Likewise.
21505 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21506 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21507 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21508 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21509 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21510 (CFLAGS-tst-chk1.c): Likewise.
21511 (CFLAGS-tst-chk2.c): Likewise.
21512 (CFLAGS-tst-chk3.c): Likewise.
21513 (CFLAGS-tst-chk4.cc): Likewise.
21514 (CFLAGS-tst-chk5.cc): Likewise.
21515 (CFLAGS-tst-chk6.cc): Likewise.
21516 (CFLAGS-tst-lfschk1.c): Likewise.
21517 (CFLAGS-tst-lfschk2.c): Likewise.
21518 (CFLAGS-tst-lfschk3.c): Likewise.
21519 (CFLAGS-tst-lfschk4.cc): Likewise.
21520 (CFLAGS-tst-lfschk5.cc): Likewise.
21521 (CFLAGS-tst-lfschk6.cc): Likewise.
21522 (CFLAGS-tst-ssp-1.c): Likewise.
21523 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21524 (CFLAGS-scandir64.c): Likewise.
21525 (CFLAGS-scandir-tail.c): Likewise.
21526 (CFLAGS-scandir64-tail.c): Likewise.
21527 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21528 (CFLAGS-dl-tunables.c): Likewise.
21529 (CFLAGS-dl-runtime.c): Likewise.
21530 (CFLAGS-dl-lookup.c): Likewise.
21531 (CFLAGS-dl-iterate-phdr.c): Likewise.
21532 (CFLAGS-vismain.c): Likewise.
21533 (CFLAGS-tst-linkall-static.c): Likewise.
21534 (CFLAGS-tst-linkall-static.c): Likewise.
21535 (CPPFLAGS-dl-load.c): Likewise.
21536 (CFLAGS-ldconfig.c): Likewise.
21537 (CFLAGS-dl-cache.c): Likewise.
21538 (CFLAGS-cache.c): Likewise.
21539 (CFLAGS-rtld.c): Likewise.
21540 (CFLAGS-multiload.c): Likewise.
21541 (CFLAGS-filtmod1.c): Likewise.
21542 (CFLAGS-tst-align.c): Likewise.
21543 (CFLAGS-tst-align2.c): Likewise.
21544 (CFLAGS-tst-alignmod.c): Likewise.
21545 (CFLAGS-tst-alignmod2.c): Likewise.
21546 (CPPFLAGS-tst-execstack.c): Likewise.
21547 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21548 (CFLAGS-tst-latepthreadmod.c): Likewise.
21549 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21550 (CFLAGS-getgrnam_r.c): Likewise.
21551 (CFLAGS-getgrent_r.c): Likewise.
21552 (CFLAGS-getgrent.c): Likewise.
21553 (CFLAGS-fgetgrent.c): Likewise.
21554 (CFLAGS-fgetgrent_r.c): Likewise.
21555 (CFLAGS-putgrent.c): Likewise.
21556 (CFLAGS-initgroups.c): Likewise.
21557 (CFLAGS-getgrgid.c): Likewise.
21558 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21559 (CFLAGS-getsgent.c): Likewise.
21560 (CFLAGS-fgetsgent.c): Likewise.
21561 (CFLAGS-fgetsgent_r.c): Likewise.
21562 (CFLAGS-putsgent.c): Likewise.
21563 (CFLAGS-getsgnam.c): Likewise.
21564 (CFLAGS-getsgnam_r.c): Likewise.
21565 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21566 (CFLAGS-iconv_charmap.c): Likewise.
21567 (CFLAGS-dummy-repertoire.c): Likewise.
21568 (CFLAGS-charmap.c): Likewise.
21569 (CFLAGS-linereader.c): Likewise.
21570 (CFLAGS-simple-hash.c): Likewise.
21571 (CFLAGS-gconv_conf.c): Likewise.
21572 (CFLAGS-iconvconfig.c): Likewise.
21573 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21574 (CFLAGS-gethstbyad.c): Likewise.
21575 (CFLAGS-gethstbynm_r.c): Likewise.
21576 (CFLAGS-gethstbynm.c): Likewise.
21577 (CFLAGS-gethstbynm2_r.c): Likewise.
21578 (CFLAGS-gethstbynm2.c): Likewise.
21579 (CFLAGS-gethstent_r.c): Likewise.
21580 (CFLAGS-gethstent.c): Likewise.
21581 (CFLAGS-rcmd.c): Likewise.
21582 (CFLAGS-getnetbynm_r.c): Likewise.
21583 (CFLAGS-getnetbynm.c): Likewise.
21584 (CFLAGS-getnetbyad_r.c): Likewise.
21585 (CFLAGS-getnetbyad.c): Likewise.
21586 (CFLAGS-getnetent_r.c): Likewise.
21587 (CFLAGS-getnetent.c): Likewise.
21588 (CFLAGS-getaliasent_r.c): Likewise.
21589 (CFLAGS-getaliasent.c): Likewise.
21590 (CFLAGS-getrpcent_r.c): Likewise.
21591 (CFLAGS-getrpcent.c): Likewise.
21592 (CFLAGS-getservent_r.c): Likewise.
21593 (CFLAGS-getservent.c): Likewise.
21594 (CFLAGS-getprtent_r.c): Likewise.
21595 (CFLAGS-getprtent.c): Likewise.
21596 (CFLAGS-either_ntoh.c): Likewise.
21597 (CFLAGS-either_hton.c): Likewise.
21598 (CFLAGS-getnetgrent.c): Likewise.
21599 (CFLAGS-getnetgrent_r.c): Likewise.
21600 (CFLAGS-tst-checks-posix.c): Likewise.
21601 (CFLAGS-tst-sockaddr.c): Likewise.
21602 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21603 (CFLAGS-tst-translit.c): Likewise.
21604 (CFLAGS-tst-gettext2.c): Likewise.
21605 (CFLAGS-tst-codeset.c): Likewise.
21606 (CFLAGS-tst-gettext3.c): Likewise.
21607 (CFLAGS-tst-gettext4.c): Likewise.
21608 (CFLAGS-tst-gettext5.c): Likewise.
21609 (CFLAGS-tst-gettext6.c): Likewise.
21610 * io/Makefile (CFLAGS-open.c): Likewise.
21611 (CFLAGS-open64.c): Likewise.
21612 (CFLAGS-creat.c): Likewise.
21613 (CFLAGS-creat64.c): Likewise.
21614 (CFLAGS-fcntl.c): Likewise.
21615 (CFLAGS-poll.c): Likewise.
21616 (CFLAGS-ppoll.c): Likewise.
21617 (CFLAGS-lockf.c): Likewise.
21618 (CFLAGS-statfs.c): Likewise.
21619 (CFLAGS-fstatfs.c): Likewise.
21620 (CFLAGS-statvfs.c): Likewise.
21621 (CFLAGS-fstatvfs.c): Likewise.
21622 (CFLAGS-fts.c): Likewise.
21623 (CFLAGS-fts64.c): Likewise.
21624 (CFLAGS-ftw.c): Likewise.
21625 (CFLAGS-ftw64.c): Likewise.
21626 (CFLAGS-lockf.c): Likewise.
21627 (CFLAGS-posix_fallocate.c): Likewise.
21628 (CFLAGS-posix_fallocate64.c): Likewise.
21629 (CFLAGS-fallocate.c): Likewise.
21630 (CFLAGS-fallocate64.c): Likewise.
21631 (CFLAGS-read.c): Likewise.
21632 (CFLAGS-write.c): Likewise.
21633 (CFLAGS-test-stat.c): Likewise.
21634 (CFLAGS-test-lfs.c): Likewise.
21635 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21636 (CFLAGS-fputc.c): Likewise.
21637 (CFLAGS-fputwc.c): Likewise.
21638 (CFLAGS-freopen64.c): Likewise.
21639 (CFLAGS-freopen.c): Likewise.
21640 (CFLAGS-fseek.c): Likewise.
21641 (CFLAGS-fseeko64.c): Likewise.
21642 (CFLAGS-fseeko.c): Likewise.
21643 (CFLAGS-ftello64.c): Likewise.
21644 (CFLAGS-ftello.c): Likewise.
21645 (CFLAGS-fwide.c): Likewise.
21646 (CFLAGS-genops.c): Likewise.
21647 (CFLAGS-getc.c): Likewise.
21648 (CFLAGS-getchar.c): Likewise.
21649 (CFLAGS-getwc.c): Likewise.
21650 (CFLAGS-getwchar.c): Likewise.
21651 (CFLAGS-iofclose.c): Likewise.
21652 (CFLAGS-iofflush.c): Likewise.
21653 (CFLAGS-iofgetpos64.c): Likewise.
21654 (CFLAGS-iofgetpos.c): Likewise.
21655 (CFLAGS-iofgets.c): Likewise.
21656 (CFLAGS-iofgetws.c): Likewise.
21657 (CFLAGS-iofputs.c): Likewise.
21658 (CFLAGS-iofputws.c): Likewise.
21659 (CFLAGS-iofread.c): Likewise.
21660 (CFLAGS-iofsetpos64.c): Likewise.
21661 (CFLAGS-iofsetpos.c): Likewise.
21662 (CFLAGS-ioftell.c): Likewise.
21663 (CFLAGS-iofwrite.c): Likewise.
21664 (CFLAGS-iogetdelim.c): Likewise.
21665 (CFLAGS-iogetline.c): Likewise.
21666 (CFLAGS-iogets.c): Likewise.
21667 (CFLAGS-iogetwline.c): Likewise.
21668 (CFLAGS-ioputs.c): Likewise.
21669 (CFLAGS-ioseekoff.c): Likewise.
21670 (CFLAGS-ioseekpos.c): Likewise.
21671 (CFLAGS-iosetbuffer.c): Likewise.
21672 (CFLAGS-iosetvbuf.c): Likewise.
21673 (CFLAGS-ioungetc.c): Likewise.
21674 (CFLAGS-ioungetwc.c): Likewise.
21675 (CFLAGS-oldfileops.c): Likewise.
21676 (CFLAGS-oldiofclose.c): Likewise.
21677 (CFLAGS-oldiofgetpos64.c): Likewise.
21678 (CFLAGS-oldiofgetpos.c): Likewise.
21679 (CFLAGS-oldiofsetpos64.c): Likewise.
21680 (CFLAGS-oldiofsetpos.c): Likewise.
21681 (CFLAGS-peekc.c): Likewise.
21682 (CFLAGS-putc.c): Likewise.
21683 (CFLAGS-putchar.c): Likewise.
21684 (CFLAGS-putwc.c): Likewise.
21685 (CFLAGS-putwchar.c): Likewise.
21686 (CFLAGS-rewind.c): Likewise.
21687 (CFLAGS-wfileops.c): Likewise.
21688 (CFLAGS-wgenops.c): Likewise.
21689 (CFLAGS-oldiofopen.c): Likewise.
21690 (CFLAGS-iofopen.c): Likewise.
21691 (CFLAGS-iofopen64.c): Likewise.
21692 (CFLAGS-oldtmpfile.c): Likewise.
21693 (CFLAGS-tst_putwc.c): Likewise.
21694 * locale/Makefile (CFLAGS-md5.c): Likewise.
21695 (CFLAGS-charmap.c): Likewise.
21696 (CFLAGS-locfile.c): Likewise.
21697 (CFLAGS-charmap-dir.c): Likewise.
21698 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21699 (CFLAGS-getpt.c): Likewise.
21700 (CFLAGS-pt_chown.c): Likewise.
21701 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21702 (CFLAGS-obstack.c): Likewise.
21703 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21704 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21705 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21706 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21707 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21708 (CFLAGS-test-tgmath.c): Likewise.
21709 (CFLAGS-test-tgmath2.c): Likewise.
21710 (CFLAGS-test-tgmath-ret.c): Likewise.
21711 (CFLAGS-test-powl.c): Likewise.
21712 (CFLAGS-test-snan.c): Likewise.
21713 (CFLAGS-test-signgam-finite.c): Likewise.
21714 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21715 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21716 (CFLAGS-test-signgam-uchar.c): Likewise.
21717 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21718 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21719 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21720 (CFLAGS-test-signgam-uint.c): Likewise.
21721 (CFLAGS-test-signgam-uint-init.c): Likewise.
21722 (CFLAGS-test-signgam-uint-static.c): Likewise.
21723 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21724 (CFLAGS-test-signgam-ullong.c): Likewise.
21725 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21726 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21727 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21728 (CFLAGS-test-math-cxx11.cc): Likewise.
21729 (CFLAGS-test-math-isinff.cc): Likewise.
21730 (CFLAGS-test-math-iszero.cc): Likewise.
21731 (CFLAGS-test-math-issignaling.cc): Likewise.
21732 (CFLAGS-test-math-iscanonical.cc): Likewise.
21733 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21734 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21735 (CFLAGS-test-flt-eval-method.c): Likewise.
21736 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21737 (CFLAGS-test-finite-macros.c): Likewise.
21738 * misc/Makefile (CFLAGS-select.c): Likewise.
21739 (CFLAGS-tsearch.c): Likewise.
21740 (CFLAGS-lsearch.c): Likewise.
21741 (CFLAGS-pselect.c): Likewise.
21742 (CFLAGS-readv.c): Likewise.
21743 (CFLAGS-writev.c): Likewise.
21744 (CFLAGS-preadv.c): Likewise.
21745 (CFLAGS-preadv64.c): Likewise.
21746 (CFLAGS-pwritev.c): Likewise.
21747 (CFLAGS-pwritev64.c): Likewise.
21748 (CFLAGS-preadv2.c): Likewise.
21749 (CFLAGS-preadv64v2.c): Likewise.
21750 (CFLAGS-pwritev2.c): Likewise.
21751 (CFLAGS-pwritev64v2.c): Likewise.
21752 (CFLAGS-usleep.c): Likewise.
21753 (CFLAGS-syslog.c): Likewise.
21754 (CFLAGS-error.c): Likewise.
21755 (CFLAGS-getpass.c): Likewise.
21756 (CFLAGS-mkstemp.c): Likewise.
21757 (CFLAGS-mkstemp64.c): Likewise.
21758 (CFLAGS-getsysstats.c): Likewise.
21759 (CFLAGS-getusershell.c): Likewise.
21760 (CFLAGS-err.c): Likewise.
21761 (CFLAGS-tst-tsearch.c): Likewise.
21762 (CFLAGS-msync.c): Likewise.
21763 (CFLAGS-fdatasync.c): Likewise.
21764 (CFLAGS-fsync.c): Likewise.
21765 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21766 (CFLAGS-unwind.c): Likewise.
21767 (CFLAGS-unwind-forcedunwind.c): Likewise.
21768 (CFLAGS-pthread_cancel.c): Likewise.
21769 (CFLAGS-pthread_setcancelstate.c): Likewise.
21770 (CFLAGS-pthread_setcanceltype.c): Likewise.
21771 (CFLAGS-cancellation.c): Likewise.
21772 (CFLAGS-libc-cancellation.c): Likewise.
21773 (CFLAGS-pthread_exit.c): Likewise.
21774 (CFLAGS-forward.c): Likewise.
21775 (CFLAGS-pthread_testcancel.c): Likewise.
21776 (CFLAGS-pthread_join.c): Likewise.
21777 (CFLAGS-pthread_timedjoin.c): Likewise.
21778 (CFLAGS-pthread_once.c): Likewise.
21779 (CFLAGS-pthread_cond_wait.c): Likewise.
21780 (CFLAGS-sem_wait.c): Likewise.
21781 (CFLAGS-sem_timedwait.c): Likewise.
21782 (CFLAGS-fcntl.c): Likewise.
21783 (CFLAGS-lockf.c): Likewise.
21784 (CFLAGS-pread.c): Likewise.
21785 (CFLAGS-pread64.c): Likewise.
21786 (CFLAGS-pwrite.c): Likewise.
21787 (CFLAGS-pwrite64.c): Likewise.
21788 (CFLAGS-wait.c): Likewise.
21789 (CFLAGS-waitpid.c): Likewise.
21790 (CFLAGS-sigwait.c): Likewise.
21791 (CFLAGS-msgrcv.c): Likewise.
21792 (CFLAGS-msgsnd.c): Likewise.
21793 (CFLAGS-tcdrain.c): Likewise.
21794 (CFLAGS-open.c): Likewise.
21795 (CFLAGS-open64.c): Likewise.
21796 (CFLAGS-pause.c): Likewise.
21797 (CFLAGS-recv.c): Likewise.
21798 (CFLAGS-send.c): Likewise.
21799 (CFLAGS-accept.c): Likewise.
21800 (CFLAGS-sendto.c): Likewise.
21801 (CFLAGS-connect.c): Likewise.
21802 (CFLAGS-recvfrom.c): Likewise.
21803 (CFLAGS-recvmsg.c): Likewise.
21804 (CFLAGS-sendmsg.c): Likewise.
21805 (CFLAGS-close.c): Likewise.
21806 (CFLAGS-read.c): Likewise.
21807 (CFLAGS-write.c): Likewise.
21808 (CFLAGS-nanosleep.c): Likewise.
21809 (CFLAGS-sigsuspend.c): Likewise.
21810 (CFLAGS-msync.c): Likewise.
21811 (CFLAGS-fdatasync.c): Likewise.
21812 (CFLAGS-fsync.c): Likewise.
21813 (CFLAGS-pt-system.c): Likewise.
21814 (CFLAGS-tst-cleanup2.c): Likewise.
21815 (CFLAGS-tst-cleanupx2.c): Likewise.
21816 (CFLAGS-flockfile.c): Likewise.
21817 (CFLAGS-ftrylockfile.c): Likewise.
21818 (CFLAGS-funlockfile.c): Likewise.
21819 (CFLAGS-tst-initializers1.c): Likewise.
21820 (CFLAGS-tst-initializers1-c89.c): Likewise.
21821 (CFLAGS-tst-initializers1-c99.c): Likewise.
21822 (CFLAGS-tst-initializers1-c11.c): Likewise.
21823 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21824 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21825 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21826 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21827 (CFLAGS-nscd_getgr_r.c): Likewise.
21828 (CFLAGS-nscd_gethst_r.c): Likewise.
21829 (CFLAGS-nscd_getai.c): Likewise.
21830 (CFLAGS-nscd_initgroups.c): Likewise.
21831 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21832 (CFLAGS-pause.c): Likewise.
21833 (CFLAGS-pread.c): Likewise.
21834 (CFLAGS-pread64.c): Likewise.
21835 (CFLAGS-pwrite.c): Likewise.
21836 (CFLAGS-pwrite64.c): Likewise.
21837 (CFLAGS-sleep.c): Likewise.
21838 (CFLAGS-wait.c): Likewise.
21839 (CFLAGS-waitid.c): Likewise.
21840 (CFLAGS-waitpid.c): Likewise.
21841 (CFLAGS-getopt.c): Likewise.
21842 (CFLAGS-wordexp.c): Likewise.
21843 (CFLAGS-sysconf.c): Likewise.
21844 (CFLAGS-pathconf.c): Likewise.
21845 (CFLAGS-fpathconf.c): Likewise.
21846 (CFLAGS-spawn.c): Likewise.
21847 (CFLAGS-spawnp.c): Likewise.
21848 (CFLAGS-spawni.c): Likewise.
21849 (CFLAGS-glob.c): Likewise.
21850 (CFLAGS-glob64.c): Likewise.
21851 (CFLAGS-getconf.c): Likewise.
21852 (CFLAGS-nanosleep.c): Likewise.
21853 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21854 (CFLAGS-getpwent.c): Likewise.
21855 (CFLAGS-getpw.c): Likewise.
21856 (CFLAGS-fgetpwent_r.c): Likewise.
21857 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21858 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21859 (CFLAGS-mq_timedreceive.c): Likewise.
21860 (CFLAGS-mq_timedsend.c): Likewise.
21861 (CFLAGS-clock_nanosleep.c): Likewise.
21862 (CFLAGS-librt-cancellation.c): Likewise.
21863 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21864 (CFLAGS-getspent.c): Likewise.
21865 (CFLAGS-fgetspent.c): Likewise.
21866 (CFLAGS-fgetspent_r.c): Likewise.
21867 (CFLAGS-putspent.c): Likewise.
21868 (CFLAGS-getspnam.c): Likewise.
21869 (CFLAGS-getspnam_r.c): Likewise.
21870 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21871 (CFLAGS-sigsuspend.c): Likewise.
21872 (CFLAGS-sigtimedwait.c): Likewise.
21873 (CFLAGS-sigwait.c): Likewise.
21874 (CFLAGS-sigwaitinfo.c): Likewise.
21875 (CFLAGS-sigreturn.c): Likewise.
21876 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21877 (CFLAGS-vfwprintf.c): Likewise.
21878 (CFLAGS-tmpfile.c): Likewise.
21879 (CFLAGS-tmpfile64.c): Likewise.
21880 (CFLAGS-tempname.c): Likewise.
21881 (CFLAGS-psignal.c): Likewise.
21882 (CFLAGS-vprintf.c): Likewise.
21883 (CFLAGS-cuserid.c): Likewise.
21884 (CFLAGS-errlist.c): Likewise.
21885 (CFLAGS-siglist.c): Likewise.
21886 (CFLAGS-scanf15.c): Likewise.
21887 (CFLAGS-scanf17.c): Likewise.
21888 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21889 (CFLAGS-msort.c): Likewise.
21890 (CFLAGS-qsort.c): Likewise.
21891 (CFLAGS-system.c): Likewise.
21892 (CFLAGS-fmtmsg.c): Likewise.
21893 (CFLAGS-strfmon.c): Likewise.
21894 (CFLAGS-strfmon_l.c): Likewise.
21895 (CFLAGS-strfromd.c): Likewise.
21896 (CFLAGS-strfromf.c): Likewise.
21897 (CFLAGS-strfroml.c): Likewise.
21898 (CFLAGS-tst-bsearch.c): Likewise.
21899 (CFLAGS-tst-qsort.c): Likewise.
21900 (CFLAGS-tst-makecontext2.c): Likewise.
21901 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21902 (CFLAGS-xnlm_prot.c): Likewise.
21903 (CFLAGS-xrstat.c): Likewise.
21904 (CFLAGS-xyppasswd.c): Likewise.
21905 (CFLAGS-xklm_prot.c): Likewise.
21906 (CFLAGS-xrex.c): Likewise.
21907 (CFLAGS-xsm_inter.c): Likewise.
21908 (CFLAGS-xmount.c): Likewise.
21909 (CFLAGS-xrusers.c): Likewise.
21910 (CFLAGS-xspray.c): Likewise.
21911 (CFLAGS-xnfs_prot.c): Likewise.
21912 (CFLAGS-xrquota.c): Likewise.
21913 (CFLAGS-xkey_prot.c): Likewise.
21914 (CFLAGS-auth_unix.c): Likewise.
21915 (CFLAGS-key_call.c): Likewise.
21916 (CFLAGS-pmap_rmt.c): Likewise.
21917 (CFLAGS-clnt_perr.c): Likewise.
21918 (CFLAGS-openchild.c): Likewise.
21919 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21920 (CFLAGS-msgsnd.c): Likewise.
21921 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21922 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21923 (CFLAGS-tzset.c): Likewise.
21924 (CFLAGS-getdate.c): Likewise.
21925 (CFLAGS-test_time.c): Likewise.
21926 (CPPFLAGS-tst-tzname.c): Likewise.
21927 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21928 (CFLAGS-zic.c): Likewise.
21929 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21930 (CFLAGS-wcswidth.c): Likewise.
21931 (CFLAGS-wcstol.c): Likewise.
21932 (CFLAGS-wcstoul.c): Likewise.
21933 (CFLAGS-wcstoll.c): Likewise.
21934 (CFLAGS-wcstoull.c): Likewise.
21935 (CFLAGS-wcstod.c): Likewise.
21936 (CFLAGS-wcstold.c): Likewise.
21937 (CFLAGS-wcstof128.c): Likewise.
21938 (CFLAGS-wcstof.c): Likewise.
21939 (CFLAGS-wcstol_l.c): Likewise.
21940 (CFLAGS-wcstoul_l.c): Likewise.
21941 (CFLAGS-wcstoll_l.c): Likewise.
21942 (CFLAGS-wcstoull_l.c): Likewise.
21943 (CFLAGS-wcstod_l.c): Likewise.
21944 (CFLAGS-wcstold_l.c): Likewise.
21945 (CFLAGS-wcstof128_l.c): Likewise.
21946 (CFLAGS-wcstof_l.c): Likewise.
21947 (CPPFLAGS-tst-wchar-h.c): Likewise.
21948 (CPPFLAGS-wcstold_l.c): Likewise.
21949
21950 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21951
21952 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21953
21954 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21955 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21956
21957 * manual/tunables.texi (Hardware Capability Tunables): Document
21958 glibc.tune.cached_memopt.
21959 * sysdeps/powerpc/cpu-features.c: New file.
21960 * sysdeps/powerpc/cpu-features.h: New file.
21961 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21962 _dl_powerpc_cpu_features.
21963 * sysdeps/powerpc/dl-tunables.list: New file.
21964 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21965 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21966 (INIT_ARCH): Initialize use_aligned_memopt.
21967 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21968 IS_IN(rtld))]: Restrict dl_platform_init availability and
21969 initialize CPU features used by tunables.
21970 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21971 Add memcpy-power8-cached.
21972 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21973 __memcpy_power8_cached.
21974 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21975 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21976 New file.
21977
21978 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21979
21980 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21981 (CFLAGS-noinl-tester.c): Likewise.
21982 (CFLAGS-tst-strlen.c): Likewise.
21983 (CFLAGS-stratcliff.c): Likewise.
21984 (CFLAGS-test-ffs.c): Likewise.
21985 (CFLAGS-tst-inlcall.c): Likewise.
21986 (CFLAGS-tst-xbzero-opt.c): Likewise.
21987 (CFLAGS-memcpy.c): Likewise.
21988 (CFLAGS-wordcopy.c): Likewise.
21989
21990 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21991
21992 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21993 Store r15 on stack and add cfi rule.
21994 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21995 Likewise.
21996
21997 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21998
21999 [BZ #22577]
22000 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
22001 call.
22002
22003 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22004
22005 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22006 Add s_sinf-sse2 and s_sinf-fma.
22007 (CFLAGS-s_sinf-fma.c): New.
22008 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
22009 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22010 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22011
22012 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22013
22014 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22015
22016 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22017
22018 [BZ #22568]
22019 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22020 part of result to imaginary part of argument if it is zero and the
22021 real part of the argument is not finite.
22022 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22023 of result to real part of argument if it is zero and the imaginary
22024 part of the argument is not finite.
22025
22026 2017-12-07 Mike FABIAN <mfabian@redhat.com>
22027
22028 [BZ #22524]
22029 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22030 and to the list of locales to be built for testing.
22031 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22032 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22033 and build the collation rules upon that.
22034
22035 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22036
22037 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22038 * manual/math.texi (Mathematics): Document support for _Float32.
22039 * math/Makefile (test-types): Add float32.
22040 * math/Versions (GLIBC_2.27): Add _Float32 functions.
22041 * stdlib/Versions (GLIBC_2.27): Likewise.
22042 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22043 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22044 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22045 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22046 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22047 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22048 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22049 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22050 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22051 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22052 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22053 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22054 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22055 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22056 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22057 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22058 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22059 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22060 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22061 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22062 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22063 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22064 Likewise.
22065 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22066 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22067 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22068 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22069 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22071 Likewise.
22072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22073 Likewise.
22074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22075 Likewise.
22076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22077 Likewise.
22078
22079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22080 Likewise.
22081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22082 Likewise.
22083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22084 Likewise.
22085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22086 Likewise.
22087 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22088 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22089 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22090 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22091 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22092 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22093 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22094 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22095 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22096 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22097 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22098 Likewise.
22099 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22100 Likewise.
22101 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22102 Likewise.
22103 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22104 Likewise.
22105 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22106 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22107 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22108 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22109 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22110 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22111 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22112 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22113
22114 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22115
22116 * stdlib/strtof.c: Include <bits/floatn.h>
22117 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22118 and later undefine as macro. Define as weak alias if
22119 [!USE_WIDE_CHAR].
22120 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22121 and later undefine as macro. Define as weak alias if
22122 [USE_WIDE_CHAR].
22123 * stdlib/strtof_l.c: Include <bits/floatn.h>
22124 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22125 and later undefine as macro. Define as weak alias if
22126 [!USE_WIDE_CHAR].
22127 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22128 and later undefine as macro. Define as weak alias if
22129 [USE_WIDE_CHAR].
22130
22131 * stdlib/strfromf.c: Include <bits/floatn.h>.
22132 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22133 and later undefine as macro and define as weak alias.
22134
22135 * math/test-float32.h: New file.
22136
22137 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22138 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22139 (libm_alias_float_other_r): Create f32 alias.
22140 (libm_alias_float_r): Use semicolon before call to
22141 libm_alias_float_other_r.
22142
22143 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22144 second argument to libm_alias_float_other.
22145 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22146 second argument to libm_alias_float_other.
22147 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22148 argument to libm_alias_float_other.
22149
22150 [BZ #22561]
22151 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22152 real part of result for argument 0 + i * NaN.
22153 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22154 results for tests of 0 + i * NaN.
22155
22156 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22157
22158 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22159
22160 2017-12-06 David S. Miller <davem@davemloft.net>
22161
22162 * sysdeps/sparc/fpu/libm-test-ulps: Update
22163 exp_{downward,towardzero,upward} ulps.
22164
22165 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22166
22167 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22168 variables static.
22169
22170 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22171 (Y0_2D): Likewise.
22172 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22173 (Y0_2D): Likewise.
22174 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22175 (Y0_2D): Likewise.
22176 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22177 (Y0_2D): Likewise.
22178
22179 2017-12-06 Mike FABIAN <mfabian@redhat.com>
22180
22181 [BZ #22515]
22182 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22183 and to the list of locales to be built for testing.
22184 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22185 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22186 and build the collation rules upon that.
22187
22188 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22189
22190 * NEWS: Add sinf to list of optimized functions.
22191
22192 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22193
22194 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22195 (__HAVE_FLOAT32X): Likewise.
22196 * manual/math.texi (Mathematics): Document support for _Float64
22197 and _Float32x.
22198 * math/Makefile (test-types): Add float64 and float32x.
22199 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22200 functions.
22201 * stdlib/Versions (GLIBC_2.27): Likewise.
22202 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22203 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22204 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22205 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22206 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22207 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22208 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22209 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22210 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22211 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22212 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22213 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22214 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22215 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22216 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22217 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22218 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22219 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22220 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22221 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22222 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22223 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22224 Likewise.
22225 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22226 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22227 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22228 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22229 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22231 Likewise.
22232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22233 Likewise.
22234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22235 Likewise.
22236 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22237 Likewise.
22238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22239 Likewise.
22240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22241 Likewise.
22242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22243 Likewise.
22244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22245 Likewise.
22246 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22247 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22248 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22249 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22250 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22251 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22252 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22253 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22254 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22255 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22256 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22257 Likewise.
22258 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22259 Likewise.
22260 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22261 Likewise.
22262 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22263 Likewise.
22264 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22265 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22266 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22267 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22268 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22269 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22270 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22271 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22272
22273 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22274
22275 * bits/floatn-common.h: Include <bits/long-double.h>.
22276 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22277 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22278 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22279 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22280 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22281 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22282 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22283 (__builtin_huge_valf64): Use __builtin_huge_vall.
22284 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22285 (__builtin_inff64): Use __builtin_infl.
22286 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22287 (__builtin_nanf64): Use __builtin_nanl.
22288 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22289 (__builtin_nansf64): Use __builtin_nansl.
22290
22291 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22292 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22293 Carlos O'Donnell <carlos@redhat.com>
22294
22295 * elf/dl-tunables.list: Add elision parameters.
22296 * manual/tunables.texi: Add entries about elision tunable.
22297 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22298 Add callback functions to dynamically enable/disable elision.
22299 Add multiple callbacks functions to set elision parameters.
22300 Deleted __libc_enable_secure check.
22301 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22302 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22303 * configure: Regenerated.
22304 * configure.ac: Option enable_lock_elision was deleted.
22305 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22306 * config.make.in: Remove references to enable_lock_elision.
22307 * manual/install.texi: Elision configure option was removed.
22308 * INSTALL: Regenerated to remove enable_lock_elision.
22309 * nptl/Makefile:
22310 Disable elision so it can verify error case for destroying a mutex.
22311 * sysdeps/powerpc/nptl/elide.h:
22312 Cleanup ENABLE_LOCK_ELISION check.
22313 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22314 * sysdeps/s390/configure: Regenerated.
22315 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22316 * nptl/tst-mutex8.c:
22317 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22318 * sysdeps/powerpc/powerpc32/sysdep.h:
22319 Deleted all ENABLE_LOCK_ELISION checks.
22320 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22321 * sysdeps/powerpc/sysdep.h: Likewise.
22322 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22323 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22324 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22325 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22326 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22327 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22328 enable-lock-elision.
22329
22330 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22331
22332 * stdlib/strtod.c: Include <bits/floatn.h>.
22333 (BUILD_DOUBLE): New macro.
22334 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22335 (strtof64): Define and later undefine as macro. Define as weak
22336 alias if [!USE_WIDE_CHAR].
22337 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22338 (wcstof64): Define and later undefine as macro. Define as weak
22339 alias if [USE_WIDE_CHAR].
22340 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22341 (strtof32x): Define and later undefine as macro. Define as weak
22342 alias if [!USE_WIDE_CHAR].
22343 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22344 (wcstof32x): Define and later undefine as macro. Define as weak
22345 alias if [USE_WIDE_CHAR].
22346 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22347 (BUILD_DOUBLE): New macro.
22348 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22349 (strtof64_l): Define and later undefine as macro. Define as weak
22350 alias if [!USE_WIDE_CHAR].
22351 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22352 (wcstof64_l): Define and later undefine as macro. Define as weak
22353 alias if [USE_WIDE_CHAR].
22354 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22355 (strtof32x_l): Define and later undefine as macro. Define as weak
22356 alias if [!USE_WIDE_CHAR].
22357 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22358 (wcstof32x_l): Define and later undefine as macro. Define as weak
22359 alias if [USE_WIDE_CHAR].
22360
22361 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22362
22363 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22364 (reduced): Use ones as double instead of integer.
22365
22366 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22367
22368 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22369
22370 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22371
22372 * stdlib/strfromd.c: Include <bits/floatn.h>.
22373 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22374 and later undefine as macro and define as weak alias.
22375 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22376 Likewise.
22377
22378 * math/test-float32x.h: New file.
22379 * math/test-float64.h: Likewise.
22380
22381 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22382 (libm_alias_double_other_r_f64): New macro.
22383 (libm_alias_double_other_r_f32x): Likewise.
22384 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22385 libm_alias_double_other_r_f32x.
22386 (libm_alias_double_r): Use semicolon before call to
22387 libm_alias_double_other_r.
22388 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22389 <bits/floatn.h>.
22390 (libm_alias_double_other_r_f64): New macro.
22391 (libm_alias_double_other_r_f32x): Likewise.
22392 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22393 libm_alias_double_other_r_f32x.
22394
22395 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22396
22397 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22398 int.
22399 (SINF_FUNC): Likewise. Replace floor with simple casts.
22400
22401 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22402
22403 [BZ #22517]
22404 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22405 and to the list of locales to be built for testing.
22406 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22407 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22408 and build the collation rules upon that.
22409
22410 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22411
22412 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22413 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22414 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22415 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22416 instead of __insn__xxx.
22417 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22418 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22419 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22420 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22421 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22422 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22423
22424 2017-12-05 Florian Weimer <fweimer@redhat.com>
22425
22426 Linux: Implement interfaces for memory protection keys
22427 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22428 xsignal, xsysconf.
22429 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22430 * support/xunistd.h (xsysconf): Declare.
22431 * support/xraise.c: New file.
22432 * support/xsigaction.c: Likewise.
22433 * support/xsignal.c: Likewise.
22434 * support/xsysconf.c: Likewise.
22435 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22436 pkey_set, pkey_get, pkey_mprotect.
22437 [misc] (tests): Add tst-pkey.
22438 (tst-pkey): Link with -lpthread.
22439 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22440 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22441 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22442 (PKEY_DISABLE_WRITE): Define.
22443 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22444 Declare.
22445 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22446 (SEGV_PKUERR): Add.
22447 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22448 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22449 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22450 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22451 Add.
22452 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22453 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22454 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22455 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22456 * sysdeps/unix/sysv/linux/**.abilist: Update.
22457
22458 2017-12-05 Florian Weimer <fweimer@redhat.com>
22459
22460 * support/tst-test_compare.c (subprocess): Use long long instead
22461 of long argument for consistent type width across 32-bit and
22462 64-bit architectures.
22463 (do_test): Adjust expected output.
22464
22465 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22466
22467 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22468 (cosf): Define using libm_alias_float.
22469 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22470 (fabsf): Define using libm_alias_float.
22471 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22472 (fmaf): Define using libm_alias_float.
22473 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22474 (rintf): Define using libm_alias_float.
22475 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22476 (sinf): Define using libm_alias_float.
22477 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22478 <libm-alias-float.h>.
22479 (modff): Define using libm_alias_float.
22480 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22481 <libm-alias-float.h>.
22482 (logbf): Define using libm_alias_float.
22483 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22484 <libm-alias-float.h>.
22485 (ceilf): Define using libm_alias_float.
22486 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22487 <libm-alias-float.h>.
22488 (copysignf): Define using libm_alias_float.
22489 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22490 <libm-alias-float.h>.
22491 (floorf): Define using libm_alias_float.
22492 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22493 <libm-alias-float.h>.
22494 (llrintf): Define using libm_alias_float.
22495 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22496 <libm-alias-float.h>.
22497 (llroundf): Define using libm_alias_float.
22498 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22499 <libm-alias-float.h>.
22500 (lrintf): Define using libm_alias_float.
22501 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22502 <libm-alias-float.h>.
22503 (lroundf): Define using libm_alias_float.
22504 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22505 <libm-alias-float.h>.
22506 (nearbyintf): Define using libm_alias_float.
22507 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22508 <libm-alias-float.h>.
22509 (rintf): Define using libm_alias_float.
22510 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22511 <libm-alias-float.h>.
22512 (roundf): Define using libm_alias_float.
22513 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22514 <libm-alias-float.h>.
22515 (truncf): Define using libm_alias_float.
22516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22517 Include <libm-alias-float.h>.
22518 (ceilf): Define using libm_alias_float.
22519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22520 Include <libm-alias-float.h>.
22521 (copysignf): Define using libm_alias_float.
22522 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22523 Include <libm-alias-float.h>.
22524 (floorf): Define using libm_alias_float.
22525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22526 Include <libm-alias-float.h>.
22527 (llrintf): Define using libm_alias_float.
22528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22529 Include <libm-alias-float.h>.
22530 (llroundf): Define using libm_alias_float.
22531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22532 Include <libm-alias-float.h>.
22533 (logbf): Define using libm_alias_float.
22534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22535 Include <libm-alias-float.h>.
22536 (lrintf): Define using libm_alias_float.
22537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22538 Include <libm-alias-float.h>.
22539 (lroundf): Define using libm_alias_float.
22540 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22541 Include <libm-alias-float.h>.
22542 (modff): Define using libm_alias_float.
22543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22544 Include <libm-alias-float.h>.
22545 (roundf): Define using libm_alias_float.
22546 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22547 Include <libm-alias-float.h>.
22548 (truncf): Define using libm_alias_float.
22549 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22550 <libm-alias-float.h>.
22551 (llrintf): Define using libm_alias_float.
22552 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22553 <libm-alias-float.h>.
22554 (llroundf): Define using libm_alias_float.
22555 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22556 <libm-alias-float.h>.
22557 (ceilf): Define using libm_alias_float.
22558 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22559 <libm-alias-float.h>.
22560 (floorf): Define using libm_alias_float.
22561 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22562 <libm-alias-float.h>.
22563 (llroundf): Define using libm_alias_float.
22564 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22565 <libm-alias-float.h>.
22566 (lroundf): Define using libm_alias_float.
22567 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22568 <libm-alias-float.h>.
22569 (roundf): Define using libm_alias_float.
22570 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22571 <libm-alias-float.h>.
22572 (truncf): Define using libm_alias_float.
22573 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22574 <libm-alias-float.h>.
22575 (copysignf): Define using libm_alias_float.
22576 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22577 <libm-alias-float.h>.
22578 (llrintf): Define using libm_alias_float.
22579 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22580 <libm-alias-float.h>.
22581 (llroundf): Define using libm_alias_float.
22582 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22583 <libm-alias-float.h>.
22584 (lrintf): Define using libm_alias_float.
22585 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22586 <libm-alias-float.h>.
22587 (lroundf): Define using libm_alias_float.
22588 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22589 <libm-alias-float.h>.
22590 (ceilf): Define using libm_alias_float.
22591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22592 <libm-alias-float.h>.
22593 (copysignf): Define using libm_alias_float.
22594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22595 <libm-alias-float.h>.
22596 (cosf): Define using libm_alias_float.
22597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22598 <libm-alias-float.h>.
22599 (floorf): Define using libm_alias_float.
22600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22601 <libm-alias-float.h>.
22602 (llrintf): Define using libm_alias_float.
22603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22604 <libm-alias-float.h>.
22605 (llroundf): Define using libm_alias_float.
22606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22607 <libm-alias-float.h>.
22608 (logbf): Define using libm_alias_float.
22609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22610 <libm-alias-float.h>.
22611 (modff): Define using libm_alias_float.
22612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22613 <libm-alias-float.h>.
22614 (roundf): Define using libm_alias_float.
22615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22616 <libm-alias-float.h>.
22617 (sinf): Define using libm_alias_float.
22618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22619 <libm-alias-float.h>.
22620 (truncf): Define using libm_alias_float.
22621 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22622 <libm-alias-float.h>.
22623 (ceilf): Define using libm_alias_float.
22624 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22625 <libm-alias-float.h>.
22626 (copysignf): Define using libm_alias_float.
22627 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22628 <libm-alias-float.h>.
22629 (floorf): Define using libm_alias_float.
22630 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22631 <libm-alias-float.h>.
22632 (llrintf): Define using libm_alias_float.
22633 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22634 <libm-alias-float.h>.
22635 (llroundf): Define using libm_alias_float.
22636 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22637 <libm-alias-float.h>.
22638 (nearbyintf): Define using libm_alias_float.
22639 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22640 <libm-alias-float.h>.
22641 (rintf): Define using libm_alias_float.
22642 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22643 <libm-alias-float.h>.
22644 (roundf): Define using libm_alias_float.
22645 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22646 <libm-alias-float.h>.
22647 (truncf): Define using libm_alias_float.
22648 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22649 <libm-alias-float.h>.
22650 (ceilf): Define using libm_alias_float.
22651 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22652 <libm-alias-float.h>.
22653 (floorf): Define using libm_alias_float.
22654 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22655 <libm-alias-float.h>.
22656 (llroundf): Define using libm_alias_float.
22657 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22658 <libm-alias-float.h>.
22659 (roundf): Define using libm_alias_float.
22660 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22661 <libm-alias-float.h>.
22662 (truncf): Define using libm_alias_float.
22663 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22664 <libm-alias-float.h>.
22665 (copysignf): Define using libm_alias_float.
22666 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22667 <libm-alias-float.h>.
22668 (llrintf): Define using libm_alias_float.
22669 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22670 <libm-alias-float.h>.
22671 (llroundf): Define using libm_alias_float.
22672 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22673 <libm-alias-float.h>.
22674 (cosf): Define using libm_alias_float.
22675 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22676 <libm-alias-float.h>.
22677 (llrintf): Define using libm_alias_float.
22678 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22679 <libm-alias-float.h>.
22680 (llroundf): Define using libm_alias_float.
22681 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22682 <libm-alias-float.h>.
22683 (sinf): Define using libm_alias_float.
22684
22685 2017-12-04 Florian Weimer <fweimer@redhat.com>
22686
22687 * support/check.h (TEST_COMPARE): Define.
22688 (support_test_compare_failure): Declare.
22689 * support/Makefile (libsupport-routines): Add
22690 support_test_compare_failure.
22691 (tests): Add tst-test_compare.
22692 * support /support_test_compare_failure.c: New file.
22693 * support/tst-test_compare.c: Likewise.
22694
22695 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22696
22697 [BZ #22527]
22698 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22699 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22700 available, this rewrite of the collation rules does reproduce
22701 the test file in the same order.
22702
22703 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22704
22705 [BZ #10580]
22706 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22707 digraphs in the month and day names. Using single code points for
22708 digraphs is deprecated. While there are dedicated Unicode
22709 codepoints, for the digraphs, these are included for backwards
22710 compatibility and modern texts use a sequence of Basic Latin
22711 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22712 This makes the month and day names agree exactly with CLDR now,
22713 CLDR does not use the single code points for the digraphs either.
22714
22715 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22716
22717 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22718
22719 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22720
22721 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22722 of floor.
22723
22724 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22725
22726 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22727 Define only for libc.so.
22728
22729 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22730
22731 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22732 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22733 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22734 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22735 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22736
22737 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22738
22739 [BZ #5997]
22740 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22741
22742 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22743
22744 [BZ libc/19170]
22745 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22746 PREINIT_FUNCTION_WEAK is nonzero.
22747 (gmon_initializer): New function. Put procedure label for it in
22748 .init_array section.
22749 (_init): Don't call PREINIT_FUNCTION.
22750 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22751 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22752 value when map argument is null.
22753
22754 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22755 depi instruction from PIC pc-relative sequence.
22756 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22757 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22758 (elf_machine_load_address): Likewise.
22759 (elf_machine_runtime_setup): Likewise.
22760
22761 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22762
22763 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22764 <libm-alias-double.h>.
22765 (logb): Define using libm_alias_double.
22766 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22767 <libm-alias-double.h>.
22768 (copysign): Define using libm_alias_double.
22769 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22770 <libm-alias-double.h>.
22771 (llrint): Define using libm_alias_double.
22772 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22773 <libm-alias-double.h>.
22774 (llround): Define using libm_alias_double.
22775 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22776 <libm-alias-double.h>.
22777 (lrint): Define using libm_alias_double.
22778 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22779 <libm-alias-double.h>.
22780 (lround): Define using libm_alias_double.
22781 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22782 Include <libm-alias-double.h>.
22783 (copysign): Define using libm_alias_double.
22784 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22785 Include <libm-alias-double.h>.
22786 (llrint): Define using libm_alias_double.
22787 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22788 Include <libm-alias-double.h>.
22789 (llround): Define using libm_alias_double.
22790 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22791 <libm-alias-double.h>.
22792 (logb): Define using libm_alias_double.
22793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22794 Include <libm-alias-double.h>.
22795 (lrint): Define using libm_alias_double.
22796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22797 Include <libm-alias-double.h>.
22798 (lround): Define using libm_alias_double.
22799 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22800 <libm-alias-double.h>.
22801 (llrint): Define using libm_alias_double.
22802 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22803 <libm-alias-double.h>.
22804 (llround): Define using libm_alias_double.
22805 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22806 <libm-alias-double.h>.
22807 (llround): Define using libm_alias_double.
22808 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22809 <libm-alias-double.h>.
22810 (lround): Define using libm_alias_double.
22811 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22812 <libm-alias-double.h>.
22813 (copysign): Define using libm_alias_double.
22814 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22815 <libm-alias-double.h>.
22816 (llrint): Define using libm_alias_double.
22817 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22818 <libm-alias-double.h>.
22819 (llround): Define using libm_alias_double.
22820 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22821 <libm-alias-double.h>.
22822 (lrint): Define using libm_alias_double.
22823 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22824 <libm-alias-double.h>.
22825 (lround): Define using libm_alias_double.
22826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22827 <libm-alias-double.h>.
22828 (copysign): Define using libm_alias_double.
22829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22830 <libm-alias-double.h>.
22831 (llrint): Define using libm_alias_double.
22832 (lrint): Likewise.
22833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22834 <libm-alias-double.h>.
22835 (llround): Define using libm_alias_double.
22836 (lround): Likewise.
22837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22838 <libm-alias-double.h>.
22839 (logb): Define using libm_alias_double.
22840 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22841 <libm-alias-double.h>.
22842 (copysign): Define using libm_alias_double.
22843 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22844 <libm-alias-double.h>.
22845 (llrint): Define using libm_alias_double.
22846 (lrint): Likewise.
22847 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22848 <libm-alias-double.h>.
22849 (llround): Define using libm_alias_double.
22850 (lround): Likewise.
22851 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22852 <libm-alias-double.h>.
22853 (llround): Define using libm_alias_double.
22854 (lround): Likewise.
22855 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22856 <libm-alias-double.h>.
22857 (copysign): Define using libm_alias_double.
22858 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22859 <libm-alias-double.h>.
22860 (llrint): Define using libm_alias_double.
22861 (lrint): Likewise.
22862 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22863 <libm-alias-double.h>.
22864 (llround): Define using libm_alias_double.
22865 (lround): Likewise.
22866 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22867 <libm-alias-double.h>.
22868 (llrint): Define using libm_alias_double.
22869 (lrint): Likewise.
22870 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22871 <libm-alias-double.h>.
22872 (llround): Define using libm_alias_double.
22873 (lround): Likewise.
22874
22875 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22876
22877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22878 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22879 compat symbol based on llround.
22880
22881 * sysdeps/powerpc/power7/fpu/s_logb.c
22882 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22883 symbol based on __logb, not on logb.
22884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22885 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22886 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22887 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22888
22889 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22890 (rint): Define using libm_alias_double.
22891 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22892 <libm-alias-double.h>.
22893 (modf): Define using libm_alias_double.
22894 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22895 <libm-alias-double.h>.
22896 (ceil): Define using libm_alias_double.
22897 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22898 <libm-alias-double.h>.
22899 (floor): Define using libm_alias_double.
22900 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22901 <libm-alias-double.h>.
22902 (nearbyint): Define using libm_alias_double.
22903 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22904 <libm-alias-double.h>.
22905 (rint): Define using libm_alias_double.
22906 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22907 <libm-alias-double.h>.
22908 (round): Define using libm_alias_double.
22909 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22910 <libm-alias-double.h>.
22911 (trunc): Define using libm_alias_double.
22912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22913 <libm-alias-double.h>.
22914 (ceil): Define using libm_alias_double.
22915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22916 Include <libm-alias-double.h>.
22917 (floor): Define using libm_alias_double.
22918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22919 <libm-alias-double.h>.
22920 (modf): Define using libm_alias_double.
22921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22922 Include <libm-alias-double.h>.
22923 (round): Define using libm_alias_double.
22924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22925 Include <libm-alias-double.h>.
22926 (trunc): Define using libm_alias_double.
22927 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22928 <libm-alias-double.h>.
22929 (ceil): Define using libm_alias_double.
22930 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22931 <libm-alias-double.h>.
22932 (floor): Define using libm_alias_double.
22933 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22934 <libm-alias-double.h>.
22935 (round): Define using libm_alias_double.
22936 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22937 <libm-alias-double.h>.
22938 (trunc): Define using libm_alias_double.
22939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22940 <libm-alias-double.h>.
22941 (ceil): Define using libm_alias_double.
22942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22943 <libm-alias-double.h>.
22944 (floor): Define using libm_alias_double.
22945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22946 <libm-alias-double.h>.
22947 (modf): Define using libm_alias_double.
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22949 <libm-alias-double.h>.
22950 (round): Define using libm_alias_double.
22951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22952 <libm-alias-double.h>.
22953 (trunc): Define using libm_alias_double.
22954 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22955 <libm-alias-double.h>.
22956 (ceil): Define using libm_alias_double.
22957 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22958 <libm-alias-double.h>.
22959 (floor): Define using libm_alias_double.
22960 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22961 <libm-alias-double.h>.
22962 (nearbyint): Define using libm_alias_double.
22963 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22964 <libm-alias-double.h>.
22965 (rint): Define using libm_alias_double.
22966 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22967 <libm-alias-double.h>.
22968 (round): Define using libm_alias_double.
22969 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22970 <libm-alias-double.h>.
22971 (trunc): Define using libm_alias_double.
22972 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22973 <libm-alias-double.h>.
22974 (ceil): Define using libm_alias_double.
22975 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22976 <libm-alias-double.h>.
22977 (floor): Define using libm_alias_double.
22978 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22979 <libm-alias-double.h>.
22980 (round): Define using libm_alias_double.
22981 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22982 <libm-alias-double.h>.
22983 (trunc): Define using libm_alias_double.
22984
22985 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22986 (fabs): Define using libm_alias_double.
22987 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22988 (fma): Define using libm_alias_double.
22989 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22990 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22993
22994 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22995
22996 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22997
22998 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22999 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
23000 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23001
23002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
23003 due redirect macro.
23004
23005 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
23006
23007 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
23008
23009 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23010
23011 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23012 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23013 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23014 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23015
23016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23017 (libm-sysdep_routines): Add s_nearbyintf-generic and
23018 s_nearbyint-generic.
23019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23020 New file.
23021 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23023 Likewise.
23024 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23025 Likewise.
23026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23027 file.
23028 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23029 Likewise.
23030
23031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23032 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23034 file.
23035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23037 Likewise.
23038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23041
23042 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23043 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23045 file.
23046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23048 Likewise.
23049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23052
23053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23054 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23056 file.
23057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23059 Likewise.
23060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23061 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23063
23064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23065 (sysdep_calls): New rule.
23066 (sysdep_routines): Use sysdep_calls as base.
23067 (libm-sysdep_routines): Add generic rule for symbols shared with
23068 libc. Add s_copysign-generic and s_copysign-generic objects.
23069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23070 New file.
23071 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23073 Likewise.
23074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23076 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23077
23078 2017-12-01 Mike FABIAN <mfabian@redhat.com>
23079
23080 [BZ #22519]
23081 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23082 the list of locales to be built for testing.
23083 * localedata/is_IS.UTF-8.in: New file.
23084 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23085 on iso14651_t1.
23086
23087 2017-12-01 Joseph Myers <joseph@codesourcery.com>
23088
23089 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23090 <libm-alias-float.h>.
23091 (fabsf): Define using libm_alias_float.
23092
23093 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23094
23095 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23096
23097 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23098
23099 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23100 <libm-alias-float.h>.
23101 (fabsf): Define using libm_alias_float.
23102 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23103 <libm-alias-float.h>.
23104 (lrintf): Define using libm_alias_float.
23105 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23106 <libm-alias-float.h>.
23107 (rintf): Define using libm_alias_float.
23108
23109 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23110 <libm-alias-double.h>.
23111 (fabs): Define using libm_alias_double.
23112 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23113 <libm-alias-double.h>.
23114 (lrint): Define using libm_alias_double.
23115 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23116 <libm-alias-double.h>.
23117 (rint): Define using libm_alias_double.
23118
23119 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23120 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23121 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23122 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23123 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23124 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23125 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23126 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23127 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23128 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23129 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23130 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23131 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23132 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23133 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23134 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23135 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23136 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23137 s_atan_template.c.
23138 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23139 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23140 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23141 s_ceil_template.c.
23142 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23143 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23144 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23145 s_cos_template.c.
23146 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23147 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23148 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23149 s_expm1_template.c.
23150 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23151 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23152 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23153 s_fabs_template.c.
23154 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23155 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23156 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23157 s_floor_template.c.
23158 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23159 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23160 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23161 s_frexp_template.c.
23162 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23163 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23164 s_lrint_template.c.
23165 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23166 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23167 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23168 s_modf_template.c.
23169 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23170 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23171 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23172 s_nearbyint_template.c.
23173 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23174 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23175 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23176 s_remquo_template.c.
23177 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23178 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23179 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23180 s_rint_template.c.
23181 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23182 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23183 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23184 s_sin_template.c.
23185 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23186 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23187 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23188 s_sincos_template.c.
23189 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23190 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23191 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23192 s_tan_template.c.
23193 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23194 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23195 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23196 s_tanh_template.c.
23197 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23198 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23199 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23200 s_trunc_template.c.
23201 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23202 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23203 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23204 s_atan.c instead of including s_atan.c.
23205 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23206 s_atanf.c instead of including s_atanf.c.
23207 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23208 s_atanl.c instead of including s_atanl.c.
23209 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23210 instead of s_atan.c.
23211 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23212 instead of s_atanf.c.
23213 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23214 instead of s_atanl.c.
23215
23216 * scripts/update-copyrights: Do not handle intl/plural.c
23217 specially.
23218
23219 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
23220
23221 [BZ #22432]
23222 * configure.ac (BISON): Require to be present.
23223 * configure: Regenerated.
23224 * intl/Makefile (generated): Add plural.c.
23225 [$(BISON) != no]: Make code unconditional.
23226 (plural.c): Change rule to $(objpfx)plural.c.
23227 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23228 * intl/plural.c: Remove.
23229 * manual/install.texi (Tools for Compilation): Document bison as
23230 required.
23231 * INSTALL: Regenerated.
23232
23233 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23234
23235 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23236 <libm-alias-double.h>.
23237 (llrint): Define using libm_alias_double.
23238 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23239 <libm-alias-float.h>.
23240 (llrintf): Define using libm_alias_float.
23241 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23242 <libm-alias-ldouble.h>.
23243 (llrintl): Define using libm_alias_ldouble.
23244
23245 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23246 declare_mgen_alias instead of weak_alias.
23247 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23248 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23249 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23250
23251 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23252
23253 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23254 Add add_n-generic.
23255 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23256 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23257 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23258
23259 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23260 Add submul_1-generic.
23261 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23262 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23263 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23264
23265 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23266 Add addmul_1-generic.
23267 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23268 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23269 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23270
23271 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23272 Add sub_n-generic.
23273 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23274 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23275 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23276
23277 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23278 Add mul_1-generic.
23279 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23280 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23281 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23282
23283 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23284
23285 According to CLDR, collation rules for Serbian and Bosnian
23286 should be the same as for Croatian.
23287
23288 [BZ #22534]
23289 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23290 and to the list of locales to be built for testing.
23291 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23292 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23293 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23294 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23295
23296 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23297
23298 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23299 to make test case pass.
23300 * localedata/hr_HR.UTF-8.in: Add more test strings.
23301
23302 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23303
23304 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23305
23306 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23307
23308 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23309 the list of locales to built for testing.
23310 * localedata/hr_HR.UTF-8.in: New file.
23311
23312 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23313
23314 [BZ #10580]
23315 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23316 iso14651_t1.
23317 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23318 CLDR (except use ligatures for the digraphs, CLDR does not use
23319 the ligatures), add first_workday, some fixes in the date and time
23320 formats.
23321 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23322 for Đ and đ.
23323 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23324 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23325 Add int_p_cs_precedes and int_n_cs_precedes.
23326 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23327 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23328 LC_MONETARY now).
23329 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23330 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23331 name_miss.
23332 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23333 and lang_lib. Change postal_fmt.
23334
23335 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23336
23337 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23338 <setjmp.h>.
23339 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23340 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23341 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23342 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23343 * sysdeps/generic/setjmpP.h: New file.
23344 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23345 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23346 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23347 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23348 Add jmp_buf-ssp.sym.
23349 (tests): Add tst-saved_mask-1.
23350
23351 2017-11-30 Arjun Shankar <arjun@redhat.com>
23352
23353 [BZ #22375]
23354 CVE-2017-17426
23355 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23356 instead of request2size.
23357
23358 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23359
23360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23361 (__lllrint): Remove alias.
23362 (lllrint): Likewise.
23363 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23364 (__lllrintf): Likewise.
23365 (lllrintf): Likewise.
23366
23367 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23368 <libm-alias-float.h>.
23369 (copysignf): Define using libm_alias_float.
23370 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23371 <libm-alias-float.h>.
23372 (fabsf): Define using libm_alias_float.
23373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23374 Include <libm-alias-float.h>.
23375 (copysignf): Define using libm_alias_float.
23376 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23377 <libm-alias-float.h>.
23378 (fabsf): Define using libm_alias_float.
23379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23380 <libm-alias-float.h>.
23381 (fdimf): Define using libm_alias_float.
23382 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23383 <libm-alias-float.h>.
23384 (fmaf): Define using libm_alias_float.
23385 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23386 <libm-alias-float.h>.
23387 (llrintf): Define using libm_alias_float.
23388 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23389 Include <libm-alias-float.h>.
23390 (nearbyintf): Define using libm_alias_float.
23391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23392 <libm-alias-float.h>.
23393 (rintf): Define using libm_alias_float.
23394 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23395 <libm-alias-float.h>.
23396 (llrintf): Define using libm_alias_float.
23397 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23398 <libm-alias-float.h>.
23399 (lrintf): Define using libm_alias_float.
23400 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23401 <libm-alias-float.h>.
23402 (nearbyintf): Define using libm_alias_float.
23403 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23404 <libm-alias-float.h>.
23405 (rintf): Define using libm_alias_float.
23406 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23407 <libm-alias-float.h>.
23408 (ceilf): Define using libm_alias_float.
23409 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23410 <libm-alias-float.h>.
23411 (floorf): Define using libm_alias_float.
23412 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23413 <libm-alias-float.h>.
23414 (fmaf): Define using libm_alias_float.
23415 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23416 <libm-alias-float.h>.
23417 (lrintf): Define using libm_alias_float.
23418 (llrintf): Likewise.
23419 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23420 <libm-alias-float.h>.
23421 (nearbyintf): Define using libm_alias_float.
23422 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23423 <libm-alias-float.h>.
23424 (rintf): Define using libm_alias_float.
23425 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23426 <libm-alias-float.h>.
23427 (truncf): Define using libm_alias_float.
23428 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23429 <libm-alias-float.h>.
23430 (copysignf): Define using libm_alias_float.
23431 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23432 <libm-alias-float.h>.
23433 (fabsf): Define using libm_alias_float.
23434 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23435 <libm-alias-float.h>.
23436 (lrintf): Define using libm_alias_float.
23437 (llrintf): Likewise.
23438 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23439 <libm-alias-float.h>.
23440 (nearbyintf): Define using libm_alias_float.
23441 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23442 <libm-alias-float.h>.
23443 (rintf): Define using libm_alias_float.
23444
23445 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23446
23447 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23448 <libm-alias-double.h>.
23449 (copysign): Define using libm_alias_double.
23450 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23451 <libm-alias-double.h>.
23452 (fabs): Define using libm_alias_double.
23453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23454 Include <libm-alias-double.h>.
23455 (copysign): Define using libm_alias_double.
23456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23457 <libm-alias-double.h>.
23458 (fabs): Define using libm_alias_double.
23459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23460 <libm-alias-double.h>.
23461 (fdim): Define using libm_alias_double.
23462 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23463 <libm-alias-double.h>.
23464 (fma): Define using libm_alias_double.
23465 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23466 <libm-alias-double.h>.
23467 (llrint): Define using libm_alias_double.
23468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23469 Include <libm-alias-double.h>.
23470 (nearbyint): Define using libm_alias_double.
23471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23472 <libm-alias-double.h>.
23473 (rint): Define using libm_alias_double.
23474 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23475 <libm-alias-double.h>.
23476 (fabs): Define using libm_alias_double.
23477 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23478 <libm-alias-double.h>.
23479 (llrint): Define using libm_alias_double.
23480 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23481 <libm-alias-double.h>.
23482 (nearbyint): Define using libm_alias_double.
23483 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23484 <libm-alias-double.h>.
23485 (rint): Define using libm_alias_double.
23486 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23487 <libm-alias-double.h>.
23488 (ceil): Define using libm_alias_double.
23489 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23490 <libm-alias-double.h>.
23491 (floor): Define using libm_alias_double.
23492 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23493 <libm-alias-double.h>.
23494 (fma): Define using libm_alias_double.
23495 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23496 <libm-alias-double.h>.
23497 (lrint): Define using libm_alias_double.
23498 (llrint): Likewise.
23499 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23500 <libm-alias-double.h>.
23501 (nearbyint): Define using libm_alias_double.
23502 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23503 <libm-alias-double.h>.
23504 (rint): Define using libm_alias_double.
23505 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23506 <libm-alias-double.h>.
23507 (trunc): Define using libm_alias_double.
23508 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23509 <libm-alias-double.h>.
23510 (copysign): Define using libm_alias_double.
23511 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23512 <libm-alias-double.h>.
23513 (fabs): Define using libm_alias_double.
23514 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23515 <libm-alias-double.h>.
23516 (lrint): Define using libm_alias_double.
23517 (llrint): Likewise.
23518 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23519 <libm-alias-double.h>.
23520 (nearbyint): Define using libm_alias_double.
23521 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23522 <libm-alias-double.h>.
23523 (rint): Define using libm_alias_double.
23524
23525 [BZ #22229]
23526 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23527 <math_ldbl_opt.h>.
23528 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23529
23530 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23531 SPARC --disable-multi-arch glibc variants.
23532
23533 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23534 <libm-alias-float.h>.
23535 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23536 if [SHARED].
23537 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23538 <libm-alias-float.h>.
23539 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23540 if [SHARED].
23541 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23542 <libm-alias-float.h>.
23543 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23544 if [SHARED].
23545 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23546 <libm-alias-float.h>.
23547 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23548 if [SHARED].
23549 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23550 <libm-alias-float.h>.
23551 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23552 if [SHARED].
23553 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23554 <libm-alias-float.h>.
23555 (ceilf): Define using libm_alias_float.
23556 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23557 <libm-alias-float.h>.
23558 (floorf): Define using libm_alias_float.
23559 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23560 <libm-alias-float.h>.
23561 (fmaf): Define using libm_alias_float.
23562 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23563 <libm-alias-float.h>.
23564 (nearbyintf): Define using libm_alias_float.
23565 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23566 <libm-alias-float.h>.
23567 (rintf): Define using libm_alias_float.
23568 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23569 <libm-alias-float.h>.
23570 (truncf): Define using libm_alias_float.
23571 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23572 (copysignf): Define using libm_alias_float.
23573 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23574 (cosf): Define using libm_alias_float.
23575 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23576 (fabsf): Define using libm_alias_float.
23577 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23578 (fmaxf): Define using libm_alias_float.
23579 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23580 (fminf): Define using libm_alias_float.
23581 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23582 (llrintf): Define using libm_alias_float.
23583 [!__ILP32__] (lrintf): Likewise.
23584 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23585 (sincosf): Define using libm_alias_float.
23586 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23587 (sinf): Define using libm_alias_float.
23588 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23589 (lrintf): Define using libm_alias_float.
23590
23591 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23592 <libm-alias-double.h>.
23593 (atan): Define using libm_alias_double.
23594 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23595 <libm-alias-double.h>.
23596 (ceil): Define using libm_alias_double.
23597 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23598 <libm-alias-double.h>.
23599 (floor): Define using libm_alias_double.
23600 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23601 <libm-alias-double.h>.
23602 (fma): Define using libm_alias_double.
23603 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23604 <libm-alias-double.h>.
23605 (nearbyint): Define using libm_alias_double.
23606 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23607 <libm-alias-double.h>.
23608 (rint): Define using libm_alias_double.
23609 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23610 <libm-alias-double.h>.
23611 (sin): Define using libm_alias_double.
23612 (cos): Likewise.
23613 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23614 <libm-alias-double.h>.
23615 (tan): Define using libm_alias_double.
23616 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23617 <libm-alias-double.h>.
23618 (trunc): Define using libm_alias_double.
23619 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23620 (copysign): Define using libm_alias_double.
23621 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23622 (fabs): Define using libm_alias_double.
23623 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23624 (fmax): Define using libm_alias_double.
23625 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23626 (fmin): Define using libm_alias_double.
23627 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23628 (llrint): Define using libm_alias_double.
23629 [!__ILP32__] (lrint): Likewise.
23630 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23631 (lrint): Define using libm_alias_double.
23632
23633 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23634
23635 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23636 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23637 objects.
23638 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23639 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23640 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23641 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23642 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23643 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23644
23645 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23646 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23647 objects.
23648 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23649 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23650 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23651 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23652 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23653 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23654
23655 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23656 (libm-sysdep_routines): Add s_nearbyint-generic and
23657 s_nearbyintf-generic objects.
23658 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23659 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23660 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23661 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23662 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23663 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23664
23665 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23666 Add s_finitef-generic and s_finite-generic objects.
23667 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23668 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23669 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23670 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23671 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23672 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23673
23674 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23675 Add s_isinff-generic and s_isinf-generic objects.
23676 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23677 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23678 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23679 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23680 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23681 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23682
23683 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23684 Add s_isnanf-generic and s_isnan-generic objects.
23685 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23686 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23687 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23688 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23689 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23690 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23691
23692 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23693 macro.
23694 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23695 rule.
23696 (sysdep_routines): Use sysdep_calls as base.
23697 (libm-sysdep_routines): Add generic rule for symbols shared with
23698 libc. Add s_signbit-generic and s_signbitf-generic objects.
23699 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23700 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23701 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23702 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23703 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23704 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23705
23706 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23707
23708 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23709 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23710 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23711 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23712 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23713 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23714 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23715 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23716 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23717 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23718 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23719 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23720 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23721 libm_alias_float_r.
23722 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23723 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23724 (logf): Likewise.
23725 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23726 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23727 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23728 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23729 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23730 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23731 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23732 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23733 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23734 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23735 libm_alias_float.
23736 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23737 (cosf): Likewise.
23738 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23739 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23740 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23741 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23742 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23743 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23744 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23745 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23746 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23747 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23748 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23749 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23750 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23751 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23752 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23753 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23754 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23755 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23756 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23757 libm_alias_float.
23758 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23759 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23760 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23761 * sysdeps/ia64/fpu/w_lgammaf_main.c
23762 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23763 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23764
23765 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23766 Alexandre Oliva <aoliva@redhat.com>
23767
23768 [BZ #17750]
23769 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23770 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23771 accents sorting.
23772 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23773 sorting.
23774 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23775 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23776 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23777 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23778 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23779 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23780 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23781 instead of “ifdef DIACRIT_BACKWARD”.
23782
23783 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23784
23785 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23786 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23787 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23788 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23789 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23790 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23791 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23792 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23793 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23794 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23795 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23796 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23797 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23798 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23799 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23800 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23801 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23802 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23804 ($(have-as-vis3) == yes): Remove conditional.
23805 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23806 Likewise.
23807 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23808 file.
23809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23810 file.
23811 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23812 file.
23813 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23814 file.
23815 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23816 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23817 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23818 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23819 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23820 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23821 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23822 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23823
23824 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23825
23826 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23827 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23828 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23829 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23830 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23831 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23832 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23833 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23834 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23835 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23836 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23837 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23838 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23839 libm_alias_double_r.
23840 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23841 (log): Likewise.
23842 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23843 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23844 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23845 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23846 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23847 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23848 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23849 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23850 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23851 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23852 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23853 libm_alias_double.
23854 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23855 (cos): Likewise.
23856 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23857 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23858 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23859 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23860 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23861 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23862 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23863 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23864 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23865 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23866 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23867 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23868 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23869 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23870 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23871 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23872 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23873 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23874 libm_alias_double.
23875 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23876 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23877 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23878 * sysdeps/ia64/fpu/w_lgamma_main.c
23879 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23880 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23881
23882 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23883
23884 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23885 address of $global$ into %dp register earlier. Use pc-relative
23886 instruction sequence for PIC case.
23887
23888 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23889
23890 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23891 (asinhf): Define using libm_alias_float.
23892 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23893 (atanf): Define using libm_alias_float.
23894 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23895 (cbrtf): Define using libm_alias_float.
23896 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23897 (ceilf): Define using libm_alias_float.
23898 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23899 (copysignf): Define using libm_alias_float.
23900 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23901 (expm1f): Define using libm_alias_float.
23902 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23903 (fabsf): Define using libm_alias_float.
23904 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23905 (floorf): Define using libm_alias_float.
23906 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23907 (fmaxf): Define using libm_alias_float.
23908 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23909 (fminf): Define using libm_alias_float.
23910 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23911 (frexpf): Define using libm_alias_float.
23912 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23913 (llrintf): Define using libm_alias_float.
23914 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23915 (logbf): Define using libm_alias_float.
23916 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23917 (lrintf): Define using libm_alias_float.
23918 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23919 (nearbyintf): Define using libm_alias_float.
23920 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23921 (remquof): Define using libm_alias_float.
23922 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23923 (rintf): Define using libm_alias_float.
23924 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23925 (truncf): Define using libm_alias_float.
23926 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23927 <libm-alias-float.h>.
23928 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23929 if [SHARED].
23930 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23931 <libm-alias-float.h>.
23932 (expf): Define using libm_alias_float, or libm_alias_float_other
23933 if [SHARED].
23934 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23935 <libm-alias-float.h>.
23936 (log2f): Define using libm_alias_float, or libm_alias_float_other
23937 if [SHARED].
23938 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23939 <libm-alias-float.h>.
23940 (logf): Define using libm_alias_float, or libm_alias_float_other
23941 if [SHARED].
23942 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23943 <libm-alias-float.h>.
23944 (powf): Define using libm_alias_float, or libm_alias_float_other
23945 if [SHARED].
23946 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23947 <libm-alias-float.h>.
23948 (cosf): Define using libm_alias_float.
23949 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23950 <libm-alias-float.h>.
23951 (sincosf): Define using libm_alias_float.
23952 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23953 <libm-alias-float.h>.
23954 (sinf): Define using libm_alias_float.
23955 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23956 (fmaxf): Define using libm_alias_float.
23957 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23958 (fminf): Define using libm_alias_float.
23959 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23960 <libm-alias-float.h>.
23961 (fmaf): Define using libm_alias_float.
23962
23963 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23964 (asinh): Define using libm_alias_double.
23965 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23966 (atan): Define using libm_alias_double.
23967 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23968 (cbrt): Define using libm_alias_double.
23969 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23970 (ceil): Define using libm_alias_double.
23971 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23972 (copysign): Define using libm_alias_double.
23973 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23974 (expm1): Define using libm_alias_double.
23975 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23976 (fabs): Define using libm_alias_double.
23977 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23978 (fdim): Define using libm_alias_double.
23979 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23980 (floor): Define using libm_alias_double.
23981 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23982 (fmax): Define using libm_alias_double.
23983 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23984 (fmin): Define using libm_alias_double.
23985 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23986 (frexp): Define using libm_alias_double.
23987 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23988 (llrint): Define using libm_alias_double.
23989 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23990 (logb): Define using libm_alias_double.
23991 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23992 (lrint): Define using libm_alias_double.
23993 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23994 (nearbyint): Define using libm_alias_double.
23995 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23996 (remquo): Define using libm_alias_double.
23997 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23998 (rint): Define using libm_alias_double.
23999 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
24000 (trunc): Define using libm_alias_double.
24001 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
24002 (fmax): Define using libm_alias_double.
24003 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
24004 (fmin): Define using libm_alias_double.
24005 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
24006 (fma): Define using libm_alias_double.
24007
24008 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
24009
24010 [BZ #22370]
24011 * elf/dl-hwcaps.c (ROUND): Removed.
24012 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24013 and ELF_NOTE_NEXT_OFFSET.
24014 * elf/dl-load.c (ROUND): Removed.
24015 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24016 * elf/readelflib.c (ROUND): Removed.
24017 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24018 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24019 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24020 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24021
24022 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24023
24024 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24025 [!__fmaf] (fmaf): Define using libm_alias_float.
24026
24027 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24028 [!__fma] (fma): Define using libm_alias_double.
24029 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24030
24031 2017-11-28 Mike FABIAN <mfabian@redhat.com>
24032
24033 [BZ #22336]
24034 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24035 and implement the collation rules for cs from CLDR on top of that.
24036 * Makefile: Add cs_CZ.UTF-8 to test-input.
24037 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24038
24039 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
24040
24041 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24042
24043 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24044 Icarus Sparry <icarus.w.sparry@intel.com>
24045
24046 * benchtests/Makefile:Add BENCHSET to allow subsets of
24047 benchmarks to be run.
24048 * benchtests/README: Add documentation for: Running subsets of
24049 benchmarks.
24050
24051 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24052
24053 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24054 range of tests names.
24055
24056 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24057 result from property and remove "max", min" and "mean" from
24058 required properties based on benchtests/bench-skeleton.c.
24059
24060 2017-11-28 Florian Weimer <fweimer@redhat.com>
24061
24062 [BZ #20826]
24063 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24064 due to Internet requirement.
24065 * posix/Makefile (tests): Remove tst-getaddrinfo4,
24066 tst-getaddrinfo5.
24067 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24068
24069 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24070
24071 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24072 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24073 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24074 (sysdep_routines): Add memset-ultra1.
24075 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24076 file.
24077 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24078 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24079 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24080 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24081 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24082 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24083 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24084 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24085
24086 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24087 file.
24088 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24089 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24090 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24091 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24092 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24093 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24094 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24095 macro.
24096 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24097 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24098 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24099 (sysdep_routines): Add memcpy-ultra1.
24100 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24101 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24102
24103 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24104
24105 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24106 (cfloat_versions): Take function argument without trailing 'f'.
24107 Call libm_alias_float_other.
24108 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24109 * sysdeps/alpha/fpu/cargf.c: Likewise.
24110 * sysdeps/alpha/fpu/cimagf.c: Likewise.
24111 * sysdeps/alpha/fpu/conjf.c: Likewise.
24112 * sysdeps/alpha/fpu/crealf.c: Likewise.
24113 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24114 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24115 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24116 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24117 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24118 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24119 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24120 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24121 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24122 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24123 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24124 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24125 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24126 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24127 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24128 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24129 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24130 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24131 (clog10f): Use libm_alias_float_other.
24132 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24133 (ceilf): Define using libm_alias_float.
24134 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24135 (copysignf): Define using libm_alias_float.
24136 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24137 (fabsf): Define using libm_alias_float.
24138 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24139 (floorf): Define using libm_alias_float.
24140 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24141 (fmaxf): Define using libm_alias_float.
24142 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24143 (fminf): Define using libm_alias_float.
24144 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24145 (lrintf): Define using libm_alias_float.
24146 (llrintf): Likewise.
24147 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24148 (lroundf): Define using libm_alias_float.
24149 (llroundf): Likewise.
24150 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24151 (rintf): Define using libm_alias_float.
24152 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24153 (truncf): Define using libm_alias_float.
24154
24155 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24156 (ceilf): Define using libm_alias_float.
24157 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24158 (floorf): Define using libm_alias_float.
24159 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24160 (fmaf): Define using libm_alias_float.
24161 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24162 (fmaxf): Define using libm_alias_float.
24163 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24164 (fminf): Define using libm_alias_float.
24165 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24166 (llrintf): Define using libm_alias_float.
24167 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24168 (llroundf): Define using libm_alias_float.
24169 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24170 (lrintf): Define using libm_alias_float.
24171 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24172 (lroundf): Define using libm_alias_float.
24173 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24174 <libm-alias-float.h>.
24175 (nearbyintf): Define using libm_alias_float.
24176 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24177 (rintf): Define using libm_alias_float.
24178 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24179 (roundf): Define using libm_alias_float.
24180 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24181 (truncf): Define using libm_alias_float.
24182
24183 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24184 (ceil): Define using libm_alias_double.
24185 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24186 (copysign): Define using libm_alias_double.
24187 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24188 (fabs): Define using libm_alias_double.
24189 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24190 (floor): Define using libm_alias_double.
24191 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24192 (fmax): Define using libm_alias_double.
24193 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24194 (fmin): Define using libm_alias_double.
24195 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24196 (lrint): Define using libm_alias_double.
24197 (llrint): Likewise.
24198 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24199 (lround): Define using libm_alias_double.
24200 (llround): Likewise.
24201 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24202 (rint): Define using libm_alias_double.
24203 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24204 (trunc): Define using libm_alias_double.
24205
24206 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24207 (libm_alias_double_r): Add semicolon after weak_alias call.
24208
24209 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24210
24211 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24212 (ceil): Define using libm_alias_double.
24213 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24214 (floor): Define using libm_alias_double.
24215 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24216 (fma): Define using libm_alias_double.
24217 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24218 (fmax): Define using libm_alias_double.
24219 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24220 (fmin): Define using libm_alias_double.
24221 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24222 (llrint): Define using libm_alias_double.
24223 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24224 (llround): Define using libm_alias_double.
24225 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24226 (lrint): Define using libm_alias_double.
24227 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24228 (lround): Define using libm_alias_double.
24229 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24230 (nearbyint): Define using libm_alias_double.
24231 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24232 (rint): Define using libm_alias_double.
24233 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24234 (round): Define using libm_alias_double.
24235 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24236 (trunc): Define using libm_alias_double.
24237
24238 2017-11-27 Florian Weimer <fweimer@redhat.com>
24239
24240 * sysdeps/unix/sysv/linux/mlock2.c: New file.
24241 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24242 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24243 (tests): Add tst-mlock2.
24244 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24245 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24246 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24247 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24248 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24249 for mlock. Document mlock2.
24250
24251 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24252
24253 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24254 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24255 Likewise.
24256 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24257 Likewise.
24258 * sysdeps/x86/Makeconfig: New file.
24259 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24260 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24261 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24262 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24263 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24264 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24265 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24266 Likewise.
24267 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24268 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24269 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24270 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24271 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24272 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24273 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24274 * manual/math.texi (Mathematics): Document support for _Float64x.
24275 * math/Versions (GLIBC_2.27): Add _Float64x functions.
24276 * stdlib/Versions (GLIBC_2.27): Likewise.
24277 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24278 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24279 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24280 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24281 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24282 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24283 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24284 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24285 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24286 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24287 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24288 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24290 Likewise.
24291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24292 Likewise.
24293 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24294 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24295 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24296 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24297 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24298 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24299 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24300 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24301 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24302 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24303 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24304 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24305 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24306 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24307
24308 2017-11-27 Andreas Schwab <schwab@suse.de>
24309
24310 * elf/Makefile (dl-routines): Add dl-sort-maps.
24311 * elf/dl-sort-maps.c: New file.
24312 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24313 (_dl_sort_maps): Declare.
24314 * elf/dl-fini.c (_dl_sort_fini): Remove.
24315 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24316 * elf/dl-close.c (_dl_close_worker): Likewise.
24317 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24318 open-coding it.
24319 * elf/dl-open.c (dl_open_worker): Likewise.
24320
24321 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24322
24323 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24324 using libm_alias_float128.
24325 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24326 Likewise.
24327 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24328 Likewise.
24329 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24330 (setpayloadsigf128): Likewise.
24331 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24332 Likewise.
24333 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24334 Likewise.
24335
24336 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24337 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24338 -mfloat128 to CFLAGS.
24339 ($(foreach
24340 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24341 Likewise.
24342 (CFLAGS-libm-test-support-float64x.c): New variable.
24343 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24344 $(f128-loader-link) to gnulib-tests.
24345
24346 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24347 (libm_alias_float128_other_r): If
24348 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24349 alias.
24350 (libm_alias_float128_r): Add semicolon after weak_alias call.
24351 * sysdeps/generic/libm-alias-ldouble.h
24352 (libm_alias_ldouble_other_r_f128): New macro.
24353 (libm_alias_ldouble_other_r_f64x): Likewise.
24354 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24355 and libm_alias_ldouble_other_r_f64x.
24356 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24357 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24358 (libm_alias_ldouble_other_r_f128): New macro.
24359 (libm_alias_ldouble_other_r_f64x): Likewise.
24360 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24361 and libm_alias_ldouble_other_r_f64x.
24362
24363 * stdlib/strfroml.c: Always include <stdlib.h>.
24364 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24365 undefine as macro and define as weak alias.
24366 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24367 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24368 <stdlib.h>.
24369 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24370 Define and later undefine as macro and define as weak alias.
24371
24372 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24373 Define and later undefine as macro. Define as weak alias if
24374 [!USE_WIDE_CHAR].
24375 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24376 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24377 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24378 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24379 Define and later undefine as macro. Define as weak alias if
24380 [!USE_WIDE_CHAR].
24381 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24382 Define and later undefine as macro. Define as weak alias if
24383 [USE_WIDE_CHAR].
24384 * sysdeps/ieee754/float128/strtof128_l.c
24385 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24386 Define and later undefine as macro. Define as weak alias if
24387 [!USE_WIDE_CHAR].
24388 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24389 Define and later undefine as macro. Define as weak alias if
24390 [USE_WIDE_CHAR].
24391 * sysdeps/ieee754/ldbl-128/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 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24397 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24398 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24399 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24400 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24401 * sysdeps/ieee754/ldbl-96/strtold_l.c
24402 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24403 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24404 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24405 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24406
24407 * math/test-float64x.h: New file.
24408 * math/Makefile (type-float64x-yes): New variable.
24409 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24410
24411 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24412 function-like macro.
24413 (min_of_type_): Likewise.
24414 (min_of_type_l): Likewise.
24415 (min_of_type_f128): Likewise.
24416 (min_of_type): Pass () as last argument of __MATH_TG.
24417
24418 * stdlib/tst-strtod-round-skeleton.c
24419 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24420 headers.
24421
24422 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24423 for combinations of long double with _Float64 and _Float64x.
24424
24425 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24426 (__DECL_SIMD_cosf32): Likewise.
24427 (__DECL_SIMD_cosf64): Likewise.
24428 (__DECL_SIMD_cosf32x): Likewise.
24429 (__DECL_SIMD_cosf64x): Likewise.
24430 (__DECL_SIMD_cosf128x): Likewise.
24431 (__DECL_SIMD_sinf16): Likewise.
24432 (__DECL_SIMD_sinf32): Likewise.
24433 (__DECL_SIMD_sinf64): Likewise.
24434 (__DECL_SIMD_sinf32x): Likewise.
24435 (__DECL_SIMD_sinf64x): Likewise.
24436 (__DECL_SIMD_sinf128x): Likewise.
24437 (__DECL_SIMD_sincosf16): Likewise.
24438 (__DECL_SIMD_sincosf32): Likewise.
24439 (__DECL_SIMD_sincosf64): Likewise.
24440 (__DECL_SIMD_sincosf32x): Likewise.
24441 (__DECL_SIMD_sincosf64x): Likewise.
24442 (__DECL_SIMD_sincosf128x): Likewise.
24443 (__DECL_SIMD_logf16): Likewise.
24444 (__DECL_SIMD_logf32): Likewise.
24445 (__DECL_SIMD_logf64): Likewise.
24446 (__DECL_SIMD_logf32x): Likewise.
24447 (__DECL_SIMD_logf64x): Likewise.
24448 (__DECL_SIMD_logf128x): Likewise.
24449 (__DECL_SIMD_expf16): Likewise.
24450 (__DECL_SIMD_expf32): Likewise.
24451 (__DECL_SIMD_expf64): Likewise.
24452 (__DECL_SIMD_expf32x): Likewise.
24453 (__DECL_SIMD_expf64x): Likewise.
24454 (__DECL_SIMD_expf128x): Likewise.
24455 (__DECL_SIMD_powf16): Likewise.
24456 (__DECL_SIMD_powf32): Likewise.
24457 (__DECL_SIMD_powf64): Likewise.
24458 (__DECL_SIMD_powf32x): Likewise.
24459 (__DECL_SIMD_powf64x): Likewise.
24460 (__DECL_SIMD_powf128x): Likewise.
24461
24462 * stdlib/Versions (libc): Move entries for wcstof128 and
24463 wcstof128_l to ....
24464 * wcsmbs/Versions (libc): ... here.
24465 Include <float128-abi.h>.
24466
24467 2017-11-24 Florian Weimer <fweimer@redhat.com>
24468
24469 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24470 bits/mman-shared.h.
24471 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24472 <bits/mman-shared.h>.
24473 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24474 to ...
24475 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24476 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24477 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24478 <bits/mman-shared.h>.
24479
24480 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24481
24482 [BZ #22457]
24483 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24484 posix_memalign/free.
24485 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24486
24487 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24488
24489 [BZ #22469]
24490 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24491 and implement the collation rules for pl from CLDR on top of that.
24492 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24493 of locales to be built for testing.
24494 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24495
24496 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24497
24498 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24499 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24500 libm_alias_ldouble_other.
24501 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24502 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24503 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24504 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24505 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24506 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24507 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24508 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24509 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24510 libm_alias_ldouble_r.
24511 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24512 libm_alias_ldouble_other.
24513 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24514 (log10l): Likewise.
24515 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24516 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24517 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24518 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24519 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24520 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24521 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24522 (atan2l): Likewise.
24523 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24524 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24525 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24526 libm_alias_ldouble.
24527 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24528 (cosl): Likewise.
24529 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24530 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24531 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24532 (expl): Likewise.
24533 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24534 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24535 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24536 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24537 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24538 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24539 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24540 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24541 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24542 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24543 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24544 libm_alias_ldouble.
24545 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24546 libm_alias_ldouble_other.
24547 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24548 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24549 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24550 libm_alias_ldouble.
24551 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24552 libm_alias_ldouble_other.
24553 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24554 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24555 * sysdeps/ia64/fpu/w_lgammal_main.c
24556 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24557 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24558
24559 2017-11-23 Florian Weimer <fweimer@redhat.com>
24560
24561 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24562 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24563 alike. Remove freeres marker.
24564 * malloc/arena.c (arena_thread_freeres): Call
24565 tcache_thread_shutdown.
24566
24567 2017-11-23 Florian Weimer <fweimer@redhat.com>
24568
24569 [BZ #22459]
24570 Export nscd hash function as __nss_hash.
24571 * include/nss.h (__nss_hash): Declare.
24572 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24573 symbol.
24574 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24575 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24576 of __nscd_hash.
24577 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24578 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24579 * nss/Makefiles (routines): Add nss_hash.
24580 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24581 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24582 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24583 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24584
24585 2017-11-23 Florian Weimer <fweimer@redhat.com>
24586
24587 [BZ #22478]
24588 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24589 Return error code, not -1.
24590 * signal/tst-sigwait-eintr.c: New file.
24591 * signal/Makefile (tests): Add tst-sigwait-eintr.
24592
24593 2017-11-23 Florian Weimer <fweimer@redhat.com>
24594
24595 Linux: Add memfd_create system call wrapper
24596 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24597 tst-memfd_create.
24598 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24599 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24600 [__USE_GNU] (memfd_create): Declare.
24601 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24602 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24603 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24604 * sysdeps/unix/sysv/linux/**.abilist: Update.
24605 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24606
24607 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24608
24609 * localedata/gen-locale.sh: Fix typo in variable name.
24610
24611 * resolv/res_debug.c (p_secstodate): Condition definition on
24612 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24613 directly as __p_secstodate, and as a compat symbol. Do not use
24614 libresolv_hidden_def.
24615 * resolv/resolv.h (p_secstodate): Remove macro and function
24616 declaration.
24617 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24618 using p_secstodate.
24619 * include/resolv.h (__p_secstodate): Do not use
24620 libresolv_hidden_proto.
24621 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24622 (tests-internal): ... here.
24623 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24624 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24625 and declare and use __p_secstodate and use compat_symbol_reference
24626 in that case.
24627 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24628 implementation returning 77.
24629
24630 [BZ #22463]
24631 * resolv/res_debug.c: Include <libc-diag.h>.
24632 (p_secstodate): Assert time_t at least as wide as u_long. On
24633 overflow, use integer seconds since the epoch as output, or use
24634 "<overflow>" as output and set errno to EOVERFLOW if integer
24635 seconds since the epoch would be 14 or more characters.
24636 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24637 for sprintf call.
24638 * resolv/tst-p_secstodate.c: New file.
24639 * resolv/Makefile (tests): Add tst-p_secstodate.
24640 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24641
24642 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24643 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24644 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24645
24646 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24647
24648 * posix/regcomp.c (init_word_char): Add comments.
24649
24650 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24651
24652 [BZ #22447]
24653 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24654 strlen to compute length of ut_user and set trailing NUL byte of
24655 result explicitly.
24656
24657 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24658
24659 [BZ #15537]
24660 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24661 using “copy "iso14651_t1"” and then implementing the
24662 collation rules for lv from CLDR on top of that.
24663 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24664 of locales to be built for testing.
24665 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24666 sorting.
24667
24668 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24669
24670 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24671 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24672 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24673 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24674 [__USE_MISC] (MADV_HWPOISON): New macro.
24675 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24676
24677 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24678
24679 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24680 -Wmissing-braces on GCC 4.9.
24681
24682 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24683
24684 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24685 * sysdeps/s390/s390-32/start.S (_start): Likewise
24686 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24687 (thread_start): Likewise.
24688 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24689 (thread_start): Likewise.
24690 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24691 (__makecontext_ret): Likewise.
24692 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24693 (__makecontext_ret): Likewise.
24694
24695 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24696
24697 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24698 __wcschrnul): Remove attribute_hidden.
24699
24700 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24701
24702 regex: don't assume uint64_t or uint32_t
24703 This avoids -Werror=overflow errors for 32-bit systems in
24704 the 64-bit case. Problem reported by Joseph Myers in:
24705 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24706 Also, when this code is used in Gnulib it ports to platforms
24707 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24708 them, and on some 32-bit compilers there is no uint64_t.
24709 Problem reported by Gianluigi Tiesi in:
24710 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24711 * posix/regcomp.c (init_word_char): Don't assume that the types
24712 uint64_t and uint32_t exist. Adapted from Gnulib patch
24713 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24714 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24715
24716 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24717
24718 * sysdeps/aarch64/memset-reg.h: New file.
24719 * sysdeps/aarch64/memset.S: Use it.
24720 (__memset): Rename to MEMSET macro.
24721 [ZVA_MACRO]: Use zva_macro.
24722 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24723 Add memset_generic and memset_falkor.
24724 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24725 (__libc_ifunc_impl_list): Add memset ifuncs.
24726 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24727 local variable zva_size.
24728 * sysdeps/aarch64/multiarch/memset.c: New file.
24729 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24730 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24731 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24732 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24733 (DCZID_DZP_MASK): New macro.
24734 (DCZID_BS_MASK): Likewise.
24735 (init_cpu_features): Read and set zva_size.
24736 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24737 (struct cpu_features): New member zva_size.
24738
24739 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24740 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24741 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24742
24743 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24744 backwards. Fix timing computation.
24745 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24746 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24747 on memset by N at a time. Fix timing computation.
24748
24749 2017-11-20 Florian Weimer <fweimer@redhat.com>
24750
24751 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24752 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24753
24754 2017-11-19 Florian Weimer <fweimer@redhat.com>
24755
24756 manual: Document mprotect
24757 * manual/memory.texi (Memory Protection): New section.
24758 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24759 documentation of PROT_* flags and reference the Memory Protection
24760 section instead.
24761
24762 2017-11-19 Florian Weimer <fweimer@redhat.com>
24763
24764 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24765 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24766 (Scatter-Gather): ... to here. Remove misleading comment.
24767
24768 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24769
24770 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24771 style.
24772
24773 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24774 when /proc/<pid>/setgroups does not exist.
24775
24776 2017-11-18 Florian Weimer <fweimer@redhat.com>
24777
24778 * sysdeps/unix/sysv/linux/tst-ttyname.c
24779 (become_root_in_mount_ns): Remove.
24780 (do_in_chroot_1): Call support_enter_mount_namespace.
24781 (do_in_chroot_2): Likewise.
24782 (do_test): Call support_become_root early.
24783
24784 2017-11-18 Florian Weimer <fweimer@redhat.com>
24785
24786 * support/namespace.h (support_enter_mount_namespace): Declare.
24787 * support/support_enter_mount_namespace.c: New file.
24788 * support/Makefile (libsupport-routines): Add
24789 support_enter_mount_namespace.
24790
24791 2017-11-18 Florian Weimer <fweimer@redhat.com>
24792
24793 * support/temp_file.c (support_create_temp_directory): Use
24794 test_dir and do not rely on the presence of the XXXXXX suffix.
24795 * support/temp_file.h (support_create_temp_directory): Update
24796 comment.
24797 * support/tst-xreadlink.c (do_test): Adjust.
24798 * support/support_chroot.c (support_chroot_create): Likewise.
24799
24800 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24801
24802 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24803 macro.
24804 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24805 htm-no-suspend.
24806
24807 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24808
24809 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24810 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24811 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24812 (ceill): Define using libm_alias_ldouble.
24813 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24814 <libm-alias-ldouble.h>.
24815 (copysignl): Define using libm_alias_ldouble.
24816 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24817 (fabsl): Define using libm_alias_ldouble.
24818 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24819 (floorl): Define using libm_alias_ldouble.
24820 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24821 (fmaxl): Define using libm_alias_ldouble.
24822 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24823 (fminl): Define using libm_alias_ldouble.
24824 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24825 (llrintl): Define using libm_alias_ldouble.
24826 (lrintl): Likewise.
24827 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24828 <libm-alias-ldouble.h>.
24829 (nearbyintl): Define using libm_alias_ldouble.
24830 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24831 (truncl): Define using libm_alias_ldouble.
24832 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24833 <libm-alias-ldouble.h>.
24834 (lrintl): Define using libm_alias_ldouble.
24835
24836 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24837 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24838 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24839 (asinhl): Define using libm_alias_ldouble.
24840 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24841 (atanl): Define using libm_alias_ldouble.
24842 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24843 (cbrtl): Define using libm_alias_ldouble.
24844 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24845 (ceill): Define using libm_alias_ldouble.
24846 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24847 (copysignl): Define using libm_alias_ldouble.
24848 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24849 (fabsl): Define using libm_alias_ldouble.
24850 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24851 (floorl): Define using libm_alias_ldouble.
24852 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24853 (fmaxl): Define using libm_alias_ldouble.
24854 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24855 (fminl): Define using libm_alias_ldouble.
24856 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24857 (frexpl): Define using libm_alias_ldouble.
24858 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24859 (llrintl): Define using libm_alias_ldouble.
24860 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24861 (logbl): Define using libm_alias_ldouble.
24862 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24863 (lrintl): Define using libm_alias_ldouble.
24864 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24865 (nearbyintl): Define using libm_alias_ldouble.
24866 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24867 (nextafterl): Define using libm_alias_ldouble.
24868 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24869 (remquol): Define using libm_alias_ldouble.
24870 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24871 (rintl): Define using libm_alias_ldouble.
24872 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24873 (truncl): Define using libm_alias_ldouble.
24874 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24875 (fmaxl): Define using libm_alias_ldouble.
24876 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24877 (fminl): Define using libm_alias_ldouble.
24878
24879 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24880 to C syntax instead of availability and properties of types.
24881 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24882 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24883 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24884 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24885 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24886 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24887
24888 2017-11-17 Florian Weimer <fweimer@redhat.com>
24889
24890 support_become_root: Enable file creation in namespaces.
24891 * support/support_become_root.c (setup_mapping): New function.
24892 (support_become_root): Call it.
24893
24894 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24895
24896 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24897 macro.
24898
24899 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24900
24901 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24902 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24903
24904 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24905
24906 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24907
24908 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24909 version to 4.14.
24910
24911 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24912
24913 * INSTALL: Fix botched up regeneration.
24914
24915 * NEWS: Update sourceare link to https.
24916 * configure.ac: Likewise.
24917 * crypt/md5test-giant.c: Likewise.
24918 * dlfcn/bug-atexit1.c: Likewise.
24919 * dlfcn/bug-atexit2.c: Likewise.
24920 * localedata/README: Likewise.
24921 * malloc/tst-mallocfork.c: Likewise.
24922 * manual/install.texi: Likewise.
24923 * nptl/tst-pthread-getattr.c: Likewise.
24924 * stdio-common/tst-fgets.c: Likewise.
24925 * stdio-common/tst-fwrite.c: Likewise.
24926 * sunrpc/Makefile: Likewise.
24927 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24928 * wcsmbs/tst-mbrtowc2.c: Likewise.
24929 * configure: Regenerate.
24930 * INSTALL: Regenerate.
24931
24932 2017-11-15 Martin Sebor <msebor@redhat.com>
24933
24934 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24935 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24936 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24937
24938 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24939
24940 [BZ #22145]
24941 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24942 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24943
24944 [BZ #22145]
24945 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24946 Defer is_pty check until end of the function.
24947 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24948
24949 [BZ #22145]
24950 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24951 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24952 (ttyname): Likewise.
24953 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24954 (__ttyname_r): Likewise.
24955
24956 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24957 int to bool.
24958
24959 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24960
24961 * manual/terminal.texi (Is It a Terminal):
24962 Mention ENODEV for ttyname and ttyname_r.
24963
24964 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24965
24966 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24967 constant and macro.
24968
24969 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24970 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24971 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24972 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24973 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24974 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24975
24976 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24977
24978 * signal/sigrelse.c (sigrelse): Optimize implementation.
24979
24980 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24981 (__sigpause): Rely on __sigsuspend to implement single thread
24982 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24983
24984 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24985
24986 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24987 kernel version to 4.14.
24988
24989 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24990
24991 [BZ #22442]
24992 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24993 Check if ifname is too long.
24994
24995 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24996
24997 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24998
24999 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25000
25001 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
25002 was accidentally lost.
25003
25004 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25005
25006 * localedata/locales/az_IR: Add standard copyright header.
25007
25008 2017-11-15 Florian Weimer <fweimer@redhat.com>
25009
25010 [BZ #22439]
25011 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25012 not just the top one. Output a new "subheaps" statistic.
25013
25014 2017-11-15 Florian Weimer <fweimer@redhat.com>
25015
25016 [BZ #22408]
25017 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25018 under the per-arena lock.
25019 * malloc/Makefile (tests): Add tst-malloc_info.
25020 (tst-malloc_info): Link with libpthread.
25021 * malloc/tst-malloc_info.c: New file.
25022
25023 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25024
25025 [BZ #21660]
25026 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25027 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25028 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25029 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25030 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25031 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25032 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25033 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25034 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25035 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25036 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25037 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25038 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25039 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25040 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25041 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25042 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25043 (__floating_type): Likewise.
25044 (__real_integer_type): Likewise.
25045 (__complex_integer_type): Likewise.
25046 (__expr_is_real): Likewise.
25047 (__tgmath_real_type_sub): Likewise.
25048 (__tgmath_real_type): Likewise.
25049 (__tgmath_complex_type_sub): Likewise.
25050 (__tgmath_complex_type): Likewise.
25051 (__TGMATH_F128): Likewise.
25052 (__TGMATH_CF128): Likewise.
25053 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25054 new macros.
25055 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25056 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25057 Likewise.
25058 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25059 Likewise.
25060 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25061 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25062 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25063 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25064 Likewise.
25065 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25066 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25067 Likewise.
25068 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25069 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25070 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25071 Likewise.
25072 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25073 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25074 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25075 (cimag): Likewise.
25076 (creal): Likewise.
25077
25078 2017-11-14 Joseph Myers <joseph@codesourcery.com>
25079
25080 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25081 for stpncpy calls for GCC 8.
25082 (test_strncat): Disable -Wstringop-truncation warning for strncat
25083 calls for GCC 8. Disable -Wstringop-overflow= warning for one
25084 strncat call for GCC 7.
25085 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25086 calls for GCC 8.
25087 (test_memcmp): Use memcpy instead of strncpy for calls not copying
25088 trailing NUL.
25089
25090 * string/bug-strncat1.c: Include <libc-diag.h>.
25091 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25092
25093 2017-11-13 Claude Paroz <claude@2xlibre.net>
25094
25095 [BZ #22387]
25096 * localedata/locales/aa_DJ: Improved readibility by replacing
25097 <Uxxxx> sequences in the ASCII printable range by their ASCII
25098 character equivalents.
25099 * localedata/locales/aa_ER: Likewise.
25100 * localedata/locales/aa_ER@saaho: Likewise.
25101 * localedata/locales/aa_ET: Likewise.
25102 * localedata/locales/af_ZA: Likewise.
25103 * localedata/locales/agr_PE: Likewise.
25104 * localedata/locales/ak_GH: Likewise.
25105 * localedata/locales/am_ET: Likewise.
25106 * localedata/locales/anp_IN: Likewise.
25107 * localedata/locales/ar_AE: Likewise.
25108 * localedata/locales/ar_BH: Likewise.
25109 * localedata/locales/ar_DZ: Likewise.
25110 * localedata/locales/ar_EG: Likewise.
25111 * localedata/locales/ar_IN: Likewise.
25112 * localedata/locales/ar_IQ: Likewise.
25113 * localedata/locales/ar_JO: Likewise.
25114 * localedata/locales/ar_KW: Likewise.
25115 * localedata/locales/ar_LB: Likewise.
25116 * localedata/locales/ar_LY: Likewise.
25117 * localedata/locales/ar_MA: Likewise.
25118 * localedata/locales/ar_OM: Likewise.
25119 * localedata/locales/ar_QA: Likewise.
25120 * localedata/locales/ar_SA: Likewise.
25121 * localedata/locales/ar_SD: Likewise.
25122 * localedata/locales/ar_SS: Likewise.
25123 * localedata/locales/ar_SY: Likewise.
25124 * localedata/locales/ar_TN: Likewise.
25125 * localedata/locales/ar_YE: Likewise.
25126 * localedata/locales/as_IN: Likewise.
25127 * localedata/locales/ast_ES: Likewise.
25128 * localedata/locales/ayc_PE: Likewise.
25129 * localedata/locales/az_AZ: Likewise.
25130 * localedata/locales/az_IR: Likewise.
25131 * localedata/locales/be_BY: Likewise.
25132 * localedata/locales/be_BY@latin: Likewise.
25133 * localedata/locales/bem_ZM: Likewise.
25134 * localedata/locales/ber_DZ: Likewise.
25135 * localedata/locales/ber_MA: Likewise.
25136 * localedata/locales/bg_BG: Likewise.
25137 * localedata/locales/bhb_IN: Likewise.
25138 * localedata/locales/bho_IN: Likewise.
25139 * localedata/locales/bi_VU: Likewise.
25140 * localedata/locales/bn_BD: Likewise.
25141 * localedata/locales/bn_IN: Likewise.
25142 * localedata/locales/bo_CN: Likewise.
25143 * localedata/locales/bo_IN: Likewise.
25144 * localedata/locales/br_FR: Likewise.
25145 * localedata/locales/brx_IN: Likewise.
25146 * localedata/locales/bs_BA: Likewise.
25147 * localedata/locales/byn_ER: Likewise.
25148 * localedata/locales/ca_AD: Likewise.
25149 * localedata/locales/ca_ES: Likewise.
25150 * localedata/locales/ca_FR: Likewise.
25151 * localedata/locales/ca_IT: Likewise.
25152 * localedata/locales/ce_RU: Likewise.
25153 * localedata/locales/chr_US: Likewise.
25154 * localedata/locales/cmn_TW: Likewise.
25155 * localedata/locales/crh_UA: Likewise.
25156 * localedata/locales/cs_CZ: Likewise.
25157 * localedata/locales/csb_PL: Likewise.
25158 * localedata/locales/cv_RU: Likewise.
25159 * localedata/locales/cy_GB: Likewise.
25160 * localedata/locales/da_DK: Likewise.
25161 * localedata/locales/de_AT: Likewise.
25162 * localedata/locales/de_BE: Likewise.
25163 * localedata/locales/de_CH: Likewise.
25164 * localedata/locales/de_DE: Likewise.
25165 * localedata/locales/de_IT: Likewise.
25166 * localedata/locales/de_LI: Likewise.
25167 * localedata/locales/de_LU: Likewise.
25168 * localedata/locales/doi_IN: Likewise.
25169 * localedata/locales/dv_MV: Likewise.
25170 * localedata/locales/dz_BT: Likewise.
25171 * localedata/locales/el_CY: Likewise.
25172 * localedata/locales/el_GR: Likewise.
25173 * localedata/locales/en_AG: Likewise.
25174 * localedata/locales/en_AU: Likewise.
25175 * localedata/locales/en_BW: Likewise.
25176 * localedata/locales/en_CA: Likewise.
25177 * localedata/locales/en_DK: Likewise.
25178 * localedata/locales/en_GB: Likewise.
25179 * localedata/locales/en_HK: Likewise.
25180 * localedata/locales/en_IE: Likewise.
25181 * localedata/locales/en_IL: Likewise.
25182 * localedata/locales/en_IN: Likewise.
25183 * localedata/locales/en_NG: Likewise.
25184 * localedata/locales/en_NZ: Likewise.
25185 * localedata/locales/en_PH: Likewise.
25186 * localedata/locales/en_SG: Likewise.
25187 * localedata/locales/en_US: Likewise.
25188 * localedata/locales/en_ZA: Likewise.
25189 * localedata/locales/en_ZM: Likewise.
25190 * localedata/locales/en_ZW: Likewise.
25191 * localedata/locales/eo: Likewise.
25192 * localedata/locales/es_AR: Likewise.
25193 * localedata/locales/es_BO: Likewise.
25194 * localedata/locales/es_CL: Likewise.
25195 * localedata/locales/es_CO: Likewise.
25196 * localedata/locales/es_CR: Likewise.
25197 * localedata/locales/es_CU: Likewise.
25198 * localedata/locales/es_DO: Likewise.
25199 * localedata/locales/es_EC: Likewise.
25200 * localedata/locales/es_ES: Likewise.
25201 * localedata/locales/es_GT: Likewise.
25202 * localedata/locales/es_HN: Likewise.
25203 * localedata/locales/es_MX: Likewise.
25204 * localedata/locales/es_NI: Likewise.
25205 * localedata/locales/es_PA: Likewise.
25206 * localedata/locales/es_PE: Likewise.
25207 * localedata/locales/es_PR: Likewise.
25208 * localedata/locales/es_PY: Likewise.
25209 * localedata/locales/es_SV: Likewise.
25210 * localedata/locales/es_US: Likewise.
25211 * localedata/locales/es_UY: Likewise.
25212 * localedata/locales/es_VE: Likewise.
25213 * localedata/locales/et_EE: Likewise.
25214 * localedata/locales/eu_ES: Likewise.
25215 * localedata/locales/eu_ES@euro: Likewise.
25216 * localedata/locales/fa_IR: Likewise.
25217 * localedata/locales/ff_SN: Likewise.
25218 * localedata/locales/fi_FI: Likewise.
25219 * localedata/locales/fil_PH: Likewise.
25220 * localedata/locales/fo_FO: Likewise.
25221 * localedata/locales/fr_BE: Likewise.
25222 * localedata/locales/fr_CA: Likewise.
25223 * localedata/locales/fr_CH: Likewise.
25224 * localedata/locales/fr_FR: Likewise.
25225 * localedata/locales/fr_LU: Likewise.
25226 * localedata/locales/fur_IT: Likewise.
25227 * localedata/locales/fy_DE: Likewise.
25228 * localedata/locales/fy_NL: Likewise.
25229 * localedata/locales/ga_IE: Likewise.
25230 * localedata/locales/gd_GB: Likewise.
25231 * localedata/locales/gez_ER: Likewise.
25232 * localedata/locales/gez_ET: Likewise.
25233 * localedata/locales/gl_ES: Likewise.
25234 * localedata/locales/gu_IN: Likewise.
25235 * localedata/locales/gv_GB: Likewise.
25236 * localedata/locales/ha_NG: Likewise.
25237 * localedata/locales/hak_TW: Likewise.
25238 * localedata/locales/he_IL: Likewise.
25239 * localedata/locales/hi_IN: Likewise.
25240 * localedata/locales/hif_FJ: Likewise.
25241 * localedata/locales/hne_IN: Likewise.
25242 * localedata/locales/hr_HR: Likewise.
25243 * localedata/locales/hsb_DE: Likewise.
25244 * localedata/locales/ht_HT: Likewise.
25245 * localedata/locales/hu_HU: Likewise.
25246 * localedata/locales/hy_AM: Likewise.
25247 * localedata/locales/i18n: Likewise.
25248 * localedata/locales/ia_FR: Likewise.
25249 * localedata/locales/id_ID: Likewise.
25250 * localedata/locales/ig_NG: Likewise.
25251 * localedata/locales/ik_CA: Likewise.
25252 * localedata/locales/is_IS: Likewise.
25253 * localedata/locales/it_CH: Likewise.
25254 * localedata/locales/it_IT: Likewise.
25255 * localedata/locales/iu_CA: Likewise.
25256 * localedata/locales/ja_JP: Likewise.
25257 * localedata/locales/ka_GE: Likewise.
25258 * localedata/locales/kk_KZ: Likewise.
25259 * localedata/locales/kl_GL: Likewise.
25260 * localedata/locales/kn_IN: Likewise.
25261 * localedata/locales/ko_KR: Likewise.
25262 * localedata/locales/kok_IN: Likewise.
25263 * localedata/locales/ks_IN: Likewise.
25264 * localedata/locales/ks_IN@devanagari: Likewise.
25265 * localedata/locales/ku_TR: Likewise.
25266 * localedata/locales/kw_GB: Likewise.
25267 * localedata/locales/ky_KG: Likewise.
25268 * localedata/locales/lb_LU: Likewise.
25269 * localedata/locales/lg_UG: Likewise.
25270 * localedata/locales/li_BE: Likewise.
25271 * localedata/locales/li_NL: Likewise.
25272 * localedata/locales/lij_IT: Likewise.
25273 * localedata/locales/ln_CD: Likewise.
25274 * localedata/locales/lo_LA: Likewise.
25275 * localedata/locales/lt_LT: Likewise.
25276 * localedata/locales/lv_LV: Likewise.
25277 * localedata/locales/lzh_TW: Likewise.
25278 * localedata/locales/mag_IN: Likewise.
25279 * localedata/locales/mai_IN: Likewise.
25280 * localedata/locales/mg_MG: Likewise.
25281 * localedata/locales/mhr_RU: Likewise.
25282 * localedata/locales/mi_NZ: Likewise.
25283 * localedata/locales/mk_MK: Likewise.
25284 * localedata/locales/ml_IN: Likewise.
25285 * localedata/locales/mn_MN: Likewise.
25286 * localedata/locales/mni_IN: Likewise.
25287 * localedata/locales/mr_IN: Likewise.
25288 * localedata/locales/ms_MY: Likewise.
25289 * localedata/locales/mt_MT: Likewise.
25290 * localedata/locales/my_MM: Likewise.
25291 * localedata/locales/nan_TW: Likewise.
25292 * localedata/locales/nan_TW@latin: Likewise.
25293 * localedata/locales/nb_NO: Likewise.
25294 * localedata/locales/nds_DE: Likewise.
25295 * localedata/locales/nds_NL: Likewise.
25296 * localedata/locales/ne_NP: Likewise.
25297 * localedata/locales/nhn_MX: Likewise.
25298 * localedata/locales/niu_NU: Likewise.
25299 * localedata/locales/niu_NZ: Likewise.
25300 * localedata/locales/nl_AW: Likewise.
25301 * localedata/locales/nl_BE: Likewise.
25302 * localedata/locales/nl_NL: Likewise.
25303 * localedata/locales/nn_NO: Likewise.
25304 * localedata/locales/nr_ZA: Likewise.
25305 * localedata/locales/nso_ZA: Likewise.
25306 * localedata/locales/oc_FR: Likewise.
25307 * localedata/locales/om_ET: Likewise.
25308 * localedata/locales/om_KE: Likewise.
25309 * localedata/locales/or_IN: Likewise.
25310 * localedata/locales/os_RU: Likewise.
25311 * localedata/locales/pa_IN: Likewise.
25312 * localedata/locales/pa_PK: Likewise.
25313 * localedata/locales/pap_AW: Likewise.
25314 * localedata/locales/pap_CW: Likewise.
25315 * localedata/locales/pl_PL: Likewise.
25316 * localedata/locales/ps_AF: Likewise.
25317 * localedata/locales/pt_BR: Likewise.
25318 * localedata/locales/pt_PT: Likewise.
25319 * localedata/locales/quz_PE: Likewise.
25320 * localedata/locales/raj_IN: Likewise.
25321 * localedata/locales/ro_RO: Likewise.
25322 * localedata/locales/ru_RU: Likewise.
25323 * localedata/locales/ru_UA: Likewise.
25324 * localedata/locales/rw_RW: Likewise.
25325 * localedata/locales/sa_IN: Likewise.
25326 * localedata/locales/sat_IN: Likewise.
25327 * localedata/locales/sc_IT: Likewise.
25328 * localedata/locales/sd_IN: Likewise.
25329 * localedata/locales/sd_IN@devanagari: Likewise.
25330 * localedata/locales/se_NO: Likewise.
25331 * localedata/locales/sgs_LT: Likewise.
25332 * localedata/locales/shs_CA: Likewise.
25333 * localedata/locales/si_LK: Likewise.
25334 * localedata/locales/sid_ET: Likewise.
25335 * localedata/locales/sk_SK: Likewise.
25336 * localedata/locales/sl_SI: Likewise.
25337 * localedata/locales/sm_WS: Likewise.
25338 * localedata/locales/so_DJ: Likewise.
25339 * localedata/locales/so_ET: Likewise.
25340 * localedata/locales/so_KE: Likewise.
25341 * localedata/locales/so_SO: Likewise.
25342 * localedata/locales/sq_AL: Likewise.
25343 * localedata/locales/sq_MK: Likewise.
25344 * localedata/locales/sr_ME: Likewise.
25345 * localedata/locales/sr_RS: Likewise.
25346 * localedata/locales/sr_RS@latin: Likewise.
25347 * localedata/locales/ss_ZA: Likewise.
25348 * localedata/locales/st_ZA: Likewise.
25349 * localedata/locales/sv_FI: Likewise.
25350 * localedata/locales/sv_SE: Likewise.
25351 * localedata/locales/sw_KE: Likewise.
25352 * localedata/locales/sw_TZ: Likewise.
25353 * localedata/locales/szl_PL: Likewise.
25354 * localedata/locales/ta_IN: Likewise.
25355 * localedata/locales/ta_LK: Likewise.
25356 * localedata/locales/tcy_IN: Likewise.
25357 * localedata/locales/te_IN: Likewise.
25358 * localedata/locales/tg_TJ: Likewise.
25359 * localedata/locales/th_TH: Likewise.
25360 * localedata/locales/the_NP: Likewise.
25361 * localedata/locales/ti_ER: Likewise.
25362 * localedata/locales/ti_ET: Likewise.
25363 * localedata/locales/tig_ER: Likewise.
25364 * localedata/locales/tk_TM: Likewise.
25365 * localedata/locales/tl_PH: Likewise.
25366 * localedata/locales/tn_ZA: Likewise.
25367 * localedata/locales/to_TO: Likewise.
25368 * localedata/locales/tpi_PG: Likewise.
25369 * localedata/locales/tr_CY: Likewise.
25370 * localedata/locales/tr_TR: Likewise.
25371 * localedata/locales/ts_ZA: Likewise.
25372 * localedata/locales/tt_RU: Likewise.
25373 * localedata/locales/tt_RU@iqtelif: Likewise.
25374 * localedata/locales/ug_CN: Likewise.
25375 * localedata/locales/uk_UA: Likewise.
25376 * localedata/locales/unm_US: Likewise.
25377 * localedata/locales/ur_IN: Likewise.
25378 * localedata/locales/ur_PK: Likewise.
25379 * localedata/locales/uz_UZ: Likewise.
25380 * localedata/locales/uz_UZ@cyrillic: Likewise.
25381 * localedata/locales/ve_ZA: Likewise.
25382 * localedata/locales/vi_VN: Likewise.
25383 * localedata/locales/wa_BE: Likewise.
25384 * localedata/locales/wae_CH: Likewise.
25385 * localedata/locales/wal_ET: Likewise.
25386 * localedata/locales/wo_SN: Likewise.
25387 * localedata/locales/xh_ZA: Likewise.
25388 * localedata/locales/yi_US: Likewise.
25389 * localedata/locales/yo_NG: Likewise.
25390 * localedata/locales/yue_HK: Likewise.
25391 * localedata/locales/yuw_PG: Likewise.
25392 * localedata/locales/zh_CN: Likewise.
25393 * localedata/locales/zh_HK: Likewise.
25394 * localedata/locales/zh_SG: Likewise.
25395 * localedata/locales/zh_TW: Likewise.
25396 * localedata/locales/zu_ZA: Likewise.
25397
25398 2017-11-13 Florian Weimer <fweimer@redhat.com>
25399
25400 * support/next_to_fault.h, support/next_to_fault.c: New files.
25401 * support/Makefile (libsupport-routines): Add next_to_fault.
25402 * resolv/tst-inet_pton.c (struct next_to_fault)
25403 (next_to_fault_allocate, next_to_fault_free): Remove.
25404 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25405
25406 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25407
25408 * elf/dl-support.c: Include <dl-procruntime.c>.
25409 * include/link.h: Include <link_map.h>.
25410 * sysdeps/generic/dl-procruntime.c: New file.
25411 * sysdeps/generic/link_map.h: Likewise.
25412 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25413 the writable ld.so namespace.
25414
25415 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25416
25417 timezone: pacify GCC -Wstringop-truncation
25418 Problem reported by Martin Sebor in:
25419 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25420 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25421
25422 2017-11-12 Florian Weimer <fweimer@redhat.com>
25423
25424 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25425 tst-xreadlink.
25426 (tests): Add tst-xreadlink.
25427 * support/support.h (xstrndup): Declare.
25428 * support/xunistd.h (xunlink, xreadlink): Declare.
25429 * support/temp_file.h (support_create_temp_directory): Declare.
25430 * support/temp_file.c (support_create_temp_directory): New function.
25431 * support/support_chroot.c (support_chroot_create): Use it.
25432 * support/xreadlink.c: New file.
25433 * support/xstrndup.c: Likewise.
25434 * support/xunlink.c: Likewise.
25435 * support/tst-xreadlink.c: Likewise.
25436
25437 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25438
25439 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25440
25441 2017-11-11 Florian Weimer <fweimer@redhat.com>
25442
25443 [BZ #22409]
25444 [BZ #22412]
25445 * resolv/res_comp.c (printable_string, binary_hnok)
25446 (binary_leading_dash): New functions.
25447 (res_hnok): Reimplement using these functions and ns_name_pton.
25448 (res_ownok): Likewise.
25449 (res_mailok): Reimplement using printable_string, ns_name_pton and
25450 binary_hnok.
25451 (res_dnok): Reimplement using printable_string and ns_name_pton.
25452 * resolv/tst-res_hnok.c (tests): Add additional tests.
25453 (LETTERDIGITS, PRINTABLE): Define.
25454 (do_test): Adjust one_char results.
25455
25456 2017-11-11 Florian Weimer <fweimer@redhat.com>
25457
25458 [BZ #22413]
25459 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25460 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25461
25462 2017-11-11 Florian Weimer <fweimer@redhat.com>
25463
25464 * resolv/tst-ns_name_pton.c: New file.
25465 * resolv/Makefile (tests): Add tst-ns_name_pton.
25466 (tst-ns_name_pton): Link against libresolv.
25467
25468 2017-11-11 Florian Weimer <fweimer@redhat.com>
25469
25470 * resolv/tst-res_hnok.c: New file.
25471 * resolv/Makefile (tests): Add tst-res_hnok.
25472 (tst-res_hnok): Link against libresolv.
25473
25474 2017-11-11 Florian Weimer <fweimer@redhat.com>
25475
25476 * resolv/tst-resolv-network.c: Use test framework instead explicit
25477 main function.
25478
25479 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25480
25481 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25482 <jmp_buf-macros.h>.
25483 [!_ISOMAC] (STR_HELPER): New.
25484 [!_ISOMAC] (STR): Likewise.
25485 [!_ISOMAC] (TEST_SIZE): Likewise.
25486 [!_ISOMAC] (TEST_ALIGN): Likewise.
25487 [!_ISOMAC] (TEST_OFFSET): Likewise.
25488 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25489 field offsets of jmp_buf as well as sigjmp_buf.
25490 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25491 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25492 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25493 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25494 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25495 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25496 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25497 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25498 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25499 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25500 Likewise.
25501 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25502 Likewise.
25503 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25505 Likewise.
25506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25507 Likewise.
25508 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25509 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25510 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25511 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25512 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25513 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25514 Likewise.
25515 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25516 Likewise.
25517 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25518 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25519 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25520
25521 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25522
25523 * include/float.h
25524 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25525 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25526 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25527 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25528 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25529 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25530 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25531 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25532 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25533 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25534 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25535 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25536 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25537 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25538 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25539 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25540 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25541 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25542 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25543 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25544 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25545 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25546 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25547 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25548 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25549 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25550 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25551 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25552 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25553 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25554 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25555 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25556 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25557 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25558 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25559 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25560 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25561 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25562 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25563 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25564 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25565 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25566 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25567 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25568 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25569 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25570 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25571 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25572 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25573 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25574 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25575 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25576 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25577 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25578 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25579 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25580 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25581 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25582 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25583 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25584 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25585 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25586 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25587 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25588 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25589 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25590 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25591 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25592 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25593 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25594 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25595 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25596 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25597 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25598 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25599 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25600 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25601 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25602 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25603 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25604 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25605 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25606 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25607 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25608 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25609 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25610 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25611 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25612
25613 * stdlib/tst-strtod.h (F16): New macro.
25614 (F32): Likewise.
25615 (F64): Likewise.
25616 (F32X): Likewise.
25617 (F64X): Likewise.
25618 (F128X): Likewise.
25619 (IF_FLOAT16): Likewise.
25620 (IF_FLOAT32): Likewise.
25621 (IF_FLOAT64): Likewise.
25622 (IF_FLOAT32X): Likewise.
25623 (IF_FLOAT64X): Likewise.
25624 (IF_FLOAT128X): Likewise.
25625 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25626 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25627 (STRTOD_TEST_FOREACH): Likewise.
25628 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25629 (CHOOSE_f64): Likewise.
25630 (CHOOSE_f32x): Likewise.
25631 (CHOOSE_f64x): Likewise.
25632
25633 2017-11-07 Andreas Schwab <schwab@suse.de>
25634
25635 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25636
25637 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25638
25639 [BZ #22403]
25640 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25641 to be escaped.
25642 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25643 to be escaped.
25644
25645 2017-11-07 Claude Paroz <claude@2xlibre.net>
25646
25647 [BZ #22403]
25648 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25649 to be escaped.
25650 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25651 to be escaped.
25652 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25653 to be escaped.
25654
25655 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25656
25657 [BZ #22298]
25658 * nptl/allocatestack.c (allocate_stack): Check if
25659 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25660 __PTHREAD_MUTEX_HAVE_PREV is defined.
25661 * nptl/descr.h (pthread): Likewise.
25662 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25663 Likewise.
25664 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25665 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25666 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25667 * sysdeps/nptl/bits/thread-shared-types.h
25668 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25669 defines.
25670 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25671 of __WORDSIZE for internal layout.
25672 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25673 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25674 instead of __WORDSIZE whether to use an union for __spins and __list
25675 fields.
25676 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25677 case.
25678 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25679 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25680 defines.
25681 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25682 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25683 Likewise.
25684 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25685 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25686 Likewise.
25687 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25688 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25689 Likewise.
25690 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25691 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25692 Likewise.
25693 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25694 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25695 Likewise.
25696 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25697 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25698 Likewise.
25699 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25700 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25701 Likewise.
25702 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25703 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25704 Likewise.
25705 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25706 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25707 Likewise.
25708 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25709 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25710 Likewise.
25711 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25712 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25713 Likewise.
25714 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25715 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25716 Likewise.
25717 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25718 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25719 Likewise.
25720 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25721 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25722 Likewise.
25723
25724 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25725 New macros.
25726 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25727 checks for expected input type size.
25728 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25729 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25730 Likewise.
25731 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25732 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25733 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25734 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25735 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25736 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25737 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25738 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25739 superflous runtime assert check.
25740 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25741 Likewise.
25742 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25743 Likewise.
25744 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25745 Likewise.
25746 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25747 Likewise.
25748 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25749 Likewise.
25750 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25751 Likewise.
25752 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25753 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25754 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25755 Likewise.
25756 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25757 Likewise.
25758 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25759 Likewise.
25760 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25761 Likewise.
25762 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25763 Likewise.
25764 * nptl/pthread_attr_setinheritsched.c
25765 (__pthread_attr_setinheritsched): Likewise.
25766 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25767 Likewise.
25768 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25769 Likewise.
25770 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25771 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25772 __old_pthread_attr_setstack): Likewise.
25773 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25774 Likewise.
25775 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25776 Likewise.
25777 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25778 Likewise.
25779 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25780 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25781 Likewise.
25782 * nptl/tst-typesizes.c: Remove file.
25783
25784 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25785 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25786 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25787 checks for internal pthread_mutex_t offsets.
25788 * sysdeps/aarch64/nptl/pthread-offsets.h
25789 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25790 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25791 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25792 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25793 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25794 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25795 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25796 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25797 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25798 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25799 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25800 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25801 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25802 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25803 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25804 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25805 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25806 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25807
25808 2017-11-07 Florian Weimer <fweimer@redhat.com>
25809
25810 * bits/mman-linux.h: Move ...
25811 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25812 comment.
25813 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25814 outdated comment.
25815
25816 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25817
25818 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25819 Redefine STRNLEN as __strnlen_power8.
25820
25821 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25822
25823 * signal/sighold.c (sighold): Optimize implementation.
25824
25825 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25826 __NR_rt_sigqueueinfo.
25827
25828 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25829 __sigtimedwait.
25830 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25831 assume __NR_rt_sigtimedwait.
25832 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25833 and add LIBC_CANCEL_HANDLED for cancellation marking.
25834 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25835
25836 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25837 (sysdeps_routines): Add memchr_noneon.
25838 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25839 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25840 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25841 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25842 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25843 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25844 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25845
25846 * sysdeps/arm/arm-ifunc.h: New file.
25847 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25848 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25849 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25850 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25851 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25852 (__memcpy_neon): Avoid create hidden alias.
25853 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25854 (__memcpy_vfp): Likewise.
25855 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25856 (sysdep_routines): Add memcpy_arm.
25857 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25858
25859 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25860
25861 [BZ #22362]
25862 * Makerules (make-link-multidir): New.
25863 * config.make.in (multidir): New.
25864 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25865 * configure: Regenerated.
25866 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25867 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25868 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25869 New target.
25870
25871 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25872
25873 [BZ #22402]
25874 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25875 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25876
25877 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25878
25879 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25880 to be escaped.
25881
25882 2017-11-04 Florian Weimer <fweimer@redhat.com>
25883
25884 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25885
25886 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25887
25888 * math/math.h [__HAVE_DISTINCT_FLOAT16
25889 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25890 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25891 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25892 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25893 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25894 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25895 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25896 (__MATH_TG_F32): New macro.
25897 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25898 (__MATH_TG_F64X): Likewise.
25899 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25900 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25901
25902 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25903
25904 * po/de.po: Update translations.
25905 * po/ru.po: Likewise.
25906
25907 2017-11-03 Florian Weimer <fweimer@redhat.com>
25908
25909 * manual/filesys.texi (Hard Links): Document linkat.
25910
25911 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25912
25913 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25914 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25915 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25916 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25917 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25918 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25919 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25920 the same as _Float128.
25921 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25922 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25923 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25924
25925 * stdlib/stdlib.h
25926 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25927 Declare.
25928 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25929 Likewise.
25930 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25931 Likewise.
25932 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25933 (strtof32x): Likewise.
25934 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25935 (strtof64x): Likewise.
25936 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25937 (strtof128x): Likewise.
25938 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25939 (strfromf16): Likewise.
25940 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25941 (strfromf32): Likewise.
25942 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25943 (strfromf64): Likewise.
25944 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25945 (strfromf32x): Likewise.
25946 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25947 (strfromf64x): Likewise.
25948 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25949 (strfromf128x): Likewise.
25950 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25951 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25952 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25953 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25954 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25955 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25956
25957 2017-11-03 Richard Henderson <rth@twiddle.net>
25958
25959 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25960
25961 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25962
25963 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25964
25965 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25966
25967 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25968 DT_TLSDESC_GOT initialization.
25969 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25970 (_dl_tlsdesc_resolve_hold): Likewise.
25971 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25972 (_dl_tlsdesc_resolve_hold): Likewise.
25973 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25974 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25975
25976 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25977
25978 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25979
25980 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25981
25982 [BZ #18572]
25983 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25984 non-lazily for R_ARM_TLS_DESC.
25985
25986 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25987
25988 [BZ #17078]
25989 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25990 R_ARM_TLS_DESC case.
25991 (elf_machine_lazy_rel): Remove the prelink check.
25992
25993 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25994
25995 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25996 DT_TLSDESC_GOT initialization.
25997 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25998 (_dl_tlsdesc_resolve_rela): Likewise.
25999 (_dl_tlsdesc_resolve_hold): Likewise.
26000 (_dl_tlsdesc_undefweak): Remove ldar.
26001 (_dl_tlsdesc_dynamic): Likewise.
26002 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
26003 (_dl_tlsdesc_resolve_rela): Likewise.
26004 (_dl_tlsdesc_resolve_hold): Likewise.
26005 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
26006 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26007 (_dl_tlsdesc_resolve_rela): Likewise.
26008 (_dl_tlsdesc_resolve_hold): Likewise.
26009
26010 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26011
26012 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26013 binding and initialization non-lazily for R_AARCH64_TLSDESC.
26014
26015 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26016
26017 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26018 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26019
26020 2017-11-02 Joseph Myers <joseph@codesourcery.com>
26021
26022 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26023 Declare.
26024 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26025 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26026 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26027 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26028 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26029 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26030 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26031 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26032 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26033 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26034 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26035
26036 2017-11-02 Mike FABIAN <mfabian@redhat.com>
26037
26038 [BZ #22382]
26039 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26040 * localedata/locales/tpi_PG: Add standard header.
26041
26042 2017-11-02 Florian Weimer <fweimer@redhat.com>
26043
26044 test-errno-linux: quotactl can fail with EPERM in containers.
26045 * sysdeps/unix/sysv/linux/test-errno-linux.c
26046 (LIST, LIST_FORWARD): New macros.
26047 (check_error_in_list): New function.
26048 (test_wrp_rv): Accept list of permitted error codes.
26049 (test_wrp_rv2): Remove.
26050 (test_wrp): Call test_wrp_rv with list of error codes.
26051 (test_wrp2): Accept list of error codes.
26052 (do_test): Adjust. Allow EPERM for quotactl.
26053
26054 2017-11-02 Florian Weimer <fweimer@redhat.com>
26055
26056 * stdio-common/bug16.c (do_test): Use array_length.
26057 * stdio-common/errlist.c (_sys_nerr): Likewise.
26058 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26059 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26060 * stdio-common/psiginfo.c (psiginfo): Use array_length.
26061 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26062 (do_test): Use array_length.
26063 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26064 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26065 * stdio-common/tst-printf-round.c (do_test): Likewise.
26066 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26067 (CHECK): Use array_length.
26068 * stdio-common/tstdiomisc.c (t3, F): Likewise.
26069 * stdio-common/tstscanf.c (main): Likewise.
26070 * stdio-common/vfprintf.c (process_string_arg): Likewise.
26071
26072 2017-11-02 Florian Weimer <fweimer@redhat.com>
26073
26074 Add array_length and array_end macros.
26075 * include/array_length.h: New file.
26076
26077 2017-11-02 Florian Weimer <fweimer@redhat.com>
26078
26079 [BZ #22332]
26080 * posix/tst-glob-tilde.c (do_noescape): New variable.
26081 (one_test): Process it.
26082 (do_test): Set do_noescape. Add unescaping test case.
26083
26084 2017-11-01 Joseph Myers <joseph@codesourcery.com>
26085
26086 * math/complex.h
26087 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26088 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26089 with appropriate macros defined and undefined.
26090 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26091 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26092 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26093 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26094 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26095 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26096 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26097 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26098 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26099 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26100
26101 * math/complex.h
26102 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26103 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26104 that for long double. Do not condition define and undefine of
26105 _Mdouble_complex_ on [__CFLOAT128].
26106
26107 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
26108
26109 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26110 of <sysdeps/generic/sysdep.h>.
26111 (ALIGNARG): Removed.
26112 (ASM_SIZE_DIRECTIVE): Likewise.
26113 (ENTRY): Likewise.
26114 (END): Likewise.
26115 (ENTRY_CHK): Likewise.
26116 (END_CHK): Likewise.
26117 (syscall_error): Likewise.
26118 (mcount): Likewise.
26119 (PSEUDO_END): Likewise.
26120 (L): Likewise.
26121 (atom_text_section): Likewise.
26122 * sysdeps/x86/sysdep.h: New file.
26123 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26124 of <sysdeps/generic/sysdep.h>.
26125 (ALIGNARG): Removed.
26126 (ASM_SIZE_DIRECTIVE): Likewise.
26127 (ENTRY): Likewise.
26128 (END): Likewise.
26129 (ENTRY_CHK): Likewise.
26130 (END_CHK): Likewise.
26131 (syscall_error): Likewise.
26132 (mcount): Likewise.
26133 (PSEUDO_END): Likewise.
26134 (L): Likewise.
26135 (atom_text_section): Likewise.
26136
26137 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
26138
26139 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26140 category of LC_CTYPE set to "i18n:2012".
26141 * localedata/locales/i18n_ctype: Regenerate.
26142
26143 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
26144
26145 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26146 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26147 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26148 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26149
26150 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26151 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26152 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26153 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26154
26155 2017-10-31 Joseph Myers <joseph@codesourcery.com>
26156
26157 * math/complex.h
26158 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26159 New macro.
26160 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26161 Likewise.
26162 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26163 Likewise.
26164 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26165 (CMPLXF32X): Likewise.
26166 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26167 (CMPLXF64X): Likewise.
26168 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26169 (CMPLXF128X): Likewise.
26170
26171 * math/math.h
26172 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26173 (__MATH_EVAL_FMT2): Define to add 0.0f.
26174
26175 2017-10-31 Alan Modra <amodra@gmail.com>
26176
26177 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26178 include sysdep.h.
26179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26180 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26190 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26193 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26194 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26195 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26196 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26197 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26198 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26199 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26200 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26201 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26202 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26203 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26204 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26205 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26206 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26207 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26208 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26209 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26210 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26211 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26212 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26213 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26214 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26215 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26216 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26217 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26218 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26219 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26220 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26221 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26222 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26223 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26224 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26225 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26226 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26227 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26228 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26229 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26230 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26231 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26232 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26233 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26234 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26235 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26236 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26237 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26238 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26239 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26240 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26241 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26242 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26243 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26244 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26245 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26246 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26247 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26248
26249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26250 include sysdep.h and math_ldbl_opt.h.
26251
26252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26253 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
26254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26278
26279 2017-10-31 Alan Modra <amodra@gmail.com>
26280
26281 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26282 string/strncase_l.c, not string/strncase.c.
26283 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26284 (libc_hidden_def): Redefine.
26285
26286 2017-10-31 Alan Modra <amodra@gmail.com>
26287
26288 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26289 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26290 (__strcasecmp): Don't define.
26291
26292 2017-10-31 Alan Modra <amodra@gmail.com>
26293
26294 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26295 IS_IN (libc).
26296 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26297 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26298 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26299
26300 2017-10-31 Alan Modra <amodra@gmail.com>
26301
26302 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26303 USE_AS_STPNCPY.
26304
26305 2017-10-31 Alan Modra <amodra@gmail.com>
26306
26307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26308 Redefine only when SHARED.
26309
26310 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26311
26312 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26313 Include <bits/math-finite.h> with appropriate macros defined and
26314 undefined.
26315 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26316 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26317 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26318 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26319 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26320
26321 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26322 [!_Mlong_double_] (_Mlong_double_): Likewise.
26323 [!_Mfloat16_] (_Mfloat16_): Likewise.
26324 [!_Mfloat32_] (_Mfloat32_): Likewise.
26325 [!_Mfloat64_] (_Mfloat64_): Likewise.
26326 [!_Mfloat128_] (_Mfloat128_): Likewise.
26327 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26328 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26329 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26330 (_Mdouble_): Define without indirection through those macros.
26331 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26332 [!_Mfloat128_] (_Mfloat128_): Likewise.
26333 [_Mlong_double_] (_Mlong_double_): Likewise.
26334 (_Mdouble_): Define without indirection through those macros.
26335 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26336 not add -D_Mlong_double_=double.
26337 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26338 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26339
26340 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26341
26342 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26343
26344 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 * sysdeps/x86/libc-start.c: Reformat.
26347
26348 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26349
26350 [BZ #22353]
26351 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26352 (1): Renamed to ...
26353 (L(Src0)): This.
26354 (L(Src1)): New.
26355 (L(Src2)): Likewise.
26356 (L(1)): Renamed to ...
26357 (L(Src3)): This.
26358
26359 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26360
26361 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26362 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26363 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26364 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26365 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26366 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26367 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26368 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26369 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26370 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26371 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26372 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26373 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26374 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26375 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26376 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26377 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26378 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26379 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26380 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26381 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26382 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26383 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26384 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26385 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26386 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26387 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26388 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26389 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26390 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26391 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26392 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26393 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26394 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26395 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26396 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26397 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26398 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26399 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26400 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26401 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26402 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26403 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26404 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26405 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26406 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26407 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26408 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26409 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26410 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26411 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26412 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26413 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26414 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26415 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26416 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26417 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26418 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26419 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26420 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26421 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26422 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26423 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26424 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26425 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26426 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26427
26428 2017-10-30 Florian Weimer <fweimer@redhat.com>
26429
26430 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26431 always defined.
26432 * io/tst-mkdirat.c (do_test): Likewise.
26433 * io/tst-mkfifoat.c (do_test): Likewise.
26434 * io/tst-mknodat.c (do_test): Likewise.
26435 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26436 * locale/programs/locale.c (select_dirs): Likewise.
26437 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26438 * posix/bug-glob2.c (my_readdir): Likewise.
26439 * posix/tst-dir.c (main): Likewise.
26440 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26441 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26442
26443 2017-10-30 Florian Weimer <fweimer@redhat.com>
26444
26445 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26446 just __USE_GNU.
26447
26448 2017-10-30 Florian Weimer <fweimer@redhat.com>
26449
26450 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26451 Convert to support/test-driver.c.
26452 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26453 New macro parameters.
26454 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26455 * posix/tst-gnuglob.c: New file.
26456 * posix/tst-gnuglob64.c: Likewise.
26457 * posix/Makefile (tests): Add tst-gnuglob64.
26458
26459 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26460
26461 [BZ #19485]
26462 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26463 and use a better translation for March in “mon”.
26464 * localedata/locales/csb_PL: Use more ASCII to improve the
26465 readability of the source.
26466
26467 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26468
26469 [BZ #13953]
26470 * localedata/locales/km_KH: Use ASCII as much
26471 as possible for better readability of the source and
26472 remove useless comments.
26473 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26474 was commented out and apparently wrong anyway because it was
26475 using Lao characters. If Buddhist era should be used
26476 for km_KH, a native speaker should write the correct formaat
26477 for Khmer.
26478 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26479 (According to CLDR, the first weekday for Cambodia is Sunday).
26480 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26481 (These were using Lao characters which must be wrong. If we get
26482 the correct data from a native speaker, we could add it back, until
26483 then it is better not to have name_mr and name_mrs at all than
26484 having it wrong).
26485
26486 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26487
26488 * locale/loadlocale.c: Correct size of
26489 _nl_value_type_LC_<category> arrays.
26490
26491 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26492
26493 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26494 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26495 with appropriate macros defined and undefined.
26496 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26497 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26498 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26499 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26500 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26501
26502 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26503
26504 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26505 "-O2 -march=i586".
26506
26507 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26508
26509 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26510 with lowercase letters to make it agree with CLDR.
26511
26512 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26513
26514 [BZ #15260]
26515 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26516 first letters of yesstr and nostr in yesexpr and noexpr,
26517 not for the full words.
26518 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26519 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26520 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26521 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26522 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26523 first letters of yesstr and nostr in yesexpr and noexpr,
26524 until now only English was matched in yesexpr and noexpr.
26525 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26526 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26527 fil but not for tl. As tl and fil are very similar, using fil
26528 is probably better than using English.
26529
26530 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26531
26532 [BZ #21706]
26533 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26534 in yesstr and nostr.
26535
26536 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26537
26538 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26539 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26540 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26541 Likewise.
26542 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26543 Likewise.
26544 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26545 Likewise.
26546 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26547 Likewise.
26548 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26549 (SNANF128X): Likewise.
26550
26551 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26552 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26553 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26554 (HUGE_VAL_F32): Likewise.
26555 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26556 (HUGE_VAL_F64): Likewise.
26557 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26558 (HUGE_VAL_F32X): Likewise.
26559 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26560 (HUGE_VAL_F64X): Likewise.
26561 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26562 (HUGE_VAL_F128X): Likewise.
26563
26564 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26565
26566 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26567 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26568 for the br_FR locale.
26569
26570 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26571
26572 [BZ #21706]
26573 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26574
26575 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26576
26577 * locale/programs/record-status.h: Define globals, and function
26578 prototypes. Move function bodies...
26579 * locale/programs/record-status.c: ... to here. New file.
26580 * iconv/Makefile (iconv_prog-modules): Add record-status.
26581 * locale/Makefile (lib-modules): Likewise.
26582 * iconv/iconv_prog.c: Remove verbose.
26583 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26584 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26585 record a warning about ASCII compatibility.
26586 * locale/programs/ld-monetary.c (monetary_finish): If
26587 warn_int_curr_symbol is true then record a warning about the symbol
26588 not being in our ISO 4217 list.
26589 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26590 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26591 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26592 (OPT_NO_WARN): Define.
26593 (OPT_WARN): Define.
26594 (options): Add entry for --no-warnings, and --warnings.
26595 (set_warnings): New function to enable/disable warnings.
26596 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26597 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26598 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26599 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26600 Pass flags to generate_locale.
26601 (generate_locale): Accept new flag argument and pass it to localedef
26602 invocation.
26603 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26604 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26605
26606 * localedata/Makefile (test-input-data): Use full file name.
26607 * localedata/da_DK.in: Rename to...
26608 * localedata/da_DK.ISO-8859-1.in: ...this.
26609 * localedata/de_DE.in: Rename to...
26610 * localedata/de_DE.ISO-8859-1.in: ...this.
26611 * localedata/en_US.in: Rename to...
26612 * localedata/en_US.ISO-8859-1.in: ...this.
26613 * localedata/fr_FR.in: Rename to...
26614 * localedata/fr_FR.UTF-8.in: ... this.
26615 * localedata/hr_HR.in: Rename to...
26616 * localedata/hr_HR.ISO-8859-2.in: ...this.
26617 * localedata/hu_HU.in: Rename to...
26618 * localedata/hu_HU.UTF-8.in: ...this.
26619 * localedata/si_LK.in: Rename to...
26620 * localedata/si_LK.UTF-8.in: ...this.
26621 * localedata/sv_SE.in: Rename to...
26622 * localedata/sv_SE.ISO-8859-1.in: ...this.
26623 * localedata/tr_TR.in: Rename to...
26624 * localedata/tr_TR.UTF-8.in: ...this.
26625 * localedata/uk_UA.in: Rename to...
26626 * localedata/uk_UA.UTF-8.in: ...this.
26627 * localedata/sort-test.sh: Test file is locale name with the
26628 suffix.
26629
26630 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26631 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26632 file.
26633 * localedata/locales/i18n_ctype: Regenerate.
26634 * localedata/locales/tr_TR: Likewise.
26635 * localedata/locales/translit_circle: Likewise.
26636 * localedata/locales/translit_cjk_compat: Likewise.
26637 * localedata/locales/translit_combining: Likewise.
26638 * localedata/locales/translit_compat: Likewise.
26639 * localedata/locales/translit_font: Likewise.
26640 * localedata/locales/translit_fraction: Likewise.
26641
26642 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26643
26644 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26645 lxvd2x/stxvd2x with lvx/stvx.
26646 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26647
26648 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26649
26650 * include/alloc_buffer.h: Replace "if if " with "if " in
26651 comments.
26652 * sysdeps/mips/memcpy.S: Likkewise.
26653 * sysdeps/mips/memset.S: Likewise.
26654 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26655 Likewise.
26656 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26657 Likewise.
26658 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26659 Likewise.
26660
26661 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26662
26663 [BZ #15261]
26664 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26665 yesexpr and noexpr.
26666 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26667 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26668 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26669 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26670 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26671 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26672 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26673
26674 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26675
26676 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26677 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26678 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26679 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26680 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26681 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26682 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26683 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26684 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26685 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26686 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26687 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26688
26689 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26690
26691 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26692 as possible for better readability of the source.
26693 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26694 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26695 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26696 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26697 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26698 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26699 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26700 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26701 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26702 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26703 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26704 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26705 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26706 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26707 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26708 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26709 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26710 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26711 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26712 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26713 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26714 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26715 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26716 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26717 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26718 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26719 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26720 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26721 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26722 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26723 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26724 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26725 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26726 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26727 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26728 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26729 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26730 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26731 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26732 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26733 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26734 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26735 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26736 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26737 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26738 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26739 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26740 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26741 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26742 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26743 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26744 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26745 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26746 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26747 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26748 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26749 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26750 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26751 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26752 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26753 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26754 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26755 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26756 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26757 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26758 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26759 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26760 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26761 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26762 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26763 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26764 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26765 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26766 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26767 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26768 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26769 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26770 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26771 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26772 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26773 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26774 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26775 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26776 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26777 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26778 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26779 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26780 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26781 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26782 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26783 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26784 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26785 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26786 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26787 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26788 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26789 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26790 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26791 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26792 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26793 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26794 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26795 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26796 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26797 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26798 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26799 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26800 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26801 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26802 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26803 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26804 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26805 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26806 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26807 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26808 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26809 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26810 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26811 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26812 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26813 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26814 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26815 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26816 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26817 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26818 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26819 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26820 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26821 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26822 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26823 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26824 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26825 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26826 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26827 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26828 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26829 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26830 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26831 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26832 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26833 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26834 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26835 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26836 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26837 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26838 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26839 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26840 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26841 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26842 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26843 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26844 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26845 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26846 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26847 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26848 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26849 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26850 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26851 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26852 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26853 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26854 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26855 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26856 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26857 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26858 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26859 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26860 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26861 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26862 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26863 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26864 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26865 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26866 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26867
26868 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26869
26870 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26871 (Use first letters of yesstr and nostr correctly instead of using
26872 full words).
26873
26874 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26875
26876 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26877 (Use first letters of yesstr and nostr correctly).
26878
26879 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26880
26881 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26882 also check for the first characters of yesstr and nostr.
26883 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26884 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26885
26886 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26887
26888 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26889 also check for Chinese characters.
26890
26891 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26892
26893 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26894 match also for the contents of yesstr and nostr. As the first letter
26895 of yesstr and nostr is equal, checking only for the first letter
26896 is not enough.
26897
26898 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26899
26900 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26901 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26902
26903 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26904
26905 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26906 of main contributor.
26907
26908 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26909
26910 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26911 instead of using English.
26912
26913 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26914
26915 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26916 by including the first letters of nostr and yesexpr in the regexp.
26917 Also make it more readable by using ASCII where possible.
26918
26919 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26920
26921 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26922 the first letter of nostr in the regexp. It agrees with CLDR now.
26923 Also make it more readable by using ASCII where possible.
26924
26925 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26926
26927 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26928 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26929 these strings contain a U+17D6 (which somewhat looks like a colon)
26930 instead of a real colon to separate the full words for “yes”
26931 and “no” from the single letter responses.
26932
26933 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26934
26935 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26936 it agree with CLDR (include the first letter of yesstr).
26937 Also make it more readable by using ASCII where possible.
26938
26939 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26940
26941 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26942 and improve yesexpr and noexpr. The yesstr and nostr apparently
26943 came from CLDR. And CLDR has a bug there: these strings contain
26944 a U+0903 (which looks like a colon) instead of a real colon
26945 to separate the full words for “yes” and “no” from the single
26946 letter responses.
26947
26948 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26949
26950 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26951 letters of the full yesstr and nostr in yesexpr and noexpr.
26952
26953 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26954
26955 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26956 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26957 * localedata/locales/an_ES: Make source more readable by using ASCII
26958 where possible.
26959
26960 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26961
26962 [BZ #20952]
26963 * localedata/locales/yuw_PG: New file.
26964 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26965 * locale/iso-639.def: Add Yau (Uruwa).
26966
26967 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26968
26969 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26970
26971 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26972
26973 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26974 (__libc_realloc): Likewise.
26975 (_mid_memalign): Likewise.
26976 (__libc_calloc): Likewise.
26977
26978 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26979
26980 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26981 by adding the generic +1 and -0 as in all other locales.
26982 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26983 day names and make it more readable by using ASCII where possible.
26984
26985 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26986
26987 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26988 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26989
26990 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26991
26992 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26993 WNOHANG in waitpid call.
26994
26995 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26996
26997 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26998 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26999
27000 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
27001 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
27002 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
27003 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
27004 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
27005 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
27006 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
27007 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
27008 variables.
27009
27010 2017-10-23 Michael Collison <michael.collison@arm.com>
27011
27012 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27013 with __builtin_sqrt.
27014 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27015 with __builtin_sqrtf.
27016 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27017 with __builtin_ceil.
27018 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27019 with __builtin_ceilf.
27020 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27021 with __builtin_floor.
27022 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27023 with __builtin_floorf.
27024 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27025 with __builtin_fma.
27026 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27027 with __builtin_fmaf.
27028 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27029 with __builtin_fmax.
27030 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27031 with __builtin_fmaxf.
27032 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27033 with __builtin_fmin.
27034 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27035 with __builtin_fminf.
27036 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27037 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27038 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27039 with builtin_rint and conversion to int.
27040 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27041 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27042 with builtin_llround.
27043 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27044 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27045 with builtin_rint and conversion to long int.
27046 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27047 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27048 with builtin_lround.
27049 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27050 with builtin_lroundf.
27051 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27052 statements with __builtin_nearbyint.
27053 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27054 statements with __builtin_nearbyintf.
27055 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27056 with __builtin_rint.
27057 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27058 with __builtin_rintf.
27059 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27060 with __builtin_round.
27061 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27062 with __builtin_roundf.
27063 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27064 with __builtin_trunc.
27065 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27066 with __builtin_truncf.
27067 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27068 and s_l[l]round[f].c too.
27069
27070 2017-10-23 Alan Modra <amodra@gmail.com>
27071
27072 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27073 Adjust stack after restoring regs. Add missing LR cfi_restore.
27074
27075 2017-10-23 Alan Modra <amodra@gmail.com>
27076
27077 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27078 Move LR save and frame setup/teardown and LR restore to
27079 immediately around memset call. Provide cfi.
27080
27081 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27082
27083 * sysdeps/i386/fpu/e_powf.S: Removed.
27084 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27085 * sysdeps/i386/fpu/w_powf.c: Likewise.
27086 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27087 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27088 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27089 Add e_powf-sse2.
27090 (CFLAGS-e_powf-sse2.c): New.
27091 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27092 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27093
27094 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27095
27096 * sysdeps/i386/fpu/e_log2f.S: Removed.
27097 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27098 * sysdeps/i386/fpu/w_log2f.c: Likewise.
27099 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27100 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27101 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27102 Add e_log2f-sse2.
27103 (CFLAGS-e_log2f-sse2.c): New.
27104 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27105 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27106
27107 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27108
27109 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27110 Add e_powf-fma.
27111 (CFLAGS-e_powf-fma.c): New.
27112 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27113 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27114
27115 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27116
27117 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27118 Add e_log2f-fma.
27119 (CFLAGS-e_log2f-fma.c): New.
27120 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27121 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27122
27123 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27124
27125 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27126 Add e_logf-fma.
27127 (CFLAGS-e_logf-fma.c): New.
27128 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27129 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27130
27131 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27132
27133 * sysdeps/i386/fpu/e_logf.S: Removed.
27134 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27135 * sysdeps/i386/fpu/w_logf.c: Likewise.
27136 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27137 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27138 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27139 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27140 Add e_logf-sse2.
27141 (CFLAGS-e_logf-sse2.c): New.
27142 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27143 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27144
27145 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27146
27147 * sysdeps/i386/fpu/e_exp2f.S: Removed.
27148 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27149 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27150 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27151 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27152 Add e_exp2f-sse2.
27153 (CFLAGS-e_exp2f-sse2.c): New.
27154 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27155 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27156
27157 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27158
27159 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27160 Add e_exp2f-fma.
27161 (CFLAGS-e_exp2f-fma.c): New.
27162 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27163 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27164
27165 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27168 * sysdeps/i386/fpu/e_expf.S: Likewise.
27169 * sysdeps/i386/fpu/math_errf.c: Likewise.
27170 * sysdeps/i386/fpu/w_expf.c: Likewise.
27171 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27172 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27173 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27174 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27175 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27176 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27177 Remove e_expf-ia32.
27178 (CFLAGS-e_expf-sse2.c): New.
27179 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27180 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27181
27182 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 * sysdeps/x86_64/fpu/e_expf.S: Removed.
27185 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27186 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27187 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27188 e_expf.c.
27189 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27190 New.
27191 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27192 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27193 Renamed to ...
27194 (__redirect_expf): This.
27195 (SYMBOL_NAME): Changed to expf.
27196 (__ieee754_expf): Renamed to ...
27197 (__expf): This.
27198 (__GI___expf): This.
27199 (__ieee754_expf): Add strong_alias.
27200 (__expf_finite): Likewise.
27201 (__expf): New.
27202 Include <sysdeps/ieee754/flt-32/e_expf.c>.
27203
27204 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
27205
27206 [BZ #22332]
27207 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27208 unescaping.
27209
27210 2017-10-21 Florian Weimer <fweimer@redhat.com>
27211
27212 * posix/Makefile (tests): Add tst-glob-tilde.
27213 (tests-special): Add tst-glob-tilde-mem.out
27214 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27215 (tst-glob-tilde-mem.out): Add mtrace check.
27216 * posix/tst-glob-tilde.c: New file.
27217
27218 2017-10-20 Joseph Myers <joseph@codesourcery.com>
27219
27220 * bits/floatn-common.h: New file.
27221 * math/Makefile (headers): Add bits/floatn-common.h.
27222 * bits/floatn.h: Include <bits/floatn-common.h>.
27223 * sysdeps/ia64/bits/floatn.h: Likewise.
27224 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27225 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27226 * sysdeps/powerpc/bits/floatn.h: Likewise.
27227 * sysdeps/x86/bits/floatn.h: Likewise.
27228
27229 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27230
27231 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27232 indicates whether compiler emits an warning for alias for
27233 functions with incompatible types.
27234
27235 [BZ #22273]
27236 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27237 the auxiliary process is terminated by a signal before calling _exit
27238 or execve.
27239
27240 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27241
27242 [BZ #21265]
27243 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27244 New.
27245 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27246 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27247 and bit_arch_XSAVEC_Usable if needed.
27248 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27249 and bit_arch_Use_dl_runtime_resolve_opt.
27250 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27251 Removed.
27252 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27253 (bit_arch_Prefer_No_AVX512): Updated.
27254 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27255 (bit_arch_XSAVEC_Usable): New.
27256 (STATE_SAVE_OFFSET): Likewise.
27257 (STATE_SAVE_MASK): Likewise.
27258 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27259 (cpu_features): Add xsave_state_size and xsave_state_full_size.
27260 (index_arch_Use_dl_runtime_resolve_opt): Removed.
27261 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27262 (index_arch_XSAVEC_Usable): New.
27263 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27264 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
27265 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27266 is enabled.
27267 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27268 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27269 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27270 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27271 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27272 _dl_runtime_resolve_xsavec.
27273 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27274 Removed.
27275 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27276 instead of VEC_SIZE.
27277 (REGISTER_SAVE_BND0): Removed.
27278 (REGISTER_SAVE_BND1): Likewise.
27279 (REGISTER_SAVE_BND3): Likewise.
27280 (REGISTER_SAVE_RAX): Always defined to 0.
27281 (VMOV): Removed.
27282 (_dl_runtime_resolve_avx): Likewise.
27283 (_dl_runtime_resolve_avx_slow): Likewise.
27284 (_dl_runtime_resolve_avx_opt): Likewise.
27285 (_dl_runtime_resolve_avx512): Likewise.
27286 (_dl_runtime_resolve_avx512_opt): Likewise.
27287 (_dl_runtime_resolve_sse): Likewise.
27288 (_dl_runtime_resolve_sse_vex): Likewise.
27289 (USE_FXSAVE): New.
27290 (_dl_runtime_resolve_fxsave): Likewise.
27291 (USE_XSAVE): Likewise.
27292 (_dl_runtime_resolve_xsave): Likewise.
27293 (USE_XSAVEC): Likewise.
27294 (_dl_runtime_resolve_xsavec): Likewise.
27295 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27296 Removed.
27297 (_dl_runtime_resolve_avx512_opt): Likewise.
27298 (_dl_runtime_resolve_avx): Likewise.
27299 (_dl_runtime_resolve_avx_opt): Likewise.
27300 (_dl_runtime_resolve_sse): Likewise.
27301 (_dl_runtime_resolve_sse_vex): Likewise.
27302 (_dl_runtime_resolve_fxsave): New.
27303 (_dl_runtime_resolve_xsave): Likewise.
27304 (_dl_runtime_resolve_xsavec): Likewise.
27305
27306 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27307
27308 [BZ #22320]
27309 CVE-2017-15670
27310 * posix/glob.c (__glob): Fix one-byte overflow.
27311
27312 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27313
27314 * malloc/malloc.c (sysdep-cancel.h): Add include.
27315
27316 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27317
27318 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27319
27320 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27321
27322 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27323 (tests): Remove $(objpfx)ga_test depdendency.
27324 * resolv/ga_test.c: Remove file.
27325
27326 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27327
27328 [BZ #18812]
27329 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27330 * localedata/locales/kab_DZ: New file.
27331
27332 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27333
27334 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27335 _dl_relocate_static_pie instead of _dl_start to compute load
27336 address in static PIE.
27337
27338 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27339
27340 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27341
27342 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27343
27344 [BZ #13605]
27345 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27346 * localedata/locales/shn_MM: New file.
27347
27348 2017-10-20 Florian Weimer <fweimer@redhat.com>
27349
27350 [BZ #22321]
27351 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27352 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27353 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27354 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27355 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27356 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27357
27358 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27359
27360 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27361
27362 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27363
27364 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27365
27366 [BZ #22322]
27367 * sysdeps/mips/bits/long-double.h: Move to ....
27368 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27369
27370 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27371
27372 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27373
27374 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27375 H.J. Lu <hongjiu.lu@intel.com>
27376
27377 [BZ #22299]
27378 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27379 GLRO(dl_platform) to NULL.
27380 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27381 (modules-names): Add tst-platformmod-1 and
27382 x86_64/tst-platformmod-2.
27383 (CFLAGS-tst-platform-1.c): New.
27384 (CFLAGS-tst-platformmod-1.c): Likewise.
27385 (CFLAGS-tst-platformmod-2.c): Likewise.
27386 (LDFLAGS-tst-platformmod-2.so): Likewise.
27387 ($(objpfx)tst-platform-1): Likewise.
27388 ($(objpfx)tst-platform-1.out): Likewise.
27389 (tst-platform-1-ENV): Likewise.
27390 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27391 * sysdeps/x86_64/tst-platform-1.c: New file.
27392 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27393 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27394
27395 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27396
27397 [BZ #13994]
27398 * locale/iso-639.def: Add Karbi.
27399 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27400 * localedata/locales/mjw_IN: New file.
27401
27402 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27403
27404 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27405 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27406 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27407 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27408 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27409 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27410 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27411 <bits/floatn.h>.
27412 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27413 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27414 * manual/math.texi (Mathematics): Document additional architecture
27415 support for _Float128.
27416 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27417 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27418 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27419 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27420 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27421 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27422 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27423 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27424 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27425 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27426 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27427 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27428 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27429 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27430 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27431
27432 2017-10-18 Renlin Li <renlin.li@arm.com>
27433
27434 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27435 _DYNAMIC symbol to calculate load address.
27436
27437 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27438
27439 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27440 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27441 summary bits.
27442 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27443 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27444
27445 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27446
27447 [BZ #16777]
27448 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27449 and improve readability by using more ASCII.
27450 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27451 and improve readability by using more ASCII.
27452
27453 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27454
27455 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27456 not all targets support atomics on bool.
27457
27458 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27459
27460 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27461 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27462 __f128.
27463 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27464 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27465 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27466 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27467 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27468 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27469
27470 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27471
27472 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27473 defines.
27474
27475 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27476
27477 [BZ #22159]
27478 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27479 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27480 (do_check_remalloced_chunk): Fix build bug.
27481 (do_check_malloc_state): Add assert that checks arena->top.
27482 (malloc_consolidate): Remove initialization.
27483 (int_mallinfo): Remove call to malloc_consolidate.
27484 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27485
27486 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27487
27488 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27489 (have_fastchunks): Remove.
27490 (clear_fastchunks): Remove.
27491 (set_fastchunks): Remove.
27492 (malloc_state): Add have_fastchunks.
27493 (malloc_init_state): Use have_fastchunks.
27494 (do_check_malloc_state): Remove incorrect invariant checks.
27495 (_int_malloc): Use have_fastchunks.
27496 (_int_free): Likewise.
27497 (malloc_consolidate): Likewise.
27498
27499 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27500
27501 * malloc/malloc.c (tcache_put): Inline.
27502 (tcache_get): Inline.
27503
27504 2017-10-17 Jordi Mallach <jordi@gnu.org>
27505
27506 Aurelien Jarno <aurelien@aurel32.net>
27507 [BZ #2522]
27508 * localedata/locales/ca_ES@valencia: New file.
27509 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27510
27511 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27512
27513 [BZ #22296]
27514 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27515 < 6.x
27516
27517 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27518
27519 * scripts/build-many-glibcs.py (Context.add_all_configs):
27520 Add arm-linux-gnueabihf multiarch extra_glibcs.
27521
27522 * sysdeps/generic/ifunc-init.h: New file.
27523 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27524
27525 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27526
27527 [BZ #22019]
27528 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27529 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27530 * stdlib/tst-strfmon_l.c: adapt test case.
27531
27532 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27533
27534 * sysdeps/generic/float128-abi.h: New file.
27535 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27536 non-__prefixed symbols to ....
27537 * math/Versions: ... here. Include <float128-abi.h>.
27538 * stdlib/Versions ... and here. Include <float128-abi.h>
27539
27540 2017-10-16 Florian Weimer <fweimer@redhat.com>
27541
27542 * version.h (VERSION): Switch to ".9000" as the development
27543 version suffix.
27544
27545 2017-10-16 Florian Weimer <fweimer@redhat.com>
27546
27547 [BZ #22050]
27548 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27549 compat_symbol_reference to access non-default version.
27550
27551 2017-10-16 Florian Weimer <fweimer@redhat.com>
27552
27553 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27554
27555 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27556
27557 * include/shlib-compat.h (compat_symbol_reference): Update
27558 comment.
27559
27560 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27561
27562 * math/Makefile (test-types): Add
27563 $(type-float128-$(float128-alias-fcts)).
27564 * math/test-float128.h (TYPE_STR): Define conditional on
27565 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27566 (ULP_IDX): Likewise.
27567 (ULP_I_IDX): Likewise.
27568
27569 * stdlib/strtold.c: Include <bits/floatn.h>
27570 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27571 and later undefine as macro. Define as weak alias if
27572 [!USE_WIDE_CHAR].
27573 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27574 and later undefine as macro. Define as weak alias if
27575 [USE_WIDE_CHAR].
27576 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27577 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27578 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27579 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27580 Define and later undefine as macro. Define as weak alias if
27581 [USE_WIDE_CHAR].
27582 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27583 <bits/floatn.h>.
27584 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27585 Define and later undefine as macro. Define as weak alias if
27586 [!USE_WIDE_CHAR].
27587 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27588 Define and later undefine as macro. Define as weak alias if
27589 [USE_WIDE_CHAR].
27590
27591 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27592
27593 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27594 record_verbose messages.
27595
27596 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27597
27598 [BZ #22052]
27599 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27600 to silence -O3 -Wall warning with GCC 7.
27601
27602 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27603
27604 * Makeconfig (+link-static-before-libc): Use the first of
27605 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27606 * gmon/Makefile (tests): Add tst-gmon-static.
27607 (tests-static): Likewise.
27608 (CFLAGS-tst-gmon-static.c): New.
27609 (CRT-tst-gmon-static): Likewise.
27610 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27611 (tst-gmon-static-ENV): Likewise.
27612 (tests-special): Likewise.
27613 ($(objpfx)tst-gmon-static.out): Likewise.
27614 (clean-tst-gmon-static-data): Likewise.
27615 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27616 * gmon/tst-gmon-static-gprof.sh: New file.
27617 * gmon/tst-gmon-static.c: Likewise.
27618
27619 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27620
27621 [BZ #22295]
27622 * locale/programs/linereader.c (get_string): Don't warn on
27623 non-symbolic character.
27624
27625 [BZ #22294]
27626 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27627 int_curr_symbol.
27628
27629 [BZ #22292]
27630 * locale/programs/record-status.h: New file
27631 * locale/programs/locale.c: Add comment.
27632 * locale/programs/charmap-dir.c: Don't include error.h.
27633 (charmap_opendir): Use record_error.
27634 * locale/programs/charmap.c: Don't include error.h.
27635 (charmap_read): Use record_error, and record_warning.
27636 (parse_charmap): Likewise.
27637 * locale/programs/ld-address.c: Don't include error.h.
27638 (address_finish): Use record_error, and record_warning.
27639 * locale/programs/ld-collate.c: Don't include error.h.
27640 (collate_finish): Use record_error, and record_error_at_line.
27641 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27642 (ctype_class_new): Likewise.
27643 (ctype_map_new): Likewise.
27644 (set_one_default): Likewise.
27645 (set_class_defaults): Likewise.
27646 (translit_flatten): Likewise.
27647 (allocate_arrays): Use record_error, and record_verbose.
27648 * locale/programs/ld-identification.c: Don't include error.h.
27649 (indentation_finish): Use record_error and record_warning.
27650 * locale/programs/ld-measurement.c: Don't include error.h.
27651 (measurement_finish): Use record_error.
27652 * locale/programs/ld-messages.c
27653 (message_finish): Likewise.
27654 * locale/programs/ld-monetary.c
27655 (monetary_finish): Likewise.
27656 * locale/programs/ld-name.c (name_finish): Use record_error
27657 and record_warning.
27658 * locale/programs/ld-numeric.c
27659 (numeric_finish): Use record_error.
27660 * locale/programs/ld-paper.c: Don't include error.h.
27661 (paper_finish): Use record_error.
27662 * locale/programs/ld-telephone.c: Don't include error.h.
27663 (telephone_finish): Use record_error.
27664 * locale/programs/ld-time.c (time_finish): Likewise.
27665 * locale/programs/linereader.h (lr_error): Make inline func.
27666 * locale/programs/localedef.c: Define recorded_warning_count,
27667 and recorded_error_count.
27668 (main): Use record_error. Use recorded_error_count and
27669 recorded_warning_count to issue correct error returns.
27670 (add_to_readlist): Use record_error.
27671 (find_locale): Likewise.
27672 (load_locale): Likewise.
27673 * locale/programs/localedef.h: Remove be_quiet
27674 and WITH_CUR_LOCALE.
27675 * locale/programs/locarchive.c (compare_from_file): Use
27676 record_error.
27677 * locale/programs/locfile.c (write_locale_data): Use
27678 record_error.
27679 * locale/programs/repertoire.c: Dont include error.h.
27680 (repertoire_complain): Use record_error.
27681 * localedata/tst-fmon.sh: Expect failures from localedef.
27682 * localedata/tst-locale.sh: Likewise.
27683 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27684
27685 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27686 (REPORTS): Likewise.
27687 (check): Likewise.
27688 (i18n): Rename to...
27689 (i18n_ctype): ...this.
27690 (i18n-report): Rename to...
27691 (i18n_ctype-report): ...this.
27692 * localedata/locales/i18n_ctype: Regenerate.
27693 * localedata/locales/i18n: copy i18n_ctype.
27694
27695 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27696
27697 * stdlib/strfroml.c: Include <bits/floatn.h>.
27698 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27699 Define before include of <stdlib.h> and undefine afterwards, then
27700 define as weak alias.
27701
27702 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27703 Undefine and restore default definition. Use
27704 libm_alias_ldouble_other.
27705
27706 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27707
27708 [BZ #22153]
27709 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27710 in coredumps.
27711
27712 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27713
27714 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27715 Assign sym_map to be map for local symbols, as TLS relocations
27716 use sym_map to determine whether the symbol is defined and to
27717 extract the TLS information.
27718 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27719 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27720
27721 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27722
27723 [BZ #22189]
27724 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27725 (math_force_eval): Add powerpc version.
27726
27727 [BZ #22142]
27728 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27729 -DBL_MAX.
27730 (do_test): Likewise.
27731 * stdio-common/tst-printf.sh: Likewise.
27732 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27733 ifdef clause in order to set the carry bit right. Replace r0 by
27734 0 without changing the behavior.
27735
27736 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27737
27738 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27739 <libm-alias-ldouble.h>.
27740 (fabsl): Define using libm_alias_ldouble.
27741 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27742 <libm-alias-ldouble.h>.
27743 (fabsl): Define using libm_alias_ldouble.
27744
27745 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27746 Remove conditional code.
27747
27748 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27749 Rename to __clog10_internal_l.
27750 (__clog10_internal_l): Define aliases using
27751 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27752 with __clog10.
27753
27754 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27755
27756 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27757 * benchtests/sincosf-inputs: New file.
27758 * benchtests/cosf-inputs: New file.
27759 * benchtests/sinf-inputs: New file.
27760
27761 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27762
27763 * posix/tst-spawn.c (do_test): Wait for both children.
27764
27765 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27766
27767 [BZ #22284]
27768 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27769 tests-pie): Add tst-gmon-pie.
27770 (CFLAGS-tst-gmon-pie.c): New.
27771 (CRT-tst-gmon-pie): Likewise.
27772 (tst-gmon-pie-ENV): Likewise.
27773 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27774 ($(objpfx)tst-gmon-pie.out): Likewise.
27775 (clean-tst-gmon-pie-data): Likewise.
27776 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27777 * gmon/gmon.c [PIC]: Include <link.h>.
27778 [PIC] (callback): New function.
27779 (write_hist): Add an argument for load address. Subtract load
27780 address from PCs.
27781 (write_call_graph): Likewise.
27782 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27783 it to write_hist and write_call_graph.
27784 * gmon/tst-gmon-pie.c: New file.
27785
27786 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27787
27788 * math/Makefile (test-types-basic): New variable.
27789 (test-types): Likewise.
27790 (libm-test-support): Use $(test-types) instead of $(types).
27791 (libm-tests-base-normal): Likewise.
27792 (libm-tests-base-finite): Likewise.
27793 (libm-tests-base-inline): Likewise.
27794 (generated): Likewise.
27795 ($(objpfx)libm-test-support-$(t).c): Likewise.
27796 (libm-tests-for-type iterator): Likewise.
27797 (libm-test-support iterator): Likewise.
27798 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27799 (ulp_idx): Use ULP_IDX.
27800 * math/test-ldouble.h: Include <float.h>.
27801 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27802 (ULP_IDX): New macro.
27803 (ULP_I_IDX): Likewise.
27804 * math/test-double.h (ULP_IDX): Likewise.
27805 (ULP_I_IDX): Likewise.
27806 * math/test-float.h (ULP_IDX): Likewise.
27807 (ULP_I_IDX): Likewise.
27808 * math/test-float128.h (ULP_IDX): Likewise.
27809 (ULP_I_IDX): Likewise.
27810
27811 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27812
27813 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27814 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27815 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27816 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27817 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27818 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27819 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27820 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27821 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27822 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27823 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27824 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27825 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27826 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27827 (SINGLE_THREAD_BY_GLOBAL): Define.
27828 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27829 Likewise.
27830 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27831 Likewise.
27832 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27833 Likewise.
27834 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27835 Likewise.
27836 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27837 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27838 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27839 Likewise.
27840
27841 2017-10-11 Andreas Schwab <schwab@suse.de>
27842
27843 * nis/Makefile (aux): Remove.
27844 * nscd/Makefile (aux): Add nscd_hash.
27845 (nscd-modules): Likewise.
27846 ($(objpfx)nscd): Don't depend on libnsl.
27847 * nscd/nscd_hash.c: New file.
27848 * nscd/nscd_hash.h: Likewise.
27849 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27850 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27851 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27852 instead of <nis/rpcsvc/nis.h>.
27853 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27854
27855 2017-10-11 Florian Weimer <fweimer@redhat.com>
27856
27857 [BZ #22078]
27858 Avoid large NSS buffers with many addresses, aliases.
27859 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27860 using dynarrays and struct alloc_buffer.
27861 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27862 (tst-nss-files-hosts-multi): Link with -ldl.
27863 * nss/tst-nss-files-hosts-multi.c: New file.
27864
27865 2017-10-11 Florian Weimer <fweimer@redhat.com>
27866
27867 [BZ #18023]
27868 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27869 scratch_buffer. Eliminate gotos.
27870
27871 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27872
27873 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27874 libm_alias_ldouble_other.
27875 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27876 undefine and redefine.
27877 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27878 (exp10l): Do not define here.
27879 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27880 (weak_alias): Undefine and redefine.
27881 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27882 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27883 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27884 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27885
27886 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27887 [!__fma] (fma): Define using libm_alias_double.
27888 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27889 [!__fmaf] (fmaf): Define using libm_alias_float.
27890 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27891 (fmal): Define using libm_alias_ldouble.
27892
27893 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27894
27895 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27896 New macro.
27897 (libm_alias_double_other): Likewise.
27898 (libm_alias_double_r): Use libm_alias_double_other_r.
27899 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27900 New macro.
27901 (libm_alias_float_other): Likewise.
27902 (libm_alias_float_r): Use libm_alias_float_other_r.
27903 * sysdeps/generic/libm-alias-float128.h
27904 (libm_alias_float128_other_r): New macro.
27905 (libm_alias_float128_other): Likewise.
27906 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27907 * sysdeps/generic/libm-alias-ldouble.h
27908 (libm_alias_ldouble_other_r): New macro.
27909 (libm_alias_ldouble_other): Likewise.
27910 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27911 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27912 (libm_alias_double_other_r): New macro.
27913 (libm_alias_double_other): Likewise.
27914 (libm_alias_double_r): Use libm_alias_double_other_r.
27915 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27916 (libm_alias_ldouble_other_r): New macro.
27917 (libm_alias_ldouble_other): Likewise.
27918 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27919 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27920 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27921 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27922 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27923 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27924 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27925 * math/w_exp2f.c: Use libm_alias_float_other.
27926 * math/w_expf.c: Likewise.
27927 * math/w_log2f.c: Likewise.
27928 * math/w_logf.c: Likewise.
27929 * math/w_powf.c: Likewise.
27930 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27931 [!__exp2f]: Use libm_alias_float_other.
27932 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27933 [!__expf]: Use libm_alias_float_other.
27934 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27935 [!__log2f]: Use libm_alias_float_other.
27936 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27937 [!__logf]: Use libm_alias_float_other.
27938 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27939 [!__powf]: Use libm_alias_float_other.
27940
27941 2017-10-10 Florian Weimer <fweimer@redhat.com>
27942
27943 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27944 function.
27945 (_nss_files_gethostbyname3_r): Call it.
27946
27947 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27948
27949 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27950 error. Remove default definition of declare_mgen_alias.
27951 [!declare_mgen_alias_r]: Likewise.
27952 * sysdeps/generic/math-type-macros-double.h
27953 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27954 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27955 (declare_mgen_alias_r): Likewise.
27956 * sysdeps/generic/math-type-macros-float128.h
27957 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27958 * sysdeps/generic/math-type-macros-ldouble.h
27959 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27960 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27961 macro.
27962 (declare_mgen_alias_r_s): Likewise.
27963 (declare_mgen_alias_r): Likewise.
27964 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27965 (lgamma_r): Define using libm_alias_double_r.
27966 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27967 (lgammaf_r): Define using libm_alias_float_r.
27968 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27969 (lgammal_r): Define using libm_alias_ldouble_r.
27970 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27971 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27972
27973 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27974
27975 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27976 extern declaration.
27977
27978 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27979
27980 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27981
27982 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27983
27984 [BZ #21326]
27985 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27986 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27987 * math/Makefile (test-math-cxx11): New test.
27988 * math/test-math-cxx11.cc: New file.
27989
27990 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27991
27992 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27993
27994 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27995 call to allocate the slave pty file descriptor.
27996
27997 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27998
27999 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
28000 [!__fma] (fma): Define using libm_alias_double.
28001 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
28002 [!__fma] (fma): Define using libm_alias_double.
28003
28004 * sysdeps/ieee754/float128/float128_private.h: Include
28005 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
28006 (libm_alias_ldouble_r): Undefine and redefine.
28007 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
28008 <libm-alias-ldouble.h>.
28009 (asinhl): Define using libm_alias_ldouble.
28010 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28011 <libm-alias-ldouble.h>.
28012 (atanl): Define using libm_alias_ldouble.
28013 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28014 <libm-alias-ldouble.h>.
28015 (cbrtl): Define using libm_alias_ldouble.
28016 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28017 <libm-alias-ldouble.h>.
28018 (ceill): Define using libm_alias_ldouble.
28019 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28020 <libm-alias-ldouble.h>.
28021 (copysignl): Define using libm_alias_ldouble.
28022 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28023 <libm-alias-ldouble.h>.
28024 (cosl): Define using libm_alias_ldouble.
28025 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28026 <libm-alias-ldouble.h>.
28027 (erfl): Define using libm_alias_ldouble.
28028 (erfcl): Likewise.
28029 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28030 <libm-alias-ldouble.h>.
28031 (expm1l): Define using libm_alias_ldouble.
28032 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28033 <libm-alias-ldouble.h>.
28034 (fabsl): Define using libm_alias_ldouble.
28035 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28036 <libm-alias-ldouble.h>.
28037 (floorl): Define using libm_alias_ldouble.
28038 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28039 <libm-alias-ldouble.h>.
28040 (fmal): Define using libm_alias_ldouble.
28041 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28042 <libm-alias-ldouble.h>.
28043 (frexpl): Define using libm_alias_ldouble.
28044 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28045 libm_alias_ldouble.
28046 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28047 <libm-alias-ldouble.h>.
28048 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28049 libm_alias_ldouble.
28050 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28051 <libm-alias-ldouble.h>.
28052 (getpayloadl): Define using libm_alias_ldouble.
28053 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28054 <libm-alias-ldouble.h>.
28055 (llrintl): Define using libm_alias_ldouble.
28056 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28057 <libm-alias-ldouble.h>.
28058 (llroundl): Define using libm_alias_ldouble.
28059 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28060 <libm-alias-ldouble.h>.
28061 (logbl): Define using libm_alias_ldouble.
28062 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28063 <libm-alias-ldouble.h>.
28064 (lrintl): Define using libm_alias_ldouble.
28065 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28066 <libm-alias-ldouble.h>.
28067 (lroundl): Define using libm_alias_ldouble.
28068 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28069 <libm-alias-ldouble.h>.
28070 (modfl): Define using libm_alias_ldouble.
28071 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28072 <libm-alias-ldouble.h>.
28073 (nearbyintl): Define using libm_alias_ldouble.
28074 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28075 <libm-alias-ldouble.h>.
28076 (nextafterl): Define using libm_alias_ldouble.
28077 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28078 <libm-alias-ldouble.h>.
28079 (nextupl): Define using libm_alias_ldouble.
28080 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28081 <libm-alias-ldouble.h>.
28082 (remquol): Define using libm_alias_ldouble.
28083 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28084 <libm-alias-ldouble.h>.
28085 (rintl): Define using libm_alias_ldouble.
28086 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28087 <libm-alias-ldouble.h>.
28088 (roundevenl): Define using libm_alias_ldouble.
28089 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28090 <libm-alias-ldouble.h>.
28091 (roundl): Define using libm_alias_ldouble.
28092 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28093 using libm_alias_ldouble.
28094 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28095 <libm-alias-ldouble.h>.
28096 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28097 Define using libm_alias_ldouble.
28098 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28099 <libm-alias-ldouble.h>.
28100 (sincosl): Define using libm_alias_ldouble.
28101 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28102 <libm-alias-ldouble.h>.
28103 (sinl): Define using libm_alias_ldouble.
28104 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28105 <libm-alias-ldouble.h>.
28106 (tanhl): Define using libm_alias_ldouble.
28107 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28108 <libm-alias-ldouble.h>.
28109 (tanl): Define using libm_alias_ldouble.
28110 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28111 <libm-alias-ldouble.h>.
28112 (totalorderl): Define using libm_alias_ldouble.
28113 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28114 <libm-alias-ldouble.h>.
28115 (totalordermagl): Define using libm_alias_ldouble.
28116 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28117 <libm-alias-ldouble.h>.
28118 (truncl): Define using libm_alias_ldouble.
28119 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28120 libm_alias_ldouble.
28121 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28122 libm_alias_ldouble.
28123 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28124 <libm-alias-ldouble.h>.
28125 (weak_alias): Do not undefine and redefine.
28126 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28127 (copysignl): Define with long_double_symbol only if [IS_IN
28128 (libc)].
28129 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28130 <libm-alias-ldouble.h>.
28131 (weak_alias): Do not undefine and redefine.
28132 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28133 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28134 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28135 <libm-alias-ldouble.h>.
28136 (weak_alias): Do not undefine and redefine.
28137 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28138 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28139 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28140 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28141 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28142 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28143 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28144 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28145 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28146 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28147 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28148 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28149 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28150 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28151 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28152 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28153 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28154 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28155 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28156 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28157 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28158 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28159 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28160 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28161 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28162 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28163
28164 2017-10-06 Carlos O'Donell <carlos@redhat.com>
28165
28166 [BZ #22111]
28167 * malloc/malloc.c (tcache_shutting_down): Use bool type.
28168 (tcache_thread_freeres): Set tcache_shutting_down before
28169 freeing the tcache.
28170 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28171 * malloc/tst-malloc-tcache-leak.c: New file.
28172
28173 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28174
28175 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28176 back to powerpc32 file.
28177 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28178 (memrchr): Add __memrchr_power8 to ifunc list.
28179 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28180 extra bytes for unaligned inputs.
28181
28182 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28183
28184 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28185 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28186 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28187 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28188 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28189
28190 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28191
28192 * sysdeps/arm/libm-test-ulps: Update.
28193
28194 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28195 <libm-alias-ldouble.h>.
28196 (asinhl): Define using libm_alias_ldouble.
28197 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28198 <libm-alias-ldouble.h>.
28199 (cbrtl): Define using libm_alias_ldouble.
28200 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28201 <libm-alias-ldouble.h>.
28202 (copysignl): Define using libm_alias_ldouble.
28203 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28204 <libm-alias-ldouble.h>.
28205 (cosl): Define using libm_alias_ldouble.
28206 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28207 <libm-alias-ldouble.h>.
28208 (erfl): Define using libm_alias_ldouble.
28209 (erfcl): Likewise.
28210 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28211 <libm-alias-ldouble.h>.
28212 (fmal): Define using libm_alias_ldouble.
28213 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28214 <libm-alias-ldouble.h>.
28215 (frexpl): Define using libm_alias_ldouble.
28216 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28217 libm_alias_ldouble.
28218 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28219 <libm-alias-ldouble.h>.
28220 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28221 libm_alias_ldouble.
28222 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28223 <libm-alias-ldouble.h>.
28224 (getpayloadl): Define using libm_alias_ldouble.
28225 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28226 <libm-alias-ldouble.h>.
28227 (llrintl): Define using libm_alias_ldouble.
28228 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28229 <libm-alias-ldouble.h>.
28230 (llroundl): Define using libm_alias_ldouble.
28231 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28232 <libm-alias-ldouble.h>.
28233 (lrintl): Define using libm_alias_ldouble.
28234 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28235 <libm-alias-ldouble.h>.
28236 (lroundl): Define using libm_alias_ldouble.
28237 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28238 <libm-alias-ldouble.h>.
28239 (modfl): Define using libm_alias_ldouble.
28240 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28241 <libm-alias-ldouble.h>.
28242 (nextupl): Define using libm_alias_ldouble.
28243 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28244 <libm-alias-ldouble.h>.
28245 (remquol): Define using libm_alias_ldouble.
28246 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28247 <libm-alias-ldouble.h>.
28248 (roundevenl): Define using libm_alias_ldouble.
28249 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28250 <libm-alias-ldouble.h>.
28251 (roundl): Define using libm_alias_ldouble.
28252 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28253 using libm_alias_ldouble.
28254 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28255 <libm-alias-ldouble.h>.
28256 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28257 <libm-alias-ldouble.h>.
28258 (setpayloadsigl): Define using libm_alias_ldouble.
28259 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28260 <libm-alias-ldouble.h>.
28261 (sincosl): Define using libm_alias_ldouble.
28262 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28263 <libm-alias-ldouble.h>.
28264 (sinl): Define using libm_alias_ldouble.
28265 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28266 <libm-alias-ldouble.h>.
28267 (tanhl): Define using libm_alias_ldouble.
28268 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28269 <libm-alias-ldouble.h>.
28270 (tanl): Define using libm_alias_ldouble.
28271 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28272 <libm-alias-ldouble.h>.
28273 (totalorderl): Define using libm_alias_ldouble.
28274 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28275 <libm-alias-ldouble.h>.
28276 (totalordermagl): Define using libm_alias_ldouble.
28277 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28278 libm_alias_ldouble.
28279 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28280 libm_alias_ldouble.
28281
28282 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
28283
28284 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28285 memmove_falkor.
28286 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28287 (__libc_ifunc_impl_list): Likewise.
28288 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28289 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28290
28291 * benchtests/bench-memmove-walk.c: New file.
28292 * benchtests/Makefile (string-benchset): Add it.
28293
28294 * benchtests/bench-memset-walk.c: New file.
28295 * benchtests/Makefile (string-benchset): Add it.
28296
28297 * benchtests/bench-memcpy-walk.c: New file.
28298 * benchtests/Makefile (string-benchset): Add it.
28299
28300 2017-10-05 Florian Weimer <fweimer@redhat.com>
28301
28302 nscd: Eliminate compilation time dependency in the build output.
28303 * nscd/nscd_stat.c (STATDATA_VERSION)
28304 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28305 (STATDATA_VERSION_FULL): New macro definitions.
28306 (compilation): Remove.
28307 (struct statdata): Adjust version member.
28308 (send_stats): Set version from STATDATA_VERSION_FULL.
28309 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28310
28311 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28312
28313 * configure.ac (--enable-add-ons): Remove option.
28314 (machine): Do not mention add-ons in comment.
28315 (LIBC_PRECONFIGURE): Likewise.
28316 (add_ons): Remove variable and sanity checks and logic to locate
28317 add-ons.
28318 (add_ons_automatic): Remove variable.
28319 (configured_add_ons): Likewise.
28320 (add_ons_sfx): Likewise.
28321 (add_ons_pfx): Likewise.
28322 (add_on_subdirs): Likewise.
28323 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28324 consideration of add-ons in Implies handling.
28325 (sysdeps_add_ons): Likewise.
28326 * configure: Regenerated.
28327 * libidn/configure.ac: Remove.
28328 * libidn/configure: Likewise.
28329 * sysdeps/unix/inet/configure.ac: New file.
28330 * sysdeps/unix/inet/configure: New generated file.
28331 * sysdeps/unix/inet/Subdirs: Add libidn.
28332 * Makeconfig (sysdeps-srcdirs): Remove variable.
28333 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28334 ($(common-objpfx)config.status): Do not depend on add-on files.
28335 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28336 comment.
28337 (all-subdirs): Do not include $(add-on-subdirs).
28338 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28339 * config.make.in (add-ons): Remove variable.
28340 (add-on-subdirs): Likewise.
28341 (sysdeps-add-ons): Likewise.
28342 * manual/Makefile (add-chapters): Remove.
28343 ($(objpfx)texis): Do not depend on $(add-chapters).
28344 (nonexamples): Do not handle $(add-chapters).
28345 (examples): Do not handle $(add-ons).
28346 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28347 libc-texinfo.sh.
28348 * manual/install.texi (Installation): Do not mention add-ons.
28349 (--enable-add-ons): Do not document configure option.
28350 * INSTALL: Regenerated.
28351 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28352 * manual/maint.texi (Hierarchy Conventions): Do not mention
28353 add-ons.
28354 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28355 --enable-add-ons.
28356 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28357 add-ons.
28358 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28359 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28360
28361 2017-10-05 Andreas Schwab <schwab@suse.de>
28362
28363 [BZ #15142]
28364 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28365 (_IO_flush_all_lockp): Always lock list_all_lock.
28366 (_IO_flush_all_linebuffered): Likewise.
28367 (_IO_unbuffer_all): Likewise.
28368
28369 2017-10-05 Florian Weimer <fweimer@redhat.com>
28370
28371 [BZ #15436]
28372 Do not flush stdio streams on abort.
28373 * stdlib/abort.c (fflush): Remove macro definition.
28374 (abort): Remove stages related to stdio flushing.
28375
28376 2017-10-05 Florian Weimer <fweimer@redhat.com>
28377
28378 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28379
28380 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28381
28382 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28383
28384 2017-10-05 Florian Weimer <fweimer@redhat.com>
28385
28386 * support/support_format_hostent.c (support_format_hostent): Add
28387 more error information for NETDB_INTERNAL.
28388
28389 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28390
28391 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28392 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28393 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28394 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28395 AC_DEFINE if multi-arch is enabled.
28396 * sysdeps/i386/configure: Regenerated.
28397
28398 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28399
28400 * Makeconfig (+link-static-before-libc): Use
28401 $(DEFAULT-LDFLAGS-$(@F)).
28402 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28403 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28404 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28405
28406 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28407
28408 * elf/Makefile (tests): Add tst-main1.
28409 (modules-names): Add tst-main1mod.
28410 ($(objpfx)tst-main1): New.
28411 (CRT-tst-main1): Likewise.
28412 (LDFLAGS-tst-main1): Likewise.
28413 (LDLIBS-tst-main1): Likewise.
28414 (tst-main1mod.so-no-z-defs): Likewise.
28415 * elf/tst-main1.c: New file.
28416 * elf/tst-main1mod.c: Likewise.
28417
28418 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28419
28420 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28421
28422 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28423
28424 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28425 (fma): Define using libm_alias_double.
28426 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28427 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28428 <math_ldbl_opt.h>.
28429 (fmal): Do not define as compat symbol here.
28430 * sysdeps/alpha/fpu/s_fma.c: New file.
28431
28432 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28433
28434 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28435
28436 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28437
28438 [BZ #22229]
28439 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28440 <math_ldbl_opt.h>
28441 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28442 and libc.
28443 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28444 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28445 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28446 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28448 Include <math_ldbl_opt.h>
28449 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28450 and libc.
28451 (compat_symbol): Undefine and redefine.
28452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28453 <math_ldbl_opt.h>
28454 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28455 (compat_symbol): Undefine and redefine.
28456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28457 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28458 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28459 GLIBC_2_1 for libm.
28460 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28461 GLIBC_2.0 copysignl symbol.
28462 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28463 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28464
28465 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28466
28467 2017-10-04 Florian Weimer <fweimer@redhat.com>
28468
28469 * scripts/check-local-headers.sh: Ignore nspr4 header file
28470 directory in addition to nspr.
28471
28472 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28473
28474 [BZ #17956]
28475 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28476 * configure: Regenerate.
28477 * crypt/Makefile (nss-cpp-flags): New variable.
28478 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28479 (CPPFLAGS-md5-crypt.c): Use it.
28480 * scripts/check-local-headers.sh: Ignore nspr header file
28481 directory.
28482
28483 2017-10-04 Andreas Schwab <schwab@suse.de>
28484
28485 * nis/Makefile (services): Remove compat.
28486 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28487 ($(objpfx)libnss_compat.so): Remove rule.
28488 * nis/Versions (libnss_compat): Remove.
28489 * nss/Makefile (services): Add compat.
28490 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28491 * nss/Versions (libnss_compat): Define.
28492 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28493 Don't include <rpc/types.h>. Replace bool_t by bool.
28494 * nss/nss_compat/compat-initgroups.c: Likewise.
28495 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28496 instead of <rpcsrv/ypclnt.h>.
28497 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28498 yp_get_default_domain.
28499 * nss/nss_compat/compat-pwd.c: Likewise.
28500 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28501 yp_get_default_domain.
28502 * nss/nss_compat/nisdomain.c: New file.
28503 * nss/nss_compat/nisdomain.h: Likewise.
28504
28505 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28506
28507 [BZ #22244]
28508 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28509 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28510
28511 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28512
28513 [BZ #22243]
28514 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28515 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28516
28517 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28518
28519 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28520 "movl main@GOTOFF(%ebx), %eax".
28521
28522 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28523
28524 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28525 allow undefined _DYNAMIC in PIE libc.a.
28526 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28527 Likewse.
28528
28529 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28530
28531 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28532 check _DYNAMIC.
28533
28534 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28535
28536 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28537 check _DYNAMIC.
28538
28539 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28540
28541 * math/test-math-iscanonical.cc (error): Replace bool with int.
28542
28543 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28544
28545 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28546 (modf): Define using libm_alias_double, only if [!__modf].
28547 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28548 <libm-alias-double.h>.
28549 (modf): Define using libm_alias_double, only if [!__modf].
28550 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28551 compat symbol here.
28552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28553 (weak_alias): Do not undefine and redefine.
28554 (strong_alias): Likewise.
28555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28556 (weak_alias): Likewise.
28557 (strong_alias): Likewise.
28558
28559 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28560 (logb): Define using libm_alias_double, only if [!__logb].
28561 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28562 <libm-alias-double.h>.
28563 (logb): Define using libm_alias_double, only if [!__logb].
28564 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28566 (weak_alias): Do not undefine and redefine.
28567 (strong_alias): Likewise.
28568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28569 (weak_alias): Likewise.
28570 (strong_alias): Likewise.
28571
28572 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28573
28574 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28575 Check SHARED instead PIC.
28576
28577 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28578
28579 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28580 [!__fmaf] (fmaf): Define using libm_alias_float.
28581
28582 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28583 (frexp): Define using libm_alias_double.
28584 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28585 <libm-alias-double.h>.
28586 (frexp): Define using libm_alias_double.
28587 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28588 compat symbol here.
28589
28590 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28591
28592 [BZ #22235]
28593 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28594 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28595 (CFLAGS-test-math-iscanonical.cc): New variable.
28596 * math/test-math-iscanonical.cc: New file.
28597 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28598 Provide a C++ implementation based on function overloading,
28599 rather than using __MATH_TG, which uses C-only builtins.
28600 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28601 Likewise.
28602 * sysdeps/powerpc/powerpc64le/Makefile
28603 (CFLAGS-test-math-iscanonical.cc): New variable.
28604
28605 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28606
28607 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28608 (ceil): Define using libm_alias_double.
28609 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28610 (floor): Define using libm_alias_double.
28611 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28612 <libm-alias-double.h>.
28613 (llround): Define using libm_alias_double.
28614 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28615 <libm-alias-double.h>.
28616 (lround): Define using libm_alias_double.
28617 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28618 <libm-alias-double.h>.
28619 (nearbyint): Define using libm_alias_double.
28620 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28621 <libm-alias-double.h>.
28622 (remquo): Define using libm_alias_double.
28623 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28624 (rint): Define using libm_alias_double.
28625 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28626 (round): Define using libm_alias_double.
28627 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28628 (trunc): Define using libm_alias_double.
28629 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28630 <libm-alias-double.h>.
28631 (ceil): Define using libm_alias_double.
28632 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28633 <libm-alias-double.h>.
28634 (floor): Define using libm_alias_double.
28635 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28636 <libm-alias-double.h>.
28637 (llround): Define using libm_alias_double.
28638 [_LP64] (lround): Likewise.
28639 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28640 <libm-alias-double.h>.
28641 [!_LP64] (lround): Define using libm_alias_double.
28642 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28643 <libm-alias-double.h>.
28644 (nearbyint): Define using libm_alias_double.
28645 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28646 <libm-alias-double.h>.
28647 (remquo): Define using libm_alias_double.
28648 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28649 <libm-alias-double.h>.
28650 (rint): Define using libm_alias_double.
28651 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28652 <libm-alias-double.h>.
28653 (round): Define using libm_alias_double.
28654 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28655 <libm-alias-double.h>.
28656 (trunc): Define using libm_alias_double.
28657 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28658 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28659 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28660 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28661 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28662 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28663 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28664 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28665 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28666
28667 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28668
28669 * math/w_remainder.c: New file.
28670 * math/w_remainderf.c: New file.
28671 * math/w_remainderl.c: New file.
28672
28673 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28674
28675 * elf/rtld.c (BOOTSTRAP_MAP): New.
28676 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28677 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28678 Likewise.
28679 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28680 Likewise.
28681 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28682 Likewise.
28683
28684 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28685
28686 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28687 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28688 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28689 rtld_hidden_data_ver): Define to empty.
28690 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28691 __assert_perror_fail): Likewise.
28692 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28693 (__rewinddir): Likewise.
28694 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28695 (__profile_frequency): Likewise.
28696 * include/setjmp.h (__sigsetjmp): Likewise.
28697 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28698 __libc_sigaction): Likewise.
28699 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28700 not set hidden attribute.
28701 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28702 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28703 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28704 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28705 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28706 __fxstatat64): Likewise.
28707 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28708 (__uname): Likewise.
28709 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28710 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28711 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28712 (NO_RTLD_HIDDEN): Set.
28713 * sysdeps/mach/hurd/configure: Refresh.
28714 * config.h.in: Refresh.
28715
28716 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28717
28718 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28719 (atan): Define using libm_alias_double.
28720 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28721 (tan): Define using libm_alias_double.
28722 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28723 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28724
28725 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28726 define as weak alias of __atan. Do not define any aliases if
28727 [__atan].
28728 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28729 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28730 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28731 as weak alias of __tan. Do not define any aliases if [__tan].
28732 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28733 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28734 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28735 __atan.
28736 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28737 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28738 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28739 and define as weak alias of __atan.
28740 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28741 __atan.
28742 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28743 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28744 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28745 define as weak alias of __tan.
28746
28747 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28748
28749 * math/w_lgamma.c: New file.
28750 * math/w_lgammaf.c: New file.
28751 * math/w_lgammal.c: New file.
28752
28753 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28754
28755 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28756 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28757 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28758 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28759 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28760 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28761 * sysdeps/i386/fpu/w_log2f.c: New file.
28762 * sysdeps/i386/fpu/w_logf.c: New file.
28763 * sysdeps/i386/fpu/w_powf.c: New file.
28764 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28765 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28766 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28767
28768 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28769 H.J. Lu <hongjiu.lu@intel.com>
28770
28771 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28772 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28773 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28774 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28775 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28776 the new expf code.
28777 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28778 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28779 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28780 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28781 * sysdeps/i386/fpu/w_exp2f.c: New file.
28782 * sysdeps/i386/fpu/w_expf.c: New file.
28783 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28784 * sysdeps/x86_64/fpu/w_expf.c: New file.
28785
28786 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28787
28788 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28789 (log2f): Likewise.
28790 (powf): Likewise.
28791 * math/w_log2f.c: New file.
28792 * math/w_logf.c: New file.
28793 * math/w_powf.c: New file.
28794 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28795 * math/w_logf_compat.c (__logf_compat): Likewise.
28796 * math/w_powf_compat.c (__powf_compat): Likewise.
28797 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28798 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28799 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28800 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28801 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28802 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28803 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28804 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28805 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28806 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28807 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28808 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28809 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28810 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28811 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28813 Likewise.
28814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28815 Likewise.
28816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28817 Likewise.
28818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28819 Likewise.
28820 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28821 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28822 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28823 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28824 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28825 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28826 Likewise.
28827 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28828 Likewise.
28829 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28830 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28831 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28832
28833 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28834
28835 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28836 (sysdep_routines): Add memrchr_power8.
28837 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28838 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28839 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28840 New file.
28841 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28842 (memrchr): Add __memrchr_power8 to ifunc list.
28843 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28844
28845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28846
28847 [BZ #18822]
28848 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28849 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28850 libc_hidden_def.
28851 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28852 (__posix_fallocate64_l64): Likewise.
28853
28854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28855
28856 [BZ #18822]
28857 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28858 (__sched_setaffinity_new): Add libc_hidden_proto and
28859 libc_hidden_def.
28860
28861 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28862
28863 [BZ #18822]
28864 * include/glob.h (__glob64): Add libc_hidden_proto.
28865 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28866 libc_hidden_def.
28867
28868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28869
28870 [BZ #18822]
28871 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28872 attribute_hidden.
28873
28874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28875
28876 [BZ #18822]
28877 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28878
28879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28880
28881 [BZ #18822]
28882 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28883 libc_hidden_def.
28884
28885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28886
28887 [BZ #18822]
28888 * csu/version.c (__libc_print_version): Add attribute_hidden.
28889
28890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28891
28892 [BZ #18822]
28893 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28894
28895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28896
28897 [BZ #18822]
28898 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28899
28900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28901
28902 [BZ #18822]
28903 * nscd/nscd_helper.c (__nis_hash): New prototype.
28904
28905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28906
28907 [BZ #18822]
28908 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28909 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28910 libc_hidden_def.
28911 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28912 * termios/tcgetattr.c (__tcgetattr): Likewise.
28913
28914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28915
28916 [BZ #18822]
28917 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28918 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28919 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28920 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28921 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28922
28923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28924
28925 [BZ #18822]
28926 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28927
28928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28929
28930 [BZ #18822]
28931 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28932 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28933
28934 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28935
28936 [BZ #18822]
28937 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28938
28939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 [BZ #18822]
28942 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28943 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28944
28945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28946
28947 [BZ #18822]
28948 * include/ifreq.h: New file.
28949 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28950 (__ifreq): Likewise.
28951 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28952 (__ifreq): Likewise.
28953
28954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28955
28956 [BZ #18822]
28957 * include/idna.h: New file.
28958 * inet/getnameinfo.c: Include <idna.h> instead of
28959 <libidn/idna.h>.
28960 (__idna_to_unicode_lzlz): Removed.
28961 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28962 <libidn/idna.h>.
28963 (__idna_to_ascii_lz): Removed.
28964 (__idna_to_unicode_lzlz): Likewise.
28965
28966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28967
28968 [BZ #18822]
28969 * include/plural-exp.h: New file.
28970 * intl/plural-exp.c: Include <plural-exp.h> instead of
28971 "plural-exp.h".
28972
28973 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28974
28975 [BZ #18822]
28976 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28977 "getsourcefilter.h".
28978 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28979 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28980 "getsourcefilter.h".
28981 (__get_sol): Removed.
28982
28983 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28984
28985 [BZ #18822]
28986 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28987 to ...
28988 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28989
28990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28991
28992 [BZ #18822]
28993 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28994 attribute_hidden.
28995
28996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28997
28998 [BZ #18822]
28999 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
29000
29001 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29002
29003 [BZ #18822]
29004 * include/search.h (__tdestroy): Add libc_hidden_proto.
29005 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
29006
29007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29008
29009 [BZ #18822]
29010 * include/assert.h (__assert_fail_base): Add attribute_hidden.
29011
29012 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29013
29014 [BZ #18822]
29015 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29016 attribute_hidden.
29017
29018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29019
29020 [BZ #18822]
29021 * include/signal.h (__kill): Add libc_hidden_proto.
29022 (__sigblock): Likewise.
29023 (__sigprocmask): Likewise.
29024 (__sigaltstack): Likewise.
29025 * signal/kill.c (__kill): Add libc_hidden_def.
29026 * signal/sigblock.c (__sigblock): Likewise.
29027 * signal/sigprocmask.c (__sigprocmask): Likewise.
29028 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29029 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29030 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29031 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29032 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29033 Likewise.
29034 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29035 Likewise.
29036 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29037 (__sigprocmask): Likewise.
29038 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29039 Likewise.
29040 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29041 (__sigprocmask): Likewise.
29042 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29043 Likewise.
29044
29045 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29046
29047 [BZ #18822]
29048 * include/string.h (__strsep): Add libc_hidden_proto.
29049 * string/strsep.c (__strsep): Add libc_hidden_def.
29050
29051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29052
29053 [BZ #18822]
29054 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29055 attribute_hidden.
29056 (__spawni): Likewise.
29057
29058 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29059
29060 [BZ #18822]
29061 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29062 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29063 libc_hidden_def.
29064
29065 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29066
29067 [BZ #18822]
29068 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29069
29070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29071
29072 [BZ #18822]
29073 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29074 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29075 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29076 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29077 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29078 Likewise.
29079 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29080 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29081
29082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29083
29084 [BZ #18822]
29085 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29086 (__dcigettext): Likewise.
29087
29088 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29089
29090 [BZ #18822]
29091 * include/sys/sysinfo.h (__get_nprocs_conf): Add
29092 libc_hidden_proto.
29093 (__get_nprocs): Likewise.
29094 (__get_phys_pages): Likewise.
29095 (__get_avphys_pages): Likewise.
29096 (__get_child_max): Add attribute_hidden.
29097 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29098 (__get_nprocs): Likewise.
29099 (__get_phys_pages): Likewise.
29100 (__get_avphys_pages): Likewise.
29101 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29102 libc_hidden_def.
29103 (__get_nprocs): Likewise.
29104 (__get_phys_pages): Likewise.
29105 (__get_avphys_pages): Likewise.
29106 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29107 libc_hidden_def.
29108 (__get_nprocs_conf): Likewise.
29109 (__get_phys_pages): Likewise.
29110 (__get_avphys_pages): Likewise.
29111
29112 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29113
29114 [BZ #18822]
29115 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29116 attribute_hidden.
29117 (__netlink_close): Likewise.
29118 (__netlink_free_handle): Likewise.
29119 (__netlink_request): Likewise.
29120
29121 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29122
29123 [BZ #18822]
29124 * include/rpc/rpc.h (__rpc_thread_variables): Add
29125 attribute_hidden.
29126 (__rpc_thread_svc_cleanup): Likewise.
29127 (__rpc_thread_clnt_cleanup): Likewise.
29128 (__rpc_thread_key_cleanup): Likewise.
29129
29130 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29131
29132 [BZ #18822]
29133 * include/sys/uio.h (__readv): Add libc_hidden_proto.
29134 (__writev): Likewise.
29135 * misc/readv.c (__readv): Add libc_hidden_def.
29136 * misc/writev.c (__writev): Likewise.
29137 * sysdeps/posix/readv.c (__readv): Likewise.
29138 * sysdeps/posix/writev.c (__writev): Likewise.
29139 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29140 (__readv): Likewise.
29141 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29142 (__writev): Likewise.
29143
29144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29145
29146 [BZ #18822]
29147 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29148 (__regcomp): Add libc_hidden_proto.
29149 (__regexec): Likewise.
29150 (__regfree): Likewise.
29151 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29152 (__regfree): Likewise.
29153 * posix/regexec.c (__regexec): Likewise.
29154
29155 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29156
29157 [BZ #18822]
29158 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29159 (__getutent): Likewise.
29160 (__getutid): Likewise.
29161 (__getutline): Likewise.
29162 (__pututline): Likewise.
29163 (__getutent_r): Likewise.
29164 (__getutid_r): Likewise.
29165 (__getutline_r): Likewise.
29166 (__utmpname): Add attribute_hidden.
29167 (__setutent): Likewise.
29168 (__endutent): Likewise.
29169 * login/getutent.c (__getutent): Add libc_hidden_def.
29170 * login/getutent_r.c (__getutent_r): Likewise.
29171 (__pututline): Likewise.
29172 * login/getutid.c (__getutid): Likewise.
29173 * login/getutid_r.c (__getutid_r): Likewise.
29174 * login/getutline.c (__getutline): Likewise.
29175 * login/getutline_r.c (__getutline_r): Likewise.
29176 * login/updwtmp.c (__updwtmp): Likewise.
29177
29178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29179
29180 [BZ #18822]
29181 * include/dirent.h (__opendir): Always add attribute_hidden.
29182 (__fdopendir): Likewise.
29183 (__closedir): Likewise.
29184 (__readdir): Likewise.
29185 (__readdir64): Add libc_hidden_proto.
29186 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29187 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29188 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29189 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29190 New alias.
29191
29192 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29193
29194 [BZ #18822]
29195 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29196 * include/netdb.h (__gethostbyaddr_r): Likewise.
29197 (__gethostbyname_r): Likewise.
29198 (__gethostbyname2_r): Likewise.
29199 (__getnetbyaddr_r): Likewise.
29200 (__getnetbyname_r): Likewise.
29201 (__getservbyname_r): Likewise.
29202 (__getservbyport_r): Likewise.
29203 (__getprotobyname_r): Likewise.
29204 (__getprotobynumber_r): Likewise.
29205 (__getnetgrent_r): Likewise.
29206 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29207 (__getrpcbynumber_r): Likewise.
29208 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29209
29210 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29211
29212 [BZ #18822]
29213 * include/stdio.h (__fcloseall): Add attribute_hidden.
29214 (__getline): Likewise.
29215 (__path_search): Likewise.
29216 (__gen_tempname): Likewise.
29217 (__libc_message): Likewise.
29218 (__flockfile): Likewise.
29219 (__funlockfile): Likewise.
29220 (__fxprintf): Likewise.
29221 (__fxprintf_nocancel): Likewise.
29222
29223 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29224
29225 [BZ #18822]
29226 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29227 (__sgetsgent_r): Likewise.
29228
29229 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29230
29231 [BZ #18822]
29232 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29233 (__statfs64): Likewise.
29234 (__fstatfs64): Likewise.
29235 * include/sys/statvfs.h (__statvfs64): Likewise.
29236 (__fstatvfs64): Likewise.
29237 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29238 (__statfs_filesize_max): Likewise.
29239 (__statfs_symlinks): Likewise.
29240 (__statfs_chown_restricted): Likewise.
29241
29242 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29243
29244 [BZ #18822]
29245 * include/time.h (__tzstring): Add attribute_hidden.
29246 (__tzfile_read): Likewise.
29247 (__tzfile_compute): Likewise.
29248 (__tzfile_default): Likewise.
29249 (__tzset_parse_tz): Likewise.
29250 (__offtime): Likewise.
29251 (__asctime_r): Likewise.
29252 (__tzset): Likewise.
29253 (__tz_convert): Likewise.
29254 (__getdate_r): Likewise.
29255 (__getclktck): Likewise.
29256
29257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29258
29259 [BZ #18822]
29260 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29261 (__nscd_unmap): Likewise.
29262 (__nscd_cache_search): Likewise.
29263 (__nscd_get_nl_timestamp): Likewise.
29264 (__nscd_getpwnam_r): Likewise.
29265 (__nscd_getpwuid_r): Likewise.
29266 (__nscd_getgrnam_r): Likewise.
29267 (__nscd_getgrgid_r): Likewise.
29268 (__nscd_gethostbyname_r): Likewise.
29269 (__nscd_gethostbyname2_r): Likewise.
29270 (__nscd_gethostbyaddr_r): Likewise.
29271 (__nscd_getai): Likewise.
29272 (__nscd_getgrouplist): Likewise.
29273 (__nscd_getservbyname_r): Likewise.
29274 (__nscd_getservbyport_r): Likewise.
29275 (__nscd_innetgr): Likewise.
29276 (__nscd_setnetgrent): Likewise.
29277
29278 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29279
29280 [BZ #18822]
29281 * include/gmp.h: Declare internal functions only if _ISOMAC is
29282 undefined.
29283 (__mpn_extract_double): Add attribute_hidden.
29284 (__mpn_extract_long_double): Likewise.
29285 (__mpn_extract_float128): Likewise.
29286 (__mpn_construct_float): Likewise.
29287 (__mpn_construct_double): Likewise.
29288 (__mpn_construct_long_double): Likewise.
29289 (__mpn_construct_float128): Likewise.
29290 (mpn_add_1): Likewise.
29291 (mpn_addmul_1): Likewise.
29292 (mpn_add_n): Likewise.
29293 (mpn_cmp): Likewise.
29294 (mpn_divrem): Likewise.
29295 (mpn_lshift): Likewise.
29296 (mpn_mul): Likewise.
29297 (mpn_mul_1): Likewise.
29298 (mpn_rshift): Likewise.
29299 (mpn_sub_1): Likewise.
29300 (mpn_submul_1): Likewise.
29301 (mpn_sub_n): Likewise.
29302
29303 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29304
29305 [BZ #18822]
29306 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29307 (__wcscat): Likewise.
29308 (__btowc): Likewise.
29309 (__wcrtomb): Likewise.
29310 (__mbsrtowcs): Likewise.
29311 (__wcsrtombs): Likewise.
29312 (__mbsnrtowcs): Likewise.
29313 (__wcsnrtombs): Likewise.
29314 (__wcsncpy): Likewise.
29315 (__wcpncpy): Likewise.
29316 (__wmemcpy): Likewise.
29317 (__wmempcpy): Likewise.
29318 (__wmemmove): Likewise.
29319 (__wcschrnul): Likewise.
29320 (__vfwscanf): Likewise.
29321 (__vswprintf): Likewise.
29322 (__fwprintf): Likewise.
29323 (__vfwprintf): Likewise.
29324
29325 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29326
29327 [BZ #18822]
29328 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29329 (__getgrgid_r): Likewise.
29330 (__getgrnam_r): Likewise.
29331 * include/pwd.h (__getpwuid_r): Likewise.
29332 (__getpwnam_r): Likewise.
29333 (__fgetpwent_r): Likewise.
29334 * include/shadow.h (__getspnam_r): Likewise.
29335 (__sgetspent_r): Likewise.
29336 (__fgetspent_r): Likewise.
29337
29338 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29339
29340 [BZ #18822]
29341 * include/unistd.h (__access): Add attribute_hidden.
29342 (__lseek64): Likewise.
29343 (__libc_pread64): Likewise.
29344 (__pipe2): Likewise.
29345 (__sleep): Likewise.
29346 (__chdir): Likewise.
29347 (__fchdir): Likewise.
29348 (__getcwd): Likewise.
29349 (__rmdir): Likewise.
29350 (__execvpe): Likewise.
29351 (__execve): Likewise.
29352 (__setsid): Likewise.
29353 (__getuid): Likewise.
29354 (__geteuid): Likewise.
29355 (__getgid): Likewise.
29356 (__getegid): Likewise.
29357 (__getgroups): Likewise.
29358 (__group_member): Likewise.
29359 (__ttyname_r): Likewise.
29360 (__isatty): Likewise.
29361 (__readlink): Likewise.
29362 (__unlink): Likewise.
29363 (__gethostname): Likewise.
29364 (__profil): Likewise.
29365 (__getdtablesize): Likewise.
29366 (__brk): Likewise.
29367 (__ftruncate): Likewise.
29368 (__ftruncate64): Likewise.
29369
29370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29371
29372 [BZ #18822]
29373 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29374 * argp/argp-fs-xinl.c: Likewise.
29375 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29376 * argp/argp-parse.c: Include <argp.h>.
29377 * argp/argp-xinl.c: Likewise.
29378 * include/argp-fmtstream.h: New file.
29379 * include/argp.h (__argp_error): Add attribute_hidden.
29380 (__argp_failure): Likewise.
29381 (__argp_input): Likewise.
29382 (__argp_state_help): Likewise.
29383
29384 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29385
29386 [BZ #18822]
29387 * include/wchar.h (____wcstof_l_internal): New prototype.
29388 (____wcstod_l_internal): Likewise.
29389 (____wcstold_l_internal): Likewise.
29390 (____wcstol_l_internal): Likewise.
29391 (____wcstoul_l_internal): Likewise.
29392 (____wcstoll_l_internal): Likewise.
29393 (____wcstoull_l_internal): Likewise.
29394 (____wcstof128_l_internal): Likewise.
29395 * sysdeps/ieee754/float128/wcstof128.c
29396 (____wcstof128_l_internal): Removed.
29397 * sysdeps/ieee754/float128/wcstof128_l.c
29398 (____wcstof128_l_internal): Likewise.
29399 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29400 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29401 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29402 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29403 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29404 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29405 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29406 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29407 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29408 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29409
29410 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29411
29412 [BZ #18822]
29413 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29414 instead of <sys/statvfs.h>.
29415 (__internal_statvfs): Removed.
29416 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29417 instead of <sys/statvfs.h>.
29418 (__internal_statvfs64): Removed.
29419 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29420 "internal_statvfs.h" instead of <sys/statvfs.h>.
29421 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29422 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29423 instead of <sys/statvfs.h>.
29424 (__internal_statvfs): Removed.
29425 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29426 instead of <sys/statvfs.h>.
29427 (__internal_statvfs64): Removed.
29428
29429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29430
29431 [BZ #18822]
29432 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29433 (__gconv_close): Likewise.
29434 (__gconv): Likewise.
29435 (__gconv_find_transform): Likewise.
29436 (__gconv_lookup_cache): Likewise.
29437 (__gconv_compare_alias_cache): Likewise.
29438 (__gconv_load_cache): Likewise.
29439 (__gconv_get_path): Likewise.
29440 (__gconv_close_transform): Likewise.
29441 (__gconv_release_cache): Likewise.
29442 (__gconv_find_shlib): Likewise.
29443 (__gconv_release_shlib): Likewise.
29444 (__gconv_get_builtin_trans): Likewise.
29445 (__gconv_compare_alias): Likewise.
29446 * include/dlfcn.h (_dlerror_run): Likewise.
29447 * include/stdio.h (__fortify_fail_abort): Likewise.
29448 * include/time.h (__tz_compute): Likewise.
29449 (__strptime_internal): Likewise.
29450 * intl/gettextP.h (_nl_find_domain): Likewise.
29451 (_nl_load_domain): Likewise.
29452 (_nl_find_msg): Likewise.
29453 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29454 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29455 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29456 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29457 (__gai_find_request): Likewise.
29458 (__gai_remove_request): Likewise.
29459 (__gai_notify): Likewise.
29460 (__gai_notify_only): Likewise.
29461 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29462 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29463 (_dl_non_dynamic_init): Likewise.
29464 (_dl_aux_init): Likewise.
29465 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29466 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29467 Likewise.
29468 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29469 (__wcsmbs_clone_conv): Likewise.
29470 (__wcsmbs_named_conv): Likewise.
29471
29472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29473
29474 [BZ #18822]
29475 * include/stdlib.h (__random): Add attribute_hidden.
29476 (__random_r): Likewise.
29477 (__srandom_r): Likewise.
29478 (__initstate_r): Likewise.
29479 (__setstate_r): Likewise.
29480 (__erand48_r): Likewise.
29481 (__nrand48_r): Likewise.
29482 (__jrand48_r): Likewise.
29483 (__srand48_r): Likewise.
29484 (__seed48_r): Likewise.
29485 (__lcong48_r): Likewise.
29486 (__drand48_iterate): Likewise.
29487 (__setenv): Likewise.
29488 (__unsetenv): Likewise.
29489 (__clearenv): Likewise.
29490 (__ptsname_r): Likewise.
29491 (__posix_openpt): Likewise.
29492 (__add_to_environ): Likewise.
29493 (__realpath): Add libc_hidden_proto.
29494 (__ecvt_r): Likewise.
29495 (__fcvt_r): Likewise.
29496 (__qecvt_r): Likewise.
29497 (__qfcvt_r): Likewise.
29498 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29499 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29500
29501 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29502
29503 [BZ #18822]
29504 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29505 * include/time.h (__mktime_internal): Likewise.
29506 * libio/iolibio.h (__fopen_internal): Likewise.
29507
29508 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29509
29510 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29511 pointer in frame.
29512 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29513 Correct offset used to restore PIC register.
29514
29515 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29516
29517 [BZ libc/22165]
29518 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29519 code to load address of __getcontext_ret when generating PIC code.
29520
29521 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29522
29523 * elf/Makefile (tests-static-internal): Add
29524 tst-tls1-static-non-pie.
29525 (LDFLAGS-tst-tls1-static-non-pie): New.
29526 * elf/tst-tls1-static-non-pie.c: New file.
29527
29528 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29529
29530 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29531 (asinh): Define using libm_alias_double.
29532 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29533 (cbrt): Define using libm_alias_double.
29534 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29535 <libm-alias-double.h>.
29536 (copysign): Define using libm_alias_double.
29537 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29538 (erf): Define using libm_alias_double.
29539 (erfc): Likewise.
29540 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29541 (expm1): Define using libm_alias_double.
29542 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29543 (fabs): Define using libm_alias_double.
29544 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29545 libm_alias_double.
29546 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29547 <libm-alias-double.h>.
29548 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29549 libm_alias_double.
29550 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29551 <libm-alias-double.h>.
29552 (getpayload): Define using libm_alias_double.
29553 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29554 <libm-alias-double.h>.
29555 (llrint): Define using libm_alias_double.
29556 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29557 (lrint): Define using libm_alias_double.
29558 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29559 <libm-alias-double.h>.
29560 (nextup): Define using libm_alias_double.
29561 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29562 <libm-alias-double.h>.
29563 (roundeven): Define using libm_alias_double.
29564 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29565 libm_alias_double.
29566 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29567 <libm-alias-double.h>.
29568 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29569 using libm_alias_double.
29570 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29571 (cos): Define using libm_alias_double.
29572 (sin): Likewise.
29573 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29574 <libm-alias-double.h>.
29575 (sincos): Define using libm_alias_double.
29576 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29577 (tanh): Define using libm_alias_double.
29578 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29579 <libm-alias-double.h>.
29580 (totalorder): Define using libm_alias_double.
29581 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29582 <libm-alias-double.h>.
29583 (totalordermag): Define using libm_alias_double.
29584 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29585 libm_alias_double.
29586 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29587 libm_alias_double.
29588 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29589 <libm-alias-double.h>.
29590 (getpayload): Define using libm_alias_double.
29591 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29592 <libm-alias-double.h>.
29593 (roundeven): Define using libm_alias_double.
29594 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29595 <libm-alias-double.h>.
29596 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29597 <libm-alias-double.h>.
29598 (totalorder): Define using libm_alias_double.
29599 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29600 <libm-alias-double.h>.
29601 (totalordermag): Define using libm_alias_double.
29602 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29603 libc compat symbol here.
29604 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29605 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29606 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29607 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29608 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29609 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29610 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29611 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29612 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29613 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29614
29615 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29616
29617 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29618 _dl_relocate_static_pie instead of _dl_start to compute load
29619 address in static PIE. Return 0 if _DYNAMIC is undefined for
29620 static executable.
29621
29622 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29623
29624 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29625 _DYNAMIC is undefined for static executable.
29626
29627 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29628
29629 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29630
29631 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29632
29633 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29634
29635 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29636
29637 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29638 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29639 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29640 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29641 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29642 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29643 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29644 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29645 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29646 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29647 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29648 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29649 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29650 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29651 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29652 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29653 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29654
29655 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29656
29657 * math/bits/cmathcalls.h (cimag): Remove inline.
29658 (creal): Remove inline.
29659 (conj): Remove inline.
29660
29661 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29662
29663 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29664 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29665 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29666 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29667 (issignalingf_inline): Likewise.
29668 (POWF_LOG2_TABLE_BITS): Likewise.
29669 (POWF_LOG2_POLY_ORDER): Likewise.
29670 (POWF_SCALE_BITS): Likewise.
29671 (POWF_SCALE): Likewise.
29672 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29673 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29674 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29675
29676 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29677
29678 * math/Makefile (type-float-routines): Add e_log2f_data.
29679 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29680 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29681 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29682 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29683 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29684 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29685 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29686
29687 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29688
29689 * math/Makefile (type-float-routines): Add e_logf_data.
29690 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29691 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29692 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29693 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29694 * sysdeps/i386/fpu/e_logf_data.c: New file.
29695 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29696 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29697
29698 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29699
29700 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29701 undefined _DYNAMIC in PIE libc.a.
29702 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29703 Likewse.
29704
29705 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29706
29707 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29708 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29709 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29710 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29711 (__signbit): Remove.
29712 (__signbitl): Remove.
29713 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29714 (__signbit): Remove.
29715 (__signbitl): Remove.
29716 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29717 (__signbit): Remove.
29718 (__signbitl): Remove.
29719 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29720 (__signbit): Remove.
29721 (__signbitl): Remove.
29722 * sysdeps/tile/bits/mathinline.h: Delete file.
29723 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29724 (__signbit): Remove.
29725 (__signbitl): Remove.
29726
29727 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29728
29729 * math/math.h: Improve handling of C99 isgreater macros.
29730 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29731 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29732 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29733 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29734 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29735
29736 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29737
29738 * sysdeps/aarch64/libm-test-ulps: Update.
29739
29740 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29741
29742 [BZ #22225]
29743 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29744 math_opt_barrier on argument when doing arithmetic on it.
29745 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29746 Likewise. Use math_force_eval not math_opt_barrier after
29747 arithmetic.
29748 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29749 math_opt_barrier on argument when doing arithmetic on it.
29750 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29751 Likewise.
29752
29753 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29754
29755 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29756 libc_hidden_def.
29757 (__freeifaddrs): Likewise.
29758
29759 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29760
29761 * include/dirent.h (__dirfd): New declaration.
29762 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29763 alias.
29764 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29765 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29766 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29767 * include/unistd.h (__revoke): New declaration.
29768 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29769 alias.
29770 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29771 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29772 revoke.
29773 * include/dirent.h (__seekdir): New declaration.
29774 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29775 redefine as weak alias.
29776 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29777 of seekdir.
29778 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29779 and use libc_hidden_def on them.
29780 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29781 them.
29782 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29783 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29784 instead of getifaddrs and freeifaddrs.
29785
29786 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29787
29788 [BZ #18822]
29789 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29790 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29791 (__dso_handle): Remove declaration.
29792 * dlfcn/tstatexit.c (__dso_handle): Removed.
29793 (main): Don't check __dso_handle.
29794 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29795 (main): Don't check __dso_handle.
29796 * include/dso_handle.h: New file.
29797 * malloc/mtrace.c: Include <dso_handle.h>.
29798 (mtrace): Pass __dso_handle directly.
29799 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29800 (__dso_handle): Remove declaration.
29801 (__pthread_atfork): Pass __dso_handle directly.
29802 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29803 (__dso_handle): Removed.
29804 * posix/wordexp-test.c: Include <dso_handle.h>.
29805 (__dso_handle): Remove declaration.
29806 (__app_register_atfork): Pass __dso_handle directly.
29807 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29808 (__dso_handle): Remove declaration.
29809 (at_quick_exit): Pass __dso_handle directly.
29810 * stdlib/atexit.c: Include <dso_handle.h>.
29811 (__dso_handle): Remove declaration.
29812 (atexit): Pass __dso_handle directly.
29813 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29814 (__dso_handle): Removed.
29815
29816 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29817
29818 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29819 using VDSO.
29820
29821 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29822
29823 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29824 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29825 values to correct default value for given type.
29826
29827 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29828
29829 [BZ #22101]
29830 * elf/Makefile (tests): Add tst-debug1.
29831 ($(objpfx)tst-debug1): New.
29832 ($(objpfx)tst-debug1.out): Likewise.
29833 ($(objpfx)tst-debug1mod1.so): Likewise.
29834 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29835 with p_filesz == 0.
29836 * elf/tst-debug1.c: New file.
29837
29838 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29839
29840 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29841 Define using __ifunc.
29842
29843 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29844
29845 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29846 exp2f() values.
29847
29848 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29849
29850 [BZ #22156]
29851 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29852
29853 2017-09-26 Florian Weimer <fweimer@redhat.com>
29854
29855 * resolv/Makefile (tests-internal): Fix typo in comment.
29856
29857 2017-09-26 Florian Weimer <fweimer@redhat.com>
29858
29859 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29860
29861 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29862
29863 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29864 Use an union instead of a max_align_t array for __space,
29865 so that __space is the same size on all platforms.
29866 * malloc/scratch_buffer_grow_preserve.c
29867 (__libc_scratch_buffer_grow_preserve): Likewise.
29868
29869 [BZ #22183]
29870 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29871 version to 2.
29872 * posix/Makefile (routines): Add glob-lstat-compat and
29873 glob64-lstat-compat.
29874 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29875 * posix/glob-lstat-compat.c: New file.
29876 * posix/glob64-lstat-compat.c: Likewise.
29877 * posix/tst-glob_lstat_compat.c: Likewise.
29878 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29879 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29880 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29881 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29882 Likewise.
29883 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29884 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29885 * posix/glob.c (glob_lstat): New function.
29886 (glob): Rename to __glob and add versioned symbol to 2.27.
29887 (glob_in_dir): Use glob_lstat.
29888 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29889 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29890 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29891 2.27.
29892 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29893 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29894 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29895 gl_lstat on glob call.
29896 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29897 and glob64 symbols.
29898 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29899 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29900 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29901 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29902 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29903 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29904 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29905 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29906 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29907 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29908 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29909 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29911 Likewise.
29912 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29914 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29915 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29916 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29917 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29918 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29919 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29920 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29921 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29922 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29923 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29924
29925 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29926
29927 * configure.ac (AS): Require binutils 2.25 or later.
29928 * configure: Regenerated.
29929
29930 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29931
29932 [BZ #22207]
29933 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29934 VM size.
29935
29936 2017-09-25 DJ Delorie <dj@redhat.com>
29937
29938 [BZ #22161]
29939 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29940 resetting timeout.
29941
29942 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29943
29944 * sysdeps/ieee754/dbl-64/sincos32.h
29945 [SINCCOS32_H]: Remove define.
29946 [SINCOS32_H]: Define.
29947
29948 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29949
29950 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29951 (exp2f): Likewise.
29952 * math/w_exp2f.c: New file.
29953 * math/w_expf.c: New file.
29954 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29955 * math/w_expf_compat.c (__expf_compat): Likewise.
29956 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29957 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29958 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29959 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29960 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29961 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29962 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29963 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29964 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29965 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29966 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29967 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29968 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29969 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29971 Likewise.
29972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29973 Likewise.
29974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29975 Likewise.
29976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29977 Likewise.
29978 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29979 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29980 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29981 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29982 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29983 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29984 Likewise.
29985 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29986 Likewise.
29987 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29988 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29989 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29990
29991 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29992
29993 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29994 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29995 (roundtoint, converttoint): Likewise.
29996 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29997 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29998 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29999 * sysdeps/ieee754/flt-32/math_config.h: New file.
30000 * sysdeps/ieee754/flt-32/math_errf.c: New file.
30001 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
30002 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
30003 * sysdeps/i386/fpu/math_errf.c: New file.
30004 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
30005 * sysdeps/ia64/fpu/math_errf.c: New file.
30006 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
30007 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
30008
30009 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30010
30011 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30012 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30013 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30014 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30015 to make sure that these symbols are defined.
30016 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30017 of <limits.h>
30018 (__need_NULL): Do not define.
30019 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30020 alignment.
30021 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30022 CMGROUP_MAX, cmsgcred): Do not define.
30023 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30024 NULL.
30025 * bits/socket.h: Likewise.
30026 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30027 __gettimeofday instead of gettimeofday.
30028 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30029 instead of settimeofday.
30030
30031 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30032
30033 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30034 (asinhf): Define using libm_alias_float.
30035 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30036 (atanf): Define using libm_alias_float.
30037 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30038 (cbrtf): Define using libm_alias_float.
30039 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30040 (ceilf): Define using libm_alias_float.
30041 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30042 <libm-alias-float.h>.
30043 (copysignf): Define using libm_alias_float.
30044 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30045 (cosf): Define using libm_alias_float.
30046 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30047 (erff): Define using libm_alias_float.
30048 (erfcf): Likewise.
30049 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30050 (expm1f): Define using libm_alias_float.
30051 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30052 (fabsf): Define using libm_alias_float.
30053 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30054 (floorf): Define using libm_alias_float.
30055 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30056 (frexpf): Define using libm_alias_float.
30057 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30058 libm_alias_float.
30059 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30060 <libm-alias-float.h>.
30061 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30062 libm_alias_float.
30063 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30064 <libm-alias-float.h>.
30065 (getpayloadf): Define using libm_alias_float.
30066 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30067 <libm-alias-float.h>.
30068 (llrintf): Define using libm_alias_float.
30069 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30070 <libm-alias-float.h>.
30071 (llroundf): Define using libm_alias_float.
30072 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30073 (logbf): Define using libm_alias_float.
30074 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30075 (lrintf): Define using libm_alias_float.
30076 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30077 (lroundf): Define using libm_alias_float.
30078 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30079 (modff): Define using libm_alias_float.
30080 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30081 <libm-alias-float.h>.
30082 (nearbyintf): Define using libm_alias_float.
30083 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30084 <libm-alias-float.h>.
30085 (nextafterf): Define using libm_alias_float.
30086 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30087 <libm-alias-float.h>.
30088 (nextupf): Define using libm_alias_float.
30089 * sysdeps/ieee754/flt-32/s_remquof.c: Include
30090 <libm-alias-float.h>.
30091 (remquof): Define using libm_alias_float.
30092 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30093 (rintf): Define using libm_alias_float.
30094 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30095 <libm-alias-float.h>.
30096 (roundevenf): Define using libm_alias_float.
30097 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30098 (roundf): Define using libm_alias_float.
30099 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30100 using libm_alias_float.
30101 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30102 <libm-alias-float.h>.
30103 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30104 Define using libm_alias_float.
30105 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30106 <libm-alias-float.h>.
30107 (sincosf): Define using libm_alias_float.
30108 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30109 (sinf): Define using libm_alias_float.
30110 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30111 (tanf): Define using libm_alias_float.
30112 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30113 (tanhf): Define using libm_alias_float.
30114 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30115 <libm-alias-float.h>.
30116 (totalorderf): Define using libm_alias_float.
30117 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30118 <libm-alias-float.h>.
30119 (totalordermagf): Define using libm_alias_float.
30120 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30121 (truncf): Define using libm_alias_float.
30122 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30123 libm_alias_float.
30124 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30125 libm_alias_float.
30126
30127 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30128
30129 [BZ #22146]
30130 math/math.h: Let fpclassify use the builtin in C++ mode, even
30131 when optimazing for size.
30132
30133 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30134
30135 * csu/Makefile (generated): Do not add version-info.h.
30136 (before-compile): Likewise.
30137 (all-Banner-files): Remove variable.
30138 ($(objpfx)version-info.h): Remove rule.
30139 * csu/version.c (banner): Do not include "version-info.h".
30140 * libidn/Banner: Remove.
30141 * manual/contrib.texi (Simon Josefsson): New entry.
30142
30143 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30144
30145 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30146 Remove conditionals on LDBL_MANT_DIG.
30147 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30148 (__ieee754_lgammal_r): Likewise.
30149
30150 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30151
30152 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30153 _Float128 and L().
30154 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30155 _Float128 and L(). Replace _Float128 with long double and L(x)
30156 with xL, throughout the file.
30157 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30158 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30159 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30160 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30161
30162 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30163
30164 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30165 sysdeps/ieee754/ldbl-128ibm.
30166 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30167 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30168 of including it. Keep _Float128 and L() intact. These will be
30169 reviewed by a separate patch.
30170 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30171 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30172 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30173 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30174
30175 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30176
30177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30178 (__finitef128): Define to __redirect___finitef128.
30179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30180 (__isinff128): Define to __redirect___isinff128.
30181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30182 (__isnanf128): Define to __redirect___isnanf128.
30183
30184 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30185
30186 * sysdeps/powerpc/powerpc64le/Makefile
30187 (CFLAGS-tst-strtod-nan-locale.c): New variable.
30188 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30189
30190 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
30191 Carlos O'Donell <carlos@redhat.com>
30192
30193 [BZ #22180]
30194 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30195 * stdlib/test-dlclose-exit-race.c: New file.
30196 * stdlib/test-dlclose-exit-race-helper.c: New file.
30197 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30198
30199 2017-09-21 Joseph Myers <joseph@codesourcery.com>
30200
30201 * crypt/Banner: Remove file.
30202 * nptl/Banner: Likewise.
30203 * resolv/Banner: Likewise.
30204 * soft-fp/Banner: Likewise.
30205 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30206 ($(objpfx)version.d): Remove dependency on banner.h.
30207 ($(objpfx)version.os): Likewise.
30208 * nptl/version.c (banner): Do not include banner.h.
30209 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30210 Jelinek and BIND code.
30211
30212 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30213 Carlos O'Donell <carlos@redhat.com>
30214
30215 * support/xdlfcn.h: New file.
30216 * support/xdlfcn.c: New file.
30217 * support/Makefile (libsupport-routines): Add xdlfcn.
30218 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30219
30220 2017-09-20 Joseph Myers <joseph@codesourcery.com>
30221
30222 [BZ #20142]
30223 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30224 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30225 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30226 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30227 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30228 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30229 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30230 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30231
30232 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30233 Ricky Zhou <rickyz@google.com>
30234 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
30235
30236 [BZ #14333]
30237 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30238 Remove atomics.
30239 (__new_exitfn): Fail registration when we finished at_exit processing.
30240 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30241 * stdlib/on_exit.c (__on_exit): Likewise.
30242 * stdlib/exit.c (__exit_funcs_done): New variable.
30243 (__run_exit_handlers): Use __exit_funcs_lock.
30244 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30245 declarations.
30246 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30247 (test-cxa_atexit-race, test-on_exit-race): New tests.
30248 * stdlib/test-atexit-race-common.c: New file.
30249 * stdlib/test-atexit-race.c: New file.
30250 * stdlib/test-at_quick_exit-race.c: New file.
30251 * stdlib/test-cxa_atexit-race.c: New file.
30252 * stdlib/test-on_exit-race.c: New file.
30253
30254 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
30255
30256 * benchtests/Makefile: Add exp2f and log2f benchmarks.
30257 * benchtests/exp2f-inputs: Copy of expf-inputs.
30258 * benchtests/log2f-inputs: Copy of logf-inputs.
30259
30260 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30261
30262 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30263 Explicitly take address of first element of array arguments in
30264 call to INLINE_SYSCALL.
30265
30266 2017-09-19 Andreas Schwab <schwab@suse.de>
30267
30268 [BZ #22134]
30269 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30270 execveat first.
30271 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30272 unimplemented.
30273 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30274 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30275 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30276 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30277 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30278 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30279 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30280 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30281 * posix/Makefile (tests): Add tst-fexecve.
30282 * posix/tst-fexecve.c: New file.
30283
30284 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30285
30286 * benchtests/Makefile: Add logf benchmark.
30287 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30288
30289 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30290
30291 * benchtests/Makefile: Add expf benchmark.
30292 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30293
30294 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30295
30296 * csu/Makefile: Add -funwind-tables to libc-start.c.
30297 * debug/Makefile: Add -funwind-tables to backtrace.c.
30298 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30299 * sysdeps/arm/Makefile: Likewise.
30300 * sysdeps/i386/Makefile: Likewise.
30301 * sysdeps/m68k/Makefile: Likewise.
30302 * sysdeps/mips/Makefile: Likewise.
30303 * sysdeps/nios2/Makefile: Likewise.
30304 * sysdeps/sh/Makefile: Likewise.
30305 * sysdeps/sparc/Makefile: Likewise.
30306
30307 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30308
30309 * benchtests/Makefile (bench-math): Add trunc and truncf.
30310 (CFLAGS-bench-trunc.c): New variable.
30311 (CFLAGS-bench-truncf.c): Likewise.
30312 * benchtests/trunc-inputs: New file.
30313 * benchtests/truncf-inputs: Likewise.
30314
30315 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30316
30317 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30318
30319 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30320
30321 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30322 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30323 redefine.
30324 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30325 (exp10l): Define as weak alias.
30326 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30327 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30328 and redefine.
30329 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30330 (remainderl): Define as weak alias.
30331
30332 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30333 (fmal): Define using libm_alias_ldouble.
30334 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30335 (acoshl): Define using libm_alias_ldouble.
30336 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30337 (acosl): Define using libm_alias_ldouble.
30338 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30339 (asinl): Define using libm_alias_ldouble.
30340 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30341 (atan2l): Define using libm_alias_ldouble.
30342 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30343 (atanhl): Define using libm_alias_ldouble.
30344 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30345 (coshl): Define using libm_alias_ldouble.
30346 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30347 (exp10l): Define using libm_alias_ldouble.
30348 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30349 (exp2l): Define using libm_alias_ldouble.
30350 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30351 (expl): Define using libm_alias_ldouble.
30352 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30353 (fmodl): Define using libm_alias_ldouble.
30354 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30355 (hypotl): Define using libm_alias_ldouble.
30356 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30357 (j0l): Define using libm_alias_ldouble.
30358 (y0l): Likewise.
30359 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30360 (j1l): Define using libm_alias_ldouble.
30361 (y1l): Likewise.
30362 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30363 (jnl): Define using libm_alias_ldouble.
30364 (ynl): Likewise.
30365 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30366 (log10l): Define using libm_alias_ldouble.
30367 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30368 (log2l): Define using libm_alias_ldouble.
30369 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30370 (logl): Define using libm_alias_ldouble.
30371 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30372 (powl): Define using libm_alias_ldouble.
30373 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30374 (remainderl): Define using libm_alias_ldouble.
30375 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30376 (sinhl): Define using libm_alias_ldouble.
30377 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30378 (sqrtl): Define using libm_alias_ldouble.
30379 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30380 (tgammal): Define using libm_alias_ldouble.
30381 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30382 (exp10l): Do not use long_double_symbol here.
30383 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30384 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30385 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30386 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30387 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30388 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30389 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30390 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30391 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30392 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30393 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30394 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30395 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30396 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30397 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30398 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30399 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30400 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30401 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30402 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30403 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30404 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30405
30406 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30407
30408 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30409 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30410
30411 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30412
30413 * io/read.c (read): Add libc_hidden_weak.
30414 * sysdeps/mach/hurd/read.c (read): Likewise.
30415 * io/write.c (write): Likewise.
30416 * sysdeps/mach/hurd/write.c (write): Likewise.
30417 * io/pread64.c (__pread64): Likewise.
30418 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30419 * posix/pread64.c (__pread64): Add libc_hidden_def.
30420
30421 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30422
30423 * benchtests/scripts/compare_strings.py: New option -g.
30424 (draw_graph): Print a message that a graph is being generated.
30425 (process_results): Generate graph only if -g is passed.
30426 (main): Process option -g.
30427
30428 * benchtests/scripts/compare_strings.py (process_results):
30429 Better spacing for output.
30430
30431 * benchtests/scripts/compare_strings.py: Use argparse.
30432 * benchtests/README: Document existence of compare_strings.py.
30433
30434 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30435
30436 * math/s_fma.c: Include <libm-alias-double.h>.
30437 (fma): Define using libm_alias_double.
30438 * math/s_nextafter.c: Include <libm-alias-double.h>.
30439 (nextafter): Define using libm_alias_double.
30440 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30441 (acos): Define using libm_alias_double.
30442 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30443 (aocsh): Define using libm_alias_double.
30444 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30445 (asin): Define using libm_alias_double.
30446 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30447 (atan2): Define using libm_alias_double.
30448 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30449 (atanh): Define using libm_alias_double.
30450 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30451 (cosh): Define using libm_alias_double.
30452 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30453 (exp10): Define using libm_alias_double.
30454 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30455 (exp2): Define using libm_alias_double.
30456 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30457 (exp): Define using libm_alias_double.
30458 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30459 (fmod): Define using libm_alias_double.
30460 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30461 (hypot): Define using libm_alias_double.
30462 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30463 (j0): Define using libm_alias_double.
30464 (y0): Likewise.
30465 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30466 (j1): Define using libm_alias_double.
30467 (y1): Likewise.
30468 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30469 (jn): Define using libm_alias_double.
30470 (yn): Likewise.
30471 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30472 (log10): Define using libm_alias_double.
30473 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30474 (log2): Define using libm_alias_double.
30475 * math/w_log_compat.c: Include <libm-alias-double.h>.
30476 (log): Define using libm_alias_double.
30477 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30478 (pow): Define using libm_alias_double.
30479 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30480 (remainder): Define using libm_alias_double.
30481 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30482 (sinh): Define using libm_alias_double.
30483 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30484 (sqrt): Define using libm_alias_double.
30485 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30486 (tgamma): Define using libm_alias_double.
30487 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30488 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30489 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30490 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30491 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30492 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30493 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30494 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30495 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30496 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30497 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30498 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30499 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30500 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30501 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30502 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30503 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30504 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30505 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30506 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30507 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30508 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30509 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30510 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30511 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30512
30513 * math/e_acoshl.c: Remove.
30514 * math/e_acosl.c: Likewise.
30515 * math/e_asinl.c: Likewise.
30516 * math/e_atan2l.c: Likewise.
30517 * math/e_atanhl.c: Likewise.
30518 * math/e_coshl.c: Likewise.
30519 * math/e_expl.c: Likewise.
30520 * math/e_fmodl.c: Likewise.
30521 * math/e_gammal_r.c: Likewise.
30522 * math/e_hypotl.c: Likewise.
30523 * math/e_j0l.c: Likewise.
30524 * math/e_j1l.c: Likewise.
30525 * math/e_jnl.c: Likewise.
30526 * math/e_lgammal_r.c: Likewise.
30527 * math/e_log10l.c: Likewise.
30528 * math/e_log2l.c: Likewise.
30529 * math/e_logl.c: Likewise.
30530 * math/e_powl.c: Likewise.
30531 * math/e_rem_pio2l.c: Likewise.
30532 * math/e_sinhl.c: Likewise.
30533 * math/e_sqrtf128.c: Likewise.
30534 * math/e_sqrtl.c: Likewise.
30535 * math/k_cosl.c: Likewise.
30536 * math/k_sinl.c: Likewise.
30537 * math/k_tanl.c: Likewise.
30538 * math/s_asinhl.c: Likewise.
30539 * math/s_atanl.c: Likewise.
30540 * math/s_cbrtl.c: Likewise.
30541 * math/s_erfl.c: Likewise.
30542 * math/s_expm1l.c: Likewise.
30543 * math/s_log1pl.c: Likewise.
30544 * math/s_tanhl.c: Likewise.
30545
30546 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30547
30548 [BZ #21745]
30549 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30550 [$(subdir) = math] (sysdep_calls): New variable. Has the
30551 previous contents of sysdep_routines, but re-sorted..
30552 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30553 sysdep_calls.
30554 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30555 defined in sysdep_calls and replace by the respective m_* names.
30556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30557 (compat_symbol): Undefine to avoid duplicated compat symbols in
30558 libc.
30559
30560 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30561
30562 * math/s_fmaf.c: Include <libm-alias-float.h>.
30563 (fmaf): Define using libm_alias_float.
30564 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30565 (acosf): Define using libm_alias_float.
30566 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30567 (acoshf): Define using libm_alias_float.
30568 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30569 (asinf): Define using libm_alias_float.
30570 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30571 (atan2f): Define using libm_alias_float.
30572 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30573 (atanhf): Define using libm_alias_float.
30574 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30575 (coshf): Define using libm_alias_float.
30576 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30577 (exp10f): Define using libm_alias_float.
30578 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30579 (fmodf): Define using libm_alias_float.
30580 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30581 (hypotf): Define using libm_alias_float.
30582 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30583 (j0f): Define using libm_alias_float.
30584 (y0f): Likewise.
30585 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30586 (j1f): Define using libm_alias_float.
30587 (y1f): Likewise.
30588 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30589 (jnf): Define using libm_alias_float.
30590 (ynf): Likewise.
30591 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30592 (log10f): Define using libm_alias_float.
30593 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30594 (log2f): Define using libm_alias_float.
30595 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30596 (logf): Define using libm_alias_float.
30597 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30598 (powf): Define using libm_alias_float.
30599 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30600 (remainderf): Define using libm_alias_float.
30601 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30602 (sinhf): Define using libm_alias_float.
30603 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30604 (sqrtf): Define using libm_alias_float.
30605 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30606 (tgammaf): Define using libm_alias_float.
30607
30608 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30609
30610 * include/math.h (roundeven): Change hidden_proto call to
30611 __roundeven.
30612 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30613 alias.
30614 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30615 (y0): Rename to __y0 and define as weak alias.
30616 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30617 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30618 alias.
30619 (y0f): Rename to __y0f and define as weak alias.
30620 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30621 alias.
30622 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30623 (y1): Rename to __y1 and define as weak alias.
30624 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30625 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30626 alias.
30627 (y1f): Rename to __y1f and define as weak alias.
30628 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30629 alias.
30630 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30631 (yn): Rename to __yn and define as weak alias.
30632 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30633 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30634 alias.
30635 (ynf): Rename to __ynf and define as weak alias.
30636 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30637 (fromfp): Define as weak alias.
30638 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30639 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30640 (fromfpx): Define as weak alias.
30641 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30642 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30643 __getpayload and define as weak alias.
30644 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30645 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30646 __roundeven and define as weak alias.
30647 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30648 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30649 __setpayload.
30650 (setpayload): Define as weak alias.
30651 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30652 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30653 __setpayloadsig.
30654 (setpayloadsig): Define as weak alias.
30655 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30656 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30657 __totalorder and define as weak alias.
30658 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30659 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30660 to __totalordermag and define as weak alias.
30661 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30662 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30663 (ufromfp): Define as weak alias.
30664 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30665 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30666 __ufromfpx.
30667 (ufromfpx): Define as weak alias.
30668 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30669 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30670 Rename to __getpayload and define as weak alias.
30671 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30672 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30673 Rename to __roundeven and define as weak alias.
30674 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30675 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30676 Rename to __totalorder and define as weak alias.
30677 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30678 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30679 (totalordermag): Rename to __totalordermag and define as weak
30680 alias.
30681 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30682 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30683 macro.
30684 (__roundevenl): Likewise.
30685 (__totalorderl): Likewise.
30686 (__totalordermagl): Likewise
30687 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30688 __fromfpf128.
30689 (fromfpf128): Define as weak alias.
30690 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30691 __fromfpxf128.
30692 (fromfpxf128): Define as weak alias.
30693 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30694 __setpayloadf128.
30695 (setpayloadf128): Define as weak alias.
30696 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30697 __setpayloadsigf128.
30698 (setpayloadsigf128): Define as weak alias.
30699 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30700 __ufromfpf128.
30701 (ufromfpf128): Define as weak alias.
30702 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30703 __ufromfpxf128.
30704 (ufromfpxf128): Define as weak alias.
30705 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30706 (fromfpf): Define as weak alias.
30707 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30708 __fromfpxf.
30709 (fromfpxf): Define as weak alias.
30710 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30711 __getpayloadf and define as weak alias.
30712 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30713 __roundevenf and define as weak alias.
30714 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30715 __setpayloadf.
30716 (setpayloadf): Define as weak alias.
30717 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30718 __setpayloadsigf.
30719 (setpayloadsigf): Define as weak alias.
30720 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30721 __totalorderf and define as weak alias.
30722 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30723 Rename to __totalordermagf and define as weak alias.
30724 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30725 __ufromfpf.
30726 (ufromfpf): Define as weak alias.
30727 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30728 __ufromfpxf.
30729 (ufromfpxf): Define as weak alias.
30730 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30731 __fromfpl.
30732 (fromfpl): Define as weak alias.
30733 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30734 __fromfpxl.
30735 (fromfpxl): Define as weak alias.
30736 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30737 to __getpayloadl and define as weak alias.
30738 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30739 __roundevenl and define as weak alias.
30740 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30741 __setpayloadl.
30742 (setpayloadl): Define as weak alias.
30743 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30744 __setpayloadsigl.
30745 (setpayloadsigl): Define as weak alias.
30746 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30747 to __totalorderl and define as weak alias.
30748 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30749 Rename to __totalordermagl and define as weak alias.
30750 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30751 __ufromfpl.
30752 (ufromfpl): Define as weak alias.
30753 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30754 __ufromfpxl.
30755 (ufromfpxl): Define as weak alias.
30756 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30757 __fromfpl.
30758 (fromfpl): Define as weak alias.
30759 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30760 __fromfpxl.
30761 (fromfpxl): Define as weak alias.
30762 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30763 Rename to __getpayloadl and define as weak alias.
30764 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30765 to __roundevenl and define as weak alias. Call __roundeven
30766 instead of roundeven.
30767 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30768 __setpayloadl.
30769 (setpayloadl): Define as weak alias.
30770 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30771 __setpayloadsigl.
30772 (setpayloadsigl): Define as weak alias.
30773 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30774 Rename to __totalorderl and define as weak alias.
30775 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30776 Rename to __totalordermagl and define as weak alias.
30777 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30778 __ufromfpl.
30779 (ufromfpl): Define as weak alias.
30780 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30781 __ufromfpxl.
30782 (ufromfpxl): Define as weak alias.
30783 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30784 __fromfpl.
30785 (fromfpl): Define as weak alias.
30786 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30787 __fromfpxl.
30788 (fromfpxl): Define as weak alias.
30789 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30790 __getpayloadl and define as weak alias.
30791 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30792 __roundevenl and define as weak alias.
30793 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30794 __setpayloadl.
30795 (setpayloadl): Define as weak alias.
30796 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30797 __setpayloadsigl.
30798 (setpayloadsigl): Define as weak alias.
30799 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30800 __totalorderl and define as weak alias.
30801 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30802 Rename to __totalordermagl and define as weak alias.
30803 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30804 __ufromfpl.
30805 (ufromfpl): Define as weak alias.
30806 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30807 __ufromfpxl.
30808 (ufromfpxl): Define as weak alias.
30809
30810 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30811
30812 * benchtests/bench-string.h (realloc_bufs): New function.
30813 (test_init): Call it.
30814 * benchtests/bench-memset-large.c (do_test): Likewise.
30815 * benchtests/bench-memset.c (do_test): Likewise.
30816
30817 * benchtests/bench-memset-large.c: Print output in JSON
30818 format.
30819 * benchtests/bench-memset.c: Likewise.
30820
30821 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30822
30823 [BZ #21084]
30824 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30825 * iconvdata/Makefile: Add IBM858.
30826 * iconvdata/gconv-modules: Likewise.
30827 * iconvdata/tst-tables.sh: Likewise.
30828 * iconvdata/ibm858.c: New file.
30829 * localedata/charmaps/IBM858: Likewise.
30830
30831 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30832
30833 [BZ #22023]
30834 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30835 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30836
30837 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30838
30839 [BZ #22112]
30840 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30841 and add tel_int_fmt.
30842
30843 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30844
30845 * sysdeps/generic/libm-alias-float128.h: New file.
30846 * sysdeps/generic/math-type-macros-float128.h: Include
30847 <libm-alias-float128.h>.
30848 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30849
30850 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30851
30852 * sysdeps/generic/libm-alias-ldouble.h: New file.
30853 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30854 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30855 * sysdeps/generic/math-type-macros-ldouble.h: Include
30856 <libm-alias-ldouble.h>.
30857 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30858 libm_alias_ldouble.
30859
30860 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30861
30862 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30863 * math/w_exp_compat.c: ... here.
30864 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30865 * math/w_expf_compat.c: ... here.
30866 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30867 * math/w_expl_compat.c: ... here.
30868 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30869 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30870 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30871 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30872
30873 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30874
30875 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30876 redefine.
30877 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30878 macro.
30879 (ldexpl): Only define as compat symbol for libc, not libm.
30880 (scalbnl): Define as compat symbol for libc here.
30881 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30882 define for [IS_IN (libc)].
30883 (__ldexpl_2): Remove alias.
30884 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30885 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30886 name in long_double_symbol call.
30887 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30888 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30889 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30890 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30891 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30892 Remove macro.
30893 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30894 Define as compat symbol.
30895
30896 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30897
30898 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30899 * sysdeps/unix/sysv/linux/alpha/Makefile
30900 [$(subdir) = csu] (sysdep_routines): Remove rule.
30901
30902 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30903
30904 * sysdeps/generic/libm-alias-double.h: New file.
30905 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30906 * sysdeps/generic/math-type-macros-double.h: Include
30907 <libm-alias-double.h>.
30908 [declare_mgen_alias] (declare_mgen_alias): Define to use
30909 libm_alias_double.
30910 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30911 (M_LIBM_NEED_COMPAT): Remove macro.
30912 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30913 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30914 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30915 code.
30916 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30917 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30918 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30919 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30920 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30921 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30922 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30923 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30924 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30925 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30926 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30927 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30928 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30929 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30930 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30931 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30932 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30933 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30934 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30935 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30936 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30937 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30938 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30939 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30940 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30941 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30942 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30943 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30944 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30945 macro.
30946 (declare_mgen_alias): New macro.
30947 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30948 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30950 (M_LIBM_NEED_COMPAT): Remove macro.
30951 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30952 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30953 <first-versions.h>.
30954 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30955 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30956
30957 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30958
30959 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30960 (declare_mgen_alias_2): Remove.
30961 * sysdeps/generic/math-type-macros-double.h
30962 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30963 Likewise.
30964 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30965 alias.
30966 (ldexp): Define with declare_mgen_alias.
30967 (scalbn): Likewise.
30968
30969 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30970
30971 * grp/initgroups.c: Include config.h.
30972 (DEFAULT_CONFIG): New macro.
30973 (internal_getgrouplist): Use DEFAULT_CONFIG.
30974 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30975 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30976 (DEFAULT_DEFCONFIG): New macro.
30977 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30978 * nss/grp-lookup.c: Include config.h
30979 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30980 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30981 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30982 * manual/nss.texi: Update default values section.
30983
30984 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30985
30986 [BZ #21967]
30987 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30988 New.
30989 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30990 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30991 Handle MathVec_Prefer_No_AVX512.
30992 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30993 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30994 is set.
30995
30996 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30997
30998 * posix/sched_primax.c (__sched_get_priority_max): Add
30999 libc_hidden_def.
31000 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
31001 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31002 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31003 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
31004 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
31005 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
31006 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
31007 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
31008 Add aliases.
31009
31010 2017-09-11 Joseph Myers <joseph@codesourcery.com>
31011
31012 * sysdeps/generic/libm-alias-float.h: New file.
31013 * sysdeps/generic/math-type-macros-float.h: Include
31014 <libm-alias-float.h>.
31015 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31016
31017 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
31018
31019 [BZ #22093]
31020 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31021 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31022 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31023 (HWCAP_IMPORTANT): Likewise.
31024 (HWCAP_X86_64): New enum.
31025 (HWCAP_X86_AVX512_1): Updated.
31026 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31027 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31028 (modules-names): Add x86_64/tst-x86_64mod-1.
31029 (LDFLAGS-tst-x86_64mod-1.so): New.
31030 ($(objpfx)tst-x86_64-1): Likewise.
31031 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31032 (tst-x86_64-1-clean): Likewise.
31033 * sysdeps/x86_64/tst-x86_64-1.c: New file.
31034 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31035
31036 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31037
31038 * po/sv.po: Update translations.
31039 * po/fr.po: Likewise.
31040
31041 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
31042
31043 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31044 seconds.
31045 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31046 seconds.
31047 * elf/rtld-Rules: Fix $(error) use.
31048
31049 2017-09-09 Mike FABIAN <mfabian@redhat.com>
31050
31051 [BZ #14925]
31052 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31053 * locale/iso-639.def: Change “Bengali” to “Bangla”.
31054 * localedata/locales/bn_BD: “Bengali” was still used in some
31055 comments. Change it to “Bangla”.
31056
31057 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
31058
31059 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31060
31061 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31062
31063 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31064 thunderx2t99p1 to list of cpu names.
31065 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31066 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31067
31068 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31069
31070 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31071 Use strcmp instead of tunable_is_name.
31072
31073 2017-09-08 Joseph Myers <joseph@codesourcery.com>
31074
31075 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31076 (F_GET_RW_HINT): New macro.
31077 [__USE_GNU] (F_SET_RW_HINT): Likewise.
31078 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31079 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31080 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31081 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31082 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31083 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31084 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31085 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31086
31087 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31088 (F_ADD_SEALS): New macro.
31089 [__USE_GNU] (F_GET_SEALS): Likewise.
31090 [__USE_GNU] (F_SEAL_SEAL): Likewise.
31091 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31092 [__USE_GNU] (F_SEAL_GROW): Likewise.
31093 [__USE_GNU] (F_SEAL_WRITE): Likewise.
31094
31095 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31096
31097 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31098 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31099 * posix/glob_internal.h (__glob_pattern_type):
31100 * posix/glob.c (glob):
31101 * posix/glob_pattern_p.c (__glob_pattern_p):
31102 Use them.
31103
31104 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31105 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31106 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31107 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31108 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31110 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31111 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31112 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31113 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31114 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31115 * sysdeps/wordsize-64/glob.c: Likewise.
31116 * sysdeps/wordsize-64/glob64.c: Likewise.
31117 * sysdeps/wordsize-64/globfree.c: Likewise.
31118 * sysdeps/wordsize-64/globfree64.c: Likewise.
31119 * sysdeps/unix/sysv/linux/glob.c: New file.
31120 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31121 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31122 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31123 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31124 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31125 adds !GLOB_NO_OLD_VERSION as an extra condition.
31126 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31127 using relative path instead of absolute one.
31128 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31129 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31130 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31131 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31132 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31133 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31134
31135 [BZ #1062]
31136 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31137 (glob): Use the same scratch buffer for both getlogin_r and
31138 getpwnam_r. Don’t require preallocation of the login name. This
31139 simplifies storage allocation, and corrects the handling of
31140 long login names.
31141
31142 [BZ #1062]
31143 * posix/glob.c (glob): Port recent patches to platforms
31144 lacking getpwnam_r.
31145 (glob): Fix longstanding misuse of errno after getpwnam_r, which
31146 returns an error number rather than setting errno.
31147
31148 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31149 instead of GCC extension.
31150 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31151 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31152 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31153
31154 [BZ #866]
31155 [BZ #1062]
31156 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31157 * posix/bug-glob1.c: Remove file.
31158 * posix/tst-glob_symlinks.c: New file.
31159 * posix/glob.c (__lstat64): New macro.
31160 (is_dir): New function.
31161 (glob, glob_in_dir): Match symlinks even if they are dangling.
31162 (link_stat, link_exists_p): Remove. All uses removed.
31163
31164 [BZ #1062]
31165 [BZ #19971]
31166 * posix/glob.c (struct readdir_result): Remove skip_entry member.
31167 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31168 All uses removed.
31169
31170 [BZ #1062]
31171 CVE-2017-15671
31172 * posix/Makefile (routines): Add globfree, globfree64, and
31173 glob_pattern_p.
31174 * posix/flexmember.h: New file.
31175 * posix/glob_internal.h: Likewise.
31176 * posix/glob_pattern_p.c: Likewise.
31177 * posix/globfree.c: Likewise.
31178 * posix/globfree64.c: Likewise.
31179 * sysdeps/gnu/globfree64.c: Likewise.
31180 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31181 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31182 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31183 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31184 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31185 * sysdeps/wordsize-64/globfree.c: Likewise.
31186 * sysdeps/wordsize-64/globfree64.c: Likewise.
31187 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31188 [NDEBUG): Remove comments.
31189 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31190 (dirent_type): New type. Use uint_fast8_t not
31191 uint8_t, as C99 does not require uint8_t.
31192 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31193 (struct readdir_result): Use dirent_type. Do not define skip_entry
31194 unless it is needed; this saves a byte on platforms lacking d_ino.
31195 (readdir_result_type, readdir_result_skip_entry):
31196 New functions, replacing ...
31197 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31198 these functions, which were removed. This makes the callers
31199 easier to read. All callers changed.
31200 (D_INO_TO_RESULT): Now empty if there is no d_ino.
31201 (size_add_wrapv, glob_use_alloca): New static functions.
31202 (glob, glob_in_dir): Check for size_t overflow in several places,
31203 and fix some size_t checks that were not quite right.
31204 Remove old code using SHELL since Bash no longer
31205 uses this.
31206 (glob, prefix_array): Separate MS code better.
31207 (glob_in_dir): Remove old Amiga and VMS code.
31208 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31209 separate files.
31210 (glob_in_dir): Do not rely on undefined behavior in accessing
31211 struct members beyond their bounds. Use a flexible array member
31212 instead
31213 (link_stat): Rename from link_exists2_p and return -1/0 instead of
31214 0/1. Caller changed.
31215 (glob): Fix memory leaks.
31216 * posix/glob64 (globfree64): Move to separate file.
31217 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31218 (globfree64): Remove hidden alias.
31219 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31220 oldglob.
31221 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31222 separate file.
31223 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31224 define.
31225 Move compat code to separate file.
31226 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31227 separate file.
31228
31229 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
31230
31231 * resolv/tst-resolv-qtypes.c (domain): Changed to
31232 "const char domain[] =".
31233
31234 2017-09-07 Joseph Myers <joseph@codesourcery.com>
31235
31236 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31237 version to 3.1.6.
31238
31239 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31240 (TCP_MD5SIG_EXT): Likewise.
31241 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31242 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31243 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
31244
31245 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31246
31247 2017-09-07 Mike FABIAN <mfabian@redhat.com>
31248
31249 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31250
31251 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
31252
31253 [BZ #22100]
31254 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31255
31256 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
31257
31258 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31259 before assuming that the file is empty. Avoid testing buffer content
31260 when nread == 0.
31261
31262 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31263
31264 [BZ #18858]
31265 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31266 Remove define.
31267 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31268 Likewise.
31269 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31270 Likewise.
31271 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31272 Likewise.
31273 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31274 Likewise.
31275 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31276 Likewise.
31277 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31278 Likewise.
31279
31280 2017-09-06 Florian Weimer <fweimer@redhat.com>
31281
31282 * malloc/dynarray_emplace_enlarge.c
31283 (__libc_dynarray_emplace_enlarge): Add missing else.
31284
31285 2017-09-06 Florian Weimer <fweimer@redhat.com>
31286
31287 [BZ #22096]
31288 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31289 case of failure to obtain the global conf object.
31290
31291 2017-09-06 Florian Weimer <fweimer@redhat.com>
31292
31293 [BZ #22095]
31294 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31295 dynarray allocation failure.
31296
31297 2017-09-06 Florian Weimer <fweimer@redhat.com>
31298
31299 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31300 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31301 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31302 New functions.
31303 (response): Call them. Add 'p', '6' flag processing.
31304 (test_reverse): New function.
31305 (test_get2_any): Call it.
31306 (test_no_inet6): Add 'p' test.
31307 (test_inet6): Likewise.
31308
31309 2017-09-06 Florian Weimer <fweimer@redhat.com>
31310
31311 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31312 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31313 the QNAME.
31314 (test_gai): Adjust query names. Add additional tests.
31315 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31316 test_get2. Adjust query names. Add additional tests.
31317 (test_no_inet6): New function, extracted from threadfunc.
31318 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31319 Add additional tests.
31320
31321 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31322
31323 [BZ #22070]
31324 * localedata/unicode-gen/utf8_gen.py: Set the width for
31325 characters with Prepended_Concatenation_Mark property to 1
31326 * localedata/charmaps/UTF-8: Updated using the improved script.
31327
31328 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31329
31330 [BZ #21750]
31331 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31332 use the range notation for all ranges of neighbouring characters
31333 with the same width.
31334
31335 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31336
31337 * sysdeps/generic/math-type-macros-double.h: Include
31338 <math-svid-compat.h>.
31339 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31340 * sysdeps/generic/math-type-macros-float.h: Include
31341 <math-svid-compat.h>.
31342 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31343 * sysdeps/generic/math-type-macros-ldouble.h: Include
31344 <math-svid-compat.h>.
31345 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31346 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31347 condition.
31348 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31349 * math/w_acosf_compat.c: Likewise.
31350 * math/w_acosh_compat.c: Likewise.
31351 * math/w_acoshf_compat.c: Likewise.
31352 * math/w_acoshl_compat.c: Likewise.
31353 * math/w_acosl_compat.c: Likewise.
31354 * math/w_asin_compat.c: Likewise.
31355 * math/w_asinf_compat.c: Likewise.
31356 * math/w_asinl_compat.c: Likewise.
31357 * math/w_atan2_compat.c: Likewise.
31358 * math/w_atan2f_compat.c: Likewise.
31359 * math/w_atan2l_compat.c: Likewise.
31360 * math/w_atanh_compat.c: Likewise.
31361 * math/w_atanhf_compat.c: Likewise.
31362 * math/w_atanhl_compat.c: Likewise.
31363 * math/w_cosh_compat.c: Likewise.
31364 * math/w_coshf_compat.c: Likewise.
31365 * math/w_coshl_compat.c: Likewise.
31366 * math/w_exp10_compat.c: Likewise.
31367 * math/w_exp10f_compat.c: Likewise.
31368 * math/w_exp10l_compat.c: Likewise.
31369 * math/w_exp2_compat.c: Likewise.
31370 * math/w_exp2f_compat.c: Likewise.
31371 * math/w_exp2l_compat.c: Likewise.
31372 * math/w_fmod_compat.c: Likewise.
31373 * math/w_fmodf_compat.c: Likewise.
31374 * math/w_fmodl_compat.c: Likewise.
31375 * math/w_hypot_compat.c: Likewise.
31376 * math/w_hypotf_compat.c: Likewise.
31377 * math/w_hypotl_compat.c: Likewise.
31378 * math/w_j0_compat.c: Likewise.
31379 * math/w_j0f_compat.c: Likewise.
31380 * math/w_j0l_compat.c: Likewise.
31381 * math/w_j1_compat.c: Likewise.
31382 * math/w_j1f_compat.c: Likewise.
31383 * math/w_j1l_compat.c: Likewise.
31384 * math/w_jn_compat.c: Likewise.
31385 * math/w_jnf_compat.c: Likewise.
31386 * math/w_jnl_compat.c: Likewise.
31387 * math/w_lgamma_r_compat.c: Likewise.
31388 * math/w_lgammaf_r_compat.c: Likewise.
31389 * math/w_lgammal_r_compat.c: Likewise.
31390 * math/w_log10_compat.c: Likewise.
31391 * math/w_log10f_compat.c: Likewise.
31392 * math/w_log10l_compat.c: Likewise.
31393 * math/w_log2_compat.c: Likewise.
31394 * math/w_log2f_compat.c: Likewise.
31395 * math/w_log2l_compat.c: Likewise.
31396 * math/w_log_compat.c: Likewise.
31397 * math/w_logf_compat.c: Likewise.
31398 * math/w_logl_compat.c: Likewise.
31399 * math/w_pow_compat.c: Likewise.
31400 * math/w_powf_compat.c: Likewise.
31401 * math/w_powl_compat.c: Likewise.
31402 * math/w_remainder_compat.c: Likewise.
31403 * math/w_remainderf_compat.c: Likewise.
31404 * math/w_remainderl_compat.c: Likewise.
31405 * math/w_sinh_compat.c: Likewise.
31406 * math/w_sinhf_compat.c: Likewise.
31407 * math/w_sinhl_compat.c: Likewise.
31408 * math/w_sqrt_compat.c: Likewise.
31409 * math/w_sqrtf_compat.c: Likewise.
31410 * math/w_sqrtl_compat.c: Likewise.
31411 * math/w_tgamma_compat.c: Likewise.
31412 * math/w_tgammaf_compat.c: Likewise.
31413 * math/w_tgammal_compat.c: Likewise.
31414 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31415 [LIBM_SVID_COMPAT].
31416 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31417 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31418 [LIBM_SVID_COMPAT].
31419 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31420 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31421 [LIBM_SVID_COMPAT].
31422 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31423 * sysdeps/i386/fpu/w_sqrt.c: New file.
31424 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31425 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31426 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31427 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31428 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31429 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31430 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31431 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31432 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31433 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31434 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31435 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31436 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31437 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31438 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31439 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31440 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31441 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31442 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31443 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31444 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31445 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31446 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31447 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31448 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31449 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31450 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31451 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31452 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31453 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31454 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31455 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31456 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31457 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31458 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31459 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31460 * sysdeps/ia64/fpu/w_log.c: Likewise.
31461 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31462 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31463 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31464 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31465 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31466 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31467 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31468 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31469 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31470 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31471 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31472 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31473 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31474 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31475 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31476 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31477 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31478 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31479 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31480 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31481 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31482 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31483 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31484 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31485 [LIBM_SVID_COMPAT].
31486 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31487 * sysdeps/ieee754/k_standard.c: Likewise.
31488 * sysdeps/ieee754/k_standardf.c: Likewise.
31489 * sysdeps/ieee754/k_standardl.c: Likewise.
31490 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31491 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31492 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31493 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31494 long_double_symbol call on [LIBM_SVID_COMPAT].
31495 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31496 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31497 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31498 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31499 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31500 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31501 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31502 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31503 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31504 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31505 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31506 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31507 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31508 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31509 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31510 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31511 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31512 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31513 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31514 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31515 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31516 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31517
31518 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31519
31520 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31521 * malloc/tst-mallocstate.c: Convert from test-skeleton
31522 to test-driver. Ifdef code using TEST_COMPAT macro.
31523 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31524 * math/test-matherr.c: Likewise.
31525
31526 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31527
31528 [BZ #22086]
31529 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31530 comparing word with byte-swapped constant.
31531
31532 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31533
31534 [BZ #20498]
31535 * locale/iso-639.def: add Miskito.
31536 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31537 * localedata/locales/miq_NI: New file.
31538
31539 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31540
31541 [BZ #18822]
31542 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31543 (__mkdir): Likewise.
31544 * io/chmod.c (__chmod): Add libc_hidden_def.
31545 * io/mkdir.c (__mkdir): Likewise.
31546 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31547 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31548 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31549 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31550
31551 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31552
31553 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31554 version to 4.13.
31555
31556 [BZ #22082]
31557 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31558 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31559
31560 2017-09-04 Florian Weimer <fweimer@redhat.com>
31561
31562 * math/math.h: Issue warning if log is defined.
31563
31564 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31565
31566 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31567 kernel version to 4.13.
31568
31569 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31570
31571 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31572 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31573 parameter.
31574 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31575 just <bits/types.h>.
31576 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31577 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31578 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31579 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31580 * misc/preadv2.c: Include <errno.h>.
31581 * misc/preadv64v2.c: Include <errno.h>.
31582 * misc/pwritev2.c: Include <errno.h>.
31583 * misc/pwritev64v2.c: Include <errno.h>.
31584 * sysdeps/posix/preadv2.c: Include <errno.h>.
31585 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31586 Fix <unistd.h> inclusion.
31587 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31588 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31589 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31590 __strtoul_internal): New functions.
31591 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31592 * sysdeps/posix/system.c: Include <sigsetops.h>.
31593 * sysdeps/mach/hurd/i386/Makefile
31594 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31595 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31596 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31597 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31598 __feraiseexcept_renamed to feraiseexcept instead of
31599 __GI_feraiseexcept.
31600 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31601 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31602 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31603 RWF_NOWAIT): Define to 0 if undefined already.
31604 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31605 boils down to 0.
31606 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31607 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31608
31609 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31610
31611 * manual/math.texi (pow10): Do not document.
31612 (pow10f): Likewise.
31613 (pow10l): Likewise.
31614 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31615 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31616 * math/libm-test-exp10.inc (pow10_test): Remove.
31617 (do_test): Do not call pow10.
31618 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31619 [NO_LONG_DOUBLE] (pow10l): Likewise.
31620 * math/w_exp10f_compat.c (pow10f): Likewise.
31621 * math/w_exp10l_compat.c (pow10l): Likewise.
31622 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31623 (pow10): Make into compat symbol.
31624 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31625 (pow10f): Make into compat symbol.
31626 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31627 (pow10l): Make into compat symbol.
31628 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31629 pow10.
31630 (CFLAGS-nldbl-pow10.c): Remove variable..
31631 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31632 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31633 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31634 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31635 Undefine and redefine.
31636 (pow10l): Make into compat symbol.
31637 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31638 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31639 * sysdeps/arm/libm-test-ulps: Likewise.
31640 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31641 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31642 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31643 * sysdeps/microblaze/libm-test-ulps: Likewise.
31644 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31645 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31646 * sysdeps/nios2/libm-test-ulps: Likewise.
31647 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31648 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31649 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31650 * sysdeps/sh/libm-test-ulps: Likewise.
31651 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31652 * sysdeps/tile/libm-test-ulps: Likewise.
31653 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31654
31655 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31656
31657 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31658
31659 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31660
31661 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31662 "../ChangeLog.old/ChangeLog.8".
31663 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31664 "../ChangeLog.old/ChangeLog.14".
31665
31666 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31667
31668 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31669 Threads Library.
31670
31671 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31672
31673 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31674
31675 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31676
31677 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31678 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31679
31680 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31681
31682 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31683 32 atexit handlers.
31684
31685 2017-09-01 Zack Weinberg <zackw@panix.com>
31686
31687 * math/math.h (HUGE_VAL): Improve commentary.
31688
31689 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31690 Andreas Schwab <schwab@suse.de>
31691
31692 [BZ #21530]
31693 * include/stdio.h (__gen_tempfd): New function.
31694 * stdio-common/Makefile (routines): Add gentempfd.
31695 * stdio-common/gentempfd.c: New file.
31696 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31697 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31698 unnamed file first.
31699
31700 2017-09-01 Florian Weimer <fweimer@redhat.com>
31701
31702 [BZ #21915]
31703 [BZ #21922]
31704 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31705 result to determine success or failure, not the errno value.
31706 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31707 (tst-nss-files-hosts-erange): Link with -ldl.
31708 * nss/tst-nss-files-hosts-erange.c: New file.
31709 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31710 (do_test): Add NO_DATA tests.
31711 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31712 (do_test): Call it.
31713
31714 2017-09-01 Florian Weimer <fweimer@redhat.com>
31715
31716 [BZ #21922]
31717 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31718 coming from gethostbyname2_r.
31719
31720 2017-09-01 Florian Weimer <fweimer@redhat.com>
31721
31722 * support/namespace.h (struct support_chroot_configuration): Add
31723 hosts, host_conf.
31724 (struct support_chroot): Add path_hosts, path_host_conf.
31725 * support/support_chroot.c (write_file): New function.
31726 (support_chroot_create): Call it to process /etc/resolv.conf,
31727 /etc/hosts, /etc/host.conf.
31728 (support_chroot_free): Update.
31729
31730 2017-09-01 Florian Weimer <fweimer@redhat.com>
31731
31732 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31733 status indicates it is set.
31734
31735 2017-09-01 Florian Weimer <fweimer@redhat.com>
31736
31737 [BZ #20532]
31738 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31739 function lookup failures more reliable.
31740
31741 2017-09-01 Florian Weimer <fweimer@redhat.com>
31742
31743 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31744 (getcanonname): Likewise.
31745 (gaih_inet): Likewise.
31746
31747 2017-09-01 Florian Weimer <fweimer@redhat.com>
31748
31749 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31750 (getcanonname): Likewise.
31751 (gaih_inet): Likewise.
31752
31753 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31754 Richard Henderson <rth@twiddle.net>
31755
31756 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31757 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31758 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31759 (IREG_SIZE, OREG_SIZE): New macros.
31760 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31761 (IREG_SIZE, OREG_SIZE): New macros.
31762 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31763 (IREG_SIZE): New macro.
31764 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31765 (IREG_SIZE): New macro.
31766 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31767 New includes.
31768 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31769 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31770 (__CONCATX): Handle exceptions correctly on large values that may
31771 set FE_INVALID.
31772 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31773 Initialize if not already set.
31774 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31775
31776 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31777
31778 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31779 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31780 Likewise.
31781 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31782 Likewise.
31783 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31784 Likewise.
31785 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31786 Likewise.
31787 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31788 Likewise.
31789 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31790 Likewise.
31791 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31792 Likewise.
31793 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31794 (NO_CANCELLATION): Likewise.
31795 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31796 Likewise.
31797 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31798 Likewise.
31799 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31800 Likewise.
31801 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31802 (NO_CANCELLATION): Likewise.
31803 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31804 (NO_CANCELLATION): Likewise.
31805 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31806 Likewise
31807 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31808 Likewise.
31809 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31810 Likewise.
31811 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31812 Likewise.
31813 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31814 hidden prototype.
31815 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31816 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31817
31818 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31819
31820 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31821 in resolver call.
31822
31823 2017-08-31 Florian Weimer <fweimer@redhat.com>
31824
31825 * include/libc-symbols.h (internal_function): Remove.
31826
31827 2017-08-31 Florian Weimer <fweimer@redhat.com>
31828
31829 * stdlib/fmtmsg.c (internal_addseverity): Remove
31830 internal_function.
31831
31832 2017-08-31 Florian Weimer <fweimer@redhat.com>
31833
31834 * stdio-common/printf_fp.c (group_number): Remove
31835 internal_function.
31836 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31837
31838 2017-08-31 Florian Weimer <fweimer@redhat.com>
31839
31840 * posix/fnmatch.c (internal_function): Remove definition.
31841 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31842 * posix/regcomp.c (peek_token, init_word_char)
31843 (duplicate_node_closure, fetch_token, peek_token)
31844 (peek_token_bracket, build_range_exp, build_collating_symbol):
31845 Likewise.
31846 * posix/regex_internal.c (re_string_construct_common)
31847 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31848 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31849 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31850 (re_string_translate_buffer, re_string_reconstruct)
31851 (re_string_peek_byte_case, re_string_fetch_byte_case)
31852 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31853 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31854 (re_node_set_add_intersect, re_node_set_init_union)
31855 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31856 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31857 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31858 (re_acquire_state_context): Likewise.
31859 * posix/regex_internal.h (internal_function): Remove definition.
31860 (re_string_realloc_buffers, build_wcs_buffer)
31861 (build_wcs_upper_buffer, build_upper_buffer)
31862 (re_string_translate_buffer, re_string_context_at)
31863 (re_string_char_size_at, re_string_wchar_at)
31864 (re_string_elem_size_at): Likewise.
31865 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31866 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31867 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31868 (re_search_internal, re_search_2_stub, re_search_stub)
31869 (re_copy_regs, prune_impossible_nodes, check_matching)
31870 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31871 (free_fail_stack_return, sift_states_iter_mb)
31872 (sift_states_backward, build_sifted_states)
31873 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31874 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31875 (check_subexp_limits, sift_states_bkref, merge_state_array)
31876 (find_recover_state, transit_state, merge_state_with_log)
31877 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31878 (transit_state_mb, transit_state_bkref, get_subexp)
31879 (get_subexp_sub, find_subexp_node, check_arrival)
31880 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31881 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31882 (check_node_accept_bytes, find_collation_sequence_value)
31883 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31884 (acquire_init_state_context, check_halt_node_context)
31885 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31886 (sub_epsilon_src_nodes): Likewise.
31887 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31888 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31889 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31890 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31891 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31892 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31893 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31894 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31895 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31896 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31897 (PREADV): Likewise.
31898 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31899 (PREADV): Likewise.
31900 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31901 (PWRITEV): Likewise.
31902 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31903 (PWRITEV): Likewise.
31904 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31905 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31906
31907 2017-08-31 Florian Weimer <fweimer@redhat.com>
31908
31909 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31910 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31911 Remove internal_function.
31912 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31913 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31914 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31915 (__deallocate_stack, __libc_pthread_init)
31916 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31917 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31918 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31919 Likewise.
31920 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31921 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31922 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31923 Likewise.
31924 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31925 (__pthread_mutex_unlock_usercnt): Likewise.
31926
31927 2017-08-31 Florian Weimer <fweimer@redhat.com>
31928
31929 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31930 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31931 (fts_safe_changedir): Remove internal_function.
31932 * io/ftw.c (internal_function): Remove definition.
31933 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31934
31935 2017-08-31 Florian Weimer <fweimer@redhat.com>
31936
31937 * inet/deadline.c (__deadline_current_time)
31938 (__deadline_from_timeval, __deadline_to_ms): Remove
31939 internal_function.
31940 * inet/getnameinfo.c (nrl_domainname): Likewise.
31941 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31942 * inet/inet6_option.c (add_pad): Likewise.
31943 * inet/net-internal.h (__deadline_current_time)
31944 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31945 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31946 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31947 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31948
31949 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31950
31951 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31952 include <bits/nan.h>.
31953 * math/Makefile (headers): Remove bits/nan.h.
31954 * bits/nan.h: Remove.
31955 * sysdeps/ieee754/bits/nan.h: Likewise.
31956 * sysdeps/mips/bits/nan.h: Likewise.
31957
31958 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31959 not include <bits/inf.h>.
31960 * math/Makefile (headers): Remove bits/inf.h.
31961 * bits/inf.h: Remove.
31962 * sysdeps/ieee754/bits/inf.h: Likewise.
31963
31964 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31965 bits/huge_vall.h or bits/huge_val_flt128.h.
31966 (HUGE_VAL): Define directly here.
31967 [__USE_ISOC99] (HUGE_VALF): Likewise.
31968 [__USE_ISOC99] (HUGE_VALL): Likewise.
31969 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31970 (HUGE_VAL_F128): Likewise.
31971 * math/Makefile (headers): Remove bits/huge_val.h,
31972 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31973 * bits/huge_val.h: Remove.
31974 * bits/huge_val_flt128.h: Likewise.
31975 * bits/huge_valf.h: Likewise.
31976 * bits/huge_vall.h: Likewise.
31977 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31978 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31979 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31980 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31981 * sysdeps/sh/bits/huge_val.h: Likewise.
31982 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31983 * sysdeps/x86/bits/huge_vall.h: Likewise.
31984
31985 2017-08-31 Florian Weimer <fweimer@redhat.com>
31986
31987 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31988 internal_function.
31989 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31990 Likewise.
31991 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31992 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31993 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31994 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31995 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31996 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31997 * elf/dl-libc.c (dlerror_run): Likewise.
31998 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31999 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
32000 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
32001 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
32002 Likewise.
32003 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
32004 (_dl_higher_prime_number, _dl_strtoul): Likewise.
32005 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
32006 * elf/dl-profile.c (_dl_start_profile): Likewise.
32007 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
32008 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
32009 Likewise.
32010 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32011 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32012 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32013 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32014 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32015 (_dl_allocate_tls_storage): Likewise.
32016 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32017 (_dl_check_all_versions): Likewise.
32018 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32019 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32020 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32021 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32022 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32023 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32024 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32025 internal_function from __dl_start.
32026 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32027 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32028 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32029 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32030 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32031 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32032 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32033 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32034 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32035 (_dl_next_ld_env_entry, _dl_important_hwcaps)
32036 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32037 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32038 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32039 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32040 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32041 Likewise.
32042 (struct rtld_global_ro): Remove internal_function from the
32043 _dl_lookup_symbol_x member.
32044 (_dl_symbol_value): Remove. No longer defined anywhere.
32045 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32046 internal_function.
32047 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32048 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32049 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32050 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32051 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32052 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32053 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32054 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32055 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32056 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32057 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32058 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32059
32060 2017-08-31 Florian Weimer <fweimer@redhat.com>
32061
32062 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32063 Remove internal_function.
32064 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32065 Likewise.
32066 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32067 Likewise.
32068
32069 2017-08-31 Florian Weimer <fweimer@redhat.com>
32070
32071 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32072 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32073 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32074
32075 2017-08-31 Florian Weimer <fweimer@redhat.com>
32076
32077 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32078 (__gai_enqueue_request): Remove internal_function.
32079 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32080 (__gai_remove_request, __gai_notify, __gai_notify_only)
32081 (__gai_sigqueue): Likewise.
32082 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32083 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32084 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32085 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32086 Likewise.
32087
32088 2017-08-31 Florian Weimer <fweimer@redhat.com>
32089
32090 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32091 * include/dirent.h (__opendirat, __getdents, __getdents64)
32092 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32093 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32094 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32095 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32096 Likewise.
32097 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32098
32099 2017-08-31 Florian Weimer <fweimer@redhat.com>
32100
32101 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32102 internal_function.
32103 (GETCWD_RETURN_TYPE): Likewise.
32104
32105 2017-08-31 Florian Weimer <fweimer@redhat.com>
32106
32107 * include/time.h (__tz_compute, __strptime_internal): Remove
32108 internal_function.
32109 * time/strptime_l.c (__strptime_internal): Likewise.
32110 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32111
32112 2017-08-31 Florian Weimer <fweimer@redhat.com>
32113
32114 * iconv/gconv.c (__gconv): Remove internal_function.
32115 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32116 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32117 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32118 (__gconv_release_cache): Likewise.
32119 * iconv/gconv_close.c (__gconv_close): Likewise.
32120 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32121 (read_conf_file, __gconv_get_path): Likewise.
32122 * iconv/gconv_db.c (derivation_lookup, add_derivation)
32123 (__gconv_release_step, gen_steps, increment_counter)
32124 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32125 (__gconv_close_transform, free_modules_db): Likewise.
32126 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32127 Likewise.
32128 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32129 (__gconv_find_transform, __gconv_lookup_cache)
32130 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32131 (__gconv_close_transform, __gconv_release_cache)
32132 (__gconv_loaded_object, __gconv_release_shlib)
32133 (__gconv_compare_alias): Likewise.
32134 * iconv/gconv_open.c (__gconv_open): Likewise.
32135 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32136 * iconv/iconvconfig.c (add_module): Likewise.
32137 * intl/dcigettext.c (plural_lookup, guess_category_value)
32138 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32139 * intl/eval-plural.h (plural_eval): Likewise.
32140 * intl/finddomain.c (_nl_find_domain): Likewise.
32141 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32142 (_nl_load_domain, _nl_find_msg): Likewise.
32143 (internal_function): Remove definition.
32144 * intl/loadinfo.h (internal_function): Likewise.
32145 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32146 internal_function.
32147 * intl/localealias.c (internal_function): Remove definition.
32148 (read_alias_file): Remove internal_function.
32149 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32150 * intl/plural-exp.h (internal_function): Remove definition.
32151 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32152 internal_function.
32153 * intl/plural.c: Regenerate.
32154 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32155 * locale/coll-lookup.c (__collidx_table_lookup)
32156 (__collseq_table_lookup): Likewise.
32157 * locale/coll-lookup.h (__collidx_table_lookup)
32158 (__collseq_table_lookup): Likewise.
32159 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32160 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32161 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32162 (_nl_unload_locale): Likewise.
32163 * locale/localeinfo.h (struct __locale_data): Remove
32164 internal_function from cleanup member.
32165 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32166 (_nl_remove_locale, _nl_load_locale_from_archive)
32167 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32168 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32169 (_nl_cleanup_time): Remove internal_function.
32170 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32171 (_nl_parse_alt_digit): Likewise.
32172 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32173 (_nl_select_era_entry): Likewise.
32174 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32175 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32176 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32177 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32178 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32179
32180 2017-08-31 Florian Weimer <fweimer@redhat.com>
32181
32182 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32183 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32184 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32185 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32186 Likewise.
32187 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32188 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32189 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32190 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32191 Likewise.
32192 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32193
32194 2017-08-31 Florian Weimer <fweimer@redhat.com>
32195
32196 * misc/getttyent.c (skip, value): Remove internal_function.
32197 * misc/syslog.c (openlog_internal): Likewise.
32198 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32199
32200 2017-08-31 Florian Weimer <fweimer@redhat.com>
32201
32202 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32203 (__nss_rewrite_field): Remove internal_function.
32204 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32205 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32206 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32207 * nss/nsswitch.c (nss_parse_file, nss_getline)
32208 (nss_parse_service_list, nss_new_service): Likewise.
32209 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32210 * nss/valid_field.c (__nss_valid_field): Likewise.
32211 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32212
32213 2017-08-31 Florian Weimer <fweimer@redhat.com>
32214
32215 * malloc/arena.c (__malloc_fork_lock_parent)
32216 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32217 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32218 internal_function from defintions.
32219 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32220 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32221 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32222 internal_function from declarations.
32223 * malloc/malloc.c (internal_function): Do not define.
32224 (mem2mem_check): Remove internal_function from declaration.
32225 (munmap_chunk, mremap_chunk): Remove internal_function.
32226 * malloc/mtrace.c (tr_where): Likewise.
32227
32228 2017-08-31 Florian Weimer <fweimer@redhat.com>
32229
32230 * include/rpc/pmap_clnt.h (__get_socket): Remove
32231 internal_function.
32232 * sunrpc/auth_des.c (synchronize): Likewise.
32233 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32234 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32235 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32236 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32237 (key_call): Likewise.
32238 * sunrpc/pm_getport.c (__get_socket): Likewise.
32239 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32240 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32241 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32242 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32243 (invalidate): Likewise.
32244 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32245 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32246 (set_input_fragment, get_input_bytes): Likewise.
32247
32248 2017-08-31 Florian Weimer <fweimer@redhat.com>
32249
32250 * malloc/malloc.c (_int_free): Remove locked variable and related
32251 asserts.
32252
32253 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
32254
32255 [BZ #22051]
32256 * Makerules (build-module-helper-objlist): Filter out
32257 $(elf-objpfx)sofini.os.
32258 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32259 needed.
32260
32261 2017-08-31 Florian Weimer <fweimer@redhat.com>
32262
32263 * libio/fcloseall.c: Assume weak_alias is defined.
32264 * libio/feof.c: Likewise.
32265 * libio/fileno.c: Likewise.
32266 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32267 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32268 definitions.
32269 (_IO_file_open): Call __open directly.
32270 (_IO_new_file_sync): Assume ESPIPE is defined.
32271 (_IO_file_seekoff_maybe_mmap): Call __read directly.
32272 (_IO_new_file_write): Call __write directly.
32273 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32274 * libio/ftello64.c (__ftello64): Assume EIO is defined.
32275 * libio/genops.c: Assume _LIBC is defined.
32276 (save_for_backup): Remove internal_function.
32277 * libio/getc.c: Assume weak_alias is defined.
32278 * libio/getwc.c: Likewise.
32279 * libio/iofclose.c: Assume _LIBC is defined.
32280 * libio/iofdopen.c: Likewise.
32281 (_IO_fcntl): Remove macro definition.
32282 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32283 Call __fcntl directly.
32284 * libio/iofflush.c: Assume weak_alias is defined.
32285 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32286 defined.
32287 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32288 * libio/iofgets.c: Likewise.
32289 * libio/iofopen.c: Assume _LIBC is defined.
32290 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32291 * libio/iofputs.c: Assume weak_alias is defined.
32292 * libio/iofread.c: Likewise.
32293 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32294 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32295 * libio/ioftell.c: Assume weak_alias is defined.
32296 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32297 * libio/iofwide.c: Assume _LIBC is defined.
32298 (_IO_fwide): Drop SHARED conditional because it is implied by
32299 SHLIB_COMPAT.
32300 * libio/iofwrite.c: Assume weak_alias is defined.
32301 * libio/iogetdelim.c: Likewise.
32302 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32303 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32304 (_IO_getwline): Call __wmemcpy directly.
32305 * libio/iopopen.c: Assume _LIBC is defined.
32306 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32307 (_IO_close): Remove macro definitions.
32308 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32309 _exit directly.
32310 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32311 directly.
32312 * libio/ioputs.c: Assume weak_alias is defined.
32313 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32314 * libio/iosetbuffer.c: Assume weak_alias is defined.
32315 * libio/iosetvbuf.c: Likewise.
32316 * libio/ioungetc.c: Likewise.
32317 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32318 libc_hidden_def, libc_hidden_weak, NULL are defined.
32319 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32320 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32321 defined.
32322 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32323 definitions.
32324 (_IO_old_file_init_internal): Drop SHARED conditional because it
32325 is implied by SHLIB_COMPAT.
32326 (_IO_old_file_fopen): Call __open directly.
32327 (_IO_old_file_sync): Assume ESPIPE is defined.
32328 (_IO_old_file_write): Call __write directly.
32329 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32330 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32331 Call __fcntl directly.
32332 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32333 (_IO_old_fgetpos): Assume EIO is defined.
32334 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32335 (_IO_old_fgetpos64): Assume EIO is defined.
32336 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32337 (_IO_old_fsetpos): Assume EIO is defined.
32338 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32339 (_IO_old_fsetpos64): Assume EIO is defined.
32340 * libio/oldiopopen.c: Assume _LIBC is defined.
32341 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32342 (_IO_close): Remove macro definitions.
32343 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32344 directly.
32345 (_IO_old_proc_close): Call __close, __waitpid directly.
32346 * libio/put.c: Assume weak_alias is defined.
32347 * libio/stdfiles.c: Assume _LIBC is defined.
32348 * libio/stdio.c: Likewise.
32349 * libio/wfileops.c: Likewise.
32350 (_IO_wfile_sync): Assume ESPIPE is defined.
32351 * libio/wgenops.c: Assume _LIBC is defined.
32352 (save_for_wbackup): Remove internal_function.
32353
32354 2017-08-31 Florian Weimer <fweimer@redhat.com>
32355
32356 * malloc/malloc.c (top_check): Change return type to void. Remove
32357 internal_function.
32358 * malloc/hooks.c (top_check): Likewise.
32359 (malloc_check, realloc_check, memalign_check): Adjust.
32360
32361 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32362
32363 [BZ #21457]
32364 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32365 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32366 sigcontext and namespace requirements.
32367 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32368 * sysdeps/m68k/sys/ucontext.h: Likewise.
32369 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32370 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32371 <bits/sigcontext.h>.
32372 (__ctx): Define earlier.
32373 (mcontext_t): Define structure contents rather than using struct
32374 sigcontext.
32375 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32376 __glibc_reserved1 instead of __reserved.
32377 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32378 <bits/sigcontext.h>.
32379 (__ctx): Define earlier.
32380 (mcontext_t): Define structure contents rather than using struct
32381 sigcontext.
32382 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32383 mcontext_t instead of struct sigcontext.
32384 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32385 <bits/sigcontext.h>.
32386 (__ctx): Define earlier.
32387 (mcontext_t): Define structure contents rather than using struct
32388 sigcontext.
32389 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32390 <bits/sigcontext.h>.
32391 (__ctx): Define earlier.
32392 (mcontext_t): Define structure contents rather than using struct
32393 sigcontext.
32394 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32395 mcontext_t instead of struct sigcontext.
32396 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32397 mcontext_t instead of struct sigcontext.
32398 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32399 <bits/sigcontext.h>.
32400 (__ctx): New macro.
32401 (struct __ia64_fpreg_mcontext): New type.
32402 (mcontext_t): Define structure contents rather than using struct
32403 sigcontext.
32404 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32405 (uc_sigmask): Define using __ctx.
32406 (uc_stack): Likewise.
32407 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32408 <bits/sigcontext.h>.
32409 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32410 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32411 <bits/sigcontext.h>.
32412 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32413 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32414 <bits/sigcontext.h>.
32415 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32416 <bits/sigcontext.h>.
32417 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32418 <bits/sigcontext.h>.
32419 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32420 <bits/sigcontext.h>.
32421 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32422 <bits/sigcontext.h>.
32423 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32424 <bits/sigcontext.h>.
32425 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32426 <bits/sigcontext.h>.
32427 (__ctx): Define earlier.
32428 (mcontext_t): Define structure contents rather than using struct
32429 sigcontext.
32430 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32431 <bits/sigcontext.h>. Include <bits/types.h>.
32432 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32433 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32434 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32435 (test-xfail-UNIX98/signal.h/conform): Likewise.
32436 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32437 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32438 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32439 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32440 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32441 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32442 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32443 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32444 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32445
32446 2017-08-30 Florian Weimer <fweimer@redhat.com>
32447
32448 * malloc/dynarray_emplace_enlarge.c
32449 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32450 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32451 * malloc/tst-dynarray.c (test_long_overflow): New function.
32452 (do_test): Call it.
32453
32454 2017-08-30 Florian Weimer <fweimer@redhat.com>
32455
32456 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32457 (set_arena_corrupt): Remove definitions.
32458 (mtrim): Do not check for corrupt arena.
32459 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32460 Likewise.
32461
32462 2017-08-30 Florian Weimer <fweimer@redhat.com>
32463
32464 [BZ #21754]
32465 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32466 check_action.
32467 (ptmalloc_init): Do not set or use check_action.
32468 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32469 call to malloc_printerr. Remove return statement.
32470 (free_check): Likewise. Remove arena unlock.
32471 (top_check): Update comment. Adjust call to malloc_printerr.
32472 Remove heap repair code.
32473 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32474 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32475 (sysmalloc): Adjust call to malloc_printerr.
32476 (munmap_chunk, __libc_realloc): Likewise. Remove return
32477 statement.
32478 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32479 Remove errout label and corresponding gotos.
32480 (_int_free): Likewise. Remove arena unlock.
32481 (do_set_mallopt_check): Do not set check_action.
32482 (malloc_printerr): Adjust parameter list. Do not mark arena as
32483 corrupt.
32484 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32485 comment.
32486 * manual/probes.texi (Memory Allocation Probes): Remove
32487 memory_mallopt_check_action.
32488
32489 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32490
32491 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32492 Use pointer to uint64_t instead of long int for sp.
32493
32494 2017-08-30 Florian Weimer <fweimer@redhat.com>
32495
32496 [BZ #21754]
32497 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32498 without printing a backtrace. Do not leak any information in the
32499 error message.
32500 * manual/memory.texi (Heap Consistency Checking): Update.
32501 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32502
32503 2017-08-30 Florian Weimer <fweimer@redhat.com>
32504
32505 Do not scale NPTL tests with available number of CPUs.
32506 * nptl/tst-cond16.c (count): Set to constant value of 8.
32507 * nptl/tst-cond18.c (count): Likewise.
32508
32509 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32510
32511 [BZ #22035]
32512 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32513 Define to take a second argument that is a macro that
32514 concatentates a suffix, not the suffix itself.
32515 (__CONCAT_d): New macro.
32516 (__CONCAT_f): Likewise.
32517 (__CONCAT_l): Likewise.
32518
32519 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32520
32521 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32522 by child.
32523
32524 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32525 Aurelien Jarno <aurelien@aurel32.net>
32526 Maciej W. Rozycki <macro@imgtec.com>
32527
32528 [BZ #21956]
32529 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32530 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32531 `mips16-syscall6' and `mips16-syscall7'.
32532 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32533 (CFLAGS-mips16-syscall7.c): Remove.
32534 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32535 Remove `__mips16_syscall5', `__mips16_syscall6' and
32536 `__mips16_syscall7'.
32537 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32538 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32539 `__mips_syscall_return'.
32540 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32541 (__mips16_syscall1): Likewise.
32542 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32543 (__mips16_syscall2): Likewise.
32544 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32545 (__mips16_syscall3): Likewise.
32546 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32547 (__mips16_syscall4): Likewise.
32548 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32549 Remove.
32550 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32551 Remove.
32552 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32553 Remove.
32554 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32555 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32556 `__mips16_syscall5'. Remove prototype.
32557 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32558 `__mips16_syscall6'. Remove prototype.
32559 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32560 `__mips16_syscall7'. Remove prototype.
32561 (__nomips16, __mips16_syscall_return): Move to...
32562 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32563 (__nomips16, __mips_syscall_return): ... here.
32564 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32565 `__mips16_syscall_return' to `__mips_syscall_return'.
32566 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32567 `internal_syscall##nr'.
32568 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32569 `internal_syscall##nr'.
32570 (FORCE_FRAME_POINTER): Remove.
32571 (__mips_syscall5): New prototype.
32572 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32573 (__mips_syscall6): New prototype.
32574 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32575 (__mips_syscall7): New prototype.
32576 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32577 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32578 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32579 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32580 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32581 (sysdep_routines): Add libc-do-syscall.
32582 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32583 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32584
32585 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32586
32587 [BZ #21672]
32588 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32589 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32590 (advise_stack_range): New function.
32591 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32592 stack non required to advise_stack_range at allocatestack.c
32593
32594 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32595
32596 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32597
32598 2017-08-29 Florian Weimer <fweimer@redhat.com>
32599
32600 [BZ #22026]
32601 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32602 __end_fct. Mangle __end_fct after setting it to NULL.
32603 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32604 (modules-names, modules-names-tests): Add
32605 tst-gconv-init-failure-mod.
32606 (gconv-modules): New target.
32607 (tst-gconv-init-failure-mod.so): Link against libsupport.
32608 (tst-gconv-init-failure): Depend on gconv-modules,
32609 tst-gconv-init-failure-mod.so.
32610 * iconv/tst-gconv-init-failure-mod.c: New file.
32611 * iconv/tst-gconv-init-failure.c: Likewise.
32612 * iconv/test-gconv-modules: Likewise.
32613
32614 2017-08-29 Florian Weimer <fweimer@redhat.com>
32615
32616 [BZ #22025]
32617 * iconv/gconv_db.c (free_derivation): Remove redundant
32618 parentheses.
32619 (gen_steps): Unconditionally mangle __btowc_fct after
32620 initialization.
32621 (increment_counter): Likewise. Do not call init_fct for internal
32622 modules.
32623
32624 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32625
32626 [BZ #22028]
32627 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32628 (_MSUF_): Remove macro.
32629 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32630 Likewise.
32631 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32632 (__REDIRFROM_X): New macro.
32633 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32634 Likewise.
32635 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32636 (__REDIRTO_X): Likewise.
32637 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32638 arguments.
32639 (__MATH_REDIRCALL_2): Likewise.
32640 (__MATH_REDIRCALL_INTERNAL): Likewise.
32641 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32642 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32643 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32644 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32645 * math/test-finite-macros.c: New file.
32646 * math/Makefile (tests): Add test-finite-macros.
32647 (CFLAGS-test-finite-macros.c): New variable.
32648
32649 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32650 Jeff Law <law@redhat.com>
32651
32652 [BZ #22025]
32653 Mangle NULL pointers in iconv/gconv.
32654 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32655 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32656 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32657 is non-NULL before demangling the end_fct. Check for NULL
32658 end_fct after demangling.
32659 (__gconv_release_step): Demangle the end_fct before checking
32660 it for NULL. Remove assert on __shlibc_handle != NULL.
32661 (gen_steps): Don't check btowc_fct for NULL before mangling.
32662 Demangle init_fct before checking for NULL.
32663 (increment_counter): Likewise.
32664 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32665 end_fct for NULL before mangling.
32666 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32667 for NULL.
32668
32669 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32670
32671 [BZ #21971]
32672 * locale/iso-639.def: add Morisyen.
32673
32674 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32675
32676 [BZ #21930]
32677 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32678 (iszero): New C++ implementation that does not use
32679 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32680 signaling nans are enabled, since __builtin_types_compatible_p
32681 is a C-only feature.
32682 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32683 defined, include ieee754_float128.h for access to the union and
32684 member ieee854_float128.ieee.
32685 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32686 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32687 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32688 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32689 options of test-math-zero on powerpc64le.
32690
32691 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32692
32693 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32694 Change double to float.
32695
32696 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32697
32698 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32699 unconditional.
32700 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32701 conditional code; define contents only for [LIBM_SVID_COMPAT].
32702
32703 2017-08-28 Florian Weimer <fweimer@redhat.com>
32704
32705 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32706 (abi-lp64_be-options): Remove.
32707 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32708 (abi-hard-options): Likewise.
32709 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32710 (abi-o32_hard-options, abi-o32_soft_2008-options)
32711 (abi-o32_hard_2008-options, abi-n32_soft-options)
32712 (abi-n32_hard-options, abi-n32_soft_2008-options)
32713 (abi-n32_hard_2008-options, abi-n64_soft-options)
32714 (abi-n64_hard-options, abi-n64_soft_2008-options)
32715 (abi-n64_hard_2008-options): Likewise.
32716 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32717 (abi-64-v1-options, abi-64-v2-options): Likewise.
32718 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32719 (abi-64-options): Likewise.
32720 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32721 (abi-64-options): Likewise.
32722 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32723 (abi-64-options): Likewise.
32724 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32725 (abi-64-options, abi-x32-options): Likewise.
32726
32727 2017-08-28 Florian Weimer <fweimer@redhat.com>
32728
32729 Store supported list of SYS_* system calls in the source tree.
32730 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32731 (bits/syscall.h): Generate from list file.
32732 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32733 [$(subdir) = misc] (tests): Add tst-syscall-list.
32734 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32735 [$(subdir) = misc] (tst-syscall-list-macros.list)
32736 [$(subdir) = misc] (tst-syscall-list-nr.list)
32737 (tst-syscall-list-sys.list): Helper targets for new
32738 tst-syscall-list test.
32739 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32740 tst-syscall-list.sh.
32741 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32742 target. Do not include bits/syscall.d.
32743 [$(subdir) = misc] (generated): Do not update.
32744 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32745 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32746 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32747 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32748
32749 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32750
32751 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32752 (tst-cxa_atexit, tst-on_exit): Likewise.
32753 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32754 tst-cxa_atexit, and tst-on_exit.
32755 * stdlib/tst-atexit-common.c: New file.
32756 * stdlib/tst-atexit.c: New file.
32757 * stdlib/tst-at_quick_exit.c: New file.
32758 * stdlib/tst-cxa_atexit.c: New file.
32759 * stdlib/tst-on_exit.c: New file.
32760
32761 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32762
32763 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32764 * mach/stack_chk_fail_local.c: New file.
32765 * hurd/stack_chk_fail_local.c: New file.
32766 * mach/Machrules ($(interface-library)-routines): Add
32767 stack_chk_fail_local.
32768 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32769 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32770 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32771 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32772 * hurd/Makefile (CFLAGS-hurdstartup.o,
32773 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32774
32775 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32776
32777 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32778 (index_cpu_*, index_arch_*): Removed.
32779
32780 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32781
32782 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32783 Use uint64_t instead of unsigned long.
32784
32785 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32786
32787 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32788 [__HAVE_DISTINCT_FLOAT128].
32789
32790 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32791 of <bits/math-finite.h>.
32792 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32793 inclusion of <bits/math-finite.h>.
32794 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32795 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32796 __NO_LONG_DOUBLE_MATH].
32797 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32798 (__MATH_REDIRCALL_2): Likewise.
32799 (__MATH_REDIRCALL_INTERNAL): Likewise.
32800 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32801 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32802 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32803
32804 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32805 Remove file.
32806 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32807 Likewise.
32808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32809 Likewise.
32810 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32811 Likewise.
32812 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32813 Likewise.
32814 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32815 Likewise.
32816 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32817 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32818 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32819 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32820 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32821 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32822 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32823 w_sqrtf_compat-ppc32.
32824
32825 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32826
32827 * math/math.h [defined __cplusplus] (issignaling): In the long
32828 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32829 is not defined. Call __issignaling, otherwise.
32830
32831 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32832
32833 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32834 syscall definitions and replace __builtin_expect with __glibc_likely.
32835 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32836 syscall.
32837 (SYSCALL_CANCELLABLE): Removedefinition
32838 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32839 definition.
32840 (PSEUDO_END): Likewise.
32841 [IS_IN (libpthread)] (CENABLE): Likewise.
32842 [IS_IN (libpthread)] (CDISABLE): Likewise.
32843 [IS_IN (libc)] (CENABLE): Likewise.
32844 [IS_IN (libc)] (CENABLE): Likewise.
32845 [IS_IN (librt)] (CDISABLE): Likewise.
32846 [IS_IN (librt)] (CDISABLE): Likewise.
32847 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32848 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32849 definition.
32850 (PSEUDO_END): Likewise.
32851 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32852 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32853 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32854 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32855 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32856 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32857 (CENABLE): Likewise.
32858 (CDISABLE): Likewise.
32859 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32860 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32861 defintion.
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/hppa/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/i386/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/ia64/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/m68k/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/microblaze/sysdep-cancel.h (PSEUDO): Remove
32911 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 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32920 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32921 Remove 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 (SINGLE_THREAD_P): Likewise.
32930 * sysdeps/unix/sysv/linux/mips/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/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32941 definition.
32942 (PSEUDO_END): Likewise.
32943 [IS_IN (libpthread)] (CENABLE): Likewise.
32944 [IS_IN (libpthread)] (CDISABLE): Likewise.
32945 [IS_IN (libc)] (CENABLE): Likewise.
32946 [IS_IN (libc)] (CENABLE): Likewise.
32947 [IS_IN (librt)] (CDISABLE): Likewise.
32948 [IS_IN (librt)] (CDISABLE): Likewise.
32949 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32950 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32951 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32952 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32953 * sysdeps/unix/sysv/linux/s390/s390-32/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/s390/s390-64/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/sh/sysdep-cancel.h (PSEUDO): Remove
32974 definition.
32975 (PSEUDO_END): Likewise.
32976 [IS_IN (libpthread)] (CENABLE): Likewise.
32977 [IS_IN (libpthread)] (CDISABLE): Likewise.
32978 [IS_IN (libc)] (CENABLE): Likewise.
32979 [IS_IN (libc)] (CENABLE): Likewise.
32980 [IS_IN (librt)] (CDISABLE): Likewise.
32981 [IS_IN (librt)] (CDISABLE): Likewise.
32982 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32983 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32984 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32985 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32986 * sysdeps/unix/sysv/linux/tile/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 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32997 definition.
32998 (PSEUDO_END): Likewise.
32999 [IS_IN (libpthread)] (CENABLE): Likewise.
33000 [IS_IN (libpthread)] (CDISABLE): Likewise.
33001 [IS_IN (libc)] (CENABLE): Likewise.
33002 [IS_IN (libc)] (CENABLE): Likewise.
33003 [IS_IN (librt)] (CDISABLE): Likewise.
33004 [IS_IN (librt)] (CDISABLE): Likewise.
33005 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33006
33007 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
33008
33009 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33010
33011 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33012
33013 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33014
33015 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33016
33017 [BZ #21982]
33018 * string/stratcliff.c (do_test): Declare size, nchars, inner,
33019 middle and outer with size_t instead of int. Repleace %d and
33020 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
33021 "MAX (outer, nchars - 64)" to support unsigned outer and
33022 nchars. Also exit loop when outer == 0.
33023
33024 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33025
33026 * include/fcntl.h (__fcntl_nocancel): Remove definition.
33027 * include/signal.h (__sigsuspend_nocancel): Likewise.
33028 * include/time.h (__nanosleep_nocancel): Likewise.
33029 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33030 * login/utmp_file.c: Include non cancellable syscall header.
33031 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33032 prototype.
33033
33034 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33035
33036 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33037 .byte sequences with AVX512F instructions.
33038 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33039 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33040 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33041 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33042 Likewise.
33043 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33044 Likewise.
33045
33046 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
33047 Steve Ellcey <sellcey@cavium.com>
33048
33049 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33050 Use PTR_REG macro in cmp instruction.
33051
33052 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33053
33054 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33055 Change the return type of the ifunc resolver to match the return
33056 type of the target function.
33057
33058 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33059
33060 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33061 (preadv64): Likewise.
33062 (pwrite64(: Likewise.
33063 (pwritev64): Likewise.
33064
33065 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33066 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33067 (LOAD_ARGS_0): Likewise.
33068 (LOAD_ARGS_1): Likewise.
33069 (LOAD_ARGS_2): Likewise.
33070 (LOAD_ARGS_3): Likewise.
33071 (LOAD_ARGS_4): Likewise.
33072 (LOAD_ARGS_5): Likewise.
33073 (LOAD_ARGS_6): Likewise.
33074 (LOAD_REGS_0): Likewise.
33075 (LOAD_REGS_1): Likewise.
33076 (LOAD_REGS_2): Likewise.
33077 (LOAD_REGS_3): Likewise.
33078 (LOAD_REGS_4): Likewise.
33079 (LOAD_REGS_5): Likewise.
33080 (LOAD_REGS_6): Likewise.
33081 (ASM_ARGS_0): Likewise.
33082 (ASM_ARGS_1): Likewise.
33083 (ASM_ARGS_2): Likewise.
33084 (ASM_ARGS_3): Likewise.
33085 (ASM_ARGS_4): Likewise.
33086 (ASM_ARGS_5): Likewise.
33087 (ASM_ARGS_6): Likewise.
33088 (LOAD_ARGS_TYPES_1): Likewise.
33089 (LOAD_ARGS_TYPES_2): Likewise.
33090 (LOAD_ARGS_TYPES_3): Likewise.
33091 (LOAD_ARGS_TYPES_4): Likewise.
33092 (LOAD_ARGS_TYPES_5): Likewise.
33093 (LOAD_ARGS_TYPES_6): Likewise.
33094 (LOAD_REGS_TYPES_1): Likewise.
33095 (LOAD_REGS_TYPES_2): Likewise.
33096 (LOAD_REGS_TYPES_3): Likewise.
33097 (LOAD_REGS_TYPES_4): Likewise.
33098 (LOAD_REGS_TYPES_5): Likewise.
33099 (LOAD_REGS_TYPES_6): Likewise.
33100 (TYPEFY): New define.
33101 (ARGIFY): Likewise.
33102 (internal_syscall0): Likewise.
33103 (internal_syscall1): Likewise.
33104 (internal_syscall2): Likewise.
33105 (internal_syscall3): Likewise.
33106 (internal_syscall4): Likewise.
33107 (internal_syscall5): Likewise.
33108 (internal_syscall6): Likewise.
33109 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33110 (INTERNAL_SYSCALL_NCS): Remove define.
33111 (internal_syscall1): Add define.
33112
33113 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33114
33115 * math/w_remainder_compat.c: Remove duplicate inclusion of
33116 math-svid-compat.h.
33117 * math/w_remainderf_compat.c: Likewise.
33118 * math/w_remainderl_compat.c: Likewise.
33119
33120 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33121
33122 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33123
33124 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33125
33126 [BZ #21684]
33127 * math/tgmath.h (__floating_type): Simplify definitions.
33128 (__real_integer_type): New macro.
33129 (__complex_integer_type): Likewise.
33130 (__expr_is_real): Likewise.
33131 (__tgmath_real_type_sub): Update comment to describe handling of
33132 complex types.
33133 (__tgmath_complex_type_sub): New macro.
33134 (__tgmath_complex_type): Likewise.
33135 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33136 (__TGMATH_CF128): Use __expr_is_real.
33137 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33138 __expr_is_real.
33139 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33140 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33141 * math/gen-tgmath-tests.py (Type.create_type): Create complex
33142 integer types.
33143
33144 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33145
33146 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33147 macro.
33148 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33149 alias.
33150 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33151 Likewise.
33152
33153 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33154 nanosleep_not_cancel with __nanosleep_nocancel.
33155 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33156 (__nanosleep_nocancel): New macro.
33157 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33158 function.
33159 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33160 macro.
33161 (__nanosleep_nocancel): New prototype.
33162
33163 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33164 pause_not_cancel with __pause_nocancel.
33165 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33166 (__pause_nocancel): New macro.
33167 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33168 macro.
33169 (__pause_nocancel): New prototype.
33170 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33171
33172 2017-08-22 Martin Sebor <msebor@redhat.com>
33173
33174 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33175 to return a pointer to the same type as the target function.
33176
33177 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33178
33179 [BZ #18822]
33180 [BZ #21986]
33181 * include/printf.h (__printf_fphex): Add attribute_hidden.
33182 (__guess_grouping): New prototype.
33183 * stdio-common/printf_fp.c (__guess_grouping): Removed.
33184 * stdio-common/reg-printf.c (__register_printf_specifier): Add
33185 libc_hidden_proto and libc_hidden_def.
33186 * stdlib/strfmon_l.c (__guess_grouping): Removed.
33187 (__vstrfmon_l): Remove the third argument passed to
33188 __guess_grouping.
33189
33190 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33191
33192 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33193 definition for issignaling that does not rely on __MATH_TG,
33194 since __MATH_TG uses __builtin_types_compatible_p, which is only
33195 available in C mode.
33196 (CFLAGS-test-math-issignaling.cc): New variable.
33197 * math/Makefile [CXX] (tests): Add test-math-issignaling.
33198 * math/test-math-issignaling.cc: New test for C++ implementation
33199 of type-generic issignaling.
33200 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33201 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33202 options of test-math-issignaling on powerpc64le.
33203
33204 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33205
33206 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33207 building libc.a.
33208 (hidden_proto): Likewise.
33209 (hidden_tls_proto): Likewise.
33210 (__hidden_proto): Likewise.
33211
33212 2017-08-22 Florian Weimer <fweimer@redhat.com>
33213
33214 math: Statically link tests of internal functionality.
33215 * math/Makefile (tests): Remove atest-exp, atest-sincos,
33216 atest-exp2.
33217 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33218 (gmp-objs): Remove assignment.
33219 (atest-exp, atest-sincos, atest-exp2): Remove targets.
33220
33221 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33222
33223 [BZ #21987]
33224 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33225 and copy to ...
33226 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33227 ... here.
33228 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33229 ... and here.
33230
33231 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33232 variable definitions above inclusion of ../Rules.
33233
33234 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33235
33236 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33237 case calling __builtin_unreachable.
33238
33239 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33240
33241 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33242 __waitpid_nocancel.
33243 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33244 (__waitpid_nocancel): New macro.
33245 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33246 macro.
33247 (__waitpid_nocancel): Replace macro with a function.
33248 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33249 function.
33250
33251 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33252 __fcntl_nocancel.
33253 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33254 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33255
33256 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33257 __writev_nocancel_nostatus.
33258 (write_call_graph): Likewise.
33259 (write_bb_counts): Likewise.
33260 * resolv/herror.c (herror): Likewise.
33261 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33262 macro.
33263 (__writev_nocancel_nostatus): New macro.
33264 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33265 Remove macro.
33266 (__writev_nocancel_nostatus): New function.
33267
33268 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33269
33270 Revert:
33271 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33272
33273 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33274 building libc.a.
33275 (hidden_proto): Likewise.
33276 (hidden_tls_proto): Likewise.
33277 (__hidden_proto): Likewise.
33278
33279 [BZ #21973]
33280 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33281 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33283 Likewise.
33284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33285 Likewise.
33286 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33287 Likewise.
33288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33289 Likewise.
33290 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33291 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33292 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33293 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33294 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33295 GLIBC_2.0 sqrtl symbol.
33296
33297 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33298 [__USE_MISC] (_LIB_VERSION): Likewise.
33299 [__USE_MISC] (struct exception): Likewise.
33300 [__USE_MISC] (matherr): Likewise.
33301 [__USE_MISC] (DOMAIN): Likewise.
33302 [__USE_MISC] (SING): Likewise.
33303 [__USE_MISC] (OVERFLOW): Likewise.
33304 [__USE_MISC] (UNDERFLOW): Likewise.
33305 [__USE_MISC] (TLOSS): Likewise.
33306 [__USE_MISC] (PLOSS): Likewise.
33307 [__USE_MISC] (HUGE): Likewise.
33308 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33309 * math/math-svid-compat.h: New file.
33310 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33311 and matherrl.
33312 * include/math.h [!_ISOMAC] (__matherr): Remove.
33313 * manual/arith.texi (FP Exceptions): Do not document matherr.
33314 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33315 (tests-internal): New variable.
33316 (install-lib): Do not add libieee.a.
33317 (non-lib.a): Likewise.
33318 (extra-objs): Do not add libieee.a and ieee-math.o.
33319 (CPPFLAGS-s_lib_version.c): Remove variable.
33320 ($(objpfx)libieee.a): Remove rule.
33321 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33322 * math/ieee-math.c: Remove.
33323 * math/libm-test-support.c (matherr): Remove.
33324 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33325 and license notices. Include <math-svid-compat.h> and
33326 <shlib-compat.h>.
33327 (matherr): Undefine as macro. Use compat_symbol_reference.
33328 (_LIB_VERSION): Likewise.
33329 * math/test-matherr-2.c: New file.
33330 * math/test-matherr-3.c: Likewise.
33331 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33332 declaration.
33333 (__kernel_standard_f): Likewise.
33334 (__kernel_standard_l): Likewise.
33335 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33336 <math_private.h>. Include <math-svid-compat.h>.
33337 (_LIB_VERSION): Undefine as macro.
33338 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33339 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33340 [LIBM_SVID_COMPAT], use compat_symbol.
33341 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33342 <math_private.h>. Include <math-svid-compat.h>.
33343 (matherr): Undefine as macro.
33344 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33345 compat_symbol.
33346 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33347 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33348 compat_symbol_reference.
33349 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33350 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33351 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33352 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33353 (MATHERR_D): Remove declaration.
33354 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33355 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33356 [LIBM_BUILD] (pmatherrf): Likewise.
33357 [LIBM_BUILD] (pmatherr): Likewise.
33358 [LIBM_BUILD] (pmatherrl): Likewise.
33359 (DOMAIN): Likewise.
33360 (SING): Likewise.
33361 (OVERFLOW): Likewise.
33362 (UNDERFLOW): Likewise.
33363 (TLOSS): Likewise.
33364 (PLOSS): Likewise.
33365 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33366 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33367 compat_symbol.
33368 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33369 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33370 compat_symbol.
33371 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33372 * math/w_acos_compat.c: Likewise.
33373 * math/w_acosf_compat.c: Likewise.
33374 * math/w_acosh_compat.c: Likewise.
33375 * math/w_acoshf_compat.c: Likewise.
33376 * math/w_acoshl_compat.c: Likewise.
33377 * math/w_acosl_compat.c: Likewise.
33378 * math/w_asin_compat.c: Likewise.
33379 * math/w_asinf_compat.c: Likewise.
33380 * math/w_asinl_compat.c: Likewise.
33381 * math/w_atan2_compat.c: Likewise.
33382 * math/w_atan2f_compat.c: Likewise.
33383 * math/w_atan2l_compat.c: Likewise.
33384 * math/w_atanh_compat.c: Likewise.
33385 * math/w_atanhf_compat.c: Likewise.
33386 * math/w_atanhl_compat.c: Likewise.
33387 * math/w_cosh_compat.c: Likewise.
33388 * math/w_coshf_compat.c: Likewise.
33389 * math/w_coshl_compat.c: Likewise.
33390 * math/w_exp10_compat.c: Likewise.
33391 * math/w_exp10f_compat.c: Likewise.
33392 * math/w_exp10l_compat.c: Likewise.
33393 * math/w_exp2_compat.c: Likewise.
33394 * math/w_exp2f_compat.c: Likewise.
33395 * math/w_exp2l_compat.c: Likewise.
33396 * math/w_fmod_compat.c: Likewise.
33397 * math/w_fmodf_compat.c: Likewise.
33398 * math/w_fmodl_compat.c: Likewise.
33399 * math/w_hypot_compat.c: Likewise.
33400 * math/w_hypotf_compat.c: Likewise.
33401 * math/w_hypotl_compat.c: Likewise.
33402 * math/w_j0_compat.c: Likewise.
33403 * math/w_j0f_compat.c: Likewise.
33404 * math/w_j0l_compat.c: Likewise.
33405 * math/w_j1_compat.c: Likewise.
33406 * math/w_j1f_compat.c: Likewise.
33407 * math/w_j1l_compat.c: Likewise.
33408 * math/w_jn_compat.c: Likewise.
33409 * math/w_jnf_compat.c: Likewise.
33410 * math/w_jnl_compat.c: Likewise.
33411 * math/w_lgamma_main.c: Likewise.
33412 * math/w_lgamma_r_compat.c: Likewise.
33413 * math/w_lgammaf_main.c: Likewise.
33414 * math/w_lgammaf_r_compat.c: Likewise.
33415 * math/w_lgammal_main.c: Likewise.
33416 * math/w_lgammal_r_compat.c: Likewise.
33417 * math/w_log10_compat.c: Likewise.
33418 * math/w_log10f_compat.c: Likewise.
33419 * math/w_log10l_compat.c: Likewise.
33420 * math/w_log2_compat.c: Likewise.
33421 * math/w_log2f_compat.c: Likewise.
33422 * math/w_log2l_compat.c: Likewise.
33423 * math/w_log_compat.c: Likewise.
33424 * math/w_logf_compat.c: Likewise.
33425 * math/w_logl_compat.c: Likewise.
33426 * math/w_pow_compat.c: Likewise.
33427 * math/w_powf_compat.c: Likewise.
33428 * math/w_powl_compat.c: Likewise.
33429 * math/w_remainder_compat.c: Likewise.
33430 * math/w_remainderf_compat.c: Likewise.
33431 * math/w_remainderl_compat.c: Likewise.
33432 * math/w_scalb_compat.c: Likewise.
33433 * math/w_scalbf_compat.c: Likewise.
33434 * math/w_scalbl_compat.c: Likewise.
33435 * math/w_sinh_compat.c: Likewise.
33436 * math/w_sinhf_compat.c: Likewise.
33437 * math/w_sinhl_compat.c: Likewise.
33438 * math/w_sqrt_compat.c: Likewise.
33439 * math/w_sqrtf_compat.c: Likewise.
33440 * math/w_sqrtl_compat.c: Likewise.
33441 * math/w_tgamma_compat.c: Likewise.
33442 * math/w_tgammaf_compat.c: Likewise.
33443 * math/w_tgammal_compat.c: Likewise.
33444 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33445 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33446 * sysdeps/ieee754/k_standard.c: Likewise.
33447 * sysdeps/ieee754/k_standardf.c: Likewise.
33448 * sysdeps/ieee754/k_standardl.c: Likewise.
33449 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33450 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33451 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33452 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33453 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33454 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33455 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33456 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33457 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33458 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33459 Likewise.
33460 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33461 Likewise.
33462 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33463 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33464 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33465 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33466
33467 2017-08-21 Florian Weimer <fweimer@redhat.com>
33468
33469 [BZ #21864]
33470 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33471 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33472 Move before inclusion of ../Rules.
33473
33474 2017-08-21 Florian Weimer <fweimer@redhat.com>
33475
33476 [BZ #21972]
33477 * assert/assert.h (assert): Use static_cast (bool) for C++.
33478 Use the ternary operator in the warning branch for GNU C.
33479 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33480 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33481 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33482 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33483 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33484
33485 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33486
33487 [BZ #18822]
33488 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33489 (__syscall_clock_gettime): Add attribute_hidden.
33490 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33491 (__start_context): Likewise.
33492
33493 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33494
33495 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33496 building libc.a.
33497 (hidden_proto): Likewise.
33498 (hidden_tls_proto): Likewise.
33499 (__hidden_proto): Likewise.
33500
33501 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33502
33503 * include/libc-symbols.h (attribute_hidden): Enable hidden
33504 visibility in libc.a compiled with PIE.
33505
33506 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33507
33508 [BZ #18822]
33509 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33510 Add attribute_hidden.
33511
33512 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33513
33514 [BZ #21864]
33515 * Makerules (all-nonlib): Add $(others-extras).
33516 * catgets/Makefile (others-extras): New.
33517 * elf/Makefile (others-extras): Likewise.
33518 * nss/Makefile (others-extras): Likewise.
33519
33520 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33521
33522 [BZ #18822]
33523 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33524 * elf/dl-open.c: Include <libc-internal.h>.
33525 (__libc_multiple_libcs): Removed.
33526 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33527 <hp-timing.h>.
33528 * include/libc-internal.h (__libc_multiple_libcs): New.
33529 * misc/sbrk.c: Include <libc-internal.h>.
33530 (__libc_multiple_libcs): Removed.
33531
33532 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33533
33534 [BZ #18822]
33535 * grp/initgroups.c (__nss_group_database): Removed.
33536 (__nss_initgroups_database): Likewise.
33537 * nscd/gai.c (__nss_hosts_database): Likewise.
33538 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33539 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33540 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33541 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33542 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33543 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33544 attribute_hidden.
33545 * nss/nsswitch.c (__nss_database_custom): Define only if
33546 USE_NSCD is defined.
33547 (__nss_configure_lookup): Use __nss_database_custom only if
33548 USE_NSCD is defined.
33549 * nss/nsswitch.h (__nss_database_custom): Declare only if
33550 USE_NSCD is defined. Add attribute_hidden.
33551 (__nss_setent): Add attribute_hidden.
33552 (__nss_endent): Likewise.
33553 (__nss_getent_r): Likewise.
33554 (__nss_getent): Likewise.
33555 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33556
33557 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33558
33559 [BZ #18822]
33560 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33561 libc_hidden_proto and libc_hidden_def.
33562
33563 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33564
33565 [BZ #18822]
33566 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33567 Add libc_hidden_proto.
33568 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33569 Add libc_hidden_def.
33570
33571 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33572
33573 [BZ #21974]
33574 * gmon/Makefile (routines): Remove bb_init_func and
33575 bb_exit_func.
33576 (elide-routines.os): Removed.
33577 * gmon/bb_exit_func.c: Likewise.
33578 * gmon/bb_init_func.c: Likewise.
33579 * include/sys/gmon.h (__bb): Likewise.
33580 (__bb_init_func): Likewise.
33581 (__bb_exit_func): Likewise.
33582 * sysdeps/alpha/bb_init_func.S: Likewise.
33583
33584 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33585
33586 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33587 * include/setjmp.h (____longjmp_chk): Here. Add
33588 attribute_hidden.
33589
33590 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33591
33592 [BZ #18822]
33593 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33594 attribute_hidden.
33595 (__strspn_sse2): Likewise.
33596
33597 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33598
33599 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33600 (close_not_cancel_no_status): Likewise.
33601 (__close_nocancel): New macro.
33602 (__close_nocancel_nostatus): Likewise.
33603 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33604 macro.
33605 (close_not_cancel): Likewise.
33606 (close_not_cancel_no_status): Likewise.
33607 (__close_nocancel): New prototype.
33608 (__close_nocancel_nostatus): New function.
33609 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33610 * catgets/open_catalog.c (__open_catalog): Replace
33611 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33612 * gmon/gmon.c (write_gmon): Likewise.
33613 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33614 * intl/loadmsgcat.c (close): Likewise.
33615 * io/ftw.c (open_dir_stream): Likewise.
33616 (ftw_startup): Likewise.
33617 * libio/fileops.c (_IO_file_open): Likewise.
33618 (_IO_file_close_mmap): Likewise.
33619 (_IO_file_close): Likewise.
33620 * libio/iopopen.c (_IO_dup2): Likewise.
33621 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33622 * locale/loadlocale.c (_nl_load_locale): Likewise.
33623 * login/utmp_file.c (pututline_file): Likewise.
33624 (endutent_file): Likewise.
33625 * misc/daemon.c (daemon): Likewise.
33626 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33627 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33628 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33629 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33630 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33631 * nscd/nscd_helper.c (open_socket): Likewise.
33632 (__nscd_open_socket): Likewise.
33633 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33634 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33635 (__nscd_innetgr): Likewise.
33636 * nss/nss_db/db-open.c (internal_setent): Likewise.
33637 * resolv/res-close.c (__res_iclose): Likewise.
33638 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33639 * sysdeps/posix/closedir.c (__closedir): Likewise.
33640 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33641 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33642 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33643 (opendir_tail): Likewise.
33644 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33645 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33646 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33647 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33648 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33649 (gethostid): Likewise.
33650 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33651 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33652 Likewise.
33653 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33654 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33655 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33656 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33657 Likewise.
33658 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33659 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33660 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33661 Likewise.
33662 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33663 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33664 Likewise.
33665 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33666 Likewise.
33667 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33668 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33669 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33670 __close_nocancel.
33671
33672 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33673 (openat_not_cancel_3): Likewise.
33674 (openat64_not_cancel_3): Likewise).
33675 (openat_not_cancel_3): Likewise).
33676 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33677 macro.
33678 (openat_not_cancel_3): Likewise.
33679 (openat64_not_cancel): Likewise.
33680 (openat64_not_cancel_3): Likewise.
33681 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33682 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33683 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33684 __open{64}_nocancel.
33685 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33686 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33687 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33688
33689 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33690
33691 [BZ #18822]
33692 * include/argz.h (__argz_create_sep): New function prototype.
33693 (__argz_append): Likewise.
33694 (__argz_add): Likewise.
33695 (__argz_add_sep): Likewise.
33696 (__argz_delete): Likewise.
33697 (__argz_insert): Likewise.
33698 (__argz_replace): Likewise.
33699 * string/argz.h (__argz_create_sep): Removed.
33700 (__argz_append): Likewise.
33701 (__argz_add): Likewise.
33702 (__argz_add_sep): Likewise.
33703 (__argz_delete): Likewise.
33704 (__argz_insert): Likewise.
33705 (__argz_replace): Likewise.
33706
33707 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33708
33709 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33710 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33711 (GNU_PROPERTY_STACK_SIZE): Likewie.
33712 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33713 (GNU_PROPERTY_LOPROC): Likewise.
33714 (GNU_PROPERTY_HIPROC): Likewise.
33715 (GNU_PROPERTY_LOUSER): Likewise.
33716 (GNU_PROPERTY_HIUSER): Likewise.
33717 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33718 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33719 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33720 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33721 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33722 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33723 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33724 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33725 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33726 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33727 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33728 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33729 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33730 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33731 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33732 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33733 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33734 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33735 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33736 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33737 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33738 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33739 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33740
33741 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33742
33743 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33744 in C++ mode.
33745
33746 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33747
33748 [BZ #21930]
33749 * math/math.h (isinf): Check if in C or C++ mode before using
33750 __builtin_types_compatible_p, since this is a C mode feature.
33751
33752 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33753
33754 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33755 (__write_nocancel): New macro.
33756 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33757 Rewrite as a function prototype.
33758 (write_not_cancel): Remove macro.
33759 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33760 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33761 (write_gmon): Likewise.
33762 * libio/fileops.c (_IO_new_file_write): Likewise.
33763 * login/utmp_file.c (pututline_file): Likewise.
33764 (updwtmp_file): Likewise.
33765 * stdio-common/psiginfo.c (psiginfo): Likewise.
33766 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33767 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33768 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33769 Likewise.
33770 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33771 Likewise.
33772
33773 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33774 (__read_nocancel): New macro.
33775 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33776 __read_nocancel.
33777 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33778 macro.
33779 (__read_nocancel): New prototype.
33780 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33781 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33782 with __read_nocancel.
33783 * intl/loadmsgcat.c (read): Likewise.
33784 * libio/fileops.c (_IO_file_read): Likewise.
33785 * locale/loadlocale.c (_nl_load_locale): Likewise.
33786 * login/utmp_file.c (getutent_r_file): Likewise.
33787 (internal_getut_r): Likewise.
33788 (getutline_r_file): Likewise.
33789 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33790 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33791 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33792 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33793 Likewise.
33794 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33795 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33796 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33797 Likewise.
33798 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33799 Likewise.
33800 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33801 Likewise.
33802 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33803 Likewise.
33804 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33805
33806 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33807
33808 [BZ #21966]
33809 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33810 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33811 usable.
33812
33813 2017-08-17 DJ Delorie <dj@redhat.com>
33814
33815 * bug17079.c: Update to new test harness.
33816 * test-digits-dots.c: Likewise.
33817 * test-netdb.c: Likewise.
33818 * tst-field.c: Likewise.
33819 * tst-nss-getpwent.c: Likewise.
33820 * tst-nss-static.c: Likewise.
33821 * tst-nss-test1.c: Likewise.
33822 * tst-nss-test2.c: Likewise.
33823 * tst-nss-test3.c: Likewise.
33824 * tst-nss-test4.c: Likewise.
33825 * tst-nss-test5.c: Likewise.
33826
33827 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33828
33829 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33830 (open_not_cancel_2): Likewise.
33831 (open_nocancel): New macro.
33832 (open64_nocancel): Likewise.
33833 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33834 (open_not_cancel_2): Likewise.
33835 (__open_nocancel): New prototype.
33836 (__open64_nocancel): Likewise.
33837 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33838 __open_nocancel.
33839 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33840 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33841 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33842 with __open_nocancel.
33843 * csu/check_fds.c (check_one_fd): Likewise.
33844 * gmon/gmon.c (write_gmon): Likewise.
33845 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33846 * intl/loadmsgcat.c (open): Likewise.
33847 * libio/fileops.c (_IO_file_open): Likewise.
33848 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33849 * locale/loadlocale.c (_nl_load_locale): Likewise.
33850 * login/utmp_file.c (setutent_file): Likewise.
33851 * misc/daemon.c (daemon): Likewise.
33852 * nss/nss_db/db-open.c (internal_setent): Likewise.
33853 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33854 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33855 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33856 (__opendir): Likewise.
33857 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33858 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33859 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33860 (gethostid): Likewise.
33861 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33862 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33863 Likewise.
33864 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33865 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33866 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33867 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33868 Likewise.
33869 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33870 Likewise.
33871 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33872 Likewise.
33873 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33874 Likewise.
33875 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33876 Likewise.
33877 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33878 Likewise.
33879 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33880 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33881
33882 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33883
33884 * benchtests/bench-skeleton.c (main): Add support for
33885 latency benchmarking.
33886 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33887
33888 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33889
33890 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33891 the startup object.
33892
33893 2017-08-17 Florian Weimer <fweimer@redhat.com>
33894
33895 * include/sys/socket.h (__opensock): Remove internal_function.
33896 * socket/opensock.c (__opensock): Likewise.
33897 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33898
33899 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33900
33901 [BZ #21944]
33902 * signal/bits/types/__sigval_t.h: New file.
33903 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33904 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33905 and define sigval_t using __sigval_t.
33906 * include/bits/types/__sigval_t.h: New file.
33907 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33908 instead of <bits/types/__sigval_t.h>.
33909 (struct sigevent): Use __sigval_t instead of sigval_t.
33910 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33911 instead of <bits/types/__sigval_t.h>.
33912 (siginfo_t): Use __sigval_t instead of sigval_t.
33913 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33914 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33915 (struct sigevent): Use __sigval_t instead of sigval_t.
33916 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33917 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33918 (siginfo_t): Use __sigval_t instead of sigval_t.
33919 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33920
33921 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33922
33923 * NEWS: Remove "[Add new features here]" for 2.27.
33924
33925 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33926
33927 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33928 libc.so.
33929
33930 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33931
33932 * NEWS: Mention x86-64 FMA optimization.
33933
33934 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33935
33936 [BZ #21912]
33937 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33938 Add e_expf-fma.
33939 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33940 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33941 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33942
33943 2017-08-16 Andreas Schwab <schwab@suse.de>
33944
33945 [BZ #16750]
33946 CVE-2009-5064
33947 * elf/ldd.bash.in: Never run file directly.
33948
33949 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33950
33951 [BZ #21955]
33952 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33953 (L(SP_INF_0)): Likewise.
33954
33955 2017-08-15 Florian Weimer <fweimer@redhat.com>
33956
33957 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33958 run-built-tests.
33959
33960 2017-08-15 Florian Weimer <fweimer@redhat.com>
33961
33962 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33963 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33964 BROKEN_THREAD_SIGNALS code.
33965 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33966 request_list): Remove caller_pid member used for
33967 BROKEN_THREAD_SIGNALS.
33968 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33969 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33970 Remove BROKEN_THREAD_SIGNALS support.
33971 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33972 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33973
33974 2017-08-15 Florian Weimer <fweimer@redhat.com>
33975
33976 * gmon/Makefile (tests): Add tst-gmon.
33977 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33978 Set.
33979 (tests-special): Add tst-gmon-prof.out.
33980 (tst-gmon.out): Depend on clean-tst-gmon-data.
33981 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33982 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33983 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33984 startup object.
33985 * aclocal.m4 (GPROF): Set and substitute.
33986 * config.amke.in (GPROF): Set.
33987 * configure: Regenerate.
33988
33989 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33990
33991 * elf/elf.h A (NT_PPC_TAR): New macro.
33992 (NT_PPC_PPR): Likewise.
33993 (NT_PPC_DSCR): Likewise.
33994 (NT_PPC_EBB): Likewise.
33995 (NT_PPC_PMU): Likewise.
33996 (NT_PPC_TM_CGPR): Likewise.
33997 (NT_PPC_TM_CFPR): Likewise.
33998 (NT_PPC_TM_CVMX): Likewise.
33999 (NT_PPC_TM_CVSX): Likewise.
34000 (NT_PPC_TM_SPR): Likewise.
34001 (NT_PPC_TM_CTAR): Likewise.
34002 (NT_PPC_TM_CPPR): Likewise.
34003 (NT_PPC_TM_CDSCR): Likewise.
34004
34005 2017-08-15 Florian Weimer <fweimer@redhat.com>
34006
34007 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
34008 regparm (2) instead of internal_function.
34009 (_MCOUNT_DECL): Adjust.
34010
34011 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
34012
34013 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34014 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34015
34016 2017-08-14 Joseph Myers <joseph@codesourcery.com>
34017
34018 * conform/data/sys/wait.h-data (si_value): Do not expect for
34019 XPG42.
34020
34021 2017-08-14 Florian Weimer <fweimer@redhat.com>
34022
34023 [BZ #21962]
34024 NSS: Create stubs for accidentally exported lookup functions.
34025 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34026 Remove declaration.
34027 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34028 (ether_hostton): Call __nss_ethers_lookup2 instead.
34029 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34030 (ether_ntohost): Call __nss_ethers_lookup2 instead.
34031 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34032 (setup): Call __nss_netgroup_lookup2 instead.
34033 * nss/Makefile (routines): Add compat-lookup.
34034 * nss/Versions (GLIBC_2.27): Add symbol version.
34035 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
34036 (DB_COMPAT_FCT): Remove.
34037 * nss/compat-lookup.c: New file.
34038 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34039 from databases.def.
34040 * nss/service-lookup.c (NO_COMPAT): Remove definition.
34041 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34042 (netname2user): Call __nss_publickey_lookup2 instead.
34043 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34044 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34045 instead.
34046
34047 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34048 Sergei Trofimovich <slyfox@inbox.ru>
34049
34050 [BZ #21908]
34051 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34052 Rename to MMAP2_PAGE_UNIT.
34053 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34054 __OFF_T_MATCHES_OFF64_T is not defined.
34055 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34056 uint64_t.
34057 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34058 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34059
34060 2017-08-14 Florian Weimer <fweimer@redhat.com>
34061
34062 i386: Do not set internal_function.
34063 * config.h.in (USE_REGPARMS, internal_function): Remove.
34064 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34065 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34066
34067 2017-08-14 Florian Weimer <fweimer@redhat.com>
34068
34069 * elf/dl-init.c (_dl_init): Remove internal_function.
34070 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34071 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34072
34073 2017-08-14 Florian Weimer <fweimer@redhat.com>
34074
34075 * elf/rtld.c (_dl_start): Remove internal_function.
34076 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34077 _dl_start.
34078
34079 2017-08-14 Florian Weimer <fweimer@redhat.com>
34080
34081 * elf/dl-fini.c (_dl_fini): Remove internal_function
34082 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34083
34084 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
34085
34086 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34087 (bit_cpu_SHSTK): Likewise.
34088 (index_cpu_IBT): Likewise.
34089 (index_cpu_SHSTK): Likewise.
34090 (reg_IBT): Likewise.
34091 (reg_SHSTK): Likewise.
34092 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34093 Handle index_cpu_IBT and index_cpu_SHSTK.
34094
34095 2017-08-14 Mike FABIAN <mfabian@redhat.com>
34096
34097 [BZ #19982]
34098 * po/fr.po: Fix spelling mistake.
34099
34100 2017-08-13 Florian Weimer <fweimer@redhat.com>
34101
34102 * elf/dl-addr.c (_dl_addr): Remove internal_function.
34103 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34104 (_dl_catch_error, _dl_receive_error): Likewise.
34105 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34106 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34107 (_dl_deallocate_tls): Likewise.
34108 * include/dlfcn.h (_dl_addr): Likewise.
34109 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34110 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34111 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34112 Likewise.
34113
34114 2017-08-13 Florian Weimer <fweimer@redhat.com>
34115
34116 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34117 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34118 internal_function.
34119 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34120
34121 2017-08-13 Florian Weimer <fweimer@redhat.com>
34122
34123 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34124 internal_function.
34125 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34126 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34127 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34128 internal_function from _dl_make_stack_executable_hook member.
34129 (_dl_make_stack_executable): Remove internal_function.
34130 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34131 Likewise.
34132 * sysdeps/unix/sysv/linux/dl-execstack.c
34133 (_dl_make_stack_executable): Likewise.
34134
34135 2017-08-13 Florian Weimer <fweimer@redhat.com>
34136
34137 * sysdeps/unix/sysv/linux/netlinkaccess.h
34138 (__netlink_assert_response): Remove internal_function.
34139 * sysdeps/unix/sysv/linux/netlink_assert_response.c
34140 (__netlink_assert_response): Likewise.
34141
34142 2017-08-13 Florian Weimer <fweimer@redhat.com>
34143
34144 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34145 internal_function.
34146 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34147
34148 2017-08-13 Florian Weimer <fweimer@redhat.com>
34149
34150 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34151 internal_function.
34152 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34153 * inet/netgroup.h (__internal_setnetgrent)
34154 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34155 * inet/getnetgrent_r.c (__internal_setnetgrent)
34156 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34157 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34158 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34159 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34160 * nss/nsswitch.h (db_lookup_function): Likewise.
34161
34162 2017-08-13 Florian Weimer <fweimer@redhat.com>
34163
34164 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34165 Remove internal_function.
34166 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34167 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34168 message argument on the stack.
34169 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34170 Likeweise.
34171
34172 2017-08-12 Mike FABIAN <mfabian@redhat.com>
34173
34174 Adapt test case data to the changes in the thousands
34175 separators.
34176
34177 [BZ #20756]
34178 * localedata/tst-langinfo.sh: Adapt test case data.
34179 * stdlib/tst-strfmon_l.c: Likewise.
34180 * stdlib/tst-strtod4.c: Likewise.
34181 * stdlib/tst-strtod5i.c: Likewise.
34182
34183 2017-08-11 Florian Weimer <fweimer@redhat.com>
34184
34185 [BZ #21242]
34186 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34187 Suppress pedantic warning resulting from statement expression.
34188 (__ASSERT_FUNCTION): Add missing __extension__.
34189
34190 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34191
34192 * benchtests/bench-memmove-large.c: Print output in JSON
34193 format.
34194 * benchtests/bench-memmove.c: Likewise.
34195
34196 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34197 * benchtests/bench-memchr.c (do_one_test): Likewise.
34198 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34199 * benchtests/bench-memcpy.c (do_one_test): Likewise.
34200 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34201 * benchtests/bench-memmove.c (do_one_test): Likewise.
34202 * benchtests/bench-memset-large.c (do_one_test): Likewise.
34203 * benchtests/bench-memset.c (do_one_test): Likewise.
34204 * benchtests/bench-string.h (test_init): Remove memsets.
34205
34206 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34207
34208 * manual/lang.texi
34209 (Computing the Width of an Integer Data Type): Rename section to
34210 "Width of an Integer Type". Remove inaccurate statement regarding
34211 lack of C language facilities for determining width of integer
34212 types, and reorder content to improve flow and context of
34213 discussion.
34214
34215 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34216
34217 * lang.texi (va_copy): Change standard from ISO to C99.
34218 (__va_copy): Add standard and header annotation.
34219 Update description for clarity of origins and current use.
34220
34221 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34222
34223 [BZ #21941]
34224 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34225 xssqrtqp requires operands to be in Vector Registers
34226 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34227 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34228 (__ieee754_sqrtf128): Likewise.
34229
34230 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
34231
34232 * sysdeps/aarch64/memcmp.S (memcmp):
34233 Rewrite of optimized memcmp.
34234
34235 2017-08-10 Florian Weimer <fweimer@redhat.com>
34236
34237 Introduce ld.so exceptions.
34238 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34239 (_dl_exception_create, _dl_exception_create_format)
34240 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34241 (_dl_catch_exception): Declare.
34242 (_dl_catch_error): Update comment.
34243 * elf/dl-error-skeleton.c (struct catch): Replace objname,
34244 errstring, malloced members with exception member.
34245 (_dl_out_of_memory): Remove.
34246 (fatal_error): New function, extracted from _dl_signal_error.
34247 (_dl_signal_exception, _dl_signal_cexception): New functions.
34248 (_dl_signal_error): Call _dl_exception_create to allocate an
34249 exception object.
34250 (_dl_catch_exception): New function, based on _dl_catch_error.
34251 (_dl_catch_error): Implement using _dl_catch_exception.
34252 * elf/dl-exception.c: New file.
34253 * elf/Makefile (dl-routines): Add dl-exception.
34254 (elide-routines.os): Likewise.
34255 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34256 _dl_exception_create_format, _dl_exception_free.
34257 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34258 _dl_signal_exception.
34259 * elf/dl-lookup.c (make_string): Remove.
34260 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34261 _dl_signal_cexception, _dl_exception_free.
34262 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34263 _dl_signal_exception.
34264 * elf/dl-sym.c (do_sym): Likewise.
34265 * elf/dl-version.c (make_string): Remove.
34266 (match_symbol): Use _dl_exception_create_format,
34267 _dl_signal_cexception, _dl_exception_free.
34268 (_dl_check_map_versions): Likewise.
34269 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34270 _dl_catch_exception.
34271 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34272 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34273 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34274 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34275 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34276 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34277 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34278 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34279 Likewise.
34280 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34282 (ld.so): Likewise.
34283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34284 (ld.so): Likewise.
34285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34286 Likewise.
34287 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34288 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34289 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34290 Likewise.
34291 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34292 Likewise.
34293 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34294
34295 2017-08-10 Florian Weimer <fweimer@redhat.com>
34296
34297 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34298 attribute_hidden, internal_function.
34299 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34300 internal_function.
34301
34302 2017-08-10 Florian Weimer <fweimer@redhat.com>
34303
34304 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34305 function which calls __builtin_unreachable.
34306
34307 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34308
34309 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34310 Indian monetary formatting
34311 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34312 test cases.
34313
34314 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34315
34316 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34317 Fix typo in comment.
34318
34319 [BZ #21928]
34320 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34321 PTRACE_SEIZE_DEVEL): Remove.
34322 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34323 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34324 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34325 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34326 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34327
34328 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34329
34330 * posix/bits/types.h (__qaddr_t): Remove.
34331
34332 [BZ #21457]
34333 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34334 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34335 __glibc_reserved1.
34336 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34337 (ucontext_t): Use __ctx with uc_flags.
34338 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34339 (__ctxt): Likewise.
34340 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34341 __glibc_reserved1.
34342 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34343 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34344 __glibc_reserved1.
34345 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34346 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34347 __glibc_reserved1.
34348 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34349 macro.
34350 (ucontext_t): Use __ctx with uc_flags.
34351 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34352 (ucontext_t): Use __ctx with uc_flags.
34353 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34354 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34355 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34356 (ucontext_t): Use __ctx with uc_flags.
34357 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34358 undefine further down.
34359 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34360 __glibc_reserved1.
34361 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34362 undefine further down.
34363 (ucontext_t): Use __ctx with uc_flags.
34364 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34365 undefine further down.
34366 (ucontext_t): Use __ctx with uc_flags.
34367 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34368 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34369 Rename uc_pad to __glibc_reserved1.
34370 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34371 undefine further down.
34372 (ucontext_t): Use __ctx with uc_flags.
34373 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34374 further down.
34375 (ucontext_t): Use __ctx with uc_flags.
34376 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34377 __ctx with uc_flags.
34378 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34379 (ucontext_t): Use __ctx with uc_flags.
34380 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34381 __ctx with uc_flags.
34382
34383 2017-08-09 Florian Weimer <fweimer@redhat.com>
34384
34385 [BZ #21932]
34386 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34387 before early return.
34388
34389 2017-08-09 Andreas Schwab <schwab@suse.de>
34390
34391 [BZ #21041]
34392 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34393 renamed alias.
34394
34395 [BZ #21041]
34396 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34397 tst-compat-forwarder.
34398 (modules-names): Add tst-compat-forwarder-mod.
34399 ($(objpfx)tst-compat-forwarder): Depend on
34400 $(objpfx)tst-compat-forwarder-mod.so.
34401 * nptl/tst-compat-forwarder.c: New file.
34402 * nptl/tst-compat-forwarder-mod.c: New file.
34403
34404 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34405
34406 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34407 comments.
34408
34409 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34410 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34411 memcpy_falkor.
34412 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34413 Bump.
34414 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34415 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34416 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34417 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34418 Add falkor.
34419 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34420 New macro.
34421
34422 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34423
34424 [BZ #759]
34425 * manual/setjmp.texi (getcontex): Document uc_stack value
34426 compatibility differences.
34427
34428 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34429
34430 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34431 (old_malloc_hook): Likewise.
34432 (old_memalign_hook): Likewise.
34433 (old_realloc_hook): Likewise.
34434 (struct hdr): Likewise.
34435 (flood): Likewise.
34436 (freehook): Likewise.
34437 (mallochook): Likewise.
34438 (memalignhook): Likewise.
34439 (reallochook): Likewise.
34440 (mprobe): Likewise.
34441 * malloc/mtrace.c (mallwatch): Likewise.
34442 (tr_old_free_hook): Likewise.
34443 (tr_old_malloc_hook): Likewise.
34444 (tr_old_realloc_hook): Likewise.
34445 (tr_old_memalign_hook): Likewise.
34446 (tr_where): Likewise.
34447 (lock_and_info): Likewise.
34448 (tr_freehook): Likewise.
34449 (tr_mallochook): Likewise.
34450 (tr_reallochook): Likewise.
34451 (tr_memalignhook): Likewise.
34452 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34453 * misc/mmap.c (__mmap): Likewise.
34454 * misc/mmap64.c (__mmap64): Likewise.
34455 * misc/mprotect.c (__mprotect): Likewise.
34456 * misc/msync.c (msync): Likewise.
34457 * misc/munmap.c (__munmap): Likewise.
34458 * posix/posix_madvise.c (posix_madvise): Likewise.
34459 * socket/send.c (__send): Likewise.
34460 * socket/sendto.c (__sendto): Likewise.
34461 * socket/setsockopt.c (__setsockopt): Likewise.
34462 * string/memcmp.c (__ptr_t): Remove macro.
34463 (MEMCMP): Use void * instead of ptr_t.
34464 * string/memrchr.c (__ptr_t): Remove macro.
34465 (__memrchr): Use void * instead of ptr_t.
34466 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34467 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34468 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34469 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34470 * sysdeps/mach/msync.c (msync): Likewise.
34471 * sysdeps/mach/munmap.c (__munmap): Likewise.
34472 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34473 Likewise.
34474 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34475 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34476 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34477 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34478 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34479 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34480 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34481 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34482 Likewise.
34483 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34484 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34485 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34486 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34487 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34488 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34489 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34490 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34491 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34492 Likewise.
34493 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34494 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34495 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34496 (MEMCMP): Use void * instead of ptr_t.
34497 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34498 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34499
34500 2017-08-08 Florian Weimer <fweimer@redhat.com>
34501
34502 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34503 return statement.
34504
34505 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34506
34507 [BZ #21913]
34508 * csu/libc-tls.c: Include <startup.h> first.
34509 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34510 * elf/dl-tunables.c: Include <startup.h> first.
34511 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34512 * sysdeps/generic/startup.h: New file.
34513 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34514 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34515 (I386_USE_SYSENTER): New. Defined to 0.
34516
34517 2017-08-08 Andreas Schwab <schwab@suse.de>
34518
34519 [BZ #21041]
34520 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34521 * nptl/pt-system.c (system): Likewise.
34522
34523 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34524
34525 [BZ #21780]
34526 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34527 EOPNOTSUPP.
34528 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34529 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34530 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34531 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34532 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34533 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34534 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34535
34536 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34537
34538 [BZ #21899]
34539 * bits/sigaction.h (struct sigaction): Define sa_handler and
34540 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34541 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34542 [__USE_XOPEN_EXTENDED].
34543 (SA_RESTART): Likewise.
34544 (SA_NODEFER): Likewise.
34545 (SA_RESETHAND): Likewise.
34546 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34547 (struct sigaction): Define sa_handler and sa_sigaction using union
34548 also for [__USE_XOPEN_EXTENDED].
34549 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34550 [__USE_XOPEN_EXTENDED].
34551 (SA_RESTART): Likewise.
34552 (SA_NODEFER): Likewise.
34553 (SA_RESETHAND): Likewise.
34554 * sysdeps/unix/sysv/linux/bits/sigaction.h
34555 (struct sigaction): Define sa_handler and sa_sigaction using union
34556 also for [__USE_XOPEN_EXTENDED].
34557 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34558 [__USE_XOPEN_EXTENDED].
34559 (SA_RESTART): Likewise.
34560 (SA_NODEFER): Likewise.
34561 (SA_RESETHAND): Likewise.
34562 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34563 (struct sigaction): Define sa_handler and sa_sigaction using union
34564 also for [__USE_XOPEN_EXTENDED].
34565 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34566 [__USE_XOPEN_EXTENDED].
34567 (SA_RESTART): Likewise.
34568 (SA_NODEFER): Likewise.
34569 (SA_RESETHAND): Likewise.
34570 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34571 (struct sigaction): Define sa_handler and sa_sigaction using union
34572 also for [__USE_XOPEN_EXTENDED].
34573 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34574 [__USE_XOPEN_EXTENDED].
34575 (SA_RESTART): Likewise.
34576 (SA_NODEFER): Likewise.
34577 (SA_RESETHAND): Likewise.
34578 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34579 (struct sigaction): Define sa_handler and sa_sigaction using union
34580 also for [__USE_XOPEN_EXTENDED].
34581 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34582 [__USE_XOPEN_EXTENDED].
34583 (SA_RESTART): Likewise.
34584 (SA_NODEFER): Likewise.
34585 (SA_RESETHAND): Likewise.
34586 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34587 (struct sigaction): Define sa_handler and sa_sigaction using union
34588 also for [__USE_XOPEN_EXTENDED].
34589 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34590 [__USE_XOPEN_EXTENDED].
34591 (SA_RESTART): Likewise.
34592 (SA_NODEFER): Likewise.
34593 (SA_RESETHAND): Likewise.
34594 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34595 (struct sigaction): Define sa_handler and sa_sigaction using union
34596 also for [__USE_XOPEN_EXTENDED].
34597 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34598 [__USE_XOPEN_EXTENDED].
34599 (SA_RESTART): Likewise.
34600 (SA_NODEFER): Likewise. Define directly rather than as alias.
34601 (SA_RESETHAND): Likewise.
34602 (SA_INTERRUPT): Define only for [__USE_MISC].
34603 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34604 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34605 [__USE_MISC].
34606 (SA_STACK): Define only for [__USE_MISC].
34607 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34608 (struct sigaction): Define sa_handler and sa_sigaction using union
34609 also for [__USE_XOPEN_EXTENDED].
34610 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34611 [__USE_XOPEN_EXTENDED].
34612 (SA_RESTART): Likewise.
34613 (SA_NODEFER): Likewise.
34614 (SA_RESETHAND): Likewise.
34615 (SA_NOPTRACE): Define only for [__USE_MISC].
34616
34617 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34618 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34619 (struct catalog_info): Likewise.
34620 * inet/htontest.c (lo): Likewise.
34621 (foo): Likewise.
34622 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34623 * inet/inet_net.c (inet_network): Likewise.
34624 * inet/inet_netof.c (inet_netof): Likewise.
34625 * inet/rcmd.c (__ivaliduser): Likewise.
34626 (iruserok): Likewise.
34627 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34628 * locale/programs/locale-spec.c (locale_special): Likewise.
34629 * nis/nis_findserv.c (struct findserv_req): Likewise.
34630 (__nis_findfastest_with_timeout): Likewise.
34631 * nss/test-netdb.c (test_network): Likewise.
34632 * resolv/inet_neta.c (inet_neta): Likewise.
34633 * resolv/ns_date.c (ns_datetosecs): Likewise.
34634 (SECS_PER_DAY): Likewise.
34635 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34636 Likewise.
34637 * resolv/res_comp.c (__putlong): Likewise.
34638 (__putshort): Likewise.
34639 (_getlong): Likewise.
34640 (_getshort): Likewise.
34641 * resolv/res_debug.c (p_time): Likewise.
34642 (precsize_ntoa): Likewise.
34643 (precsize_aton): Likewise.
34644 (latlon2ul): Likewise.
34645 (loc_aton): Likewise.
34646 (loc_ntoa): Likewise.
34647 * resolv/res_hconf.c (struct netaddr): Likewise.
34648 (_res_hconf_reorder_addrs): Likewise.
34649 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34650 (clnttcp_control): Likewise.
34651 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34652 (clntudp_control): Likewise.
34653 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34654 (clntunix_control): Likewise.
34655 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34656 * sunrpc/rpc/auth.h (union des_block): Likewise.
34657 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34658 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34659 (xdrrec_create): Likewise.
34660 (xdrrec_endofrecord): Likewise.
34661 (flush_out): Likewise.
34662 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34663 (xdrstdio_putlong): Likewise.
34664 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34665 Likewise.
34666
34667 * misc/sys/cdefs.h (__long_double_t): Remove.
34668 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34669 instead of __long_double_t,
34670 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34671
34672 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34673
34674 * benchtests/scripts/compare_strings.py: Avoid display error when
34675 running on a text terminal.
34676
34677 * benchtests/scripts/compare_strings.py (main): Add an
34678 optional -base option.
34679 (process_results): New argument base_func.
34680
34681 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34682 hardcoding memcpy.
34683 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34684 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34685
34686 2017-08-07 Andreas Schwab <schwab@suse.de>
34687
34688 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34689 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34690 * intl/Makefile ($(objpfx)tst-gettext.out)
34691 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34692 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34693 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34694 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34695 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34696 * posix/Makefile ($(objpfx)globtest.out)
34697 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34698 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34699 ($(objpfx)tst-printf.out): Likewise.
34700 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34701 ($(objpfx)tst-setcontext3.out): Likewise.
34702
34703 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34704
34705 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34706 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34707 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34708 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34709 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34710 and mptan-fma.
34711 (CFLAGS-doasin-fma.c): New.
34712 (CFLAGS-dosincos-fma.c): Likewise.
34713 (CFLAGS-e_asin-fma.c): Likewise.
34714 (CFLAGS-e_atan2-fma.c): Likewise.
34715 (CFLAGS-e_exp-fma.c): Likewise.
34716 (CFLAGS-e_log-fma.c): Likewise.
34717 (CFLAGS-e_pow-fma.c): Likewise.
34718 (CFLAGS-halfulp-fma.c): Likewise.
34719 (CFLAGS-mpa-fma.c): Likewise.
34720 (CFLAGS-mpatan-fma.c): Likewise.
34721 (CFLAGS-mpatan2-fma.c): Likewise.
34722 (CFLAGS-mpexp-fma.c): Likewise.
34723 (CFLAGS-mplog-fma.c): Likewise.
34724 (CFLAGS-mpsqrt-fma.c): Likewise.
34725 (CFLAGS-mptan-fma.c): Likewise.
34726 (CFLAGS-s_atan-fma.c): Likewise.
34727 (CFLAGS-sincos32-fma.c): Likewise.
34728 (CFLAGS-slowexp-fma.c): Likewise.
34729 (CFLAGS-slowpow-fma.c): Likewise.
34730 (CFLAGS-s_sin-fma.c): Likewise.
34731 (CFLAGS-s_tan-fma.c): Likewise.
34732 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34733 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34734 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34735 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34736 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34737 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34738 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34739 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34740 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34741 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34742 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34743 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34744 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34745 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34746 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34747 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34748 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34749 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34750 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34751 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34752 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34753 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34754 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34755 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34756 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34757 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34758 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34759 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34760 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34761 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34762 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34763
34764 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34765
34766 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34767 (min_of_type_f): New macro.
34768 (min_of_type_): Likewise.
34769 (min_of_type_l): Likewise.
34770 (min_of_type_f128): Likewise.
34771 (min_of_type): Define using __MATH_TG and taking an expression
34772 argument.
34773 (math_check_force_underflow): Pass expression instead of type to
34774 min_of_type.
34775 (math_check_force_underflow_nonneg): Likewise.
34776
34777 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34778
34779 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34780 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34781 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34782
34783 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34784
34785 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34786 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34787 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34788 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34789 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34790 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34791 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34792 memmove_chk-nonshared and memset_chk-nonshared
34793 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34794 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34795 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34796 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34797 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34798 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34799 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34800 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34801 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34802 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34803 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34804 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34805 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34806 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34807 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34808 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34809 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34810 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34811 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34812 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34813 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34814 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34815 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34816 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34817 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34818 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34819 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34820 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34821 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34822 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34823 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34824 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34825 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34826 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34827 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34828 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34829 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34830 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34831 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34832 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34833 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34834 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34835 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34836 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34837 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34838 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34839 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34840 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34841 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34842 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34843 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34844 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34845 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34846 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34847 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34848 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34849 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34850 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34851 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34852 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34853 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34854 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34855 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34856 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34857 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34858 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34859 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34860 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34861 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34862 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34863 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34864 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34865 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34866 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34867 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34868 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34869 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34870 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34871 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34872 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34873 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34874 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34875 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34876 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34877 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34878 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34879 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34880 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34881 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34882 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34883 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34884 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34885 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34886 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34887 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34888 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34889 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34890 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34891 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34892 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34893 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34894 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34895 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34896 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34897 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34898 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34899 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34900 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34901
34902 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34903
34904 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34905 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34906 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34907 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34908 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34909 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34910 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34911 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34912 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34913 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34914 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34915 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34916 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34917 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34918 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34919 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34920 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34921 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34922 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34923 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34924 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34925 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34926 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34927 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34928 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34929 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34930 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34931 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34932 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34933 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34934 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34935 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34936 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34937 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34938 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34939 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34940 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34942 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34943 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34944 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34945 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34946 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34947 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34948 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34949 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34950 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34951 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34952 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34953 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34954 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34955 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34956 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34957 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34958 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34959 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34960 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34961 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34962 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34963 ...
34964 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34965 Don't include <sysdep.h> nor <init-arch.h>.
34966 (_ZGVbN2v_cos): Removed.
34967 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34968 ...
34969 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34970 Don't include <sysdep.h> nor <init-arch.h>.
34971 (_ZGVdN4v_cos): Removed.
34972 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34973 ...
34974 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34975 Don't include <sysdep.h> nor <init-arch.h>.
34976 (_ZGVeN8v_cos): Removed.
34977 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34978 ...
34979 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34980 Don't include <sysdep.h> nor <init-arch.h>.
34981 (_ZGVbN2v_exp): Removed.
34982 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34983 ...
34984 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34985 Don't include <sysdep.h> nor <init-arch.h>.
34986 (_ZGVdN4v_exp): Removed.
34987 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34988 ...
34989 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34990 Don't include <sysdep.h> nor <init-arch.h>.
34991 (_ZGVeN8v_exp): Removed.
34992 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34993 ...
34994 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34995 Don't include <sysdep.h> nor <init-arch.h>.
34996 (_ZGVbN2v_log): Removed.
34997 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34998 ...
34999 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
35000 Don't include <sysdep.h> nor <init-arch.h>.
35001 (_ZGVdN4v_log): Removed.
35002 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
35003 ...
35004 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
35005 Don't include <sysdep.h> nor <init-arch.h>.
35006 (_ZGVeN8v_log): Removed.
35007 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
35008 ...
35009 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35010 Don't include <sysdep.h> nor <init-arch.h>.
35011 (_ZGVbN2vv_pow): Removed.
35012 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
35013 ...
35014 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35015 Don't include <sysdep.h> nor <init-arch.h>.
35016 (_ZGVdN4vv_pow): Removed.
35017 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
35018 ...
35019 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35020 Don't include <sysdep.h> nor <init-arch.h>.
35021 (_ZGVeN8vv_pow): Removed.
35022 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
35023 ...
35024 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35025 Don't include <sysdep.h> nor <init-arch.h>.
35026 (_ZGVbN2v_sin): Removed.
35027 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
35028 ...
35029 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35030 Don't include <sysdep.h> nor <init-arch.h>.
35031 (_ZGVbN4v_sin): Removed.
35032 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
35033 ...
35034 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35035 Don't include <sysdep.h> nor <init-arch.h>.
35036 (_ZGVbN8v_sin): Removed.
35037 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
35038 ...
35039 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35040 Don't include <sysdep.h> nor <init-arch.h>.
35041 (_ZGVbN2vvv_sincos): Removed.
35042 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
35043 ...
35044 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35045 Don't include <sysdep.h> nor <init-arch.h>.
35046 (_ZGVdN4vvv_sincos): Removed.
35047 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
35048 ...
35049 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35050 Don't include <sysdep.h> nor <init-arch.h>.
35051 (_ZGVeN8vvv_sincos): Removed.
35052 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
35053 ...
35054 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35055 Don't include <sysdep.h> nor <init-arch.h>.
35056 (_ZGVeN16v_cosf): Removed.
35057 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
35058 ...
35059 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35060 Don't include <sysdep.h> nor <init-arch.h>.
35061 (_ZGVbN4v_cosf): Removed.
35062 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
35063 ...
35064 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35065 Don't include <sysdep.h> nor <init-arch.h>.
35066 (_ZGVdN8v_cosf): Removed.
35067 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
35068 ...
35069 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35070 Don't include <sysdep.h> nor <init-arch.h>.
35071 (_ZGVeN16v_expf): Removed.
35072 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
35073 ...
35074 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35075 Don't include <sysdep.h> nor <init-arch.h>.
35076 (_ZGVbN4v_expf): Removed.
35077 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
35078 ...
35079 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35080 Don't include <sysdep.h> nor <init-arch.h>.
35081 (_ZGVdN8v_expf): Removed.
35082 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
35083 ...
35084 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35085 Don't include <sysdep.h> nor <init-arch.h>.
35086 (_ZGVeN16v_logf): Removed.
35087 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
35088 ...
35089 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35090 Don't include <sysdep.h> nor <init-arch.h>.
35091 (_ZGVbN4v_logf): Removed.
35092 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
35093 ...
35094 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35095 Don't include <sysdep.h> nor <init-arch.h>.
35096 (_ZGVdN8v_logf): Removed.
35097 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
35098 ...
35099 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35100 Don't include <sysdep.h> nor <init-arch.h>.
35101 (_ZGVeN16vv_powf): Removed.
35102 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
35103 ...
35104 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35105 Don't include <sysdep.h> nor <init-arch.h>.
35106 (_ZGVbN4vv_powf): Removed.
35107 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
35108 ...
35109 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35110 Don't include <sysdep.h> nor <init-arch.h>.
35111 (_ZGVdN8vv_powf): Removed.
35112 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
35113 ...
35114 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35115 Don't include <sysdep.h> nor <init-arch.h>.
35116 (_ZGVeN16vvv_sincosf): Removed.
35117 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
35118 ...
35119 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35120 Don't include <sysdep.h> nor <init-arch.h>.
35121 (_ZGVbN4vvv_sincosf): Removed.
35122 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
35123 ...
35124 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35125 Don't include <sysdep.h> nor <init-arch.h>.
35126 (_ZGVdN8vvv_sincosf): Removed.
35127 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
35128 ...
35129 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35130 Don't include <sysdep.h> nor <init-arch.h>.
35131 (_ZGVeN16v_sinf): Removed.
35132 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
35133 ...
35134 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35135 Don't include <sysdep.h> nor <init-arch.h>.
35136 (_ZGVbN4v_sinf): Removed.
35137 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
35138 ...
35139 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35140 Don't include <sysdep.h> nor <init-arch.h>.
35141 (_ZGVdN8v_sinf): Removed.
35142
35143 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35144
35145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35146 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35147 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35148 s_rint-sse4_1 and s_rintf-sse4_1.
35149 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35150 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35151 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35152 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35153 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35154 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35155 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35156 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35157 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35158 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35159 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
35160 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35161 (__ceil): Removed.
35162 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35163 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
35164 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35165 (__ceilf): Removed.
35166 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35167 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
35168 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35169 (__floor): Removed.
35170 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35171 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
35172 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35173 (__floorf): Removed.
35174 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35175 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
35176 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35177 (__nearbyint): Removed.
35178 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35179 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
35180 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35181 (__nearbyintf): Removed.
35182 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35183 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
35184 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35185 (__rint): Removed.
35186 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35187 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
35188 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35189 (__rintf): Removed.
35190
35191 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35192
35193 * sysdeps/i386/start.S (_start): Check Check PIC instead of
35194 SHARED. Avoid dynamic relocation against main in static PIE.
35195
35196 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35197
35198 [BZ #21815]
35199 * elf/Makefile (CFLAGS-tst-prelink.c): New.
35200 (LDFLAGS-tst-prelink): Likewise.
35201
35202 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35203
35204 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35205 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35206 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35207 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35208 (INTERNAL_SYSCALL_NCS): Likewise.
35209 (LOADARGS_1): Likewise.
35210 (LOADARGS_5): Likewise.
35211 (RESTOREARGS_1): Likewise.
35212 (RESTOREARGS_5): Likewise.
35213
35214 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35215
35216 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35217 (MEMPCPY_SYMBOL): Likewise.
35218 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35219 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35220 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35221 in libc.a.
35222 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35223 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35224 Likewise.
35225 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35226 (__hidden_ver1): Don't use in libc.a.
35227 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35228 (__mempcpy): Don't create a weak alias in libc.a.
35229 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35230 libc.a.
35231 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35232 (__hidden_ver1): Don't use in libc.a.
35233
35234 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35235
35236 * config.make.in (have-insert): New.
35237 * configure.ac (libc_cv_insert): New. Set to yes if linker
35238 supports INSERT in linker script.
35239 (AC_SUBST(libc_cv_insert): New.
35240 * configure: Regenerated.
35241 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35242 if $(have-insert) == yes.
35243
35244 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35245
35246 * elf/Makefile (tests): Add vismain only if
35247 $(have-protected-data) == yes.
35248 (tests-pie): Likewise.
35249
35250 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35251
35252 [BZ #21871]
35253 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35254 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35255
35256 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35257
35258 [BZ #21790]
35259 * sysdeps/i386/i586/memset.S
35260 (__memset_zero_constant_len_parameter): Removed.
35261 * sysdeps/i386/i686/memset.S
35262 (__memset_zero_constant_len_parameter): Likewise.
35263 * sysdeps/i386/i686/multiarch/memset_chk.S
35264 (__memset_zero_constant_len_parameter): Likewise.
35265 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35266 Likewise.
35267
35268 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35269
35270 * stdlib/getentropy.c (getentropy): Change return type to int.
35271
35272 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35273
35274 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35275
35276 2017-08-03 Joseph Myers <joseph@codesourcery.com>
35277
35278 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35279 u_intN_t.
35280 * math/s_nexttowardf.c (__nexttowardf): Likewise.
35281 * sysdeps/generic/math_private.h (ieee_double_shape_type):
35282 Likewise.
35283 (ieee_float_shape_type): Likewise.
35284 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35285 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35286 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35287 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35288 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35289 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35290 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35291 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35292 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35293 Likewise.
35294 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35295 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35296 (__ieee754_yn): Likewise.
35297 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35298 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35299 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35300 Likewise.
35301 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35302 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35303 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35304 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35305 (__erfc): Likewise.
35306 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35307 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35308 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35309 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35310 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35311 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35312 Likewise.
35313 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35314 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35315 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35316 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35317 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35318 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35319 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35320 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35321 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35322 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35323 (__issignaling): Likewise.
35324 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35325 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35326 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35327 Likewise.
35328 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35329 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35330 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35331 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35332 Likewise.
35333 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35334 Likewise.
35335 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35336 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35337 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35338 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35339 (__erfcf): Likewise.
35340 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35341 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35342 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35343 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35344 Likewise.
35345 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35346 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35347 Likewise.
35348 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35349 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35350 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35351 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35352 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35353 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35354 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35355 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35356 Likewise.
35357 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35358 Likewise.
35359 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35360 Likewise.
35361 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35362 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35363 Likewise.
35364 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35365 Likewise.
35366 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35367 (__ieee754_ynl): Likewise.
35368 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35369 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35370 Likewise.
35371 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35372 Likewise.
35373 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35374 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35375 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35376 Likewise.
35377 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35378 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35379 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35380 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35381 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35382 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35383 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35384 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35385 Likewise.
35386 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35387 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35388 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35389 Likewise.
35390 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35391 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35392 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35393 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35394 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35395 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35396 Likewise.
35397 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35398 Likewise.
35399 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35400 Likewise.
35401 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35402 Likewise.
35403 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35404 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35405 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35406 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35407 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35408 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35409 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35410 Likewise.
35411 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35412 Likewise.
35413 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35414 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35415 Likewise.
35416 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35417 (__ieee754_remainderl): Likewise.
35418 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35419 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35420 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35421 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35422 Likewise.
35423 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35424 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35425 Likewise.
35426 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35427 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35428 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35429 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35430 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35431 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35432 Likewise.
35433 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35434 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35435 (__ieee754_y0l): Likewise.
35436 (pzero): Likewise.
35437 (qzero): Likewise.
35438 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35439 (__ieee754_y1l): Likewise.
35440 (pone): Likewise.
35441 (qone): Likewise.
35442 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35443 (__ieee754_ynl): Likewise.
35444 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35445 (__ieee754_lgammal_r): Likewise.
35446 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35447 Likewise.
35448 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35449 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35450 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35451 (__erfcl): Likewise.
35452 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35453 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35454 Likewise.
35455 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35456 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35457 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35458 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35459 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35460 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35461 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35462 Likewise.
35463 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35464 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35465 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35466 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35467 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35468 Likewise.
35469 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35470 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35471 Likewise.
35472 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35473 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35474 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35475 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35476 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35477
35478 2017-08-03 Florian Weimer <fweimer@redhat.com>
35479
35480 [BZ #21885]
35481 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35482 on memory allocation failure.
35483
35484 2017-08-03 Alan Modra <amodra@gmail.com>
35485
35486 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35487 tst-tlsopt-powerpc.c with function name change and no test harness.
35488 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35489 Call tls_get_addr_opt_test.
35490 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35491 (modules-names): Add mod-tlsopt-powerpc.
35492 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35493 (tst-tlsopt-powerpc): Depend on .so.
35494 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35495 define. Expand use in TLS_GD and TLS_LD.
35496
35497 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35498
35499 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35500 function.
35501 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35502
35503 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35504
35505 [BZ #21686]
35506 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35507 comparing size with that of double.
35508 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35509 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35510 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35511 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35512 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35513 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35514 unsigned __int128 types.
35515
35516 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35517
35518 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35519 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35520 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35521 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35522 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35523
35524 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35525
35526 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35527
35528 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35529
35530 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35531 of SHARED.
35532 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35533 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35534 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35535 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35536 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35537 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35538 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35539
35540 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35541
35542 [BZ #21685]
35543 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35544 bit-field expressions passed to sizeof or typeof.
35545 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35546 (__TGMATH_F128): Likewise.
35547 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35548 (__TGMATH_CF128): Likewise.
35549 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35550 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35551 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35552 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35553 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35554 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35555 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35556 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35557 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35558 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35559 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35560 (__TGMATH_UNARY_IMAG): Likewise.
35561 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35562 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35563 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35564 type.
35565 (define_vars_for_type): Handle bit_field type specially.
35566 (Tests.__init__): Declare structure with bit-field element.
35567
35568 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35569
35570 [BZ #21791]
35571 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35572 (MEMCPY_CHK): Define only if SHARED is defined.
35573 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35574 Likewise.
35575 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35576 Likewise.
35577
35578 See ChangeLog.18 for earlier changes.