]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc: Use generic e_expf
[thirdparty/glibc.git] / ChangeLog
1 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
5 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
6 file.
7 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
8 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
9 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
10 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
11 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
12
13 * sysdeps/powerpc/powerpc32/fpu/Makefile
14 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
15 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
16 and fctidz optimization.
17 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
18 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
19 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
20 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
21 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
22 CFLAGS-s_lround-power5+.c): New rule.
23 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
24 New file.
25 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
26 Likewise.
27 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
28 Likewise.
29 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
30 Likewise.
31 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
32 Likewise.
33 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
34 Remove file.
35 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
36 Likewise.
37 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
38 Likewise.
39 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40 Likewise.
41 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
42 Likewise.
43 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
44 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
45 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
47 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
48 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
50
51 2019-06-26 Vincent Chen <vincentc@andestech.com>
52
53 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
54 specific system calls, fp_udfiex_crtl and udftrap.
55
56 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
57
58 * nptl/tst-eintr1.c (tf1): Add return statement.
59 (do_test): Remove unused th variable.
60
61 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
62
63 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
64 Return error if get_character fails.
65
66 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
67
68 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
69
70 2019-06-24 Rafal Luzynski <digitalfreak@lingonborough.com>
71
72 [BZ #24652]
73 * localedata/locales/szl_PL (day): Use the correct Unicode
74 sequences instead of non-ASCII characters.
75
76 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
77
78 [BZ #24652]
79 * localedata/locales/szl_PL (abday): Spelling corrections.
80 (day): Likewise.
81 (abmon): Likewise.
82 (mon): Rename to...
83 (alt_mon): This, then apply spelling corrections.
84 (mon): New entry, month names in the genitive case.
85
86 2019-06-21 Rafal Luzynski <digitalfreak@lingonborough.com>
87
88 [BZ #23831]
89 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
90 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
91 (thousands_sep): Likewise.
92 (grouping): Set to 3;3.
93
94 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
95
96 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
97 PREPARE_VERSION_KNOWN.
98 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
99 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
100 define.
101 (VDSO_HASH_LINUX_2_6_39): Likewise.
102 (VDSO_NAME_LINUX_4_9): Likewise.
103 (VDSO_HASH_LINUX_4_9): Likewise.
104 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
105 * sysdeps/unix/sysv/linux/powerpc/init-first.c
106 (_libc_vdso_platform_setup): Likewise.
107 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
108 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
109 Likewise.
110 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
111 Likewise.
112
113 2019-06-20 Mike Crowe <mac@mcrowe.com>
114
115 * nptl/eintr.c: Use libsupport.
116 * nptl/tst-eintr1.c: Likewise.
117 * nptl/tst-eintr2.c: Likewise.
118 * nptl/tst-eintr3.c: Likewise.
119 * nptl/tst-eintr4.c: Likewise.
120 * nptl/tst-eintr5.c: Likewise.
121 * nptl/tst-mutex-errorcheck.c: Likewise.
122 * nptl/tst-mutex5.c: Likewise.
123
124 * support/test-driver.h: Add verbose_printf macro.
125
126 * support/xtime.h: Add xclock_now() helper function.
127
128 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
129 Florian Weimer <fweimer@redhat.com>
130
131 [BZ #24228]
132 * libio/genops.c (_IO_unbuffer_all)
133 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
134 buffers and access _IO_FILE_complete members of legacy libio streams.
135 * libio/tst-bz24228.c: New file.
136 * libio/tst-bz24228.map: Likewise.
137 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
138 [build-shared] (generated): Add tst-bz24228.mtrace and
139 tst-bz24228.check.
140 [run-built-tests && build-shared] (tests-special): Add
141 $(objpfx)tst-bz24228-mem.out.
142 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
143 ($(objpfx)tst-bz24228-mem.out): New rule.
144
145 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
146
147 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
148 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
149 (__FPU_MFFSL): Likewise.
150 (_FPU_SETCW): Likewise.
151
152 2019-06-19 Stan Shebs <stanshebs@google.com>
153 Raoni Fassina Firmino <raoni@linux.ibm.com>
154
155 [BZ #24640]
156 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
157 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
158 static-linking version.
159 * sysdeps/unix/sysv/linux/powerpc/Makefile
160 (tests-static): Add test-gettimebasefreq-static.
161 (tests): Likewise.
162 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
163 New file.
164
165 2019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
166
167 [BZ #24614]
168 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
169 between the currency symbol and the minus sign).
170 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
171
172 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
173
174 [BZ #24556]
175 * string/test-strcasestr.c (check_result): Add NULL check.
176 * nss/tst-field.c (check_rewrite): Likewise.
177 * benchtests/bench-strstr.c (do_one_test): Likewise.
178 * string/test-strstr.c (check_result): Likewise.
179 * argp/argp-test.c (popt): Increase size of buf to 12.
180 * benchtests/bench-malloc-simple.c (bench):
181 Do not initialize tests array out of bounds.
182
183 2019-06-19 Florian Weimer <fweimer@redhat.com>
184
185 [BZ #24166]
186 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
187 dls_serpath field.
188
189 2019-06-18 Florian Weimer <fweimer@redhat.com>
190
191 [BZ #24323]
192 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
193 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
194 fail when called from dlopen.
195 * elf/Makefile [have-fpie && build-shared] (tests): Add
196 tst-dlopen-pie.
197 (tst-dlopen-pie): Link with -ldl.
198 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
199 * elf/tst-dlopen-pie.c (do_test): New file.
200
201 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
202
203 [BZ #24614]
204 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
205 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
206 between the currency symbol and the minus sign).
207 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
208 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
209
210 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
211
212 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
213 sysdep-rtld-routines): Remove rules.
214 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
215 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
216 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
217 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
218 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
219 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
220 vDSO path for SHARED.
221 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
222 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
223 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
224 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
225 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
226 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
227
228 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
229 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
230 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
231 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
232 CFLAGS-s_llround-power5+.c): New rule.
233 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
234 New file.
235 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
236 Likewise.
237 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
238 Likewise.
239 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
240 Likewise.
241 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
242 Likewise.
243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
244 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
246 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
248 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
249 * sysdeps/powerpc/powerpc64/fpu/Makefile
250 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
251 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
252 (libm-sysdep_routines): Remove s_llround-* objects.
253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
254 file.
255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
256 Likewise.
257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
258 Likewise.
259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
260 Likewise.
261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
262 Likewise.
263 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
264 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
265 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
266 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
267 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
268 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
269 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
270 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
271 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
272 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
273 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
274 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
275 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
276 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
277
278 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
279 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
280 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
281 * sysdeps/powerpc/powerpc32/fpu/Makefile
282 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
283 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
284 optimization.
285 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
286 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
287 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
288 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
289 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
290 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
291 CFLAGS-s_lrint-ppc32.c): New rule.
292 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
293 Remove file.
294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
295 Likewise.
296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
297 Likewise.
298 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
299 Likewise.
300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
301 Likewise.
302 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
303 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
304 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
305 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
307 New file.
308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
309 Likewise.
310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
311 Likewise.
312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
313 Likewise.
314 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
315 Likewise.
316
317 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
318 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
319 s_llrint-ppc64.
320 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
321 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
322 file.
323 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
324 Likewise.
325 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
326 Likewise.
327 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
328 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
330 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
332 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
333 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
334 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
335 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
336 (libm-sysdep_routines): Remove s_llrint-* objects.
337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
338 file.
339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
340 Likewise.
341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
342 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
343 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
344 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
345 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
346 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
347 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
348 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
349 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
350 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
351
352 2019-06-14 Florian Weimer <fweimer@redhat.com>
353
354 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
355 argument to __glibc_has_include to inhibit macro expansion.
356
357 2019-06-14 Florian Weimer <fweimer@redhat.com>
358
359 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
360 function-like macro, so that __has_include can inhibit expansion
361 of its argument.
362
363 2019-06-13 Joseph Myers <joseph@codesourcery.com>
364
365 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
366 New macro.
367
368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
369 Allow memset in libc.so.
370
371 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
372
373 * sysdeps/aarch64/dl-dtprocnum.h: New file.
374 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
375 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
376 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
377 symbols at load time.
378 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
379
380 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
381
382 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
383 (DT_AARCH64_VARIANT_PCS): Define.
384
385 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
386
387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
388 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
389 objects.
390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
391 Remove file.
392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
393 Likewise.
394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
396 Likewise.
397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
398 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
399 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
400 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
401 Remove s_finite* objects.
402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
405 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
408 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
409 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
410 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
411 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
412
413 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
414 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
415
416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
417 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
418 objects.
419 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
420 Remove file.
421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
422 Likewise.
423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
425 Likewise.
426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
427 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
428 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
429 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
430 Remove s_isinf* and s_isinf* objects.
431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
437 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
438 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
439 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
440 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
441
442 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
443 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
444
445 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
446 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
447 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
448 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
449 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
450 s_isnanf-* objects.
451 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
452 Remove file
453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
454 Likewise.
455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
456 Likewise.
457 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
458 Likewise.
459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
461 Likewise.
462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
463 Likewise.
464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
465 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
466 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
467 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
468 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
469 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
470 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
471 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
472 Remove s_isnan-* and s_isnanf-* objects.
473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
476 Likewise.
477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
482 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
483 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
484 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
485 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
486 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
487 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
488 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
489 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
490
491 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
492 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
493
494 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
495 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
496 CFLAGS-bench-isfinite.c): New rule.
497 * benchtests/isnan-input: New file.
498 * benchtests/isinf-input: New file.
499 * benchtests/isfinite-input: New file.
500
501 * sysdeps/powerpc/fpu/s_copysign.c: New file.
502 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
503 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
504 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
506 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
507 s_copysign-ppc32.
508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
509 Remove file.
510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
511 Likewise.
512 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
513 Likewise.
514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
515 Likewise.
516 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
517 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
518 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
519 Remove s_copysign-power6 s_copysign-ppc64.
520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
521 Remove file.
522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
523 Likewise.
524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
526 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
527 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
528 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
529 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
530
531 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
532 round_to_integer_float, round_mode): Add RINT handling.
533 (reset_fenv_mode): New symbol.
534 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
535 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
536 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
537 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
538 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
539 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
540
541 2019-06-12 Florian Weimer <fweimer@redhat.com>
542
543 [BZ #24632]
544 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
545 * libio/freopen.c (freopen): Use it.
546
547 2019-06-12 Florian Weimer <fweimer@redhat.com>
548
549 Linux: Deprecate sysctl.
550 * include/sysctl.h (__sysctl): Remove declaration.
551 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
552 check.
553 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
554 (sysctl): Add deprecation attribute.
555 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
556 directly, to avoid the deprecation warning. Do not include
557 <string.h>.
558 (__sysctl): Remove hidden alias.
559
560 2019-06-12 Florian Weimer <fweimer@redhat.com>
561
562 Linux: Use kernel headers for statx definitions if available.
563 * include/bits/statx-generic.h: New file.
564 * include/bits/types/struct_statx.h: Likewise.
565 * include/bits/types/struct_statx_timestamp.h: Likewise.
566 * io/Makefile (headers): Add bits/statx-generic.h.
567 * io/bits/statx-generic.h: New file. Partly copied from
568 io/bits/statx.h.
569 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
570 define original_statx.
571 * io/bits/types/struct_statx.h: Likewise.
572 * io/bits/types/struct_statx_timestamp.h: Likewise.
573 (statx_generic): Use original_statx.
574 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
575 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
576
577 2019-06-12 Florian Weimer <fweimer@redhat.com>
578
579 * misc/sys/cdefs.h (__glibc_has_include): Define.
580
581 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
582
583 * string/memmem.c (__memmem): Rewrite to improve performance.
584
585 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
586
587 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
588 warning.
589 (two_way_long_needle): Block inlining.
590 * string/strstr.c (strstr2): Add new function.
591 (strstr3): Likewise.
592 (STRSTR): Completely rewrite strstr to improve performance.
593
594 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
595
596 * benchtests/bench-strstr.c (test_hard_needle): New function.
597
598 2019-06-10 Joseph Myers <joseph@codesourcery.com>
599
600 * malloc/tst-calloc.c: Include <libc-diag.h>.
601 (null_test): Ignore -Wunused-result around calls to calloc.
602 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
603 (do_test): Ignore -Wunused-result around call to malloc.
604
605 2019-06-07 Florian Weimer <fweimer@redhat.com>
606
607 Linux: Add getdents64 system call.
608 * include/dirnent.h (getdents): Add comment and change buffer
609 argument type to void *.
610 (getdents64): Likewise. Add hidden prototype.
611 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
612 getdents64.
613 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
614 Add tst-getdents64.
615 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
616 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
617 argument type to void *.
618 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
619 Add hidden definition and getdents64 alias.
620 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
621 Likewise.
622 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
623 * manual/filesys.texi (Accessing Directories): Add Low-level
624 Directory Access node reference.
625 (Opening a Directory): Cross-reference it.
626 (Low-level Directory Access): New node.
627 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
628 getdents64.
629 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
630 Likewise.
631 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
632 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
633 Likewise.
634 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
635 Likewise.
636 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
637 Likewise.
638 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
639 Likewise.
640 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
641 Likewise.
642 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
643 Likewise.
644 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
645 Likewise.
646 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
647 (GLIBC_2.30): Likewise.
648 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
649 (GLIBC_2.30): Likewise.
650 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
651 (GLIBC_2.30): Likewise.
652 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
653 (GLIBC_2.30): Likewise.
654 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
655 Likewise.
656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
657 (GLIBC_2.30): Likewise.
658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
659 (GLIBC_2.30): Likewise.
660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
661 (GLIBC_2.30): Likewise.
662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
663 (GLIBC_2.30): Likewise.
664 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
665 Likewise.
666 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
667 Likewise.
668 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
669 Likewise.
670 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
671 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
672 Likewise.
673 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
674 Likewise.
675 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
676 Likewise.
677 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
678 Likewise.
679
680 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
681
682 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
683 (__FPU_MFFS): New.
684 (__FPU_MFFSL): New.
685 (_FPU_GET_RC): New.
686 (_FPU_GETCW): Use __FPU_MFFS().
687 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
688
689 2019-06-06 Florian Weimer <fweimer@redhat.com>
690
691 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
692 internal GCC preprocessor identifier __has_include__.
693
694 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
695
696 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
697 with call to equivalent function.
698
699 2019-06-04 Florian Weimer <fweimer@redhat.com>
700
701 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
702 (do_release_shlib): Adjust for __twalk_r.
703 (__gconv_release_shlib): Call __twalk_r.
704
705 2019-06-04 Andreas Schwab <schwab@suse.de>
706
707 [BZ #18830]
708 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
709 no irreversible characters occurred.
710 * iconv/gconv_simple.c (internal_ucs4_loop)
711 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
712 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
713 (ucs4_internal_loop_single, internal_ucs4le_loop)
714 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
715 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
716 (ucs4le_internal_loop_single): Add const to outend.
717 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
718 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
719 * iconv/Makefile (tests): Add tst-iconv7.
720 * iconv/tst-iconv7.c: New file.
721
722 2019-06-03 Joseph Myers <joseph@codesourcery.com>
723
724 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
725
726 2019-06-01 Florian Weimer <fweimer@redhat.com>
727
728 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
729 * sysdeps/unix/sysv/linux/arm/Makefile
730 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
731 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
732 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
733 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
734 compatibility symbols.
735
736 2019-05-31 Florian Weimer <fweimer@redhat.com>
737
738 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
739 system calls for the arm architecture: breakpoint, get_tls,
740 set_tls, usr26, usr32.
741
742 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
743
744 * sysdeps/powerpc/Makefile
745 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
746 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
747 Declare '.machine power7' to get support for ldbrx.
748 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
749 directive based on the directory of the file.
750 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
751 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
752 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
753 '.machine' directive.
754 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
755 (VADDUQM_V7_V8): Remove.
756 (__STRCASECMP): Replace macros with actual instructions.
757 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
758 '.machine' directive.
759 (VCLZD_V8_v7): Remove.
760 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
761
762 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
763
764 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
765 Remove file.
766 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
767
768 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
769
770 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
771 NEARBYINT handling.
772 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
773 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
774 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
775 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
776 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
777 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
778
779 2019-05-28 mansayk <6688000@gmail.com>
780
781 [BZ #24370]
782 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
783
784 2019-05-28 mansayk <6688000@gmail.com>
785
786 [BZ #24369]
787 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
788 (abmon): Likewise, but remove the trailing dots.
789
790 2019-05-28 Joseph Myers <joseph@codesourcery.com>
791
792 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
793
794 2019-05-27 Florian Weimer <fweimer@redhat.com>
795
796 * nptl/nptl-init.c: Add comment.
797
798 2019-05-24 Florian Weimer <fweimer@redhat.com>
799
800 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
801 struct in_addr/struct in6_addr alignment.
802
803 2019-05-23 Joseph Myers <joseph@codesourcery.com>
804
805 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
806 (F_SEAL_FUTURE_WRITE): New macro.
807
808 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
809
810 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
811 * elf/tst-ldconfig-bad-aux-cache.c: New file.
812 * elf/tst-ldconfig_aux-cache.root: New directory.
813 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
814 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
815 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
816
817 2019-05-22 Zack Weinberg <zackw@panix.com>
818
819 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
820 host type.
821 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
822 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
823
824 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
827 Delete.
828
829 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
830 Issue an #error if used with a compiler in SPE-float mode.
831 * sysdeps/powerpc/powerpc32/__longjmp_common.S
832 * sysdeps/powerpc/powerpc32/setjmp_common.S
833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
839 Remove code to preserve SPE register state.
840
841 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
842 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
843 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
844 Remove __SPE__ ifndefs.
845
846 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
847
848 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
849 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
850 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
851 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
852 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
853 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
854 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
855 (INNER_LOOP_ITERS_MEDIUM): New define.
856 (INNER_LOOP_ITERS_SMALL): New define.
857 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
858 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
859 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
860 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
861 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
862
863 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
864
865 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
866 New define.
867 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
868 (SEMTIMEDOP_IPC_ARGS): Likewise.
869
870 2019-05-21 Florian Weimer <fweimer@redhat.com>
871
872 [BZ #24584]
873 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
874 before updating __counter field and release it afterwards. Add
875 overflow check.
876 * iconv/gconv.h (struct __gconv_step): Mention synchronization
877 requirement for __counter member.
878
879 2019-05-21 Florian Weimer <fweimer@redhat.com>
880
881 [BZ #24583]
882 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
883 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
884 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
885 instead of __gconv_release_step.
886 * libio/Makefile (tests): Add tst-wfile-gconv.
887 (tests-container): Add tst-wfile-ascii.
888 (tst-wfile-gconv-ENV): Enable mtrace.
889 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
890 (tests-special): Add tst-wfile-gconv-mem.out.
891 (tst-wfile-gconv.out): Depend on locales.
892 (tst-wfile-gconv-mem.out): Add mtrace rule.
893 * libio/tst-wfile-ascii.c: New file.
894 * libio/tst-wfile-gconv.c: Likewise.
895
896 2019-05-20 Florian Weimer <fweimer@redhat.com>
897
898 [BZ #24588]
899 libio: Remove codecvt vtable.
900 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
901 __libio_codecvt.
902 * libio/iofgetpos.c (_IO_new_fgetpos): Call
903 __libio_codecvt_encoding.
904 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
905 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
906 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
907 * libio/iofwide.c (__libio_codecvt): Remove variable.
908 (_IO_fwide): Do not copy __libio_codecvt.
909 (__libio_codecvt_out): Rename from do_out and export.
910 (do_unshift): Remove function.
911 (__libio_codecvt_in): Rename from do_in and export.
912 (__libio_codecvt_encoding): Rename from do_encoding and export.
913 (do_always_noconv): Remove function.
914 (__libio_codecvt_length): Rename from do_length and export.
915 (do_max_length): Remove function.
916 * libio/libio.h (enum __codecvt_result): Remove definition; moved
917 to libioP.h.
918 (struct _IO_codecvt): Remove fields __codecvt_destr,
919 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
920 __codecvt_do_encoding, __codecvt_do_always_noconv,
921 __codecvt_do_length, __codecvt_do_max_length.
922 * libio/libioP.h (enum __codecvt_result): Define; moved from
923 libio.h.
924 (__libio_codecvt_out, __libio_codecvt_in)
925 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
926 functions.
927 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
928 (_IO_wfile_underflow): Call __libio_codecvt_in.
929 (_IO_wfile_underflow): Likewise.
930 (_IO_wfile_underflow_mmap): Likewise.
931 (_IO_wfile_sync): Call __libio_codecvt_encoding,
932 __libio_codecvt_length.
933 (adjust_wide_data): Call __libio_codecvt_encoding,
934 __libio_codecvt_in.
935 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
936 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
937 __libio_codecvt_length.
938
939 2019-05-20 Florian Weimer <fweimer@redhat.com>
940
941 * support/support.h (support_sbindir_prefix): Declare.
942 (support_install_rootsbindir): Update comment.
943 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
944 * support/support_paths.c (support_sbindir_prefix): Define.
945
946 2019-05-20 Mike Crowe <mac@mcrowe.com>
947
948 * support/timespec.c: Add backslash to correct newline in failure
949 message.
950
951 * support/timespec.h: Correct confusing comment.
952
953 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
954
955 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
956 define.
957 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
958 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
959 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
960 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
961
962 [BZ #24570]
963 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
964 usage.
965
966 2019-05-20 Joseph Myers <joseph@codesourcery.com>
967
968 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
969 (NT_ARM_PACG_KEYS): Likewise.
970
971 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
972
973 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
974 (tcache_put): Remove redundant assert.
975 (tcache_get): Remove redundant asserts.
976 (__libc_malloc): Check tcache count is not zero.
977 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
978
979 2019-05-17 Florian Weimer <fweimer@redhat.com>
980
981 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
982
983 2019-05-16 Joseph Myers <joseph@codesourcery.com>
984
985 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
986 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
987 0x050100].
988 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
989 Likewise.
990 * sysdeps/unix/sysv/linux/sh/kernel-features.h
991 (__ASSUME_STATX): Likewise.
992
993 2019-05-16 Florian Weimer <fweimer@redhat.com>
994
995 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
996 flags argument.
997 (LINE_PARSER): Do not map IPv4 addresses.
998 (internal_nis_gethostent_r): Remove flags argument. Adjust call
999 to parse_line.
1000 (_nss_nis_gethostent_r): Always pass AF_INET to
1001 internal_nis_gethostent_r.
1002 (internal_gethostbyname2_r): Remove flags argument. Adjust call
1003 to parse_line.
1004 (_nss_nis_gethostbyname2_r): Adjust call to
1005 internal_nis_gethostent_r.
1006 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
1007 call to internal_nis_gethostent_r.
1008 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
1009 from parse_line.
1010 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
1011 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1012 Remove flags argument. Do not map IPv4 addresses.
1013 (internal_nisplus_gethostent_r): Adjust call to
1014 _nss_nisplus_parse_hostent.
1015 (internal_gethostbyname2_r): Remove flags argument. Adjust call
1016 to _nss_nisplus_parse_hostent.
1017 (_nss_nisplus_gethostbyname2_r): Adjust call to
1018 internal_gethostbyname2_r.
1019 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
1020 Adjust call to internal_gethostbyname2_r.
1021 (_nss_nisplus_gethostbyaddr_r): Adjust call to
1022 _nss_nisplus_parse_hostent.
1023 (_nss_nisplus_gethostbyname4_r): Adjust call to
1024 internal_gethostbyname2_r.
1025
1026 2019-05-16 Florian Weimer <fweimer@redhat.com>
1027
1028 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
1029 Remove flags.
1030 (LINE_PARSER): Remove address mapping.
1031 (EXTRA_ARGS_VALUE): Remove flags argument.
1032 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
1033 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
1034 gethostbyname3_multi.
1035 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
1036 _nss_files_gethostbyname3_r.
1037 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
1038
1039 2019-05-16 Florian Weimer <fweimer@redhat.com>
1040
1041 * support/support_test_compare_blob.c (report_blob): Report
1042 incorrect NULL blobs.
1043
1044 2019-05-15 Mark Wielaard <mark@klomp.org>
1045
1046 [BZ# 24476]
1047 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
1048 __libc_once_get (once) and static_buf == NULL.
1049 (__dlerror): Check we have a valid key, set result to static_buf
1050 otherwise.
1051
1052 2019-05-15 Andreas Schwab <schwab@suse.de>
1053
1054 [BZ #20568]
1055 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
1056 __codecvt_do_length.
1057 * libio/Makefile (tests): Add tst-wfile-sync.
1058 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
1059 * libio/tst-wfile-sync.c: New file.
1060 * libio/tst-wfile-sync.input: New file.
1061
1062 2019-05-15 Florian Weimer <fweimer@redhat.com>
1063
1064 nss: Turn __nss_database_lookup into a compatibility symbol.
1065 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
1066 __nss_database_lookup.
1067 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
1068 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
1069 __nss_database_lookup.
1070 (__nss_next): Move to …
1071 * nss/compat-lookup.c (nss_next): … here. Change it to fail
1072 unconditionally.
1073 (__nss_database_lookup): New function.
1074 * nss/Versions (GLIBC_2.0): Update comment.
1075 (GLIBC_PRIVATE): Export __nss_database_lookup2.
1076 * grp/initgroups.c (internal_getgrouplist): Call
1077 __nss_database_lookup2 instead of __nss_database_lookup.
1078 * nscd/aicache.c (addhstaiX): Likewise.
1079 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1080 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
1081 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
1082 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
1083 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
1084 Likewise.
1085 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
1086 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
1087 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1088
1089 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
1090
1091 * support/support.h (support_install_rootsbindir): New variable.
1092 * support/support_paths.c: Likewise.
1093 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
1094
1095 2019-05-15 Florian Weimer <fweimer@redhat.com>
1096
1097 * iconv/gconv.h (__gconv_transliterate): Move declaration …
1098 * iconv/gconv_int.h (__gconv_transliterate): … here.
1099 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
1100 * iconv/skeleton.c: Likewise.
1101
1102 2019-05-14 Florian Weimer <fweimer@redhat.com>
1103
1104 Linux: Add the tgkill function.
1105 * bits/signal_ext.h: New file.
1106 * manual/signal.texi (Signaling Another Process): Document tgkill.
1107 * signal/Makefile (headers): Add bits/signal_ext.h.
1108 * signal/signal.h: Include <bits/signal_ext.h>.
1109 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
1110 (tst-tgkill): Link with libpthread.
1111 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
1112 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
1113 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
1114 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
1115 tgkill.
1116 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1117 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1118 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1119 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1120 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1121 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1122 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1123 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1124 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1125 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1126 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
1127 Likewise.
1128 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1129 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1130 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1132 Likewise.
1133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1134 Likewise.
1135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
1136 Likewise.
1137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
1138 Likewise.
1139 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1140 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1141 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1142 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1143 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1144 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1145 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1146 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1147
1148 2019-05-14 Carlos O'Donell <carlos@redhat.com>
1149
1150 * manual/search.texi (Tree Search Function): Adjust twalk_r
1151 documentation.
1152
1153 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1154
1155 [BZ #24544]
1156 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1157 pre-defined value.
1158
1159 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1160 * support/support.h (support_bindir_prefix): New variable.
1161 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1162
1163 * config.make.in (bindir): New variable.
1164
1165 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1166 (lll_trylock): Call __lll_trylock.
1167 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1168 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1169 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1170 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1171 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1172 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1173 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1174 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1175 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1176 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1177 lowlevellock-futex.h.
1178
1179 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1180 initialization for LLL_LOCK_INITIALIZER different than 0.
1181 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1182 Assume LLL_LOCK_INITIALIZER being 0.
1183 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1184 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1185 Likewise.
1186 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1187 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1188
1189 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1190 Optimize futex call and add systemtap probe.
1191
1192 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1193 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1194 __libc_disable_asynccancel, __librt_enable_asynccancel,
1195 __libc_disable_asynccancel, __librt_enable_asynccancel,
1196 __librt_disable_asynccancel): Move to ...
1197 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1198 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1199 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1200 * sysdeps/generic/single-thread.h: New file.
1201 * sysdeps/unix/sysdep.h: Include single-thread.h.
1202 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1203 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1204
1205 2019-05-08 Mike FABIAN <mfabian@redhat.com>
1206
1207 [BZ #24535]
1208 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1209 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1210 Unicode 12.1.0.
1211 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1212 * localedata/unicode-gen/PropList.txt: Likewise.
1213 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1214 * localedata/charmaps/UTF-8: Regenerate.
1215 * localedata/locales/i18n_ctype: Likewise.
1216 * localedata/locales/tr_TR: Likewise.
1217 * localedata/locales/translit_circle: Likewise.
1218 * localedata/locales/translit_cjk_compat: Likewise.
1219 * localedata/locales/translit_combining: Likewise.
1220 * localedata/locales/translit_compat: Likewise.
1221 * localedata/locales/translit_font: Likewise.
1222 * localedata/locales/translit_fraction: Likewise.
1223
1224 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1225
1226 [BZ #24531]
1227 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1228 (do_set_tcache_count): Only update if count is small enough.
1229 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1230
1231 2019-05-10 Florian Weimer <fweimer@redhat.com>
1232
1233 * nptl/sem_close.c (struct walk_closure): Define.
1234 (walker): Adjust for __twalk_r.
1235 (sem_close): Call __twalk_r.
1236
1237 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1238
1239 * support/timespec.c (test_timespec_before_impl,
1240 test_timespec_equal_or_after_impl): print timespec member as intmax_t
1241 insted of long int.
1242
1243 2019-05-09 Mike Crowe <mac@mcrowe.com>
1244
1245 * nptl/tst-abstime.c: Use libsupport.
1246
1247 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1248 small bug where only tv.tv_usec was checked which could cause an
1249 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1250 than a second.
1251
1252 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1253 libsupport.
1254
1255 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1256 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1257
1258 * nptl/tst-cond11.c: Use libsupport.
1259
1260 * support/timespec.h: New file. Provide timespec helper functions
1261 along with macros in the style of those in check.h.
1262 * support/timespec.c: New file. Implement check functions declared
1263 in support/timespec.h.
1264 * support/timespec-add.c: New file from gnulib containing
1265 timespec_add implementation that handles overflow.
1266 * support/timespec-sub.c: New file from gnulib containing
1267 timespec_sub implementation that handles overflow.
1268 * support/README: Mention timespec.h.
1269
1270 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
1271
1272 [BZ #24537]
1273 * nptl/Makefile: Move tst-eintr1 to xtests.
1274
1275 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1276
1277 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1278 TRUNC handling.
1279 (round_mode): Add definition for TRUNC.
1280 * sysdeps/powerpc/fpu/s_trunc.c: New file.
1281 * sysdeps/powerpc/fpu/s_truncf.c: New file.
1282 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1283 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1284 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1285 Likewise.
1286 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1287 Likewise.
1288 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1289 Likewise.
1290 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1291 Likewise.
1292 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1293 file.
1294 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1295 Likewise.
1296 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1297 Likewise.
1298 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1299 Likewise.
1300 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1301 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1302 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1303 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1304 s_truncf-power5+, and s_truncf-ppc64.
1305 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1306 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1307 file.
1308 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1310 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1311 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1312 file.
1313 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1314 Likewise.
1315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1316 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1317 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1318 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1319 s_truncf-power5+, and s_truncf-ppc64.
1320 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1321 file.
1322 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1323 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1324 Likewise.
1325 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1326 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1327 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1328 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1329 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1330
1331 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1332 ROUND handling.
1333 (round_mode): Add definition for ROUND.
1334 (round_to_integer_float): Likewise.
1335 * sysdeps/powerpc/fpu/s_round.c: New file.
1336 * sysdeps/powerpc/fpu/s_roundf.c: New file.
1337 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1338 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1339 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1340 Likewise.
1341 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1342 Likewise.
1343 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1344 Likewise.
1345 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1346 Likewise.
1347 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1348 file.
1349 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1350 Likewise.
1351 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1352 Likewise.
1353 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1354 Likewise.
1355 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1356 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1357 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1358 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1359 s_roundf-power5+, and s_roundf-ppc64.
1360 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1361 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1362 file.
1363 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1365 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1366 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1367 file.
1368 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1369 Likewise.
1370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1371 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1372 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1373 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1374 s_roundf-power5+, and s_roundf-ppc64.
1375 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1376 file.
1377 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1378 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1379 Likewise.
1380 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1381 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1382 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1383 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1384 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1385
1386 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1387 Add FLOOR option.
1388 (round_mode): Add definition for FLOOR.
1389 * sysdeps/powerpc/fpu/s_floor.c: New file.
1390 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1391 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1392 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1393 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1394 Remove file.
1395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1396 Likewise
1397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1398 Likewise.
1399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1400 Likewise.
1401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1402 New file.
1403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1404 Likewise.
1405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1406 Likewise.
1407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1408 Likewise.
1409 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1410 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1411 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1412 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1413 s_floorf-power5+, and s_floorf-ppc64.
1414 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1415 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1416 file.
1417 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1419 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1420 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1421 file.
1422 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1423 Likewise.
1424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1425 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1426 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1427 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1428 s_floorf-power5+, and s_floorf-ppc64.
1429 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1430 file.
1431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1432 file.
1433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1434 Likewise.
1435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1436 Likewise.
1437 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1438 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1439 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1440 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1441
1442 2019-05-08 Mike Crowe <mac@mcrowe.com>
1443
1444 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1445 clock_gettime wrapper for use in tests that fails the test rather
1446 than returning failure.
1447
1448 * support/xtime.h: New file to declare xclock_gettime.
1449
1450 * support/Makefile: Add xclock_gettime.c.
1451
1452 * support/README: Mention xtime.h.
1453
1454 2019-05-08 Florian Weimer <fweimer@redhat.com>
1455
1456 malloc/tst-mallocfork2: Use process-shared barriers.
1457 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1458 (signal_count, sigusr1_sender_pid): Remove.
1459 (iterations): Define constant.
1460 (shared): New variable.
1461 (sigusr1_received): Update comment.
1462 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1463 (signal_sender): Optional use barriers to avoid sending signals
1464 during irrelevant times.
1465 (do_it): Initialize variable shared. Use xfork for error
1466 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1467 the iteration count, independent of signal delivery. Check for
1468 deadlocks in fork. Introduce barriers for reducing signal
1469 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1470 replaced by the barriers. Count signals during fork/free/malloc
1471 and report them.
1472 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1473
1474 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1475
1476 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1477 version to 5.1.
1478 (clock_adjtime64) New syscall.
1479 (clock_getres_time64) Likewise.
1480 (clock_gettime64) Likewise.
1481 (clock_nanosleep_time64) Likewise.
1482 (clock_settime64) Likewise.
1483 (futex_time64) Likewise.
1484 (io_pgetevents_time64) Likewise.
1485 (io_uring_enter) Likewise.
1486 (io_uring_register) Likewise.
1487 (io_uring_setup) Likewise.
1488 (mq_timedreceive_time64) Likewise.
1489 (mq_timedsend_time64) Likewise.
1490 (pidfd_send_signal) Likewise.
1491 (ppoll_time64) Likewise.
1492 (pselect6_time64) Likewise.
1493 (recvmmsg_time64) Likewise.
1494 (rt_sigtimedwait_time64) Likewise.
1495 (sched_rr_get_interval_time64) Likewise.
1496 (semtimedop_time64) Likewise.
1497 (timer_gettime64) Likewise.
1498 (timer_settime64) Likewise.
1499 (timerfd_gettime64) Likewise.
1500 (timerfd_settime64) Likewise.
1501 (utimensat_time64) Likewise.
1502
1503 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1504 version to 9 branch.
1505
1506 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1507
1508 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1509 __memmove_thunderx2 to the list of implementations
1510 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1511 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1512 (__memmove_thunderx2): Rewritten using SIMD ld/st
1513 (__memcpy_thunderx2): Fixed handling overlapping cases.
1514 Used ldp/stp instead of ldr/str if possible. Made loops
1515 tails branchless.
1516
1517 2019-05-03 Florian Weimer <fweimer@redhat.com>
1518
1519 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1520
1521 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1522
1523 [BZ #24506]
1524 * elf/tst-pldd.c (in_str_list): New function.
1525 (do_test): Add default names for ld and libc as one option.
1526
1527 2019-05-02 Florian Weimer <fweimer@redhat.com>
1528
1529 misc: Add twalk_r function.
1530 * include/search.h (__twalk_r): Declare.
1531 * manual/examples/twalk.c: New file.
1532 * manual/search.texi (Tree Search Function): Document twalk_r.
1533 * misc/Versions (2.30): Export twalk_r.
1534 (GLIBC_PRIVATE): Export __twalk_r.
1535 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1536 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1537 (twalk_r): Add weak alias.
1538 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1539 (walk_trace): New variable.
1540 (struct twalk_with_twalk_r_closure): Define.
1541 (twalk_with_twalk_r_action): New function.
1542 (twalk_with_twalk_r): Likewise.
1543 (walk_action): Call walk_trace_add.
1544 (walk_tree_with): Rename from walk_tree. Add walk argument.
1545 (walk_tree): New function.
1546 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1547 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1548 Likewise.
1549 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1550 Likewise.
1551 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1552 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1553 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1554 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1555 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1556 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1557 Likewise.
1558 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1559 Likewise.
1560 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1561 Likewise.
1562 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1563 (GLIBC_2.30): Likewise.
1564 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1565 (GLIBC_2.30): Likewise.
1566 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1567 (GLIBC_2.30): Likewise.
1568 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1569 (GLIBC_2.30): Likewise.
1570 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1571 Likewise.
1572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1573 (GLIBC_2.30): Likewise.
1574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1575 (GLIBC_2.30): Likewise.
1576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1577 (GLIBC_2.30): Likewise.
1578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1579 (GLIBC_2.30): Likewise.
1580 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1581 Likewise.
1582 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1583 Likewise.
1584 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1585 Likewise.
1586 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1587 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1588 Likewise.
1589 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1590 Likewise.
1591 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1592 Likewise.
1593 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1594 Likewise.
1595
1596 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1597
1598 Make mktime etc. compatible with __time64_t
1599 Keep these functions compatible with Gnulib while adding
1600 __time64_t support. The basic idea is to move private API
1601 declarations from include/time.h to time/mktime-internal.h, since
1602 the former file cannot easily be shared with Gnulib whereas the
1603 latter can.
1604 Also, do some other minor cleanup while in the neighborhood.
1605 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1606 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1607 since Gnulib needs it.
1608 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1609 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1610 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1611 (in_time_t_range): New static function.
1612 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1613 so that glibc users are not tempted to use __time64_t.
1614 * time/mktime-internal.h: Rewrite so that it does both glibc
1615 and Gnulib work. Include time.h if not _LIBC.
1616 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1617 (__time64_t): New type or macro, moved here from
1618 posix/bits/types.h.
1619 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1620 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1621 from include/time.h.
1622 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1623 New macros, taken from GNulib.
1624 (__mktime_internal): New prototype, moved here from include/time.h.
1625 * time/mktime.c (mktime_min, mktime_max, convert_time)
1626 (ranged_convert, __mktime_internal, __mktime64):
1627 * time/timegm.c (__timegm64):
1628 Use __time64_t, not time_t.
1629 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1630 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1631 Rename from mktime.
1632 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1633 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1634 for libc_hidden_def.
1635 Include errno.h.
1636 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1637 Rename from timegm.
1638 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1639
1640 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1641
1642 [BZ #19444]
1643 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1644 from `-Wmaybe-uninitialized'.
1645 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1646
1647 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1648
1649 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1650 function.
1651 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1652 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1653 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1654 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1655 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1656 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1657 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1658 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1659 Remove file.
1660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1661 Likewise.
1662 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1663 Likewise.
1664 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1665 Likewise.
1666 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1667 New file.
1668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1669 Likewise.
1670 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1671 Likewise.
1672 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1673 Likewise.
1674 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1675 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1676 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1677 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1678 Likewise.
1679 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1680 Likewise.
1681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1682 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1683 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1684 file.
1685 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1686 Likewise.
1687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1688 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1689 * here.
1690 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1691 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1692 s_ceilf-power5+, and s_ceilf-ppc64.
1693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1694 file.
1695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1696 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1697 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1698 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1699 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1700 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1701 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1702
1703 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1704 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1705 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1706
1707 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1708
1709 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1710 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1711 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1712 (sem_getvalue): Likewise.
1713
1714 2019-04-26 Florian Weimer <fweimer@redhat.com>
1715
1716 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1717 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1718
1719 2019-04-26 Florian Weimer <fweimer@redhat.com>
1720
1721 Makeconfig: Move -Wl,-rpath-link options before library references.
1722 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1723 (link-libc): Remove $(link-libc-rpath-link).
1724
1725 2019-04-25 Florian Weimer <fweimer@redhat.com>
1726
1727 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1728 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1729 (+link-static-before-libc): Remove $(CC).
1730 (+link-static, +link-static-tests): Add $(CC).
1731 (+link-before-libc): Remove $(CC).
1732 (+link, +link-pie, +link-pie-printers): Add $(CC).
1733
1734 2019-04-26 Florian Weimer <fweimer@redhat.com>
1735
1736 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1737 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1738 (+link-static-before-libc): Remove $(CC).
1739 (+link-static, +link-static-tests): Add $(CC).
1740 (+link-before-libc): Remove $(CC).
1741 (+link, +link-pie, +link-pie-printers): Add $(CC).
1742
1743 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1744
1745 [BZ#24484]
1746 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1747
1748 2019-04-25 Florian Weimer <fweimer@redhat.com>
1749
1750 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1751 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1752 (bench-link-targets): New variable.
1753 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1754
1755 2019-04-25 Florian Weimer <fweimer@redhat.com>
1756
1757 Also enable BIND_NOW for programs if --enable-bind-now.
1758 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1759 (+link-pie): Use $(link-extra-flags).
1760 (+link-static): Likewise.
1761 [! $(build-pie-default)] (+link): Likewise.
1762 * manual/install.texi (Configuring and compiling): Update
1763 --enable-bind-now description.
1764 * INSTALL: Regenerated.
1765
1766 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1767
1768 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1769 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1770
1771 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1772
1773 [BZ #18465]
1774 * malloc/Makefile (others): Add memusagestat.
1775 ($(objpfx)memusagestat): Delete rule.
1776 (LDLIBS-memusagestat): New variable.
1777
1778 2019-04-24 Florian Weimer <fweimer@redhat.com>
1779
1780 * locale/Makefile (tests-special): Guard setting by
1781 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1782 to run while cross-compiling.
1783
1784 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1785
1786 [BZ #18035]
1787 * elf/Makefile (tests-container): Add tst-pldd.
1788 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1789 (E(find_maps)): Avoid use alloca, use default read file operations
1790 instead of explicit LFS names, and fix infinite loop.
1791 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1792 (get_process_info): Use _Static_assert instead of assert, use default
1793 directory operations instead of explicit LFS names, and free some
1794 leadek pointers.
1795 * elf/tst-pldd.c: New file.
1796
1797 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1798
1799 * malloc/arena.c (do_set_mallopt_check): Removed.
1800
1801 2019-04-23 Florian Weimer <fweimer@redhat.com>
1802
1803 locale: Add LOCPATH diagnostics to the locale program.
1804 * locale/programs/locale.c (setlocale_failed): New variable.
1805 (try_setlocale): New function.
1806 (quote_string): Likewise.
1807 (setlocale_diagnostics): Likewise.
1808 (main): Call try_setlocale instead of setlocale. Call
1809 setlocale_diagnostics.
1810 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1811 (tst-locale-locpath.out): New target.
1812 * locale/tst-locale-locpath.sh: New file.
1813
1814 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1815
1816 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1817 to 2.30 notes.
1818
1819 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1820
1821 [BZ #23741]
1822 * malloc/hooks.c (malloc_check, realloc_check): Use
1823 __builtin_add_overflow on overflow check and adapt to
1824 checked_request2size change.
1825 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1826 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1827 allocation size to PTRDIFF_MAX.
1828 (REQUEST_OUT_OF_RANGE): Remove macro.
1829 (checked_request2size): Change to inline function and limit maximum
1830 requested size to PTRDIFF_MAX.
1831 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1832 maximum allocation size to PTRDIFF_MAX.
1833 (_mid_memalign): Use _int_memalign call for overflow check.
1834 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1835 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1836 limit maximum requested size to PTRDIFF_MAX.
1837 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1838 valloc, pvalloc): Add __attribute_alloc_size__.
1839 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1840 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1841 larger than PTRDIFF_MAX.
1842 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1843 around tests of malloc with negative sizes.
1844 * malloc/tst-posix_memalign.c (do_test): Likewise.
1845 * malloc/tst-pvalloc.c (do_test): Likewise.
1846 * malloc/tst-valloc.c (do_test): Likewise.
1847 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1848 with resulting size allocation larger than PTRDIFF_MAX with
1849 reallocarray_nowarn.
1850 (reallocarray_nowarn): New function.
1851 * NEWS: Mention the malloc function semantic change.
1852
1853 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1854
1855 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1856 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1857
1858 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1859 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1860 * sysdeps/powerpc/fpu/s_fma.c: New file.
1861 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1862
1863 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1864 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1865
1866 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1867 the magic flag store.
1868 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1869 Likewise.
1870 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1871 Likewise.
1872 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1873 Remove rt_sigreturn call.
1874
1875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1876 Remove rt_sigreturn call.
1877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1878 Likewise.
1879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1881
1882 * support/Makefile (libsupport-routines): Add support_subprocess,
1883 xposix_spawn, xposix_spawn_file_actions_addclose, and
1884 xposix_spawn_file_actions_adddup2.
1885 (tst-support_capture_subprocess-ARGS): New rule.
1886 * support/capture_subprocess.h (support_capture_subprogram): New
1887 prototype.
1888 * support/support_capture_subprocess.c (support_capture_subprocess):
1889 Refactor to use support_subprocess and support_capture_poll.
1890 (support_capture_subprogram): New function.
1891 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1892 str_to_write_mode, test_common, parse_int, handle_restart,
1893 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1894 (do_test): Add support_capture_subprogram tests.
1895 * support/subprocess.h: New file.
1896 * support/support_subprocess.c: Likewise.
1897 * support/xposix_spawn.c: Likewise.
1898 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1899 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1900 * support/xspawn.h: Likewise.
1901
1902 2019-04-17 Mike Gerow <gerow@google.com>
1903
1904 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1905 groups limit.
1906
1907 2019-04-11 Florian Weimer <fweimer@redhat.com>
1908
1909 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1910 domain with empty string.
1911 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1912
1913 2019-04-11 Florian Weimer <fweimer@redhat.com>
1914
1915 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1916 comment.
1917 (alloc_buffer_next): Change return type to non-const. Update
1918 comment.
1919
1920 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1921
1922 * manual/time.texi (Formatting Calendar Time): Add missing percent
1923 sign to conversion specifier.
1924
1925 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1926 Kwok Cheung Yeung <kcy@codesourcery.com>
1927
1928 [BZ #16573]
1929 * malloc/mtrace.c: Define prototypes for all hooks.
1930 (set_default_hooks): New function.
1931 (set_trace_hooks): Likewise.
1932 (save_default_hooks): Likewise.
1933 (tr_freehook): Use new s*_hooks functions.
1934 (tr_mallochook): Likewise.
1935 (tr_reallochook): Likewise.
1936 (tr_memalignhook): Likewise.
1937 (mtrace): Likewise.
1938 (muntrace): Likewise.
1939
1940 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1941
1942 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1943 (generic_stpcpy): New function.
1944 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1945 (generic_stpncpy): New function.
1946 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1947 (generic_strcat): New function.
1948 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1949 (generic_strcpy): New function.
1950 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1951 (STUPID_STRNCAT): Remove function.
1952 (generic_strncat): New function.
1953 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1954 (STUPID_STRNCPY): Remove function.
1955 (generic_strncpy): New function.
1956 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1957 (generic_strnlen): New function.
1958 (memchr_strnlen): New function.
1959 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1960 (memchr_strlen): Likewise.
1961
1962 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1963
1964 * benchtests/bench-strstr.c (input): Add realistic input text.
1965 (stupid_strstr): Remove function.
1966 (basic_strstr): Add function.
1967 (twoway_strstr): Add function.
1968 (do_one_test): Add result checking.
1969 (do_test): Use new input text. Remove accidental early matches.
1970 (test_main): Improve range of tests, reduce unaligned cases.
1971
1972 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1973
1974 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1975 (basic_memmem): Add function.
1976 (twoway_memmem): Add function.
1977
1978 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1979
1980 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1981 * benchtests/bench-malloc-thread.c: Likewise.
1982 * benchtests/bench-skeleton.c: Likewise.
1983 * benchtests/bench-strtod.c: Likewise.
1984 * benchtests/bench-timing.h: Likewise.
1985
1986 2019-04-08 Florian Weimer <fweimer@redhat.com>
1987
1988 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1989 definitions.
1990 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1991 RES_INSECURE2 security checks.
1992 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1993 RES_INSECURE2 handling.
1994
1995 2019-04-08 Florian Weimer <fweimer@redhat.com>
1996
1997 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1998 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1999 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
2000 GETHOSTBYNAME.
2001 * resolv/Makefile (tests): Remove tst-res_use_inet6.
2002 (tests-internal): Update justification for tst-resolv-res_init,
2003 tst-resolv-res_init-thread.
2004 (tst-res_use_inet6): Remove target.
2005 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
2006 * resolv/res_debug.c (p_option): Remove "inet6" support.
2007 * resolv/res_init.c (res_setoptions): Likewise.
2008 * resolv/res_use_inet6.h: Remove file.
2009 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
2010 definition.
2011 (res_use_inet6): Always return false.
2012 * resolv/resolv.h (RES_USE_INET6): Remove definition.
2013 * resolv/resolv_context.h: Adjust file comment.
2014 (struct resolv_context): Update comment on __next field.
2015 (__resolv_context_put): Update comment.
2016 * resolv/tst-res_use_inet6.c: Remove file.
2017 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
2018 "inet6" support.
2019 (test_cases): Adjust test case.
2020 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
2021 (thread_byname2_af_inet6): Use old byname_inet6 code.
2022 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
2023 (gai): Remove do_inet6 argument.
2024 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
2025 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
2026 (thread_gai_unspec_inet6): Remove functions.
2027 (do_test): Adjust thread_funcs.
2028 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
2029 RES_USE_INET6 flag.
2030 (gaih_inet): Do not disable RES_USE_INET6 flag.
2031
2032 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2033
2034 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
2035 and remove redundant code.
2036
2037 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2038
2039 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
2040 New rule.
2041 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
2042 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
2043 Likewise.
2044 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
2045 Likewise.
2046 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
2047 Likewise.
2048 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
2049 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
2050 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
2051 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
2052 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
2053 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
2054 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2055 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
2056 wcsrchr-power7.
2057 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
2058 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2059 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2060 Remove wcsrchr optimizations.
2061 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2062
2063 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
2064 the loop unroll.
2065
2066 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
2067 New rule.
2068 * sysdeps/powerpc/power6/wcschr.c: Remove file.
2069 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
2070 Likewise.
2071 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
2072 Likewise.
2073 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
2074 Likewise.
2075 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
2076 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
2077 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
2078 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
2079 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2080 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
2081 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2082 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
2083 wcschr-power7.
2084 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
2085 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2086 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2087 Remove wcschr optimizations.
2088 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2089
2090 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
2091 the loop unroll.
2092
2093 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
2094 New rule.
2095 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
2096 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
2097 Likewise.
2098 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
2099 Likewise.
2100 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
2101 Likewise.
2102 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
2103 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
2104 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
2105 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
2106 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
2107 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
2108 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
2109 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
2110 wcscpy-power7.
2111 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
2112 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
2113 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
2114 Remove wcscpy optimizations.
2115 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
2116
2117 * include/loop_unroll.h: New file.
2118 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
2119 besides generic implementation.
2120
2121 2019-04-03 DJ Delorie <dj@redhat.com>
2122
2123 * time/tst-strftime3.c (tm_to_printed): Disable warning about
2124 snprintf truncating output.
2125
2126 2019-04-02 DJ Delorie <dj@redhat.com>
2127
2128 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
2129 warning.
2130
2131 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2132
2133 [BZ #22964]
2134 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
2135 era.
2136 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
2137 (mkreftable): Add rules for the new Japanese era and the new dates.
2138
2139 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2140 Rafal Luzynski <digitalfreak@lingonborough.com>
2141
2142 * time/tst-strftime2.c (date_t): Explicitly define the type.
2143 (dates): Use natural month and year numbers to express a date.
2144 (is_before): New function to compare dates.
2145 (mkreftable): Minor improvements to simplify maintenance.
2146 (do_test): Reflect the changes in dates array.
2147
2148 [BZ #24293]
2149 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2150 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2151 * time/tst-strftime2.c (locales): Likewise.
2152 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2153 2010-04-01, and 2011-04-01.
2154 (mkreftable): Add rules for the new locales and the new dates.
2155
2156 2019-04-01 Carlos O'Donell <carlos@redhat.com>
2157
2158 * localedata/locales/ja_JP: Add comments to era entries.
2159
2160 2019-04-01 DJ Delorie <dj@redhat.com>
2161
2162 [BZ #24394]
2163 * time/strptime_l.c (%Ey): Fix fencepost error.
2164 * time/tst-strftime3.c: New.
2165 * time/Makefile (tests): Add tst-strftime3.
2166
2167 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
2168
2169 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2170 conditional branch to DIVBYZERO. Fix unwind info.
2171 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2172 excb after conditional branch to $powerof2. Add missing unop
2173 instructions and .align directives and reorder instructions to
2174 match __divqu.
2175
2176 2019-04-01 Richard Henderson <rth@twiddle.net>
2177
2178 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2179 Do not redefine.
2180 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2181 Do not redefine.
2182
2183 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
2184
2185 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2186 $libc_cv_riscv_float_abi in `test' invocation.
2187 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2188
2189 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
2190
2191 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2192 asm with builtin.
2193 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2194 Likewise.
2195 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2196 (_GET_SI_FPSCR): Likewise.
2197 (_SET_SI_FPSCR): Likewise.
2198
2199 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2200
2201 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2202 clang 2.8.
2203 (signbit): Use builtin for clang 3.3.
2204 (isinf): Use builtin for clang 3.7.
2205
2206 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2207
2208 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2209
2210 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
2211
2212 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2213 quote in printf.
2214
2215 2019-03-25 Mike Crowe <mac@mcrowe.com>
2216
2217 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2218 pthread_rwlock_timedrdlock with calls to
2219 pthread_rwlock_timedwrlock to ensure that the latter is tested
2220 too. Use new function name in diagnostic messages too.
2221
2222 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2223 (do_test) Use libsupport test macros rather than hand-coded
2224 conditionals and error messages. Ensure that sem_init returns zero
2225 rather than not -1. Use <support/test-driver.c> rather than
2226 test-skeleton.c.
2227
2228 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2229 test macros rather than hand-coded conditionals and error messages.
2230 Use <support/test-driver.c> rather than test-skeleton.c.
2231
2232 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2233
2234 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2235
2236 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2237 (NT_MIPS_MSA): Likewise.
2238
2239 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2240
2241 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2242 * benchtests/README: Update description.
2243 * benchtests/bench-timing.h: Default to hp-timing.
2244 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2245 HP_TIMING_PRINT): Remove.
2246 (HP_TIMING_NOW): Add generic implementation.
2247 (hp_timing_t): Change to uint64_t.
2248
2249 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2250 HP_TIMING_INLINE.
2251 * nptl/descr.h: Likewise.
2252 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2253 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2254 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2255 Abstract hp-timing usage with RTLD_* macros.
2256 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2257 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2258 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2259 HP_TIMING_NONAVAIL): Likewise.
2260 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2261 Likewise.
2262 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2263 HP_SMALL_TIMING_AVAIL): Likewise.
2264 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2265 HP_SMALL_TIMING_AVAIL): Likewise.
2266 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2267 HP_SMALL_TIMING_AVAIL): Likewise.
2268 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2269 HP_SMALL_TIMING_AVAIL): Likewise.
2270 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2271 Likewise.
2272 * sysdeps/generic/hp-timing-common.h: Update comment with
2273 HP_TIMING_AVAIL removal.
2274
2275 * include/random-bits.h: New file.
2276 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2277 (__res_context_mkquery): Remove usage hp-timing usage and replace with
2278 random_bits.
2279 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2280 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2281 Likewise.
2282
2283 * include/libc-internal.h (__get_clockfreq): Remove prototype.
2284 * rt/Makefile (clock-routines): Remove get_clockfreq.
2285 * rt/get_clockfreq.c: Remove file.
2286 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2287 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2288 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2289 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2290 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2291
2292 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2293 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2294 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2295 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2296 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2297
2298 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2299 pthread_clock_settime.
2300 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2301 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2302 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2303 * elf/rtld.c (_dl_start_final): Likewise.
2304 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2305 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2306 Remove.
2307 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2308 (_dl_cpuclock_offset): Remove.
2309 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2310 cpuclock_offset_ununsed.
2311 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2312 cpuclock_offset set.
2313 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2314 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2315 * nptl/pthread_clock_gettime.c: Remove file.
2316 * nptl/pthread_clock_settime.c: Likewise.
2317 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2318 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2319 and CLOCK_PROCESS_CPUTIME_ID support.
2320 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2321 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2322 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2323 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2324 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2325 Likewise.
2326 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2327
2328 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2329
2330 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2331 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2332 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2333 New defines.
2334 * sysdeps/s390/memmem-arch13.S: New file.
2335 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2336 if it is only used as fallback.
2337 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2338 * sysdeps/s390/multiarch/ifunc-impl-list.c
2339 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2340
2341 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2342
2343 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2344 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2345 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2346 New defines.
2347 * sysdeps/s390/multiarch/ifunc-impl-list.c
2348 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2349 * sysdeps/s390/strstr-arch13.S: New file.
2350 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2351 if it is only used as fallback.
2352 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2353
2354 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2355
2356 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2357 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2358 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2359 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2360 ifunc selector.
2361 * sysdeps/s390/multiarch/ifunc-impl-list.c
2362 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2363 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2364 S390_IS_ARCH13_MIE3): New defines.
2365
2366 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2367
2368 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2369 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2370 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2371 * sysdeps/s390/configure: Regenerated.
2372
2373 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2374
2375 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2376 Add vxe2, vxp, dflt, sort flags.
2377 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2378 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2379 capabilities.
2380 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2381 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2382 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2383 HWCAP_S390_DFLT): Define.
2384
2385 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2386
2387 [BZ #24372]
2388 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2389 of compiler warning.
2390 * locale/programs/ld-collate.c (collate_output): Likewise.
2391
2392 2019-03-21 DJ Delorie <dj@redhat.com>
2393
2394 [BZ #24372]
2395 * iconv/iconvconfig.c (write_output): Replace floating point math
2396 with integer math to avoid imprecise results.
2397 * locale/programs/ld-collate.c (collate_output): Likewise.
2398
2399 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2400
2401 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2402 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2403
2404 2019-03-20 mansayk <6688000@gmail.com>
2405
2406 [BZ #24296]
2407 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2408 (abday): Likewise, but remove the trailing dots.
2409
2410 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2411
2412 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2413 macro.
2414 (HWCAP_PACA): Likewise.
2415 (HWCAP_PACG): Likewise.
2416 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2417 Increase to 32.
2418 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2419
2420 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2421
2422 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2423 should be handled.
2424
2425 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2426
2427 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2428 version to 5.0.
2429 (old_getpagesize): New syscall.
2430
2431 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2432
2433 [BZ #24293]
2434 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2435 * localedata/locales/cmn_TW (era): Likewise.
2436 * localedata/locales/hak_TW (era): Likewise.
2437 * localedata/locales/lzh_TW (era): Likewise.
2438 * localedata/locales/nan_TW (era): Likewise.
2439
2440 2019-03-14 Adam Maris <amaris@redhat.com>
2441
2442 * malloc/malloc.c (_int_malloc): Check for large bin list
2443 corruption when inserting unsorted chunk.
2444
2445 2019-03-14 Florian Weimer <fweimer@redhat.com>
2446
2447 Remove obsolete, never-implemented XSI STREAMS declarations.
2448 * manual/terminal.texi (Allocation): Remove portability note and
2449 adjust example.
2450 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2451 _SC_STREAMS.
2452 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2453 * sysdeps/unix/inet/Subdirs (streams): Remove.
2454 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2455 (conformtest-headers-UNIX98): Likewise.
2456 (conformtest-headers-XOPEN2K): Likewise.
2457 (conformtest-headers-POSIX2008): Likewise.
2458 * posix/compat-streams.c: New file.
2459 * posix/Makefile (routines): Add it.
2460 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2461 getpmsg, isastream, putmsg, putpmsg.
2462 (GLIBC_2.30): New section.
2463 * bits/stropts.h: Remove file.
2464 * bits/xtitypes.h: Likewise.
2465 * conform/data/stropts.h-data: Likewise.
2466 * include/stropts.h: Likewise.
2467 * include/sys/stropts.h: Likewise.
2468 * include/xtitypes.h: Likewise.
2469 * streams/Makefile: Likewise.
2470 * streams/fattach.c: Likewise.
2471 * streams/fdetach.c: Likewise.
2472 * streams/getmsg.c: Likewise.
2473 * streams/getpmsg.c: Likewise.
2474 * streams/isastream.c: Likewise.
2475 * streams/putmsg.c: Likewise.
2476 * streams/putpmsg.c: Likewise.
2477 * streams/stropts.h: Likewise.
2478 * streams/sys/stropts.h: Likewise.
2479 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2480 * sysdeps/s390/bits/xtitypes.h: Likewise.
2481 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2482 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2483 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2484 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2485 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2486 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2487 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2488 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2489 * sysdeps/x86/bits/xtitypes.h: Likewise.
2490
2491 2019-03-14 Florian Weimer <fweimer@redhat.com>
2492
2493 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2494 libnss_files.
2495 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2496 but not with libnss_files.
2497 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2498
2499 2019-03-14 Zack Weinberg <zackw@panix.com>
2500
2501 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2502 Specify encoding="utf-8" when opening headers to check.
2503
2504 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2505
2506 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2507 version to 5.0.
2508 (Context.checkout_tar): Handle variable major version for Linux
2509 kernel.
2510
2511 2019-03-13 Florian Weimer <fweimer@redhat.com>
2512
2513 [BZ #24047]
2514 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2515
2516 2019-03-13 Zack Weinberg <zackw@panix.com>
2517
2518 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2519 Move to stdlib.
2520 * include/inttypes.h: Adjust to match.
2521 * include/stdint.h: New wrapper.
2522
2523 2019-03-13 Zack Weinberg <zackw@panix.com>
2524
2525 * scripts/check-obsolete-constructs.py: New test script.
2526 * scripts/check-installed-headers.sh: Remove tests for
2527 obsolete typedefs, superseded by check-obsolete-constructs.py.
2528 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2529 as a special test. Update commentary.
2530 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2531 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2532 Update commentary.
2533 * posix/sys/types.h (__u_intN_t): Remove.
2534 (u_int8_t): Typedef using __uint8_t.
2535 (u_int16_t): Typedef using __uint16_t.
2536 (u_int32_t): Typedef using __uint32_t.
2537 (u_int64_t): Typedef using __uint64_t.
2538
2539 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2540
2541 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2542 call _dl_procinfo.
2543 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2544 Ignore types other than AT_HWCAP.
2545 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2546 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2547 Likewise.
2548 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2549 in the case of falling back to generic output mechanism.
2550 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2551 Likewise.
2552
2553 2019-03-12 Florian Weimer <fweimer@redhat.com>
2554
2555 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2556
2557 2019-03-12 Florian Weimer <fweimer@redhat.com>
2558
2559 [BZ #24047]
2560 resolv: Enable full ICMP errors for UDP DNS sockets
2561 * resolv/res_enable_icmp.c: New file.
2562 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2563 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2564 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2565 socket.
2566
2567 2019-03-11 Mao Han <han_mao@c-sky.com>
2568
2569 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2570 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2571
2572 2019-03-11 Mao Han <han_mao@c-sky.com>
2573
2574 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2575 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2576 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2577
2578 2019-03-11 Mao Han <han_mao@c-sky.com>
2579
2580 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2581 directly.
2582 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2583 definition.
2584
2585 2019-03-11 Mao Han <han_mao@c-sky.com>
2586
2587 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2588 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2589 in mcontext_t
2590
2591 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2592
2593 [BZ #24307]
2594 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2595 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2596 Unicode 12.0.0.
2597 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2598 * localedata/unicode-gen/PropList.txt: Likewise.
2599 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2600 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2601 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2602 * localedata/charmaps/UTF-8: Regenerate.
2603 * localedata/locales/i18n_ctype: Likewise.
2604 * localedata/locales/tr_TR: Likewise.
2605 * localedata/locales/translit_circle: Likewise.
2606 * localedata/locales/translit_cjk_compat: Likewise.
2607 * localedata/locales/translit_combining: Likewise.
2608 * localedata/locales/translit_compat: Likewise.
2609 * localedata/locales/translit_font: Likewise.
2610 * localedata/locales/translit_fraction: Likewise.
2611
2612 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2613
2614 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2615 than after operators.
2616 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2617 (setitimer_locked): Likewise.
2618 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2619 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2620 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2621 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2622 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2623 (PPC_CPU_SUPPORTED): Likewise.
2624 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2625 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2626 (stat_overflow): Likewise.
2627 (statfs_overflow): Likewise.
2628 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2629 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2630 (eq_ttyname_r): Likewise.
2631 (run_chroot_tests): Likewise.
2632
2633 2019-03-07 Florian Weimer <fweimer@redhat.com>
2634
2635 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2636 header check.
2637
2638 2019-03-07 Martin Liska <mliska@suse.cz>
2639
2640 * math/Makefile: Change location where math-vector-fortran.h is
2641 installed.
2642 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2643 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2644 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2645 * scripts/check-installed-headers.sh: Skip Fortran header files.
2646 * scripts/check-wrapper-headers.py: Likewise.
2647
2648 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2649
2650 * nptl/nptl-init.c (__have_futex_clock_realtime,
2651 __have_futex_clock_realtime): Remove definition.
2652 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2653 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2654 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2655 __ASSUME_FUTEX_CLOCK_REALTIME support.
2656 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2657 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2658 * sysdeps/unix/sysv/linux/kernel-features.h
2659 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2660 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2661 Adjust comment.
2662
2663 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2664
2665 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2666 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2667 __GI___wcscpy and wcscpy.
2668
2669 2019-03-04 Florian Weimer <fweimer@redhat.com>
2670
2671 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2672 declaration.
2673 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2674 defined.
2675
2676 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2677
2678 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2679 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2680
2681 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2682
2683 [BZ #24162]
2684 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2685 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2686
2687 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2688
2689 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2690 tests.
2691 (do_test): Likewise.
2692 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2693 (do_test_call_varg): Likewise.
2694 (do_test_call_rarg): Likewise.
2695 * sysdeps/ieee754/ldbl-opt/Makefile
2696 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2697 tst-nldbl-error.
2698 ($(objpfx)tst-nldbl-warn.c): New rule.
2699 ($(objpfx)tst-nldbl-error.c): Likewise.
2700 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2701 New variables.
2702
2703 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2704
2705 [BZ #23984]
2706 * include/bits/error-ldbl.h: New file.
2707 * include/error.h: Include stdarg.h. Declare internal functions
2708 __error_internal and __error_at_line_internal.
2709 * misc/Makefile (headers): Add bits/error-ldbl.h.
2710 * misc/bits/error-ldbl.h: New file.
2711 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2712 avoid the inclusion of bits/error.h.
2713 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2714 and __nldbl_error_at_line.
2715 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2716 (__nldbl_error, __ndlbl_error_at_line): New functions.
2717 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2718 Redirect error and error_at_line.
2719 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2721 Likewise.
2722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2723 Likewise.
2724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2725 Likewise.
2726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2727 Likewise.
2728 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2729 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2730 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2731
2732 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2733
2734 [BZ #23984]
2735 * include/bits/err-ldbl.h: New file.
2736 * include/err.h: Add prototypes for the internal functions:
2737 __vwarnx_internal and __vwarn_internal.
2738 * misc/Makefile (headers): Add bits/err-ldbl.h.
2739 * misc/bits/err-ldbl.h: New file.
2740 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2741 defined, i.e.: when -mlong-double-64 is in use.
2742 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2743 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2744 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2745 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2746 (VA_CALL): New macro.
2747 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2748 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2749 functions.
2750 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2751 declare prototypes for the new functions.
2752 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2754 Likewise.
2755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2756 Likewise.
2757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2758 Likewise.
2759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2760 Likewise.
2761 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2762 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2763 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2764
2765 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2766
2767 * sysdeps/ieee754/ldbl-opt/Makefile
2768 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2769 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2770 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2771
2772 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2773
2774 [BZ #23983]
2775 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2776 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2777 * argp/bits/argp-ldbl.h: New file.
2778 * include/argp.h: Include stdarg.h. Add prototypes for internal
2779 functions: __argp_error_internal and __argp_failure_internal.
2780 * include/bits/argp-ldbl.h: New file.
2781 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2782 __nldbl_argp_error and __nldbl_argp_failure.
2783 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2784 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2785 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2786 Redirect argp_error and argp_failure calls.
2787 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2789 Likewise.
2790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2791 Likewise.
2792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2793 Likewise.
2794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2795 Likewise.
2796 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2797 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2798 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2799
2800 2019-03-01 Florian Weimer <fweimer@redhat.com>
2801
2802 [BZ #20419]
2803 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2804 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2805 code, to avoid creating an ABI tag note.
2806 (modules-names-nobuild): Add tst-big-note-lib.
2807
2808 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2809
2810 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2811 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2812
2813 2019-03-01 Florian Weimer <fweimer@redhat.com>
2814
2815 [BZ #20271]
2816 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2817 (__netlink_assert_response): Add additional missing newlines.
2818
2819 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2820
2821 * sysdeps/powerpc/powerpc32/dl-machine.c
2822 (__elf_machine_fixup_plt): Use space before '('.
2823 (__process_machine_rela): Likewise.
2824 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2825 Likewise.
2826 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2827 Likewise.
2828 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2829 Likewise.
2830 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2831 (pattern): Likewise.
2832 (delta): Likewise.
2833 (check_result): Likewise.
2834 (check_excepts): Likewise.
2835 (check_op): Likewise.
2836 (fail_xr): Likewise.
2837 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2838 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2839 (SCNHSZ): Likewise.
2840 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2841 Likewise.
2842 (ARGS): Likewise.
2843 (__makecontext): Likewise.
2844 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2845 Likewise.
2846
2847 2019-02-28 Florian Weimer <fweimer@redhat.com>
2848
2849 [BZ #23937]
2850 elf: Add test with a local IFUNC resolver.
2851 * elf/ifuncmain9.c: New file.
2852 * elf/ifuncmain9pic.c: Likewise.
2853 * elf/ifuncmain9picstatic.c: Likewise.
2854 * elf/ifuncmain9pie.c: Likewise.
2855 * elf/ifuncmain9static.c: Likewise.
2856 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2857 ifuncmain9static, ifuncmain9picstatic.
2858 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2859 Add ifuncmain9, ifuncmain9pic.
2860 * elf/Makefile [multi-arch && build-shared && have-fpie]
2861 (ifunc-pie-tests): Add ifuncmain9pie.
2862 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2863 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2864 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2865
2866 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2867
2868 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2869 * configure: Regenerated.
2870 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2871
2872 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2873
2874 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2875 symbol as __wcspcy instead of wcscpy.
2876
2877 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2878
2879 * include/stdio.h (__renameat2): New hidden prototype.
2880 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2881 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2882 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2883 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2884
2885 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2886
2887 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2888 if statement.
2889
2890 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2891 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2892 * benchtests/bench-strlen.c (do_test): Likewise.
2893 (test_main): Likewise.
2894 * catgets/gencat.c (read_old): Likewise.
2895 * elf/cache.c (load_aux_cache): Likewise.
2896 * iconvdata/bug-iconv8.c (do_test): Likewise.
2897 * math/test-tgmath-ret.c (do_test): Likewise.
2898 * nis/nis_call.c (rec_dirsearch): Likewise.
2899 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2900 * nptl/tst-audit-threads.c (do_test): Likewise.
2901 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2902 * nss/nss_test1.c (init): Likewise.
2903 * nss/test-netdb.c (test_hosts): Likewise.
2904 * posix/execvpe.c (maybe_script_execute): Likewise.
2905 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2906 * stdio-common/tst-printf.c (do_test): Likewise.
2907 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2908 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2909 * stdlib/qsort.c (STACK_SIZE): Likewise.
2910 * stdlib/test-canon.c (do_test): Likewise.
2911 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2912 * string/memcmp.c (OPSIZ): Likewise.
2913 * string/test-strcpy.c (do_test): Likewise.
2914 (do_random_tests): Likewise.
2915 * string/test-strlen.c (do_test): Likewise.
2916 (test_main): Likewise.
2917 * string/test-strrchr.c (do_test): Likewise.
2918 (do_random_tests): Likewise.
2919 * string/tester.c (test_memrchr): Likewise.
2920 (test_memchr): Likewise.
2921 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2922 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2923 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2924 (read_encoded_value_with_base): Likewise.
2925 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2926 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2927 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2928 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2929 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2930 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2931 Likewise.
2932 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2933 Likewise.
2934 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2935 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2936 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2937 Likewise.
2938 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2939 Likewise.
2940 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2941 Likewise.
2942 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2943 Likewise.
2944 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2945 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2946 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2947 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2948 * time/test_time.c (main): Likewise.
2949
2950 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2951
2952 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2953
2954 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2955 wmemcpy.
2956
2957 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2958 wmemcpy.
2959
2960 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2961
2962 * include/wchar.h (__wcscpy): New prototype.
2963 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2964 (__wcscpy): Route internal symbol to generic implementation.
2965 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2966 Add internal __wcscpy alias.
2967 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2968 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2969 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2970 * wcsmbs/wcscpy.c (wcscpy): Add
2971 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2972 use generic implementation.
2973 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2974
2975 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2976 wmemset.
2977
2978 * sysdeps/m68k/wcpcpy.c: Remove file.
2979 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2980
2981 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2982
2983 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2984 than after operators.
2985 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2986 * sysdeps/mach/hurd/getcwd.c
2987 (__hurd_canonicalize_directory_name_internal): Likewise.
2988 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2989 (pthread_mutex_consistent): Likewise.
2990 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2991 Likewise.
2992 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2993 (__pthread_mutex_transfer_np): Likewise.
2994 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2995 (__pthread_mutex_unlock): Likewise.
2996 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2997 (mtx_owned_p): Likewise.
2998 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2999 (pthread_mutexattr_getrobust): Likewise.
3000 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
3001 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3002 Likewise.
3003 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3004 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
3005 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3006 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
3007 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3008 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
3009 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
3010 Likewise.
3011 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
3012 Likewise.
3013 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
3014 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
3015 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
3016 (____longjmp_chk): Likewise.
3017 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
3018 Likewise.
3019 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3020 (INTERNAL_SYSCALL): Likewise.
3021 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3022 (INTERNAL_SYSCALL): Likewise.
3023 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
3024 (__get_clockfreq_via_cpuinfo): Likewise.
3025
3026 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
3027 comments.
3028 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
3029 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
3030 (WORD_COPY_BWD): Likewise.
3031 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3032 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3033 Likewise.
3034 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
3035 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
3036 comment.
3037 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
3038
3039 2019-02-25 Joseph Myers <joseph@codesourcery.com>
3040
3041 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
3042 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
3043 rather than after operators.
3044 * elf/cache.c (print_cache): Likewise.
3045 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
3046 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
3047 * hurd/hurdinit.c (_hurd_setproc): Likewise.
3048 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3049 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
3050 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
3051 (reauth_proc): Likewise.
3052 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
3053 (__file_name_split_at): Likewise.
3054 (__directory_name_split_at): Likewise.
3055 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3056 * hurd/port2fd.c (_hurd_port2fd): Likewise.
3057 * iconv/gconv_dl.c (do_print): Likewise.
3058 * inet/netinet/in.h (struct sockaddr_in): Likewise.
3059 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
3060 * locale/setlocale.c (new_composite_name): Likewise.
3061 * malloc/memusagestat.c (main): Likewise.
3062 * misc/fstab.c (fstab_convert): Likewise.
3063 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
3064 Likewise.
3065 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
3066 (getgrent_next_file): Likewise.
3067 (internal_getgrnam_r): Likewise.
3068 (internal_getgrgid_r): Likewise.
3069 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
3070 Likewise.
3071 (internal_getgrent_r): Likewise.
3072 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3073 (getpwent_next_nss): Likewise.
3074 (getpwent_next_file): Likewise.
3075 (internal_getpwnam_r): Likewise.
3076 (internal_getpwuid_r): Likewise.
3077 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
3078 Likewise.
3079 (getspent_next_nss): Likewise.
3080 (internal_getspnam_r): Likewise.
3081 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
3082 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
3083 * string/strchr.c (STRCHR): Likewise.
3084 * string/strchrnul.c (STRCHRNUL): Likewise.
3085 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
3086 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3087 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
3088 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
3089 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
3090 Likewise.
3091 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
3092 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3093 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
3094 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
3095 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
3096 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3097 (open_file): Likewise.
3098 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
3099 (pthread_mutexattr_setprotocol): Likewise.
3100 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3101 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3102 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
3103 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
3104 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
3105 Likewise.
3106 (elf_machine_rela): Likewise.
3107 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3108 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
3109 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
3110 * sysdeps/posix/rename.c (rename): Likewise.
3111 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
3112 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
3113 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
3114 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
3115 * sysdeps/unix/grantpt.c (grantpt): Likewise.
3116 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
3117 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
3118 Likewise.
3119 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
3120 Likewise.
3121 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
3122 * time/tzfile.c (__tzfile_compute): Likewise.
3123
3124 2019-02-22 Joseph Myers <joseph@codesourcery.com>
3125
3126 * benchtests/bench-memmem.c (simple_memmem): Break lines before
3127 rather than after operators.
3128 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
3129 * crypt/md5.c (md5_finish_ctx): Likewise.
3130 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
3131 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
3132 * elf/cache.c (load_aux_cache): Likewise.
3133 * elf/dl-load.c (open_verify): Likewise.
3134 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
3135 * elf/readelflib.c (process_elf_file): Likewise.
3136 * elf/rtld.c (dl_main): Likewise.
3137 * elf/sprof.c (generate_call_graph): Likewise.
3138 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
3139 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
3140 * hurd/dtable.c (reauth_dtable): Likewise.
3141 * hurd/getdport.c (__getdport): Likewise.
3142 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
3143 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3144 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3145 Likewise.
3146 * hurd/hurdioctl.c (fioctl): Likewise.
3147 * hurd/hurdselect.c (_hurd_select): Likewise.
3148 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3149 (STOPSIGS): Likewise.
3150 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3151 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3152 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3153 * hurd/msgportdemux.c (msgport_server): Likewise.
3154 * hurd/setauth.c (_hurd_setauth): Likewise.
3155 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3156 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3157 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3158 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3159 * login/tst-utmp.c (do_check): Likewise.
3160 (simulate_login): Likewise.
3161 * mach/lowlevellock.h (lll_lock): Likewise.
3162 (lll_trylock): Likewise.
3163 * math/test-fenv.c (ALL_EXC): Likewise.
3164 * math/test-fenvinline.c (ALL_EXC): Likewise.
3165 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3166 * nis/nis_call.c (__do_niscall3): Likewise.
3167 * nis/nis_callback.c (cb_prog_1): Likewise.
3168 * nis/nis_defaults.c (searchaccess): Likewise.
3169 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3170 * nis/nis_ismember.c (internal_ismember): Likewise.
3171 * nis/nis_local_names.c (nis_local_principal): Likewise.
3172 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3173 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3174 Likewise.
3175 * nis/ypclnt.c (yp_match): Likewise.
3176 (yp_first): Likewise.
3177 (yp_next): Likewise.
3178 (yp_master): Likewise.
3179 (yp_order): Likewise.
3180 * nscd/hstcache.c (cache_addhst): Likewise.
3181 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3182 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3183 (internal_getpwuid_r): Likewise.
3184 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3185 * posix/glob.h (__GLOB_FLAGS): Likewise.
3186 * posix/regcomp.c (peek_token): Likewise.
3187 (peek_token_bracket): Likewise.
3188 (parse_expression): Likewise.
3189 * posix/regexec.c (sift_states_iter_mb): Likewise.
3190 (check_node_accept_bytes): Likewise.
3191 * posix/tst-spawn3.c (do_test): Likewise.
3192 * posix/wordexp-test.c (testit): Likewise.
3193 * posix/wordexp.c (parse_tilde): Likewise.
3194 (exec_comm): Likewise.
3195 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3196 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3197 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3198 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3199 * stdio-common/tst-fileno.c (do_test): Likewise.
3200 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3201 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3202 * stdlib/strtod_l.c (round_and_return): Likewise.
3203 (____STRTOF_INTERNAL): Likewise.
3204 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3205 * string/strcspn.c (STRCSPN): Likewise.
3206 * string/test-memmem.c (simple_memmem): Likewise.
3207 * termios/tcsetattr.c (tcsetattr): Likewise.
3208 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3209 * time/asctime.c (asctime_internal): Likewise.
3210 * time/strptime_l.c (__strptime_internal): Likewise.
3211 * time/sys/time.h (timercmp): Likewise.
3212 * time/tzfile.c (__tzfile_compute): Likewise.
3213
3214 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
3215
3216 [BZ #21915]
3217 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3218
3219 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3220
3221 * argp/argp-help.c (__argp_error_internal): New function,
3222 renamed from __argp_error, but that takes a 'mode_flags'
3223 parameter to control the format of long double parameters.
3224 (__argp_error): Converted into a call __argp_error_internal.
3225 (__argp_failure_internal): New function, renamed from
3226 __argp_failure, but that takes a 'mode_flags' parameter.
3227 (__argp_failure): Converted into a call __argp_failure_internal.
3228 * misc/err.c (__vwarnx_internal): New function, renamed from
3229 vwarnx, but that takes a 'mode_flags' parameter.
3230 (vwarnx): Converted into a call to __vwarnx_internal.
3231 (__vwarn_internal): New function, renamed from vwarn, but that
3232 takes a 'mode_flags' parameter.
3233 (vwarn): Converted into a call to __vwarn_internal.
3234 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3235 call to __vfxprintf with 'mode_flags'.
3236 (__error_internal): New function, renamed from error, but that
3237 takes a 'mode_flags' parameter.
3238 (error): Converted into a call to __error_internal.
3239 (__error_at_line_internal): New function, renamed from
3240 error_at_line, but that takes a 'mode_flags' parameter.
3241 (error_at_line): Converted into a call to
3242 __error_at_line_internal.
3243 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3244 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3245 Likewise.
3246
3247 2019-02-20 Martin Liska <mliska@suse.cz>
3248
3249 * math/Makefile: Install math-vector-fortran.h.
3250 * bits/math-vector-fortran.h: New file.
3251 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3252
3253 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3254
3255 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3256 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3257
3258 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
3259
3260 * nptl/pthread_mutex_trylock.c: Fix comment.
3261
3262 2019-02-19 Carlos O'Donell <carlos@redhat.com>
3263
3264 * nptl/pthread_tryjoin.c: Fix comment.
3265
3266 2019-02-18 Joseph Myers <joseph@codesourcery.com>
3267
3268 [BZ #24231]
3269 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3270 after R_SPARC_H34 case.
3271
3272 2019-02-18 Florian Weimer <fweimer@redhat.com>
3273
3274 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3275 (getanswer): Do not call Dprintf.
3276 (res_gethostbyname2_context): Likewise.
3277 (res_gethostbyaddr_context): Likewise.
3278
3279 2019-02-18 Florian Weimer <fweimer@redhat.com>
3280
3281 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3282 declaration.
3283 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3284 Remove definitions.
3285 * libio/stdfiles.c: Update comment.
3286 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
3287 set _IO_stdin, _IO_stdout, _IO_stderr.
3288 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3289 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3290 inline function.
3291 (_IO_deallocate_file): New inline function.
3292 * libio/iolibio.h (_IO_vprintf): Remove definition.
3293 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3294 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3295 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3296 _IO_legacy_file.
3297 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3298 __builtin_expect. Use _IO_legacy_file.
3299
3300 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
3301
3302 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3303 Initialize ctid with a known value and remove update of ctid
3304 after clone.
3305 (wait_tid): Adjust arguments and call futex_wait with ctid_val
3306 as assumed current value of ctid_ptr.
3307
3308 2019-02-16 Florian Weimer <fweimer@redhat.com>
3309
3310 Check that non-sysdeps headers have wrapper headers.
3311 * scripts/check-wrapper-headers.py: New file.
3312 * Makefile (tests-special): Add check-wrapper-headers.out.
3313 (check-wrapper-headers.out): New target.
3314 * Rules (tests-special): Add check-wrapper-headers.out.
3315 (check-wrapper-headers.out): New target.
3316
3317 2019-02-16 Florian Weimer <fweimer@redhat.com>
3318
3319 Add missing header wrappers under include/.
3320 * include/ar.h: New file.
3321 * include/bits/mqueue2.h: Likewise.
3322 * include/bits/stdio.h: Likewise.
3323 * include/bits/stdio2.h: Likewise.
3324 * include/fstab.h: Likewise.
3325 * include/fts.h: Likewise.
3326 * include/lastlog.h: Likewise.
3327 * include/netinet/icmp6.h: Likewise.
3328 * include/netinet/igmp.h: Likewise.
3329 * include/netinet/ip6.h: Likewise.
3330 * include/re_comp.h: Likewise.
3331 * include/regexp.h: Likewise.
3332 * include/rpcsvc/bootparam.h: Likewise.
3333 * include/rpcsvc/yp_prot.h: Likewise.
3334 * include/sys/random.h: Likewise.
3335 * include/sys/stropts.h: Likewise.
3336 * include/sys/ttychars.h: Likewise.
3337 * include/sys/vfs.h: Likewise.
3338 * include/wait.h: Likewise.
3339
3340 2019-02-16 Florian Weimer <fweimer@redhat.com>
3341
3342 * nptl_db/proc_service.h: Move to ...
3343 * sysdeps/nptl/proc_service.h: ... here.
3344 * nptl_db/thread_db.h: Move to ...
3345 * sysdeps/nptl/thread_db.h: ... here.
3346 * nptl/descr.h: Include <thread_db.h>.
3347
3348 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3349
3350 * io/Makefile (tests): Add tst-lockf.
3351 * io/lockf.c (lockf): Use __fcntl and only define for
3352 !__OFF_T_MATCHES_OFF64_T.
3353 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3354 __OFF_T_MATCHES_OFF64_T case.
3355 * io/tst-lockf.c: New file.
3356 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3357 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3358 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3359 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3360 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3362 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3363 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3364 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3365
3366 2019-02-15 Florian Weimer <fweimer@redhat.com>
3367
3368 [BZ #24211]
3369 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3370 pd->result after the thread descriptor has been freed.
3371
3372 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3373
3374 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3375 from function return type.
3376
3377 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3378
3379 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3380
3381 * scripts/test_printers_common.py: Set TERM to a known harmless
3382 value.
3383
3384 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3385
3386 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3387 (xdr_u_int): Likewise.
3388 (xdr_enum): Likewise.
3389 (xdr_bytes): Reword fall-through comment.
3390 (xdr_string): Likewise.
3391
3392 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3393
3394 [BZ #2421]
3395 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3396 (tests): Add tst-join8 tst-join9.
3397 * nptl/lll_timedwait_tid.c: Remove file.
3398 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3399 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3400 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3401 * nptl/pthread_join_common.c (timedwait_tid): New function.
3402 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3403 is set.
3404 * nptl/tst-join5.c (thread_join): New function.
3405 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3406 check.
3407 * nptl/tst-join8.c: New file.
3408 * nptl/tst-join9.c: Likewise.
3409 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3410 lll_futex_timed_wait_cancel): Add generic macros.
3411 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3412 Remove definitions.
3413 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3414 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3415 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3416 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3417 Remove function.
3418 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3419 Likewise.
3420 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3421 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3422 (lll_futex_timed_wait_cancel): New macro.
3423
3424 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3425
3426 * benchtests/Makefile: Add malloc-simple benchmark.
3427 * benchtests/bench-malloc-simple.c: New benchmark.
3428
3429 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3430
3431 * benchtests/bench-memmove.c (do_one_test): Remove unused
3432 ORIG_SRC.
3433 (do_test): Adjust.
3434 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3435 ORIG_SRC.
3436 (do_test): Adjust.
3437
3438 2019-01-13 Jim Wilson <jimw@sifive.com>
3439
3440 [BZ #24040]
3441 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3442 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3443 (func): New.
3444 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3445 call func directly.
3446 * nptl/Makefile (tests): Add tst-unwind-thread.
3447 (CFLAGS-tst-unwind-thread.c): Define.
3448 * nptl/tst-unwind-thread.c: New file.
3449 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3450 as undefined.
3451
3452 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3453
3454 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3455 comment wording.
3456 * nis/nis_call.c (__do_niscall3): Likewise.
3457
3458 * catgets/gencat.c (normalize_line): Use braces around empty
3459 'else' body.
3460 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3461 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3462 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3463 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3464 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3465 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3466 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3467 definition.
3468
3469 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3470 execlp returns.
3471
3472 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3473
3474 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3475 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3476 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3477 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3478 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3479 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3480 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3481 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3482 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3483 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3484 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3485 * benchtests/bench-bcopy.c: Delete file.
3486 * benchtests/bench-bzero.c: Likewise.
3487 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3488 (simple_memccpy): Remove.
3489 (generic_memccpy): Add function.
3490 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3491 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3492 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3493 (generic_mempcpy): Add new function.
3494 * benchtests/bench-memset.c (simple_bzero): Remove.
3495 (builtin_bzero): Remove.
3496 (builtin_memset): Remove.
3497 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3498 (generic_rawmemchr): Add new function.
3499
3500 2019-02-12 Florian Weimer <fweimer@redhat.com>
3501
3502 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3503
3504 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3505
3506 [BZ #24122]
3507 * elf/Makefile (tests): Add tst-audit13.
3508 (modules-names): Add tst-audit13mod1.
3509 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3510 rule.
3511 * elf/tst-audit13.c: New file.
3512 * elf/tst-audit13mod1.c: Likewise.
3513
3514 2019-02-12 Florian Weimer <fweimer@redhat.com>
3515
3516 [BZ #24122]
3517 * elf/rtld.c (unload_audit_module): New function.
3518 (report_audit_module_load_error): Likewise.
3519 (load_audit_module): Likewise. Extracted from dl_main. Call
3520 _dl_close if the laversion symbol cannot be found. Use early
3521 returns for error handling. Add malloc error check. Check for a
3522 zero return value from la_version. Remove spurious comment about
3523 static TLS initialization. Remove useless casts.
3524 (notify_audit_modules_of_loaded_object): New function. Extracted
3525 from dl_main.
3526 (load_audit_module): Likewise.
3527 (dl_main): Call load_audit_modules.
3528
3529 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3530
3531 * elf/dl-exception.c (_dl_exception_create_format): Add
3532 fall-through comments.
3533 * elf/ldconfig.c (parse_conf_include): Likewise.
3534 * elf/rtld.c (print_statistics): Likewise.
3535 * locale/programs/charmap.c (parse_charmap): Likewise.
3536 * misc/mntent_r.c (__getmntent_r): Likewise.
3537 * posix/wordexp.c (parse_arith): Likewise.
3538 (parse_backtick): Likewise.
3539 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3540 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3541 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3542
3543 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3544
3545 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3546 Use float instead of double.
3547
3548 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3549
3550 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3551
3552 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3553
3554 * sysdeps/powerpc/bits/mathinline.h: Remove.
3555
3556 2019-02-08 Florian Weimer <fweimer@redhat.com>
3557
3558 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3559 * math/bits/math-finite.h: Move to ...
3560 * bits/math-finite.h: ... here.
3561
3562 2019-02-08 Florian Weimer <fweimer@redhat.com>
3563
3564 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3565 * bits/unistd_ext.h: here.
3566
3567 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3568
3569 [BZ #21915]
3570 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3571 * nss/tst-nss-files-hosts-long.c: New file.
3572 * nss/tst-nss-files-hosts-long.root: New directory.
3573 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3574 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3575
3576 2019-02-08 Florian Weimer <fweimer@redhat.com>
3577
3578 * include/bits/unistd_ext.h: Remove file.
3579 * posix/bits/unistd_ext.h: Move to ...
3580 * sysdeps/generic/bits/unistd_ext.h: ... here.
3581
3582 2019-02-08 Florian Weimer <fweimer@redhat.com>
3583
3584 * include/bits/unistd_ext.h: New file.
3585
3586 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3587
3588 * time/tst-strftime2.c: Use array_length macros instead of magic
3589 numbers.
3590
3591 2019-02-08 Florian Weimer <fweimer@redhat.com>
3592
3593 [BZ #24161]
3594 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3595 argument.
3596 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3597 locking if the new do_locking argument is true.
3598 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3599 __run_fork_handlers.
3600
3601 2019-02-08 Florian Weimer <fweimer@redhat.com>
3602
3603 [BZ #6399]
3604 Linux: Add gettid system call wrapper.
3605 * posix/Makefile (headers): Add bits/unistd_ext.h.
3606 * posix/bits/unistd_ext.h: New file.
3607 * posix/unistd.h: Include it.
3608 * manual/process.texi (Process Identification): Document gettid.
3609 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3610 tst-gettid, tst-gettid-kill.
3611 (tst-gettid): Link with $(shared-thread-library).
3612 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3613 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3614 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3615 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3616 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3617 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3618 Add gettid.
3619 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3620 Likewise.
3621 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3622 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3623 Likewise.
3624 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3625 Likewise.
3626 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3627 Likewise.
3628 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3629 Likewise.
3630 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3631 Likewise.
3632 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3633 Likewise.
3634 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3635 Likewise.
3636 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3637 (GLIBC_2.30): Likewise.
3638 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3639 (GLIBC_2.30): Likewise.
3640 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3641 (GLIBC_2.30): Likewise.
3642 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3643 (GLIBC_2.30): Likewise.
3644 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3645 Likewise.
3646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3647 (GLIBC_2.30): Likewise.
3648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3649 (GLIBC_2.30): Likewise.
3650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3651 (GLIBC_2.30): Likewise.
3652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3653 (GLIBC_2.30): Likewise.
3654 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3655 Likewise.
3656 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3657 Likewise.
3658 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3659 Likewise.
3660 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3661 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3662 Likewise.
3663 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3664 Likewise.
3665 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3666 Likewise.
3667 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3668 Likewise.
3669 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3670
3671 2019-02-08 Florian Weimer <fweimer@redhat.com>
3672
3673 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3674 compatibility symbols.
3675
3676 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3677
3678 [BZ #24180]
3679 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3680 Add compiler barriers and comments.
3681
3682 2019-02-07 Florian Weimer <fweimer@redhat.com>
3683
3684 * include/array_length.h (array_length): Do not use a statement
3685 expression and _Static_assert, so that array_length can be used at
3686 file scope and as a constant expression.
3687
3688 2019-02-07 Florian Weimer <fweimer@redhat.com>
3689
3690 * support/xdlfcn.h (xdlmopen): Declare.
3691 * support/xdlmopen.c: New file.
3692 * support/Makefile (libsupport-routines): Add xdlmopen.
3693
3694 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3695
3696 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3697 before return type, without separate inline.
3698 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3699 * elf/dl-tunables.h (tunable_is_name): Likewise.
3700 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3701 (do_set_top_pad): Likewise.
3702 (do_set_mmap_threshold): Likewise.
3703 (do_set_mmaps_max): Likewise.
3704 (do_set_mallopt_check): Likewise.
3705 (do_set_perturb_byte): Likewise.
3706 (do_set_arena_test): Likewise.
3707 (do_set_arena_max): Likewise.
3708 (do_set_tcache_max): Likewise.
3709 (do_set_tcache_count): Likewise.
3710 (do_set_tcache_unsorted_limit): Likewise.
3711 * nis/nis_subr.c (count_dots): Likewise.
3712 * nptl/allocatestack.c (advise_stack_range): Likewise.
3713 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3714 (do_sin): Likewise.
3715 (reduce_sincos): Likewise.
3716 (do_sincos): Likewise.
3717 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3718 (do_set_elision_enable): Likewise.
3719 (TUNABLE_CALLBACK_FNDECL): Likewise.
3720
3721 2019-02-06 Florian Weimer <fweimer@redhat.com>
3722
3723 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3724 (xdlsym): Use dlerror to detect a NULL symbol.
3725
3726 2019-02-06 Florian Weimer <fweimer@redhat.com>
3727
3728 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3729 <stap-probe.h>.
3730 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3731
3732 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3733
3734 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3735
3736 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3737
3738 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3739 __wmemcmp and weak alias to wmemcmp.
3740
3741 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3742
3743 [BZ #23403]
3744 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3745 TLS_TCB_AT_TP tls variant.
3746 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3747 Add alignment checks.
3748 * support/Makefile (libsupport-routines): Add xposix_memalign and
3749 xpthread_setstack.
3750 * support/support.h: Add xposix_memalign.
3751 * support/xthread.h: Add xpthread_attr_setstack.
3752 * support/xposix_memalign.c: New File.
3753 * support/xpthread_attr_setstack.c: Likewise.
3754
3755 2019-02-05 Florian Weimer <fweimer@redhat.com>
3756
3757 [BZ #24164]
3758 arm: Use "nr" constraint for Systemtap probes, to avoid the
3759 compiler using memory operands for constants, due to the "o"
3760 alternative in the default "nor" constraint.
3761 * include/stap-probe.h [USE_STAP_PROBE]: Include
3762 <stap-probe-machine.h>
3763 * sysdeps/generic/stap-probe-machine.h: New file.
3764 * sysdeps/arm/stap-probe-machine.h: Likewise.
3765
3766 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3767
3768 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3769 with 0, not tcache->entries[tc_idx].
3770
3771 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3772 once.
3773
3774 2019-02-04 Andreas Schwab <schwab@suse.de>
3775
3776 [BZ #16976]
3777 [BZ #17396]
3778 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3779 looking up collating elements match against (wide) character
3780 sequence instead of name. Correct alignment adjustment.
3781 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3782 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3783 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3784 (LOCALES): Add cs_CZ.ISO-8859-2.
3785 * posix/tst-fnmatch4.c: New file.
3786 * posix/tst-fnmatch5.c: New file.
3787 * include/wchar.h (__wmemcmp): Declare.
3788 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3789 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3790 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3791 * sysdeps/s390/wmemcmp.c: Likewise.
3792
3793 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3794
3795 [BZ #24155]
3796 CVE-2019-7309
3797 * NEWS: Updated for CVE-2019-7309.
3798 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3799 upper 32 bits of RDX register for x32. Use unsigned Jcc
3800 instructions, instead of signed.
3801 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3802 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3803
3804 2019-02-04 Florian Weimer <fweimer@redhat.com>
3805
3806 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3807 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3808 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3809 Likewise.
3810 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3811 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3812 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3813 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3814 Likewise.
3815 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3816 Likewise.
3817 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3818 Likewise.
3819 (posix_spawn_file_actions_addopen): Likewise.
3820 (posix_spawn_file_actions_addclose): Likewise.
3821 (posix_spawn_file_actions_adddup2): Likewise.
3822 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3823 qualifiers.
3824 (posix_spawn_file_actions_addfchdir_np): Likewise.
3825
3826 2019-02-04 David Newall <glibc@davidnewall.com>
3827
3828 elf: Implement --preload option for the dynamic linker.
3829 * elf/rtld.c (preloadarg): New variable.
3830 (handle_preload_list): Pass through “where” argument to
3831 do_preload.
3832 (dl_main): Handle "--preload" and add second call to
3833 handle_preload_list.
3834 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3835 (tst-rtld-preload-OBJS): Set variable.
3836 (tst-rtld-preload.out): New target.
3837 * elf/tst-rtld-preload.sh: New file.
3838
3839 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3840
3841 * Makefile (testrun.sh): Exit in case of incorrect argument.
3842
3843 2019-02-04 Florian Weimer <fweimer@redhat.com>
3844
3845 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3846 alignment gaps.
3847
3848 2019-02-03 Florian Weimer <fweimer@redhat.com>
3849
3850 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3851 implicit overflow checks.
3852
3853 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3854
3855 * stdlib/isomac.c: Include <unistd.h>.
3856
3857 2019-02-03 Florian Weimer <fweimer@redhat.com>
3858
3859 * include/time.h (__tzfile_default): Use int, not long int, for
3860 the GMT offsets.
3861 * time/tzfile.c (struct ttinfo): Change type of the offset member
3862 to int.
3863 (__tzfile_read): Remove useless cast.
3864 (__tzfile_default): Adjust prototype.
3865 * time/tzset.c (tz_rule): Change type of the offset member to int.
3866 (parse_offset): Change the type of the sign variable to int.
3867
3868 2019-02-03 Florian Weimer <fweimer@redhat.com>
3869
3870 [BZ #24153]
3871 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3872 * libio/getchar.c (getchar): Likewise.
3873 * libio/getchar_u.c (getchar_unlocked): Likewise.
3874 * libio/getwchar.c (getwchar): Likewise.
3875 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3876 * libio/iogets.c (_IO_gets): Likewise.
3877 * libio/vscanf.c (_IO_vscanf): Likewise.
3878 * libio/vwscanf.c (__vwscanf): Likewise.
3879 * libio/tst-bz24153.c: New file.
3880 * libio/Makefile (tests): Add it.
3881
3882 2019-02-02 Florian Weimer <fweimer@redhat.com>
3883
3884 [BZ #14829]
3885 * manual/resource.texi (Basic Scheduling Functions): Add
3886 portability note. Change process to task throughout the section.
3887 Remove incorrect comment about sched_yield as it affects
3888 tasks/threads, not entire processes.
3889 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3890 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3891
3892 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3893
3894 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3895 * configure: Regenerated.
3896 * manual/install.texi (Tools for Compilation): Update minimum GCC
3897 version.
3898 * INSTALL: Regenerated.
3899
3900 2019-02-01 Florian Weimer <fweimer@redhat.com>
3901
3902 * support/support_test_compare_string.c
3903 (support_test_compare_string): Use "string" in error message.
3904 * support/tst-test_compare_string.c (do_test): Adjust.
3905
3906 2019-02-01 Florian Weimer <fweimer@redhat.com>
3907
3908 * support/support_format_address_family.c
3909 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3910
3911 2019-02-01 Florian Weimer <fweimer@redhat.com>
3912
3913 * manual/socket.texi (Internet Address Formats): Clarify the byte
3914 order of struct sockaddr_in, struct sockaddr_in6. Document
3915 sin6_flowinfo and sin6_scope_id.
3916
3917 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3918
3919 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3920 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3921 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3922 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3923 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3924 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3925
3926 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3927
3928 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3929 [!MEMCHR](MEMCHR): Set to __memchr.
3930 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3931 Add memchr_generic and memchr_nosimd.
3932 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3933 (__libc_ifunc_impl_list): Add memchr ifuncs.
3934 * sysdeps/aarch64/multiarch/memchr.c: New file.
3935 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3936 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3937
3938 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3939
3940 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3941 Add memset_emag.
3942 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3943 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3944 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3945 Add IS_EMAG check for ifunc dispatch.
3946 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3947 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3948
3949 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3950
3951 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3952 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3953 Add emag.
3954 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3955 New macro.
3956
3957 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3958
3959 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3960
3961 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3962
3963 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3964 syscall-template file.
3965
3966 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3967 Torvald Riegel <triegel@redhat.com>
3968 Rik Prohaska <prohaska7@gmail.com>
3969
3970 [BZ# 23844]
3971 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3972 tst-rwlock-trywrlock-stall.
3973 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3974 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3975 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3976 Set __wrphase_fute to 1 only if we started the write phase.
3977 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3978 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3979 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3980 * support/xpthread_rwlock_destroy.c: New file.
3981 * support/xthread.h: Declare xpthread_rwlock_destroy.
3982
3983 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3984
3985 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3986 version to 4.0.2.
3987
3988 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3989
3990 [BZ #24051]
3991 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3992 * libio/fileops.c (_IO_new_file_underflow): Likewise
3993 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3994 * libio/putchar.c (putchar): Likewise.
3995 * libio/putchar_u.c (putchar_unlocked): Likewise.
3996 * libio/putwchar.c (putchar): Likewise.
3997 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3998 * libio/tst-bz24051.c: New test.
3999 * libio/Makefile (tests): Add tst-bz24051
4000
4001 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
4002
4003 CVE-2019-9169
4004 regex: fix read overrun [BZ #24114]
4005 Problem found by AddressSanitizer, reported by Hongxu Chen in:
4006 https://debbugs.gnu.org/34140
4007 * posix/regexec.c (proceed_next_node):
4008 Do not read past end of input buffer.
4009
4010 2019-01-31 Florian Weimer <fweimer@redhat.com>
4011
4012 [BZ #24059]
4013 * nss/nss_files/files-alias.c (get_next_alias): Handle
4014 continuation line without newline at the end.
4015 * nss/tst-nss-files-alias-truncated.c: New file.
4016 * nss/Makefile [$(build-shared)] (tests): Add
4017 tst-nss-files-alias-truncated.
4018 (tst-nss-files-alias-truncated): Link with libnss_files.so.
4019 * support/namespace.h (struct support_chroot_configuration): Add
4020 aliases member.
4021 (struct support_chroot): Add path_aliases member.
4022 * support/support_chroot.c (support_chroot_create): Handle
4023 aliases.
4024 (support_chroot_free): Free path_aliases.
4025
4026 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
4027
4028 * version.h (RELEASE): Set to "development".
4029 (VERSION): Set to "2.29.9000".
4030 * NEWS: Add section for 2.30.
4031
4032 * version.h (RELEASE): Set to "stable".
4033 (VERSION): Set to "2.29".
4034 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
4035
4036 * NEWS: Add the list of bugs fixed in 2.29.
4037 * manual/contrib.texi: Update contributors list with some more
4038 names.
4039 * manual/install.texi: Update latest versions of packages
4040 tested.
4041 * INSTALL: Regenerated.
4042
4043 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
4044
4045 * po/be.po: Update translations.
4046 * po/bg.po: Likewise.
4047 * po/ca.po: Likewise.
4048 * po/cs.po: Likewise.
4049 * po/da.po: Likewise.
4050 * po/de.po: Likewise.
4051 * po/el.po: Likewise.
4052 * po/eo.po: Likewise.
4053 * po/es.po: Likewise.
4054 * po/fi.po: Likewise.
4055 * po/fr.po: Likewise.
4056 * po/gl.po: Likewise.
4057 * po/hr.po: Likewise.
4058 * po/hu.po: Likewise.
4059 * po/ia.po: Likewise.
4060 * po/id.po: Likewise.
4061 * po/it.po: Likewise.
4062 * po/ja.po: Likewise.
4063 * po/ko.po: Likewise.
4064 * po/lt.po: Likewise.
4065 * po/nb.po: Likewise.
4066 * po/nl.po: Likewise.
4067 * po/pl.po: Likewise.
4068 * po/pt_BR.po: Likewise.
4069 * po/ru.po: Likewise.
4070 * po/rw.po: Likewise.
4071 * po/sk.po: Likewise.
4072 * po/sl.po: Likewise.
4073 * po/sv.po: Likewise.
4074 * po/tr.po: Likewise.
4075 * po/uk.po: Likewise.
4076 * po/vi.po: Likewise.
4077 * po/zh_CN.po: Likewise.
4078 * po/zh_TW.po: Likewise.
4079
4080 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
4081
4082 [BZ #24130]
4083 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
4084 of $f3 register on $y_is_neg path.
4085
4086 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4087
4088 [BZ #24110]
4089 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
4090 sigaltstack.ss_flags.
4091
4092 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
4093
4094 [BZ #23758]
4095 * manual/time.texi (strftime): Document "%Ey".
4096 * time/strftime_l.c (__strftime_internal): Set the default width
4097 padding with zero of "%Ey" to 2.
4098
4099 [BZ #24096]
4100 * manual/time.texi (strftime): Document "%EC" and "%EY".
4101 * time/Makefile (tests): Add tst-strftime2.
4102 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
4103 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
4104 override padding for "%Ey".
4105 If an optional flag ('_' or '-') is specified to "%EY", interpret the
4106 "%Ey" in the subformat as if decorated with that flag.
4107 * time/tst-strftime2.c: New file.
4108
4109 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4110
4111 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
4112 are not defined.
4113
4114 [BZ #24122]
4115 * elf/Makefile (tests): Add tst-audit13.
4116 (modules-names): Add tst-audit13mod1.
4117 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
4118 rule.
4119 * elf/rtld.c (dl_main): Handle invalid audit module version.
4120 * elf/tst-audit13.c: New file.
4121 * elf/tst-audit13mod1.c: Likewise.
4122
4123 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4124
4125 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
4126 returned by __hurd_at_flags.
4127 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
4128 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
4129 directly instead of __hurd_file_name_lookup.
4130
4131 2019-01-21 Joseph Myers <joseph@codesourcery.com>
4132
4133 * scripts/build-many-glibcs.py (Context.checkout): Default
4134 binutils version to 2.32 branch.
4135
4136 2019-01-21 Florian Weimer <fweimer@redhat.com>
4137
4138 [BZ #20018]
4139 CVE-2016-10739
4140 resolv: Reject trailing characters in host names
4141 * include/arpa/inet.h (__inet_aton_exact): Declare.
4142 (inet_aton): Remove hidden prototype. No longer used internally.
4143 * nscd/gai.c (__inet_aton): Do not define.
4144 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4145 * nss/digits_dots.c (__inet_aton): Likewise.
4146 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4147 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4148 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4149 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4150 (tst-resolv-trailing): Likewise.
4151 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4152 libc.
4153 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4154 Make static. Add endp parameter.
4155 (__inet_aton_exact): New function.
4156 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4157 (__inet_addr): Call inet_aton_end.
4158 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4159 not just IPv6. Call __inet_aton_exact.
4160 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4161 (tests): Make const. Add additional test cases with trailing
4162 characters.
4163 (do_test): Use array_length.
4164 * resolv/tst-inet_aton_exact.c: New file.
4165 * resolv/tst-resolv-trailing.c: Likewise.
4166 * resolv/tst-resolv-nondecimal.c: Likewise.
4167 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4168
4169 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4170
4171 [BZ# 24097]
4172 CVE-2019-6488
4173 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4174 Clear the upper 32 bits of RSI register.
4175 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4176 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4177 and tst-size_t-wcsnlen.
4178 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4179 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4180
4181 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4182
4183 [BZ# 24097]
4184 CVE-2019-6488
4185 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4186 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4187 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4188 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4189 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4190
4191 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4192
4193 [BZ# 24097]
4194 CVE-2019-6488
4195 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4196 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4197 * sysdeps/x86_64/strcmp.S: Likewise.
4198 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4199 tst-size_t-strncmp and tst-size_t-wcsncmp.
4200 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4201 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4202 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4203
4204 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4205
4206 [BZ# 24097]
4207 CVE-2019-6488
4208 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4209 RDX_LP for length. Clear the upper 32 bits of RDX register.
4210 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4211 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4212 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4213 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4214
4215 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4216
4217 [BZ# 24097]
4218 CVE-2019-6488
4219 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4220 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4221 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4222 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4223
4224 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4225
4226 [BZ# 24097]
4227 CVE-2019-6488
4228 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4229 length. Clear the upper 32 bits of RDX register.
4230 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4231 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4232 Likewise.
4233 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4234 Likewise.
4235 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4236 tst-size_t-wmemchr.
4237 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4238
4239 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 [BZ# 24097]
4242 CVE-2019-6488
4243 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4244 length. Clear the upper 32 bits of RDX register.
4245 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4246 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4247 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4248 tst-size_t-wmemcmp.
4249 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4250 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4251
4252 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4253
4254 [BZ# 24097]
4255 CVE-2019-6488
4256 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
4257 upper 32 bits of RDX register.
4258 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4259 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4260 tst-size_t-wmemchr.
4261 * sysdeps/x86_64/x32/test-size_t.h: New file.
4262 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4263 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4264
4265 2019-01-18 Florian Weimer <fweimer@redhat.com>
4266
4267 [BZ #24112]
4268 resolv: Do not send queries for non-host-names in nss_dns.
4269 * resolv/nss_dns/dns-host.c (check_name): New function.
4270 (_nss_dns_gethostbyname2_r): Use it.
4271 (_nss_dns_gethostbyname_r): Likewise.
4272 (_nss_dns_gethostbyname4_r): Likewise.
4273
4274 2019-01-21 Florian Weimer <fweimer@redhat.com>
4275
4276 * resolv/inet_addr.c: Reformat to GNU style.
4277 (__inet_addr, __inet_aton): Update comment.
4278
4279 2019-01-18 Florian Weimer <fweimer@redhat.com>
4280
4281 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4282 ("malloc: Use current (C11-style) atomics for fastbin access").
4283 This commit introduces a substantial performance regression on
4284 POWER and Aarch64.
4285 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4286 (REMOVE_FB): Define.
4287 (_int_malloc): Use it and reindent.
4288 (_int_free): Use CAS loop with
4289 catomic_compare_and_exchange_val_rel.
4290 (malloc_consolidate): Use atomic_exchange_acq.
4291
4292
4293 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4294
4295 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
4296 -Wl,-z,now.
4297 (LDFLAGS-tst-minsigstksz-2): Likewise.
4298 (LDFLAGS-tst-minsigstksz-3): Likewise.
4299 (LDFLAGS-tst-minsigstksz-3a): Likewise.
4300 (LDFLAGS-tst-minsigstksz-4): Likewise.
4301
4302 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
4303
4304 * manual/time.texi (strftime): Fix the wording to "alternative" rather
4305 than "alternate".
4306
4307 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
4308
4309 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4310
4311 2019-01-16 Zack Weinberg <zackw@panix.com>
4312
4313 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4314 (xget_sigstack_location): New test support functions.
4315 * support/xsigstack.c: New file, implementing them.
4316 * support/tst-xsigstack.c: New test for them.
4317 * support/Makefile: Update.
4318
4319 * signal/tst-minsigstksz-1.c
4320 * signal/tst-minsigstksz-2.c
4321 * signal/tst-minsigstksz-3.c
4322 * signal/tst-minsigstksz-3a.c
4323 * signal/tst-minsigstksz-4.c: New tests.
4324 * signal/Makefile: Run them.
4325
4326 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4327
4328 * po/libc.pot: Regenerate.
4329
4330 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4331
4332 * math/libm-test-fma.inc (fma_test_data): Set
4333 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4334
4335 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4336
4337 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4338 (do_test): Changed __vector __int128_t to __vector unsigned int.
4339
4340 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4341
4342 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4343 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4344 stpcpy-avx2 and stpncpy-avx2.
4345 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4346 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4347 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4348 and __stpncpy_avx2.
4349 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4350 ifunc-strcpy.h}: rename header for a more generic name.
4351 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4352 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4353 AVX unaligned load is fast and vzeroupper is preferred.
4354 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4355 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4356 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4357 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4358 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4359 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4360
4361 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4362
4363 * argp/argp-help.c: Fix typo in comment.
4364 * misc/sys/cdefs.h: Likewise.
4365 * posix/regexec.c (sift_states_iter_mb): Likewise.
4366 * socket/sockatmark.c: Likewise.
4367 * socket/sys/socket.h: Likewise.
4368 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4369 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4370 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4371 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4372 * sysdeps/unix/sockatmark.c: Likewise.
4373 * time/strptime_l.c: Likewise.
4374
4375 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4376
4377 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4378 missing space after the cast of "_NL_CURRENT".
4379
4380 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4381
4382 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4383 ifdef to fix read of VSCR.
4384 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4385 tst-ucontext-ppc64-vscr.c to test list.
4386 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4387
4388 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4389
4390 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4391 fall-through.
4392
4393 2019-01-09 Jim Wilson <jimw@sifive.com>
4394
4395 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4396
4397 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4398
4399 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4400 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4401 __memcpy_falkor for ares.
4402 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4403 Add new define.
4404 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4405 Add ares cpu.
4406
4407 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4408
4409 [BZ #24066]
4410 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4411 4_FP_W_TYPEs are used for IEEE quad precision.
4412 * soft-fp/extendhftf2.c: Likewise.
4413 * soft-fp/extendsftf2.c: Likewise.
4414 * soft-fp/extendxftf2.c: Likewise.
4415 * soft-fp/trunctfdf2.c: Likewise.
4416 * soft-fp/trunctfhf2.c: Likewise.
4417 * soft-fp/trunctfsf2.c: Likewise.
4418 * soft-fp/trunctfxf2.c: Likewise.
4419 * sysdeps/alpha/ots_cvttx.c: Likewise.
4420 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4421 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4422 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4423 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4424 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4425 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4426 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4427 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4428 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4429 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4430 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4431 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4432 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4433 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4434 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4435 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4436 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4437
4438 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4439
4440 [BZ #24024]
4441 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4442 code with -fmath-errno.
4443 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4444 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4445 * string/test-strerror-errno.c: New file.
4446
4447 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4448
4449 [BZ #24046]
4450 * localedata/locales/en_US (date_fmt): Add, set to
4451 "%a %d %b %Y %r %Z".
4452
4453 2019-01-07 Florian Weimer <fweimer@redhat.com>
4454
4455 [BZ #24063]
4456 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4457 instead of @var{errno}.
4458 (Parsing of Integers): Likewise.
4459 (Parsing of Floats): Likewise.
4460 * manual/filesys.texi (Working with Directory Trees): Likewise.
4461 (Temporary Files): Likewise.
4462 * manual/job.texi (Terminal Access Functions): Likewise.
4463 * manual/llio.texi (Synchronizing I/O): Likewise.
4464 * manual/math.texi (SVID Random): Likewise.
4465 * manual/message.texi (The catgets Functions): Likewise.
4466 (Translation with gettext): Likewise.
4467 (Locating gettext catalog): Likewise.
4468 (Charset conversion in gettext): Likewise.
4469 * manual/nss.texi (NSS Module Function Internals): Likewise.
4470 * manual/search.texi (Hash Search Function): Likewise.
4471 * manual/setjmp.texi (System V contexts): Likewise.
4472 * manual/time.texi (Sleeping): Likewise.
4473 * manual/users.texi (Lookup User): Likewise.
4474 (Lookup Group): Likewise.
4475
4476 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4477
4478 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4479 fix typo.
4480
4481 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4482
4483 [BZ #19444]
4484 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4485 __builtin_unreachable for default case in switch.
4486 (__ieee754_yn): Likewise.
4487 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4488 (__ieee754_ynl): Likewise.
4489 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4490 (__ieee754_ynl): Likewise.
4491 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4492 (__ieee754_ynl): Likewise.
4493
4494 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4495
4496 * manual/maint.texi: Use @{ and @}.
4497
4498 2019-01-04 Florian Weimer <fweimer@redhat.com>
4499
4500 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4501 function.
4502 (do_in_chroot_1): Call it.
4503 (run_chroot_tests):
4504 Improve error reporting in case it is not possible to create a
4505 collision for the PTY name required by the test.
4506
4507 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4508
4509 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4510 lll_wait_tid with timeout.
4511 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4512 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4513 futex_reltimed_wait_cancelable for cancelabla mode.
4514 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4515 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4516 macros.
4517 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4518 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4519 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4520 SYSCALL_CANCEL_NCS): New macro.
4521 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4522 (lll_timedwait_tid): Remove macro.
4523 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4524 Likewise.
4525 (lll_timedwait_tid): Likewise.
4526 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4527 Likewise.
4528 (lll_timedwait_tid): Likewise.
4529 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4530 Likewise.
4531 (lll_timedwait_tid): Likewise.
4532 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4533 Use INTERNAL_SYSCALL_CANCEL.
4534 * sysdeps/unix/sysv/linux/futex-internal.h
4535 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4536 instead of __pthread_{enable,disable}_asynccancel.
4537 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4538 (lll_futex_wait_cancel): New macro.
4539
4540 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4541 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4542
4543 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4544 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4545
4546 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4547 in backtrace analysis.
4548 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4549 side-effects.
4550 (tf_send): Likewise.
4551
4552 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4553 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4554 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4555 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4556 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4557 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4558 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4559 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4560 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4561 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4562 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4563 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4564 Likewise.
4565 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4566 tst-cancel-wrappers.sh.
4567 (generated): Remove tst-cancel-wrappers.out.
4568 (tst-cancel-wrappers.out): Remove rule.
4569 * nptl/tst-cancel-wrappers.sh: Remove file.
4570
4571 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4572
4573 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4574 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4575 Update.
4576
4577 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4578
4579 [BZ #23640]
4580 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4581 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4582 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4583 close-on-exec reset for adddup2 file action.
4584 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4585
4586 2019-01-03 Zack Weinberg <zackw@panix.com>
4587
4588 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4589 parameter. Only use deprecated scanf when __USE_GNU is defined
4590 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4591 than 201103L, whichever is relevant for the language being compiled.
4592
4593 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4594 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4595 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4596 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4597 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4598
4599 * libio/iovsscanf.c
4600 * libio/fwscanf.c
4601 * libio/iovswscanf.c
4602 * libio/swscanf.c
4603 * libio/vscanf.c
4604 * libio/vwscanf.c
4605 * libio/wscanf.c
4606 * stdio-common/fscanf.c
4607 * stdio-common/scanf.c
4608 * stdio-common/vfscanf.c
4609 * stdio-common/vfwscanf.c
4610 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4611 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4612 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4613 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4614 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4615 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4616 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4617 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4618 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4619 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4620 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4621 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4622 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4623 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4624 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4625
4626 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4627 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4628 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4629 not sscanf.
4630 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4631 with a preprocessor macro.
4632
4633 * stdio-common/bug21.c, stdio-common/scanf14.c:
4634 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4635 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4636 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4637 to xscanf, xfscanf, xsscanf.
4638
4639 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4640 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4641 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4642 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4643 xfscanf, xsscanf.
4644 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4645 override feature selection macros or provide definitions of u_char etc.
4646 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4647 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4648 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4649 with -std=gnu89.
4650
4651 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4652
4653 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4654 bits/termios-misc.h.
4655 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4656 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4657 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4658 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4659 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4660 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4661
4662 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4663 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4664 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4665 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4666 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4667 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4668 termios-misc.h.
4669 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4670 (sysdep_headers): Add termios-misc.h.
4671
4672 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4673 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4674 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4675
4676 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4677 termios-tcflow.h.
4678 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4679 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4680 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4681 TCSAFLUSH): Move to termios-tcflow.h.
4682 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4683 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4684 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4685 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4686
4687 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4688 termios-c_lflag.h.
4689 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4690 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4691 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4692 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4693 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4694 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4695 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4696 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4697 Likewise.
4698 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4699 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4700 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4701 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4702
4703 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4704 termios-c_cflag.h.
4705 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4706 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4707 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4708 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4709 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4710 termios-c_cflag.h.
4711 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4712 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4713 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4714 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4715
4716 [BZ #23783]
4717 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4718 termios-baud.h.
4719 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4720 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4721 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4722 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4723 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4724 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4725 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4726 __MAX_BAUD): Move to termios-baud.h.
4727 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4728 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4729 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4730 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4731 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4732
4733 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4734 termios-c_oflag.h.
4735 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4736 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4737 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4738 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4739 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4740 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4741 termios-c_oflag.h.
4742 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4743 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4744 FFR1): Likewise.
4745 [USE_MISC] (XTABS): Likewise.
4746 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4747 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4748 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4749 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4750
4751 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4752 termios-c_iflag.h.
4753 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4754 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4755 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4756 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4757 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4758 IUTF8): Move to termios-c_iflag.h.
4759 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4760 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4761 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4762 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4763
4764 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4765 termios-cc.h.
4766 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4767 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4768 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4769 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4770 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4771 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4772 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4773 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4774 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4775 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4776 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4777 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4778
4779 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4780 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4781 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4782 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4783 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4784 termios-struct.h.
4785 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4786 termios-struct.h.
4787 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4788 Likewise.
4789 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4790 Likewise.
4791 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4792 Likewise.
4793 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4794 Likewise.
4795 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4796 _HAVE_C_OSPEED): Define.
4797 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4798 _HAVE_C_OSPEED): Likewise.
4799 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4800 _HAVE_C_OSPEED): Likewise.
4801 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4802 (cfsetospeed): Check for define value instead of existence.
4803 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4804 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4805 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4806 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4807 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4808
4809 [BZ #17783]
4810 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4811 Define.
4812 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4813 (TIOCSER_TEMT): Likewise.
4814 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4815 (TEOCSER_TEMT): Likewise.
4816
4817 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4818
4819 [BZ #24011]
4820 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4821
4822 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4823
4824 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4825
4826 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4827
4828 * sysdeps/htl/pt-barrierattr-setpshared.c
4829 (pthread_barrierattr_setpshared): Add stub warning.
4830 * sysdeps/htl/pt-condattr-setpshared.c
4831 (pthread_condattr_setpshared): Likewise.
4832 * sysdeps/htl/pt-mutexattr-setpshared.c
4833 (pthread_mutexattr_setpshared): Likewise.
4834 * sysdeps/htl/pt-rwlockattr-setpshared.c
4835 (pthread_rwlockattr_setpshared): Likewise.
4836 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4837 (pthread_mutexattr_setpshared): Likewise.
4838
4839 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4840
4841 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4842 constants to match with Linux 4.20.
4843
4844 * sysdeps/mips/mips32/libm-test-ulps: Update.
4845 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4846
4847 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4848
4849 [BZ #24034]
4850 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4851 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4852 than __typeof (...) for the a_ptr variable.
4853
4854 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4855
4856 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4857 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4858 * libio/Makefile (tests): Add tst-sprintf-ub and
4859 tst-sprintf-chk-ub.
4860 (CFLAGS-tst-sprintf-ub.c): New variable.
4861 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4862 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4863 destination buffer and check for overflows in fortified mode.
4864 * libio/libioP.h (PRINTF_CHK): New macro.
4865 * libio/tst-sprintf-chk-ub.c: New file.
4866 * libio/tst-sprintf-ub.c: Likewise.
4867
4868 2019-01-02 Florian Weimer <fweimer@redhat.com>
4869
4870 [BZ #24018]
4871 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4872 failure.
4873
4874 2019-01-02 Florian Weimer <fweimer@redhat.com>
4875
4876 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4877
4878 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4879
4880 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4881 macro.
4882
4883 * sysdeps/unix/sysv/linux/netpacket/packet.h
4884 (PACKET_IGNORE_OUTGOING): New macro.
4885
4886 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4887 macro.
4888
4889 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4890 version to 4.20.
4891 (riscv_flush_icache): New syscall.
4892
4893 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4894 trailing whitespace removed.
4895 * scripts/config.guess: Update to version 2019-01-01.
4896 * scripts/config.sub: Update to version 2019-01-01.
4897 * scripts/move-if-change: Update from gnulib.
4898
4899 * NEWS: Update copyright dates.
4900 * catgets/gencat.c (print_version): Likewise.
4901 * csu/version.c (banner): Likewise.
4902 * debug/catchsegv.sh: Likewise.
4903 * debug/pcprofiledump.c (print_version): Likewise.
4904 * debug/xtrace.sh (do_version): Likewise.
4905 * elf/ldconfig.c (print_version): Likewise.
4906 * elf/ldd.bash.in: Likewise.
4907 * elf/pldd.c (print_version): Likewise.
4908 * elf/sotruss.sh: Likewise.
4909 * elf/sprof.c (print_version): Likewise.
4910 * iconv/iconv_prog.c (print_version): Likewise.
4911 * iconv/iconvconfig.c (print_version): Likewise.
4912 * locale/programs/locale.c (print_version): Likewise.
4913 * locale/programs/localedef.c (print_version): Likewise.
4914 * login/programs/pt_chown.c (print_version): Likewise.
4915 * malloc/memusage.sh (do_version): Likewise.
4916 * malloc/memusagestat.c (print_version): Likewise.
4917 * malloc/mtrace.pl: Likewise.
4918 * manual/libc.texinfo: Likewise.
4919 * nptl/version.c (banner): Likewise.
4920 * nscd/nscd.c (print_version): Likewise.
4921 * nss/getent.c (print_version): Likewise.
4922 * nss/makedb.c (print_version): Likewise.
4923 * posix/getconf.c (main): Likewise.
4924 * scripts/test-installation.pl: Likewise.
4925 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4926
4927 * All files with FSF copyright notices: Update copyright dates
4928 using scripts/update-copyrights.
4929 * locale/programs/charmap-kw.h: Regenerated.
4930 * locale/programs/locfile-kw.h: Likewise.
4931
4932 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4933
4934 * timezone/zdump.c: Update from tzcode 2018i.
4935 * timezone/zic.c: Likewise.
4936
4937 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4938
4939 regex: improve Gnulib port to AIX
4940 From the glibc point of view, this removes duplicate macro
4941 definitions and is obviously safe.
4942 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4943 * posix/regex_internal.h:
4944 (__attribute__, __attribute_warn_unused_result__):
4945 Remove; already defined elsewhere.
4946
4947 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4948
4949 [BZ #24027]
4950 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4951 copying operation. (ncopies had the wrong type, resulting in an
4952 integer wraparound and too few elements being copied.)
4953
4954 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4955
4956 [BZ #24022]
4957 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4958 <asm/syscalls.h> exists with __has_include__ before including it.
4959
4960 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4961
4962 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4963 version to 4.20.
4964
4965 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4966
4967 * hurd/lookup-retry: Include <unistd.h>.
4968 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4969 Release it on return. Handle "pid" magical lookup retry.
4970
4971 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4972
4973 [BZ #10496]
4974 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4975 (t_fmt_ampm): Likewise.
4976 * localedata/locales/aa_ER (t_fmt): Likewise.
4977 (t_fmt_ampm): Likewise.
4978 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4979 (t_fmt_ampm): Likewise.
4980 * localedata/locales/aa_ET (t_fmt): Likewise.
4981 (t_fmt_ampm): Likewise.
4982 * localedata/locales/am_ET (t_fmt): Likewise.
4983 (t_fmt_ampm): Likewise.
4984 * localedata/locales/byn_ER (t_fmt): Likewise.
4985 (t_fmt_ampm): Likewise.
4986 * localedata/locales/om_ET (t_fmt): Likewise.
4987 (t_fmt_ampm): Likewise.
4988 * localedata/locales/sid_ET (t_fmt): Likewise.
4989 (t_fmt_ampm): Likewise.
4990 * localedata/locales/so_DJ (t_fmt): Likewise.
4991 (t_fmt_ampm): Likewise.
4992 * localedata/locales/so_ET (t_fmt): Likewise.
4993 (t_fmt_ampm): Likewise.
4994 * localedata/locales/so_SO (t_fmt): Likewise.
4995 (t_fmt_ampm): Likewise.
4996 * localedata/locales/ti_ER (t_fmt): Likewise.
4997 (t_fmt_ampm): Likewise.
4998 * localedata/locales/ti_ET (t_fmt): Likewise.
4999 (t_fmt_ampm): Likewise.
5000 * localedata/locales/tig_ER (t_fmt): Likewise.
5001 (t_fmt_ampm): Likewise.
5002 * localedata/locales/wal_ET (t_fmt): Likewise.
5003 (t_fmt_ampm): Likewise.
5004
5005 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
5006 * localedata/locales/ar_IN (t_fmt): Likewise.
5007 * localedata/locales/bhb_IN (t_fmt): Likewise.
5008 * localedata/locales/bho_IN (t_fmt): Likewise.
5009 * localedata/locales/bi_VU (t_fmt): Likewise.
5010 * localedata/locales/bn_BD (t_fmt): Likewise.
5011 * localedata/locales/bn_IN (t_fmt): Likewise.
5012 * localedata/locales/brx_IN (t_fmt): Likewise.
5013 * localedata/locales/doi_IN (t_fmt): Likewise.
5014 * localedata/locales/en_HK (t_fmt): Likewise.
5015 (t_fmt_ampm): Likewise.
5016 * localedata/locales/en_IN (t_fmt): Likewise.
5017 * localedata/locales/en_PH (t_fmt): Likewise.
5018 * localedata/locales/gu_IN (t_fmt): Likewise.
5019 * localedata/locales/hi_IN (t_fmt): Likewise.
5020 * localedata/locales/hif_FJ (t_fmt): Likewise.
5021 * localedata/locales/hne_IN (t_fmt): Likewise.
5022 * localedata/locales/kn_IN (t_fmt): Likewise.
5023 * localedata/locales/kok_IN (t_fmt): Likewise.
5024 * localedata/locales/ks_IN (t_fmt): Likewise.
5025 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
5026 * localedata/locales/mag_IN (t_fmt): Likewise.
5027 * localedata/locales/mai_IN (t_fmt): Likewise.
5028 * localedata/locales/mjw_IN (t_fmt): Likewise.
5029 * localedata/locales/ml_IN (t_fmt): Likewise.
5030 * localedata/locales/mni_IN (t_fmt): Likewise.
5031 * localedata/locales/mr_IN (t_fmt): Likewise.
5032 * localedata/locales/ms_MY (t_fmt): Likewise.
5033 * localedata/locales/pa_IN (t_fmt): Likewise.
5034 * localedata/locales/raj_IN (t_fmt): Likewise.
5035 * localedata/locales/sa_IN (t_fmt): Likewise.
5036 * localedata/locales/sat_IN (t_fmt): Likewise.
5037 * localedata/locales/sd_IN (t_fmt): Likewise.
5038 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
5039 * localedata/locales/tcy_IN (t_fmt): Likewise.
5040 * localedata/locales/the_NP (t_fmt): Likewise.
5041 * localedata/locales/to_TO (t_fmt): Likewise.
5042 * localedata/locales/ur_IN (t_fmt): Likewise.
5043
5044 * localedata/locales/hif_FJ (d_t_fmt): Set to
5045 "%A %d %b %Y %I:%M:%S %p".
5046 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
5047
5048 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
5049 * localedata/locales/ar_BH (t_fmt): Likewise.
5050 * localedata/locales/ar_DZ (t_fmt): Likewise.
5051 * localedata/locales/ar_EG (t_fmt): Likewise.
5052 * localedata/locales/ar_IQ (t_fmt): Likewise.
5053 * localedata/locales/ar_JO (t_fmt): Likewise.
5054 * localedata/locales/ar_KW (t_fmt): Likewise.
5055 * localedata/locales/ar_LB (t_fmt): Likewise.
5056 * localedata/locales/ar_LY (t_fmt): Likewise.
5057 * localedata/locales/ar_OM (t_fmt): Likewise.
5058 * localedata/locales/ar_QA (t_fmt): Likewise.
5059 * localedata/locales/ar_SD (t_fmt): Likewise.
5060 * localedata/locales/ar_SS (t_fmt): Likewise.
5061 * localedata/locales/ar_SY (t_fmt): Likewise.
5062 * localedata/locales/ar_TN (t_fmt): Likewise.
5063 * localedata/locales/ar_YE (t_fmt): Likewise.
5064
5065 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
5066 (t_fmt_ampm): Likewise.
5067 * localedata/locales/gez_ET (t_fmt): Likewise.
5068 (t_fmt_ampm): Likewise.
5069
5070 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
5071 (t_fmt_ampm): Likewise.
5072 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
5073
5074 * localedata/locales/zh_HK (t_fmt):
5075 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
5076
5077 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
5078 because this locale does not use the 12-hour clock.
5079 (t_fmt): Set to "%Z %H:%M:%S".
5080 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
5081
5082 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
5083 because this locale does not use the 12-hour clock.
5084 (t_fmt): Set to "%H:%M:%S %Z".
5085 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
5086
5087 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
5088 because this locale does not use the 12-hour clock.
5089 (t_fmt): Set to "%T".
5090 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
5091 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
5092
5093 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
5094 because this locale does not use the 12-hour clock.
5095 (t_fmt): Set to "%H:%M:%S %Z".
5096 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
5097
5098 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
5099 because this locale does not use the 12-hour clock.
5100 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
5101 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
5102
5103 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
5104
5105 [BZ #10496]
5106 [BZ #23724]
5107 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
5108 (t_fmt_ampm): Likewise.
5109 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
5110 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
5111 (d_fmt): Set to "%-d.%-m.%y".
5112
5113 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5114
5115 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
5116 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
5117 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
5118 Likewise.
5119 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5120 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
5121 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
5122 function.
5123 * support/blob_repeat.c (check_mul_overflow_size_t,
5124 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
5125
5126 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
5127
5128 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
5129
5130 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
5131
5132 regex: simplify Gnulib port
5133 This simplifies the code, by removing stuff intended for porting
5134 to Gnulib but no longer needed there.
5135 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
5136 uses of libc_hidden_def, weak_alias.
5137 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
5138 _Restrict_ except for public-facing headers.
5139 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
5140 Remove; already defined elsewhere.
5141 * posix/regex.c, posix/regex_internal.h:
5142 Use __GNUC_PREREQ instead of rolling our own.
5143 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5144
5145 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
5146
5147 * benchtests/bench-strlen.c (generic_strlen): New function.
5148 (memchr_strlen): New function.
5149
5150 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5151
5152 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5153 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5154 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5155
5156 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5157
5158 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5159
5160 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5161
5162 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5163 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5164 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
5165 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5166 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5167 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5168 <sysdeps/ieee754/flt-32/s_sincosf.c>.
5169
5170 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5171
5172 [BZ #24023]
5173 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5174 PLT reference in libc.so.
5175 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5176 _Q_lltoq and _Q_qtod PLT references in libc.so.
5177
5178 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
5179
5180 * benchtests/bench-memchr.c: Cleanup defines.
5181 * benchtests/bench-memcmp.c: Likewise.
5182 * benchtests/bench-memset.c: Likewise.
5183 * benchtests/bench-memset-large.c: Likewise.
5184 * benchtests/bench-memset-walk.c: Likewise.
5185 * benchtests/bench-stpcpy.c: Likewise.
5186 * benchtests/bench-stpncpy.c: Likewise.
5187 * benchtests/bench-strcat.c: Likewise.
5188 * benchtests/bench-strchr.c: Likewise.
5189 * benchtests/bench-strcmp.c: Likewise.
5190 * benchtests/bench-strcpy.c: Likewise.
5191 * benchtests/bench-strcspn.c: Likewise.
5192 * benchtests/bench-string.h: Likewise.
5193 * benchtests/bench-strlen.c: Likewise.
5194 * benchtests/bench-strncat.c: Likewise.
5195 * benchtests/bench-strncmp.c: Likewise.
5196 * benchtests/bench-strncpy.c: Likewise.
5197 * benchtests/bench-strnlen.c: Likewise.
5198 * benchtests/bench-strpbrk.c: Likewise.
5199 * benchtests/bench-strrchr.c: Likewise.
5200 * benchtests/bench-strspn.c: Likewise.
5201
5202 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5203
5204 * stdlib/longlong.h: Update from GCC.
5205
5206 [BZ #23993]
5207 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5208 * configure: Regenerated.
5209 * manual/install.texi (Tools for Compilation): Update minimum GCC
5210 version.
5211 * INSTALL: Regenerated.
5212
5213 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
5214
5215 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5216
5217 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
5218
5219 * malloc/malloc.c (mremap_chunk): Additional checks.
5220
5221 2018-12-21 Mao Han <han_mao@c-sky.com>
5222
5223 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5224 * scripts/build-many-glibcs.py: Add C-SKY targets.
5225 * sysdeps/csky/Implies: New file.
5226 * sysdeps/csky/Makefile: Likewise.
5227 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5228 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5229 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5230 * sysdeps/csky/abiv2/memcmp.S: Likewise.
5231 * sysdeps/csky/abiv2/memcpy.S: Likewise.
5232 * sysdeps/csky/abiv2/memmove.S: Likewise.
5233 * sysdeps/csky/abiv2/memset.S: Likewise.
5234 * sysdeps/csky/abiv2/setjmp.S: Likewise.
5235 * sysdeps/csky/abiv2/start.S: Likewise.
5236 * sysdeps/csky/abiv2/strcmp.S: Likewise.
5237 * sysdeps/csky/abiv2/strcpy.S: Likewise.
5238 * sysdeps/csky/abiv2/strlen.S: Likewise.
5239 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5240 * sysdeps/csky/abort-instr.h: Likewise.
5241 * sysdeps/csky/atomic-machine.h: Likewise.
5242 * sysdeps/csky/bits/endian.h: Likewise.
5243 * sysdeps/csky/bits/fenv.h: Likewise.
5244 * sysdeps/csky/bits/link.h: Likewise.
5245 * sysdeps/csky/bits/setjmp.h: Likewise.
5246 * sysdeps/csky/bsd-_setjmp.S: Likewise.
5247 * sysdeps/csky/bsd-setjmp.S: Likewise.
5248 * sysdeps/csky/configure: Likewise.
5249 * sysdeps/csky/configure.ac: Likewise.
5250 * sysdeps/csky/dl-machine.h: Likewise.
5251 * sysdeps/csky/dl-procinfo.c: Likewise.
5252 * sysdeps/csky/dl-procinfo.h: Likewise.
5253 * sysdeps/csky/dl-sysdep.h: Likewise.
5254 * sysdeps/csky/dl-tls.h: Likewise.
5255 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5256 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5257 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5258 * sysdeps/csky/fpu/fegetenv.c: Likewise.
5259 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5260 * sysdeps/csky/fpu/fegetmode.c: Likewise.
5261 * sysdeps/csky/fpu/fegetround.c: Likewise.
5262 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5263 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5264 * sysdeps/csky/fpu/fenv_private.h: Likewise.
5265 * sysdeps/csky/fpu/fesetenv.c: Likewise.
5266 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5267 * sysdeps/csky/fpu/fesetmode.c: Likewise.
5268 * sysdeps/csky/fpu/fesetround.c: Likewise.
5269 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5270 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5271 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5272 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5273 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5274 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5275 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5276 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5277 * sysdeps/csky/fpu_control.h: Likewise.
5278 * sysdeps/csky/gccframe.h: Likewise.
5279 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5280 * sysdeps/csky/ldsodefs.h: Likewise.
5281 * sysdeps/csky/libc-tls.c: Likewise.
5282 * sysdeps/csky/linkmap.h: Likewise.
5283 * sysdeps/csky/machine-gmon.h: Likewise.
5284 * sysdeps/csky/memusage.h: Likewise.
5285 * sysdeps/csky/nofpu/Implies: Likewise.
5286 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5287 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5288 * sysdeps/csky/nptl/Makefile: Likewise.
5289 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5290 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5291 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5292 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5293 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5294 * sysdeps/csky/nptl/tls.h: Likewise.
5295 * sysdeps/csky/preconfigure: Likewise.
5296 * sysdeps/csky/sfp-machine.h: Likewise.
5297 * sysdeps/csky/sotruss-lib.c: Likewise.
5298 * sysdeps/csky/stackinfo.h: Likewise.
5299 * sysdeps/csky/sysdep.h: Likewise.
5300 * sysdeps/csky/tininess.h: Likewise.
5301 * sysdeps/csky/tst-audit.h: Likewise.
5302 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5303 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5304 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5305 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5306 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5307 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5308 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5309 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5310 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5311 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5312 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5313 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5314 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5315 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5316 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5317 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5318 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5319 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5320 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5321 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5322 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5323 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5324 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5325 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5326 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5327 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5328 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5329 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5330 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5331 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5332 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5333 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5334 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5335 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5336 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5337 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5338 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5339 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5340 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5341 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5342 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5343 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5344 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5345 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5346
5347 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5348
5349 * include/time.h (__difftime64): Add.
5350 * time/difftime.c (subtract): convert to 64-bit time.
5351 * time/difftime.c (__difftime64): Add.
5352 * time/difftime.c (__difftime): Wrap around __difftime64.
5353
5354 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5355
5356 * manual/examples/add.c: Remove redundant "if not".
5357 * manual/examples/argp-ex1.c: Likewise.
5358 * manual/examples/argp-ex2.c: Likewise.
5359 * manual/examples/argp-ex3.c: Likewise.
5360 * manual/examples/argp-ex4.c: Likewise.
5361 * manual/examples/atexit.c: Likewise.
5362 * manual/examples/db.c: Likewise.
5363 * manual/examples/dir.c: Likewise.
5364 * manual/examples/dir2.c: Likewise.
5365 * manual/examples/execinfo.c: Likewise.
5366 * manual/examples/filecli.c: Likewise.
5367 * manual/examples/filesrv.c: Likewise.
5368 * manual/examples/fmtmsgexpl.c: Likewise.
5369 * manual/examples/genpass.c: Likewise.
5370 * manual/examples/inetcli.c: Likewise.
5371 * manual/examples/inetsrv.c: Likewise.
5372 * manual/examples/isockad.c: Likewise.
5373 * manual/examples/longopt.c: Likewise.
5374 * manual/examples/memopen.c: Likewise.
5375 * manual/examples/memstrm.c: Likewise.
5376 * manual/examples/mkdirent.c: Likewise.
5377 * manual/examples/mkfsock.c: Likewise.
5378 * manual/examples/mkisock.c: Likewise.
5379 * manual/examples/mygetpass.c: Likewise.
5380 * manual/examples/pipe.c: Likewise.
5381 * manual/examples/popen.c: Likewise.
5382 * manual/examples/rprintf.c: Likewise.
5383 * manual/examples/search.c: Likewise.
5384 * manual/examples/select.c: Likewise.
5385 * manual/examples/setjmp.c: Likewise.
5386 * manual/examples/sigh1.c: Likewise.
5387 * manual/examples/sigusr.c: Likewise.
5388 * manual/examples/stpcpy.c: Likewise.
5389 * manual/examples/strdupa.c: Likewise.
5390 * manual/examples/strftim.c: Likewise.
5391 * manual/examples/subopt.c: Likewise.
5392 * manual/examples/swapcontext.c: Likewise.
5393 * manual/examples/termios.c: Likewise.
5394 * manual/examples/testopt.c: Likewise.
5395 * manual/examples/testpass.c: Likewise.
5396 * manual/examples/timeval_subtract.c: Likewise.
5397
5398 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5399
5400 * sysdeps/x86/fpu/math_private.h: New file.
5401 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5402
5403 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5404 definition.
5405 (cosh): Likewise.
5406 (tanh): Likewise.
5407
5408 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5409
5410 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5411 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5412 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5413 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5414 fields.
5415 (_dl_show_auxv): Give a special treatment to
5416 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5417 and AT_L3_CACHEGEOMETRY.
5418 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5419 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5420 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5421 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5422
5423 2018-12-19 Andreas Schwab <schwab@suse.de>
5424
5425 * nscd/connections.c (check_use): Don't abort on invalid len.
5426
5427 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5428
5429 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5430 values in the 64bit value cases.
5431
5432 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5433
5434 * include/time.h
5435 (__ctime64_r): Add.
5436 * time/ctime_r.c
5437 (__ctime64_r): Add.
5438 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5439
5440 * include/time.h
5441 (__ctime64): Add.
5442 * time/gmtime.c
5443 (__ctime64): Add.
5444 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5445
5446 * include/time.h
5447 (__gmtime64_r): Add.
5448 * time/gmtime.c
5449 (__gmtime64_r): Add.
5450 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5451
5452 * include/time.h
5453 (__gmtime64): Add.
5454 * time/gmtime.c
5455 (__gmtime64): Add.
5456 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5457
5458 * include/time.h
5459 (__localtime64_r): Add.
5460 * time/localtime.c
5461 (__localtime64_r): Add.
5462 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5463
5464 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5465
5466 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5467 kernel_sigction definition.
5468
5469 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5470
5471 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5472
5473 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5474 __syscall_rt_sigaction.
5475 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5476 (kernel_sigaction): Use Linux generic defintion.
5477 (STUB): Define.
5478 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5479 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5480 (__syscall_rt_sigaction): Remove implementation.
5481 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5482 hidden.
5483 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5484 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5485 INTERNAL_SYSCALL): Remove definitions.
5486 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5487 action and signal set size.
5488 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5489 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5490
5491 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5492 James Clarke <jrtc27@jrtc27.com>
5493
5494 [BZ #23967]
5495 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5496 Define if SA_RESTORER is defined.
5497 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5498 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5499 already defined.
5500 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5501 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5502 definitions.
5503 (HAS_SA_RESTORER): Define.
5504 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5505 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5506 (HAS_SA_RESTORER): Define.
5507 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5508 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5509 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5510 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5511 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5512
5513 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5514
5515 * sysdeps/unix/sysv/linux/kernel-features.h
5516 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5517 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5518 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5519 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5520 (__ASSUME_ST_INO_64_BIT): Likewise.
5521 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5522 <kernel-features.h>.
5523 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5524 Remove conditional code.
5525 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5526 <kernel-features.h>.
5527 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5528 Remove conditional code.
5529 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5530 <kernel-features.h>.
5531 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5532 Remove conditional code.
5533 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5534 <kernel-features.h>.
5535 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5536 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5537
5538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5539
5540 * sysdeps/s390/multiarch/ifunc-resolve.h
5541 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5542 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5543 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5544 Delete macro definition.
5545 (s390_libc_ifunc_init): Rename to
5546 s390_libc_ifunc_expr_stfle_init.
5547 * sysdeps/s390/bzero: Use
5548 s390_libc_ifunc_expr_stfle_init instead of
5549 s390_libc_ifunc_init.
5550 * sysdeps/s390/memcmp.c: Likewise.
5551 * sysdeps/s390/memcpy.c: Likewise.
5552 * sysdeps/s390/mempcpy.c: Likewise.
5553 * sysdeps/s390/memset.c: Likewise.
5554
5555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5556
5557 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5558 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5559
5560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5561
5562 * sysdeps/s390/multiarch/Makefile
5563 (sysdep_routines): Remove wmemcmp variants.
5564 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5565 * sysdeps/s390/multiarch/ifunc-impl-list.c
5566 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5567 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5568 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5569 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5570 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5571 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5572 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5573 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5574
5575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5576
5577 * sysdeps/s390/multiarch/Makefile
5578 (sysdep_routines): Remove wmemset variants.
5579 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5580 * sysdeps/s390/multiarch/ifunc-impl-list.c
5581 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5582 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5583 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5584 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5585 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5586 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5587 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5588 * sysdeps/s390/ifunc-wmemset.h: New file.
5589
5590 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5591
5592 * sysdeps/s390/multiarch/Makefile
5593 (sysdep_routines): Remove wmemchr variants.
5594 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5595 * sysdeps/s390/multiarch/ifunc-impl-list.c
5596 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5597 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5598 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5599 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5600 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5601 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5602 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5603 * sysdeps/s390/ifunc-wmemchr.h: New file.
5604
5605 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5606
5607 * sysdeps/s390/multiarch/Makefile
5608 (sysdep_routines): Remove wcscspn variants.
5609 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5610 * sysdeps/s390/multiarch/ifunc-impl-list.c
5611 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5612 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5613 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5614 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5615 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5616 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5617 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5618 * sysdeps/s390/ifunc-wcscspn.h: New file.
5619
5620 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5621
5622 * sysdeps/s390/multiarch/Makefile
5623 (sysdep_routines): Remove wcspbrk variants.
5624 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5625 * sysdeps/s390/multiarch/ifunc-impl-list.c
5626 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5627 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5628 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5629 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5630 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5631 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5632 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5633 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5634
5635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5636
5637 * sysdeps/s390/multiarch/Makefile
5638 (sysdep_routines): Remove wcsspn variants.
5639 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5640 * sysdeps/s390/multiarch/ifunc-impl-list.c
5641 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5642 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5643 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5644 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5645 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5646 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5647 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5648 * sysdeps/s390/ifunc-wcsspn.h: New file.
5649
5650 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5651
5652 * sysdeps/s390/multiarch/Makefile
5653 (sysdep_routines): Remove wcsrchr variants.
5654 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5655 * sysdeps/s390/multiarch/ifunc-impl-list.c
5656 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5657 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5658 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5659 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5660 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5661 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5662 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5663 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5664
5665 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5666
5667 * sysdeps/s390/multiarch/Makefile
5668 (sysdep_routines): Remove wcschrnul variants.
5669 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5670 * sysdeps/s390/multiarch/ifunc-impl-list.c
5671 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5672 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5673 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5674 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5675 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5676 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5677 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5678 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5679
5680 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5681
5682 * sysdeps/s390/multiarch/Makefile
5683 (sysdep_routines): Remove wcschr variants.
5684 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5685 * sysdeps/s390/multiarch/ifunc-impl-list.c
5686 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5687 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5688 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5689 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5690 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5691 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5692 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5693 * sysdeps/s390/ifunc-wcschr.h: New file.
5694
5695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5696
5697 * sysdeps/s390/multiarch/Makefile
5698 (sysdep_routines): Remove wcsncmp variants.
5699 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5700 * sysdeps/s390/multiarch/ifunc-impl-list.c
5701 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5702 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5703 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5704 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5705 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5706 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5707 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5708 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5709
5710 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5711
5712 * sysdeps/s390/multiarch/Makefile
5713 (sysdep_routines): Remove wcscmp variants.
5714 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5715 * sysdeps/s390/multiarch/ifunc-impl-list.c
5716 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5717 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5718 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5719 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5720 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5721 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5722 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5723 * sysdeps/s390/ifunc-wcscmp.h: New file.
5724
5725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5726
5727 * sysdeps/s390/multiarch/Makefile
5728 (sysdep_routines): Remove wcsncat variants.
5729 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5730 * sysdeps/s390/multiarch/ifunc-impl-list.c
5731 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5732 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5733 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5734 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5735 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5736 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5737 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5738 * sysdeps/s390/ifunc-wcsncat.h: New file.
5739
5740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5741
5742 * sysdeps/s390/multiarch/Makefile
5743 (sysdep_routines): Remove wcscat variants.
5744 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5745 * sysdeps/s390/multiarch/ifunc-impl-list.c
5746 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5747 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5748 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5749 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5750 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5751 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5752 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5753 * sysdeps/s390/ifunc-wcscat.h: New file.
5754
5755 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5756
5757 * sysdeps/s390/multiarch/Makefile
5758 (sysdep_routines): Remove wcpncpy variants.
5759 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5760 * sysdeps/s390/multiarch/ifunc-impl-list.c
5761 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5762 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5763 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5764 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5765 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5766 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5767 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5768 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5769
5770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5771
5772 * sysdeps/s390/multiarch/Makefile
5773 (sysdep_routines): Remove wcsncpy variants.
5774 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5775 * sysdeps/s390/multiarch/ifunc-impl-list.c
5776 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5777 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5778 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5779 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5780 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5781 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5782 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5783 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5784
5785 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5786
5787 * sysdeps/s390/multiarch/Makefile
5788 (sysdep_routines): Remove wcpcpy variants.
5789 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5790 * sysdeps/s390/multiarch/ifunc-impl-list.c
5791 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5792 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5793 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5794 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5795 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5796 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5797 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5798 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5799
5800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5801
5802 * sysdeps/s390/multiarch/Makefile
5803 (sysdep_routines): Remove wcscpy variants.
5804 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5805 * sysdeps/s390/multiarch/ifunc-impl-list.c
5806 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5807 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5808 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5809 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5810 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5811 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5812 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5813 * sysdeps/s390/ifunc-wcscpy.h: New file.
5814
5815 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5816
5817 * sysdeps/s390/multiarch/Makefile
5818 (sysdep_routines): Remove wcsnlen variants.
5819 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5820 * sysdeps/s390/multiarch/ifunc-impl-list.c
5821 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5822 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5823 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5824 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5825 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5826 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5827 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5828 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5829
5830 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5831
5832 * sysdeps/s390/multiarch/Makefile
5833 (sysdep_routines): Remove wcslen variants.
5834 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5835 * sysdeps/s390/multiarch/ifunc-impl-list.c
5836 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5837 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5838 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5839 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5840 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5841 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5842 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5843 * sysdeps/s390/ifunc-wcslen.h: New file.
5844
5845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5846
5847 * sysdeps/s390/multiarch/Makefile
5848 (sysdep_routines): Remove memrchr variants.
5849 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5850 * sysdeps/s390/multiarch/ifunc-impl-list.c
5851 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5852 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5853 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5854 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5855 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5856 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5857 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5858 * sysdeps/s390/ifunc-memrchr.h: New file.
5859
5860 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5861
5862 * sysdeps/s390/multiarch/Makefile
5863 (sysdep_routines): Remove memccpy variants.
5864 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5865 * sysdeps/s390/multiarch/ifunc-impl-list.c
5866 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5867 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5868 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5869 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5870 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5871 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5872 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5873 * sysdeps/s390/ifunc-memccpy.h: New file.
5874
5875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5876
5877 * sysdeps/s390/multiarch/Makefile
5878 (sysdep_routines): Remove rawmemchr variants.
5879 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5880 * sysdeps/s390/multiarch/ifunc-impl-list.c
5881 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5882 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5883 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5884 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5885 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5886 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5887 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5888 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5889
5890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5891
5892 * sysdeps/s390/multiarch/Makefile
5893 (sysdep_routines): Remove memchr variants.
5894 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5895 * sysdeps/s390/multiarch/ifunc-impl-list.c
5896 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5897 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5898 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5899 * sysdeps/s390/multiarch/memchr.c: Move to ...
5900 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5901 * sysdeps/s390/ifunc-memchr.h: New file.
5902 * sysdeps/s390/s390-64/memchr.S: Move to ...
5903 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5904 for 31/64bit and ifunc handling.
5905 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5906 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5907 * sysdeps/s390/s390-32/memchr.S: Likewise.
5908
5909 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5910
5911 * sysdeps/s390/multiarch/Makefile
5912 (sysdep_routines): Remove strcspn variants.
5913 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5914 * sysdeps/s390/multiarch/ifunc-impl-list.c
5915 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5916 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5917 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5918 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5919 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5920 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5921 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5922 * sysdeps/s390/ifunc-strcspn.h: New file.
5923
5924 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5925
5926 * sysdeps/s390/multiarch/Makefile
5927 (sysdep_routines): Remove strpbrk variants.
5928 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5929 * sysdeps/s390/multiarch/ifunc-impl-list.c
5930 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5931 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5932 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5933 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5934 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5935 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5936 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5937 * sysdeps/s390/ifunc-strpbrk.h: New file.
5938
5939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5940
5941 * sysdeps/s390/multiarch/Makefile
5942 (sysdep_routines): Remove strspn variants.
5943 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5944 * sysdeps/s390/multiarch/ifunc-impl-list.c
5945 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5946 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5947 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5948 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5949 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5950 * sysdeps/s390/multiarch/strspn.c: Move to ...
5951 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5952 * sysdeps/s390/ifunc-strspn.h: New file.
5953
5954 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5955
5956 * sysdeps/s390/multiarch/Makefile
5957 (sysdep_routines): Remove strrchr variants.
5958 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5959 * sysdeps/s390/multiarch/ifunc-impl-list.c
5960 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5961 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5962 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5963 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5964 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5965 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5966 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5967 * sysdeps/s390/ifunc-strrchr.h: New file.
5968
5969 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5970
5971 * sysdeps/s390/multiarch/Makefile
5972 (sysdep_routines): Remove strchrnul variants.
5973 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5974 * sysdeps/s390/multiarch/ifunc-impl-list.c
5975 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5976 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5977 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5978 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5979 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5980 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5981 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5982 * sysdeps/s390/ifunc-strchrnul.h: New file.
5983
5984 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5985
5986 * sysdeps/s390/multiarch/Makefile
5987 (sysdep_routines): Remove strchr variants.
5988 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5989 * sysdeps/s390/multiarch/ifunc-impl-list.c
5990 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5991 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5992 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5993 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5994 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5995 * sysdeps/s390/multiarch/strchr.c: Move to ...
5996 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5997 * sysdeps/s390/ifunc-strchr.h: New file.
5998
5999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6000
6001 * sysdeps/s390/multiarch/Makefile
6002 (sysdep_routines): Remove strncmp variants.
6003 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
6004 * sysdeps/s390/multiarch/ifunc-impl-list.c
6005 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
6006 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
6007 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
6008 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
6009 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
6010 * sysdeps/s390/multiarch/strncmp.c: Move to ...
6011 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
6012 * sysdeps/s390/ifunc-strncmp.h: New file.
6013
6014 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6015
6016 * sysdeps/s390/multiarch/Makefile
6017 (sysdep_routines): Remove strcmp variants.
6018 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
6019 * sysdeps/s390/multiarch/ifunc-impl-list.c
6020 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
6021 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
6022 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
6023 * sysdeps/s390/multiarch/strcmp.c: Move to ...
6024 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
6025 * sysdeps/s390/ifunc-strcmp.h: New file.
6026 * sysdeps/s390/s390-64/strcmp.S: Move to ...
6027 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
6028 for 31/64bit and ifunc handling.
6029 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
6030 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
6031 * sysdeps/s390/s390-32/strcmp.S: Likewise.
6032
6033 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6034
6035 * sysdeps/s390/multiarch/Makefile
6036 (sysdep_routines): Remove strncat variants.
6037 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
6038 * sysdeps/s390/multiarch/ifunc-impl-list.c
6039 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
6040 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
6041 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
6042 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
6043 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
6044 * sysdeps/s390/multiarch/strncat.c: Move to ...
6045 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
6046 * sysdeps/s390/ifunc-strncat.h: New file.
6047
6048 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6049
6050 * sysdeps/s390/multiarch/Makefile
6051 (sysdep_routines): Remove strcat variants.
6052 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
6053 * sysdeps/s390/multiarch/ifunc-impl-list.c
6054 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
6055 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
6056 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
6057 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
6058 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
6059 * sysdeps/s390/multiarch/strcat.c: Move to ...
6060 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
6061 * sysdeps/s390/ifunc-strcat.h: New file.
6062
6063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6064
6065 * sysdeps/s390/multiarch/Makefile
6066 (sysdep_routines): Remove stpncpy variants.
6067 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
6068 * sysdeps/s390/multiarch/ifunc-impl-list.c
6069 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
6070 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
6071 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
6072 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
6073 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
6074 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
6075 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
6076 * sysdeps/s390/ifunc-stpncpy.h: New file.
6077
6078 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6079
6080 * sysdeps/s390/multiarch/Makefile
6081 (sysdep_routines): Remove strncpy variants.
6082 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
6083 * sysdeps/s390/multiarch/ifunc-impl-list.c
6084 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
6085 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
6086 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
6087 * sysdeps/s390/multiarch/strncpy.c: Move to ...
6088 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
6089 * sysdeps/s390/ifunc-strncpy.h: New file.
6090 * sysdeps/s390/s390-64/strncpy.S: Move to ...
6091 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
6092 and adjust ifunc handling.
6093 * sysdeps/s390/s390-32/strncpy.S: Move to ...
6094 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
6095 and adjust ifunc handling.
6096 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
6097 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
6098
6099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6100
6101 * sysdeps/s390/multiarch/Makefile
6102 (sysdep_routines): Remove stpcpy variants.
6103 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
6104 * sysdeps/s390/multiarch/ifunc-impl-list.c
6105 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
6106 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
6107 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
6108 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
6109 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
6110 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
6111 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
6112 * sysdeps/s390/ifunc-stpcpy.h: New file.
6113
6114 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6115
6116 * sysdeps/s390/multiarch/Makefile
6117 (sysdep_routines): Remove strcpy variants.
6118 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
6119 * sysdeps/s390/multiarch/ifunc-impl-list.c
6120 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
6121 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
6122 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
6123 * sysdeps/s390/multiarch/strcpy.c: Move to ...
6124 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
6125 * sysdeps/s390/ifunc-strcpy.h: New file.
6126 * sysdeps/s390/s390-64/strcpy.S: Move to ...
6127 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
6128 for 31/64bit and ifunc handling.
6129 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
6130 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
6131 * sysdeps/s390/s390-32/strcpy.S: Likewise.
6132
6133 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6134
6135 * sysdeps/s390/multiarch/Makefile
6136 (sysdep_routines): Remove strnlen variants.
6137 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
6138 * sysdeps/s390/multiarch/ifunc-impl-list.c
6139 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
6140 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
6141 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
6142 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
6143 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6144 * sysdeps/s390/multiarch/strnlen.c: Move to ...
6145 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6146 * sysdeps/s390/ifunc-strnlen.h: New file.
6147
6148 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6149
6150 * sysdeps/s390/multiarch/Makefile
6151 (sysdep_routines): Remove strlen variants.
6152 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6153 * sysdeps/s390/multiarch/ifunc-impl-list.c
6154 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6155 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6156 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6157 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6158 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6159 * sysdeps/s390/multiarch/strlen.c: Move to ...
6160 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6161 * sysdeps/s390/ifunc-strlen.h: New file.
6162
6163 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6164
6165 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6166 * sysdeps/s390/multiarch/ifunc-impl-list.c
6167 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6168 * sysdeps/s390/ifunc-memmem.h: New file.
6169 * sysdeps/s390/memmem.c: Likewise.
6170 * sysdeps/s390/memmem-c.c: Likewise.
6171 * sysdeps/s390/memmem-vx.c: Likewise.
6172
6173 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6174
6175 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6176 * sysdeps/s390/multiarch/ifunc-impl-list.c
6177 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6178 * sysdeps/s390/ifunc-strstr.h: New file.
6179 * sysdeps/s390/strstr.c: Likewise.
6180 * sysdeps/s390/strstr-c.c: Likewise.
6181 * sysdeps/s390/strstr-vx.c: Likewise.
6182
6183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6184
6185 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6186 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6187 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6188 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6189 New defines.
6190 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6191 * sysdeps/s390/memmove-c.c: New file.
6192 * sysdeps/s390/memmove.c: Likewise.
6193 * sysdeps/s390/multiarch/ifunc-impl-list.c
6194 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6195
6196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6197
6198 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6199 * sysdeps/s390/configure.ac: Add check for z13 support.
6200 * sysdeps/s390/configure: Regenerated.
6201
6202 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6203
6204 * sysdeps/s390/memcopy.h: New file.
6205
6206 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6207
6208 * sysdeps/s390/s390-32/bcopy.S: Remove.
6209 * sysdeps/s390/s390-64/bcopy.S: Likewise.
6210
6211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6212
6213 * sysdeps/s390/ifunc-memcpy.h: New File.
6214 * sysdeps/s390/memcpy.S: Move to ...
6215 * sysdeps/s390/memcpy-z900.S ... here.
6216 Move implementations from memcpy-s390x.s to here.
6217 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6218 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6219 Remove memcpy/mempcpy variants.
6220 * sysdeps/s390/Makefile (sysdep_routines):
6221 Add memcpy/mempcpy variants.
6222 * sysdeps/s390/multiarch/ifunc-impl-list.c
6223 (__libc_ifunc_impl_list): Adjust ifunc variants for
6224 memcpy and mempcpy.
6225 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6226 to ...
6227 * sysdeps/s390/memcpy.c: ... here.
6228 Adjust ifunc variants for memcpy.
6229 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6230 * sysdeps/s390/mempcpy.c: ... here.
6231 Adjust ifunc variants for mempcpy.
6232 * sysdeps/s390/mempcpy.S: Delete file.
6233
6234 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6235
6236 * sysdeps/s390/s390-64/memcpy.S: Move to ...
6237 * sysdeps/s390/memcpy.S: ... here.
6238 Adjust to be usable for 31/64bit.
6239 * sysdeps/s390/s390-32/memcpy.S: Delete File.
6240 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6241 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6242 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6243 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6244 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6245 Adjust to be usable for 31/64bit.
6246 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6247 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6248 * sysdeps/s390/multiarch/memcpy.c: ... here.
6249 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6250
6251 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6252
6253 * sysdeps/s390/ifunc-memcmp.h: New File.
6254 * sysdeps/s390/memcmp.S: Move to ...
6255 * sysdeps/s390/memcmp-z900.S ... here.
6256 Move implementations from memcmp-s390x.s to here.
6257 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6258 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6259 Remove memcmp variants.
6260 * sysdeps/s390/Makefile (sysdep_routines):
6261 Add memcmp variants.
6262 * sysdeps/s390/multiarch/ifunc-impl-list.c
6263 (__libc_ifunc_impl_list): Adjust ifunc variants for
6264 memcmp.
6265 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6266 to ...
6267 * sysdeps/s390/memcmp.c: ... here.
6268 Adjust ifunc variants for memcmp.
6269
6270 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6271
6272 * sysdeps/s390/s390-64/memcmp.S: Move to ...
6273 * sysdeps/s390/memcmp.S: ... here.
6274 Adjust to be usable for 31/64bit.
6275 * sysdeps/s390/s390-32/memcmp.S: Delete File.
6276 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6277 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6278 Remove memcmp.
6279 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6280 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6281 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6282 Adjust to be usable for 31/64bit.
6283 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6284 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6285 * sysdeps/s390/multiarch/memcmp.c: ... here.
6286 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6287
6288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6289
6290 * sysdeps/s390/s390-32/bzero.S: Delete file.
6291 * sysdeps/s390/s390-64/bzero.S: Likewise.
6292 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6293 * sysdeps/s390/bzero.c: New file.
6294 * sysdeps/s390/memset-z900.S: Add bzero entry points.
6295 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6296 * sysdeps/s390/multiarch/ifunc-impl-list.c
6297 (__libc_ifunc_impl_list): Add bzero ifunc variants.
6298
6299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6300
6301 * sysdeps/s390/ifunc-memset.h: New File.
6302 * sysdeps/s390/memset.S: Move to ...
6303 * sysdeps/s390/memset-z900.S ... here.
6304 Move implementations from memset-s390x.s to here.
6305 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6306 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6307 Remove memset variants.
6308 * sysdeps/s390/Makefile (sysdep_routines):
6309 Add memset variants.
6310 * sysdeps/s390/multiarch/ifunc-impl-list.c
6311 (__libc_ifunc_impl_list): Adjust ifunc variants for
6312 memset.
6313 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6314 to ...
6315 * sysdeps/s390/memset.c: ... here.
6316 Adjust ifunc variants for memset.
6317
6318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6319
6320 * sysdeps/s390/s390-64/memset.S: Move to ...
6321 * sysdeps/s390/memset.S: ... here.
6322 Adjust to be usable for 31/64bit.
6323 * sysdeps/s390/s390-32/memset.S: Delete File.
6324 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6325 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6326 Remove memset.
6327 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6328 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6329 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6330 Adjust to be usable for 31/64bit.
6331 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6332 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6333 * sysdeps/s390/multiarch/memset.c: ... here.
6334 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6335
6336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6337
6338 * sysdeps/s390/multiarch/ifunc-resolve.h
6339 (s390_libc_ifunc_init, s390_libc_ifunc,
6340 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6341
6342 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6343
6344 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6345 * sysdeps/s390/configure.ac: Add check for z10 support.
6346 * sysdeps/s390/configure: Regenerated.
6347
6348 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
6349
6350 * sysdeps/i386/atomic-machine.h: Merged with ...
6351 * sysdeps/x86_64/atomic-machine.h: To ...
6352 * sysdeps/x86/atomic-machine.h: This. New file.
6353
6354 2018-12-18 Florian Weimer <fweimer@redhat.com>
6355
6356 Rewrite locale/gen-translit.pl in Python.
6357 * locale/Makefile (generated): Add C-translit.h.
6358 (before-compile): Add $(objpfx)C-translit.h.
6359 (C-translit.h): Move to $(objpfx). Create target directory.
6360 Build using Python script.
6361 * locale/gen-translit.py: New file.
6362 * locale/gen-translit.pl: Remove file.
6363 * locale/C-translit.h.in: Change comment character to '#' for
6364 easier parsing without a C preprocessor.
6365 * locale/C-translit.h: Remove generated file.
6366 * manual/install.texi (Tools for Compilation): Do not mention
6367 C-translit.h.
6368 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6369 Remove locale/C-translit.h.
6370 * scripts/update-copyrights: Likewise.
6371 * INSTALL: Regenerate.
6372
6373 2018-12-18 Florian Weimer <fweimer@redhat.com>
6374
6375 [BZ #23995]
6376 * localedata/locales/bi_VU: Remove executable bit from file.
6377
6378 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6379
6380 * include/time.h
6381 (__localtime64): Add.
6382 * manual/maint.texi: Document Y2038 symbol handling.
6383 * time/localtime.c
6384 (__localtime64): Add.
6385 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6386
6387 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6388
6389 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6390 Do not clobber r12.
6391
6392 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6393 to allow extra macros from first or second sources.
6394 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6395 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6396 (tests-special): Add $(objpfx)tst-mman-consts.out.
6397 ($(objpfx)tst-mman-consts.out): New makefile target.
6398
6399 2018-12-17 Mao Han <han_mao@c-sky.com>
6400
6401 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6402 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6403 without stat64 system call support.
6404 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6405 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6406 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6407 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6408 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6409 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6410 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6411 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6412 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6413 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6414 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6415
6416 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6417
6418 regex: fix storage-exhaustion error
6419 [BZ #18040]
6420 * posix/regexec.c (get_subexp):
6421 Do not continue if storage is exhausted.
6422
6423 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6424
6425 regex: fix heap-use-after-free error
6426 [BZ #18040]
6427 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6428 https://debbugs.gnu.org/32592
6429 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6430 call extend_buffers which reallocates the re_string_t internal buffer.
6431 Local variable 'buf' was not updated in such case, resulting in
6432 use-after-free.
6433 * posix/regexec.c (get_subexp): Update 'buf' after call to
6434 get_subexp_sub.
6435
6436 2018-12-15 Florian Weimer <fweimer@redhat.com>
6437
6438 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6439 (minimum_stride_size): Use it.
6440 (support_blob_repeat_allocate): Likewise.
6441
6442 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6443
6444 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6445 definition.
6446 (acosh): Likewise.
6447 (atanh): Likewise.
6448
6449 2018-12-14 Florian Weimer <fweimer@redhat.com>
6450
6451 * manual/process.texi (Process Creation Concepts): Remove
6452 documentation of process (ID) lifetime. List more process
6453 creation functions. Reference Process Identification section.
6454 (Process Identification): Add information about process ID
6455 lifetime. Describe Linux thread/task IDs.
6456 * manual/signal.texi (Signaling Another Process): Mention that the
6457 signal is always sent to the process.
6458
6459 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6460
6461 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6462 and tst-ldbl-efgcvt.
6463 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6464 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6465 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6466 (fcvt_tests, output_error, output_r_error, do_test): Use the
6467 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6468 select the type of floating-point variables and arguments; to
6469 produce extra tests for double and conversion specifiers for
6470 printf; and to set the names of called functions.
6471 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6472 in tst-efgcvt-template.c.
6473 * misc/tst-ldbl-efgcvt.c: Likewise.
6474
6475 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6476
6477 * nss/Makefile (tst-nss-test3.out): New rule.
6478
6479 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6480
6481 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6482 clobber sp.
6483
6484 2018-12-13 fanjinke <fanjinke@hygon.cn>
6485
6486 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6487 "HygonGenuine".
6488
6489 2018-12-13 Andreas Schwab <schwab@suse.de>
6490
6491 [BZ #23861]
6492 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6493 (__pthread_rwlock_rdlock_full): Update expected value for
6494 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6495 * nptl/tst-rwlock-pwn.c: New file.
6496 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6497
6498 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6499
6500 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6501 definition.
6502
6503 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6504
6505 * benchtests/scripts/compare_bench.py (do_compare): write to
6506 stderr in casestat is not present.
6507 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6508 stderr in case timings field is not present. Also string showing
6509 the output filename goes into the stderr.
6510
6511 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6512
6513 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6514 and ZeroDivisorError exceptions.
6515 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6516 argument to loop through user provided statistics.
6517 * benchtests/scripts/compare_bench.py (main): Include the --stats
6518 argument.
6519
6520 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6521
6522 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6523 instead of return.
6524
6525 2018-12-12 Florian Weimer <fweimer@redhat.com>
6526
6527 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6528 clause to copyright header.
6529
6530 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6531
6532 [BZ #23614]
6533 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6534 registers saved in the stack frame.
6535 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6536 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6537
6538 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6539
6540 * include/bits/monetary-ldbl.h: New file.
6541 * include/bits/printf-ldbl.h: Likewise.
6542 * include/bits/stdio-ldbl.h: Likewise.
6543 * include/bits/stdlib-ldbl.h: Likewise.
6544 * include/bits/syslog-ldbl.h: Likewise.
6545 * include/bits/wchar-ldbl.h: Likewise.
6546
6547 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6548
6549 * libio/libio.h: Remove redirection for _IO_vfprintf.
6550
6551 2018-12-11 Andreas Schwab <schwab@suse.de>
6552
6553 * Makerules: Remove all references to abilist-pattern.
6554 (update-all-abi): Simplify find expression.
6555
6556 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6557
6558 [BZ #23961]
6559 * math/auto-libm-test-in: Add new test case.
6560 * math/auto-libm-test-out-pow: Regenerated.
6561 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6562
6563 2018-12-10 DJ Delorie <dj@redhat.com>
6564
6565 [BZ #23948]
6566 * support/test-container.c: Move postclean step to before we
6567 change namespaces.
6568
6569 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6570
6571 * scripts/gen-as-const.py (main): Handle --python option.
6572 * scripts/gen-py-const.awk: Remove.
6573 * Makerules (py-const-script): Use gen-as-const.py.
6574 ($(py-const)): Likewise.
6575 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6576 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6577 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6578 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6579 ~PTHREAD_MUTEX_NO_ELISION_NP.
6580 * manual/README.pretty-printers: Update reference to
6581 gen-py-const.awk.
6582
6583 * scripts/glibcextract.py: New file.
6584 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6585 or tempfile. Import glibcexctract.
6586 (compute_c_consts): Remove. Moved to glibcextract.py.
6587 (gen_test): Update reference to compute_c_consts.
6588 (main): Likewise.
6589 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6590 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6591 * sysdeps/unix/sysv/linux/Makefile
6592 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6593 Redirect stderr as well as stdout.
6594
6595 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6596
6597 [BZ #19767]
6598 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6599 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6600 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6601 ALWAYS_USE_VSYSCALL.
6602 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6603 ALWAYS_USE_VSYSCALL.
6604 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6605 ALWAYS_USE_VSYSCALL.
6606
6607 2018-12-10 Florian Weimer <fweimer@redhat.com>
6608
6609 [BZ #23972]
6610 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6611 offset instead of count for clarity. Fix typo in comment.
6612 (__old_getdents64): Keep track of previous offset. Use it to call
6613 handle_overflow.
6614 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6615 that d_off is never zero.
6616
6617 2018-12-10 Andreas Schwab <schwab@suse.de>
6618
6619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6620 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6622 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6623 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6624
6625 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6626
6627 * timezone/private.h: Update from tzcode 2018g.
6628 * timezone/tzfile.h: Likewise.
6629 * timezone/tzselect.ksh: Likewise.
6630 * timezone/zdump.c: Likewise.
6631 * timezone/zic.c: Likewise.
6632
6633 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6634
6635 [BZ #23490]
6636 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6637 (do_test): Adjust buffer size and fix format.
6638
6639 2018-12-07 DJ Delorie <dj@redhat.com>
6640
6641 [BZ #23907]
6642 * malloc/tst-tcfree3.c: New.
6643 * malloc/Makefile: Add it.
6644
6645 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6646
6647 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6648
6649 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6650
6651 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6652 used as a mask for the mode argument of __vfscanf_internal and
6653 __vfwscanf_internal.
6654 * stdio-common/vfscanf-internal.c
6655 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6656 (__strtof128_internal): Define to __wcstof128_internal.
6657 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6658 __strtof128_internal or __wcstof128_internal when the format of
6659 long double is the same as _Float128.
6660
6661 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6662
6663 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6664 * posix/confstr.c (confstr): Rename to __confstr.
6665 (__confstr): Add hidden def.
6666 (confstr): Add weak alias for __confstr.
6667 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6668 confstr.
6669
6670 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6671
6672 * NEWS: Mention getcpu.
6673 * include/sched.h (__getcpu): New libc_hidden_proto.
6674 * manual/resource.texi: Document getcpu.
6675 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6676 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6677 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6678 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6679 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6680 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6681 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6682 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6683 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6684 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6685 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6686 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6687 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6688 Likewise.
6689 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6690 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6691 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6693 Likewise.
6694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6695 Likewise.
6696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6697 Likewise.
6698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6699 Likewise.
6700 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6701 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6702 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6703 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6704 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6705 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6706 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6707 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6708 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6709 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6710 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6711 Also check getcpu.
6712
6713 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6714
6715 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6716 functions.
6717 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6718
6719 2018-12-07 Florian Weimer <fweimer@redhat.com>
6720
6721 [BZ #17405]
6722 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6723 * posix/Versions (GLIBC_2.29): Export
6724 posix_spawn_file_actions_addfchdir_np.
6725 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6726 * posix/spawn_faction_destroy.c
6727 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6728 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6729 and the field action.fchdir_action.
6730 * posix/tst-spawn-chdir.c (add_chdir): New function.
6731 (do_test): Add do_fchdir loop. Call add_chdir.
6732 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6733 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6734 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6735 posix_spawn_file_actions_addfchdir_np.
6736 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6737 Likewise.
6738 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6739 Likewise.
6740 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6741 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6742 Likewise.
6743 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6744 Likewise.
6745 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6746 Likewise.
6747 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6748 Likewise.
6749 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6750 Likewise.
6751 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6752 Likewise.
6753 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6754 (GLIBC_2.29): Likewise.
6755 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6756 (GLIBC_2.29): Likewise.
6757 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6758 (GLIBC_2.29): Likewise.
6759 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6760 (GLIBC_2.29): Likewise.
6761 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6762 Likewise.
6763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6764 (GLIBC_2.29): Likewise.
6765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6766 (GLIBC_2.29): Likewise.
6767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6768 (GLIBC_2.29): Likewise.
6769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6770 (GLIBC_2.29): Likewise.
6771 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6772 Likewise.
6773 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6774 Likewise.
6775 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6776 Likewise.
6777 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6778 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6779 Likewise.
6780 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6781 Likewise.
6782 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6783 Likewise.
6784 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6785 Likewise.
6786
6787 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6788
6789 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6790 trailing whitespace removed.
6791 * scripts/config.guess: Update to version 2018-11-28.
6792 * scripts/config.sub: Update to version 2018-11-28.
6793 * scripts/install-sh: Update to version 2018-03-11.20.
6794 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6795 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6796
6797 2018-12-07 Florian Weimer <fweimer@redhat.com>
6798
6799 [BZ #23927]
6800 CVE-2018-19591
6801 * inet/tst-if_index-long.c: New file.
6802 * inet/Makefile (tests): Add tst-if_index-long.
6803
6804 2018-12-07 Florian Weimer <fweimer@redhat.com>
6805
6806 * support/check.h (support_record_failure_is_failed): Declare.
6807 * support/descriptors.h: New file.
6808 * support/support_descriptors.c: Likewise.
6809 * support/tst-support_descriptors.c: Likewise.
6810 * support/support_record_failure.c
6811 (support_record_failure_is_failed): New function.
6812 * support/Makefile (libsupport-routines): Add support_descriptors.
6813 (tests): Add tst-support_descriptors.
6814
6815 2018-12-05 Zack Weinberg <zackw@panix.com>
6816 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6817
6818 * stdio-common/vfprintf-internal.c
6819 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6820 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6821 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6822 and __no_long_double.
6823 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6824 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6825 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6826 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6827 and __nldbl_*syslog* functions.
6828 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6829 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6830 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6831 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6832 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6833 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6834 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6835 (__nldbl_vwprintf, __nldbl_wprintf):
6836 Directly call the appropriate __v*printf_internal routine, passing
6837 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6838 variable names.
6839 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6840 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6841 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6842 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6843 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6844 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6845 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6846 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6847 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6848 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6849 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6850 (__nldbl_syslog, __nldbl_vsyslog):
6851 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6852 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6853 appropriate.
6854 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6855 appropriate.
6856
6857 2018-12-05 Zack Weinberg <zackw@panix.com>
6858 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6859
6860 [BZ #11319]
6861 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6862 Moved here from debug/vsprintf_chk.c.
6863 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6864 and completion logic for the strfile to match exactly what
6865 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6866 _IO_str_init_static_internal instead of maxlen-1.
6867 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6868 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6869 __vsprintf_internal.
6870
6871 * debug/vsprintf_chk.c (__vsprintf_chk)
6872 * debug/sprintf_chk.c (__sprintf_chk):
6873 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6874 'flags' argument is positive, and slen as maxlen. No need to lock
6875 the FILE and/or construct a temporary FILE. Minimize and normalize
6876 header inclusions and variable names. Do not libc_hidden_def anything.
6877
6878 * debug/asprintf_chk.c (__asprintf_chk)
6879 * debug/dprintf_chk.c (__dprintf_chk)
6880 * debug/fprintf_chk.c (__fprintf_chk)
6881 * debug/fwprintf_chk.c (__fwprintf_chk)
6882 * debug/printf_chk.c (__printf_chk)
6883 * debug/snprintf_chk.c (__snprintf_chk)
6884 * debug/swprintf_chk.c (__swprintf_chk)
6885 * debug/vasprintf_chk.c (__vasprintf_chk)
6886 * debug/vdprintf_chk.c (__vdprintf_chk)
6887 * debug/vfprintf_chk.c (__vfprintf_chk)
6888 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6889 * debug/vprintf_chk.c (__vprintf_chk)
6890 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6891 * debug/vswprintf_chk.c (__vswprintf_chk)
6892 * debug/vwprintf_chk.c (__vwprintf_chk)
6893 * debug/wprintf_chk.c (__wprintf_chk):
6894 Directly call the corresponding vxxprintf_internal function, passing
6895 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6896 the FILE and/or construct a temporary FILE. Minimize and normalize
6897 header inclusions and variable names. Do not libc_hidden_def anything.
6898
6899 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6900 __obstack_vprintf_internal.
6901 (__obstack_vprintf_chk): Convert into a wrapper that calls
6902 __obstack_vprintf_internal (these two functions already had the
6903 same code) and move to new file...
6904 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6905 file.
6906 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6907 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6908 * debug/Makefile (routines): Add vobprintf_chk.
6909
6910 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6911 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6912 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6913 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6914 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6915 (__nldbl___obstack_vfprintf_chk):
6916 Directly call the corresponding vxxprintf_internal function,
6917 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6918 duplicate comparison of slen with 0 or maxlen from the corresponding
6919 non-__nldbl function.
6920
6921 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6922 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6923 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6924 Remove libc_hidden_proto.
6925
6926 * stdio-common/vfprintf-internal.c
6927 (__vfprintf_internal, __vfwprintf_internal):
6928 Do not check _IO_FLAGS2_FORTIFY.
6929 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6930 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6931 a comment explaining why it has the maxlen argument.
6932 (_IO_acquire_lock_clear_flags2_fct): Remove.
6933 (_IO_acquire_lock_clear_flags2): Remove.
6934 (_IO_release_lock): Remove conditional statement which will
6935 now never execute.
6936 (_IO_acquire_lock): Remove variable which is now unused.
6937 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6938 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6939
6940 * stdio-common/Makefile (tests): Add tst-bz11319 and
6941 tst-bz11319-fortify2.
6942 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6943 * stdio-common/tst-bz11319-fortify2.c: New file.
6944 * stdio-common/tst-bz11319.c: Likewise.
6945
6946 2018-12-05 Zack Weinberg <zackw@panix.com>
6947 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6948
6949 * misc/syslog.c: Include libioP.h, not iolibio.h.
6950 (__vsyslog_internal): New function with the former body of
6951 __vsyslog_chk; takes mode_flags argument same as
6952 __v*printf_internal. Call __vfprintf_internal directly.
6953
6954 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6955 Remove libc_hidden_def.
6956 (__syslog, __syslog_chk): Use __vsyslog_internal.
6957 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6958
6959 * include/sys/syslog.h: Add multiple inclusion guard.
6960 Add prototype for __vsyslog_internal.
6961 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6962
6963 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6964 Use __vsyslog_internal.
6965
6966 2018-12-05 Zack Weinberg <zackw@panix.com>
6967 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6968
6969 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6970 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6971 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6972 New functions.
6973 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6974 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6975
6976 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6977 Include wctype.h here if COMPILE_WPRINTF is defined.
6978 Define __vfprintf_internal or __vfwprintf_internal, depending
6979 on COMPILE_WPRINTF.
6980 Temporarily, on entry to this function, update mode_flags
6981 according to the environmental settings corresponding to
6982 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6983 Throughout, check mode_flags instead of __ldbl_is_dbl and
6984 _IO_FLAGS2_FORTIFY on the destination FILE.
6985 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6986 Include vfprintf-internal.c. Don't include wctype.h.
6987 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6988 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6989 and vfprintf.
6990 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6991 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6992 and vfwprintf.
6993 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6994
6995 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6996 and add mode_flags argument; use __vfprintf_internal.
6997 (__vdprintf): New function. Alias vdprintf to this.
6998 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6999 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
7000 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
7001 (__obstack_printf): Use __obstack_printf_internal.
7002 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
7003 public aliases __vsnprintf and vsnprintf.
7004 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
7005 called internally.
7006 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
7007 public aliases _IO_vsprintf and vsprintf.
7008 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
7009 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
7010 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
7011 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
7012 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
7013
7014 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
7015 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
7016 * stdio-common/fprintf.c, stdio-common/fxprintf.c
7017 * stdio-common/printf.c: Use __vfprintf_internal.
7018
7019 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
7020 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
7021 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
7022
7023 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
7024 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
7025 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
7026 __vfwprintf_internal.
7027
7028 * libio/libio.h: Remove libc_hidden_proto and declaration for
7029 _IO_vfprintf.
7030 Remove declaration of _IO_vfwprintf.
7031 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
7032 _IO_vsprintf.
7033 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
7034 _IO_obstack_printf.
7035 * include/stdio.h: Add prototype for __vasprintf.
7036 (__vsnprintf): Remove declaration, because there are no more
7037 internal calls.
7038 * include/wchar.h (__vfwprintf, __vswprintf): Remove
7039 declaration, because there are no more internal calls.
7040
7041 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
7042 __vsnprintf_internal, instead of _IO_vsnprintf.
7043 * argp/argp-help.c (__argp_error, __argp_failure): Use
7044 __vasprintf_internal, instead of _IO_vasprintf.
7045 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
7046 redefine, because there are no more internal calls.
7047
7048 2018-12-05 Zack Weinberg <zackw@panix.com>
7049 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7050
7051 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
7052 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
7053 Include libio/strfile.h instead of libioP.h.
7054 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
7055 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
7056 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
7057 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
7058 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
7059 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
7060 necessary. Do not set __no_long_double. Normalize variable names.
7061 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
7062 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
7063 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
7064 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
7065 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
7066 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
7067 Call __vfscanf_internal / __vfwscanf_internal directly, passing
7068 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
7069 Do not set __no_long_double. Normalize variable names.
7070
7071 2018-12-05 Zack Weinberg <zackw@panix.com>
7072 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7073
7074 * stdio-common/isoc99_scanf.c
7075 * stdio-common/isoc99_fscanf.c
7076 * stdio-common/isoc99_sscanf.c
7077 * stdio-common/isoc99_vscanf.c
7078 * stdio-common/isoc99_vfscanf.c
7079 * stdio-common/isoc99_vsscanf.c
7080 * wcsmbs/isoc99_wscanf.c
7081 * wcsmbs/isoc99_fwscanf.c
7082 * wcsmbs/isoc99_swscanf.c
7083 * wcsmbs/isoc99_vwscanf.c
7084 * wcsmbs/isoc99_vfwscanf.c
7085 * wcsmbs/isoc99_vswscanf.c:
7086 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
7087 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
7088 No need to lock and unlock the FILE passed to that function.
7089
7090 * stdio-common/vfscanf-internal.c
7091 (__vfscanf_internal, __vfwscanf_internal):
7092 Don't look at _IO_FLAGS2_SCANF_STD.
7093 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
7094 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
7095 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
7096
7097 2018-12-05 Zack Weinberg <zackw@panix.com>
7098 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7099
7100 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
7101 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
7102 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
7103 * libio/strfile.h: Add multiple inclusion guard.
7104 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
7105
7106 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
7107 consistency with the other version of this file.
7108 (ldbl_compat_symbol): New macro.
7109 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
7110 New macro.
7111
7112 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
7113 Define __vfscanf_internal or __vfwscanf_internal, depending on
7114 COMPILE_WSCANF; don't define any other public symbols.
7115 Remove errval and code to set errp.
7116 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
7117 as the mode_flags argument.
7118 (encode_error, conv_error, input_error): Don't set errval.
7119 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
7120 Include vfscanf-internal.c.
7121 * stdio-common/vfscanf.c: New file defining the public entry
7122 point vfscanf, which calls __vfscanf_internal.
7123 * stdio-common/vfwscanf.c: New file defining the public entry
7124 point vfwscanf, which calls __vfwscanf_internal.
7125
7126 * stdio-common/iovfscanf.c: New file.
7127 * stdio-common/iovfwscanf.c: Likewise.
7128
7129 * stdio-common/Makefile (routines): Add vfscanf-internal,
7130 vfwscanf-internal, iovfscanf, iovfwscanf.
7131 * stdio-common/Versions: Mention GLIBC_2.29, so that
7132 it can be used in SHLIB_COMPAT expressions.
7133 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
7134 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
7135 Call __vfscanf_internal, instead of _IO_vfscanf.
7136 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
7137 _IO_vfscanf.
7138 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
7139 _IO_vfwscanf.
7140
7141 * libio/iovsscanf.c: Clean up includes, when possible. Use
7142 _IO_strfile_read or _IO_strfile_readw, when needed. Call
7143 __vfscanf_internal or __vfwscanf_internal directly.
7144 * libio/iovswscanf.c: Likewise.
7145 * libio/swscanf.c: Likewise.
7146 * libio/vscanf.c: Likewise.
7147 * libio/vwscanf.c: Likewise.
7148 * libio/wscanf.c: Likewise.
7149 * stdio-common/isoc99_fscanf.c: Likewise.
7150 * stdio-common/isoc99_scanf.c: Likewise.
7151 * stdio-common/isoc99_sscanf.c: Likewise.
7152 * stdio-common/isoc99_vfscanf.c: Likewise.
7153 * stdio-common/isoc99_vscanf.c: Likewise.
7154 * stdio-common/isoc99_vsscanf.c: Likewise.
7155 * stdio-common/scanf.c: Likewise.
7156 * stdio-common/sscanf.c: Likewise.
7157 * wcsmbs/isoc99_fwscanf.c: Likewise.
7158 * wcsmbs/isoc99_swscanf.c: Likewise.
7159 * wcsmbs/isoc99_vfwscanf.c: Likewise.
7160 * wcsmbs/isoc99_vswscanf.c: Likewise.
7161 * wcsmbs/isoc99_vwscanf.c: Likewise.
7162 * wcsmbs/isoc99_wscanf.c: Likewise.
7163
7164 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
7165
7166 * include/time.h
7167 (__tz_compute): Replace time_t with __time64_t.
7168 (__tz_convert): Replace time_t* with __time64_t.
7169 (__offtime): Replace time_t* with __time64_t.
7170 * time/gmtime.c
7171 (__gmtime_r): Adjust call to __tz_convert.
7172 (gmtime): Likewise.
7173 * time/localtime.c
7174 (__localtime_r): Likewise.
7175 (localtime): Likewise.
7176 * time/offtime.c: Replace time_t with __time64_t.
7177 * time/tzset.c: Likewise.
7178
7179 2018-12-04 Joseph Myers <joseph@codesourcery.com>
7180
7181 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7182 dynamic linker unless [$(run-built-tests) = yes].
7183
7184 2018-12-03 DJ Delorie <dj@delorie.com>
7185
7186 * support/test-container.c (check_for_unshare_hints): New.
7187 (main): Call it if unshare fails. Add support for "su" scriptlet
7188 command.
7189
7190 2018-12-03 Joseph Myers <joseph@codesourcery.com>
7191
7192 * scripts/gen-as-const.py (compute_c_consts): Take an argument
7193 'START' to indicate that start text should be output.
7194 (gen_test): Likewise.
7195 (main): Generate 'START' for first symbol or '--' line, or at end
7196 of input if not previously generated.
7197
7198 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
7199
7200 [BZ #19767]
7201 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7202 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7203 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7204 ALWAYS_USE_VSYSCALL.
7205
7206 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7207
7208 [BZ #23913]
7209 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7210 new_argv by one.
7211
7212 2018-12-03 Carlos O'Donell <carlos@redhat.com>
7213
7214 [BZ #23923]
7215 * locale/programs/localedef.c: Declare boolean hard_links default true.
7216 (options): Add --no-hard-links option.
7217 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7218 * locale/programs/localedef.h: Declare prototype for hard_links.
7219 * locale/programs/locfile.c (write_locale_data): Don't use hard
7220 links if hard_links is false.
7221
7222 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
7223
7224 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7225 cpu_features_basic.
7226 (__cache_sysconf): Likewise.
7227 (init_cacheinfo): Likewise.
7228 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7229 populate COMMON_CPUID_INDEX_80000007 and
7230 COMMON_CPUID_INDEX_80000008.
7231 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7232 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7233 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
7234 (init_cpu_features): Use _Static_assert on
7235 index_arch_Fast_Unaligned_Load.
7236 __get_cpuid_registers and __get_arch_feature. Updated for
7237 cpu_features_basic. Set stepping in cpu_features.
7238 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7239 (FEATURE_INDEX_2): New.
7240 (FEATURE_INDEX_MAX): Changed to enum.
7241 (COMMON_CPUID_INDEX_D_ECX_1): New.
7242 (COMMON_CPUID_INDEX_80000007): Likewise.
7243 (COMMON_CPUID_INDEX_80000008): Likewise.
7244 (cpuid_registers): Likewise.
7245 (cpu_features_basic): Likewise.
7246 (CPU_FEATURE_USABLE): Likewise.
7247 (bit_arch_XXX_Usable): Likewise.
7248 (cpu_features): Use cpuid_registers and cpu_features_basic.
7249 (bit_arch_XXX): Reweritten.
7250 (bit_cpu_XXX): Likewise.
7251 (index_cpu_XXX): Likewise.
7252 (reg_XXX): Likewise.
7253 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7254 <support/check.h>.
7255 (CHECK_CPU_FEATURE): New.
7256 (CHECK_CPU_FEATURE_USABLE): Likewise.
7257 (cpu_kinds): Likewise.
7258 (do_test): Print vendor, family, model and stepping. Check
7259 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7260 (TEST_FUNCTION): Removed.
7261 Include <support/test-driver.c> instead of
7262 "../../test-skeleton.c".
7263 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7264 Check POPCNT instead of POPCOUNT.
7265 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7266
7267 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7268
7269 * scripts/gen-as-const.py (main): Avoid emitting empty line when
7270 there is no element in `consts'.
7271
7272 2018-12-01 Florian Weimer <fweimer@redhat.com>
7273
7274 * support/support_capture_subprocess.c
7275 (support_capture_subprocess): Check that pipe descriptors have
7276 expected values. Close original pipe descriptors in subprocess.
7277
7278 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7279
7280 [BZ #23032]
7281 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7282 attr with __pthread_default_barrierattr.
7283 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7284 attr with __pthread_default_condattr.
7285 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7286 attr with __pthread_default_mutexattr.
7287 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7288 attr with __pthread_default_rwlockattr.
7289
7290 2018-12-01 Kemi Wang <kemi.wang@intel.com>
7291
7292 * manual/tunables.texi (POSIX Thread Tunables): New node.
7293 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7294 * nptl/nptl-init.c: Include pthread_mutex_conf.h
7295 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7296 __pthread_tunables_init.
7297 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7298 (max_adaptive_count): Define.
7299 * nptl/pthread_mutex_conf.c: New file.
7300 * nptl/pthread_mutex_conf.h: New file.
7301 * sysdeps/generic/adaptive_spin_count.h: New file.
7302 * sysdeps/nptl/dl-tunables.list: New file.
7303 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7304 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7305 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7306 Likewise.
7307
7308 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
7309
7310 [BZ #20544]
7311 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7312 * stdlib/on_exit.c (__on_exit): Likewise.
7313 * stdlib/Makefile (tests): Add tst-bz20544.
7314 * stdlib/tst-bz20544.c: New test.
7315
7316 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
7317
7318 [BZ #19767]
7319 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7320 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7321 New.
7322
7323 2018-11-30 Florian Weimer <fweimer@redhat.com>
7324
7325 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7326 Extend error logging.
7327 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7328 symbol.
7329
7330 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7331
7332 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7333 __sigismember instead of sigismember.
7334 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7335 cancel_handler): New definitions.
7336 (do_system): Use posix_spawn instead of fork and execl and remove
7337 reentracy code.
7338 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7339 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7340 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7341 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7342 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7343 * sysdeps/unix/sysv/linux/system.c: Likewise.
7344
7345 [BZ #22834]
7346 [BZ #17490]
7347 * NEWS: Add new semantic for atfork with popen and system.
7348 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7349 fork and execl.
7350
7351 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7352
7353 [BZ #23690]
7354 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7355 modification order when accessing reloc_result->addr.
7356 * include/link.h (reloc_result): Add field init.
7357 * nptl/Makefile (tests): Add tst-audit-threads.
7358 (modules-names): Add tst-audit-threads-mod1 and
7359 tst-audit-threads-mod2.
7360 Add rules to build tst-audit-threads.
7361 * nptl/tst-audit-threads-mod1.c: New file.
7362 * nptl/tst-audit-threads-mod2.c: Likewise.
7363 * nptl/tst-audit-threads.c: Likewise.
7364 * nptl/tst-audit-threads.h: Likewise.
7365
7366 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7367
7368 * scripts/gen-as-const.py: New file.
7369 * scripts/gen-as-const.awk: Remove.
7370 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7371 gen-as-const.py.
7372 ($(objpfx)test-as-const-%.c): Likewise.
7373
7374 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7375
7376 * elf/dl-exception.c: Include <_itoa.h>.
7377
7378 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7379
7380 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7381 returned by __f_setlk.
7382
7383 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7384 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7385
7386 * elf/Makefile (tests-internal): Add tst-create_format1.
7387 * elf/dl-exception.c (_dl_exception_create_format): Support
7388 %x, %lx and %zx.
7389 * elf/tst-create_format1.c: New file.
7390
7391 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7392
7393 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7394 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7395 gnulib.)
7396 * argp/argp-help.c (__argp_failure): Likewise.
7397
7398 2018-11-29 Mao Han <han_mao@c-sky.com>
7399
7400 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7401 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7402 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7403 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7404 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7405 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7406 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7407 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7408 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7409 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7410 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7411 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7412 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7413 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7414 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7415 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7416 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7417 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7418 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7419 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7420 (R_CKCORE_TLS_TPOFF32): New defines.
7421
7422 2018-11-29 Florian Weimer <fweimer@redhat.com>
7423
7424 * posix/Makefile (before-compile): Remove testcases.h and
7425 ptestcases.h.
7426 (generated): Add testcases.h and ptestcases.h.
7427 (testcases.h, ptestcases.h): Move to $(objpfx).
7428 (runtests.o): Add dependency on testcases.h.
7429 (runptests.o): Add dependency on ptestcases.h.
7430 * posix/testcases.h, posix/ptestcases.h: Remove files.
7431 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7432 not touch posix/testcases.h and posix/ptestcases.h.
7433
7434 2018-11-28 Florian Weimer <fweimer@redhat.com>
7435
7436 support: Add signal support to support_capture_subprocess_check.
7437 * support/capture_subprocess.h (support_capture_subprocess_check):
7438 Adjust comment and rename parameter.
7439 * support/support_capture_subprocess_check.c
7440 (print_actual_status): New function.
7441 (support_capture_subprocess_check): Support negative
7442 status_or_signal. Call print_actual_status.
7443 * support/tst-support_capture_subprocess.c (do_test): Call
7444 support_capture_subprocess_check.
7445 * libio/tst-vtables-common.c (termination_status)
7446 (init_termination_status): Remove.
7447 (check_for_termination): Adjust support_capture_subprocess_check
7448 call.
7449 (do_test): Remove call to init_termination_status.
7450
7451 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7452
7453 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7454 source directory instead of a copy.
7455 (CommandList.create_copy_dir): Remove.
7456
7457 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7458
7459 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7460
7461 2018-11-28 Florian Weimer <fweimer@redhat.com>
7462
7463 * support/support.h (support_quote_string): Do not use str
7464 parameter name.
7465
7466 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7467
7468 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7469 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7470
7471 2018-11-27 Florian Weimer <fweimer@redhat.com>
7472
7473 * support/support.h (support_quote_string): Declare.
7474 * support/support_quote_string.c: New file.
7475 * support/tst-support_quote_string.c: Likewise.
7476 * support/Makefile (libsupport-routines): Add
7477 support_quote_string.
7478 (tests): Add tst-support_quote_string.
7479
7480 2018-11-27 Florian Weimer <fweimer@redhat.com>
7481
7482 [BZ #23927]
7483 CVE-2018-19591
7484 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7485 descriptor leak in case of ENODEV error.
7486
7487 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7488
7489 [BZ #19767]
7490 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7491 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7492 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7493
7494 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7495
7496 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7497 Error for unknown lines.
7498
7499 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7500
7501 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7502 Touch additional files.
7503
7504 2018-11-26 Florian Weimer <fweimer@redhat.com>
7505
7506 [BZ #23907]
7507 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7508 double-frees.
7509
7510 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7511
7512 [BZ #19767]
7513 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7514 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7515 SHARED. Include sysdep.h.
7516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7517 ALWAYS_USE_VSYSCALL.
7518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7519 ALWAYS_USE_VSYSCALL.
7520
7521 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7522
7523 [BZ #19767]
7524 * nptl/Makefile (tests-static): Add tst-cond11-static.
7525 (tests): Likewise.
7526 * nptl/tst-cond11-static.c: New File.
7527 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7528 tst-affinity-static.
7529 (tests): Likewise.
7530 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7531 instead of SHARED.
7532 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7533 (USE_VSYSCALL): Likewise.
7534 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7535 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7536 instead of SHARED.
7537 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7538 SHARED.
7539 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7540 New.
7541
7542 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7543
7544 [BZ #23915]
7545 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7546 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7547 Undefine.
7548
7549 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7550
7551 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7552 (tst-cet-legacy-1a-ARGS): New.
7553 ($(objpfx)tst-cet-legacy-1a): New target.
7554 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7555
7556 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7557
7558 * conform/conformtest.py (CompileSubTest.__init__): Set
7559 self.run_early to False.
7560 (ExecuteSubTest.__init__): Likewise.
7561 (HeaderTests.run): Try running all non-optional, non-XFAILed
7562 compilation tests in a single execution of the compiler.
7563
7564 * conform/conformtest.py (CompileSubTest): New class.
7565 (ExecuteSubTest): Likewise.
7566 (ElementTest.run): Rename to gen_subtests. Append tests to
7567 self.subtests instead of running them.
7568 (ConstantTest.run): Likewise.
7569 (SymbolTest.run): Likewise.
7570 (TypeTest.run): Likewise.
7571 (TagTest.run): Likewise.
7572 (FunctionTest.run): Likewise.
7573 (VariableTest.run): Likewise.
7574 (MacroFunctionTest.run): Likewise.
7575 (MacroStrTest.run): Likewise.
7576 (HeaderTests.handle_test_line): Generate subtests for tests.
7577 (HeaderTests.run): Run subtests for tests.
7578
7579 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7580
7581 * math/Versions (GLIBC_2.29): Add pow.
7582 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7583 symbol.
7584 * math/w_pow.c: New file.
7585 * sysdeps/i386/fpu/w_pow.c: New file.
7586 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7587 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7588 and add necessary aliases.
7589 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7590 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7591 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7592 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7593 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7594 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7595 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7596 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7597 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7598 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7599 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7600 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7601 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7602 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7603 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7608 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7609 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7610 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7611 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7612 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7613 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7614 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7615 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7616 __pow.
7617 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7618 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7619 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7620
7621 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7622
7623 * math/Versions (GLIBC_2.29): Add log2.
7624 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7625 symbol.
7626 * math/w_log2.c: New file.
7627 * sysdeps/i386/fpu/w_log2.c: New file.
7628 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7629 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7630 and add necessary aliases.
7631 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7632 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7633 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7634 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7635 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7636 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7637 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7638 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7639 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7640 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7641 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7642 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7643 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7644 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7645 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7650 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7652 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7653 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7654 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7655 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7656 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7657
7658 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7659
7660 * math/Versions (GLIBC_2.29): Add log.
7661 * math/w_log_compat.c (__log_compat): Change to versioned compat
7662 symbol.
7663 * math/w_log.c: New file.
7664 * sysdeps/i386/fpu/w_log.c: New file.
7665 * sysdeps/ia64/fpu/e_log.S: Update.
7666 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7667 and add necessary aliases.
7668 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7669 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7670 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7671 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7672 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7673 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7674 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7675 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7676 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7677 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7678 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7679 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7680 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7681 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7682 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7687 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7688 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7689 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7690 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7691 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7692 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7693 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7694 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7695 __log.
7696 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7697 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7698 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7699 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7700
7701 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7702
7703 * math/Versions (GLIBC_2.29): Add exp and exp2.
7704 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7705 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7706 * math/w_exp_compat.c (__exp_compat): Likewise.
7707 * math/w_exp.c: New file.
7708 * math/w_exp2.c: New file.
7709 * sysdeps/i386/fpu/w_exp.c: New file.
7710 * sysdeps/i386/fpu/w_exp2.c: New file.
7711 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7712 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7713 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7714 and add necessary aliases.
7715 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7716 and add necessary aliases.
7717 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7718 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7719 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7720 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7721 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7722 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7723 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7724 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7725 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7726 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7727 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7728 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7729 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7730 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7731 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7732 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7733 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7738 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7739 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7740 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7741 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7742 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7743 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7744 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7745 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7746 (__ieee754_exp): Rename to __exp.
7747 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7748 (__ieee754_exp): Rename to __exp.
7749 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7750 (__ieee754_exp): Rename to __exp.
7751 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7752 __exp.
7753 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7754
7755 2018-11-20 DJ Delorie <dj@redhat.com>
7756
7757 * malloc/malloc.c (tcache_entry): Add key field.
7758 (tcache_put): Set it.
7759 (tcache_get): Likewise.
7760 (_int_free): Check for double free in tcache.
7761 * malloc/tst-tcfree1.c: New.
7762 * malloc/tst-tcfree2.c: New.
7763 * malloc/Makefile: Run the new tests.
7764 * manual/probes.texi: Document memory_tcache_double_free probe.
7765
7766 * dlfcn/dlerror.c (check_free): Prevent double frees.
7767
7768 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7769
7770 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7771
7772 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7773
7774 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7775 in tests. Use names for format arguments.
7776 (ConstantTest.run): Likewise.
7777 (SymbolTest.run): Likewise.
7778 (TypeTest.run): Likewise.
7779 (TagTest.run): Likewise.
7780 (FunctionTest.run): Likewise.
7781 (VariableTest.run): Likewise.
7782 (MacroFunctionTest.run): Likewise.
7783 (MacroStrTest.run): Likewise.
7784 (HeaderTests.__init__): Set self.num_tests.
7785 (HeaderTests.handle_test_line): Set test.num. Increment
7786 self.num_tests.
7787
7788 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7789
7790 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7791 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7792 SEEK_SET.
7793
7794 2018-11-19 Mao Han <han_mao@c-sky.com>
7795
7796 * scripts/config.guess: Update to version 2018-08-29.
7797 * scripts/config.sub: Update to version 2018-08-29.
7798
7799 2018-11-19 Florian Weimer <fweimer@redhat.com>
7800
7801 support: Print timestamps in timeout handler.
7802 * support/support_test_main.c (print_timestamp): New function.
7803 (signal_handler): Use it to print the termination time and the
7804 time of the last write to standard output.
7805
7806 2018-11-16 Zack Weinberg <zackw@panix.com>
7807 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7808
7809 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7810 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7811 argument.
7812 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7813 and add flags argument. Check flags instead of __ldbl_is_dbl when
7814 deciding whether to set is_long_double.
7815 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7816 passing zero for flags argument.
7817 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7818
7819 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7820 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7821 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7822 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7823 variable names. Remove libc_hidden_def/libc_hidden_proto from
7824 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7825 longer called from within the library.
7826 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7827 for __nldbl___vstrfmon_l, declare it explicitly.
7828
7829 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7830
7831 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7832
7833 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7834 macros
7835 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7836 F_SETLK64, F_SETLKW64, respectively.
7837 * sysdeps/mach/hurd/f_setlk.c: New file.
7838 * sysdeps/mach/hurd/f_setlk.h: New file.
7839 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7840 f_setlk.
7841 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7842 (__libc_fcntl): Move non-flock operations to...
7843 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7844 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7845
7846 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7847
7848 mktime: DEBUG_MKTIME cleanup
7849 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7850 And it’s no longer needed now that glibc and Gnulib both have
7851 their own testing mechanisms for mktime.
7852 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7853
7854 mktime: fix non-EOVERFLOW errno handling
7855 [BZ#23789]
7856 mktime was not properly reporting failures when the underlying
7857 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7858 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7859 The problem could happen on non-glibc platforms, with Gnulib.
7860 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7861 (tm_diff): ... this simpler function, which does not change errno.
7862 All callers changed to deal with errno themselves.
7863 (ranged_convert, __mktime_internal): Return failure immediately if
7864 the underlying function reports any failure other than EOVERFLOW.
7865 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7866 gap code fails.
7867
7868 mktime: fix bug with Y2038 DST transition
7869 [BZ#23789]
7870 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7871 mishandle a DST transition that jumps over the Y2038 boundary.
7872 No such DST transitions are known so this is only a theoretical
7873 bug, but we might as well do things right.
7874
7875 mktime: make more room for overflow
7876 [BZ#23789]
7877 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7878 This is so that we can add tm_diff results to a previous guess,
7879 which will be useful in a later patch.
7880
7881 mktime: simplify offset guess
7882 [BZ#23789]
7883 * time/mktime.c (__mktime_internal): Omit excess precision.
7884
7885 mktime: new test for mktime failure
7886 [BZ#23789]
7887 Based on a test suggested by Albert Aribaud in:
7888 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7889 * time/Makefile (tests): Add bug-mktime4.
7890 * time/bug-mktime4.c: New file.
7891
7892 mktime: fix EOVERFLOW bug
7893 [BZ#23789]
7894 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7895 Include libc-config.h, not config.h, for __set_errno.
7896 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7897
7898 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7899
7900 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7901 __attribute_copy__ to copy attributes from name. Drop static qualifier
7902 to avoid warnings about leaf attribute not having effect on static
7903 functions.
7904
7905 2018-11-13 Florian Weimer <fweimer@redhat.com>
7906
7907 * malloc/malloc.c (fastbin_push_entry): New function.
7908 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7909 (REMOVE_FB): Remove macro.
7910 (_int_malloc): Use fastbin_pop_entry and reindent.
7911 (_int_free): Use fastbin_push_entry.
7912 (malloc_consolidate): Use atomic_exchange_acquire.
7913
7914 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7915
7916 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7917 alias attribute, not with strong_alias.
7918
7919 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7920 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7921 with additional parameter thread.
7922 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7923 in terms of __hidden_ver2.
7924 (hidden_tls_def): New macro.
7925 (libc_hidden_tls_def): Likewise.
7926 (rtld_hidden_tls_def): Likewise.
7927 (libm_hidden_tls_def): Likewise.
7928 (libmvec_hidden_tls_def): Likewise.
7929 (libresolv_hidden_tls_def): Likewise.
7930 (librt_hidden_tls_def): Likewise.
7931 (libdl_hidden_tls_def): Likewise.
7932 (libnss_files_hidden_tls_def): Likewise.
7933 (libnsl_hidden_tls_def): Likewise.
7934 (libnss_nisplus_hidden_tls_def): Likewise.
7935 (libutil_hidden_tls_def): Likewise.
7936 (libutil_hidden_tls_def): Likweise.
7937 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7938 libc_hidden_tls_def.
7939 (__sim_disabled_exceptions_thread): Likewise.
7940 (__sim_round_mode_thread): Likewise.
7941
7942 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7943 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7944 copy attributes from name.
7945
7946 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7947
7948 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7949 Use __attribute_copy__ to copy attributes from name.
7950
7951 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7952 with __hidden_ver1 call.
7953 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7954 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7955 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7956 (__cosf): Do not declare here.
7957 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7958 (__sincosf): Do not declare here.
7959 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7960 (__sinf): Do not declare here.
7961
7962 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7963 (__BIG_ENDIAN): Likewise.
7964 (__BYTE_ORDER): Likewise.
7965 (strong_alias): Likewise.
7966 (_strong_alias): Likewise.
7967
7968 2018-11-12 Florian Weimer <fweimer@redhat.com>
7969
7970 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7971 function. Move after the definition of in_smallbin_range. Do not
7972 use __builtin_expect for paths that lead to a noreturn function.
7973 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7974 because it is unclear whether this is in fact an unlikely
7975 condition.
7976 (_int_malloc, _int_free): Adjust.
7977 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7978 variables.
7979 * malloc/arena.c (heap_trim): Likewise.
7980
7981 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7982
7983 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7984 it, free it if needed.
7985 (reauthenticate): Test and use ccwdir.
7986 (child_init_port): In non-resetids case, test and use ccwdir.
7987 (child_chdir): New nested function to set ccwdir.
7988 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7989 * hurd/hurd/port.h (_hurd_port_move): New function.
7990 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7991 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7992 * hurd/Versions (_hurd_port_move): Export function.
7993 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7994 symbol.
7995 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7996 of dtablesize for allocating dtable_cloexec.
7997
7998 2018-11-09 Martin Sebor <msebor@redhat.com>
7999
8000 * include/libc-symbols.h (__attribute_copy__): Define macro unless
8001 it's already defined.
8002 (_strong_alias): Use __attribute_copy__.
8003 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
8004 * misc/sys/cdefs.h (__attribute_copy__): New macro.
8005 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
8006 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
8007 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
8008 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
8009 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
8010 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
8011 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
8012 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
8013 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
8014 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
8015 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
8016 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
8017 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
8018 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
8019 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
8020 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
8021 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
8022
8023 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8024
8025 * misc/tst-efgcvt.c: Include support/check.h and
8026 support/test-driver.c. Do not include test-skeleton.c.
8027 (error_count): Remove.
8028 (output_error): Replace increments to error_count with calls to
8029 support_record_failure.
8030 (output_r_error): Likewise.
8031 (special): Likewise.
8032 (do_test): Unconditionally return zero.
8033 (TEST_FUNCTION): Remove.
8034
8035 2018-11-09 Joseph Myers <joseph@codesourcery.com>
8036
8037 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
8038 not $(@D)/scratch.
8039 ($(linknamespace-header-tests)): Likewise.
8040
8041 * conform/conformtest.py: New file.
8042 * conform/conformtest.pl: Remove.
8043 * conform/GlibcConform.pm: Likewise.
8044 * conform/glibcconform.py (KEYWORDS_C90): New constant.
8045 (KEYWORDS_C99): Likewise.
8046 (KEYWORDS): Likewise.
8047 * conform/Makefile ($(conformtest-header-tests)): Use
8048 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
8049 option. Use --header instead of --headers.
8050 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
8051 function entries.
8052 * conform/data/spawn.h-data: Likewise.
8053 * conform/data/fcntl.h-data (openat): Add space after function
8054 name.
8055 * conform/data/wchar.h-data (wcscasecmp): Likewise.
8056 (wcscasecmp_l): Likewise.
8057 * conform/data/termios.h-data (c_cc): Add space after element
8058 name.
8059
8060 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8061
8062 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
8063 instead of manually comparing and reporting mismatching strings.
8064 * misc/tst-ldbl-error.c (do_one_test): Likewise.
8065 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
8066
8067 2018-11-08 Joseph Myers <joseph@codesourcery.com>
8068
8069 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
8070 __ASSUME_SOCKETCALL.
8071 * sysdeps/unix/sysv/linux/i386/kernel-features.h
8072 (__ASSUME_SOCKETCALL): Remove.
8073 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8074 (__ASSUME_SOCKETCALL): Likewise.
8075 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8076 (__ASSUME_SOCKETCALL): Likewise.
8077 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
8078 (__ASSUME_SOCKETCALL): Likewise.
8079 * sysdeps/unix/sysv/linux/s390/kernel-features.h
8080 (__ASSUME_SOCKETCALL): Likewise.
8081 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8082 (__ASSUME_SOCKETCALL): Likewise.
8083 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8084 (__ASSUME_SOCKETCALL): Likewise.
8085
8086 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
8087
8088 [BZ #23509]
8089 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
8090 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
8091 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
8092 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
8093 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
8094 lc_unknown.
8095
8096 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
8097
8098 [BZ #17630]
8099 * resolv/tst-resolv-network.c: Add test for getnetbyname.
8100
8101 2018-11-07 Joseph Myers <joseph@codesourcery.com>
8102
8103 [BZ #23867]
8104 * sysdeps/unix/sysv/linux/arm/kernel-features.h
8105 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8106 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8107 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
8108
8109 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8110
8111 * support/support_test_compare_string.c
8112 (support_test_compare_string): Fix printf format.
8113
8114 2018-11-07 Florian Weimer <fweimer@redhat.com>
8115
8116 Implement TEST_COMPARE_STRING.
8117 * support/check.h (TEST_COMPARE_STRING): Define.
8118 (support_test_compare_string): Declare.
8119 * support/Makefile (libsupport-routines): Add
8120 support_test_compare_string.
8121 (tests): Add tst-test_compare_string.
8122 * support/support_test_compare_string.c: New file.
8123 * support/tst-test_compare_string.c: Likewise.
8124
8125 2018-11-07 Andreas Schwab <schwab@suse.de>
8126
8127 [BZ #23864]
8128 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
8129 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
8130 Undef.
8131
8132 2018-11-06 Joseph Myers <joseph@codesourcery.com>
8133
8134 [BZ #23862]
8135 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8136 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
8137 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
8138 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
8139 Likewise.
8140
8141 2018-11-06 Florian Weimer <fweimer@redhat.com>
8142
8143 [BZ #17405]
8144 * posix/Makefile (routines): Add spawn_faction_addchdir.
8145 (tests): Add tst-spawn-chdir.
8146 * posix/Versions (GLIBC_2.29): Add
8147 posix_spawn_file_actions_addchdir_np.
8148 * posix/spawn_faction_addchdir.c: New file.
8149 * posix/spawn_faction_destroy.c
8150 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8151 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8152 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8153 chdir_action.
8154 * posix/tst-spawn-chdir.c: New file.
8155 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8156 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8157 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8158 posix_spawn_file_actions_addchdir_np.
8159 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8160 Likewise.
8161 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8162 Likewise.
8163 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8164 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8165 Likewise.
8166 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8167 Likewise.
8168 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8169 Likewise.
8170 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8171 Likewise.
8172 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8173 Likewise.
8174 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8175 Likewise.
8176 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8177 (GLIBC_2.29): Likewise.
8178 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8179 (GLIBC_2.29): Likewise.
8180 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8181 (GLIBC_2.29): Likewise.
8182 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8183 (GLIBC_2.29): Likewise.
8184 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8185 Likewise.
8186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8187 (GLIBC_2.29): Likewise.
8188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8189 (GLIBC_2.29): Likewise.
8190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8191 (GLIBC_2.29): Likewise.
8192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8193 (GLIBC_2.29): Likewise.
8194 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8195 Likewise.
8196 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8197 Likewise.
8198 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8199 Likewise.
8200 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8201 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8202 Likewise.
8203 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8204 Likewise.
8205 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8206 Likewise.
8207 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8208 Likewise.
8209
8210 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8211
8212 * misc/Makefile (tests): Add tst-ldbl-error.
8213 * misc/tst-ldbl-error.c: New file.
8214
8215 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8216
8217 * misc/Makefile (tests): Add tst-ldbl-warn.
8218 * misc/tst-ldbl-warn.c: New file.
8219
8220 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8221
8222 * argp/Makefile (tests): Add tst-ldbl-argp.
8223 * argp/tst-ldbl-argp.c: New file.
8224
8225 2018-11-05 Arjun Shankar <arjun@redhat.com>
8226
8227 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8228 __gconv_path_elem and call __gconv_get_path unconditionally.
8229
8230 2018-11-05 Andreas Schwab <schwab@suse.de>
8231
8232 [BZ #22927]
8233 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8234 creating the first helper thread failed.
8235
8236 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8237
8238 * sysdeps/mach/hurd/msync.c: New file.
8239
8240 2018-11-02 Florian Weimer <fweimer@redhat.com>
8241
8242 * support/shell-container.c (copy_func): Call
8243 support_copy_file_range instead of copy_file_range to support
8244 cross-device copies.
8245
8246 2018-11-02 Florian Weimer <fweimer@redhat.com>
8247
8248 * support/test-container.c: Include <libc-pointer-arith.h> for
8249 ALIGN_UP.
8250
8251 2018-11-01 Zong Li <zong@andestech.com>
8252
8253 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8254 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8255 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8256 (__FP_FRAC_SET_8): Add implementation for RV32 use.
8257
8258 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8259 variable to avoid overlap arguments.
8260
8261 2018-11-01 Joseph Myers <joseph@codesourcery.com>
8262
8263 * posix/bug-regex22.c (main): Use puts with distinct error
8264 messages for unexpected success of re_compile_pattern, not printf
8265 with NULL argument to %s.
8266
8267 * stdio-common/bug22.c: Include <libc-diag.h>.
8268 (do_test): Disable -Wformat-overflow= warnings around fprintf
8269 calls outputting more than INT_MAX characters.
8270 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8271 around printf call with NULL %s argument.
8272
8273 [BZ #23848]
8274 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8275 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8276 Undefine.
8277 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8278 (__ASSUME_RECVMSG_SYSCALL): Likewise.
8279 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8280 (__ASSUME_SENDTO_SYSCALL): Likewise.
8281 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8282 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8283 [!__arch64__].
8284 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8285 (__ASSUME_CONNECT_SYSCALL): Likewise.
8286 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8287 (__ASSUME_RECVFROM_SYSCALL): Likewise.
8288 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8289 Define.
8290 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8291 Likewise.
8292 [__LINUX_KERNEL_VERSION >= 0x040400]
8293 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8294 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8295 Remove.
8296 (listen): Likewise.
8297 (setsockopt): Likewise.
8298
8299 2018-11-01 Fredrik Noring <noring@nocrew.org>
8300
8301 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8302 with the ISA override.
8303
8304 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
8305
8306 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8307 #endif.
8308
8309 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8310
8311 * manual/errno.texi (EIEIO): Document how translators should
8312 translate the error message.
8313 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
8314 printing trailing whitespaces refused by git.
8315 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8316 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8317 * hurd/Makefile (user-interfaces): Add pci.
8318
8319 2018-10-30 Joseph Myers <joseph@codesourcery.com>
8320
8321 * conform/linknamespace.py: New file.
8322 * conform/linknamespace.pl: Remove file.
8323 * conform/Makefile ($(linknamespace-header-tests)): Use
8324 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
8325 option.
8326
8327 2018-10-30 Florian Weimer <fweimer@redhat.com>
8328
8329 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8330 memory leaks.
8331
8332 2018-10-30 Florian Weimer <fweimer@redhat.com>
8333
8334 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8335
8336 2018-10-30 Florian Weimer <fweimer@redhat.com>
8337
8338 * stdlib/tst-strtod-overflow.c (do_test): Switch to
8339 support_blob_repeat.
8340
8341 2018-10-30 Florian Weimer <fweimer@redhat.com>
8342
8343 Avoid spurious test failures in stdlib/test-bz22786.
8344 * support/Makefile (libsupport-routines): Add blob_repeat.
8345 (tests): Add tst-support_blob_repeat.
8346 * support/blob_repeat.h: New file.
8347 * support/blob_repeat.c: Likewise.
8348 * support/tst-support_blob_repeat.c: Likewise.
8349 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8350 support_blob_repeat_allocate.
8351
8352 2018-10-30 Andreas Schwab <schwab@suse.de>
8353
8354 [BZ #23125]
8355 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8356 Don't use tail call.
8357 * elf/tst-unwind-main.c: New file.
8358 * elf/Makefile (tests): Add tst-unwind-main.
8359 (CFLAGS-tst-unwind-main.c): Define.
8360
8361 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8362
8363 [BZ #23791]
8364 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8365 n_cs_precedes to 0.
8366 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8367
8368 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8369
8370 * conform/glibcconform.py: Do not import shutil.
8371 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8372 of mkdtemp.
8373
8374 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8375 critic_missing for versions before 3.4.
8376 * configure: Regenerated.
8377 * manual/install.texi (Tools for Compilation): Document
8378 requirement for Python to build glibc.
8379 * INSTALL: Regenerated.
8380 * Rules [PYTHON]: Make code unconditional.
8381 * benchtests/Makefile [PYTHON]: Likewise.
8382 * conform/Makefile [PYTHON]: Likewise.
8383 * manual/Makefile [PYTHON]: Likewise.
8384 * math/Makefile [PYTHON]: Likewise.
8385
8386 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8387
8388 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8389 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8390 answer to interrupt_operation, return EIEIO instead of EINTR.
8391 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8392 _hurd_intr_rpc_msg_about_to global point to start of controlled
8393 assembly snippet. Make it check canceled flag.
8394 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8395 the _hurd_intr_rpc_msg_about_to point.
8396 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8397 issue, remove cancel flag check.
8398
8399 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8400
8401 * scripts/build-many-glibcs.py: Remove compatibility for missing
8402 os.cpu_count and re.fullmatch.
8403
8404 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8405
8406 [BZ #23822]
8407 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8408 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8409 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8410
8411 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8412
8413 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8414 macro.
8415
8416 2018-10-25 Florian Weimer <fweimer@redhat.com>
8417
8418 [BZ #23562]
8419 [BZ #23821]
8420 XFAIL siginfo_t si_band conform test on sparc64.
8421 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8422 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8423 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8424 (conformtest-xfail-conds): Add sparc64-linux.
8425 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8426 sparc64.
8427 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8428
8429 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8430
8431 * elf/elf.h (NT_MIPS_DSP): New macro.
8432 (NT_MIPS_FP_MODE): Likewise.
8433
8434 2018-10-25 Zong Li <zong@andestech.com>
8435
8436 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8437 name by adding the file extension (.so).
8438
8439 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8440
8441 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8442 (test-xfail-ISO11/threads.h/linknamespace,
8443 test-xfail-ISO11/threads.h/conform): Add.
8444
8445 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8446
8447 * math/gen-libm-test.py: Import os.
8448 (ALL_FLOATS_MANUAL): New constant.
8449 (ALL_FLOATS_SUFFIX): Likewise.
8450 (Ulps.all_functions): New function.
8451 (real_all_ulps): Likewise.
8452 (generate_err_table_sub): Likewise.
8453 (generate_err_table): Likewise.
8454 (main): Handle -s and -m options.
8455 * manual/libm-err-tab.pl: Remove.
8456 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8457 instead of libm-err-tab.pl.
8458 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8459 != no].
8460 * manual/install.texi (Tools for Compilation): Document
8461 requirement for Python to build manual.
8462 * INSTALL: Regenerated.
8463
8464 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8465
8466 * bits/time64.h: New file.
8467 * include/time.h: Replace internal_time_t with __time64_t.
8468 * posix/bits/types (__time64_t): Add.
8469 * stdlib/Makefile: Add bits/time64.h to includes.
8470 * time/tzfile.c: Replace internal_time_t with __time64_t.
8471
8472 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8473
8474 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8475 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8476 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8477 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8478 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8479 prototype.
8480 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8481 * posix/spawn_faction_addclose.c
8482 (__posix_spawn_file_actions_addclose): Add hidden definition.
8483 * posix/spawn_faction_adddup2.c
8484 (__posix_spawn_file_actions_adddup2): Likewise.
8485 * posix/spawn_faction_destroy.c
8486 (__posix_spawn_file_actions_destroy): Likewise.
8487 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8488 Likewise.
8489 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8490 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8491 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8492 Likewise.
8493 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8494 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8495 Likewise.
8496
8497 2018-10-24 Andreas Schwab <schwab@suse.de>
8498
8499 [BZ #18093]
8500 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8501 format cache.
8502 * elf/cache.c (print_cache): Likewise.
8503
8504 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8505
8506 * bits/timesize.h: New file.
8507 * stdlib/Makefile (headers): Add bits/timesize.h.
8508 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8509 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8510 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8511 (__SEM_PAD_AFTER_TIME): Likewise.
8512 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8513 (__SHM_PAD_AFTER_TIME): Likewise.
8514 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8515 (__MSQ_PAD_BEFORE_TIME): Likewise.
8516 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8517 (__SEM_PAD_BEFORE_TIME): Likewise.
8518 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8519 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8520 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8521 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8522 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8523 (__MSQ_PAD_BEFORE_TIME): Likewise.
8524 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8525 (__SEM_PAD_BEFORE_TIME): Likewise.
8526 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8527 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8528 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8529 (__MSQ_PAD_BEFORE_TIME): Likewise.
8530 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8531 (__SEM_PAD_BEFORE_TIME): Likewise.
8532 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8533 (__SHM_PAD_BEFORE_TIME): Likewise.
8534 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8535 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8536 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8537
8538 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8539
8540 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8541 USE_RDTSCP is defined.
8542 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8543 USE_RDTSCP is defined.
8544
8545 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8546
8547 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8548 defined.
8549
8550 [BZ #23709]
8551 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8552 independently of other flags.
8553
8554 2018-10-23 Florian Weimer <fweimer@redhat.com>
8555
8556 * time/tst-mktime2.c (N_STRINGS): Remove.
8557 (set_timezone): New function.
8558 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8559 (mktime_test1): Report localtime failure and check errno value.
8560 Use TEST_COMPARE.
8561 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8562 (do_test): Remove alarm call. Use set_timezone and array_length.
8563
8564 2018-10-23 Andreas Schwab <schwab@suse.de>
8565
8566 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8567 (__start_context): Use END instead of PSEUDO_END.
8568
8569 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8570
8571 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8572 version to 4.19.
8573
8574 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8575 version to 4.19.
8576
8577 [BZ #23793]
8578 * wcsmbs/c32rtomb.c: New file.
8579 * wcsmbs/mbrtoc32.c: Likewise.
8580 * wcsmbs/tst-c32-state.c: Likewise.
8581 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8582 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8583 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8584 (tests): Add tst-c32-state.
8585 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8586 $(gen-locales).
8587
8588 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8589
8590 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8591 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8592
8593 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8594
8595 [BZ #23794]
8596 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8597 pair and return 0 in that case, and use saved character to
8598 interpret following character.
8599 * wcsmbs/tst-c16-surrogate.c: New file.
8600 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8601 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8602 Depend on $(gen-locales)
8603
8604 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8605
8606 [BZ #23562]
8607 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8608 (struct siginfo_t): Use correct type for si_band.
8609
8610 2018-10-19 Florian Weimer <fweimer@redhat.com>
8611
8612 [BZ #23689]
8613 * resource/bits/types/struct_rusage.h (struct rusage): Update
8614 comment on struct. Remove extraneous field comment.
8615
8616 2018-10-18 David S. Miller <davem@davemloft.net>
8617
8618 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8619 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8620 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8621 sysdep_routines in subdir elf.
8622 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8623 version for __vdso_clock_gettime.
8624 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8625 Define.
8626 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8627 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8628
8629 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8630
8631 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8632
8633 * sysdeps/i386/init-arch.h: Removed.
8634 * sysdeps/i386/i586/init-arch.h: Likewise.
8635 * sysdeps/i386/i686/init-arch.h: Likewise.
8636 * sysdeps/i386/i686/hp-timing.h: Likewise.
8637 * sysdeps/x86_64/hp-timing.h: Likewise.
8638 * sysdeps/i386/isa.h: New file.
8639 * sysdeps/i386/i586/isa.h: Likewise.
8640 * sysdeps/i386/i686/isa.h: Likewise.
8641 * sysdeps/x86_64/isa.h: Likewise.
8642 * sysdeps/x86/hp-timing.h: New file.
8643 * sysdeps/x86/init-arch.h: Include <isa.h>.
8644
8645 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8646
8647 * math/libm-test-pow.inc (pow_test_data): Do not allow
8648 divide-by-zero exception for pow(+/- 0, -Inf).
8649
8650 2018-10-17 Zack Weinberg <zackw@panix.com>
8651
8652 * manual/job.texi (Job Control is Optional): Remove node, as
8653 job control has not been optional in quite some time.
8654 (Job Control): Mention briefly that systems older than
8655 POSIX.1-2001 might not support job control.
8656 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8657 defined on systems conforming to POSIX.1-2001.
8658
8659 2018-10-17 Arjun Shankar <arjun@redhat.com>
8660
8661 [BZ #22062]
8662 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8663 indentation.
8664 * (__gconv_read_conf): Mark function static.
8665 * (once): New static variable.
8666 * (__gconv_load_conf): New function.
8667 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8668 * iconv/gconv_db.c (once): Remove static variable.
8669 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8670 __gconv_read_conf.
8671 * (__gconv_find_transform): Likewise.
8672 * iconv/tst-iconv-mt.c: New test.
8673 * iconv/Makefile: Add tst-iconv_mt.
8674
8675 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8676
8677 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8678 bits/shm-pad.h.
8679 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8680 (shmatt_t): Define as __syscall_ulong_t.
8681 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8682 and [__SHM_PAD_AFTER_TIME].
8683 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8684 Define shm_segsz and associated padding based on
8685 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8686 Use __syscall_ulong_t instead of unsigned long int.
8687 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8688 unsigned long int.
8689 [__USE_MISC] (struct shm_info): Likewise.
8690 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8691 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8692 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8693 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8694 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8695 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8696 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8697 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8698 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8699 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8700 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8701
8702 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8703 bits/shmlba.h.
8704 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8705 (SHMLBA): Remove macro.
8706 (__getpagesize): Remove function declaration.
8707 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8708 <bits/shmlba.h>.
8709 (SHMLBA): Remove macro.
8710 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8711 <bits/shmlba.h>.
8712 (SHMLBA): Remove macro.
8713 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8714 <bits/shmlba.h>.
8715 (SHMLBA): Remove macro.
8716 (__getpagesize): Remove function declaration.
8717 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8718 <bits/shmlba.h>.
8719 (SHMLBA): Remove macro.
8720 (__getshmlba): Remove function declaration.
8721 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8722 (SHMLBA): Remove macro.
8723 (__getpagesize): Remove function declaration.
8724 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8725 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8726 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8727 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8728 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8729 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8730 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8731 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8732 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8733 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8734
8735 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8736
8737 [BZ #23275]
8738 * nptl/tst-mutex10.c: New File.
8739 * nptl/Makefile (tests): Add tst-mutex10.
8740 (tst-mutex10-ENV): New variable.
8741 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8742 Ensure that elision path is used if elision is available.
8743 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8744 Likewise.
8745 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8746 Likewise.
8747 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8748 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8749 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8750 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8751 Likewise.
8752 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8753 (__pthread_mutex_cond_lock_adjust): Likewise.
8754 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8755 Likewise.
8756 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8757 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8758 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8759 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8760 Add comments.
8761 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8762 Use atomic_load_relaxed and atomic_store_relaxed.
8763 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8764 Use atomic_store_relaxed.
8765
8766 2018-10-17 Andreas Schwab <schwab@suse.de>
8767
8768 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8769 * crypt/badsalttest.c (TIMEOUT): Likewise.
8770 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8771 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8772 * io/test-lfs.c (TIMEOUT): Likewise.
8773 * libio/tst-atime.c (TIMEOUT): Likewise.
8774 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8775 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8776 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8777 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8778 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8779 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8780 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8781 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8782 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8783 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8784 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8785 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8786 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8787 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8788 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8789 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8790 * nptl/tst-once2.c (TIMEOUT): Likewise.
8791 * nptl/tst-once3.c (TIMEOUT): Likewise.
8792 * nptl/tst-once4.c (TIMEOUT): Likewise.
8793 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8794 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8795 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8796 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8797 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8798 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8799 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8800 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8801 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8802 * posix/tst-chmod.c (TIMEOUT): Likewise.
8803 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8804 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8805 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8806 * posix/tst-regex2.c (TIMEOUT): Likewise.
8807 * posix/tst-waitid.c (TIMEOUT): Likewise.
8808 * rt/tst-aio.c (TIMEOUT): Likewise.
8809 * rt/tst-aio10.c (TIMEOUT): Likewise.
8810 * rt/tst-aio4.c (TIMEOUT): Likewise.
8811 * rt/tst-aio5.c (TIMEOUT): Likewise.
8812 * rt/tst-aio6.c (TIMEOUT): Likewise.
8813 * rt/tst-aio64.c (TIMEOUT): Likewise.
8814 * rt/tst-aio7.c (TIMEOUT): Likewise.
8815 * rt/tst-aio9.c (TIMEOUT): Likewise.
8816 * rt/tst-clock.c (TIMEOUT): Likewise.
8817 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8818 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8819 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8820 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8821 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8822 * rt/tst-timer4.c (TIMEOUT): Likewise.
8823 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8824 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8825 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8826 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8827 * time/tst-ftime.c (TIMEOUT): Likewise.
8828 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8829
8830 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8831
8832 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8833 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8834 for thunderX2.
8835
8836 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8837
8838 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8839 bits/sem-pad.h.
8840 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8841 instead of <bits/wordsize.h>.
8842 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8843 and [__SEM_PAD_AFTER_TIME].
8844 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8845 __syscall_ulong_t instead of unsigned long int.
8846 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8847 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8848 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8849 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8850 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8851 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8852 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8853 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8854 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8855 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8856 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8857
8858 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8859
8860 regex: simplify by using intprops.h
8861 [BZ#23744]
8862 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8863 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8864 intprops.h defines them.
8865
8866 regex: __builtin_expect → __glibc_unlikely
8867 [BZ#23744]
8868 This refactoring was prompted by a problem when the regex code is
8869 used as part of Gnulib and when the builder’s compiler does not grok
8870 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8871 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8872 Although this refactoring does not fix the problem directly,
8873 we might as well have Gawk use the now-preferred glibc style for when
8874 __builtin_expect is unavailable.
8875 * posix/regex_internal.h (BE): Remove.
8876 All uses replaced by __glibc_unlikely or __glibc_likely.
8877
8878 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8879
8880 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8881 bits/msq-pad.h.
8882 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8883 instead of <bits/wordsize.h>.
8884 (msgqnum_t): Define as __syscall_ulong_t.
8885 (msglen_t): Likewise.
8886 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8887 and [__MSQ_PAD_AFTER_TIME].
8888 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8889 __syscall_ulong_t instead of unsigned long int.
8890 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8891 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8892 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8893 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8894 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8895 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8896 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8897 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8898 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8899 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8900 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8901
8902 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8903
8904 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8905 (struct shmid_ds): Condition padding after time fields on
8906 [__WORDSIZE == 32].
8907 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8908 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8909 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8910
8911 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8912 (struct semid_ds): Condition padding after time fields on
8913 [__WORDSIZE == 32].
8914 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8915 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8916 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8917 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8918
8919 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8920 (struct msqid_ds): Condition padding after time fields on
8921 [__WORDSIZE == 32].
8922 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8923 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8924 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8925 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8926
8927 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8928
8929 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8930
8931 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8932
8933 * libio/tst-readline.c (TIMEOUT): Define.
8934
8935 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8936
8937 mktime fix for Gnulib + coreutils
8938 [BZ#23745]
8939 This fix affects only Gnulib. Problem discovered when
8940 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8941 * time/mktime.c:
8942 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8943 Do not define since it is not used. Defining an unused static
8944 function prompts a warning from GCC when Coreutils is configured
8945 with --enable-gcc-warnings.
8946
8947 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8948
8949 * benchtests/scripts/compare_bench.py (main): set float type on
8950 threshold argument.
8951
8952 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8953
8954 [BZ #23740]
8955 * localedata/locales/kl_GL (mon): Update, the relative case.
8956 (alt_mon): Add, fill with month names in the nominative case.
8957 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8958 (d_fmt): Set to "%b %d %Y".
8959
8960 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8961
8962 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8963 <bits/mman-linux.h>.
8964 (PROT_READ): Don't define here.
8965 (PROT_WRITE): Likewise.
8966 (PROT_EXEC): Likewise.
8967 (PROT_NONE): Likewise.
8968 (PROT_GROWSDOWN): Likewise.
8969 (PROT_GROWSUP): Likewise.
8970 (MAP_SHARED): Likewise.
8971 (MAP_PRIVATE): Likewise.
8972 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8973 [__USE_MISC] (MAP_FILE): Likewise.
8974 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8975 [__USE_MISC] (MAP_ANON): Likewise.
8976 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8977 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8978 (MCL_CURRENT): Likewise.
8979 (MCL_FUTURE): Likewise.
8980 (MCL_ONFAULT): Likewise.
8981 [__USE_MISC] (MADV_NORMAL): Likewise.
8982 [__USE_MISC] (MADV_RANDOM): Likewise.
8983 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8984 [__USE_MISC] (MADV_WILLNEED): Likewise.
8985 [__USE_MISC] (MADV_DONTNEED): Likewise.
8986 [__USE_MISC] (MADV_FREE): Likewise.
8987 [__USE_MISC] (MADV_REMOVE): Likewise.
8988 [__USE_MISC] (MADV_DONTFORK): Likewise.
8989 [__USE_MISC] (MADV_DOFORK): Likewise.
8990 [__USE_MISC] (MADV_HWPOISON): Likewise.
8991 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8992 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8993 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8994 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8995 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8996 (__MAP_ANONYMOUS): New macro.
8997 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8998 <bits/mman-linux.h> inclusion.
8999 (MAP_FIXED): Likewise.
9000 (MS_SYNC): Likewise.
9001 (MS_ASYNC): Likewise.
9002 (MS_INVALIDATE): Likewise.
9003 [__USE_MISC] (MADV_MERGEABLE): Likewise.
9004 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
9005 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
9006 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
9007 [__USE_MISC] (MADV_DONTDUMP): Likewise.
9008 [__USE_MISC] (MADV_DODUMP): Likewise.
9009 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
9010 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
9011
9012 [BZ #23735]
9013 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
9014 Define.
9015 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
9016 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
9017 Add test-nldbl-redirect.
9018 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
9019 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
9020 $(objpfx)libnldbl_nonshared.a.
9021
9022 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
9023
9024 * support/support.h (support_objdir_elf_ldso): New variable.
9025 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
9026 * support/Makefile (CFLAGS-support_paths.c): Add definition
9027 for OBJDIR_ELF_LDSO_PATH.
9028 * support/test-container.c (main): Search for the ld.so
9029 which is also used by the testsuite.
9030
9031 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
9032
9033 [BZ #20209]
9034 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
9035 should be "sap" rather than "sab".
9036 (day): Fix spelling of Sunday, should be "sapaat" rather than
9037 "sabaat".
9038
9039 2018-10-02 Joseph Myers <joseph@codesourcery.com>
9040
9041 * math/libm-test-fma.inc (fma_test_data): Add more tests.
9042
9043 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
9044
9045 [BZ #19444]
9046 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
9047 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
9048 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
9049
9050 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9051
9052 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
9053
9054 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
9055
9056 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
9057 Add -mrtm.
9058 (CFLAGS-elision-unlock.c): Likewise.
9059 (CFLAGS-elision-timed.c): Likewise.
9060 (CFLAGS-elision-trylock.c): Likewise.
9061 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
9062
9063 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9064
9065 [BZ #21037]
9066 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
9067 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
9068 new fd_to_filename interface.
9069 * libio/freopen64.c (freopen64): Likewise.
9070 * libio/tst-memstream.h: New file.
9071 * libio/tst-memstream4.c: Likewise.
9072 * libio/tst-wmemstream4.c: Likewise.
9073 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
9074 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
9075 and remove internal dynamic allocation.
9076
9077 2018-10-01 Joseph Myers <joseph@codesourcery.com>
9078
9079 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
9080 (MREMAP_MAYMOVE): Do not define here.
9081 [__USE_GNU] (MREMAP_FIXED): Likewise.
9082 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
9083 (MREMAP_MAYMOVE): Define here instead.
9084 [__USE_GNU] (MREMAP_FIXED): Likewise.
9085 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
9086 (MREMAP_MAYMOVE): Remove.
9087 [__USE_GNU] (MREMAP_FIXED): Likewise.
9088
9089 2018-09-28 Joseph Myers <joseph@codesourcery.com>
9090
9091 * math/fromfp.h: Do not include <math_private.h>.
9092 * math/s_cacosh_template.c: Likewise.
9093 * math/s_casin_template.c: Likewise.
9094 * math/s_casinh_template.c: Likewise.
9095 * math/s_ccos_template.c: Likewise.
9096 * math/s_cproj_template.c: Likewise.
9097 * math/s_fdim_template.c: Likewise.
9098 * math/s_fmaxmag_template.c: Likewise.
9099 * math/s_fminmag_template.c: Likewise.
9100 * math/s_iseqsig_template.c: Likewise.
9101 * math/s_ldexp_template.c: Likewise.
9102 * math/s_nextdown_template.c: Likewise.
9103 * math/w_log1p_template.c: Likewise.
9104 * math/w_scalbln_template.c: Likewise.
9105 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9106 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9107 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9108 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9109 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
9110 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
9111 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
9112 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
9113 * sysdeps/i386/fpu/s_atanl.c: Likewise.
9114 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9115 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9116 * sysdeps/i386/fpu/s_fdim.c: Likewise.
9117 * sysdeps/i386/fpu/s_logbl.c: Likewise.
9118 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9119 * sysdeps/i386/fpu/s_significandl.c: Likewise.
9120 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
9121 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
9122 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9123 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9124 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9125 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9126 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9127 * sysdeps/ieee754/k_standardf.c: Likewise.
9128 * sysdeps/ieee754/k_standardl.c: Likewise.
9129 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9130 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
9131 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
9132 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
9133 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
9134 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
9135 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9136 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9137 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9138 * sysdeps/ieee754/s_signgam.c: Likewise.
9139 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
9140 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
9141 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
9142 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9143 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9144 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9145 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9146 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9147 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9148 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9149 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9150 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9151 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9152 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9153 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9154 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9155 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9156 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9157 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9158 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9159 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9160 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9161 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9162 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9163 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9164 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9165 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9166 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9167 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9168 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9169 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9170 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9171 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9172 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9173 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9174 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9175 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9176 <math_private.h>.
9177 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9178
9179 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
9180
9181 [BZ #23716]
9182 * sysdeps/i386/dl-cet.c: Removed.
9183 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9184 prototype.
9185 (_dl_runtime_profile_shstk): Likewise.
9186 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9187 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9188
9189 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9190
9191 [BZ #23579]
9192 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9193 do_test_with_invalid_iov): New tests.
9194 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9195 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9196 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9197 errno is ENOSYS.
9198 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9199 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9200 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9201
9202 2018-09-27 Joseph Myers <joseph@codesourcery.com>
9203
9204 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9205 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9206 (MATH_REDIRECT_BINARY_ARGS): New macro.
9207 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9208 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9209 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9210 header inclusion.
9211 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9212 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9213 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9214 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9215 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9216 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9217 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9219 Likewise.
9220 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9221 Likewise.
9222 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9223 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9224 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9225 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9227 Likewise.
9228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9229 Likewise.
9230 * sysdeps/generic/math_private_calls.h
9231 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9232 Do not declare and define as an inline function.
9233 * math/divtc3.c (__divtc3): Use copysign functions instead of
9234 __copysign variants.
9235 * math/multc3.c (__multc3): Likewise.
9236 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9237 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9238 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9239 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9240 Likewise.
9241 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9242 (__ieee754_yn): Likewise.
9243 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9244 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9245 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9246 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9247 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9248 (__sin): Likewise.
9249 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9250 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9251 Likewise.
9252 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9253 Likewise.
9254 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9255 Likewise.
9256 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9257 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9258 Likewise.
9259 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9260 (__ieee754_ynf): Likewise.
9261 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9262 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9263 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9264 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9265 Likewise.
9266 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9267 (__ieee754_ynl): Likewise.
9268 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9269 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9270 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9271 Likewise.
9272 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9273 (__ieee754_ynl): Likewise.
9274 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9275 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9276 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9277 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9278 Likewise.
9279 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9280 (__ieee754_ynl)
9281 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9282 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9283 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9284 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9285 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9286
9287 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9288 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9289 using MATH_REDIRECT.
9290 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9291 header inclusion.
9292 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9293 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9294 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9295 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9296 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9297 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9298 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9303 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9304 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9305 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9306 (round): Redirect to __round.
9307 (__roundl): Call round instead of __round.
9308 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9309 Remove macro.
9310 [_ARCH_PWR5X] (__roundf): Likewise.
9311 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9312 functions instead of __round variants.
9313 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9314 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9315 Likewise.
9316 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9317 Likewise.
9318 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9319 Likewise.
9320 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9321 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9322 __lroundl.
9323 (__ieee754_expl): Call roundl instead of __roundl.
9324
9325 2018-09-27 Andreas Schwab <schwab@suse.de>
9326
9327 [BZ #23717]
9328 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9329 (do_test): Make st1 static.
9330
9331 2018-09-26 Andreas Schwab <schwab@suse.de>
9332
9333 [BZ #23707]
9334 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9335 * elf/Makefile (tests): Add tst-unwind-ctor.
9336 (modules-names): Add tst-unwind-ctor-lib.
9337 ($(objpfx)tst-unwind-ctor): Depend on
9338 $(objpfx)tst-unwind-ctor-lib.so.
9339
9340 2018-09-26 Joseph Myers <joseph@codesourcery.com>
9341
9342 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9343 file. Most contents moved from ....
9344 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
9345 and include <bits/mman-map-flags-generic.h>.
9346 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9347 (sysdep_headers): Add bits/mman-map-flags-generic.h.
9348 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9349 <bits/mman-map-flags-generic.h>.
9350 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9351 macros defined in <bits/mman-map-flags-generic.h>.
9352 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9353 <bits/mman-map-flags-generic.h>.
9354 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9355 defined in <bits/mman-map-flags-generic.h>.
9356
9357 2018-09-26 Andreas Schwab <schwab@suse.de>
9358
9359 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9360 output.
9361
9362 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9363 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9364 Fangrui Song <maskray@google.com>
9365
9366 [BZ #20480]
9367 * config.make.in (have-textrel_ifunc): New define.
9368 * configure.ac: Add check if linker supports textrel relocation with
9369 ifunc.
9370 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9371 tst-ifunc-textrel.
9372 (CFLAGS-tst-ifunc-textrel.c): New rule.
9373 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9374 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9375 * elf/tst-ifunc-textrel.c: New file.
9376
9377 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9378
9379 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9380 <bits/procfs-prregset.h>.
9381 (prgregset_t): Define using __prgregset_t.
9382 (prfpregset_t): Define using __prfpregset_t.
9383 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9384 (sysdep_headers): Add bits/procfs-prregset.h.
9385 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9386 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9387 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9388 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9389
9390 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9391 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9392 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9393 pr_uid and pr_gid.
9394 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9395 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9396 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9397 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9398 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9399 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9400 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9401 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9402 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9403 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9404 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9405 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9406 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9407 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9408 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9409 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9410 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9411 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9412 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9413 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9414 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9415 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9416 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9417 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9418
9419 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9420 AArch64 version. Include <bits/procfs.h>.
9421 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9422 (sysdep_headers): Add bits/procfs.h.
9423 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9424 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9425 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9426 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9427 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9428 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9429 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9430 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9431 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9432 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9433 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9434 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9435 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9436 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9437 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9438 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9439 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9440
9441 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9442
9443 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9444 Use libsupport.
9445
9446 2018-09-25 Arjun Shankar <arjun@redhat.com>
9447
9448 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9449 (__gconv_max_path_elem_len): Likewise.
9450 (__gconv_nmodules): Likewise.
9451 (__gconv_get_path): Likewise.
9452 (path_elem): Move to ...
9453 * iconv/gconv_conf.c: ... here.
9454 (__gconv_get_path): Mark function static.
9455 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9456 * iconv/gconv_open.c: ... here.
9457
9458 2018-09-24 Andreas Schwab <schwab@suse.de>
9459
9460 * scripts/haveversions.awk: New file.
9461 * Makerules ($(common-objpfx)Versions.def)
9462 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9463 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9464 Move rules ...
9465 * Makeconfig ($(common-objpfx)Versions.def)
9466 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9467 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9468 ... here.
9469 ($(common-objpfx)Versions.mk): New rule. Include it.
9470 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9471 Emit error if build-obsolete-nsl = yes.
9472 * manual/install.texi (Configuring and compiling): Describe
9473 --enable-obsolete-nsl as unavaiable after version 2.28.
9474 * INSTALL: Regenerate.
9475
9476 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9477
9478 * NEWS: Add note about new TLE support on powerpc64le.
9479 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9480 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9481 __ununsed1.
9482 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9483 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9484 * sysdeps/powerpc/powerpc32/sysdep.h,
9485 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9486 ABORT_TRANSACTION): Remove macros.
9487 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9488 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9489 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9491 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9492 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9493 usage.
9494 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9495
9496 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9497
9498 [BZ #10425]
9499 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9500 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9501 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9502 which is the same as in it_IT.
9503 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9504 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9505
9506 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9507
9508 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9509 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9510 using MATH_REDIRECT.
9511 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9512 header inclusion.
9513 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9514 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9515 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9516 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9517 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9518 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9523 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9524 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9525 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9526 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9527 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9528 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9529 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9530 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9531 (ceil): Redirect to __ceil.
9532 (floor): Redirect to __floor.
9533 (trunc): Redirect to __trunc.
9534 (__truncl): Call trunc instead of __trunc.
9535 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9536 Remove macro.
9537 [_ARCH_PWR5X] (__truncf): Likewise.
9538 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9539 trunc functions instead of __trunc variants.
9540 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9541 Likewise.
9542 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9543 Likewise.
9544 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9545 Likewise.
9546 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9547 Likewise.
9548
9549 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9550 [__i586__ || __pentium__].
9551 [__i486__]: Handle explicitly.
9552 (HAS_CPUID): Define to 1 if above macros are undefined.
9553 (HAS_I586): Likewise.
9554 (HAS_I686): Likewise.
9555
9556 2018-09-20 Florian Weimer <fweimer@redhat.com>
9557
9558 * misc/tst-gethostid.c: New file.
9559 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9560 (tst-gethostid): Link with -ldl.
9561
9562 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9563
9564 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9565 value from gethostbyname_r.
9566
9567 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9568
9569 * stdlib/tst-setcontext9.c (f1): Rename to...
9570 (f1a): ... this.
9571 (f1b): New function implementing lower half of f1 in alternate stack.
9572
9573 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9574
9575 Fix mktime localtime offset confusion
9576 [BZ #23603]
9577 * include/time.h (__mktime_internal): The localtime offset is now
9578 of type long int instead of time_t. This is the longstanding type
9579 in glibc, and it is more than enough to represent difference
9580 between localtime and gmtime even if it is 32 bits and time_t is
9581 64. Changing it now will let us avoid an unnecessary change when
9582 time_t is widened to 64 bits on 32-bit platforms.
9583 * time/mktime-internal.h (mktime_offset_t): Now long int.
9584
9585 Merge mktime, timegm from upstream Gnulib
9586 [BZ #23603][BZ #16346]
9587 This fixes some obscure problems with integer overflow.
9588 Although it looks scary, it is almost all a byte-for-byte copy
9589 from Gnulib, and the Gnulib code has been tested reasonably well.
9590 * include/intprops.h: New file, copied from Gnulib.
9591 * include/verify.h, time/mktime-internal.h:
9592 New tiny files, simplified from Gnulib.
9593 * time/mktime.c: Copy from Gnulib. This has the following changes:
9594 Do not include config.h if DEBUG_MKTIME is nonzero.
9595 Include stdbool.h, intprops.h, verify.h.
9596 Include string.h only if needed.
9597 Include stdlib.h on MS-Windows.
9598 Include mktime-internal.h.
9599 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9600 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9601 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9602 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9603 simplify later conditionals; default the others to zero. Use
9604 these conditionals to express only the code needed on the current
9605 platform. In uses of these conditionals, explicitly spell out how
9606 _LIBC affects things, so it’s easier to review from a glibc
9607 viewpoint.
9608 (WRAPV): Remove; no longer needed now that we have
9609 systematic overflow checking.
9610 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9611 compartmentalize tzset issues. Move system-dependent tzsettish
9612 code here from mktime.
9613 (verify): Remove; now done by verify.h. All uses changed.
9614 (long_int): Use a more-conservative definition, to avoid
9615 integer overflow.
9616 (SHR): Remove, replacing with ...
9617 (shr): New function, which means we needn’t worry about side
9618 effects in args, and conversion analysis is simpler.
9619 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9620 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9621 (time_t_avg, time_t_add_ok): Remove.
9622 (mktime_min, mktime_max): New constants.
9623 (leapyear, isdst_differ): Use bool for booleans.
9624 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9625 Use long_int, not time_t, for mktime differences.
9626 (long_int_avg): New function, replacing time_t_avg.
9627 INT_ADD_WRAPV replaces time_t_add_ok.
9628 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9629 All uses changed.
9630 (convert_time): New function.
9631 (ranged_convert): Use it.
9632 (__mktime_internal): Last arg now points to mktime_offset_t, not
9633 time_t. All uses changed. This is a no-op on glibc, where
9634 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9635 offset guess. Directly check for integer overflow instead of
9636 using a heuristic that works only 99.9...% of the time.
9637 Access *OFFSET only once, to avoid an unlikely race if the
9638 compiler delays a load and if this cascades into a signed integer
9639 overflow.
9640 (mktime): Move tzsettish code to my_tzset, and move
9641 localtime_offset to within mktime so that it doesn’t
9642 need a separate ifdef.
9643 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9644 instead of localtime.
9645 * time/timegm.c: Copy from Gnulib. This has the following changes:
9646 Include mktime-internal.h.
9647 [!_LIBC]: Include config.h and time.h. Do not include
9648 timegm.h or time_r.h. Make __mktime_internal a macro,
9649 and include mktime-internal.h to get its declaration.
9650 (timegm): Temporary is now mktime_offset_t, not time_t.
9651 This affects only Gnulib.
9652
9653 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9654
9655 [BZ #23637]
9656 * string/test-strstr.c (pr23637): New function.
9657 (test_main): Add tests with longer needles.
9658 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9659 * string/strstr.c (AVAILABLE): Likewise.
9660
9661 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9662
9663 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9664
9665 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9666
9667 * NEWS: Mention pow improvements.
9668 * math/Makefile (type-double-routines): Add e_pow_log_data.
9669 * sysdeps/generic/math_private.h (__exp1): Remove.
9670 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9671 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9672 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9673 contraction.
9674 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9675 (exp_inline): Remove.
9676 (__ieee754_exp): Only single double input is handled.
9677 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9678 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9679 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9680 (__pow_log_data): Define.
9681 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9682 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9683 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9684 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9685 contraction.
9686 (CFLAGS-e_pow-fma4.c): Likewise.
9687
9688 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9689
9690 Simplify tzfile fstat failure code
9691 [BZ #21716]
9692 * time/tzfile.c (__tzfile_read): Simplify slightly.
9693
9694 Fix tzfile low-memory assertion failure
9695 [BZ #21716]
9696 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9697 when registering time zone abbreviations.
9698
9699 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9700
9701 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9702 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9703 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9704 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9705 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9706 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9707 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9708 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9709 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9710
9711 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9712 __ceil.
9713 (__ceill): Call ceil instead of __ceil.
9714 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9715 __floor.
9716 (__floorl): Call floor instead of __floor.
9717
9718 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9719
9720 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9721 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9722 using MATH_REDIRECT.
9723 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9724 header inclusion.
9725 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9726 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9727 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9728 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9729 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9730 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9731 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9732 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9734 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9736 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9737 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9738 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9739 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9740 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9741 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9742 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9743 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9744 Remove macro.
9745 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9746 functions instead of __ceil variants.
9747 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9748 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9749 Likewise.
9750 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9751 Likewise.
9752 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9753 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9754 Likewise.
9755 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9756 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9757
9758 [BZ #21286]
9759 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9760 constant.
9761 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9762 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9763 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9764 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9765 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9766 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9767 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9768 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9769 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9770 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9771 (ILL_BADIADDR): Remove constant.
9772 (TRAP_BRANCH): Likewise.
9773 (TRAP_HWBKPT): Likewise.
9774
9775 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9776
9777 [BZ #23656]
9778 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9779 Remove [_MIPS_SIM = _ABIN32] conditional case.
9780 (struct elf_prpsinfo): Likewise.
9781
9782 [BZ #23649]
9783 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9784 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9785 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9786 Likewise.
9787 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9788 elf_prpsinfo): Likewise.
9789 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9790 elf_prpsinfo): Likewise.
9791 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9792 Likewise.
9793
9794 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9795 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9796 using MATH_REDIRECT.
9797 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9798 header inclusion.
9799 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9800 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9801 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9802 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9803 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9804 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9805 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9806 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9807 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9808 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9809 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9810 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9811 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9812 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9813 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9814 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9815 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9816 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9817 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9818 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9820 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9821 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9822 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9823 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9824 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9825 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9826 __rint variants.
9827 * math/e_scalbf.c (invalid_fn): Likewise.
9828 * math/e_scalbl.c (invalid_fn): Likewise.
9829 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9830 Likewise.
9831 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9832 Likewise.
9833 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9834 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9835 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9836 Likewise.
9837 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9838 Likewise.
9839 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9840 Likewise.
9841 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9842 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9843
9844 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9845 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9846 New macro.
9847 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9848 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9849 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9850 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9851 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9852 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9853 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9854 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9855 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9856 && !NO_MATH_REDIRECT] (floor): Likewise.
9857 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9858 header inclusion.
9859 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9860 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9861 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9862 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9863 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9864 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9865 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9866 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9868 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9871 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9872 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9873 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9874 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9875 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9876 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9877 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9878 Remove macro.
9879 [_ARCH_PWR5X] (__floorf): Likewise.
9880 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9881 inline function.
9882 [__SSE4_1__] (__floorf): Likewise.
9883 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9884 instead of __floor variants.
9885 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9886 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9887 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9888 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9889 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9890 * math/w_tgamma_compat.c (__tgamma): Likewise.
9891 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9892 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9893 * math/w_tgammal_compat.c (__tgammal): Likewise.
9894 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9895 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9896 Likewise.
9897 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9898 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9899 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9900 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9901 Likewise.
9902 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9903 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9904 Likewise.
9905 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9906 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9907 Likewise.
9908 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9909 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9910 Likewise.
9911 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9912 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9913 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9914 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9915 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9916 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9917
9918 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9919
9920 * elf/Makefile (modules-names-tests): New variable.
9921
9922 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9923
9924 * NEWS: Mention log2 improvements.
9925 * math/Makefile (type-double-routines): Add e_log2_data.
9926 * sysdeps/i386/fpu/e_log2_data.c: New file.
9927 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9928 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9929 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9930 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9931 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9932 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9933
9934 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9935
9936 * NEWS: Mention log improvement.
9937 * math/Makefile (type-double-routines): Add e_log_data.
9938 * sysdeps/i386/fpu/e_log_data.c: New file.
9939 * sysdeps/ia64/fpu/e_log_data.c: New file.
9940 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9941 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9942 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9943 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9944 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9945 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9946
9947 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9948 Xuepeng Guo <xuepeng.guo@intel.com>
9949
9950 [BZ #23606]
9951 * sysdeps/i386/start.S: Include <sysdep.h>
9952 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9953 enabled. Add cfi_undefined (eip).
9954
9955 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9956
9957 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9958 (MOVQ): Likewise.
9959 (EXTRACT_WORDS64): Likewise.
9960 (INSERT_WORDS64): Likewise.
9961 (GET_FLOAT_WORD): Likewise.
9962 (SET_FLOAT_WORD): Likewise.
9963
9964 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9965 argument.
9966 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9967 build, but not for second build if --full-gcc. Use
9968 --enable-languages=all for second build if --full-gcc.
9969 (get_parser): Add --full-gcc option.
9970 (main): Update call to Context.
9971
9972 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9973
9974 [BZ #10797]
9975 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9976 Single Quotation Mark).
9977 (thousands_sep): Likewise.
9978 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9979 * localedata/locales/it_IT (thousands_sep): Use ".".
9980 (grouping): Use "3;3".
9981
9982 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9983
9984 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9985 x86_64 and i686 configs using --enable-obsolete-rpc
9986 --enable-obsolete-nsl.
9987
9988 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9989
9990 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9991
9992 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9993
9994 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9995 Increment size of new_argv by one.
9996
9997 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9998
9999 [BZ #17426]
10000 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
10001 * localedata/locales/ar_IN (d_fmt): Likewise.
10002 * localedata/locales/bhb_IN (d_fmt): Likewise.
10003 * localedata/locales/bho_IN (d_fmt): Likewise.
10004 * localedata/locales/bn_BD (d_fmt): Likewise.
10005 * localedata/locales/bn_IN (d_fmt): Likewise.
10006 * localedata/locales/doi_IN (d_fmt): Likewise.
10007 * localedata/locales/gu_IN (d_fmt): Likewise.
10008 * localedata/locales/hi_IN (d_fmt): Likewise.
10009 * localedata/locales/hne_IN (d_fmt): Likewise.
10010 * localedata/locales/kn_IN (d_fmt): Likewise.
10011 * localedata/locales/mag_IN (d_fmt): Likewise.
10012 * localedata/locales/mai_IN (d_fmt): Likewise.
10013 * localedata/locales/mjw_IN (d_fmt): Likewise.
10014 * localedata/locales/ml_IN (d_fmt): Likewise.
10015 * localedata/locales/mni_IN (d_fmt): Likewise.
10016 * localedata/locales/mr_IN (d_fmt): Likewise.
10017 * localedata/locales/pa_IN (d_fmt): Likewise.
10018 * localedata/locales/raj_IN (d_fmt): Likewise.
10019 * localedata/locales/sat_IN (d_fmt): Likewise.
10020 * localedata/locales/sd_IN (d_fmt): Likewise.
10021 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
10022 * localedata/locales/ta_IN (d_fmt): Likewise.
10023 * localedata/locales/ta_LK (d_fmt): Likewise.
10024 * localedata/locales/tcy_IN (d_fmt): Likewise.
10025 * localedata/locales/ur_IN (d_fmt): Likewise.
10026
10027 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
10028 * localedata/locales/ks_IN (d_fmt): Likewise.
10029 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
10030
10031 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
10032 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
10033 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
10034 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
10035
10036 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
10037
10038 * NEWS: Mention exp and exp2 improvements.
10039 * math/Makefile (libm-support): Remove t_exp.
10040 (type-double-routines): Add math_err and e_exp_data.
10041 * sysdeps/aarch64/libm-test-ulps: Update.
10042 * sysdeps/arm/libm-test-ulps: Update.
10043 * sysdeps/i386/fpu/e_exp_data.c: New file.
10044 * sysdeps/i386/fpu/math_err.c: New file.
10045 * sysdeps/i386/fpu/t_exp.c: Remove.
10046 * sysdeps/ia64/fpu/e_exp_data.c: New file.
10047 * sysdeps/ia64/fpu/math_err.c: New file.
10048 * sysdeps/ia64/fpu/t_exp.c: Remove.
10049 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
10050 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
10051 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
10052 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
10053 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
10054 * sysdeps/ieee754/dbl-64/math_config.h: New file.
10055 * sysdeps/ieee754/dbl-64/math_err.c: New file.
10056 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
10057 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
10058 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
10059 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
10060 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
10061 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
10062 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
10063 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10064 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10065
10066 2018-09-05 Joseph Myers <joseph@codesourcery.com>
10067
10068 * sysdeps/alpha/fpu/math_private.h: Remove.
10069
10070 * sysdeps/generic/math_private.h
10071 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
10072 Move this inline function ....
10073 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
10074 * include/math.h [!_ISOMAC]: To here....
10075
10076 2018-09-04 Joseph Myers <joseph@codesourcery.com>
10077
10078 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
10079 code ....
10080 [!FE_HAVE_ROUNDING_MODES]: And this code ....
10081 * include/fenv.h [!_ISOMAC]: ... to here.
10082 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
10083 (feraiseexcept): Likewise.
10084 * math/fromfp.h: Do not include <fenv_private.h>.
10085 * math/s_cexp_template.c: Likewise.
10086 * math/s_csin_template.c: Likewise.
10087 * math/s_csinh_template.c: Likewise.
10088 * math/s_ctan_template.c: Likewise.
10089 * math/s_ctanh_template.c: Likewise.
10090 * math/s_iseqsig_template.c: Likewise.
10091 * math/w_acos_compat.c: Likewise.
10092 * math/w_acosf_compat.c: Likewise.
10093 * math/w_acosl_compat.c: Likewise.
10094 * math/w_asin_compat.c: Likewise.
10095 * math/w_asinf_compat.c: Likewise.
10096 * math/w_asinl_compat.c: Likewise.
10097 * math/w_j0_compat.c: Likewise.
10098 * math/w_j0f_compat.c: Likewise.
10099 * math/w_j0l_compat.c: Likewise.
10100 * math/w_j1_compat.c: Likewise.
10101 * math/w_j1f_compat.c: Likewise.
10102 * math/w_j1l_compat.c: Likewise.
10103 * math/w_jn_compat.c: Likewise.
10104 * math/w_jnf_compat.c: Likewise.
10105 * math/w_log10_compat.c: Likewise.
10106 * math/w_log10f_compat.c: Likewise.
10107 * math/w_log10l_compat.c: Likewise.
10108 * math/w_log2_compat.c: Likewise.
10109 * math/w_log2f_compat.c: Likewise.
10110 * math/w_log2l_compat.c: Likewise.
10111 * math/w_log_compat.c: Likewise.
10112 * math/w_logf_compat.c: Likewise.
10113 * math/w_logl_compat.c: Likewise.
10114 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10115 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10116 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10117 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10118 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10119 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10120 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10121 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10122 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10123 * sysdeps/ieee754/k_standardl.c: Likewise.
10124 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10125 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10126 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10127 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10128 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10129 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10130 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10131 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10132 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10133 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10134 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10135 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10136 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10137 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10138 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10139 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10140 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10141 * math/w_ilogb_template.c: Include <fenv.h> instead of
10142 <fenv_private.h>.
10143 * math/w_llogb_template.c: Likewise.
10144 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10145 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10146
10147 2018-09-03 Joseph Myers <joseph@codesourcery.com>
10148
10149 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10150 * math/fromfp.h: Include <fenv_private.h>.
10151 * math/math-narrow.h: Likewise.
10152 * math/s_cexp_template.c: Likewise.
10153 * math/s_csin_template.c: Likewise.
10154 * math/s_csinh_template.c: Likewise.
10155 * math/s_ctan_template.c: Likewise.
10156 * math/s_ctanh_template.c: Likewise.
10157 * math/s_iseqsig_template.c: Likewise.
10158 * math/w_acos_compat.c: Likewise.
10159 * math/w_acosf_compat.c: Likewise.
10160 * math/w_acosl_compat.c: Likewise.
10161 * math/w_asin_compat.c: Likewise.
10162 * math/w_asinf_compat.c: Likewise.
10163 * math/w_asinl_compat.c: Likewise.
10164 * math/w_ilogb_template.c: Likewise.
10165 * math/w_j0_compat.c: Likewise.
10166 * math/w_j0f_compat.c: Likewise.
10167 * math/w_j0l_compat.c: Likewise.
10168 * math/w_j1_compat.c: Likewise.
10169 * math/w_j1f_compat.c: Likewise.
10170 * math/w_j1l_compat.c: Likewise.
10171 * math/w_jn_compat.c: Likewise.
10172 * math/w_jnf_compat.c: Likewise.
10173 * math/w_llogb_template.c: Likewise.
10174 * math/w_log10_compat.c: Likewise.
10175 * math/w_log10f_compat.c: Likewise.
10176 * math/w_log10l_compat.c: Likewise.
10177 * math/w_log2_compat.c: Likewise.
10178 * math/w_log2f_compat.c: Likewise.
10179 * math/w_log2l_compat.c: Likewise.
10180 * math/w_log_compat.c: Likewise.
10181 * math/w_logf_compat.c: Likewise.
10182 * math/w_logl_compat.c: Likewise.
10183 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10184 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10185 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10186 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10187 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10188 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10189 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10190 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10191 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10192 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10193 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10194 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10195 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10196 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10197 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10198 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10199 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10200 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10201 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10202 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10203 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10204 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10205 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10206 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10207 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10208 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10209 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10210 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10211 * sysdeps/ieee754/float128/float128_private.h: Likewise.
10212 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10213 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10214 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10215 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10216 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10217 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10218 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10219 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10220 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10221 * sysdeps/ieee754/k_standardl.c: Likewise.
10222 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10223 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10224 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10225 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10226 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10227 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10228 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10229 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10230 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10231 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10232 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10233 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10234 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10235 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10236 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10237 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10238 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10239 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10240 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10241 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10242 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10243 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10244 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10245 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10246 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10247 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10248 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10249 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10250 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10251 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10252 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10253 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10254 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10255 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10256 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10257 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10258 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10259 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10260 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10261 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10262 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10263 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10264 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10265 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10266 * sysdeps/riscv/rvd/s_finite.c: Likewise.
10267 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10268 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10269 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10270 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10271 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10272 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10273 * sysdeps/riscv/rvf/fegetround.c: Likewise.
10274 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10275 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10276 * sysdeps/riscv/rvf/fesetround.c: Likewise.
10277 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10278 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10279 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10280 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10281 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10282 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10283 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10284 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10285 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10286 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10287 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10288 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10289 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10290 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10291 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10292 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10293
10294 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10295
10296 [BZ #20271]
10297 * include/stdio.h (__libc_fatal): Mention newline in comment.
10298 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10299 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10300 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10301 * nss/nsswitch.c (__nss_next2): Likewise.
10302 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10303 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10304 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10305 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10306 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10307 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10308 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10309 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10310 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10311 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10312 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10313 * sysdeps/unix/sysv/linux/netlink_assert_response.c
10314 (__netlink_assert_response): Likewise.
10315
10316 2018-08-31 Joseph Myers <joseph@codesourcery.com>
10317
10318 * conform/glibcconform.py: New file.
10319 * conform/list-header-symbols.py: Likewise.
10320 * conform/list-header-symbols.pl: Remove.
10321 * conform/Makefile (tests-special): Only add linknamespace tests
10322 if [PYTHON].
10323 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10324
10325 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
10326
10327 [BZ #23597]
10328 * support/Makefile (libsupport-routines): Add
10329 support_copy_file_range and xcopy_file_range.
10330 * support/support.h: Include <sys/types.h>.
10331 (support_copy_file_range): New prototype.
10332 * support/support_copy_file_range.c: New file. Copied and
10333 modified from io/copy_file_range-compat.c.
10334 * support/test-container.c (copy_one_file): Call xcopy_file_rang
10335 instead of copy_file_range.
10336 * support/xcopy_file_range.c: New file.
10337 * support/xunistd.h (xcopy_file_range): New prototype.
10338
10339 2018-08-30 Carlos O'Donell <carlos@redhat.com>
10340
10341 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10342 xpthread_create and xpthread_join.
10343
10344 2018-08-30 Florian Weimer <fweimer@redhat.com>
10345
10346 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10347
10348 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
10349
10350 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10351 if malloc fails.
10352
10353 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10354
10355 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10356 and minus_oflow as non-finite.
10357
10358 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10359
10360 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10361 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10362 moved to fenv_private.h except for ...
10363 (TOINT_INTRINSICS): Kept in math_private.h.
10364 (roundtoint): Likewise.
10365 (converttoint): Likewise.
10366 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10367 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10368 * sysdeps/arm/math_private.h: Remove.
10369 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10370 ....
10371 * sysdeps/generic/math_private.h: ... this file. Include
10372 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10373 Include <fenv_private.h>. Remove functions and macros moved to
10374 fenv_private.h.
10375 * sysdeps/i386/fpu/math_private.h: Remove.
10376 * sysdeps/mips/math_private.h: Move to ....
10377 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10378 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10379 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10380 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10381 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10382 * sysdeps/powerpc/fpu/math_private.h: Do not include
10383 <fenv_private.h>.
10384 * sysdeps/riscv/rvf/math_private.h: Move to ....
10385 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10386 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10387 <fenv_private.h>.
10388 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10389 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10390 * sysdeps/sparc/fpu/math_private.h: Remove.
10391 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10392 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10393 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10394 <fenv_private.h>.
10395 * sysdeps/x86_64/fpu/math_private.h: Do not include
10396 <sysdeps/i386/fpu/fenv_private.h>.
10397
10398 2018-08-28 Florian Weimer <fweimer@redhat.com>
10399
10400 [BZ #23578]
10401 * posix/tst-regcomp-truncated.c: New file.
10402 * posix/Makefile (tests): Add it.
10403 (tst-regcomp-truncated.out): Depend on generated locales.
10404
10405 2018-08-28 Florian Weimer <fweimer@redhat.com>
10406
10407 * support/test-container.c (main): Treat unshare failure with
10408 EPERM as an unsupported test.
10409
10410 2018-08-28 Florian Weimer <fweimer@redhat.com>
10411
10412 [BZ #23520]
10413 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10414 * nscd/netgroupcache.c
10415 (addgetnetgrentX): Add tofreep parameter. Do not free
10416 heap-allocated buffer.
10417 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10418 (addgetnetgrentX_ignore): New function.
10419 (addgetnetgrent): Call it.
10420 (readdgetnetgrent): Likewise.
10421
10422 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10423
10424 * string/memmem.c: Use memcmp for first match.
10425
10426 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10427
10428 [BZ #17426]
10429 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10430
10431 2018-08-27 DJ Delorie <dj@redhat.com>
10432
10433 * support/Makefile (others): Don't list programs explicitly as a
10434 dependency of "others".
10435
10436 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10437
10438 * sysdeps/generic/math-tests-trap-force.h: New file.
10439 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10440 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10441 * sysdeps/powerpc/math-tests.h: Remove file.
10442 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10443
10444 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10445 Torvald Riegel <triegel@redhat.com>
10446
10447 [BZ #23538]
10448 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10449 Update r to include the set wake-request flag if waiters are
10450 remaining after spinning.
10451
10452 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10453
10454 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10455
10456 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10457
10458 [BZ #23578]
10459 regex: fix uninitialized memory access
10460 I introduced this bug into gnulib in commit
10461 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10462 eventually it was merged into glibc. The bug was found by
10463 project-repo <bugs@feusi.co> and reported here:
10464 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10465 Diagnosis and draft fix reported by Assaf Gordon here:
10466 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10467 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10468 * posix/regex_internal.c (build_wcs_upper_buffer):
10469 Fix bug when mbrtowc returns 0.
10470
10471 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10472
10473 * po/be.po: Update translation.
10474
10475 2018-08-24 DJ Delorie <dj@delorie.com>
10476
10477 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10478 $(libunwind).
10479
10480 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10481
10482 [BZ #23400]
10483 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10484 create temporary files in source tree.
10485
10486 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10487
10488 * sysdeps/generic/math-tests-trap.h: New file.
10489 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10490 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10491 * sysdeps/aarch64/math-tests.h: Remove file.
10492 * sysdeps/arm/math-tests.h: Likewise.
10493 * sysdeps/riscv/math-tests.h: Likewise.
10494 * sysdeps/aarch64/math-tests-trap.h: New file.
10495 * sysdeps/arm/math-tests-trap.h: Likewise.
10496 * sysdeps/riscv/math-tests-trap.h: Likewise.
10497
10498 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10499
10500 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10501 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10502 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10503 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10504 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10505 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10506 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10507 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10508 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10509 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10510 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10511 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10512 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10513 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10514 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10515 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10516 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10517 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10518
10519 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10520
10521 * sysdeps/generic/math-tests-exceptions.h: New file.
10522 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10523 (EXCEPTION_TESTS_float): Do not define here.
10524 (EXCEPTION_TESTS_double): Likewise.
10525 (EXCEPTION_TESTS_long_double): Likewise.
10526 (EXCEPTION_TESTS_float128): Likewise.
10527 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10528 Likewise.
10529 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10530 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10531 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10532 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10533 * sysdeps/mips/math-tests.h: Likewise.
10534 * sysdeps/nios2/math-tests.h: Likewise.
10535 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10536 (EXCEPTION_TESTS_float): Do not define here.
10537 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10538 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10539 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10540
10541 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10542
10543 * NEWS: Move optimized sinf entry to 2.29.
10544
10545 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10546
10547 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10548
10549 2018-08-22 DJ Delorie <dj@redhat.com>
10550
10551 * Makefile (testroot.pristine): New rules to initialize the
10552 test-in-container "testroot".
10553 * Makerules (all-testsuite): Add tests-container.
10554 * Rules (tests-expected): Add tests-container.
10555 (binaries-all-tests): Likewise.
10556 (tests-container): New, run these tests in the testroot container.
10557 * support/Makefile (others): Add *-container, support_paths.c,
10558 xmkdirp, and links-dso-program.
10559 * support/links-dso-program-c.c: New.
10560 * support/links-dso-program.cc: New.
10561 * support/test-container.c: New.
10562 * support/shell-container.c: New.
10563 * support/echo-container.c: New.
10564 * support/true-container.c: New.
10565 * support/xmkdirp.c: New.
10566 * support/xsymlink.c: New.
10567 * support/support_paths.c: New.
10568 * support/support.h: Add support paths prototypes.
10569 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10570
10571 * nss/tst-nss-test3.c: Convert to test-in-container.
10572 * nss/tst-nss-test3.root/: New.
10573
10574 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10575
10576 regex: port Gnulib code to z/OS POSIX environment
10577 Problem reported by Arnold Robbins in:
10578 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10579 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10580 Undef.
10581
10582 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10583
10584 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10585 (ROUNDING_TESTS_double): Remove.
10586 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10587 (ROUNDING_TESTS_double): Remove.
10588 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10589 (ROUNDING_TESTS_double): Remove.
10590 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10591 (ROUNDING_TESTS_float): Remove.
10592 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10593 (ROUNDING_TESTS_float): Remove.
10594 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10595 (ROUNDING_TESTS_float): Remove.
10596 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10597 !TEST_MATHVEC here.
10598 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10599 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10600
10601 * sysdeps/generic/math-tests-rounding.h: New file.
10602 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10603 (ROUNDING_TESTS_float): Do not define here.
10604 (ROUNDING_TESTS_double): Likewise.
10605 (ROUNDING_TESTS_long_double): Likewise.
10606 (ROUNDING_TESTS_float128): Likewise.
10607 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10608 (ROUNDING_TESTS_double): Undefine before defining.
10609 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10610 (ROUNDING_TESTS_double): Undefine before defining.
10611 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10612 (ROUNDING_TESTS_double): Undefine before defining.
10613 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10614 (ROUNDING_TESTS_float): Undefine before defining.
10615 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10616 (ROUNDING_TESTS_float): Undefine before defining.
10617 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10618 (ROUNDING_TESTS_float): Undefine before defining.
10619 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10620 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10621 not define here.
10622 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10623 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10624 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10625 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10626 (ROUNDING_TESTS_float): Do not define here.
10627 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10628 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10629 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10630 (ROUNDING_TESTS_float): Likewise.
10631 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10632 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10633 * sysdeps/mips/math-tests.h [__mips_soft_float]
10634 (ROUNDING_TESTS_float): Likewise.
10635 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10636 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10637 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10638 (ROUNDING_TESTS_double): Likewise.
10639 (ROUNDING_TESTS_long_double): Likewise.
10640
10641 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10642
10643 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10644 (PF_XDP): New macro.
10645 (AF_XDP): New macro.
10646 (SOL_XDP): New macro.
10647
10648 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10649
10650 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10651 (TCP_INQ): Likewise.
10652 (TCP_CM_INQ): Likewise.
10653 (TCP_REPAIR_ON): Likewise.
10654 (TCP_REPAIR_OFF): Likewise.
10655 (TCP_REPAIR_OFF_NO_WP): Likewise.
10656 (struct tcp_zerocopy_receive): New type.
10657
10658 2018-08-21 Florian Weimer <fweimer@redhat.com>
10659
10660 * support/support.h (support_descriptor_supports_holes): Declare.
10661 * support/Makefile (libsupport-routines): Add
10662 support_descriptor_supports_holes.
10663 * support/support_descriptor_supports_holes.c: New file.
10664 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10665 and stop testing if holes are not supported.
10666 * io/test-lfs.c (do_prepare): Likewise.
10667 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10668 Likewise.
10669 * timezone/tst-tzset.c (create_tz_file): Likewise.
10670 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10671 variable.
10672 (do_prepare): Set it.
10673 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10674
10675 2018-08-21 Florian Weimer <fweimer@redhat.com>
10676
10677 [BZ #17248]
10678 * Makeconfig (+cflags): Do not sort (and deduplicate).
10679
10680 2018-08-21 Florian Weimer <fweimer@redhat.com>
10681
10682 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10683 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10684
10685 2018-08-20 Florian Weimer <fweimer@redhat.com>
10686
10687 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10688 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10689
10690 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10691
10692 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10693 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10694 and ssi_arch members.
10695
10696 * elf/elf.c (NT_VMCOREDD): New macro.
10697 (AT_MINSIGSTKSZ): Likewise.
10698
10699 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10700
10701 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10702 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10703 s_cosf-ppc64 and s_cosf-power8.
10704 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10705 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10706 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10707 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10712 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10714 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10715 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10716
10717 2018-08-17 Florian Weimer <fweimer@redhat.com>
10718
10719 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10720
10721 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10722
10723 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10724
10725 2018-08-16 Florian Weimer <fweimer@redhat.com>
10726
10727 * configure.ac: Add --with-nonshared-cflags option.
10728 * config.make.in (extra-nonshared-cflags): Set variable.
10729 * Makeconfig (CFLAGS-.oS): Use it.
10730 * manual/install.texi (Configuring and compiling): Document
10731 --with-nonshared-cflags.
10732 * configure: Regenerate.
10733 * INSTALL: Likewise.
10734
10735 2018-08-16 Florian Weimer <fweimer@redhat.com>
10736
10737 * Makeconfig (ASFLAGS): Always append required assembler flags.
10738
10739 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10740
10741 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10742 (malloc_consolidate): Likewise.
10743
10744 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10745
10746 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10747
10748 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10749
10750 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10751 every strlen call.
10752
10753 * benchtests/bench-strlen.c: Print performance numbers in json.
10754
10755 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10756
10757 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10758 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10759 only for little endian.
10760 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10761 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10762 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10763 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10764 Add check for little endian.
10765 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10766 (__strcmp_power9): Add check for little endian.
10767 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10768 Add check for little endian.
10769 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10770 (__strncmp_power9): Add check for little endian.
10771 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10772 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10773 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10774 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10775 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10776
10777 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10778
10779 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10780 [!STRLEN](STRLEN): Set to __strlen.
10781 * sysdeps/aarch64/multiarch/strlen.c: New file.
10782 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10783 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10784 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10785 (__libc_ifunc_impl_list): Add strlen.
10786 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10787 strlen_generic and strlen_asimd.
10788
10789 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10790
10791 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10792 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10793 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10794
10795 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10796
10797 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10798
10799 2018-08-14 Florian Weimer <fweimer@redhat.com>
10800
10801 [BZ #23519]
10802 * include/stdio.h (__vfxprintf): Declare.
10803 * stdio-common/fxprintf.c (__vfxprintf): New function.
10804 (__fxprintf): Call it.
10805 * misc/err.c (convert_and_print): Remove function.
10806 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10807 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10808 * misc/Makefile (tests): Add tst-warn-wide.
10809 * misc/tst-warn-wide.c: New file.
10810
10811 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10812 Szabolcs Nagy <szabolcs.nagy@arm.com>
10813
10814 * NEWS: Mention sinf, cosf, sincosf.
10815 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10816 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10817 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10818 constants rather than including generic sincosf.h.
10819 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10820 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10821 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10822 (reduced_cos): Remove.
10823 (sinf_poly): New function.
10824 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10825
10826 2018-08-14 Florian Weimer <fweimer@redhat.com>
10827
10828 [BZ #23521]
10829 [BZ #23522]
10830 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10831 processing, bail out if no room, and close the stream before
10832 returning ERANGE.
10833 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10834 (tst-nss-files-alias-leak): Link with libdl.
10835 (tst-nss-files-alias-leak.out): Depend on nss_files.
10836
10837 * nss/tst-nss-files-alias-leak.c: New file.
10838
10839 2018-08-14 Florian Weimer <fweimer@redhat.com>
10840
10841 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10842 server_user, stat_user.
10843
10844 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10845
10846 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10847 version to 4.18.
10848 (io_pgetevents): New syscall.
10849 (rseq): Likewise.
10850
10851 * manual/install.texi (Configuring and compiling): Do not list
10852 tools used for testing pretty printers here.
10853 (Tools for Compilation): List Python, PExpect and GDB here.
10854 Update descriptions of uses of Perl and Python.
10855 * INSTALL: Regenerate.
10856
10857 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10858 version to 4.18.
10859
10860 2018-08-13 Florian Weimer <fweimer@redhat.com>
10861
10862 * misc/error.c (error): Add missing va_end call.
10863 (error_at_line): Likewise.
10864
10865 2018-08-13 Florian Weimer <fweimer@redhat.com>
10866
10867 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10868
10869 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10870
10871 * benchtests/scripts/benchout.schema.json (properties): Add
10872 new properties.
10873
10874 * benchtests/bench-skeleton.c (main): Add duration and
10875 iterations attributes.
10876
10877 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10878
10879 regex: Gnulib unibyte RRI uses bytes not chars
10880 Adjust the non-glibc code to agree with what Gawk needs for
10881 rational range interpretation (RRI) for regular expression ranges.
10882 In unibyte locales, Gawk wants ranges to use the underlying byte
10883 rather than the character code point. This change does not affect
10884 glibc proper.
10885 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10886 In unibyte locales, use the byte value rather than
10887 running it through btowc.
10888
10889 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10890
10891 * sysdeps/generic/math-tests-snan.h: New file.
10892 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10893 (SNAN_TESTS_float): Do not define here.
10894 (SNAN_TESTS_double): Likewise.
10895 (SNAN_TESTS_long_double): Likewise.
10896 (SNAN_TESTS_float128): Likewise.
10897 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10898 * sysdeps/i386/fpu/math-tests.h: Remove file.
10899 * sysdeps/ia64/math-tests-snan.h: New file.
10900 * sysdeps/ia64/math-tests.h: Remove file.
10901 * sysdeps/x86/math-tests.h: Likewise.
10902 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10903
10904 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10905 Szabolcs Nagy <szabolcs.nagy@arm.com>
10906
10907 * math/Makefile: Add s_sincosf_data.c.
10908 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10909 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10910 (sincosf_poly): Likewise.
10911 (reduce_small): Likewise.
10912 (reduce_large): Likewise.
10913 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10914 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10915 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10916 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10917
10918 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10919 Szabolcs Nagy <szabolcs.nagy@arm.com>
10920
10921 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10922 (converttoint): Use lround.
10923 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10924 document the semantics when TOINT_INTRINSICS is set.
10925 (converttoint): Likewise.
10926 (TOINT_RINT): Remove.
10927 (TOINT_SHIFT): Remove.
10928 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10929 path.
10930
10931 2018-08-10 Florian Weimer <fweimer@redhat.com>
10932
10933 [BZ #23497]
10934 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10935 function.
10936 (__old_getdents64): Use getdents64. Convert entries without
10937 moving them.
10938 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10939 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10940 tst-readdir64-compat.
10941
10942 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10943
10944 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10945 Fix unwind.
10946
10947 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10948
10949 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10950 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10951 code to s390x-mcount.h and #include it.
10952 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10953 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10954 (__fentry__): Add.
10955
10956 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10957
10958 * stdlib/Versions: Remove __fentry__.
10959 * sysdeps/i386/Versions: Add __fentry__.
10960 * sysdeps/x86_64/Versions: Add __fentry__.
10961
10962 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10963
10964 * sysdeps/s390/Makefile: Register the new tests.
10965 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10966 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10967 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10968 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10969 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10970 * sysdeps/s390/tst-dl-runtime.c: New file.
10971
10972 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10973
10974 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10975 Do not clobber R0.
10976
10977 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10978
10979 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10980 Do not clobber R0.
10981
10982 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10983
10984 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10985 Do not clobber R0.
10986
10987 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10988
10989 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10990 Do not clobber R0.
10991
10992 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10993
10994 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10995 Use symbolic offsets for stack variables.
10996
10997 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10998
10999 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
11000 Use symbolic offsets for stack variables.
11001
11002 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11003
11004 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
11005 Use symbolic offsets for stack variables.
11006
11007 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
11008
11009 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
11010 Use symbolic offsets for stack variables.
11011
11012 2018-08-09 Joseph Myers <joseph@codesourcery.com>
11013
11014 * math/gen-libm-test.py: New file.
11015 * math/gen-libm-test.pl: Remove.
11016 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
11017 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
11018 gen-libm-test.pl.
11019 ($(libm-test-c-noauto-obj)): Likewise.
11020 ($(libm-test-c-auto-obj)): Likewise.
11021 ($(libm-test-c-narrow-obj)): Likewise.
11022 (regen-ulps): Likewise.
11023 * math/README.libm-test: Update references to gen-libm-test.pl.
11024 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
11025 referencing gen-libm-test.pl.
11026 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
11027 * math/libm-test-support.c: Likewise.
11028 * math/libm-test-support.h: Likewise.
11029 * sysdeps/generic/libm-test-ulps: Likewise.
11030
11031 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
11032
11033 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
11034 Fix value.
11035
11036 2018-08-08 Joseph Myers <joseph@codesourcery.com>
11037
11038 * math/libm-test-nextdown.inc (do_test): Move comment to ....
11039 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
11040
11041 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11042
11043 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
11044 symbols.
11045 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
11046 __pthread_setspecific): Add hidden proto.
11047 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
11048 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
11049
11050 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11051
11052 * benchtests/bench-string.h (buf1_size, buf2_size): New
11053 variables.
11054 (init_sizes): New function.
11055 (test_init): Use it.
11056 (alloc_buf, exit_error): New functions.
11057 (alloc_bufs): Use ALLOC_BUF.
11058 (realloc_bufs): Remove.
11059 * benchtests/bench-memcmp.c (do_test): Adjust.
11060 * benchtests/bench-memset-large.c (do_test): Likewise.
11061 * benchtests/bench-memset-walk.c (do_test): Likewise.
11062 * benchtests/bench-memset.c (do_test): Likewise.
11063 * benchtests/bench-strncmp.c (do_test): Likewise.
11064
11065 2018-08-06 Andreas Schwab <schwab@suse.de>
11066
11067 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
11068 of CONST_THREAD_AREA.
11069
11070 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
11071
11072 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
11073 (STATE_SAVE_MASK): Likewise.
11074 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
11075 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
11076 (STATE_SAVE_MASK): Likewise.
11077 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
11078 instead of <cpu-features.h>.
11079
11080 2018-08-03 DJ Delorie <dj@redhat.com>
11081
11082 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
11083 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
11084
11085 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
11086
11087 2018-08-03 Joseph Myers <joseph@codesourcery.com>
11088
11089 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
11090 after TEST_* calls.
11091 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
11092 * math/libm-test-logb.inc (logb_test_data): Likewise.
11093
11094 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
11095
11096 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
11097 * string/strstr.c (AVAILABLE): Likewise.
11098
11099 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11100
11101 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
11102 <init-arch.h>.
11103 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
11104 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
11105 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
11106
11107 2018-08-03 Carlos O'Donell <carlos@redhat.com>
11108
11109 * po/be.po: Update translation.
11110
11111 * po/be.po: Update translation.
11112
11113 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
11114
11115 * sysdeps/x86/cpu-features-offsets.sym
11116 (rtld_global_ro_offsetof): Removed.
11117 (CPU_FEATURES_SIZE): Likewise.
11118 (CPUID_OFFSET): Likewise.
11119 (CPUID_SIZE): Likewise.
11120 (CPUID_EAX_OFFSET): Likewise.
11121 (CPUID_EBX_OFFSET): Likewise.
11122 (CPUID_ECX_OFFSET): Likewise.
11123 (CPUID_EDX_OFFSET): Likewise.
11124 (FAMILY_OFFSET): Likewise.
11125 (MODEL_OFFSET): Likewise.
11126 (FEATURE_OFFSET): Likewise.
11127 (FEATURE_SIZ): Likewise.
11128 (COMMON_CPUID_INDEX_1): Likewise.
11129 (COMMON_CPUID_INDEX_7): Likewise.
11130 (FEATURE_INDEX_1): Likewise.
11131 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
11132
11133 2018-08-02 Carlos O'Donell <carlos@redhat.com>
11134
11135 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
11136 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
11137 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
11138 (install-locales): Depend on install-locale-archive.
11139 (install-locale-archive): Define.
11140 (install-locale-files): Define.
11141 (build-one-locale): Define macro.
11142 * manual/install.texi (Running make install): Document.
11143 * manual/INSTALL: Regenerate.
11144
11145 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
11146
11147 * benchtests/scripts/compare_strings.py: Import traceback.
11148 (parse_file): Pretty-print error.
11149
11150 * NEWS: Mention the change.
11151 * elf/dl-tunables.list: Rename tune namespace to cpu.
11152 * sysdeps/powerpc/dl-tunables.list: Likewise.
11153 * sysdeps/x86/dl-tunables.list: Likewise.
11154 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11155 cpu.name.
11156 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11157 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11158 * manual/README.tunables: Likewise.
11159 * manual/tunables.texi: Likewise.
11160 * sysdeps/powerpc/cpu-features.c: Likewise.
11161 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11162 (init_cpu_features): Likewise.
11163 * sysdeps/x86/cpu-features.c: Likewise.
11164 * sysdeps/x86/cpu-features.h: Likewise.
11165 * sysdeps/x86/cpu-tunables.c: Likewise.
11166 * sysdeps/x86_64/Makefile: Likewise.
11167 * sysdeps/x86/dl-cet.c: Likewise.
11168
11169 2018-08-02 Joseph Myers <joseph@codesourcery.com>
11170
11171 [BZ #23479]
11172 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11173 [__mips_hard_float].
11174 (FE_UNDERFLOW): Likewise.
11175 (FE_OVERFLOW): Likewise.
11176 (FE_DIVBYZERO): Likewise.
11177 (FE_INVALID): Likewise.
11178 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11179 (FE_TOWARDZERO): Define only if [__mips_hard_float].
11180 (FE_UPWARD): Likewise.
11181 (FE_DOWNWARD): Likewise.
11182 (__FE_UNDEFINED): Define if [!__mips_hard_float]
11183 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11184 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11185 [__mips_hard_float].
11186 (FP_ROUNDMODE): Likewise.
11187 (FP_RND_NEAREST): Likewise.
11188 (FP_RND_ZERO): Likewise.
11189 (FP_RND_PINF): Likewise.
11190 (FP_RND_MINF): Likewise.
11191 (FP_EX_INVALID): Likewise.
11192 (FP_EX_OVERFLOW): Likewise.
11193 (FP_EX_UNDERFLOW): Likewise.
11194 (FP_EX_DIVZERO): Likewise.
11195 (FP_EX_INEXACT): Likewise.
11196 (FP_INIT_ROUNDMODE): Likewise.
11197 * sysdeps/mips/nofpu/fesetenv.c: New file.
11198 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11199
11200 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11201
11202 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11203 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11204 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11205 conditional on [FE_UPWARD].
11206
11207 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
11208
11209 regex: fix memory leak in Gnulib
11210 Problem and fix reported by Assaf Gordon in:
11211 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11212 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11213 range_ends members too, as they are defined in 'struct
11214 re_charset_t' even if not _LIBC. This affects only Gnulib.
11215
11216 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
11217
11218 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11219 ...
11220 (get_common_indices): This.
11221 (init_cpu_features): Updated.
11222
11223 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11224
11225 * sysdeps/generic/math-tests-snan-payload.h: New file.
11226 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11227 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11228 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11229 * sysdeps/generic/math-tests.h: Include
11230 <math-tests-snan-payload.h>.
11231 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11232 * sysdeps/hppa/math-tests.h: Remove file.
11233 * sysdeps/mips/math-tests.h [!__mips_nan2008]
11234 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11235 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11236 Likewise.
11237
11238 * sysdeps/generic/math-tests-snan-cast.h: New file.
11239 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11240 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11241 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11242 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11243
11244 2018-08-01 Carlos O'Donel <carlos@redhat.com>
11245
11246 * version.h (RELEASE): Set to "development".
11247 (VERSION): Set to "2.28.9000".
11248 * NEWS (2.29): New section.
11249
11250 * version.h (RELEASE): Set to "stable".
11251 (VERSION): Set to "2.28".
11252 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11253 * NEWS: Add the list of bugs fixed in 2.28.
11254
11255 * po/ca.po: Update to latest version.
11256 * po/cs.po: Likewise
11257 * po/da.po: Likewise
11258 * po/el.po: Likewise
11259 * po/eo.po: Likewise
11260 * po/es.po: Likewise
11261 * po/fi.po: Likewise
11262 * po/fr.po: Likewise
11263 * po/gl.po: Likewise
11264 * po/hu.po: Likewise
11265 * po/ia.po: Likewise
11266 * po/id.po: Likewise
11267 * po/it.po: Likewise
11268 * po/ja.po: Likewise
11269 * po/ko.po: Likewise
11270 * po/lt.po: Likewise
11271 * po/nb.po: Likewise
11272 * po/nl.po: Likewise
11273 * po/pt_BR.po: Likewise
11274 * po/ru.po: Likewise
11275 * po/rw.po: Likewise
11276 * po/sk.po: Likewise
11277 * po/sl.po: Likewise
11278 * po/tr.po: Likewise
11279 * po/zh_CN.po: Likewise
11280 * po/zh_TW.po: Likewise
11281
11282 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11283
11284 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11285 initialization...
11286 (init): ... before initializing libpthread.
11287
11288 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11289 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11290 (__mach_setup_tls): ... new function.
11291 (mach_setup_tls): New alias.
11292 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11293 __mach_setup_thread.
11294 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11295 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11296 * mach/Versions [libc] (mach_setup_tls): Add symbol.
11297 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11298
11299 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11300
11301 * manual/install.texi: Update versions.
11302 * INSTALL: Regenerate.
11303
11304 * manual/contrib.texi (Contributors): Update contributions.
11305
11306 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11307
11308 * po/be.po: Update translations.
11309
11310 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11311
11312 * sysdeps/sh/libm-test-ulps: Update.
11313
11314 2018-07-30 Carlos O'Donell <carlos@redhat.com>
11315
11316 * po/bg.po: Update translations.
11317 * po/de.po: Likewise.
11318 * po/hr.po: Likewise.
11319 * po/pt_BR.po: Likewise.
11320 * po/sv.po: Likewise.
11321 * po/vi.po: Likewise.
11322
11323 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11324
11325 [BZ #23467]
11326 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11327 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11328 (CFLAGS-tst-cet-property-1.o): New.
11329 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11330 ($(objpfx)tst-cet-property-2): Likewise.
11331 ($(objpfx)tst-cet-property-2.out): Likewise.
11332 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11333 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11334 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11335 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11336 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11337
11338 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11339
11340 [BZ #23458]
11341 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11342
11343 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11344
11345 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11346 __sbrk): Do not set attribute_hidden.
11347 * sysdeps/mach/hurd/not-errno.h: New file.
11348 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11349 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11350
11351 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11352
11353 * po/uk.po: Update translations.
11354 * po/cs.po: Likewise.
11355 * po/pl.po: Likewise.
11356
11357 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11358
11359 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11360 parse beyond the note end.
11361
11362 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11363
11364 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11365 kernel does not support OFD locks.
11366 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11367
11368 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11369
11370 * sysdeps/mach/hurd/Versions (libc): Make __access and
11371 __access_noerrno external so they can override the ld symbols.
11372 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11373 __writev, __open64, __access_noerrno extern so they can be overrided.
11374 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11375 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11376
11377 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11378
11379 * po/libc.pot: Regenerate.
11380
11381 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11382
11383 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11384
11385 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11386
11387 [BZ #23459]
11388 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11389 function.
11390 (init_cpu_features): Call get_extended_indices for both Intel
11391 and AMD CPUs.
11392 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11393 Remove "for AMD" comment.
11394
11395 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11396
11397 [BZ # 23456]
11398 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11399 COMMON_CPUID_INDEX_80000001.
11400
11401 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11402
11403 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11404 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11405
11406 2018-07-26 Florian Weimer <fweimer@redhat.com>
11407
11408 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11409 aliases for symbols not in the implementation namespace.
11410
11411 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11412
11413 [BZ #23393]
11414 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11415 lowercase in LATIN script.
11416 * localedata/Makefile (test-input): Add en_US.UTF-8.
11417 * localedata/en_US.UTF-8.in: New file.
11418 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11419 and restore old tests.
11420 * posix/tst-regexloc.c (do_test): Add back range expression test.
11421
11422 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11423
11424 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11425
11426 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11427
11428 * nptl/threads.h: Move to ...
11429 * sysdeps/nptl/threads.h: ... here.
11430 * sysdeps/hurd/stdc-predef.h: New file.
11431
11432 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11433
11434 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11435 tst-cet-setcontext-1 if CET is enabled.
11436 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11437 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11438
11439 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11440
11441 * include/threads.h: Move to ...
11442 * sysdeps/nptl/threads.h: ... here.
11443 * sysdeps/htl/threads.h: New file.
11444 * conform/Makefile (linknamespace-libs-ISO11): Use
11445 static-thread-library instead of linking libpthread.
11446 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11447
11448 2018-07-25 Florian Weimer <fweimer@redhat.com>
11449
11450 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11451 nanoseconds into seconds.
11452 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11453 (do_test): Likewise.
11454 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11455 (do_test): Likewise. Avoid nanosecond overflow and spurious
11456 timeouts due to system load.
11457 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11458 (child_wait): Increment it.
11459 (do_test): Wait as long as necessary until all expected threads
11460 have arrived.
11461
11462 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11463 H.J. Lu <hongjiu.lu@intel.com>
11464
11465 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11466 __ssp.
11467 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11468 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11469 (__push___start_context): New.
11470 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11471 <asm/prctl.h>.
11472 (__getcontext): Record the current shadow stack base. Save the
11473 caller's shadow stack pointer and base.
11474 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11475 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11476 (__push___start_context): New prototype.
11477 (__makecontext): Call __push___start_context to allocate a new
11478 shadow stack, push __start_context onto the new stack as well
11479 as the new shadow stack.
11480 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11481 <asm/prctl.h>.
11482 (__setcontext): Restore the target shadow stack.
11483 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11484 <asm/prctl.h>.
11485 (__swapcontext): Record the current shadow stack base. Save
11486 the caller's shadow stack pointer and base. Restore the target
11487 shadow stack.
11488 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11489 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11490 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11491
11492 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11493
11494 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11495 tst-setcontext8 and tst-setcontext9.
11496 * stdlib/tst-setcontext6.c: New file.
11497 * stdlib/tst-setcontext7.c: Likewise.
11498 * stdlib/tst-setcontext8.c: Likewise.
11499 * stdlib/tst-setcontext9.c: Likewise.
11500
11501 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11502
11503 * stdlib/Makefile ((tests): Add tst-setcontext5.
11504 * stdlib/tst-setcontext5.c: New file.
11505
11506 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11507
11508 * stdlib/Makefile (tests): Add tst-setcontext4.
11509 * stdlib/tst-setcontext4.c: New file.
11510
11511 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11512
11513 * stdlib/Makefile (tests): Add tst-swapcontext1.
11514 * stdlib/tst-swapcontext1.c: New test.
11515
11516 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11517
11518 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11519 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11520 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11521 and tst-cet-legacy-4c.
11522 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11523 and tst-cet-legacy-mod-4.
11524 (CFLAGS-tst-cet-legacy-2.c): New.
11525 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11526 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11527 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11528 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11529 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11530 ($(objpfx)tst-cet-legacy-1): Likewise.
11531 ($(objpfx)tst-cet-legacy-2): Likewise.
11532 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11533 ($(objpfx)tst-cet-legacy-2a): Likewise.
11534 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11535 ($(objpfx)tst-cet-legacy-4): Likewise.
11536 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11537 ($(objpfx)tst-cet-legacy-4a): Likewise.
11538 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11539 (tst-cet-legacy-4a-ENV): Likewise.
11540 ($(objpfx)tst-cet-legacy-4b): Likewise.
11541 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11542 (tst-cet-legacy-4b-ENV): Likewise.
11543 ($(objpfx)tst-cet-legacy-4c): Likewise.
11544 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11545 (tst-cet-legacy-4c-ENV): Likewise.
11546 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11547 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11548 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11549 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11550 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11551 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11552 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11553 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11554 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11555 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11556 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11557
11558 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11559
11560 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11561 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11562 with ssp_base.
11563 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11564 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11565 with ssp_base.
11566
11567 2018-07-25 Andreas Schwab <schwab@suse.de>
11568
11569 [BZ #23442]
11570 * locale/weightwc.h (findidx): Handle the case where usrc is a
11571 prefix of cp but one character too short.
11572
11573 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11574
11575 * NEWS: Add ISO C threads addition.
11576
11577 2018-07-24 Florian Weimer <fweimer@redhat.com>
11578
11579 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11580 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11581 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11582 4.13.
11583
11584 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11585
11586 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11587 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11588 <sys/prctl.h> and <asm/prctl.h>.
11589 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11590 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11591 and <asm/prctl.h>.
11592 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11593 ARCH_CET_LEGACY_BITMAP.
11594 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11595 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11596 * sysdeps/x86/libc-start.c: Include <startup.h>.
11597
11598 2018-07-24 Florian Weimer <fweimer@redhat.com>
11599
11600 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11601 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11602
11603 2018-07-24 Rical Jasan <rj@2c3t.io>
11604 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11605 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11606
11607 [BZ #14092]
11608 * manual/debug.texi: Update adjacent chapter name.
11609 * manual/probes.texi: Likewise.
11610 * manual/threads.texi (ISO C Threads): New section.
11611 (POSIX Threads): Convert to a section.
11612
11613 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11614 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11615
11616 [BZ# 14092]
11617 * nptl/Makefile (tests): Add new test files.
11618 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11619 * nptl/tst-cnd-basic.c: Likewise.
11620 * nptl/tst-cnd-broadcast.c: Likewise.
11621 * nptl/tst-cnd-timedwait.c: Likewise.
11622 * nptl/tst-mtx-basic.c: Likewise.
11623 * nptl/tst-mtx-recursive.c: Likewise.
11624 * nptl/tst-mtx-timedlock.c: Likewise.
11625 * nptl/tst-mtx-trylock.c: Likewise.
11626 * nptl/tst-thrd-basic.c: Likewise.
11627 * nptl/tst-thrd-detach.c: Likewise.
11628 * nptl/tst-thrd-sleep.c: Likewise.
11629 * nptl/tst-tss-basic.c: Likewise.
11630
11631 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11632
11633 [BZ #14092]
11634 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11635 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11636 symbols.
11637 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11650 Likewise.
11651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11652 Likewise.
11653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11654 Likewise.
11655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11665 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11666 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11667 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11668 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11669 Likewise.
11670 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11682 ikewise.
11683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11685 Likewise.
11686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11687 Likewise.
11688 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11696
11697 [BZ #14092]
11698 * conform/data/threads.h-data (thread_local): New macro.
11699 (TSS_DTOR_ITERATIONS): Likewise.
11700 (tss_t): New type.
11701 (tss_dtor_t): Likewise.
11702 (tss_create): New function.
11703 (tss_get): Likewise.
11704 (tss_set): Likewise.
11705 (tss_delete): Likewise.
11706 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11707 tss_get, and tss_set objects.
11708 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11709 * nptl/tss_create.c: New file.
11710 * nptl/tss_delete.c: Likewise.
11711 * nptl/tss_get.c: Likewise.
11712 * nptl/tss_set.c: Likewise.
11713 * sysdeps/nptl/threads.h (thread_local): New define.
11714 (TSS_DTOR_ITERATIONS): Likewise.
11715 (tss_t): New typedef.
11716 (tss_dtor_t): Likewise.
11717 (tss_create): New prototype.
11718 (tss_get): Likewise.
11719 (tss_set): Likewise.
11720 (tss_delete): Likewise.
11721
11722 [BZ #14092]
11723 * conform/data/threads.h-data (cnd_t): New type.
11724 (cnd_init): New function.
11725 (cnd_signal): Likewise.
11726 (cnd_broadcast): Likewise.
11727 (cnd_wait): Likewise.
11728 (cnd_timedwait): Likewise.
11729 (cnd_destroy): Likewise.
11730 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11731 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11732 object.
11733 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11734 * nptl/cnd_broadcast.c: New file.
11735 * nptl/cnd_destroy.c: Likewise.
11736 * nptl/cnd_init.c: Likewise.
11737 * nptl/cnd_signal.c: Likewise.
11738 * nptl/cnd_timedwait.c: Likewise.
11739 * nptl/cnd_wait.c: Likewise.
11740 * sysdeps/nptl/threads.h (cnd_t): New type.
11741 (cnd_init): New prototype.
11742 (cnd_signa): Likewise.
11743 (cnd_broadcast): Likewise.
11744 (cnd_wait): Likewise.
11745 (cnd_timedwait): Likewise.
11746 (cnd_destroy): Likewise.
11747
11748 [BZ #14092]
11749 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11750 (once_flag): New type.
11751 (call_once): New function.
11752 * nptl/Makefile (libpthread-routines): Add call_once object.
11753 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11754 * nptl/call_once.c: New file.
11755 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11756 (once_flag): New type.
11757 (call_once): New prototype.
11758
11759 [BZ #14092]
11760 * conform/data/threads.h-data (mtx_plain): New constant.
11761 (mtx_recursive): Likewise.
11762 (mtx_timed): Likewise.
11763 (mtx_t): New type.
11764 (mtx_init): New function.
11765 (mtx_lock): Likewise.
11766 (mtx_timedlock): Likewise.
11767 (mtx_trylock): Likewise.
11768 (mtx_unlock): Likewise.
11769 (mtx_destroy): Likewise.
11770 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11771 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11772 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11773 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11774 * nptl/mtx_destroy.c: New file.
11775 * nptl/mtx_init.c: Likewise.
11776 * nptl/mtx_lock.c: Likewise.
11777 * nptl/mtx_timedlock.c: Likewise.
11778 * nptl/mtx_trylock.c: Likewise.
11779 * nptl/mtx_unlock.c: Likewise.
11780 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11781 (mtx_recursive): Likewise.
11782 (mtx_timed): Likewise.
11783 (mtx_t): New type.
11784 (mtx_init): New prototype.
11785 (mtx_lock): Likewise.
11786 (mtx_timedlock): Likewise.
11787 (mtx_trylock): Likewise.
11788 (mtx_unlock): Likewise.
11789 (mtx_destroy): Likewise.
11790
11791 [BZ #14092]
11792 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11793 (linknamespace-libs-ISO11): Add libpthread.a.
11794 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11795 functions.
11796 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11797 * nptl/Makefile (headers): Add threads.h.
11798 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11799 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11800 thrd_yield.
11801 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11802 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11803 thrd_join, thrd_sleep, and thrd_yield symbols.
11804 * nptl/descr.h (struct pthread): Add c11 field.
11805 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11806 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11807 routine with expected function prototype.
11808 (__pthread_create_2_1): Add C11 threads check based on attribute
11809 value.
11810 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11811 * nptl/thrd_create.c: New file.
11812 * nptl/thrd_current.c: Likewise.
11813 * nptl/thrd_detach.c: Likewise.
11814 * nptl/thrd_equal.c: Likewise.
11815 * nptl/thrd_exit.c: Likewise.
11816 * nptl/thrd_join.c: Likewise.
11817 * nptl/thrd_priv.h: Likewise.
11818 * nptl/thrd_sleep.c: Likewise.
11819 * nptl/thrd_yield.c: Likewise.
11820 * include/threads.h: Likewise.
11821
11822 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11823
11824 * bits/indirect-return.h: New file.
11825 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11826 * sysdeps/x86/bits/indirect-return.h: Likewise.
11827 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11828 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11829 (swapcontext): Add __INDIRECT_RETURN.
11830 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11831 (prepare_test_buffer): Use it.
11832
11833 2018-07-24 Andreas Schwab <schwab@suse.de>
11834
11835 [BZ #23448]
11836 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11837 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11838
11839 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11840
11841 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11842 Redefine if shadow stack is enabled.
11843 (SYSCALL_ERROR_LABEL): Likewise.
11844 (__vfork): Pop shadow stack and jump back to to caller directly
11845 when shadow stack is in use.
11846 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11847 Redefine if shadow stack is enabled.
11848 (SYSCALL_ERROR_LABEL): Likewise.
11849 (__vfork): Pop shadow stack and jump back to to caller directly
11850 when shadow stack is in use.
11851
11852 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11853
11854 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11855 enabled.
11856 (foo): Likewise.
11857 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11858 (foo): Likewise.
11859
11860 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11861
11862 * scripts/build-many-glibcs.py (Context.checkout): Default
11863 binutils version to 2.31 branch.
11864
11865 2018-07-20 Zong Li <zong@andestech.com>
11866
11867 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11868 URL of gcc's tarball.
11869
11870 2018-07-20 Florian Weimer <fweimer@redhat.com>
11871
11872 [BZ #23396]
11873 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11874 not compare an extra byte after the end of the weights.
11875
11876 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11877
11878 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11879 to 1.
11880 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11881 hidden prototypes.
11882 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11883 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11884 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11885 list of libraries whose stack executability is expected.
11886 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11887 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11888 variable.
11889 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11890 libc.so libpthread.so.
11891
11892 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11893
11894 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11895 SOCK_NONBLOCK.
11896 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11897 and SOCK_NONBLOCK.
11898 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11899 implement __pipe2.
11900 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11901
11902 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11903
11904 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11905 library to improve command line parsing.
11906 (__main__): make schema file as optional parameter (--schema),
11907 defaulting to benchtests/scripts/benchout.schema.json.
11908 (main): move out of the parsing stuff to __main_  and leave it
11909 only as caller of main comparison functions.
11910
11911 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11912
11913 * NEWS: Add a note for Intel CET status.
11914 * manual/install.texi: Likewise.
11915 * INSTALL: Regenerated.
11916
11917 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11918
11919 [BZ #23140]
11920 * localedata/locales/oc_FR (mon): Rename to...
11921 (alt_mon): This, then update October (typo fix).
11922 (mon): New content (genitive case, month names preceded by
11923 "de" or "d’").
11924
11925 [BZ #23422]
11926 * localedata/locales/oc_FR (abday): Update all items.
11927 (day): Update Wednesday and Saturday (typo fixes).
11928 (abmon): Update all items, except May.
11929 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11930 (LC_IDENTIFICATION): Bump the revision number and date.
11931 Keep the "category" entries in alphabetic order.
11932 (LC_ADDRESS): Remove no longer needed comment.
11933 (LC_COLLATE): Use “copy "ca_ES"”.
11934 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11935 "name_mrs".
11936
11937 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11938
11939 * grp/tst_fgetgrent.c: Include <unistd.h>.
11940 (main): Use mkstemp instead of tmpnam.
11941 * io/test-utime.c (main): Likewise.
11942 * posix/annexc.c (macrofile): Change to modifiable array.
11943 (main): Remove macrofile here.
11944 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11945 macrofile here.
11946 (check_header): Do not remove macrofile here.
11947 * posix/bug-getopt1.c: Include <stdlib.h>.
11948 (do_test): Use mkstemp instead of tmpnam.
11949 * posix/bug-getopt2.c: Include <stdlib.h>.
11950 (do_test): Use mkstemp instead of tmpnam.
11951 * posix/bug-getopt3.c: Include <stdlib.h>.
11952 (do_test): Use mkstemp instead of tmpnam.
11953 * posix/bug-getopt4.c: Include <stdlib.h>.
11954 (do_test): Use mkstemp instead of tmpnam.
11955 * posix/bug-getopt5.c: Include <stdlib.h>.
11956 (do_test): Use mkstemp instead of tmpnam.
11957 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11958 (main): Use mkstemp instead of tmpnam.
11959 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11960 (main): Use mkstemp instead of tmpnam.
11961 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11962 (main): use mkstemp instead of tmpnam.
11963 * stdlib/isomac.c (macrofile): Change to modifiable array.
11964 (main): Remove macrofile here.
11965 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11966 macrofile here.
11967 (check_header): Do not remove macrofile here.
11968
11969 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11970
11971 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11972 glibc.tune.x86_shstk.
11973
11974 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11975
11976 * NEWS: Mention --enable-cet.
11977 * manual/install.texi: Document --enable-cet.
11978 * INSTALL: Regenerated.
11979
11980 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11981
11982 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11983 Add _CET_NOTRACK before indirect jump to jump table.
11984
11985 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11986
11987 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11988 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11989 to jump table.
11990
11991 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11992
11993 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11994 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11995 to jump table.
11996
11997 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11998
11999 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
12000 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12001 to jump table.
12002
12003 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12004
12005 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
12006 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12007 to jump table.
12008
12009 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12010
12011 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
12012 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12013 to jump table.
12014 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
12015
12016 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12017
12018 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
12019 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12020 to jump table.
12021
12022 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12023
12024 * sysdeps/i386/i686/multiarch/memset-sse2.S
12025 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12026 to jump table.
12027
12028 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12029
12030 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
12031 indirect jump to jump table.
12032
12033 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12034
12035 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
12036 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12037 to jump table.
12038 (MEMCPY): Likewise.
12039
12040 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12041
12042 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
12043 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12044 to jump table.
12045 (MEMCPY): Likewise.
12046
12047 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12048
12049 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12050 _CET_NOTRACK before indirect jump to jump table.
12051
12052 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12053
12054 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
12055 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
12056 to jump table.
12057
12058 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
12059
12060 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
12061 indirect jump to jump table.
12062
12063 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
12064
12065 [BZ #22241]
12066 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
12067 (LOCALES): Likewise.
12068 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
12069 * localedata/locales/sah_RU: New file.
12070 * localedata/sah_RU.UTF-8.in: New file.
12071
12072 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12073
12074 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
12075 "sysdep.h".
12076 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
12077 _CET_ENDBR to indirect jump targets and adjust jump destination
12078 for _CET_ENDBR.
12079 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
12080 "sysdep.h".
12081 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
12082 _CET_ENDBR to indirect jump targets and adjust jump destination
12083 for _CET_ENDBR.
12084 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
12085 "sysdep.h".
12086 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
12087 _CET_ENDBR to indirect jump targets and adjust jump destination
12088 for _CET_ENDBR.
12089
12090 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12091
12092 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
12093 _CET_ENDBR.
12094
12095 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12096
12097 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
12098 _CET_ENDBR.
12099 (_dl_tlsdesc_undefweak): Likewise.
12100 (_dl_tlsdesc_dynamic): Likewise.
12101 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
12102 (_dl_tlsdesc_resolve_rel): Likewise.
12103 (_dl_tlsdesc_resolve_rela): Likewise.
12104 (_dl_tlsdesc_resolve_hold): Likewise.
12105 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
12106 (_dl_tlsdesc_undefweak): Likewise.
12107 (_dl_tlsdesc_dynamic): Likewise.
12108 (_dl_tlsdesc_resolve_rela): Likewise.
12109 (_dl_tlsdesc_resolve_hold): Likewise.
12110
12111 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12112
12113 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
12114 (_fini): Likewise.
12115 * sysdeps/x86_64/crti.S (_init): Likewise.
12116 (_fini): Likewise.
12117
12118 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
12119
12120 [BZ #23140]
12121 * localedata/locales/os_RU (mon): Rename to...
12122 (alt_mon): This.
12123 (mon): Import from CLDR (genitive case).
12124
12125 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
12126
12127 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
12128 cet-tunables.h> when CET is enabled.
12129
12130 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
12131
12132 [BZ #21598]
12133 * configure.ac: Add --enable-cet.
12134 * configure: Regenerated.
12135 * elf/Makefille (all-built-dso): Add a comment.
12136 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
12137 Include <dl-prop.h>.
12138 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
12139 segment.
12140 * elf/dl-open.c: Include <dl-prop.h>.
12141 (dl_open_worker): Call _dl_open_check.
12142 * elf/rtld.c: Include <dl-prop.h>.
12143 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
12144 _rtld_main_check.
12145 * sysdeps/generic/dl-prop.h: New file.
12146 * sysdeps/i386/dl-cet.c: Likewise.
12147 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12148 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12149 * sysdeps/x86/cet-tunables.h: Likewise.
12150 * sysdeps/x86/check-cet.awk: Likewise.
12151 * sysdeps/x86/configure: Likewise.
12152 * sysdeps/x86/configure.ac: Likewise.
12153 * sysdeps/x86/dl-cet.c: Likewise.
12154 * sysdeps/x86/dl-procruntime.c: Likewise.
12155 * sysdeps/x86/dl-prop.h: Likewise.
12156 * sysdeps/x86/libc-start.h: Likewise.
12157 * sysdeps/x86/link_map.h: Likewise.
12158 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12159 _CET_ENDBR.
12160 (_dl_runtime_profile): Likewise.
12161 (_dl_runtime_resolve_shstk): New.
12162 (_dl_runtime_profile_shstk): Likewise.
12163 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12164 if CET is enabled.
12165 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12166 (CFLAGS-.os): Likewise.
12167 (CFLAGS-.op): Likewise.
12168 (CFLAGS-.oS): Likewise.
12169 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12170 is enabled.
12171 (tests-special): Add $(objpfx)check-cet.out.
12172 (cet-built-dso): New.
12173 (+$(cet-built-dso:=.note)): Likewise.
12174 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12175 ($(objpfx)check-cet.out): New.
12176 (generated): Add check-cet.out.
12177 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12178 <cet-tunables.h>.
12179 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12180 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12181 (init_cpu_features): Call get_cet_status to check CET status
12182 and update dl_x86_feature_1 with CET status. Call
12183 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12184 (set_x86_shstk). Disable and lock CET in libc.a.
12185 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12186 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12187 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12188 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12189 (_CET_ENDBR): Define if not defined.
12190 (ENTRY): Add _CET_ENDBR.
12191 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12192 x86_shstk.
12193 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12194 _CET_ENDBR.
12195 (_dl_runtime_profile): Likewise.
12196
12197 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12198
12199 [BZ #21895]
12200 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12201 restore r2 on longjmp.
12202 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12203 test list.
12204 Added rules to build test tst-setjmp-bug21895-static.
12205 Added module setjmp-bug21895 and rules to build a shared object from it.
12206 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12207 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12208
12209 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
12210
12211 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12212 * benchtests/bench-strstr.c: Likewise.
12213 * string/memmem.c (FASTSEARCH): Define.
12214 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12215 Add support for FASTSEARCH.
12216 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12217 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12218 (FASTSEARCH): Define.
12219 * string/test-strcasestr.c: Rename __strnlen to strnlen.
12220 * string/test-strstr.c: Likewise.
12221
12222 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
12223
12224 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12225 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12226
12227 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12228 H.J. Lu <hongjiu.lu@intel.com>
12229
12230 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12231 (__longjmp): Restore shadow stack pointer if shadow stack is
12232 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12233 isn't defined for __longjmp_cancel.
12234 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12235 (_setjmp): Save shadow stack pointer if shadow stack is enabled
12236 and SHADOW_STACK_POINTER_OFFSET is defined.
12237 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12238 (setjmp): Save shadow stack pointer if shadow stack is enabled
12239 and SHADOW_STACK_POINTER_OFFSET is defined.
12240 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12241 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12242 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12243 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12244 <jmp_buf-ssp.h>.
12245 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12246 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12247 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12248 Remove jmp_buf-ssp.sym.
12249 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12250 <jmp_buf-ssp.h>.
12251 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12252 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12253 * sysdeps/x86/Makefile (gen-as-const-headers): Add
12254 jmp_buf-ssp.sym.
12255 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12256 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12257 (__longjmp): Restore shadow stack pointer if shadow stack is
12258 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12259 isn't defined for __longjmp_cancel.
12260 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12261 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12262 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12263
12264 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
12265
12266 [BZ #22563]
12267 * nptl/pthread_create.c: Include <tls-setup.h>.
12268 (__pthread_create_2_1): Call tls_setup_tcbhead.
12269 * sysdeps/generic/tls-setup.h: New file.
12270 * sysdeps/x86/nptl/tls-setup.h: Likewise.
12271 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12272 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12273 Likewise.
12274 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12275 to feature_1.
12276 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12277 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12278 (X86_FEATURE_1_SHSTK): Likewise.
12279 (CET_ENABLED): Likewise.
12280 (IBT_ENABLED): Likewise.
12281 (SHSTK_ENABLED): Likewise.
12282
12283 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
12284
12285 [BZ #23208]
12286 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12287 (LOCALES): Likewise.
12288 * localedata/dsb_DE.UTF-8.in: New file.
12289 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12290
12291 2018-07-12 Florian Weimer <fweimer@redhat.com>
12292
12293 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12294 __mprotect, not mprotect.
12295
12296 2018-07-11 Florian Weimer <fweimer@redhat.com>
12297
12298 * io/Makefile (headers): Add bits/statx.h.
12299
12300 2018-07-10 Mike FABIAN <mfabian@redhat.com>
12301
12302 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12303 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12304 and headers.
12305 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12306 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12307 for utf8_gen.py
12308
12309 2018-07-10 Florian Weimer <fweimer@redhat.com>
12310
12311 * io/Makefile (routines): Add statx.
12312 (tests-internal): Add tst-statx.
12313 * io/Versions (GLIBC_2.28): Export statx.
12314 * io/bits/statx.h: New file.
12315 * io/sys/stat.h [__USE_GNU]: Include it.
12316 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12317 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12318 Define.
12319 * io/statx.c: New file.
12320 * io/statx_generic.: Likewise.
12321 * io/tst-statx.: Likewise.
12322 * include/bits/statx.h: Likewise.
12323 * sysdeps/unix/sysv/linux/kernel-features.h
12324 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12325 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12326 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12327 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12328 Undefine.
12329 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12330 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12331 * sysdeps/unix/sysv/linux/statx.c: New file.
12332 * manual/filesys.texi: Note that statx is undocumented.
12333 * sysdeps/**/libc*.abilist: Update.
12334
12335 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12336
12337 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12338 a kernel issue which lead to test failure in some cases.
12339
12340 2018-07-10 Florian Weimer <fweimer@redhat.com>
12341
12342 [BZ #23036]
12343 * posix/regexec.c (check_node_accept_bytes): When comparing
12344 weights, do not compare an extra byte after the end of the
12345 weights.
12346
12347 2018-07-10 Florian Weimer <fweimer@redhat.com>
12348
12349 * libio/readline.c: Fix copyright year.
12350 * libio/tst-readline.c Likewise.
12351 * nss/tst-nss-files-hosts-getent.c: Likewise.
12352
12353 2018-07-06 Florian Weimer <fweimer@redhat.com>
12354
12355 [BZ #18991]
12356 * nss/nss_files/files-XXX.c (internal_getent): Use
12357 __libc_readline_unlocked. Seek back to the start of the line if
12358 parsing failes with ERANGE.
12359 (get_contents_ret, get_contents): Remove.
12360 * nss/tst-nss-files-hosts-getent.c: New file.
12361 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12362 (tst-nss-files-hosts-getent): Link with -ldl.
12363
12364 2018-07-06 Florian Weimer <fweimer@redhat.com>
12365
12366 * include/stdio.h (__libc_readline_unlocked): Declare.
12367 (__ftello64, __fseeko64): Declare aliases.
12368 * libio/readline.c: New file.
12369 * libio/tst-readline.c: Likewise.
12370 (routines): Add readline.
12371 (tests-internal): Add tst-readlime.
12372 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12373 __libc_readline_unlocked.
12374 * libio/fseeko.c (__fseeko): Rename from fseeko.
12375 (fseeko): Add alias.
12376 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12377 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12378 (fseeko64): Add alias.
12379 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12380 * libio/ftello64.c (__ftello64): Rename from ftello64.
12381 (ftello64): Add alias.
12382
12383 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12384
12385 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12386 HWCAP_ATOMICS.
12387
12388 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12389
12390 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12391 Use dl_hwcap without masking.
12392 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12393 Remove HWCAP_CPUID.
12394
12395 2018-07-06 Florian Weimer <fweimer@redhat.com>
12396
12397 * conform/conformtest.pl (checknamespace): Escape literal braces
12398 in regular expressions.
12399
12400 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12401
12402 * sysdeps/x86/cpu-features.c (get_common_indeces):
12403 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12404 * sysdeps/x86/cpu-features.c (init_cpu_features):
12405 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12406
12407 2018-07-05 Florian Weimer <fweimer@redhat.com>
12408
12409 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12410 protector.
12411 (CFLAGS-elf-init.oS): Likewise.
12412
12413 2018-07-05 Florian Weimer <fweimer@redhat.com>
12414 Carlos O'Donell <carlos@redhat.com>
12415
12416 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12417 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12418 with stack protector enabled because there is no risk of infinite
12419 recursion.
12420
12421 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12422
12423 [BZ #19818]
12424 [BZ #23307]
12425 * libc-abis (ABSOLUTE): New ABI.
12426 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12427 * NEWS: Mention the new ABI.
12428
12429 2018-07-05 Florian Weimer <fweimer@redhat.com>
12430
12431 [BZ # 17662]
12432 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12433 (RENAME_WHITEOUT): Define.
12434 [__USE_GNU] (renameat2): Declare.
12435 * stdio-common/Makefile (routines): Add renameat2.
12436 (tests): Add tst-renameat2.
12437 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12438 * stdio-common/renameat2.c: New file.
12439 * stdio-common/tst-renameat2.c: Likewise.
12440 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12441 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12442 undocumented.
12443 * sysdeps/unix/sysv/linux/kernel-features.h
12444 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12445 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12446 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12447 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12448 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12449 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12450 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12451 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12452 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12453 * include/stdio.h (__renameat): Add alias for renameat.
12454 * stdio-common/renameat.c (__renameat): Rename from renameat.
12455 Add hidden definition and alias.
12456 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12457 * sysdeps/mach/hurd/renameat.c: Likewise.
12458 * sysdeps/**/libc*.abilist: Add renameat2.
12459
12460 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12461
12462 * posix/bug-regex33.c: Fix build after regex sync.
12463
12464 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12465
12466 [BZ #23164]
12467 * localedata/tst-langinfo-setlocale.c: New file.
12468 * localedata/tst-langinfo-setlocale-static.c: New file.
12469 * localedata/tst-langinfo-newlocale.c: New file.
12470 * localedata/tst-langinfo-newlocale-static.c: New file.
12471 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12472 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12473 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12474 (tests-static): Remove tst-langinfo-static. Add
12475 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12476 (tests-special): Remove $(objpfx)tst-langinfo.out,
12477 $(objpfx)tst-langinfo-static.out. Add
12478 $(objpfx)tst-langinfo-setlocale.out,
12479 $(objpfx)tst-langinfo-newlocale.out,
12480 $(objpfx)tst-langinfo-setlocale-static.out,
12481 $(objpfx)tst-langinfo-newlocale-static.out.
12482 ($(objpfx)tst-langinfo.out): Remove.
12483 ($(objpfx)tst-langinfo-static.out): Remove.
12484 ($(objpfx)tst-langinfo-newlocale.out): New target.
12485 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12486 (test-xfail-tst-langinfo-newlocale-static): Add.
12487 ($(objpfx)tst-langinfo-setlocale.out): New target.
12488 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12489 * localedata/tst-langinfo.c: Call test_locale.
12490 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12491 data.
12492
12493 2018-07-04 Florian Weimer <fweimer@redhat.com>
12494
12495 testrun.sh: Implement --tool=strace, --tool=valgrind
12496 * Makefile (testrun-script): Define variable.
12497 (testrun.sh): Use variable.
12498 * manual/install.texi (Tools for Compilation): make 4.0 or later
12499 is required.
12500 * configure.ac: Check for make 4.0 or later.
12501 * INSTALL: Regenerate.
12502 * configure: Likewise.
12503
12504 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12505
12506 [BZ #23233]
12507 [BZ #21163]
12508 [BZ #18986]
12509 [BZ #13762]
12510 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12511 * posix/PCRE.tests: Remove invalid test.
12512 * posix/bug-regex28.c: Fix expected values for used syntax.
12513 * posix/bug-regex37.c: New file.
12514 * posix/bug-regex38.c: Likewise.
12515 * posix/regcomp.c: Sync with gnulib.
12516 * posix/regex.c: Likewise.
12517 * posix/regex.h: Likewise.
12518 * posix/regex_internal.c: Likewise.
12519 * posix/regex_internal.h: Likewise.
12520 * posix/regexec.c: Likewise.
12521
12522 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12523
12524 [BZ #23308]
12525 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12526 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12527 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12528 * localedata/unicode-gen/PropList.txt: likewise.
12529 * localedata/unicode-gen/UnicodeData.txt: likewise.
12530 * localedata/charmaps/UTF-8: Regenerate.
12531 * localedata/locales/i18n_ctype: likewise.
12532 * localedata/locales/tr_TR: likewise.
12533 * localedata/locales/translit_circle: likewise.
12534 * localedata/locales/translit_cjk_compat: likewise.
12535 * localedata/locales/translit_combining: likewise.
12536 * localedata/locales/translit_compat: likewise.
12537 * localedata/locales/translit_font: likewise.
12538 * localedata/locales/translit_fraction: likewise.
12539
12540 2018-07-03 Florian Weimer <fweimer@redhat.com>
12541
12542 [BZ #23363]
12543 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12544 * stdio-common/tst-printf.sh: Adjust expected output.
12545 * LICENSES: Update.
12546
12547 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12548
12549 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12550 symbol.
12551
12552 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12553
12554 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12555 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12556 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12557 * stdio-common/tst-printfsz-islongdouble.c: New file.
12558 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12559 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12560 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12561 [subdir == stdio-common] (tests-internal): Add
12562 test-printf-size-ieee128, and test-printf-size-ibm128.
12563 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12564 (CFLAGS-test-printf-size-ibm128.c): New variables.
12565 [subdir == stdio-common] (tests-special): Add
12566 $(objpfx)test-printf-size-ieee128.out and
12567 $(objpfx)test-printf-size-ibm128.out.
12568 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12569 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12570 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12571 __printf_sizeieee128.
12572 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12573 New file.
12574 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12575 Likewise.
12576 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12577 Likewise.
12578
12579 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12580
12581 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12582 (exp2f_inline): Likewise.
12583 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12584 (__math_uflowf): Likewise.
12585 (__math_may_uflowf): Likewise.
12586 (__math_divzerof): Likewise.
12587 (__math_invalidf): Likewise.
12588 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12589 (__math_oflowf): Likewise.
12590 (__math_uflowf): Likewise.
12591 (__math_may_uflowf): Likewise.
12592 (__math_divzerof): Likewise.
12593 (__math_invalidf): Likewise.
12594
12595 2018-06-29 DJ Delorie <dj@redhat.com>
12596 Carlos O'Donell <carlos@redhat.com>
12597
12598 [BZ #23329]
12599 * include/libc-symbols.h: Comment the freeres framework.
12600 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12601 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12602 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12603 * dlfcn/dlerror.c: Include libc-symbols.h
12604 (__dlerror_main_freeres): New function.
12605 * dlfcn/dlfreeres.c: New file.
12606 * dlfcn/sdlfreeres.c: New file.
12607 * include/dlfcn.h: Declare __dlerror_main_freeres.
12608 * malloc/set-freeres.c: Declare __libdl_freeres, and
12609 __libpthread_freeres.
12610 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12611 the releavant libraries are loaded.
12612 * malloc/thread-freeres.c: Add comments.
12613 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12614 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12615 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12616 (__free_stacks): Rename to...
12617 (free_stacks): ...this. Mark static.
12618 (queue_stack): Call free_stacks.
12619 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12620 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12621 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12622 ptr_freeres element from struct.
12623 (pthread_functions): Remove .ptr_freeres from struct initializer.
12624 [SHARED] (nptl_freeres): Remove.
12625 * nptl/nptlfreeres.c: New file.
12626 * nptl/pthreadP.h
12627 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12628 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12629 attribute_hidden.
12630 (__free_stacks): Rename to...
12631 (__nptl_stacks_freeres): ...this.
12632 (__shm_directory_freeres): Declare.
12633 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12634 (__nptl_unwind_freeres): ...this.
12635 * resolv/res-close.c: Add comment.
12636 * resolv/resolv_conf.c: Include libc-symbols.h.
12637 * string/strerror_l.c: Include libc-symbols.h.
12638 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12639 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12640 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12641 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12642
12643 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12644
12645 * stdlib/tst-strfmon_l.c: Add tests for long double.
12646
12647 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12648
12649 [BZ #23208]
12650 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12651 * localedata/locales/dsb_DE: New file.
12652
12653 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12654
12655 [BZ #23140]
12656 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12657 genitive case).
12658 (alt_mon): New entry, import from CLDR (nominative case).
12659
12660 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12661
12662 [BZ #22996]
12663 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12664
12665 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12666
12667 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12668 Use vector registers.
12669
12670 * sysdeps/aarch64/multiarch/memmove_falkor.S
12671 (__memcpy_falkor): Use vector registers.
12672
12673 2018-06-29 Martin Sebor <msebor@redhat.com>
12674
12675 * manual/stdio.texi (Customizing Printf): Mention interaction
12676 with GCC built-ins.
12677
12678 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12679
12680 [BZ #23307]
12681 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12682 `st_value' is 0 if `st_shndx' is SHN_ABS.
12683 * elf/tst-absolute-zero.c: New file.
12684 * elf/tst-absolute-zero-lib.c: New file.
12685 * elf/tst-absolute-zero-lib.lds: New file.
12686 * elf/Makefile (tests): Add `tst-absolute-zero'.
12687 (modules-names): Add `tst-absolute-zero-lib'.
12688 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12689 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12690 ($(objpfx)tst-absolute-zero: New dependency.
12691
12692 2018-06-29 Zack Weinberg <zackw@panix.com>
12693
12694 * configure.ac: New command-line option --disable-crypt.
12695 Force --disable-nss-crypt when --disable-crypt is given, with a
12696 warning if it was explicitly enabled.
12697 * configure: Regenerate.
12698 * config.make.in: New boolean substitution variable $(build-crypt).
12699 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12700 when $(build-crypt).
12701 * manual/install.texi: Document --disable-crypt.
12702 * INSTALL: Regenerate.
12703
12704 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12705 which is never set.
12706 * conform/Makefile: Only include libcrypt.a in
12707 linknamespace-libs-xsi and linknamespace-libs-XPG4
12708 when $(build-crypt).
12709 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12710 USE_CRYPT to 1 when $(build-crypt).
12711 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12712 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12713 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12714
12715 2018-06-29 Zack Weinberg <zackw@panix.com>
12716
12717 * crypt/crypt.h, posix/unistd.h: Update comments and
12718 prototypes for crypt and crypt_r.
12719
12720 * manual/crypt.texi (Cryptographic Functions): New initial
12721 exposition.
12722 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12723 (Unpredictable Bytes): Improve initial exposition. Clarify error
12724 behavior of getentropy and getrandom.
12725 * manual/examples/genpass.c: Generate a salt using getentropy
12726 instead of the current time. Use hash $5$ (SHA-2-256).
12727 * manual/examples/testpass.c: Demonstrate validation against
12728 hashes generated with three different one-way functions.
12729
12730 * manual/intro.texi: crypt.texi does not need an overview
12731 anymore.
12732
12733 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12734 * manual/terminal.texi: Consistently refer to "passphrases"
12735 * instead of "passwords", and to the "user database" instead
12736 * of the "password database".
12737 * manual/users.texi: Similarly. Add notes about how actual
12738 passphrase hashes are now stored in the shadow database.
12739 Remove 20-year-old junk todo note.
12740
12741 2018-06-29 Zack Weinberg <zackw@panix.com>
12742
12743 * manual/crypt.texi: Use a normal top-level @node declaration.
12744 Move most of the introductory text to the 'crypt' section.
12745 Move the example programs below the @deftypefun for 'crypt_r'.
12746 Move the 'getpass' section...
12747 * manual/terminal.texi: ...here.
12748
12749 2018-06-29 Zack Weinberg <zackw@panix.com>
12750 Florian Weimer <fweimer@redhat.com>
12751
12752 * posix/unistd.h: Do not declare encrypt.
12753 (_XOPEN_CRYPT): Remove macro definition.
12754 (crypt): Declare only for _USE_MISC.
12755 * stdlib/stdlib.h: Do not declare setkey.
12756 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12757 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12758
12759 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12760 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12761 into compat symbols. Don't define initial_perm if it's not
12762 going to be used.
12763 * crypt/cert.c: Link explicitly with the expected versions for
12764 setkey and encrypt. If they are not available at all, mark
12765 the test as unsupported.
12766
12767 * sunrpc/des_crypt.c: Unconditionally block linkage with
12768 cbc_crypt and ecb_crypt for new binaries.
12769 * sunrpc/des_soft.c: Unconditionally block linkage with
12770 des_setparity for new binaries.
12771
12772 * manual/crypt.texi: Remove the entire "DES Encryption"
12773 section. Also remove the paragraph talking about FIPS 140-2
12774 from the introduction.
12775 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12776 of libgcrypt for "real" encryption, not DES.
12777 * manual/conf.texi (Constants for Sysconf): Mention that
12778 _XOPEN_CRYPT is no longer impelemented.
12779
12780 * conform/data/unistd.h-data: Remove crypt function declaration.
12781
12782 2018-06-29 Florian Weimer <fweimer@redhat.com>
12783
12784 [BZ #23351]
12785 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12786 (disallow_malloc_check): Remove variable.
12787 (__malloc_check_init): Adjust.
12788 (malloc_set_state): Update comment.
12789 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12790 declarations.
12791
12792 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12793
12794 [BZ #23140]
12795 * localedata/locales/ast_ES (mon): Rename to...
12796 (alt_mon): This.
12797 (mon): Import from CLDR (genitive case).
12798
12799 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12800 Jakub Sitnicki <jkbs@redhat.com>
12801
12802 [BZ #21812]
12803 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12804 on NLM_F_DUMP_INTR.
12805
12806 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12807
12808 * manual/llio.texi: Remove spurious space.
12809
12810 2018-06-28 Florian Weimer <fweimer@redhat.com>
12811
12812 [BZ #23349]
12813 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12814 _STRUCT_TIMESPEC.
12815
12816 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12817
12818 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12819 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12820 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12821 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12822 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12823 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12824 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12825
12826 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12827
12828 [BZ #23266]
12829 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12830 Copy and null-terminate entries that are not terminated, in
12831 addition to empty ones.
12832
12833 2018-06-27 Florian Weimer <fweimer@redhat.com>
12834
12835 [BZ #18023]
12836 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12837 (extend_alloca_account): Remove.
12838 * manual/stdio.texi (Variable Arguments Output): Update comment.
12839
12840 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12841
12842 * nptl/sockperf.c: Remove file.
12843
12844 2018-06-27 Florian Weimer <fweimer@redhat.com>
12845
12846 [BZ #18023]
12847 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12848 scratch_buffer instead of extend_alloca.
12849
12850 2018-06-27 Florian Weimer <fweimer@redhat.com>
12851
12852 [BZ #18023]
12853 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12854 scratch_buffer instead of extend_alloca. Update comments.
12855
12856 2018-06-27 Florian Weimer <fweimer@redhat.com>
12857
12858 [BZ #18023]
12859 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12860 instead of extend_alloca.
12861
12862 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12863
12864 [BZ #13888]
12865 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12866 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12867 /tmp.
12868 * scripts/test-installation.pl: Put temporary files in build
12869 directory, not /tmp.
12870 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12871 (CFLAGS-bug4.c): Likewise.
12872 (CFLAGS-bug5.c): Likewise.
12873 (CFLAGS-test-fseek.c): Likewise.
12874 (CFLAGS-test-popen.c): Likewise.
12875 (CFLAGS-test_rdwr.c): Likewise.
12876 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12877 /tmp.
12878 * stdio-common/bug4.c (main): Likewise.
12879 * stdio-common/bug5.c (main): Likewise.
12880 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12881 * stdio-common/test-popen.c (do_test): Likewise.
12882 * stdio-common/test_rdwr.c (main): Likewise.
12883
12884 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12885
12886 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12887 (sem_open): Set sem.newsem.pad to zero for valgrind.
12888
12889 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12890
12891 [BZ #20251]
12892 * NEWS: Mention fcntl64 addition.
12893 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12894 * login/utmp_file.c: Likewise.
12895 * sysdeps/posix/fdopendir.c: Likewise.
12896 * sysdeps/posix/opendir.c: Likewise.
12897 * sysdeps/unix/pt-fcntl.c: Likewise.
12898 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12899 __fcntl64_nocancel_adjusted): New prototype.
12900 (__fcntl_nocancel_adjusted): Remove prototype.
12901 * io/Makefile (routines): Add fcntl64.
12902 (CFLAGS-fcntl64.c): New rule.
12903 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12904 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12905 * io/fcntl.h (fcntl64): Add prototype and redirect if
12906 __USE_FILE_OFFSET64 is defined.
12907 * io/fcntl64.c: New file.
12908 * manual/llio.text: Add a note for which commands fcntl acts a
12909 cancellation point.
12910 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12911 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12912 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12913 New symbols.
12914 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12915 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12916 non-LFS case.
12917 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12918 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12919 to __fcntl64_nocancel.
12920 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12921 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12922 to __fcntl64_nocancel.
12923 * sysdeps/generic/not-cancel.h: Likewise.
12924 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12925 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12926 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12927 (fcntl64): New symbol.
12928 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12929 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12930 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12933 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12934 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12935 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12936 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12937 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12938 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12939 fcntl64): Likewise.
12940 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12941 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12942 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12943 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12944 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12945 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12946 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12947 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12948 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12950 Likewise.
12951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12952 Likewise.
12953 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12954 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12955 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12956
12957 2018-06-26 Florian Weimer <fweimer@redhat.com>
12958
12959 Run thread shutdown functions in an explicit order.
12960 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12961 definition.
12962 (__libc_thread_freeres): Call thread shutdown functions
12963 explicitly.
12964 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12965 * include/string.h (__strerror_thread_freeres): Declare.
12966 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12967 arena_thread_freeres. No longer static. Remove thread shutdown
12968 hook registration.
12969 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12970 Declare.
12971 * resolv/res-close.c (__res_thread_freeres): Renamed from
12972 res_thread_freeres. No longer static. Remove thread shutdown
12973 hook registration.
12974 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12975 * resolv/resolv_conf.c (freeres): Remove incorrect section
12976 attribute and use libc_freeres_fn.
12977 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12978 strerror_thread_freeres. No longer static. Remove thread
12979 shutdown hook registration.
12980 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12981 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12982 shutdown hook registration.
12983 * Makerules (shlib.lds): Do not provide section boundary symbols
12984 for __libc_thread_subfreeres.
12985 * manual/memory.texi (Basic Allocation): Update comment.
12986
12987 2018-06-26 Florian Weimer <fweimer@redhat.com>
12988
12989 Remove always-defined _RPC_THREAD_SAFE_ macro.
12990 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12991 Do not define _RPC_THREAD_SAFE_.
12992 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12993 conditional.
12994 * sunrpc/clnt_perr.c: Likewise.
12995 * sunrpc/clnt_raw.c: Likewise.
12996 * sunrpc/clnt_simp.c: Likewise.
12997 * sunrpc/key_call.c: Likewise.
12998 * sunrpc/rpc_common.c: Likewise.
12999 * sunrpc/rpc_main.c: Likewise.
13000 * sunrpc/rpc_thread.c: Likewise.
13001 * sunrpc/svc.c: Likewise.
13002 * sunrpc/svc_raw.c: Likewise.
13003 * sunrpc/svc_simple.c: Likewise.
13004 * sumrpc/svcauth_des.c: Likewise.
13005
13006 2018-06-26 Florian Weimer <fweimer@redhat.com>
13007
13008 * libio/Makefile (tests-internal): Add tst-vtables,
13009 tst-vtables-interposed.
13010 * libio/tst-vtables.c: New file.
13011 * libio/tst-vtables-common.c: Likewise.
13012 * libio/tst-vtables-interposed.c: Likewise.
13013
13014 2018-06-26 Florian Weimer <fweimer@redhat.com>
13015
13016 * support/support_test_main.c (support_test_main): Only call
13017 setvbuf if not disables.
13018 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
13019 * support/test-driver.h (struct test_config): Add no_setvbuf member.
13020
13021 2018-06-26 Florian Weimer <fweimer@redhat.com>
13022
13023 [BZ #23313]
13024 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
13025
13026 2018-06-25 Florian Weimer <fweimer@redhat.com>
13027
13028 [BZ #18023]
13029 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13030 Use struct scratch_buffer instead of extend_alloca.
13031
13032 2018-06-25 Florian Weimer <fweimer@redhat.com>
13033
13034 [BZ #18023]
13035 * nss/getent.c (initgroups_keys): Use dynarray instead of
13036 extend_alloca.
13037
13038 2018-06-25 Florian Weimer <fweimer@redhat.com>
13039
13040 [BZ #18023]
13041 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
13042 Use struct scratch_buffer instead of extend_alloca.
13043
13044 2018-06-25 Florian Weimer <fweimer@redhat.com>
13045
13046 [BZ #18023]
13047 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
13048 back to malloc directly, without stack allocations.
13049
13050 2018-06-25 Florian Weimer <fweimer@redhat.com>
13051
13052 [BZ #18023]
13053 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
13054 of extend_alloca.
13055
13056 2018-06-25 Florian Weimer <fweimer@redhat.com>
13057
13058 [BZ #18023]
13059 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
13060 of extend_alloca.
13061 * nscd/hstcache.c (addhstbyX): Likewise.
13062 * nscd/pwdcache.c (addpwbyX): Likewise.
13063 * nscd/servicescache.c (addservbyX): Likewise.
13064
13065 2018-06-25 Florian Weimer <fweimer@redhat.com>
13066
13067 [BZ #18023]
13068 * nscd/connections.c (read_cmdline): New function.
13069 (restart): Use it. Update comment.
13070
13071 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13072
13073 [BZ #23140]
13074 * localedata/locales/csb_PL (mon): Rename to...
13075 (alt_mon): This.
13076 (abmon): Rename to...
13077 (ab_alt_mon): This.
13078 (mon): Add with proper genitive forms, copy from Wikipedia.
13079 (abmon): Likewise.
13080
13081 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13082
13083 [BZ #19485]
13084 * localedata/locales/csb_PL (mon): Fix typos:
13085 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
13086 (yesstr): Add, value is "jo".
13087 (nostr): Add, value is "nié".
13088
13089 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13090
13091 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
13092 all log1p and significand functions on m680x0.
13093 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
13094 of s_significand.c..
13095 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
13096 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
13097 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
13098 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
13099 s_log1p.c and include it..
13100
13101 2018-06-21 Vincent Chen <vincentc@andestech.com>
13102
13103 * elf/elf.h (R_NDS32_NONE): New define.
13104 (R_NDS32_32_RELA): Likewise.
13105 (R_NDS32_COPY): Likewise.
13106 (R_NDS32_GLOB_DAT): Likewise.
13107 (R_NDS32_JUMP_SLOT): Likewise.
13108 (R_NDS32_RELATIVE): Likewise.
13109 (R_NDS32_TLS_TPOFF): Likewise.
13110 (R_NDS32_TLS_DESC): Likewise.
13111
13112 2018-06-21 Mark Wielaard <mark@klomp.org>
13113
13114 * elf/elf.h (R_BPF_MAP_FD): Removed.
13115 (R_BPF_64_64, R_BPF_64_32): New.
13116
13117 2018-06-21 Florian Weimer <fweimer@redhat.com>
13118
13119 [BZ #23253]
13120 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
13121 Renamed from libc_feholdsetround_ctx.
13122 (default_libc_feresetround_ctx): Renamed from
13123 libc_feresetround_ctx.
13124 (default_libc_feholdsetround_noex_ctx): Renamed from
13125 libc_feholdsetround_noex_ctx.
13126 (default_libc_feresetround_noex_ctx): Renamed from
13127 libc_feresetround_noex_ctx.
13128 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
13129 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
13130 forwardning to the old implementations under the new names.
13131 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
13132 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
13133 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
13134 (libc_feresetround_ctx): Forward to default implements for i386
13135 and MATH_SET_BOTH_ROUNDING_MODES.
13136 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
13137 Add -DMATH_SET_BOTH_ROUNDING_MODES.
13138
13139 2018-06-20 Joseph Myers <joseph@codesourcery.com>
13140
13141 * string/tst-cmp.c: Include <libc-diag.h>.
13142 (strncmp_max): Disable -Wstringop-overflow= around call to
13143 strncmp.
13144 (strncasecmp_max): Disable -Wstringop-overflow= around call to
13145 strncasecmp.
13146
13147 * string/bug-strpbrk1.c: Include <libc-diag.h>.
13148 (main): Disable -Wunused-value around call to strpbrk.
13149 * string/bug-strspn1.c: Include <libc-diag.h>.
13150 (main): Disable -Wunused-value around call to strspn.
13151
13152 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13153 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13154
13155 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13156 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13157
13158 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13159
13160 * math/Makefile (libm-calls): Move s_significandF to...
13161 (gen-libm-calls): ... here.
13162 * math/s_significand_template.c: New file.
13163 * math/s_significand.c: Removed.
13164 * math/s_significandf.c: Removed.
13165 * math/s_significandl.c: Removed.
13166 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13167 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13168
13169 * math/e_exp2_template.c (declare_mgen_finite_alias,
13170 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13171 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13172 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13173
13174 2018-06-20 Florian Weimer <fweimer@redhat.com>
13175
13176 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13177
13178 2018-06-19 Joseph Myers <joseph@codesourcery.com>
13179
13180 [BZ #23280]
13181 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13182 floating-point number to strtod functions rather than possibly
13183 negating result of those functions.
13184 * stdio-common/tst-scanf-round.c: New file.
13185 * stdio-common/Makefile (tests): Add tst-scanf-round.
13186 ($(objpfx)tst-scanf-round): Depend on $(libm).
13187
13188 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13189
13190 * sysdeps/mach/hurd/localplt.data: Move to...
13191 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13192 R_386_GLOB_DAT like on Linux i386.
13193
13194 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13195
13196 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13197 (SHM_STAT_ANY): New macro.
13198 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13199 (SHM_STAT_ANY): Likewise.
13200 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13201 (SHM_STAT_ANY): Likewise.
13202 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13203 (SHM_STAT_ANY): Likewise.
13204 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13205 (SHM_STAT_ANY): Likewise.
13206 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13207 (SHM_STAT_ANY): Likewise.
13208 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13209 (SHM_STAT_ANY): Likewise.
13210 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13211 (SHM_STAT_ANY): Likewise.
13212 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13213 (SHM_STAT_ANY): Likewise.
13214 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13215 (SHM_STAT_ANY): Likewise.
13216 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13217 (SHM_STAT_ANY): Likewise.
13218 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13219 (SHM_STAT_ANY): Likewise.
13220
13221 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13222 (SEM_STAT_ANY): New macro.
13223 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13224 (SEM_STAT_ANY): Likewise.
13225 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13226 (SEM_STAT_ANY): Likewise.
13227 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13228 (SEM_STAT_ANY): Likewise.
13229 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13230 (SEM_STAT_ANY): Likewise.
13231 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13232 (SEM_STAT_ANY): Likewise.
13233 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13234 (SEM_STAT_ANY): Likewise.
13235 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13236 (SEM_STAT_ANY): Likewise.
13237 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13238 (SEM_STAT_ANY): Likewise.
13239 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13240 (SEM_STAT_ANY): Likewise.
13241
13242 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13243 (MSG_STAT_ANY): New macro.
13244 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13245 (MSG_STAT_ANY): Likewise.
13246 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13247 (MSG_STAT_ANY): Likewise.
13248 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13249 (MSG_STAT_ANY): Likewise.
13250 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13251 (MSG_STAT_ANY): Likewise.
13252 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13253 (MSG_STAT_ANY): Likewise.
13254 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13255 (MSG_STAT_ANY): Likewise.
13256 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13257 (MSG_STAT_ANY): Likewise.
13258 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13259 (MSG_STAT_ANY): Likewise.
13260 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13261 (MSG_STAT_ANY): Likewise.
13262
13263 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13264 (MAP_TYPE): Change value to 0x2b.
13265
13266 2018-06-18 Florian Weimer <fweimer@redhat.com>
13267
13268 [BZ #15722]
13269 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13270 socket with SOCK_CLOEXEC.
13271
13272 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13273
13274 [BZ #23303]
13275 * sysdeps/powerpc/powerpc64/le/Makefile
13276 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13277 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13278 (gnulib-tests): Also add $(f128-loader-link) for
13279 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13280
13281 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
13282
13283 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13284 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13285 of sendfile.
13286 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13287 (sendfile64): New strong alias.
13288 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13289 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13290 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13291 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13292 attribute.
13293 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13294 ___pthread_get_cleanup_stack.
13295 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13296 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13297 * mach/shortcut.awk: Make syscall stubs include
13298 <mach-shortcuts-hidden.h> and add hidden definition.
13299 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13300 (__mach_msg): Add hidden prototype.
13301 * mach/msg.c: Include <mach.h>.
13302 (__mach_msg): Add hidden definition.
13303 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13304 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13305 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13306 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13307 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13308 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13309 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13310 prototype and definition.
13311 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13312 hidden target for _hurd_self_sigstate.
13313
13314 2018-06-15 Joseph Myers <joseph@codesourcery.com>
13315
13316 [BZ #23007]
13317 * stdlib/tst-strtod-nan-sign-main.c: New file.
13318 * stdlib/tst-strtod-nan-sign.c: Likewise.
13319 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13320 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13321 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13322 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13323 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13324
13325 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
13326
13327 [BZ #23007]
13328 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13329 appropriate sign.
13330
13331 2018-06-14 Florian Weimer <fweimer@redhat.com>
13332
13333 [BZ #23290]
13334 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13335 that the result stays within the ISO-8859-1 range.
13336 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13337 characters are defined in IBM273.
13338
13339 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13340
13341 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13342 __mach_task_self): Remove attribute_hidden.
13343
13344 2018-06-14 Joseph Myers <joseph@codesourcery.com>
13345
13346 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13347 ignore -Wrestrict for one test.
13348
13349 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
13350 Szabolcs Nagy <szabolcs.nagy@arm.com>
13351
13352 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13353
13354 2018-06-14 Florian Weimer <fweimer@redhat.com>
13355
13356 * scripts/update-abilist.sh: Accept empty list of files to patch.
13357
13358 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13359
13360 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13361 test-xfail-check-abi-libmachuser): Add.
13362 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13363 __libc_read and __libc_write to __read and __write.
13364 * sysdeps/hurd/include/hurd/port.h: New file.
13365 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13366 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13367 __thread_switch, __evc_wait): Move declarations to...
13368 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13369 attribute_hidden.
13370 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13371 use PLT to call _hurd_self_sigstate.
13372
13373 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13374
13375 [BZ #23279]
13376 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13377 MAX_EXP as overflowing.
13378 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13379 overflow flag.
13380 (round_str): Output also whether result overflows in each rounding
13381 mode.
13382 * stdlib/tst-strtod-round-data: Add more tests.
13383 * stdlib/tst-strtod-round-data.h: Regenerated.
13384 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13385 (TEST): Handle extra arguments for overflow flags.
13386 (struct test_overflow): New type.
13387 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13388 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13389 (test_in_one_mode): Take argument with overflow information.
13390 (do_test): Update calls to test_in_one_mode.
13391
13392 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13393
13394 * elf/dl-load (_dl_dst_substitute): Correct comment.
13395 (_dl_dst_count): Likewise.
13396
13397 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13398 lll_futex_timed_wait.
13399
13400 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13401
13402 [BZ #23277]
13403 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13404 attribute.
13405 * math/test-nan-const.c: New file.
13406 * math/Makefile (tests): Add test-nan-const.
13407 (CFLAGS-test-nan-const.c): New variable.
13408
13409 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13410
13411 * benchtests/scripts/compare_strings.py (process_results): Add
13412 funcs argument. Compare only functions which are selected.
13413 (main): Check if base function is among selected functions.
13414 Pass selected functions to process_results.
13415 (__main__): Add -f/--functions argument.
13416
13417 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13418 Hongbo Zhang <hongbo.zhang@linaro.org>
13419
13420 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13421 __memcpy_falkor for phecda core.
13422 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13423 __memmove_falkor for phecda core.
13424 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13425 __memset_falkor for phecda core.
13426 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13427 for phecda core.
13428 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13429 macro to identify phecda core.
13430
13431 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13432 Andreas Schwab <schwab@suse.de>
13433 Dmitry V. Levin <ldv@altlinux.org>
13434 Florian Weimer <fweimer@redhat.com>
13435
13436 [BZ #23102]
13437 [BZ #21942]
13438 [BZ #18018]
13439 [BZ #23259]
13440 CVE-2011-0536
13441 * elf/dl-dst.h: Remove DL_DST_COUNT.
13442 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13443 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13444 (is_dst): Comment. Support ELF gABI.
13445 (_dl_dst_count): Comment. Simplify and count DSTs.
13446 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13447 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13448 locals.
13449
13450 2018-06-12 Zack Weinberg <zackw@panix.com>
13451
13452 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13453 * sysdeps/unix/sysv/linux/dl-sysdep.c
13454 Include not-cancel.h. Use __close_nocancel instead of __close,
13455 __open64_nocancel instead of __open, __read_nocancel instead of
13456 __libc_read, and __write_nocancel instead of __libc_write.
13457
13458 * csu/check_fds.c (check_one_fd)
13459 * sysdeps/posix/fdopendir.c (__fdopendir)
13460 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13461 instead of __fcntl and/or __libc_fcntl.
13462
13463 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13464 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13465 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13466 Use __open64_nocancel instead of __open_nocancel.
13467
13468 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13469 hidden_proto declarations to the end and issue them if either
13470 IS_IN(libc) or IS_IN(rtld).
13471 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13472 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13473 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13474 read_nocancel, waitpid_nocancel, write_nocancel.
13475
13476 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13477 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13478 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13479
13480 * nptl/pt-fcntl.c: New file.
13481 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13482 (libpthread-routines): Add pt-fcntl.
13483 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13484 (__libc_fcntl): Remove attribute_hidden.
13485 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13486 __fcntl_nocancel_adjusted, not fcntl_common.
13487 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13488 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13489 to fcntl_nocancel.c.
13490 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13493 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13494
13495 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13496 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13497 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13498 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13499 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13500 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13501 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13502 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13503 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13504 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13505 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13506 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13507 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13508 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13509 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13510 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13511 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13512 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13513 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13514 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13515
13516 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13517 libpthread-routines.
13518 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13519 defines nothing.
13520
13521 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13522 __libc_read, and __write instead of __libc_write. Define
13523 __open64 in addition to __open.
13524
13525 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13526
13527 [BZ #23250]
13528 [BZ #10686]
13529 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13530 to _private_tm[3] and add __glibc_reserved2.
13531 Add _Static_assert of offset of __private_ss == 0x30.
13532 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13533 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13534
13535 2018-06-12 Florian Weimer <fweimer@redhat.com>
13536
13537 x86: Make strncmp usable from rtld.
13538 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13539 __strncmp_ia32 if in libc (and not in rtld).
13540 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13541 strncmp if not in libc (and not to __strncmp_sse2).
13542
13543 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13544
13545 [BZ #23140]
13546 * localedata/locales/gd_GB (mon): Rename to...
13547 (alt_mon): This.
13548 (mon): Import from CLDR (genitive case).
13549 * localedata/locales/hsb_DE (mon): Rename to...
13550 (alt_mon): This.
13551 (mon): Import from CLDR (genitive case).
13552 * localedata/locales/wa_BE (mon): Rename to...
13553 (alt_mon): This.
13554 (mon): Add, fill with the proper genitive forms, but CLDR data
13555 is incomplete; completed according to the comments in this file.
13556 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13557
13558 * localedata/locales/wa_BE (country_name): Reword
13559 "Beljike" -> "Beldjike".
13560
13561 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13562
13563 [BZ #23272]
13564 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13565 cases of non-finite arguments.
13566 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13567
13568 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13569
13570 [BZ #23174]
13571 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13572
13573 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13574
13575 [BZ #23264]
13576 * include/unistd.h (__execvpex): New prototype.
13577 * posix/Makefile (tests): Add tst-spawn4.
13578 (tests-internal): Add tst-spawn4-compat.
13579 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13580 * posix/tst-spawn4-compat.c: New file.
13581 * posix/tst-spawn4.c: Likewise.
13582 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13583 binaries as shell scripts.
13584 * sysdeps/posix/spawni.c (__spawni): Likewise.
13585
13586 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13587
13588 [BZ #23145]
13589 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13590 ($(all-built-dso:=.dynsym): New target.
13591 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13592 ($(objpfx)check-initfini.out): New target.
13593 (generated): Add check-initfini.out.
13594 * scripts/check-initfini.awk: New file.
13595 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13596 (_fini): Likewise.
13597 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13598 (_fini): Likewise.
13599 * sysdeps/arm/crti.S (_init): Mark as hidden.
13600 (_fini): Likewise.
13601 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13602 (_fini): Likewise.
13603 * sysdeps/i386/crti.S (_init): Mark as hidden.
13604 (_fini): Likewise.
13605 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13606 (_fini): Likewise.
13607 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13608 (_fini): Likewise.
13609 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13610 (_fini): Likewise.
13611 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13612 (_fini): Likewise.
13613 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13614 (_fini): Likewise.
13615 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13616 (_fini): Likewise.
13617 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13618 (_fini): Likewise.
13619 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13620 (_fini): Likewise.
13621 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13622 (_fini): Likewise.
13623 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13624 (_fini): Likewise.
13625 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13626 (_fini): Likewise.
13627 * sysdeps/sh/crti.S (_init): Mark as hidden.
13628 (_fini): Likewise.
13629 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13630 (_fini): Likewise.
13631 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13632 (_fini): Likewise.
13633
13634 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13635
13636 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13637 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13638 and TF redirection to KFtype and KF only when the default
13639 long double type is not the IEEE 128-bit floating point type.
13640
13641 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13642
13643 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13644 macro.
13645 (HWCAP_USCAT): Likewise.
13646 (HWCAP_ILRCPC): Likewise.
13647 (HWCAP_FLAGM): Likewise.
13648 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13649 Increase to 28.
13650 (_dl_aarch64_cap_flags): Add new flag names.
13651
13652 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13653 (MAP_FIXED_NOREPLACE): New macro.
13654 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13655 (MAP_FIXED_NOREPLACE): Likewise.
13656 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13657 (MAP_FIXED_NOREPLACE): Likewise.
13658 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13659 (MAP_FIXED_NOREPLACE): Likewise.
13660 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13661 (MAP_FIXED_NOREPLACE): Likewise.
13662 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13663 (MAP_FIXED_NOREPLACE): Likewise.
13664 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13665 (MAP_FIXED_NOREPLACE): Likewise.
13666 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13667 (MAP_FIXED_NOREPLACE): Likewise.
13668 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13669 (MAP_FIXED_NOREPLACE): Likewise.
13670 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13671 (MAP_FIXED_NOREPLACE): Likewise.
13672 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13673 (MAP_FIXED_NOREPLACE): Likewise.
13674 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13675 (MAP_FIXED_NOREPLACE): Likewise.
13676 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13677 (MAP_FIXED_NOREPLACE): Likewise.
13678 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13679 (MAP_FIXED_NOREPLACE): Likewise.
13680 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13681 (MAP_FIXED_NOREPLACE): Likewise.
13682
13683 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13684 version to 4.17.
13685
13686 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13687
13688 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13689 version to 4.17
13690
13691 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13692
13693 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13694 int.
13695 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13696
13697 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13698
13699 * benchtests/scripts/compare_string.py: (process_results) Catch
13700 exception in non-existent base_func and catch exception in
13701 non-existent attribute.
13702 (parse_file) Catch exception if input file does not exist.
13703
13704 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13705
13706 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13707 options to avoid diff calculation and omit header, respectively.
13708 (main): process --no-diff and --no-header
13709
13710 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13711 H.J. Lu <hongjiu.lu@intel.com>
13712
13713 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13714 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13715 wcsncmp-sse2.
13716 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13717 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13718 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13719 and __wcsncmp_sse2.
13720 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13721 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13722 AVX unaligned load is fast and vzeroupper is preferred.
13723 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13724 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13725 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13726 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13727 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13728 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13729 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13730 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13731 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13732 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13733 is undefined.
13734
13735 2018-06-01 Florian Weimer <fweimer@redhat.com>
13736
13737 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13738 configuring with --disable-multi-arch, building with
13739 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13740 Haswell-era CPU.
13741
13742 2018-06-01 Florian Weimer <fweimer@redhat.com>
13743
13744 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13745 results from building with “-march=x86-64 -mtune=generic
13746 -mfpmath=sse” and running on a Haswell-era CPU.
13747
13748 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13749
13750 [BZ #18473]
13751 * soft-fp/sqrttf2.c: Remove file.
13752 * soft-fp/sqrtdf2.c: Move to ....
13753 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13754 <shlib-compat.h>.
13755 (__sqrtdf2): Make conditional on
13756 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13757 symbol.
13758 * soft-fp/sqrtsf2.c: Move to ....
13759 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13760 <shlib-compat.h>.
13761 (__sqrtsf2): Make conditional on
13762 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13763 symbol.
13764 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13765 (gcc-double-routines): Remove sqrtdf2.
13766 (gcc-quad-routines): Remove sqrttf2.
13767 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13768 Do not filter out sqrtsf2 and sqrtdf2.
13769 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13770 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13771
13772 2018-06-01 Florian Weimer <fweimer@redhat.com>
13773
13774 * sysdeps/generic/libcidn.abilist: Remove file.
13775
13776 2018-06-01 Florian Weimer <fweimer@redhat.com>
13777
13778 [BZ #23236]
13779 * libio/strfile.h (struct _IO_str_fields): Rename members to
13780 discourage their use and add comment.
13781 (_IO_STR_DYNAMIC): Remove unused macro.
13782 * libio/strops.c (_IO_str_init_static_internal): Do not use
13783 callback pointers. Call malloc and free.
13784 (_IO_str_overflow): Do not use callback pointers. Call malloc
13785 and free.
13786 (enlarge_userbuf): Likewise.
13787 (_IO_str_finish): Call free.
13788 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13789 _allocate_buffer_unused.
13790 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13791 and free.
13792 (enlarge_userbuf): Likewise.
13793 (_IO_wstr_finish): Call free.
13794 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13795 _allocate_buffer_unused, _free_buffer_unused.
13796 * libio/memstream.c (__open_memstream): Likewise.
13797 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13798 * libio/wmemstream.c (open_wmemstream): Likewise.
13799
13800 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13801
13802 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13803 AMD Ryzen 7 1800X.
13804
13805 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13806
13807 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13808 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13809 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13810 New file.
13811 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13812 Likewise.
13813 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13814
13815 2018-05-29 Florian Weimer <fweimer@redhat.com>
13816
13817 * support/Makefile (libsupport-routines): Add
13818 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13819 xpthread_barrierattr_setpshared.
13820 * support/xpthread_barrierattr_destroy.c: New file.
13821 * support/xpthread_barrierattr_init.c: Likewise.
13822 * support/xpthread_barrierattr_setpshared.c: Likewise.
13823
13824 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13825
13826 [BZ #23206]
13827 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13828 _r_debug and update DT_DEBUG for debugger.
13829
13830 2018-05-29 Florian Weimer <fweimer@redhat.com>
13831
13832 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13833 (tst-strtod5i.out): Likewise.
13834
13835 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13836
13837 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13838 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13839 (sparc64-quad-routines): New variable. Moved from ....
13840 [$(subdir) = soft-fp] (sysdep_routines): Add
13841 $(sparc64-quad-routines). Moved from ....
13842 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13843 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13844 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13845 moved from ....
13846 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13847 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13848 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13849 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13850 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13851 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13852 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13853 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13854 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13855 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13856 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13857 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13858 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13859 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13860 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13861 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13862 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13863 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13864 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13865 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13866 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13867 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13868 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13869 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13870 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13871 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13872 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13873 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13874 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13875 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13876 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13877 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13878 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13879 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13880 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13881 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13882 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13883 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13884 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13885 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13886 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13887 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13888 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13889 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13890 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13891 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13892 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13893 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13894 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13895 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13896 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13897 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13898 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13899 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13900 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13901 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13902 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13903 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13904
13905 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13906 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13907 (sparc32-quad-routines): New variable. Moved from ....
13908 [$(subdir) = soft-fp] (sysdep_routines): Add
13909 $(sparc32-quad-routines). Moved from ....
13910 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13911 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13912 moved from ....
13913 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13914 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13915 * sysdeps/sparc/sparc32/q_add.c: ... here.
13916 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13917 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13918 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13919 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13920 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13921 * sysdeps/sparc/sparc32/q_div.c: ... here.
13922 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13923 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13924 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13925 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13926 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13927 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13928 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13929 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13930 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13931 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13932 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13933 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13934 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13935 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13936 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13937 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13938 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13939 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13940 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13941 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13942 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13943 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13944 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13945 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13946 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13947 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13948 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13949 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13950 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13951 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13952 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13953 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13954 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13955 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13956 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13957 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13958 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13959 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13960 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13961 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13962 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13963 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13964 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13965 * sysdeps/sparc/sparc32/q_util.c: ... here.
13966 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13967 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13968 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13969 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13970
13971 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13972 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13973
13974 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13975 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13976 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13977 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13978
13979 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13980
13981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13982 powerpc/soft-fp.
13983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13984 Likewise.
13985 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13986 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13987
13988 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13989
13990 [BZ #23171]
13991 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13992 double version.
13993
13994 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13995
13996 * sysdeps/sh/Implies: Remove sh/soft-fp.
13997 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13998 * sysdeps/sh/sfp-machine.h: ... here.
13999
14000 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
14001
14002 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14003 (__mempcpy_erms): Skip zero length.
14004 (__memmove_erms): Likewise.
14005 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14006 (__memset_erms): Likewise.
14007
14008 2018-05-23 Joseph Myers <joseph@codesourcery.com>
14009
14010 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
14011 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
14012 Add functions moved from ....
14013 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
14014 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
14015 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
14016 from ....
14017 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
14018 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
14019 * sysdeps/alpha/e_sqrtl.c: ... here.
14020 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
14021 * sysdeps/alpha/local-soft-fp.h: ... here.
14022 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
14023 * sysdeps/alpha/ots_add.c: ... here.
14024 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
14025 * sysdeps/alpha/ots_cmp.c: ... here.
14026 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
14027 * sysdeps/alpha/ots_cmpe.c: ... here.
14028 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
14029 * sysdeps/alpha/ots_cvtqux.c: ... here.
14030 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
14031 * sysdeps/alpha/ots_cvtqx.c: ... here.
14032 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
14033 * sysdeps/alpha/ots_cvttx.c: ... here.
14034 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
14035 * sysdeps/alpha/ots_cvtxq.c: ... here.
14036 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
14037 * sysdeps/alpha/ots_cvtxt.c: ... here.
14038 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
14039 * sysdeps/alpha/ots_div.c: ... here.
14040 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
14041 * sysdeps/alpha/ots_mul.c: ... here.
14042 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
14043 * sysdeps/alpha/ots_nintxq.c: ... here.
14044 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
14045 * sysdeps/alpha/ots_sub.c: ... here.
14046 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
14047 * sysdeps/alpha/sfp-machine.h: ... here.
14048
14049 2018-05-23 Florian Weimer <fweimer@redhat.com>
14050
14051 [BZ #19728]
14052 [BZ #19729]
14053 [BZ #22247]
14054 CVE-2016-6261
14055 CVE-2016-6263
14056 CVE-2017-14062
14057 Switch to extern IDNA implementation (libidn2).
14058 * libidn: Remove subdirectory.
14059 * LICENSES: Do not mention licensing conditions for the removed
14060 libidn code.
14061 * config.h.in (HAVE_LIBIDN): Remove.
14062 * include/dlfcn.h (__libc_dlopen): Update comment.
14063 * include/idna.h: Remove file.
14064 * inet/Makefile (routines): Add idna.
14065 (tests-static, tests-internal): Add tst-idna_name_classify.
14066 (LOCALES): Generate locales for tests.
14067 (tst-idna_name_classify.out): Depend on generated locales.
14068 * inet/idna_name_classify.c: New file.
14069 * inet/tst-idna_name_classify.c: Likewise.
14070 * inet/net-internal.h (__idna_to_dns_encoding)
14071 (__idna_from_dns_encoding): Declare.
14072 * inet/net-internal.h (enum idna_name_classification): Define.
14073 (__idna_name_classify): Declare.
14074 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
14075 __idna_from_dns_encoding.
14076 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
14077 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
14078 name as a fallback in case of encoding errors.
14079 (getnameinfo): Use DEPRECATED_NI_IDN.
14080 * inet/idna.c: New file.
14081 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
14082 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
14083 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
14084 (modules-names): Add tst-no-libidn2.
14085 (extra-test-objs): Add tst-no-libidn2.os.
14086 (LDFLAGS-tst-no-libidn2.so): Set soname.
14087 (LOCALES): Set, and generate locales.
14088 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
14089 (tst-resolv-ai_idn-latin1): Likewise.
14090 (tst-resolv-ai_idn-nolibidn2): Likewise.
14091 (tst-resolv-ai_idn.out): Depend on locales.
14092 (tst-resolv-ai_idn-latin1.out): Depend on locales.
14093 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
14094 tst-no-libidn2.so.
14095 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
14096 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
14097 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
14098 * resolv/tst-resolv-ai_idn.c: New file.
14099 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
14100 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
14101 * resolv/tst-no-libidn2.c: Likewise.
14102 * support/support_format_addrinfo.c (format_ai_flags): Do not
14103 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
14104 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
14105 (gaih_inet): Call __idna_to_dns_encoding and
14106 __idna_from_dns_encoding, and use the original (punycode) name if
14107 __idna_from_dns_encoding fails due to an encoding error.
14108 (getaddrinfo): Use DEPRECATED_AI_IDN.
14109 * sysdeps/unix/inet/Subdirs (libidn): Remove.
14110 * sysdeps/unix/inet/configure: Remove file.
14111 * sysdeps/unix/inet/configure.ac: Likewise.
14112
14113 2018-05-23 Florian Weimer <fweimer@redhat.com>
14114
14115 Implement allocate_once.
14116 * include/allocate_once.h: New file.
14117 * misc/allocate_once.c: Likewise.
14118 * misc/tst-allocate_once.c: Likewise.
14119 * misc/Makefile (routines): Add allocate_once.
14120 (tests-internal): Add tst-allocate_once.
14121 (generated): Add tst-allocate_once.mtrace,
14122 tst-allocate_once-mem.out.
14123 (tests-special): Add tst-allocate_once-mem.out.
14124 (tst-allocate_once-ENV): Set MALLOC_TRACE.
14125 (tst-allocate_once-mem.out): Call mtrace.
14126 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
14127
14128 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
14129
14130 [BZ #23196]
14131 * string/test-memcpy.c (do_test1): New function.
14132 (test_main): Call it.
14133
14134 2018-05-23 Andreas Schwab <schwab@suse.de>
14135
14136 [BZ #23196]
14137 CVE-2018-11237
14138 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
14139 (L(preloop_large)): Save initial destination pointer in %r11 and
14140 use it instead of %rax after the loop.
14141 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
14142
14143 2018-05-22 Joseph Myers <joseph@codesourcery.com>
14144
14145 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14146 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14147 -I../soft-fp. Moved from ....
14148 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
14149 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14150 * sysdeps/aarch64/e_sqrtl.c: ... here.
14151 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14152 * sysdeps/aarch64/sfp-machine.h: ... here.
14153
14154 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14155 -Wmaybe-uninitialized around access to fq[0].
14156 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14157 Likewise.
14158
14159 [BZ #18471]
14160 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14161 aliases for non-libc case of versioned symbols.
14162 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14163 (llseek): Define as compat symbol if
14164 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14165 with link warning.
14166 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14167 Make into a compat symbol, disabled for minimum symbol version
14168 GLIBC_2.28 and later.
14169 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14170
14171 2018-05-22 Florian Weimer <fweimer@redhat.com>
14172
14173 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14174 not add -mpreferred-stack-boundary=4.
14175 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14176 (stack-align-test-flags): Likewise.
14177 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14178 Likewise.
14179 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14180 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14181 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14182 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14183 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14184 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14185 (CFLAGS-tst-align2.c): Likewise.
14186
14187 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14188
14189 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14190 (index_arch_Prefer_FSRM): Likewise.
14191 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14192 Also check Prefer_FSRM.
14193 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14194 Also return OPTIMIZE (erms) for Prefer_FSRM.
14195
14196 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14197
14198 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14199 (index_cpu_FSRM): Likewise.
14200 (reg_FSRM): Likewise.
14201
14202 2018-05-18 Joseph Myers <joseph@codesourcery.com>
14203
14204 * math/gen-tgmath-tests.py: Import sys.
14205 (Tests.__init__): Initialize macros_seen.
14206 (Tests.add_tests): Add macro to macros_seen. Only generate tests
14207 if requested to do so for this macro.
14208 (Tests.add_all_tests): Take argument for macro for which to
14209 generate tests.
14210 (Tests.check_macro_list): New function.
14211 (main): Handle check-list argument and argument specifying macro
14212 for which to generate tests.
14213 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14214 [PYTHON] (tgmath3-macro-tests): Likewise.
14215 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14216 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14217 not test-tgmath3.c.
14218 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14219 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14220 to CFLAGS.
14221 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14222 [PYTHON] ($(foreach
14223 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
14224 rule.
14225 [PYTHON] (tests-special): Add
14226 $(objpfx)test-tgmath3-macro-list.out.
14227 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14228
14229 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14230 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14231 later.
14232
14233 [BZ #22639]
14234 * time/tzset.c (SECSPERDAY): Cast to time_t.
14235 * time/tst-y2039.c: New file.
14236 * time/Makefile (tests): Add tst-y2039.
14237
14238 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14239
14240 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14241 (PREFETCH_ONE_SET): Remove duplicate line.
14242
14243 2018-05-17 Florian Weimer <fweimer@redhat.com>
14244
14245 * sysdeps/generic/math-type-macros-double.h: Include
14246 <math-nan-payload-double.h> after <libm-alias-double.h>.
14247 * sysdeps/generic/math-type-macros-float.h: Include
14248 <math-nan-payload-float.h> after <libm-alias-float.h>.
14249 * sysdeps/generic/math-type-macros-float128.h: Include
14250 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14251 * sysdeps/generic/math-type-macros-ldouble.h: Include
14252 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14253
14254 2018-05-17 Andreas Schwab <schwab@suse.de>
14255
14256 * resolv/res_send.c (__res_context_send): Don't set errno when
14257 returing error after malloc failure.
14258
14259 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
14260
14261 * nptl/allocatestack.c (allocate_stack): Remove the
14262 !__ASSUME_PRIVATE_FUTEX paths.
14263 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14264 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14265 Likewise.
14266 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14267 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14268 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14269 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14270 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14271 !__ASSUME_PRIVATE_FUTEX path.
14272 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14273 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14274 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14275 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14276 !__ASSUME_PRIVATE_FUTEX macros.
14277 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14278 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14279 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14280 * sysdeps/unix/sysv/linux/kernel-features.h
14281 (__ASSUME_PRIVATE_FUTEX): Removed.
14282
14283 2018-05-17 Joseph Myers <joseph@codesourcery.com>
14284
14285 * math/Makefile (libm-narrow-fns): Add div.
14286 (libm-test-funcs-narrow): Likewise.
14287 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14288 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14289 * math/gen-auto-libm-tests.c (test_functions): Add div.
14290 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14291 (NARROW_DIV_ROUND_TO_ODD): Likewise.
14292 (NARROW_DIV_TRIVIAL): Likewise.
14293 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14294 macro.
14295 (__ddivl): Likewise.
14296 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14297 ddiv.
14298 (CFLAGS-nldbl-ddiv.c): New variable.
14299 (CFLAGS-nldbl-fdiv.c): Likewise.
14300 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14301 __nldbl_ddivl.
14302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14303 prototype.
14304 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14305 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14306 * math/auto-libm-test-in: Add tests of div.
14307 * math/auto-libm-test-out-narrow-div: New generated file.
14308 * math/libm-test-narrow-div.inc: New file.
14309 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14310 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14311 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14312 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14313 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14314 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14315 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14316 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14317 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14318 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14319 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14320 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14321 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14322 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14323 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14324 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14325 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14326 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14327 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14328 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14353
14354 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14355
14356 [BZ #23178]
14357 * nscd/nscd-client.h (sendfileall): Remove prototype.
14358 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14359 (handle_request): Use writeall instead of sendfileall.
14360 * nscd/aicache.c (addhstaiX): Likewise.
14361 * nscd/grpcache.c (cache_addgr): Likewise.
14362 * nscd/hstcache.c (cache_addhst): Likewise.
14363 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14364 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14365 * nscd/pwdcache.c (cache_addpw): Likewise.
14366 * nscd/servicescache.c (cache_addserv): Likewise.
14367 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14368 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14369 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14370 Remove define.
14371
14372 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14373
14374 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14375 Include <string/strncat.c>.
14376 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14377 alias.
14378 (__GI___strncat): New hidden alias.
14379
14380 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14381
14382 * sysdeps/mips/mips32/libm-test-ulps: Update.
14383 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14384
14385 2018-05-16 Florian Weimer <fweimer@redhat.com>
14386
14387 * support/Makefile (libsupport-routines): Add support_quote_blob,
14388 support_test_compare_blob.
14389 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14390 * support/check.h (TEST_COMPARE_BLOB): Define.
14391 (support_test_compare_blob): Declare.
14392 * support/support.h (support_quote_blob): Declare.
14393 * support/support_quote_blob.c: New file.
14394 * support/support_test_compare_blob.c: Likewise.
14395 * support/tst-support_quote_blob.c: Likewise.
14396 * support/tst-test_compare_blob.c: Likewise.
14397
14398 2018-05-16 Florian Weimer <fweimer@redhat.com>
14399
14400 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14401 of <strtod_nan_double.h>.
14402 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14403 instead of SET_MANTISSA.
14404 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14405 of include <strtod_nan_float.h>.
14406 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14407 instead of <strtod_nan_ldouble.h>.
14408 * stdlib/strtod_nan_double.h: Move to ...
14409 * sysdeps/generic/math-nan-payload-double.h: ... here.
14410 (FLOAT): Remove definition.
14411 (SET_MANTISSA): Rename to ...
14412 (SET_NAN_PAYLOAD): ... this.
14413 * stdlib/strtod_nan_float.h: Move to ...
14414 * sysdeps/generic/math-nan-payload-float.h: ... here.
14415 (FLOAT): Remove definition.
14416 (SET_MANTISSA): Rename to ...
14417 (SET_NAN_PAYLOAD): ... this.
14418 * sysdeps/generic/math-type-macros-double.h: Include
14419 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14420 instead of <math-svid-compat.h>.
14421 * sysdeps/generic/math-type-macros-float.h: Include
14422 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14423 instead of <math-svid-compat.h>.
14424 * sysdeps/generic/math-type-macros-float128.h: Include
14425 <math-nan-payload-float128.h>.
14426 * sysdeps/generic/math-type-macros-ldouble.h: Include
14427 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14428 instead of <math-svid-compat.h>.
14429 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14430 check for definition.
14431 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14432 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14433 Include <ieee754_float128.h>.
14434 (FLOAT): Remove definition.
14435 (SET_MANTISSA): Rename to ...
14436 (SET_NAN_PAYLOAD): ... this.
14437 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14438 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14439 Do not include <float128_private.h>.
14440 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14441 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14442 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14443 (FLOAT): Remove definition.
14444 (SET_MANTISSA): Rename to ...
14445 (SET_NAN_PAYLOAD): ... this.
14446 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14447 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14448 (FLOAT): Remove definition.
14449 (SET_MANTISSA): Rename to ...
14450 (SET_NAN_PAYLOAD): ... this.
14451 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14452 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14453 (FLOAT): Remove definition.
14454 (SET_MANTISSA): Rename to ...
14455 (SET_NAN_PAYLOAD): ... this.
14456 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14457 of "../stdlib/strtod_nan_double.h".
14458 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14459 of "../stdlib/strtod_nan_float.h".
14460 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14461 instead of "../stdlib/strtod_nan_ldouble.h".
14462 * manual/arith.texi (Parsing of Floats): Adjust comment.
14463
14464 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14465
14466 * math/Makefile (libm-narrow-fns): Add mul.
14467 (libm-test-funcs-narrow): Likewise.
14468 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14469 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14470 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14471 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14472 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14473 (NARROW_MUL_TRIVIAL): Likewise.
14474 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14475 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14476 macro.
14477 (__dmull): Likewise.
14478 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14479 dmul.
14480 (CFLAGS-nldbl-dmul.c): New variable.
14481 (CFLAGS-nldbl-fmul.c): Likewise.
14482 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14483 __nldbl_dmull.
14484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14485 prototype.
14486 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14487 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14488 * math/auto-libm-test-in: Add tests of mul.
14489 * math/auto-libm-test-out-narrow-mul: New generated file.
14490 * math/libm-test-narrow-mul.inc: New file.
14491 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14492 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14493 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14494 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14495 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14496 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14497 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14498 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14499 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14500 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14501 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14502 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14503 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14504 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14505 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14506 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14507 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14508 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14509 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14510 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14511 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14512 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14513 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14514 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14515 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14519 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14520 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14521 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14527 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14528 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14529 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14531 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14532 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14535
14536 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14537
14538 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14539 with *%eax in call.
14540
14541 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14542
14543 * sysdeps/i386/ldsodefs.h: Removed.
14544 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14545 * sysdeps/x86/ldsodefs.h: This.
14546 (La_i86_regs): New.
14547 (La_i86_retval): Likewise.
14548 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14549 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14550
14551 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14552
14553 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14554 unnecessary testl.
14555
14556 2018-05-13 Alan Modra <amodra@gmail.com>
14557
14558 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14559 R_PARISC_TLS_DTPOFF32 reloc addend.
14560
14561 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14562
14563 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14564 * math/math.h: Restrict the prototype definition for the functions
14565 issignaling(_Float128) and iszero(_Float128); and template
14566 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14567 __HAVE_FLOAT128_UNLIKE_LDBL.
14568 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14569 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14570 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14571 __f128() constants; define the type _Float128 as long double;
14572 and reuse long double in __CFLOAT128.
14573
14574 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14575
14576 * sysdeps/generic/math_private.h: Do not include
14577 <math-barriers.h>.
14578 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14579 <math_private.h>.
14580 * math/fromfp.h: Include <math-barriers.h>.
14581 * math/math-narrow.h: Likewise.
14582 * math/s_nextafter.c: Likewise.
14583 * math/s_nexttowardf.c: Likewise.
14584 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14585 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14586 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14587 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14588 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14589 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14590 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14591 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14592 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14593 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14594 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14595 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14596 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14597 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14598 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14599 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14600 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14601 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14602 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14603 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14604 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14605 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14606 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14607 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14608 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14609 * sysdeps/ieee754/k_standardl.c: Likewise.
14610 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14611 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14612 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14613 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14614 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14615 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14616 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14617 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14618 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14619 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14620 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14621 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14622 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14623 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14624 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14625 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14626 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14627 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14628 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14629 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14630 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14631 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14632
14633 2018-05-11 Florian Weimer <fweimer@redhat.com>
14634
14635 Use 64-bit epoch values in the time zone file parser.
14636 * include/time.h (internal_time_t): Define.
14637 (__tzfile_compute): Use it.
14638 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14639 member.
14640 (transitions): Switch to internal_time_t.
14641 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14642 types.
14643 (__tzfile_compute): Use internal_time_t for timer argument. Check
14644 for truncation before calling __offtime.
14645
14646 2018-05-11 Florian Weimer <fweimer@redhat.com>
14647
14648 [BZ #23166]
14649 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14650 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14651 Likewise.
14652 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14653 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14654 export without --enable-obsolete-rpc.
14655 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14656 symbol. This should not have been exported, ever.
14657
14658 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14659
14660 [BZ #23152]
14661 * localedata/locales/gd_GB (abmon): Fix typo in May:
14662 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14663
14664 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14665
14666 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14667 Use multiple registers to copy data in loop tail.
14668
14669 * sysdeps/aarch64/multiarch/memmove_falkor.S
14670 (__memmove_falkor): Use multiple registers to move data in
14671 loop tail.
14672
14673 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14674
14675 * math/math-underflow.h: New file.
14676 * sysdeps/generic/math_private.h: Do not include <float.h>.
14677 (fabs_tg): Remove macro. Moved to math-underflow.h.
14678 (min_of_type_f): Likewise.
14679 (min_of_type_): Likewise.
14680 (min_of_type_l): Likewise.
14681 (min_of_type_f128): Likewise.
14682 (min_of_type): Likewise.
14683 (math_check_force_underflow): Likewise.
14684 (math_check_force_underflow_nonneg): Likewise.
14685 (math_check_force_underflow_complex): Likewise.
14686 * math/e_exp2_template.c: Include <math-underflow.h>.
14687 * math/k_casinh_template.c: Likewise.
14688 * math/s_catan_template.c: Likewise.
14689 * math/s_catanh_template.c: Likewise.
14690 * math/s_ccosh_template.c: Likewise.
14691 * math/s_cexp_template.c: Likewise.
14692 * math/s_clog10_template.c: Likewise.
14693 * math/s_clog_template.c: Likewise.
14694 * math/s_csin_template.c: Likewise.
14695 * math/s_csinh_template.c: Likewise.
14696 * math/s_csqrt_template.c: Likewise.
14697 * math/s_ctan_template.c: Likewise.
14698 * math/s_ctanh_template.c: Likewise.
14699 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14700 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14701 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14702 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14703 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14704 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14705 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14706 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14707 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14708 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14709 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14710 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14711 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14712 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14713 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14714 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14715 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14716 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14717 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14718 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14719 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14720 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14721 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14722 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14723 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14724 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14725 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14726 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14727 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14728 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14729 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14730 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14731 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14732 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14733 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14734 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14735 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14736 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14737 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14738 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14739 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14740 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14741 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14742 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14743 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14744 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14745 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14746 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14747 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14748 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14749 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14750 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14751 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14752 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14753 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14754 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14755 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14756 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14757 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14758 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14759 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14760 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14761 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14762 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14763 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14764 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14765 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14766 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14767 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14768 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14769 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14770 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14771 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14772 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14773 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14774 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14775 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14776 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14777 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14778 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14779 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14780 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14781 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14782 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14783
14784 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14785
14786 * sysdeps/generic/math-barriers.h: New file.
14787 * sysdeps/generic/math_private.h [!math_opt_barrier]
14788 (math_opt_barrier): Move to math-barriers.h.
14789 [!math_opt_barrier] (math_force_eval): Likewise.
14790 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14791 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14792 math-barriers.h.
14793 (math_force_eval): Likewise.
14794 * sysdeps/alpha/fpu/math-barriers.h: New file.
14795 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14796 math-barriers.h.
14797 (math_force_eval): Likewise.
14798 * sysdeps/x86/fpu/math-barriers.h: New file.
14799 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14800 math-barriers.h.
14801 (math_force_eval): Likewise.
14802 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14803 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14804 multiple-include guard for rename.
14805 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14806 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14807 math-barriers.h.
14808 (math_force_eval): Likewise.
14809
14810 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14811
14812 [BZ #22786]
14813 CVE-2018-11236
14814 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14815 computation.
14816 * stdlib/Makefile (test-bz22786): New test.
14817 * stdlib/test-bz22786.c: New test.
14818
14819 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14820
14821 * include/math-narrow-eval.h: New file. Contents moved from ....
14822 * sysdeps/generic/math_private.h: ... here.
14823 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14824 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14825 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14826 * stdlib/strtod_l.c: Likewise.
14827 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14828 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14829 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14830 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14831 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14832 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14833 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14834 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14835 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14836 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14837 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14838 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14839 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14840 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14841 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14842 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14843 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14844 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14845 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14846 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14847 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14848 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14849 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14850 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14851 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14852 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14853 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14854 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14855 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14856
14857 2018-05-08 Andreas Schwab <schwab@suse.de>
14858
14859 * sysdeps/nptl/internaltypes.h: Fix comment.
14860
14861 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14862
14863 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14864 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14865 hidden.
14866
14867 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14868
14869 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14870 of I into loop header.
14871 * benchtests/bench-memmove-walk.c
14872 (test_main): Likewise.
14873
14874 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14875
14876 Revert:
14877 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14878 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14879
14880 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14881
14882 [BZ #20419]
14883 * elf/dl-load.c (open_verify): Fix stack overflow.
14884 * elf/Makefile (tst-big-note): New test.
14885 * elf/tst-big-note-lib.S: New.
14886 * elf/tst-big-note.c: New.
14887
14888 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14889
14890 * scripts/abilist.awk: Ignore absolute symbols.
14891 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14892 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14893 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14894 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14895 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14896 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14897 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14898 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14899 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14900 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14901 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14902 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14903 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14911 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14912 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14918 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14919 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14921 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14922 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14923 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14924 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14925 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14926 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14927 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14928 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14929 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14930 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14931 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14932 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14933 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14934 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14935 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14936 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14937 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14938 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14939 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14940 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14941 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14942 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14943 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14944 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14945 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14946 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14947 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14948 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14949 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14950 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14951 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14952 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14953 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14954 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14955 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14956 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14957 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14958 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14959 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14960 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14961 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14962 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14963 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14964 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14965 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14966 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14967 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14968 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14969 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14970 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14971 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14972 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14973 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14974 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14975 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14976 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14977 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14978 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14979 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14980 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14981 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14982 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14983 Likewise.
14984 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14985 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14986 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14987 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14988 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14989 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14990 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14991 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14992 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14993 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14994 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14995 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14996 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14997 Likewise.
14998 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14999 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15000 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
15001 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
15002 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15003 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
15004 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15005 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
15006 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
15007 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
15008 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
15009 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
15010 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
15011 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
15012 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15013 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
15014 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
15015 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15016 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
15017 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15018 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
15019 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
15020 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
15021 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
15022 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15023 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
15024 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
15025 Likewise.
15026 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
15027 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
15028 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
15029 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
15030 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15031 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
15032 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
15033 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
15034 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
15035 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
15036 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
15037 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
15038 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
15039 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15040 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
15041 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
15042 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
15043 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
15044 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15045 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
15046 Likewise.
15047 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
15048 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
15049 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
15050 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15051 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
15052 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15053 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
15054 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
15055 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
15056 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
15057 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15058 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
15059 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
15060 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15061 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
15062 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
15063 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
15064 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
15065 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15066 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
15067 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
15068 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15069 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
15070 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15071 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
15072 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
15073 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
15074 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
15075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
15076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
15078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
15079 Likewise.
15080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
15081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
15082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
15083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
15084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15085 Likewise.
15086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
15087 Likewise.
15088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
15089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
15090 Likewise.
15091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
15092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15093 Likewise.
15094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15095 Likewise.
15096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
15097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
15098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
15099 Likewise.
15100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
15101 Likewise.
15102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
15103 Likewise.
15104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
15105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
15108 Likewise.
15109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
15110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
15111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
15112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
15115 Likewise.
15116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
15117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15118 Likewise.
15119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15120 Likewise.
15121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
15122 Likewise.
15123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
15124 Likewise.
15125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
15126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
15127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
15128 Likewise.
15129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
15130 Likewise.
15131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
15132 Likewise.
15133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
15134 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
15135 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
15136 Likewise.
15137 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
15138 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15139 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
15140 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
15141 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15142 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
15143 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15144 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15145 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15146 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15147 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15148 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15149 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15150 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15151 Likewise.
15152 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15153 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15154 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15155 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15156 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15157 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15158 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15159 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15160 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15161 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15162 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15163 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15164 Likewise.
15165 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15166 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15167 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15168 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15169 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15170 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15171 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15172 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15173 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15174 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15175 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15176 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15177 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15178 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15179 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15180 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15181 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15182 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15183 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15184 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15185 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15186 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15187 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15188 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15189 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15190 Likewise.
15191 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15192 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15193 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15194 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15195 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15196 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15197 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15198 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15199 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15200 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15201 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15202 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15203 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15204 Likewise.
15205 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15206 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15207 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15208 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15209 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15210 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15211 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15212 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15213 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15214 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15215 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15216 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15217 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15218 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15219 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15220 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15221 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15222 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15223 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15224 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15225 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15226 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15227 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15228 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15229 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15230 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15231 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15232 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15233 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15234 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15235 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15236 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15237 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15238 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15239 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15240 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15241 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15242 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15243
15244 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
15245
15246 [BZ #23137]
15247 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15248 Use atomic_load_acquire to load __tid.
15249
15250 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15251
15252 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15253 Restore the pointer into %rdx, after syscall and use %rdx,
15254 instead of %rsi, to restore context.
15255
15256 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15257
15258 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15259 Pop the pointer into %rdx after syscall and use %rdx, instead
15260 of %rsi, to restore context.
15261
15262 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15263
15264 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15265 handlers after setjmp.
15266 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15267 defined.
15268 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15269 <libc-pointer-arith.h>.
15270 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15271 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15272 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15273 _JUMP_BUF_SIGSET_BITS_PER_WORD.
15274 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15275 * sysdeps/x86/__longjmp_cancel.S: New file.
15276 * sysdeps/x86/longjmp.c: Likewise.
15277 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15278
15279 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15280
15281 * NEWS: Add ustat.h deprecation entry.
15282 * bits/ustat.h: Remove file.
15283 * misc/sys/ustat.h: Likewise.
15284 * misc/ustat.h: Likewise.
15285 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15286 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15287 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15288 compatibility mode.
15289 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15290 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15291 generic Linux implementation.
15292
15293 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15294
15295 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15296 * math/w_expl_compat.c: Likewise.
15297 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
15298
15299 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15300
15301 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15302
15303 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15304
15305 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15306 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15307 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15308 Remove.
15309 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15311 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15312 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15313 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15314 and SYSCALL_LL64.
15315
15316 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15317
15318 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15319
15320 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15321 * math/w_asin_template.c: Likewise.
15322 * math/w_atanh_template.c: Likewise.
15323
15324 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15325
15326 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15327 to powerpc/powerpc64/be for big-endian.
15328 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15329 little-endian.
15330
15331 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15332 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15333 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15334 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15335 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15336 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15337 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15338 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15339 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15340 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15341 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15342 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15343 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15344 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15345 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15346 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15347 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15348 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15349 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15350 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15351 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15352 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15353 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15354 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15355 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15356 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15357 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15358 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15359 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15360 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15361 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15362 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15363
15364 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15365 adjusted to imply powerpc64 and older processors on powerpc64/be.
15366 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15367 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15368 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15369 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15370 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15371 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15372 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15373 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15374 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15375 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15376 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15377 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15378 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15379 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15380 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15381 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15382 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15383 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15384 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15385 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15386 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15387 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15388 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15389 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15390 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15391 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15392 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15393 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15394 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15395 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15396 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15397
15398 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15399 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15400 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15401 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15402
15403 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15404 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15405 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15406 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15407
15408 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15409 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15410 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15411 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15412 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15413 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15414 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15415 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15416 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15417 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15418 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15419
15420 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15421 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15422 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15423 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15424 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15425 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15426 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15427 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15428 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15429 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15430 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15431
15432 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15433 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15434 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15435 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15436 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15437 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15438 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15439 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15440 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15441 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15442 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15443 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15444
15445 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15446 and adjusted to imply olders processors.
15447 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15448 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15449 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15450 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15451 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15452 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15453 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15454 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15455 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15456 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15457 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15458
15459 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15460 powerpc64/le.
15461 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15462 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15463
15464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15465 powerpc64le.
15466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15468
15469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15470 powerpc64/be.
15471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15474
15475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15476 powerpc64 and adjusted.
15477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15480 Likewise.
15481
15482 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15483
15484 * sysdeps/tile: Remove.
15485 * sysdeps/unix/sysv/linux/tile: Likewise.
15486 * README (tilegx-*-linux-gnu): Remove from list of supported
15487 configurations.
15488 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15489 contribution of support for generic Linux kernel syscall
15490 interface.
15491 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15492 tilegx configurations.
15493 (Config.install_linux_headers): Do not handle tile.
15494 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15495 in comment.
15496 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15497 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15498 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15499 conditional undefine and redefine.
15500 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15501 in comment.
15502 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15503 conditional undefine and redefine.
15504
15505 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15506
15507 * signal/tst-sigaction.c: New file to test BZ #23069.
15508 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15509
15510 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15511
15512 [BZ #22766]
15513 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15514 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15515 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15516 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15517
15518 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15519
15520 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15521 _DIRENT_MATCHES_DIRENT64 is not defined.
15522 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15523 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15524 is defined.
15525 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15526 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15527
15528 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15529
15530 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15531 version to GCC 8 branch.
15532
15533 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15534
15535 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15536 (check_no_hidden): Use type of original function when declaring
15537 alias.
15538
15539 * sysdeps/unix/sysv/linux/sys/ptrace.h
15540 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15541 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15542 (struct __ptrace_seccomp_metadata): New type.
15543 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15544 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15545 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15546 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15547 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15548 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15549 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15550 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15551 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15552 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15553 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15554 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15555 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15556 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15557 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15558 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15559
15560 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15561
15562 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15563 defined.
15564 * dirent/versionsort.c (versionsort): Likewise.
15565 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15566 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15567 * dirent/versionsort64.c (versionsort64): Likewise.
15568 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15569 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15570 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15571 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15572 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15573 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15574 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15575 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15576 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15577 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15580 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15581 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15582
15583 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15584
15585 * elf/elf.h (NT_PPC_PKEY): New macro.
15586
15587 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15588
15589 [BZ #23094]
15590 * localedata/locales/hr_HR: fix thousands_sep and
15591 mon_thousands_sep
15592
15593 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15594
15595 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15596 (XTABS): Define to TAB3.
15597
15598 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15599
15600 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15601
15602 * dirent/scandir-tail-common.c: New file.
15603 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15604 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15605 * dirent/scandir.c: Use scandir-tail-common.c.
15606 * dirent/scandirat.c: Likewise.
15607 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15608 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15609 if _DIRENT_MATCHES_DIRENT64 is defined.
15610 * dirent/scandirat64.c (scandirat64): Likewise.
15611 * include/dirent.h (__scandir_tail): Only define iff
15612 _DIRENT_MATCHES_DIRENT64 is not defined.
15613 (__scandir64_tail): Define regardless.
15614 (__scandirat, scandirat64): Remove libc_hidden_proto.
15615 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15616 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15618 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15619 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15620 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15621 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15622
15623 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15624
15625 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15626 New macro.
15627 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15628 Increase to 24.
15629 (_dl_aarch64_cap_flags): Add asimdfhm.
15630
15631 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15632
15633 * sysdeps/nios2/libm-test-ulps: Update.
15634
15635 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15636
15637 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15638 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15639
15640 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15641 requirements.
15642 (_DIRENT_MATCHES_DIRENT64): Undef
15643 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15644 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15645 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15646 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15647 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15648 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15649 use getdents64 syscalls as base.
15650 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15651 symbol if required.
15652 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15653 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15654 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15655 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15656 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15657 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15658 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15659 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15660 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15661 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15662 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15663
15664 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15665
15666 * scripts/test_printers_common.py (init_test): Disable lock elision.
15667
15668 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15669
15670 * math/test-tgmath.c (count_double, count_float,
15671 count_ldouble, count_cdouble, count_cfloat,
15672 count_cldouble): Use volatile int.
15673
15674 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15675
15676 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15677 (conformtest-xfail-conds): Add i386-gnu.
15678 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15679 i386-gnu.
15680 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15681 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15682 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15683 msqid_ds.msg_lrpid): Likewise.
15684 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15685 Likewise.
15686 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15687 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15688 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15689 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15690 unsigned int.
15691 (struct statvfs64): Likewise.
15692 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15693 Likewise.
15694 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15695 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15696 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15697 instead of wait_queue.
15698 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15699 instead of vm_area_struct.
15700 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15701 struct sched_param definition to it.
15702 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15703 * bits/types/struct_sched_param.h: New file.
15704 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15705 <bits/types/struct_sched_param.h> instead of <sched.h>.
15706 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15707 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15708 generic version but include <bits/pthreadtypes.h> to make struct
15709 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15710 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15711 non-compliant.
15712 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15713 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15714 [__USE_XOPEN] (OFDEL): New macro.
15715 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15716 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15717 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15718 prototypes.
15719 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15720 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15721 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15722 non-compliant.
15723 * sysdeps/i386/sys/ucontext.h: Likewise.
15724 * sysdeps/m68k/sys/ucontext.h: Likewise.
15725 * sysdeps/mips/sys/ucontext.h: Likewise.
15726 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15727 * sysdeps/mach/hurd/i386/Makefile
15728 (test-xfail-POSIX/fcntl.h/conform): Add.
15729 (test-xfail-POSIX/signal.h/conform): Add.
15730 (test-xfail-POSIX/semaphore.h/conform): Add.
15731 (test-xfail-POSIX/regex.h/conform): Add.
15732 (test-xfail-POSIX/aio.h/conform): Add.
15733 (test-xfail-POSIX/mqueue.h/conform): Add.
15734 (test-xfail-POSIX/sys/types.h/conform): Add.
15735 (test-xfail-UNIX98/fcntl.h/conform): Add.
15736 (test-xfail-UNIX98/netdb.h/conform): Add.
15737 (test-xfail-UNIX98/signal.h/conform): Add.
15738 (test-xfail-UNIX98/semaphore.h/conform): Add.
15739 (test-xfail-UNIX98/regex.h/conform): Add.
15740 (test-xfail-UNIX98/aio.h/conform): Add.
15741 (test-xfail-UNIX98/ftw.h/conform): Add.
15742 (test-xfail-UNIX98/mqueue.h/conform): Add.
15743 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15744 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15745 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15746 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15747 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15748 (test-xfail-UNIX98/sys/types.h/conform): Add.
15749 (test-xfail-UNIX98/stdlib.h/conform): Add.
15750 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15751 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15752 (test-xfail-POSIX2008/netdb.h/conform): Add.
15753 (test-xfail-POSIX2008/signal.h/conform): Add.
15754 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15755 (test-xfail-POSIX2008/regex.h/conform): Add.
15756 (test-xfail-POSIX2008/aio.h/conform): Add.
15757 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15758 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15759 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15760 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15761 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15762 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15763 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15764 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15765 (test-xfail-XOPEN2K/signal.h/conform): Add.
15766 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15767 (test-xfail-XOPEN2K/regex.h/conform): Add.
15768 (test-xfail-XOPEN2K/aio.h/conform): Add.
15769 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15770 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15771 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15772 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15773 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15774 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15775 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15776 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15777 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15778 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15779 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15780 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15781 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15782 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15783 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15784 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15785 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15786 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15787 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15788 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15789 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15790 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15791 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15792 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15793 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15794 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15795 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15796 i386-gnu.
15797 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15798 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15799
15800 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15801
15802 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15803 --enable-obsolete for powerpc-linux-gnuspe.
15804
15805 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15806
15807 * conform/data/sys/un.h-data: Allow sun_ prefix.
15808 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15809 prototypes.
15810 * sysdeps/mach/include/mach.h: Likewise.
15811 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15812 * sysdeps/mach/include/mach_error.h: Likewise.
15813
15814 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15815
15816 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15817 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15818 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15819 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15820
15821 2018-04-16 Andreas Schwab <schwab@suse.de>
15822
15823 [BZ #19527]
15824 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15825
15826 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15827
15828 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15829 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15830
15831 2018-04-12 DJ Delorie <dj@redhat.com>
15832
15833 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15834 version to 4.16.
15835
15836 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15837
15838 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15839 (struct kernel_sigaction): Use the same definition on 31bit as is used
15840 on 64bit.
15841
15842 2018-04-09 Florian Weimer <fweimer@redhat.com>
15843
15844 [BZ #23037]
15845 * resolv/res_send.c (send_dg): Use designated initializers instead
15846 of assignment to zero-initialize other fields of struct mmsghdr.
15847
15848 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15849
15850 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15851 __READDIR_ALIAS): Undefine after usage.
15852 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15853 __READDIR_R_ALIAS): Likewise.
15854 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15855 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15856 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15857 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15858 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15859 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15860 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15861 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15862 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15863 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15864 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15865 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15866 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15867 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15868 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15869 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15870 * sysdeps/unix/sysv/linux/readdir.c: New file.
15871 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15872 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15873 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15874
15875 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15876
15877 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15878
15879 * manual/charset.texi (Converting a Character): Fix typo.
15880
15881 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15882
15883 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15884
15885 * sysdeps/arm/libm-test-ulps: Update.
15886
15887 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15888 as base implementation.
15889 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15890 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15891 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15892 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15893 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15894 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15895 remove unrequired definitions and update comments.
15896 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15897 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15898 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15899 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15900 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15901 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15902 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15903 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15904 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15905 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15906 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15907 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15908 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15909 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15910 and RESET_SA_RESTORER hooks.
15911
15912 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15913
15914 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15915
15916 2018-04-05 Florian Weimer <fweimer@redhat.com>
15917
15918 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15919 integer overflow, memory leak on error, and indeterminate errno
15920 value. Add a null wide character to terminate the result string.
15921 * manual/charset.texi (Converting a Character): Mention embedded
15922 null bytes in the mbrtowc input string. Explain what happens in
15923 the -2 result case. Do not claim that mbrtowc is simple or
15924 obvious to use. Adjust the description of the code example. Use
15925 @code, not @var, for concrete variables.
15926
15927 2018-04-05 Florian Weimer <fweimer@redhat.com>
15928
15929 * manual/examples/mbstouwcs.c: New file.
15930 * manual/charset.texi (Converting a Character): Include it.
15931
15932 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15933
15934 * include/dirent.h (dirfd): Add hidden proto.
15935 * dirent/dirfd.c (dirfd): Add hidden def.
15936 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15937 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15938
15939 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15940
15941 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15942 sin, cos and sincos to 1 ULP.
15943
15944 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15945
15946 [BZ #19818]
15947 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15948 symbols.
15949 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15950 * elf/tst-absolute-sym.c: New file.
15951 * elf/tst-absolute-sym-lib.c: New file.
15952 * elf/tst-absolute-sym-lib.lds: New file.
15953 * elf/Makefile (tests): Add `tst-absolute-sym'.
15954 (modules-names): Add `tst-absolute-sym-lib'.
15955 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15956 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15957 ($(objpfx)tst-absolute-sym): New dependency.
15958
15959 [BZ #19818]
15960 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15961 parameter.
15962 (SYMBOL_ADDRESS): New macro.
15963 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15964 SYMBOL_ADDRESS for symbol address calculation.
15965 * elf/dl-runtime.c (_dl_fixup): Likewise.
15966 (_dl_profile_fixup): Likewise.
15967 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15968 * elf/rtld.c (dl_main): Likewise.
15969 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15970 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15971 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15972 (elf_machine_rela): Likewise.
15973 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15974 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15975 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15976 (elf_machine_rela): Likewise.
15977 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15978 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15979 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15980 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15981 Likewise.
15982 (elf_machine_reloc): Likewise.
15983 (elf_machine_got_rel): Likewise.
15984 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15985 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15986 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15987 Likewise.
15988 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15989 Likewise.
15990 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15991 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15992 Likewise.
15993 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15994 Likewise.
15995 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15996 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15997 Likewise.
15998 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15999 Likewise.
16000 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
16001 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16002
16003 2018-04-04 Zack Weinberg <zackw@panix.com>
16004
16005 * sysdeps/generic/internal-signals.h: Include signal.h,
16006 sigsetops.h, and stdbool.h.
16007 (__libc_signal_block_all): Actually block all signals.
16008 (__libc_signal_block_app): Likewise.
16009 (__libc_signal_restore_set): Actually restore the signal mask.
16010
16011 2018-04-04 Florian Weimer <fweimer@redhat.com>
16012
16013 inet: Actually build and run tst-deadline.
16014 * inet/Makefile (tests-internal): Add tst-deadline and do not
16015 overwrite the variable.
16016 (tests-static-internal): Remove variable.
16017
16018 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
16019
16020 [BZ #22947]
16021 * bits/uio-ext.h (RWF_APPEND): New.
16022 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
16023 * manual/llio.texi: Document RWF_APPEND.
16024 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
16025 (RWF_SUPPORTED): Add RWF_APPEND.
16026
16027 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16028
16029 [BZ #22391]
16030 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
16031 check for internal nptl signals.
16032 * nptl/sigaction.c (__sigaction): Likewise.
16033 * signal/sigaddset.c (sigaddset): Likewise.
16034 * signal/sigdelset.c (sigdelset): Likewise.
16035 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
16036 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
16037 value.
16038 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
16039 to filter out internal nptl signals.
16040 * signal/tst-sigset.c (do_test): Check ech signal indidually and
16041 also check realtime signals using standard macros.
16042 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
16043 __is_internal_signal, __libc_signal_block_all,
16044 __libc_signal_block_app, __libc_signal_restore_set): New functions.
16045 * sysdeps/nptl/sigfillset.c: Remove file.
16046 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
16047 Change return to bool.
16048 (__clear_internal_signals): Remove SIGTIMER clean since it is
16049 equal to SIGCANEL on Linux.
16050 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
16051 signal set was constructed using standard functions.
16052
16053 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16054
16055 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
16056 ifname is too long.
16057 * hurd/hurdsig.c (interrupted_reply_port_location): Use
16058 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
16059 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
16060 hidden def.
16061 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
16062 * signal/sigaddset.c: Include <sigsetopts.h>.
16063 * signal/sigdelset.c: Likewise.
16064
16065 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16066
16067 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
16068 (__cos): Likewise.
16069 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
16070 logic as sin and cos.
16071
16072 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16073
16074 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
16075 inputs. Return correct sign.
16076 (do_sincos): Remove small input check before do_sin, let do_sin set
16077 the sign.
16078 (__sin): Likewise.
16079 (__cos): Likewise.
16080
16081 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16082
16083 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
16084 (do_cos_slow): Likewise.
16085 (do_sin_slow): Likewise.
16086 (reduce_and_compute): Likewise.
16087 (slow): Likewise.
16088 (slow1): Likewise.
16089 (slow2): Likewise.
16090 (sloww): Likewise.
16091 (sloww1): Likewise.
16092 (sloww2): Likewise.
16093 (bslow): Likewise.
16094 (bslow1): Likewise.
16095 (bslow2): Likewise.
16096 (cslow2): Likewise.
16097
16098 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16099
16100 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
16101 (do_cos): Remove corp parameter and calculations.
16102 (do_sin): Likewise.
16103 (do_sincos): Remove cor variable.
16104 (__sin): Use do_sincos for huge inputs.
16105 (__cos): Likewise.
16106 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16107 (reduce_and_compute_sincos): Remove unused function.
16108
16109 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16110
16111 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
16112 reduce_sincos, improve accuracy to 136 bits.
16113 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
16114 (__sin): Use improved reduction and simplified do_sincos calculation.
16115 (__cos): Likewise.
16116 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
16117
16118 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16119
16120 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
16121 (do_sincos_2): Likewise.
16122 (__sin): Remove middle range reduction case.
16123 (__cos): Likewise.
16124 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
16125 reduction case.
16126
16127 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
16128
16129 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
16130 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
16131 inputs.
16132 (__cos): Likewise.
16133 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
16134
16135 2018-04-03 Joseph Myers <joseph@codesourcery.com>
16136
16137 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16138 version to 4.16
16139
16140 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16141
16142 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
16143 Remove definitions.
16144 (opendir_oflags): Use O_DIRECTORY regardless.
16145 (__opendir, __opendirat): Remove need_isdir_precheck usage.
16146 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16147
16148 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16149
16150 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16151 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16152 macros.
16153 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16154 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16155 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16156 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16157 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16158 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16159
16160 * htl/Makefile: Bump licence to LGPL 2.1+.
16161 * htl/alloca_cutoff.c: Likewise.
16162 * htl/cthreads-compat.c: Likewise.
16163 * htl/lockfile.c: Likewise.
16164 * htl/pt-alloc.c: Likewise.
16165 * htl/pt-cancel.c: Likewise.
16166 * htl/pt-cleanup.c: Likewise.
16167 * htl/pt-create.c: Likewise.
16168 * htl/pt-dealloc.c: Likewise.
16169 * htl/pt-detach.c: Likewise.
16170 * htl/pt-exit.c: Likewise.
16171 * htl/pt-getattr.c: Likewise.
16172 * htl/pt-initialize.c: Likewise.
16173 * htl/pt-internal.h: Likewise.
16174 * htl/pt-join.c: Likewise.
16175 * htl/pt-self.c: Likewise.
16176 * htl/pt-setcancelstate.c: Likewise.
16177 * htl/pt-setcanceltype.c: Likewise.
16178 * htl/pt-sigmask.c: Likewise.
16179 * htl/pt-spin-inlines.c: Likewise.
16180 * htl/pt-testcancel.c: Likewise.
16181 * htl/pt-yield.c: Likewise.
16182 * htl/tests/test-1.c: Likewise.
16183 * htl/tests/test-10.c: Likewise.
16184 * htl/tests/test-11.c: Likewise.
16185 * htl/tests/test-12.c: Likewise.
16186 * htl/tests/test-13.c: Likewise.
16187 * htl/tests/test-14.c: Likewise.
16188 * htl/tests/test-15.c: Likewise.
16189 * htl/tests/test-16.c: Likewise.
16190 * htl/tests/test-17.c: Likewise.
16191 * htl/tests/test-2.c: Likewise.
16192 * htl/tests/test-3.c: Likewise.
16193 * htl/tests/test-4.c: Likewise.
16194 * htl/tests/test-5.c: Likewise.
16195 * htl/tests/test-6.c: Likewise.
16196 * htl/tests/test-7.c: Likewise.
16197 * htl/tests/test-8.c: Likewise.
16198 * htl/tests/test-9.c: Likewise.
16199 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16200 * sysdeps/htl/bits/cancelation.h: Likewise.
16201 * sysdeps/htl/bits/pthread-np.h: Likewise.
16202 * sysdeps/htl/bits/pthread.h: Likewise.
16203 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16204 * sysdeps/htl/bits/semaphore.h: Likewise.
16205 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16206 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16207 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16208 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16209 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16210 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16211 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16212 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16213 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16214 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16215 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16216 * sysdeps/htl/old_pt-atfork.c: Likewise.
16217 * sysdeps/htl/pt-atfork.c: Likewise.
16218 * sysdeps/htl/pt-attr-destroy.c: Likewise.
16219 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16220 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16221 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16222 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16223 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16224 * sysdeps/htl/pt-attr-getscope.c: Likewise.
16225 * sysdeps/htl/pt-attr-getstack.c: Likewise.
16226 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16227 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16228 * sysdeps/htl/pt-attr-init.c: Likewise.
16229 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16230 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16231 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16232 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16233 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16234 * sysdeps/htl/pt-attr-setscope.c: Likewise.
16235 * sysdeps/htl/pt-attr-setstack.c: Likewise.
16236 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16237 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16238 * sysdeps/htl/pt-attr.c: Likewise.
16239 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16240 * sysdeps/htl/pt-barrier-init.c: Likewise.
16241 * sysdeps/htl/pt-barrier-wait.c: Likewise.
16242 * sysdeps/htl/pt-barrier.c: Likewise.
16243 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16244 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16245 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16246 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16247 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16248 * sysdeps/htl/pt-cond-destroy.c: Likewise.
16249 * sysdeps/htl/pt-cond-init.c: Likewise.
16250 * sysdeps/htl/pt-cond-signal.c: Likewise.
16251 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16252 * sysdeps/htl/pt-cond-wait.c: Likewise.
16253 * sysdeps/htl/pt-cond.c: Likewise.
16254 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16255 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16256 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16257 * sysdeps/htl/pt-condattr-init.c: Likewise.
16258 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16259 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16260 * sysdeps/htl/pt-destroy-specific.c: Likewise.
16261 * sysdeps/htl/pt-equal.c: Likewise.
16262 * sysdeps/htl/pt-getconcurrency.c: Likewise.
16263 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16264 * sysdeps/htl/pt-getschedparam.c: Likewise.
16265 * sysdeps/htl/pt-getspecific.c: Likewise.
16266 * sysdeps/htl/pt-init-specific.c: Likewise.
16267 * sysdeps/htl/pt-key-create.c: Likewise.
16268 * sysdeps/htl/pt-key-delete.c: Likewise.
16269 * sysdeps/htl/pt-key.h: Likewise.
16270 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16271 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16272 * sysdeps/htl/pt-mutex-init.c: Likewise.
16273 * sysdeps/htl/pt-mutex-lock.c: Likewise.
16274 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16275 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16276 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16277 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16278 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16279 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16280 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16281 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16282 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16283 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16284 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16285 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16286 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16287 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16288 * sysdeps/htl/pt-mutexattr.c: Likewise.
16289 * sysdeps/htl/pt-once.c: Likewise.
16290 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16291 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16292 * sysdeps/htl/pt-rwlock-init.c: Likewise.
16293 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16294 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16295 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16296 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16297 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16298 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16299 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16300 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16301 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16302 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16303 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16304 * sysdeps/htl/pt-setconcurrency.c: Likewise.
16305 * sysdeps/htl/pt-setschedparam.c: Likewise.
16306 * sysdeps/htl/pt-setschedprio.c: Likewise.
16307 * sysdeps/htl/pt-setspecific.c: Likewise.
16308 * sysdeps/htl/pt-spin.c: Likewise.
16309 * sysdeps/htl/pt-startup.c: Likewise.
16310 * sysdeps/htl/pthread.h: Likewise.
16311 * sysdeps/htl/sem-close.c: Likewise.
16312 * sysdeps/htl/sem-destroy.c: Likewise.
16313 * sysdeps/htl/sem-getvalue.c: Likewise.
16314 * sysdeps/htl/sem-init.c: Likewise.
16315 * sysdeps/htl/sem-open.c: Likewise.
16316 * sysdeps/htl/sem-post.c: Likewise.
16317 * sysdeps/htl/sem-timedwait.c: Likewise.
16318 * sysdeps/htl/sem-trywait.c: Likewise.
16319 * sysdeps/htl/sem-unlink.c: Likewise.
16320 * sysdeps/htl/sem-wait.c: Likewise.
16321 * sysdeps/hurd/htl/pt-kill.c: Likewise.
16322 * sysdeps/i386/htl/pt-machdep.h: Likewise.
16323 * sysdeps/mach/htl/pt-block.c: Likewise.
16324 * sysdeps/mach/htl/pt-spin.c: Likewise.
16325 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16326 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16327 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16328 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16329 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16330 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16331 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16332 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16333 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16334 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16335 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16336 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16337 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16338 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16339 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16340 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16341 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16342 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16343 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16344 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16345 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16346 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16347 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16348 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16349 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16350 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16351 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16352 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16353 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16354 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16355 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16356 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16357 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16358 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16359 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16360 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16361 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16362 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16363 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16364 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16365 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16366 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16367 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16368
16369 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16370 * README: Remove the mention of out-of-tree patches needed for
16371 GNU/Hurd.
16372
16373 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16374 (UTIME_NOW, UTIME_OMIT): Define macros.
16375
16376 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16377 instead of pthread_detach.
16378 (__cthread_fork): Call __pthread_create instead of pthread_create.
16379 (__cthread_keycreate): Call __pthread_key_create instead of
16380 pthread_key_create.
16381 (__cthread_getspecific): Call __pthread_getspecific instead of
16382 pthread_getspecific.
16383 (__cthread_setspecific): Call __pthread_setspecific instead of
16384 pthread_setspecific.
16385 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16386 __pthread_mutex_unlock instead of pthread_mutex_lock and
16387 pthread_mutex_unlock.
16388 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16389 ___pthread_get_cleanup_stack.
16390 (__pthread_get_cleanup_stack): New strong alias.
16391 * htl/pt-create.c: Include <pthreadP.h>.
16392 (entry_point): Call __pthread_exit instead of pthread_exit.
16393 (pthread_create): Rename to __pthread_create.
16394 (pthread_create): New strong alias.
16395 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16396 (pthread_detach): New strong alias.
16397 (__pthread_detach): Call __pthread_cond_broadcast instead of
16398 pthread_cond_broadcast.
16399 * htl/pt-exit.c: Include <pthreadP.h>.
16400 (__pthread_exit): Call __pthread_setcancelstate and
16401 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16402 __pthread_get_cleanup_stack.
16403 * htl/pt-testcancel.c: Include <pthreadP.h>.
16404 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16405 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16406 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16407 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16408 pthread_attr_getstacksize.
16409 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16410 Rename to __pthread_attr_getstackaddr.
16411 (pthread_attr_getstackaddr): New strong alias.
16412 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16413 Rename to __pthread_attr_getstacksize.
16414 (pthread_attr_getstacksize): New strong alias.
16415 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16416 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16417 (pthread_attr_setstack): New strong alias.
16418 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16419 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16420 pthread_attr_getstacksize, pthread_attr_setstacksize and
16421 pthread_attr_setstackaddr.
16422 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16423 Rename to __pthread_attr_setstackaddr.
16424 (pthread_attr_setstackaddr): New strong alias.
16425 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16426 Rename to __pthread_attr_setstacksize.
16427 (pthread_attr_setstacksize): New strong alias.
16428 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16429 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16430 pthread_exit.
16431 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16432 (__pthread_key_create): New hidden def.
16433 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16434 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16435 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16436 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16437 __pthread_setspecific, __pthread_setcancelstate,
16438 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16439 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16440 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16441 declarations.
16442 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16443 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16444 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16445 (pthread_attr_setstackaddr): New strong alias.
16446 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16447 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16448 (pthread_attr_setstacksize): New strong alias.
16449 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16450 (call_exit): Call __pthread_exit instead of pthread_exit.
16451 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16452 (_pthread_mutex_init): New hidden definition.
16453 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16454 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16455 instead of pthread_attr_init and pthread_attr_setstack.
16456
16457 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16458 __vm_deallocate instead of vm_allocate and vm_deallocate.
16459 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16460 setenv.
16461 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16462 of geteuid.
16463 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16464 strdup.
16465 * hurd/siginfo.c: Include <libioP.h>.
16466 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16467 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16468 munmap.
16469 * mach/devstream.c: Include <libioP.h>.
16470 (dealloc_ref): Call __mach_port_deallocate instead of
16471 mach_port_deallocate.
16472 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16473 Call __mach_port_deallocate instead of mach_port_deallocate.
16474 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16475 pathconf.
16476 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16477 munmap.
16478 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16479 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16480 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16481 of munmap.
16482 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16483 of close.
16484 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16485 instead of sysconf.
16486 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16487 __clock_gettime instead of clock_gettime.
16488 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16489 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16490 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16491 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16492 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16493 tcgetattr.
16494 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16495 __clock_gettime and __nanosleep instead of clock_gettime and
16496 nanosleep.
16497 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16498 __hurd_catch_signal.
16499 (hurd_catch_signal): New strong alias.
16500 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16501 __hurd_catch_signal instead of hurd_catch_signal.
16502 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16503 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16504 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16505 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16506 (_hurd_thread_sigstate): Add hidden def.
16507 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16508 mutex_unlock.
16509 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16510 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16511 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16512 __hurd_file_name_path_lookup.
16513 (hurd_file_name_path_lookup): New strong alias.
16514 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16515 hurd_file_name_path_lookup.
16516 * mach/errstring.c (mach_error_type): Add hidden def.
16517 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16518 * mach/mutex-init.c (__mutex_init): Add hidden def.
16519 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16520 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16521 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16522 * sysdeps/mach/hurd/getcwd.c
16523 (_hurd_canonicalize_directory_name_internal): Rename to
16524 __hurd_canonicalize_directory_name_internal.
16525 (_hurd_canonicalize_directory_name_internal): New strong alias.
16526 (__canonicalize_directory_name_internal, __getcwd): Call
16527 __hurd_canonicalize_directory_name_internal instead of
16528 _hurd_canonicalize_directory_name_internal.
16529 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16530 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16531 hidden defs.
16532 * sysdeps/hurd/include/hurd.h: New file.
16533 * sysdeps/hurd/include/hurd/fd.h: New file.
16534 * sysdeps/hurd/include/hurd/signal.h: New file.
16535 * sysdeps/mach/include/lock-intern.h: New file.
16536 * sysdeps/mach/include/mach.h: New file.
16537 * sysdeps/mach/include/mach/mig_support.h: New file.
16538 * sysdeps/mach/include/mach_error.h: New file.
16539 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16540 prototype.
16541 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16542 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16543 _HEADER_H_HIDDEN_DEF macro.
16544 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16545 _hurd_fd_error_signal): Add hidden prototype.
16546 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16547 hidden def.
16548 * libio/iolibio.h (_IO_puts): New hidden prototype.
16549 * libio/ioputs.c (_IO_puts): New hidden def.
16550 * sysdeps/mach/hurd/localplt.data: New file.
16551
16552 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16553 Amos Jeffries <squid3@treenet.co.nz>
16554 David Michael <fedora.dm0@gmail.com>
16555 Marco Gerards <marco@gnu.org>
16556 Marcus Brinkmann <marcus@gnu.org>
16557 Neal H. Walfield <neal@gnu.org>
16558 Pino Toscano <toscano.pino@tiscali.it>
16559 Richard Braun <rbraun@sceen.net>
16560 Roland McGrath <roland@gnu.org>
16561 Samuel Thibault <samuel.thibault@ens-lyon.org>
16562 Thomas DiModica <ricinwich@yahoo.com>
16563 Thomas Schwinge <tschwinge@gnu.org>
16564
16565 * htl: New directory.
16566 * sysdeps/htl: New directory.
16567 * sysdeps/hurd/htl: New directory.
16568 * sysdeps/i386/htl: New directory.
16569 * sysdeps/mach/htl: New directory.
16570 * sysdeps/mach/hurd/htl: New directory.
16571 * sysdeps/mach/hurd/i386/htl: New directory.
16572 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16573 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16574 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16575
16576 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16577
16578 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16579 signals in thread created for runing timers.
16580
16581 2018-04-01 Florian Weimer <fweimer@redhat.com>
16582
16583 * support/support_format_addrinfo.c (support_format_addrinfo):
16584 Include unknown error number in formatted result.
16585
16586 2018-03-29 Florian Weimer <fweimer@redhat.com>
16587
16588 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16589 capture SIGBUS.
16590
16591 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16592
16593 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16594 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16595 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16596 (__ASSUME_CLONE_BACKWARDS): Define.
16597
16598 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16599
16600 [BZ #23024]
16601 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16602 early when linux sentinel value is set.
16603
16604 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16605
16606 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16607
16608 2018-03-27 Andreas Schwab <schwab@suse.de>
16609
16610 [BZ #23005]
16611 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16612 allocation of private copy of nsaddr_list fails.
16613
16614 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16615
16616 [BZ #16552]
16617 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16618 * sysdeps/unix/sysv/linux/umount.c: ... here.
16619 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16620 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16621 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16622 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16624 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16625 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16626
16627 2018-03-26 Andreas Schwab <schwab@suse.de>
16628
16629 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16630 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16631 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16632 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16633 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16634 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16635 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16636 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16637 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16638 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16639 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16640 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16641 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16642 (R_RISCV_NUM): Define.
16643
16644 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16645
16646 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16647 TLS declaration of errno.
16648 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16649 __libc_setup_tls.
16650 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16651 (ARCH_SETUP_TLS): Likewise.
16652 * sysdeps/mach/hurd/libc-start.h: New file copied from
16653 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16654 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16655 instead of __libc_setup_tls.
16656 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16657 __libc_setup_tls before initializing libpthread and running _hurd_init
16658 which starts the signal thread.
16659 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16660 Declare function.
16661 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16662
16663 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16664
16665 [BZ #22998]
16666 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16667 after it is defined.
16668
16669 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16670 Max Horn <max@quendi.de>
16671
16672 [BZ #22644]
16673 CVE-2017-18269
16674 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16675 branch conditions.
16676 * string/test-memmove.c (do_test2): New testcase.
16677
16678 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16679
16680 * sysdeps/generic/frame.h: Remove file.
16681 * sysdeps/arm/frame.h: Likewise.
16682 * sysdeps/hppa/frame.h: Likewise.
16683 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16684 macro.
16685 (GET_FRAME): Likewise.
16686 (GET_STACK): Likewise.
16687 (CALL_SIGHANDLER): Likewise.
16688 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16689 Likewise.
16690 (GET_FRAME): Likewise.
16691 (GET_STACK): Likewise.
16692 (CALL_SIGHANDLER): Likewise.
16693 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16694 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16695 (GET_FRAME): Likewise.
16696 (GET_STACK): Likewise.
16697 (CALL_SIGHANDLER): Likewise.
16698 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16699 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16700 (GET_FRAME): Likewise.
16701 (GET_STACK): Likewise.
16702 (ADVANCE_STACK_FRAME): Likewise.
16703 (CALL_SIGHANDLER): Likewise.
16704 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16705 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16706 (GET_FRAME): Likewise.
16707 (GET_STACK): Likewise.
16708 (CALL_SIGHANDLER): Likewise.
16709 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16710 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16711 (GET_FRAME): Likewise.
16712 (GET_STACK): Likewise.
16713 (CALL_SIGHANDLER): Likewise.
16714 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16715 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16716 (GET_FRAME): Likewise.
16717 (GET_STACK): Likewise.
16718 (CALL_SIGHANDLER): Likewise.
16719 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16720 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16721 (GET_FRAME): Likewise.
16722 (GET_STACK): Likewise.
16723 (CALL_SIGHANDLER): Likewise.
16724 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16725 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16726 (GET_FRAME): Likewise.
16727 (GET_STACK): Likewise.
16728 (CALL_SIGHANDLER): Likewise.
16729 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16730 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16731 (GET_FRAME): Likewise.
16732 (GET_STACK): Likewise.
16733 (CALL_SIGHANDLER): Likewise.
16734 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16735 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16736 (GET_FRAME): Likewise.
16737 (GET_STACK): Likewise.
16738 (CALL_SIGHANDLER): Likewise.
16739 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16740 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16741 (GET_FRAME): Likewise.
16742 (GET_STACK): Likewise.
16743 (CALL_SIGHANDLER): Likewise.
16744 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16745 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16746 (GET_FRAME): Likewise.
16747 (GET_STACK): Likewise.
16748 (CALL_SIGHANDLER): Likewise.
16749 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16750 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16751 (FIRST_FRAME_POINTER): Likewise.
16752 (ADVANCE_STACK_FRAME): Likewise.
16753 (GET_STACK): Likewise.
16754 (GET_FRAME): Likewise.
16755 (CALL_SIGHANDLER): Likewise.
16756 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16757 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16758 (ADVANCE_STACK_FRAME): Likewise.
16759 (GET_STACK): Likewise.
16760 (GET_FRAME): Likewise.
16761 (CALL_SIGHANDLER): Likewise.
16762 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16763 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16764 (GET_FRAME): Likewise.
16765 (GET_STACK): Likewise.
16766 (CALL_SIGHANDLER): Likewise.
16767 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16768 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16769 (GET_FRAME): Likewise.
16770 (GET_STACK): Likewise.
16771 (CALL_SIGHANDLER): Likewise.
16772
16773 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16774
16775 * sysdeps/x86_64/backtrace.c: Move to ....
16776 * debug/backtrace.c: ... here.
16777 * sysdeps/aarch64/backtrace.c: Remove file.
16778 * sysdeps/alpha/backtrace.c: Likewise.
16779 * sysdeps/hppa/backtrace.c: Likewise.
16780 * sysdeps/ia64/backtrace.c: Likewise.
16781 * sysdeps/mips/backtrace.c: Likewise.
16782 * sysdeps/nios2/backtrace.c: Likewise.
16783 * sysdeps/riscv/backtrace.c: Likewise.
16784 * sysdeps/sh/backtrace.c: Likewise.
16785 * sysdeps/tile/backtrace.c: Likewise.
16786
16787 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16788
16789 [BZ #22987]
16790 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16791 function.
16792 (fdimf): Likewise.
16793 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16794
16795 [BZ #17343]
16796 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16797 possibly overflowing computations.
16798
16799 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16800
16801 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16802 values from Linux-specific section now that it is in the GNU section.
16803 * sysdeps/gnu/errlist.c: Regenerate.
16804
16805 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16806
16807 * math/Makefile (libm-narrow-fns): Add sub.
16808 (libm-test-funcs-narrow): Likewise.
16809 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16810 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16811 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16812 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16813 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16814 (NARROW_SUB_TRIVIAL): Likewise.
16815 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16816 macro.
16817 (__dsubl): Likewise.
16818 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16819 dsub.
16820 (CFLAGS-nldbl-dsub.c): New variable.
16821 (CFLAGS-nldbl-fsub.c): Likewise.
16822 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16823 __nldbl_dsubl.
16824 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16825 prototype.
16826 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16827 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16828 * math/auto-libm-test-in: Add tests of sub.
16829 * math/auto-libm-test-out-narrow-sub: New generated file.
16830 * math/libm-test-narrow-sub.inc: New file.
16831 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16832 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16833 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16834 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16835 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16836 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16837 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16838 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16839 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16840 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16841 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16842 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16843 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16844 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16845 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16846 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16847 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16848 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16849 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16850 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16851 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16852 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16853 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16854 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16855 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16856 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16857 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16858 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16859 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16860 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16861 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16862 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16867 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16868 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16869 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16870 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16871 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16872 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16873 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16874 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16875 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16876 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16877
16878 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16879
16880 [BZ #20079]
16881 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16882
16883 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16884
16885 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16886
16887 2018-03-18 Richard Braun <rbraun@sceen.net>
16888
16889 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16890 thread reference.
16891
16892 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16893
16894 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16895 (__libc_cleanup_fct): Define function.
16896 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16897 __libc_cleanup_end): Rewrite implementation using
16898 __attribute__ ((__cleanup__)).
16899 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16900 * hurd/Makefile (routines): Add hurdlock.
16901 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16902 interface.
16903 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16904 * hurd/hurdpid.c: Include <lowlevellock.h>
16905 (_S_msg_proc_newids): Use lll_wait to synchronize.
16906 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16907 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16908 * mach/Makefile (lock-headers): Remove machine-lock.h.
16909 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16910 <machine-lock.h>.
16911 (__spin_lock_t): New type.
16912 (__SPIN_LOCK_INITIALIZER): New macro.
16913 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16914 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16915 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16916 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16917 (__mutex_init): Initialize with lll.
16918 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16919 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16920 needing lll.
16921 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16922 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16923 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16924 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16925 (__setpgid): Use lll for synchronization.
16926 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16927 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16928 instead of <cthreads.h>.
16929 (_IO_lock_inexpensive): New macro
16930 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16931 (__libc_lock_self0): New declaration.
16932 (__libc_lock_owner_self): New macro.
16933 (__libc_key_t): Remove type.
16934 (_LIBC_LOCK_INITIALIZER): New macro.
16935 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16936 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16937 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16938 __libc_lock_define_initialized_recursive,
16939 __rtld_lock_define_initialized_recursive,
16940 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16941 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16942 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16943 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16944 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16945 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16946 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16947 New macros.
16948 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16949 * hurd/hurdlock.c: New file.
16950 * hurd/hurdlock.h: New file.
16951 * mach/lowlevellock.h: New file
16952
16953 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16954
16955 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16956 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16957 when opening a symlink with O_NOFOLLOW.
16958 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16959 path when flags contains O_NOFOLLOW.
16960 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16961 if flags contains O_DIRECTORY and the result is a directory.
16962 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16963 oneself when the pointer given in D is nul (as set by ext2fs).
16964 * sysdeps/mach/hurd/mlockall.c: New file.
16965 * sysdeps/mach/hurd/munlockall.c: New file.
16966
16967 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16968
16969 * hurd/hurdsig.c: Include <pthread.h>.
16970 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16971 get the signal thread stack layout.
16972 * hurd/Makefile (headers): Remove threadvar.h.
16973 (inline-headers): Remove threadvar.h.
16974 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16975 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16976 __hurd_threadvar_max, __hurd_errno_location.
16977 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16978 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16979 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16980 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16981 unless TLS is not initialized yet, in which case we do not need a
16982 critical section yet anyway.
16983 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16984 <machine-sp.h>.
16985 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16986 declarations.
16987 (__hurd_threadvar_index): Remove enum.
16988 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16989 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16990 inlines.
16991 (__hurd_reply_port0): New variable declaration.
16992 (__hurd_local_reply_port): New macro.
16993 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16994 (interrupted_reply_port_location): Add thread_t parameter. Use it
16995 with THREAD_TCB to access thread-local variables.
16996 (_hurdsig_abort_rpcs): Pass ss->thread to
16997 interrupted_reply_port_location.
16998 (_hurd_internal_post_signal): Likewise.
16999 (_hurdsig_init): Use presence of cthread_fork instead of
17000 __hurd_threadvar_stack_mask to start signal thread by hand.
17001 Remove signal thread threadvar initialization.
17002 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
17003 * hurd/sigunwind.c: Include <hurd/threadvar.h>
17004 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
17005 of threadvar.
17006 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
17007 __libc_lock_self0.
17008 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
17009 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
17010 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
17011 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
17012 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
17013 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
17014 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
17015 define variables.
17016 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
17017 <hurd/threadvar.h>.
17018 [IS_IN(rtld)] (rtld_errno): New variable.
17019 [IS_IN(rtld)] (__errno_location): New weak function.
17020 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
17021 * sysdeps/mach/hurd/errno.c: Remove file.
17022 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
17023 (__fork): Remove THREADVAR_SPACE macro and its use.
17024 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
17025 variable.
17026 (init): Do not initialize threadvar.
17027 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
17028 symbol.
17029 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
17030 __hurd_local_reply_port instead of threadvar.
17031 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
17032 _hurd_sigstate fields.
17033 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
17034 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
17035 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
17036 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
17037 instead of threadvar.
17038 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
17039 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
17040 (use_threadvar, global_reply_port): Remove variables.
17041 (__hurd_reply_port0): New variable.
17042 (__mig_get_reply_port): Use __hurd_local_reply_port and
17043 __hurd_reply_port0 instead of threadvar.
17044 (__mig_dealloc_reply_port): Likewise.
17045 (__mig_init): Do not initialize threadvar.
17046 * sysdeps/mach/hurd/profil.c: Fix comment.
17047 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
17048 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
17049 cthread_keycreate, cthread_getspecific, cthread_setspecific to
17050 __cthread_fork, __cthread_detach, __pthread_getattr_np,
17051 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
17052 __cthread_setspecific.
17053 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
17054 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
17055 __cthread_t instead of cthread_fork, cthread_detach,
17056 pthread_getattr_np, pthread_attr_getstack.
17057 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
17058 __cthread_keycreate.
17059 (cthread_getspecific): Rename to __cthread_getspecific.
17060 (cthread_setspecific): Rename to __cthread_setspecific.
17061 (__libc_getspecific): Use __cthread_getspecific instead of
17062 cthread_getspecific.
17063 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
17064 __cthread_keycreate instead of cthread_keycreate.
17065 (__libc_setspecific): Use __cthread_setspecific instead of
17066 cthread_setspecific.
17067 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
17068 Likewise.
17069 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
17070 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
17071 testing whether it is defined.
17072
17073 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
17074
17075 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
17076 Define macro.
17077 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
17078 * sysdeps/mach/i386/thread_state.h
17079 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
17080 i386_THREAD_STATE.
17081 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
17082 i386_THREAD_STATE.
17083 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
17084
17085 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
17086 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
17087
17088 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
17089 macros.
17090 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
17091 descriptor instead of creating a new one.
17092 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
17093
17094 * mach/setup-thread.c: Include <ldsodefs.h>.
17095 (__mach_setup_thread): Call _dl_allocate_tls, pass
17096 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
17097 MACHINE_THREAD_STATE_FLAVOR, before getting
17098 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
17099 MACHINE_THREAD_STATE_FLAVOR with the result.
17100 * hurd/hurdfault.c (_hurdsig_fault_init): Call
17101 MACHINE_THREAD_STATE_FIX_NEW.
17102 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
17103 too. Add original thread parameter.
17104
17105 2018-03-16 Joseph Myers <joseph@codesourcery.com>
17106
17107 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
17108 Remove inline function.
17109
17110 * sysdeps/i386/fpu/libm-test-ulps: Update.
17111 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17112
17113 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
17114
17115 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
17116 commit.
17117
17118 2018-03-15 Joseph Myers <joseph@codesourcery.com>
17119
17120 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
17121 (__sincos_code): Remove define and undefine.
17122 [__FAST_MATH__] (__sincos): Remove inline function.
17123 [__FAST_MATH__] (__sincosf): Remove inline function.
17124 [__FAST_MATH__] (__sincosl): Remove inline function.
17125 (__atan2l): Remove inline functions.
17126 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
17127 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
17128 function.
17129 (floor): Remove inline function.
17130 (ceil): Likewise.
17131 [__FAST_MATH__] (__ldexp_code): Remove macro.
17132 [__FAST_MATH__] (ldexp): Remove inline function.
17133 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
17134 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
17135 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
17136 [__USE_ISOC99] (__lrint_code): Remove macro.
17137 [__USE_ISOC99] (__llrint_code): Likewise.
17138 [__USE_ISOC99] (lrintf): Remove inline function.
17139 [__USE_ISOC99] (lrint): Likewise.
17140 [__USE_ISOC99] (lrintl): Likewise.
17141 [__USE_ISOC99] (llrint): Likewise.
17142 [__USE_ISOC99] (llrintf): Likewise.
17143 [__USE_ISOC99] (llrintl): Likewise.
17144
17145 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17146
17147 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17148 (__ieee754_sqrtf): Remove.
17149 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17150 (__ieee754_sqrtf): Remove.
17151 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17152 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17153 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17154 (__ieee754_sqrtf): Remove.
17155 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17156 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17157 (sqrtf): Remove.
17158 (sqrtl): Remove.
17159 (__ieee754_sqrt): Remove.
17160 (__ieee754_sqrtf): Remove.
17161 (__ieee754_sqrtl): Remove.
17162 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17163 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17164 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17165 (__ieee754_sqrtf): Remove.
17166 (__ieee754_sqrtl): Remove.
17167
17168 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17169
17170 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17171 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17172 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17173 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17174 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17175 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17176 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17177 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17178 Likewise.
17179 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17180 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17181 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17182 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17183 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17184 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17185 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17186 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17187 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17188 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17189 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17190 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17191 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17192 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17193 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17194 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17195 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17196 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17197 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17198 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17199 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17200 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17201 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17202 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17203 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17204 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17205 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17206 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17207 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17208 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17209 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17210 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17211 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17212 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17213 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17214 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17215 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17216 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17217 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17218 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17219
17220 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17221
17222 * include/math.h (sqrt): Declare with asm redirect.
17223 (sqrtf): Likewise.
17224 (sqrtl): Likewise.
17225 (sqrtf128): Likewise.
17226 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17227 nonlib and libnldbl with -fmath-errno.
17228 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17229 * math/w_sqrt_template.c: Likewise.
17230 * math/w_sqrtf_compat.c: Likewise.
17231 * math/w_sqrtl_compat.c: Likewise.
17232 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17233 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17234 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17235 complex.h.
17236
17237 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17238
17239 * benchtests/Makefile: Define _ISOMAC.
17240 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17241 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17242 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17243 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17244 * benchtests/bench-timing.h: Define attribute_hidden.
17245
17246 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
17247
17248 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17249 mov + lsr.
17250
17251 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17252
17253 [BZ #22963]
17254 * localedata/locales/cs_CZ (mon): Rename to...
17255 (alt_mon): This.
17256 (mon): Import from CLDR (genitive case).
17257
17258 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17259
17260 [BZ #22937]
17261 * localedata/locales/el_CY (abmon): Rename to...
17262 (ab_alt_mon): This.
17263 (abmon): Import from CLDR (abbreviated genitive case).
17264 * localedata/locales/el_GR (abmon): Rename to...
17265 (ab_alt_mon): This.
17266 (abmon): Import from CLDR (abbreviated genitive case).
17267
17268 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17269
17270 [BZ #22932]
17271 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17272
17273 2018-03-15 Robert Buj <robert.buj@gmail.com>
17274
17275 [BZ #22848]
17276 * localedata/locales/ca_ES (abmon): Rename to...
17277 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17278 (mon): Rename to...
17279 (alt_mon): This.
17280 (abmon): Import from CLDR (genitive case, month names preceded by
17281 "de" or "d’").
17282 (mon): Likewise.
17283 (abday): Synchronize with CLDR.
17284 (d_t_fmt): Likewise.
17285 (d_fmt): Likewise.
17286 (am_pm): Likewise.
17287
17288 (LC_TIME): Improve indentation.
17289 (LC_TELEPHONE): Likewise.
17290 (LC_NAME): Likewise.
17291 (LC_ADDRESS): Likewise.
17292
17293 2018-03-14 Joseph Myers <joseph@codesourcery.com>
17294
17295 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17296 (lrintf): Remove definitions used only with old GCC.
17297 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17298 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17299 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17300 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17301 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17302 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17303 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17304 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17305 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17306 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17307 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17308 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17309 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17310 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17311 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17312 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17313 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17314 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17315 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17316 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17317 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17318 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17319 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17320 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17321 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17322 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17323 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17324 [__FAST_MATH__] (__M_SQRT2): Remove macro.
17325
17326 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17327
17328 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17329 instruction to unbreak builds with binutils 2.26 and older.
17330
17331 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17332
17333 * sysdeps/aarch64/strncmp.S (count): New macro.
17334 (strncmp): Store misaligned length in SRC1 in COUNT.
17335 (mutual_align): Adjust.
17336 (misaligned8): Load dword at a time when it is safe.
17337
17338 2018-03-12 Zack Weinberg <zackw@panix.com>
17339
17340 [BZ #1190]
17341 [BZ #19476]
17342 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17343 if the _IO_EOF_SEEN bit is already set; update commentary.
17344 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17345 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17346
17347 * support/support_openpty.c, support/tty.h: New files.
17348 * support/Makefile (libsupport-routines): Add support_openpty.
17349
17350 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17351 New test cases.
17352 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17353 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17354
17355 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17356
17357 * po/pt_BR.po: Update translations.
17358
17359 2018-03-12 David Michael <fedora.dm0@gmail.com>
17360
17361 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17362 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17363 get a port to the startup server.
17364
17365 2018-03-11 Zack Weinberg <zackw@panix.com>
17366
17367 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17368 before nldbl-compat.h.
17369
17370 2018-03-10 Zack Weinberg <zackw@panix.com>
17371
17372 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17373 math.h or math_private.h.
17374
17375 * sysdeps/alpha/fpu/s_isnan.c
17376 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17377 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17378 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17379 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17380 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17381 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17382 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17383 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17384 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17387 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17388 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17389 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17390 Include math_private.h.
17391
17392 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17393 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17394 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17395 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17396 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17397 * sysdeps/powerpc/power7/fpu/s_logb.c:
17398 Include math.h and math_private.h.
17399
17400 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17401 uses of $at in .set noat / .set at.
17402
17403 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17404
17405 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17406 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17407 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17408 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17409 Likewise.
17410
17411 2018-03-09 Florian Weimer <fweimer@redhat.com>
17412
17413 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17414 in comment.
17415
17416 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17417
17418 [BZ #22919]
17419 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17420 Add nop before __startcontext, add explaining comments.
17421
17422 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17423
17424 [BZ #22926]
17425 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17426 empty for __SPE__.
17427 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17428 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17429 Do not build hardware transactional code for __SPE__.
17430 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17431 (__lll_trylock_elision): Likewise.
17432 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17433 (__lll_unlock_elision): Likewise.
17434
17435 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17436 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17437 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17438 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17439 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17440 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17441 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17442 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17443 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17444 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17445 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17446 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17447 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17448 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17449 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17450 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17451 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17452 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17453 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17454 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17455 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17456 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17457 (__ASSUME_CLONE_BACKWARDS): Define.
17458 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17459 __clone2 if __NR_clone2 is defined.
17460 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17461 (__ASSUME_CLONE_BACKWARDS): Likewise.
17462 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17463 (__ASSUME_CLONE_BACKWARDS): Likewise.
17464 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17465 (__ASSUME_CLONE2): Likewise.
17466 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17467 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17468 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17469 variants and the define architecture can use.
17470 (__ASSUME_CLONE_DEFAULT): Define as default.
17471 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17472 (__ASSUME_CLONE_BACKWARDS): Likewise.
17473 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17474 (__ASSUME_CLONE_BACKWARDS): Likewise.
17475 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17476 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17477
17478 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17479
17480 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17481
17482 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17483 time.
17484
17485 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17486 (do_test_limit): Likewise.
17487
17488 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17489 for every implementation.
17490 (do_test): Likewise.
17491
17492 * benchtests/bench-strncmp.c: Convert output to json.
17493
17494 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17495
17496 * io/futimens.c: Add missing start-of-file descriptive comment.
17497 * io/utime.c: Likewise.
17498 * misc/futimesat.c: Likewise.
17499 * misc/utimes.c: Likewise.
17500 * sysdeps/mach/hurd/futimesat.c: Likewise.
17501 * sysdeps/mach/hurd/utimes.c: Likewise.
17502 * sysdeps/posix/utime.c: Likewise.
17503 * sysdeps/posix/utimes.c: Likewise.
17504 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17505 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17506 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17507 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17508
17509 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17510
17511 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17512 hurd_futimes.
17513 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17514 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17515 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17516 (__futimens): Move implementation to...
17517 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17518 utime_tvalue_from_tspec): ... new helper functions.
17519 (hurd_futimens): New function.
17520 * sysdeps/mach/hurd/futimesat.c: New file.
17521 * sysdeps/mach/hurd/utimensat.c: New file.
17522
17523 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17524
17525 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17526 UTIME_OMIT): New macros.
17527 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17528 before reverting to converting time spec to time value and calling
17529 __file_utimes.
17530 * sysdeps/mach/hurd/utime-helper.c: New file.
17531 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17532 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17533 reverting to utime_tvalue_from_tval and __file_utimes.
17534 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17535 (__lutimes): Just call hurd_futimens after lookup.
17536 * sysdeps/mach/hurd/utimes.c: Likewise.
17537
17538 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17539
17540 * bits/sigaction.h: Add include guard.
17541 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17542 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17543 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17544 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17545 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17546 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17547 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17548 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17549 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17550
17551 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17552
17553 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17554 -Wmaybe-uninitialized for -Os.
17555 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17556 this disabling.
17557
17558 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17559
17560 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17561 __INO_T_MATCHES_INO64_T is defined.
17562 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17563 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17564 of definition.
17565 * dirent/alphasort64.c: Likewise.
17566 * dirent/scandir.c: Likewise.
17567 * dirent/scandir64-tail.c: Likewise.
17568 * dirent/scandir64.c: Likewise.
17569 * dirent/scandirat.c: Likewise.
17570 * dirent/scandirat64.c: Likewise.
17571 * dirent/versionsort.c: Likewise.
17572 * dirent/versionsort64.c: Likewise.
17573 * include/dirent.h: Likewise.
17574
17575 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17576 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17577 for socketpair endpoint.
17578 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17579 WRITE_BUFFER_SIZE as buffer size for sending socket.
17580 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17581 issue on system where send is implemented with sendto syscall.
17582 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17583 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17584 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17585 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17586
17587 [BZ #21269]
17588 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17589 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17590 sa_restorer for vDSO case.
17591 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17592
17593 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17594
17595 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17596 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17597 * hurd/hurd/ioctl.h: Include <mach/port.h>
17598 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17599 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17600 <mach/mach_types.h> and <mach/message.h>.
17601 (headers): Move mach/param.h to bits/mach/param.h.
17602 * sysdeps/mach/i386/mach/param.h: Move file to ...
17603 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17604 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17605 of <mach/param.h>.
17606 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17607 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17608 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17609 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17610 trivial, for C++ conformity.
17611 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17612 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17613 Process mig output through $(migheadersed).
17614 * hurd/Makefile (migheadersed): Define variable.
17615 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17616 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17617 headers.
17618 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17619 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17620 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17621 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17622 <bits/types/sigset_t.h>.
17623 [!defined __USE_GNU]: Do not #error out.
17624 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17625 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17626 Include <stddef.h> and <bits/types/sigset_t.h>
17627 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17628 instead of sighandler_t.
17629 * stdlib/errno.h (error_t): Move definition to...
17630 * bits/types/error_t.h: ... new header.
17631 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17632 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17633 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17634 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17635 * hurd/hurd.h: Include <bits/types/error_t.h>
17636 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17637 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17638 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17639 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17640 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17641 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17642 * sysdeps/mach/hurd/futimens.c: New file.
17643
17644 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17645
17646 [BZ #22918]
17647 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17648 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17649 * nscd/gai.c (__nss_hosts_database): Readd definition.
17650 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17651 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17652 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17653
17654 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17655
17656 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17657 (ifunc_one): Likewise.
17658
17659 2018-03-01 DJ Delorie <dj@delorie.com>
17660
17661 [BZ #22342]
17662 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17663 key value.
17664
17665 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17666
17667 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17668 `match_pid' parameter.
17669 (td_ta_thr_iter): Update accordingly.
17670
17671 2018-03-01 Florian Weimer <fweimer@redhat.com>
17672
17673 * nptl/Makefile (install-lib-ldscripts): Remove.
17674 (install): Remove rule.
17675 ($(inst_libdir)/libpthread.so): Likewise.
17676
17677 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17678
17679 [BZ #22896]
17680 * localedata/locales/an_ES: update month and day names,
17681 improve d_fmt, improve postal_fmt, add country_post,
17682 add country_isbn
17683
17684 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17685
17686 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17687 Ukrainian instead of Bulgarian.
17688
17689 2018-03-01 Florian Weimer <fweimer@redhat.com>
17690
17691 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17692 reference.
17693
17694 2018-03-01 Florian Weimer <fweimer@redhat.com>
17695
17696 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17697 * nptl/Makefile (routines): Add pthread_atfork.
17698 (static-only-routines): Set to pthread_atfork.
17699 (libpthread-routines): Remove pthread_atfork.
17700 (libpthread-static-only-routines): Remove.
17701 (install): Update comment.
17702 (libpthread.so): Do not install libpthread_nonshared.a.
17703 (tests): Do not link with libpthread_nonshared.a.
17704 (generated): Remove libpthread_nonshared.a.
17705 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17706 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17707 with libpthread_nonshared.a.
17708
17709 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17710
17711 [BZ #22902]
17712 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17713 (libc_feholdexcept_setroundf128): New macro.
17714 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17715
17716 [BZ #15105]
17717 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17718 libc_hidden_def.
17719 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17720 * include/inttypes.h: New file.
17721
17722 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17723
17724 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17725 -Os in two more places.
17726
17727 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17728
17729 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17730 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17731 be sorted correctly at the moment because of a bug.
17732
17733 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17734
17735 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17736 treat ñ as a primary different character, sync the collation
17737 for Spanish with CLDR.
17738 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17739 * localedata/Makefile: Add new test files.
17740 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17741 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17742 collation order.
17743 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17744 * localedata/am_ET.UTF-8.in: New test file.
17745 * localedata/az_AZ.UTF-8.in: Likewise.
17746 * localedata/be_BY.UTF-8.in: Likewise.
17747 * localedata/ber_DZ.UTF-8.in: Likewise.
17748 * localedata/ber_MA.UTF-8.in: Likewise.
17749 * localedata/bg_BG.UTF-8.in: Likewise.
17750 * localedata/br_FR.UTF-8.in: Likewise.
17751 * localedata/cmn_TW.UTF-8.in: Likewise.
17752 * localedata/crh_UA.UTF-8.in: Likewise.
17753 * localedata/csb_PL.UTF-8.in: Likewise.
17754 * localedata/cv_RU.UTF-8.in: Likewise.
17755 * localedata/cy_GB.UTF-8.in: Likewise.
17756 * localedata/dz_BT.UTF-8.in: Likewise.
17757 * localedata/eo.UTF-8.in: Likewise.
17758 * localedata/es_ES.UTF-8.in: Likewise.
17759 * localedata/fa_IR.UTF-8.in: Likewise.
17760 * localedata/fi_FI.UTF-8.in: Likewise.
17761 * localedata/fil_PH.UTF-8.in: Likewise.
17762 * localedata/fur_IT.UTF-8.in: Likewise.
17763 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17764 * localedata/ha_NG.UTF-8.in: Likewise.
17765 * localedata/ig_NG.UTF-8.in: Likewise.
17766 * localedata/ik_CA.UTF-8.in: Likewise.
17767 * localedata/kk_KZ.UTF-8.in: Likewise.
17768 * localedata/ku_TR.UTF-8.in: Likewise.
17769 * localedata/ky_KG.UTF-8.in: Likewise.
17770 * localedata/ln_CD.UTF-8.in: Likewise.
17771 * localedata/mi_NZ.UTF-8.in: Likewise.
17772 * localedata/ml_IN.UTF-8.in: Likewise.
17773 * localedata/mn_MN.UTF-8.in: Likewise.
17774 * localedata/mr_IN.UTF-8.in: Likewise.
17775 * localedata/mt_MT.UTF-8.in: Likewise.
17776 * localedata/nb_NO.UTF-8.in: Likewise.
17777 * localedata/om_KE.UTF-8.in: Likewise.
17778 * localedata/os_RU.UTF-8.in: Likewise.
17779 * localedata/ps_AF.UTF-8.in: Likewise.
17780 * localedata/ro_RO.UTF-8.in: Likewise.
17781 * localedata/ru_RU.UTF-8.in: Likewise.
17782 * localedata/sc_IT.UTF-8.in: Likewise.
17783 * localedata/se_NO.UTF-8.in: Likewise.
17784 * localedata/sq_AL.UTF-8.in: Likewise.
17785 * localedata/sv_SE.UTF-8.in: Likewise.
17786 * localedata/szl_PL.UTF-8.in: Likewise.
17787 * localedata/tg_TJ.UTF-8.in: Likewise.
17788 * localedata/tk_TM.UTF-8.in: Likewise.
17789 * localedata/tt_RU.UTF-8.in: Likewise.
17790 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17791 * localedata/ug_CN.UTF-8.in: Likewise.
17792 * localedata/uz_UZ.UTF-8.in: Likewise.
17793 * localedata/vi_VN.UTF-8.in: Likewise.
17794 * localedata/yi_US.UTF-8.in: Likewise.
17795 * localedata/yo_NG.UTF-8.in: Likewise.
17796 * localedata/zh_CN.UTF-8.in: Likewise.
17797 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17798 file and fix bugs in the collation.
17799 * localedata/locales/az_AZ: Likewise.
17800 * localedata/locales/be_BY: Likewise.
17801 * localedata/locales/ber_DZ: Likewise.
17802 * localedata/locales/ber_MA: Likewise.
17803 * localedata/locales/bg_BG: Likewise.
17804 * localedata/locales/br_FR: Likewise.
17805 * localedata/locales/br_FR@euro: Likewise.
17806 * localedata/locales/ca_ES: Likewise.
17807 * localedata/locales/cns11643_stroke: Likewise.
17808 * localedata/locales/crh_UA: Likewise.
17809 * localedata/locales/cs_CZ: Likewise.
17810 * localedata/locales/csb_PL: Likewise.
17811 * localedata/locales/cv_RU: Likewise.
17812 * localedata/locales/cy_GB: Likewise.
17813 * localedata/locales/da_DK: Likewise.
17814 * localedata/locales/dz_BT: Likewise.
17815 * localedata/locales/en_CA: Likewise.
17816 * localedata/locales/eo: Likewise.
17817 * localedata/locales/es_CU: Likewise.
17818 * localedata/locales/es_EC: Likewise.
17819 * localedata/locales/es_ES: Likewise.
17820 * localedata/locales/es_US: Likewise.
17821 * localedata/locales/et_EE: Likewise.
17822 * localedata/locales/fa_IR: Likewise.
17823 * localedata/locales/fi_FI: Likewise.
17824 * localedata/locales/fil_PH: Likewise.
17825 * localedata/locales/fur_IT: Likewise.
17826 * localedata/locales/gez_ER@abegede: Likewise.
17827 * localedata/locales/ha_NG: Likewise.
17828 * localedata/locales/hr_HR: Likewise.
17829 * localedata/locales/hsb_DE: Likewise.
17830 * localedata/locales/hu_HU: Likewise.
17831 * localedata/locales/ig_NG: Likewise.
17832 * localedata/locales/ik_CA: Likewise.
17833 * localedata/locales/is_IS: Likewise.
17834 * localedata/locales/iso14651_t1_pinyin: Likewise.
17835 * localedata/locales/kk_KZ: Likewise.
17836 * localedata/locales/ku_TR: Likewise.
17837 * localedata/locales/ky_KG: Likewise.
17838 * localedata/locales/ln_CD: Likewise.
17839 * localedata/locales/lt_LT: Likewise.
17840 * localedata/locales/lv_LV: Likewise.
17841 * localedata/locales/mi_NZ: Likewise.
17842 * localedata/locales/ml_IN: Likewise.
17843 * localedata/locales/mn_MN: Likewise.
17844 * localedata/locales/mr_IN: Likewise.
17845 * localedata/locales/mt_MT: Likewise.
17846 * localedata/locales/nb_NO: Likewise.
17847 * localedata/locales/om_KE: Likewise.
17848 * localedata/locales/os_RU: Likewise.
17849 * localedata/locales/pl_PL: Likewise.
17850 * localedata/locales/ps_AF: Likewise.
17851 * localedata/locales/ro_RO: Likewise.
17852 * localedata/locales/ru_RU: Likewise.
17853 * localedata/locales/ru_UA: Likewise.
17854 * localedata/locales/sc_IT: Likewise.
17855 * localedata/locales/se_NO: Likewise.
17856 * localedata/locales/si_LK: Likewise.
17857 * localedata/locales/sq_AL: Likewise.
17858 * localedata/locales/sv_FI: Likewise.
17859 * localedata/locales/sv_FI@euro: Likewise.
17860 * localedata/locales/sv_SE: Likewise.
17861 * localedata/locales/szl_PL: Likewise.
17862 * localedata/locales/tg_TJ: Likewise.
17863 * localedata/locales/ti_ER: Likewise.
17864 * localedata/locales/tk_TM: Likewise.
17865 * localedata/locales/tl_PH: Likewise.
17866 * localedata/locales/tr_TR: Likewise.
17867 * localedata/locales/tt_RU: Likewise.
17868 * localedata/locales/tt_RU@iqtelif: Likewise.
17869 * localedata/locales/ug_CN: Likewise.
17870 * localedata/locales/uk_UA: Likewise.
17871 * localedata/locales/uz_UZ: Likewise.
17872 * localedata/locales/uz_UZ@cyrillic: Likewise.
17873 * localedata/locales/vi_VN: Likewise.
17874 * localedata/locales/yi_US: Likewise.
17875 * localedata/locales/yo_NG: Likewise.
17876
17877 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17878
17879 * gen-locales.mk: Make test files which contain @ modifiers in their
17880 name work.
17881 * localedata/gen-locale.sh: Likewise.
17882
17883 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17884
17885 * posix/tst-fnmatch.input: Fix results for range expressions
17886 for non C locales.
17887 * posix/tst-regexloc.c: Do not use a range expression for
17888 de_DE.ISO-8859-1 locale.
17889
17890 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17891
17892 * posix/bug-regex5.c: Fix test case because with the new
17893 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17894 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17895 file.
17896
17897 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17898
17899 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17900 downloaded from ISO, the collation order of @-. and space has changed.
17901 Therefore, this test file needed to be adapted.
17902 * localedata/fr_CA.UTF-8.in: Likewise.
17903 * localedata/fr_FR.UTF-8.in: Likewise.
17904 * localedata/uk_UA.UTF-8.in: Likewise.
17905
17906 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17907
17908 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17909 order of ȥ in the new iso14651_t1_common file.
17910 * localedata/pl_PL.UTF-8.in: Likewise.
17911
17912 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17913
17914 * localedata/locales/iso14651_t1_common: Add sections for various
17915 scripts to the iso14651_t1_common file.
17916
17917 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17918
17919 * localedata/locales/iso14651_t1_common: Use the code point of a
17920 character in the fourth collation level instead of IGNORE for all
17921 entries which have IGNORE on all 4 levels.
17922
17923 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17924
17925 * localedata/locales/iso14651_t1_common: Add some convenient collation
17926 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17927 rules similar to those in CLDR.
17928
17929 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17930
17931 * localedata/locales/iso14651_t1_common: The new version of this
17932 file downloaded from ISO contained several syntax errors which
17933 are fixed by this patch.
17934
17935 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17936
17937 * localedata/locales/iso14651_t1_common: replace all <U.....>
17938 with <U000.....> because glibc understands only 4 digit or 8 digit
17939
17940 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17941
17942 * localedata/locales/iso14651_t1_common: Necessary changes
17943 to make the file downloaded from ISO usable by glibc.
17944
17945 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17946
17947 [BZ #14095]
17948 * localedata/locales/iso14651_t1_common: Update file to
17949 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17950
17951 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17952
17953 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17954 of <nptl/pthreadP.h>
17955 (thread_attr_compare): Move function to...
17956 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17957 * sysdeps/nptl/timer_routines.h: ... new header.
17958 * sysdeps/mach/hurd/gai_misc.h: New file.
17959
17960 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17961
17962 * string/strcoll_l.c: Include <libc-diag.h>.
17963 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17964 declarations of seq1 and seq2.
17965
17966 [BZ #15105]
17967 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17968 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17969
17970 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17971
17972 [BZ #22433]
17973 [BZ #22807]
17974 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17975 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17976 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17977 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17978 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17979 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17980
17981 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17982
17983 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17984 macros used in __ptrace_request.
17985
17986 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17987
17988 [BZ #22792]
17989 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17990 to $(CC).
17991 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17992 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17993 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17994 <tcb-offsets.h>.
17995
17996 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17997
17998 [BZ #15105]
17999 * ctype/ctype.c (tolower): Use libc_hidden_def.
18000 (toupper): Likewise.
18001 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
18002 [!_ISOMAC] (toupper): Likewise.
18003
18004 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18005
18006 * localedata/Makefile: Remove --quiet argument when
18007 installing locales
18008
18009 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18010
18011 [BZ #17438]
18012 * localedata/locales/pt_BR (LC_TIME): use / instead of -
18013 in d_fmt.
18014 * localedata/locales/pt_PT (LC_TIME): likewise
18015
18016 2018-02-23 Mike FABIAN <mfabian@redhat.com>
18017
18018 [BZ #22646]
18019 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
18020 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
18021 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
18022
18023 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18024
18025 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18026
18027 * nptl/Makefile (routines): Remove unregister-atfork.
18028 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
18029 (fork_handler_alloc): Remove function.
18030 (fork_handlers, fork_handler_init): New variables.
18031 (__fork_lock): Rename to atfork_lock.
18032 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
18033 to use a dynamic array to add/remove atfork handlers.
18034 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
18035 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
18036 Remove declaration.
18037 (fork_handler): Remove next, refcntr, and need_signal member.
18038 (__run_fork_handler_type): New enum.
18039 (__run_fork_handlers): New prototype.
18040 * nptl/register-atfork.c: Remove file.
18041 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
18042
18043 * sysdeps/nptl/nptl-signals.h: Move to ...
18044 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
18045 comments.
18046 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
18047 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
18048 unnecessary check for SIGTIMER.
18049 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
18050 remove unnecessary removal of SIGTIMER.
18051 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
18052 include-signals.h rename.
18053 * nptl/pthreadP.h: Likewise.
18054 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
18055 __is_internal_signal instead of __nptl_is_internal_signal.
18056
18057 2018-02-22 Andrew Waterman <andrew@sifive.com>
18058
18059 [BZ # 22884]
18060 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
18061 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
18062 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
18063 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
18064
18065 2018-02-22 DJ Delorie <dj@delorie.com>
18066
18067 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
18068
18069 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
18070
18071 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
18072 do_misaligned, not misaligned8.
18073
18074 2018-02-22 Steve Ellcey <sellcey@cavium.com>
18075
18076 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18077 Add memcpy_thunderx2.
18078 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18079 Increment to 4.
18080 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
18081 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
18082 and IS_THUNDERX2PA checks.
18083 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
18084 Use macro to set name appropriately.
18085 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
18086 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
18087 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
18088 New macro.
18089 (IS_THUNDERX2): New macro.
18090
18091 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
18092
18093 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18094
18095 2018-02-21 Zack Weinberg <zackw@panix.com>
18096
18097 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
18098 Define here, unconditionally.
18099 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
18100 * libio/libioP.h: Remove #if 0 blocks.
18101 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
18102 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
18103 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
18104
18105 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
18106 Assume weak_alias is always defined.
18107
18108 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
18109 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
18110 Remove #if 0 and #ifdef TODO blocks.
18111 Assume text_set_element is always defined.
18112
18113 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
18114 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
18115 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
18116
18117 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
18118 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
18119 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
18120 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
18121 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
18122 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
18123 Reformat bit flags for _flags field to make occupancy clearer.
18124 Update commentary.
18125 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
18126 Keep definitions consistent with those in libio/libio.h.
18127
18128 * libio/libio.h (_IO_file_flags): Remove macro.
18129 All uses changed to _flags.
18130
18131 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
18132 (__HAVE_COLUMN, _IO_BE): Don't define.
18133 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
18134 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
18135 * libio/libioP.h (EOF): Don't define.
18136 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
18137 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
18138 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
18139 testing _IO_UNIFIED_JUMPTABLES.
18140
18141 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
18142 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
18143 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18144 (_IO_size_t): Delete; all uses changed to size_t.
18145 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18146 (_IO_off_t): Delete; all uses changed to off_t.
18147 (_IO_off64_t): Delete; all uses changed to off64_t.
18148 (_IO_pid_t): Delete; all uses changed to pid_t.
18149 (_IO_uid_t): Delete; all uses changed to uid_t.
18150 (_IO_wint_t): Delete; all uses changed to wint_t.
18151 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18152 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18153 (_IO_cookie_io_functions_t): Delete; all uses changed to
18154 cookie_io_functions_t.
18155 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18156 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18157 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18158 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18159
18160 * libio/iofopncook.c: Remove unnecessary forward declarations.
18161 * libio/iolibio.h: Correct outdated commentary.
18162 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18163 * stdio-common/fxprintf.c (__fxprintf_nocancel):
18164 Remove unnecessary casts.
18165 * stdio-common/getline.c: Use _IO_getdelim directly.
18166 Don't redefine ssize_t.
18167 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18168 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18169 Remove outdated comments.
18170 * stdio-common/vfscanf.c: Don't redefine va_list.
18171
18172 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18173 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18174 Remove preprocessor conditionals on _LIBC and __USE_GNU,
18175 which are always true, and __cplusplus, which is always false.
18176
18177 2018-02-21 Joseph Myers <joseph@codesourcery.com>
18178
18179 [BZ #15105]
18180 [BZ #19463]
18181 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18182 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18183 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
18184 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18185 libc_hidden_proto.
18186 [!_ISOMAC] (putc_unlocked): Likewise.
18187 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18188 define inline if [__USE_EXTERN_INLINES].
18189 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18190 putc_unlocked.
18191
18192 [BZ #15105]
18193 [BZ #19463]
18194 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18195 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18196 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18197 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18198 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18199 getc_unlocked.
18200 * time/tzfile.c (__tzfile_read): Likewise.
18201
18202 2018-02-21 Mike FABIAN <mfabian@redhat.com>
18203
18204 [BZ #22517]
18205 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18206
18207 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18208
18209 * io/fcntl.h: Fix a typo in a comment.
18210
18211 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18212
18213 [BZ #22862]
18214 * include/features.h: Add _ISOC11_SOURCE to test for whether to
18215 define _DEFAULT_SOURCE.
18216 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18217
18218 2018-02-21 Florian Weimer <fweimer@redhat.com>
18219
18220 [BZ #20890]
18221 * elf/cache.c (save_cache): Call fsync on temporary file before
18222 renaming it.
18223 (save_aux_cache): Call fdatasync on temporary file before renaming
18224 it.
18225
18226 2018-02-21 Florian Weimer <fweimer@redhat.com>
18227
18228 [BZ #22787]
18229 * include/caller.h: Remove file.
18230 * elf/dl-caller.c: Likewise.
18231 * elf/Makefile (dl-routines): Remove dl-caller.
18232 (shared-only-routines): Do not add dl-caller.
18233 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18234 __check_caller.
18235 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18236 member.
18237 (dl_open_worker): Do not call __check_caller.
18238 (_dl_open): Do not set caller_dl_open member.
18239 * elf/rtld.c (_rtld_global_ro): Do not initialize
18240 _dl_check_caller member.
18241 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18242 _dl_check_caller member.
18243 (_dl_check_caller): Remove declaration.
18244 * sysdeps/unix/sysv/linux/dl-execstack.c
18245 (_dl_make_stack_executable): Do not call __check_caller.
18246
18247 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18248
18249 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18250 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18251
18252 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18253
18254 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18255 description.
18256
18257 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18258
18259 [BZ #16335]
18260 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18261 of 199606L, 200112L, and 200809L.
18262 (_XOPEN_SOURCE): Document special values of 600 and 700.
18263 (_ISOC11_SOURCE): Document macro.
18264 (_ATFILE_SOURCE): Likewise.
18265 (_FORTIFY_SOURCE): Likewise.
18266
18267 2018-02-19 Joseph Myers <joseph@codesourcery.com>
18268
18269 [BZ #15105]
18270 [BZ #19463]
18271 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18272 and define as weak alias of __ferror_unlocked. Use
18273 libc_hidden_weak.
18274 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18275 libc_hidden_proto.
18276 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18277 function if [__USE_EXTERN_INLINES].
18278 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18279 ferror_unlocked.
18280
18281 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
18282
18283 [BZ #6889]
18284 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18285
18286 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18287
18288 [BZ #22818]
18289 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18290 the GLIBC_2.1 version.
18291
18292 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18293
18294 [BZ #21508]
18295 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18296 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18297 intl/tst-gettext-de.po from po/de.po by removing the
18298 POT-Creation-Date line.
18299 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18300 ../po/de.po.
18301 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18302 ../po/de.po.
18303
18304 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18305
18306 * mach/Makefile (headers): Add mach/param.h.
18307 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18308 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18309 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18310 (__ptsname_r): Move implementation to...
18311 (__ptsname_internal): ... new function. Add filling the STP
18312 structure.
18313
18314 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
18315
18316 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18317 idouble to 1 ULP.
18318
18319 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
18320
18321 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18322 syntax.
18323
18324 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
18325
18326 * nptl/Makefile (tst-mutex8-ENV): Delete.
18327 * nptl/tst-mutex8.c (check_type):
18328 Add runtime check if mutex will be elided.
18329
18330 2018-02-15 Joseph Myers <joseph@codesourcery.com>
18331
18332 [BZ #20980]
18333 [BZ #21234]
18334 * manual/install.texi (Configuring and compiling): Describe
18335 passing CC and CFLAGS on configure command line, not as
18336 environment variables. Use @code markup on those variables.
18337 Specify what options go in CC and what go in CFLAGS. Note the
18338 requirement to compile with optimization.
18339 * INSTALL: Regenerated.
18340
18341 [BZ #18124]
18342 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18343 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18344 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18345 __sigprocmask instead of sigprocmask.
18346 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18347 Likewise.
18348 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18349 __sigsetjmp and sigprocmask.
18350
18351 [BZ #15105]
18352 * include/argz.h (argz_next): Use libc_hidden_proto.
18353 (__argz_next): Likewise.
18354 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18355 (argz_next): Use libc_hidden_weak.
18356
18357 [BZ #15105]
18358 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18359 libc_hidden_proto.
18360 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18361 libc_hidden_def.
18362
18363 [BZ #15105]
18364 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18365 libc_hidden_proto.
18366 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18367
18368 [BZ #15105]
18369 [BZ #19463]
18370 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18371 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18372 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18373 (__feof_unlocked): New declaration, and inline function if
18374 [__USE_EXTERN_INLINES].
18375 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18376 instead of feof_unlocked.
18377 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18378 * nss/nsswitch.c (nss_parse_file): Likewise.
18379 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18380 Likewise.
18381 * time/getdate.c (__getdate_r): Likewise.
18382 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18383 Define as macro to call __feof_unlocked.
18384
18385 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18386
18387 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18388
18389 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18390
18391 * math/Makefile: Remove mpexp.c and mplog.c
18392 * sysdeps/i386/fpu/mpexp.c: Delete file.
18393 * sysdeps/i386/fpu/mplog.c: Likewise.
18394 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18395 * sysdeps/ia64/fpu/mplog.c: Likewise.
18396 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18397 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18398 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18399 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18400 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18401 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18402 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18403 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18404 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18405 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18406 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18407 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18408 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18409 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18410 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18411 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18412
18413 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18414
18415 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18416
18417 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18418
18419 * sysdeps/sh/libm-test-ulps: Update.
18420
18421 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18422
18423 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18424 idouble to 1 ULP.
18425
18426 2018-02-12 Zack Weinberg <zackw@panix.com>
18427
18428 [BZ #19239]
18429 * posix/sys/types.h: Don't include sys/sysmacros.h.
18430 * misc/sys/sysmacros.h: Remove the conditional deprecation
18431 warnings for the macros defined by this header.
18432
18433 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18434
18435 * manual/probes.texi: Remove slowexp probes.
18436 * math/Makefile: Remove slowexp.
18437 * sysdeps/generic/math_private.h (__slowexp): Remove.
18438 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18439 document error bounds.
18440 * sysdeps/i386/fpu/slowexp.c: Remove.
18441 * sysdeps/ia64/fpu/slowexp.c: Remove.
18442 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18443 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18444 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18445 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18446 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18447 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18448 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18449 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18450 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18451 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18452 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18453
18454 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18455
18456 [BZ #13932]
18457 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18458 * benchtests/pow-inputs: Update comment for slow path cases.
18459 * manual/probes.texi (slowpow_p10): Delete removed probe.
18460 (slowpow_p10): Likewise.
18461 * math/Makefile: Remove halfulp.c and slowpow.c.
18462 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18463 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18464 (__halfulp): Remove.
18465 (__slowpow): Remove.
18466 * sysdeps/i386/fpu/halfulp.c: Delete file.
18467 * sysdeps/i386/fpu/slowpow.c: Likewise.
18468 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18469 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18470 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18471 improve comments and add error analysis.
18472 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18473 (power1): Remove function:
18474 (log1): Remove error argument, add error analysis.
18475 (my_log2): Remove function.
18476 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18477 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18478 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18479 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18480 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18481 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18482 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18483 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18484 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18485 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18486 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18487 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18488 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18489 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18490
18491 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18492
18493 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18494 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18495
18496 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18497
18498 [BZ #22433]
18499 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18500 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18501 and PTRACE_SETHBPREGS.
18502
18503 2018-02-10 Zack Weinberg <zackw@panix.com>
18504
18505 [BZ #22830]
18506 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18507 correctly.
18508 * malloc/tst-malloc-stats-cancellation.c: New test case.
18509 * malloc/Makefile: Add new test case.
18510
18511 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18512
18513 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18514
18515 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18516
18517 * math/Makefile (libm-narrow-fns): Add add.
18518 (libm-test-funcs-narrow): Likewise.
18519 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18520 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18521 * math/gen-auto-libm-tests.c (test_functions): Add add.
18522 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18523 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18524 (NARROW_ADD_TRIVIAL): Likewise.
18525 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18526 macro.
18527 (__daddl): Likewise.
18528 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18529 dadd.
18530 (CFLAGS-nldbl-dadd.c): New variable.
18531 (CFLAGS-nldbl-fadd.c): Likewise.
18532 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18533 __nldbl_daddl.
18534 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18535 prototype.
18536 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18537 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18538 * math/auto-libm-test-in: Add tests of add.
18539 * math/auto-libm-test-out-narrow-add: New generated file.
18540 * math/libm-test-narrow-add.inc: New file.
18541 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18542 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18543 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18544 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18545 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18546 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18547 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18548 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18549 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18550 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18551 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18552 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18553 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18554 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18555 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18556 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18557 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18558 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18559 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18560 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18561 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18562 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18563 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18564 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18565 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18566 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18567 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18568 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18569 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18570 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18571 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18572 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18577 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18578 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18579 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18580 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18581 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18582 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18583 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18584 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18585 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18586 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18587
18588 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18589 (f128-pairs): New variable.
18590 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18591 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18592 to CFLAGS.
18593 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18594 Also make tests add $(f128-loader-link) to gnulib-tests.
18595
18596 2018-02-09 DJ Delorie <dj@redhat.com>
18597
18598 [BZ #22827]
18599 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18600 64-bit ELF type for 64-bit ELF objects.
18601
18602 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18603
18604 * math/libm-test-driver.c (snan_tests_arg): New variable.
18605 * math/libm-test-support.h (snan_tests_arg): New declaration.
18606 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18607
18608 * math/Makefile (test-type-pairs): New variable.
18609 (test-type-pairs-f64xf128-yes): Likewise.
18610 (tests): Add test-narrow-macros.
18611 (libm-test-funcs-narrow): New variable.
18612 (libm-test-c-narrow): Likewise.
18613 (generated): Add $(libm-test-c-narrow).
18614 (libm-tests-base-narrow): New variable.
18615 (libm-tests-narrow): Likewise.
18616 (libm-tests): Add $(libm-tests-narrow).
18617 (libm-tests-for-type): Handle $(libm-tests-narrow).
18618 (libm-test-c-narrow-obj): New variable.
18619 ($(libm-test-c-narrow-obj)): New rule.
18620 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18621 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18622 $(o-iterator) to set dependencies and CFLAGS.
18623 * math/gen-auto-libm-tests.c: Document use for narrowing
18624 functions.
18625 (output_for_one_input_case): Take argument NARROW.
18626 (generate_output): Likewise. Update call to
18627 output_for_one_input_case.
18628 (main): Take --narrow option. Update call to generate_output.
18629 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18630 (apply_lit): Update call to _apply_lit.
18631 (apply_arglit): New function.
18632 (parse_args): Handle "a" arguments.
18633 (parse_auto_input): Handle format names using ":".
18634 * math/README.libm-test: Document "a" parameter type.
18635 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18636 (ARG_TYPE_TRUE_MIN): Likewise.
18637 (ARG_TYPE_MAX): Likwise.
18638 (ARG_MIN_EXP): Likewise.
18639 (ARG_MAX_EXP): Likewise.
18640 (ARG_MANT_DIG): Likewise.
18641 (TEST_COND_arg_ibm128): Likewise.
18642 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18643 (TEST_COND_arg_fmt): New macro.
18644 (init_max_error): Update prototype.
18645 * math/libm-test-support.c (test_ibm128): New variable.
18646 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18647 instead of using [TEST_COND_ibm128] conditional.
18648 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18649 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18650 [TEST_NARROW] (TEST_MSG): New definition.
18651 (arg_plus_zero): New macro.
18652 (arg_minus_zero): Likewise.
18653 (arg_plus_infty): Likewise.
18654 (arg_minus_infty): Likewise.
18655 (arg_qnan_value_pl): Likewise.
18656 (arg_qnan_value): Likewise.
18657 (arg_snan_value_pl): Likewise.
18658 (arg_snan_value): Likewise.
18659 (arg_max_value): Likewise.
18660 (arg_min_value): Likewise.
18661 (arg_min_subnorm_value): Likewise.
18662 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18663 (RUN_TEST_LOOP_aa_f): New macro.
18664 (TEST_SUFF): New macro.
18665 (TEST_SUFF_STR): Likewise.
18666 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18667 (TEST_COND_any_ibm128): New macro.
18668 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18669 this_func. Update call to init_max_error.
18670 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18671 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18672 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18673 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18674 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18675 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18676 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18677 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18678 * math/test-math-vector.h (TEST_NARROW): Likewise.
18679 * math/test-arg-double.h: New file.
18680 * math/test-arg-float128.h: Likewise.
18681 * math/test-arg-float32x.h: Likewise.
18682 * math/test-arg-float64.h: Likewise.
18683 * math/test-arg-float64x.h: Likewise.
18684 * math/test-arg-ldouble.h: Likewise.
18685 * math/test-math-narrow.h: Likewise.
18686 * math/test-narrow-macros.c: Likewise.
18687 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18688 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18689 test-narrow-macros-ldbl-64.
18690 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18691
18692 * math/bits/mathcalls-narrow.h: New file.
18693 * include/bits/mathcalls-narrow.h: Likewise.
18694 * math/math-narrow.h: Likewise.
18695 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18696 (__MATHCALL_NARROW_ARGS_2): Likewise.
18697 (__MATHCALL_NARROW_ARGS_3): Likewise.
18698 (__MATHCALL_NARROW_NORMAL): Likewise.
18699 (__MATHCALL_NARROW_REDIR): Likewise.
18700 (__MATHCALL_NARROW): Likewise.
18701 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18702 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18703 defined.
18704 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18705 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18706 (libm-narrow-fns): New variable.
18707 (libm-narrow-types-basic): Likewise.
18708 (libm-narrow-types-ldouble-yes): Likewise.
18709 (libm-narrow-types-float128-yes): Likewise.
18710 (libm-narrow-types-float128-alias-yes): Likewise.
18711 (libm-narrow-types): Likewise.
18712 (libm-routines): Add narrowing functions.
18713 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18714 (libc_feholdexcept_setroundf128): New macro.
18715 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18716 * sysdeps/ieee754/float128/float128_private.h: Include
18717 <math/math-narrow.h>.
18718 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18719 Undefine and redefine.
18720 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18721 (libm_alias_float_ldouble): Undefine and redefine.
18722 (libm_alias_double_ldouble): Likewise.
18723
18724 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18725
18726 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18727
18728 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18729 FPCR/FPSR.
18730
18731 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18732
18733 * manual/creature.texi: Convert references to gcc.info to gcc.
18734 * manual/stdio.texi: Likewise.
18735 * manual/string.texi: Likewise.
18736
18737 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18738
18739 [BZ #17979]
18740 * posix/bits/types.h (__int_least8_t): New typedef.
18741 (__uint_least8_t): Likewise.
18742 (__int_least16_t): Likewise.
18743 (__uint_least16_t): Likewise.
18744 (__int_least32_t): Likewise.
18745 (__uint_least32_t): Likewise.
18746 (__int_least64_t): Likewise.
18747 (__uint_least64_t): Likewise.
18748 * sysdeps/generic/stdint.h (int_least8_t): Define using
18749 __int_least8_t.
18750 (int_least16_t): Define using __int_least16_t.
18751 (int_least32_t): Define using __int_least32_t.
18752 (int_least64_t): Define using __int_least64_t.
18753 (uint_least8_t): Define using __uint_least8_t.
18754 (uint_least16_t): Define using __uint_least16_t.
18755 (uint_least32_t): Define using __uint_least32_t.
18756 (uint_least64_t): Define using __uint_least64_t.
18757 * wcsmbs/uchar.h: Include <bits/types.h>.
18758 (char16_t): Define using __uint_least16_t conditional only on
18759 [!__USE_ISOCXX11].
18760 (char32_t): Define using __uint_least32_t conditional only on
18761 [!__USE_ISOCXX11].
18762 * wcsmbs/test-char-types.c: New file.
18763 * wcsmbs/Makefile (tests): Add test-char-types.
18764
18765 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18766 version to 4.0.1.
18767
18768 2018-02-07 Zack Weinberg <zackw@panix.com>
18769
18770 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18771 Delete all contents except for definitions of _G_HAVE_MMAP and
18772 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18773 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18774 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18775 change as above.
18776
18777 * libio/libio.h: Don't include bits/_G_config.h here.
18778 Include stddef.h with __need_wchar_t defined. Include
18779 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18780 Define _IO_iconv_t here, directly.
18781 Don't define _IO_HAVE_ST_BLKSIZE.
18782 * libio/libioP.h: Include _G_config.h here. Move include of
18783 shlib-compat.h up with rest of includes. Simplify conditionals
18784 controlling definition of _IO_JUMPS_OFFSET.
18785
18786 * csu/init.c: Remove always-true #if around entire file.
18787 Don't include stdio.h. Set _IO_stdin_used to hardwired
18788 constant 0x20001, and update commentary.
18789 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18790 Replace all uses of _G_va_list with __gnuc_va_list.
18791 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18792 instead of #if _IO_HAVE_ST_BLKSIZE.
18793 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18794 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18795 not #ifdef.
18796
18797 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18798 multiple-include guard to match.
18799 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18800 into this file.
18801 Remove preprocessor conditionals that are always true and/or
18802 redundant to other preprocessor conditionals in the same nest.
18803 Include shlib-compat.h unconditionally.
18804 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18805 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18806 defined after including stdio.h.
18807 Use __BEGIN_DECLS/__END_DECLS.
18808
18809 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18810 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18811 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18812
18813 2018-02-07 Zack Weinberg <zackw@panix.com>
18814
18815 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18816 New single-type headers split from _G_config.h.
18817 * libio/bits/types/cookie_io_functions_t.h
18818 * libio/bits/types/struct_FILE.h
18819 New single-type headers split from libio.h.
18820
18821 * libio/Makefile: Install the above new headers. Don't install
18822 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18823 bits/libio-ldbl.h.
18824 * libio/_G_config.h, libio/libio.h: Delete file.
18825
18826 * libio/bits/libio.h: Remove improper-inclusion guard.
18827 Include stdio.h and don't repeat anything that it does.
18828 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18829 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18830 __io_read_fn as cookie_read_function_t,
18831 __io_write_fn as cookie_write_function_t,
18832 __io_seek_fn as cookie_seek_function_t,
18833 __io_close_fn as cookie_close_function_t,
18834 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18835 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18836 here, in the "compatibility defines" section. Remove an #if 0
18837 block. Use the "body" macros from bits/types/struct_FILE.h to
18838 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18839 and _IO_ferror_unlocked.
18840 Move prototypes of __uflow and __overflow...
18841
18842 * libio/stdio.h: ...here. Don't include bits/libio.h.
18843 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18844 directly from stdarg.h. Include bits/types/__fpos_t.h,
18845 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18846 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18847 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18848 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18849 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18850 __ssize_t, not _IO_ssize_t. Unconditionally define
18851 BUFSIZ as 8192 and EOF as (-1).
18852
18853 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18854 macros from bits/types/struct_FILE.h instead of _IO_* macros
18855 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18856 instead of _IO_ssize_t.
18857 * libio/bits/stdio2.h: Similarly.
18858
18859 * libio/iolibio.h: Add multiple-include guard.
18860 Include bits/libio.h after stdio.h.
18861 * libio/libioP.h: Add multiple-include guard.
18862 Include stdio.h and bits/libio.h before iolibio.h.
18863
18864 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18865 * include/bits/types/cookie_io_functions_t.h
18866 * include/bits/types/struct_FILE.h: New wrappers.
18867
18868 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18869 Get definitions of _G_fpos_t and _G_fpos64_t from
18870 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18871 respectively. Remove improper-inclusion guards.
18872
18873 * conform/data/stdio.h-data: Update expectations of va_list.
18874 * scripts/check-installed-headers.sh: Remove special case for
18875 libio.h and _G_config.h.
18876
18877 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18878
18879 [BZ #15105]
18880 [BZ #19463]
18881 * include/sys/sysmacros.h [!_ISOMAC]
18882 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18883 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18884 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18885 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18886 libc_hidden_proto.
18887 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18888 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18889 Likewise.
18890 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18891 Undefine and redefine to add use __gnu_dev_ prefix.
18892 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18893 Likewise.
18894 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18895 and define as hidden inline function.
18896 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18897 Likewise.
18898 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18899 Likewise.
18900 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18901 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18902 (gnu_dev_minor): Likewise.
18903 (gnu_dev_makedev): Likewise.
18904 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18905 makedev.
18906 * posix/wordexp.c (exec_comm_child): Likewise.
18907 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18908 instead of minor and __gnu_dev_major instead of major.
18909 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18910 __gnu_dev_major instead of major.
18911 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18912 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18913 instead of gnu_dev_minor.
18914 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18915 (SLAVE_P): Likewise.
18916 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18917 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18918 instead of major.
18919
18920 [BZ #21313]
18921 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18922 in another place.
18923 * locale/weightwc.h (findidx): Likewise.
18924
18925 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18926
18927 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18928 (slowlog_inexact): Likewise
18929 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18930 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18931
18932 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18933
18934 [BZ #22797]
18935 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18936 missing second underscore to parameter name.
18937
18938 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18939
18940 [BZ #14508]
18941 [BZ #15512]
18942 [BZ #17082]
18943 [BZ #20530]
18944 * bits/byteswap.h: Update file comment. Do not include
18945 <bits/byteswap-16.h>.
18946 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18947 constant.
18948 (__bswap_16): Define as inline function.
18949 (__bswap_constant_32): Reformat definition.
18950 (__bswap_32): Always define as inline function, not macro, using
18951 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18952 otherwise __bswap_constant_32.
18953 (__bswap_constant_64): Reformat definition. Do not use
18954 __extension__ here.
18955 (__bswap_64): Always define as inline function, not macro. Use
18956 __extension__ on function definition. Use __builtin_bswap64 if
18957 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18958 * string/test-endian-file-scope.c: New file.
18959 * string/test-endian-sign-conversion.c: Likewise.
18960 * string/Makefile (headers): Remove bits/byteswap-16.h.
18961 (tests): Add test-endian-file-scope and
18962 test-endian-sign-conversion.
18963 (CFLAGS-test-endian-sign-conversion.c): New variable.
18964 * bits/byteswap-16.h: Remove file.
18965 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18966 * sysdeps/ia64/bits/byteswap.h: Likewise.
18967 * sysdeps/m68k/bits/byteswap.h: Likewise.
18968 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18969 * sysdeps/s390/bits/byteswap.h: Likewise.
18970 * sysdeps/tile/bits/byteswap.h: Likewise.
18971 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18972 * sysdeps/x86/bits/byteswap.h: Likewise.
18973
18974 [BZ #17721]
18975 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18976 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18977 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18978 199901L] (__restrict): Define to restrict.
18979
18980 [BZ #19667]
18981 * string/testcopy.c: Include <support/support.h>. Do not include
18982 <malloc.h>. Use <support/test-driver.c>.
18983 (main): Rename to do_test. Make static. Use xmalloc instead of
18984 malloc.
18985
18986 [BZ #13575]
18987 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18988 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18989 (SSIZE_MAX): Define to INT_MAX.
18990 * posix/test-ssize-max.c: New file.
18991 * posix/Makefile (tests): Add test-ssize-max.
18992
18993 [BZ #19668]
18994 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18995 <support/support.h>. Do not include <malloc.h>.
18996 (query_auxv): Use xmalloc instead of malloc.
18997
18998 [BZ #14553]
18999 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
19000 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
19001 instead of loff_t.
19002
19003 2018-02-06 Florian Weimer <fweimer@redhat.com>
19004
19005 [BZ #18023]
19006 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19007 Use scratch_buffer instead of extend_alloca.
19008
19009 2018-02-06 Zack Weinberg <zackw@panix.com>
19010
19011 * libio/stdio.h: Don't define getc or putc as macros.
19012 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
19013 not _IO_getc and _IO_putc.
19014
19015 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
19016 * stdio-common/tstgetln.c: Don't redefine ssize_t.
19017
19018 2018-02-06 Joseph Myers <joseph@codesourcery.com>
19019
19020 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
19021 (TCP_FASTOPEN_NO_COOKIE): Likewise.
19022
19023 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
19024
19025 [BZ #14890]
19026 * elf/elf.h (NT_PRFPREG): New macro.
19027 (NT_S390_VXRS_LOW): Likewise.
19028 (NT_S390_VXRS_HIGH): Likewise.
19029 (NT_S390_GS_CB): Likewise.
19030 (NT_S390_GS_BC): Likewise.
19031 (NT_S390_RI_CB): Likewise.
19032
19033 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
19034 (MAP_SYNC): New macro.
19035 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
19036 Likewise.
19037 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
19038 (MAP_SYNC): Likewise.
19039 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
19040 (MAP_SYNC): Likewise.
19041 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
19042 (MAP_SYNC): Likewise.
19043 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
19044 (MAP_SYNC): Likewise.
19045 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
19046 (MAP_SYNC): Likewise.
19047 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
19048 (MAP_SYNC): Likewise.
19049 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
19050 Likewise.
19051 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
19052 Likewise.
19053
19054 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
19055 (MAP_SHARED_VALIDATE): New macro.
19056 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
19057 (MAP_SHARED_VALIDATE): Likewise.
19058
19059 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19060
19061 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
19062 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
19063 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19064
19065 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19066
19067 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
19068 (DT_NUM): Updated to 35.
19069
19070 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19071
19072 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
19073 __builtin_expect with __glibc_likely and __glibc_unlikely.
19074 (elf_machine_rela): Likewise.
19075 (elf_machine_lazy_rel): Likewise.
19076
19077 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19078
19079 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
19080 __builtin_expect with __glibc_likely and __glibc_unlikely.
19081 (elf_machine_lazy_rel): Likewise.
19082
19083 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
19084
19085 [BZ #22638]
19086 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
19087 SHARED.
19088 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
19089
19090 2018-02-05 Andreas Schwab <schwab@suse.de>
19091
19092 [BZ #22761]
19093 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
19094 string.
19095
19096 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
19097
19098 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
19099 not check against PTHREAD_STACK_MIN.
19100
19101 2018-02-02 Sean McKean <smckean83@gmail.com>
19102
19103 [BZ #22735]
19104 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
19105
19106 2018-02-02 Florian Weimer <fweimer@redhat.com>
19107
19108 [BZ #22753]
19109 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
19110 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
19111 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
19112 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
19113 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
19114 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
19115 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
19116 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
19117 * manual/llio.texi (Scatter-Gather): Mention offset -1.
19118 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
19119 * misc/tst-preadvwritev2.c (do_test): Call it.
19120 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
19121
19122 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
19123
19124 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
19125
19126 * benchtests/bench-memcmp.c: Print json instead of plain text.
19127
19128 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
19129 every test run.
19130
19131 2018-02-01 Joseph Myers <joseph@codesourcery.com>
19132
19133 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19134 version to 4.15.
19135 (s390_sthyi): New syscall.
19136
19137 * sysdeps/generic/ldbl-classify-compat.h: New file.
19138 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
19139 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
19140 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
19141 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
19142 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
19143 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19144 * sysdeps/ieee754/dbl-64/s_finite.c: Include
19145 <ldbl-classify-compat.h>.
19146 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19147 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19148 <ldbl-classify-compat.h>.
19149 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19150 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19151 <ldbl-classify-compat.h>.
19152 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19153 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19154 <ldbl-classify-compat.h>.
19155 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19156 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19157 <ldbl-classify-compat.h>.
19158 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19159 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19160 <ldbl-classify-compat.h>.
19161 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19162 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19163 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19164 * sysdeps/m68k/coldfire/math_private.h: Remove file.
19165 * sysdeps/microblaze/math_private.h: Likewise.
19166 * sysdeps/nios2/math_private.h: Likewise.
19167 * sysdeps/sh/math_private.h: Likewise.
19168
19169 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19170 * sysdeps/m68k/coldfire/math_private.h: ... here.
19171 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19172 * sysdeps/tile/math_private.h: Likewise.
19173 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19174 Remove macro.
19175 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19176 Likewise.
19177
19178 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19179 Remove macro.
19180 (libc_fetestexcept): Likewise.
19181 (libc_feupdateenv_test): Likewise.
19182 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19183 (libc_fetestexcept): Likewise.
19184 (libc_feupdateenv_test): Likewise.
19185 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19186 (libc_fetestexcept): Likewise.
19187 (libc_feupdateenv_test): Likewise.
19188 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19189 (libc_fetestexcept): Likewise.
19190 (libc_feupdateenv_test): Likewise.
19191
19192 * sysdeps/generic/math_private.h
19193 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19194 New inline function.
19195 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19196 Likewise.
19197
19198 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19199 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19200 * sysdeps/generic/math_private.h
19201 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19202 inline function.
19203 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19204 Likewise.
19205 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19206 Likewise.
19207 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19208 Likewise.
19209 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19210 Likewise.
19211 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19212 Likewise.
19213 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19214 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19215 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19216 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19217 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19218 (__fegetenv): Likewise.
19219 (fesetenv): Likewise.
19220 (__fesetenv): Likewise.
19221 (feupdateenv): Likewise.
19222 (__feupdateenv): Likewise.
19223 (fegetround): Likewise.
19224 (__fegetround): Likewise.
19225 (fesetround): Likewise.
19226 (__fesetround): Likewise.
19227
19228 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19229 (feraiseexcept): New macro.
19230 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19231 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19232 Remove macro.
19233 (__feraiseexcept): Likewise.
19234 (feclearexcept): Likewise.
19235 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19236 (__feraiseexcept): Likewise.
19237 (feclearexcept): Likewise.
19238 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19239 (__feraiseexcept): Likewise.
19240 (feclearexcept): Likewise.
19241 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19242 (__feraiseexcept): Likewise.
19243 (feclearexcept): Likewise.
19244 (fetestexcept): Likewise.
19245
19246 * sysdeps/m68k/coldfire/math-tests.h: New file.
19247
19248 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19249 * sysdeps/m68k/bits/fenv.h: ... here.
19250 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19251 not define.
19252 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19253 Likewise.
19254 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19255 Likewise.
19256 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19257 Likewise.
19258 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19259 Likewise.
19260 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19261 Define to 0.
19262 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19263 (__FE_UNDEFINED): New enum constant.
19264 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19265 Do not define.
19266 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19267 Likewise.
19268 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19269 Likewise.
19270 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19271 to match generic bits/fenv.h.
19272 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19273 Do not define.
19274
19275 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19276 packed on bits.
19277 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19278 * soft-fp/half.h (union _FP_UNION_H): Likewise.
19279 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19280 * soft-fp/single.h (union _FP_UNION_S): Likewise.
19281
19282 2018-02-01 Carlos O'Donell <carlos@redhat.com>
19283 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
19284 Joseph Myers <joseph@codesourcery.com>
19285
19286 [BZ #21314]
19287 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19288 (__log1p): Disable -Wmaybe-uninitialized for -Os around
19289 computation using c.
19290 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19291 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19292 computation using c.
19293
19294 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19295
19296 * version.h (RELEASE): Set to "development".
19297 (VERSION): Set to "2.27.9000".
19298 * NEWS (2.28): New section.
19299
19300 * version.h (RELEASE): Set to "stable".
19301 (VERSION): Set to "2.27".
19302 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19303
19304 * NEWS: Add the list of bugs fixed in 2.27.
19305
19306 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19307
19308 * stdlib/test-atexit-race-common.c (do_test): Check stack size
19309 against PTHREAD_STACK_MIN.
19310
19311 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19312
19313 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19314 New entries.
19315 (Rafal Luzynski, Andreas Schwab): Update.
19316
19317 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
19318
19319 [BZ #10871]
19320 * NEWS: List the languages which actually use the alternative
19321 months feature in this release. Also explain that "alt_mon" and
19322 "ab_alt_mon" are optional.
19323
19324 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
19325
19326 [BZ #22765]
19327 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19328
19329 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
19330
19331 * manual/install.texi (Tools for Compilation): Update the newest
19332 versions of gcc, binutils, texinfo, gawk, bison, and sed.
19333 * INSTALL: Regenerated.
19334
19335 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
19336
19337 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19338 instead of __builtin_expect.
19339
19340 2018-01-30 Florian Weimer <fweimer@redhat.com>
19341
19342 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19343 data.
19344 * nss/tst-nss-getpwent.c (do_test): Likewise.
19345
19346 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
19347
19348 [BZ #10871]
19349 * localedata/locales/hr_HR (mon): Rename to...
19350 (alt_mon): This.
19351 (mon): Import from CLDR (genitive case).
19352 (d_t_fmt): Update the comment.
19353
19354 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19355
19356 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19357 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19358 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19359
19360 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19361
19362 * mach/Versions: Fix version when __mach_host_self_ was added.
19363 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19364 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19365 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19366 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19367 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19368 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19369 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19370 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19371 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19372 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19373 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19374 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19375 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19376 || to respect codestyle.
19377 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19378 (do_test_bz20181): Rename accordingly.
19379 * malloc/malloc.c: Include <assert.h>.
19380 (assert): Do not define.
19381 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19382 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19383 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19384 * sysdeps/mach/hurd/hp-timing.h: New file.
19385 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19386
19387 2018-01-29 Darius Rad <darius@bluespec.com>
19388
19389 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19390
19391 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19392
19393 * sysdeps/init_array/crti.S (.section .init_array): Add
19394 PREINIT_FUNCTION when defined.
19395 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19396 * config.h.in: Regenerate.
19397 * manual/platform.texi: Add RISC-V documenation for
19398 __riscv_flush_icache.
19399 * sysdeps/riscv/__longjmp.S: New file.
19400 * sysdeps/riscv/backtrace.c: Likewise.
19401 * sysdeps/riscv/bits/endian.h: Likewise.
19402 * sysdeps/riscv/bits/setjmp.h: Likewise.
19403 * sysdeps/riscv/bits/wordsize.h: Likewise.
19404 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19405 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19406 * sysdeps/riscv/dl-trampoline.S: Likewise.
19407 * sysdeps/riscv/gccframe.h: Likewise.
19408 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19409 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19410 * sysdeps/riscv/machine-gmon.h: Likewise.
19411 * sysdeps/riscv/memusage.h: Likewise.
19412 * sysdeps/riscv/setjmp.S: Likewise.
19413 * sysdeps/riscv/sys/asm.h: Likewise.
19414 * sysdeps/riscv/tls-macros.h: Likewise.
19415 * sysdeps/riscv/dl-tls.h: New file.
19416 * sysdeps/riscv/libc-tls.c: Likewise.
19417 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19418 * sysdeps/riscv/nptl/tls.h: Likewise.
19419 * sysdeps/riscv/stackinfo.h: Likewise.
19420 * sysdeps/riscv/bits/fenv.h: New file.
19421 * sysdeps/riscv/e_sqrtl.c: Likewise.
19422 * sysdeps/riscv/fpu_control.h: Likewise.
19423 * sysdeps/riscv/math-tests.h: Likewise.
19424 * sysdeps/riscv/nofpu/Implies: Likewise.
19425 * sysdeps/riscv/sfp-machine.h: Likewise.
19426 * sysdeps/riscv/tininess.h: Likewise.
19427 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19428 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19429 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19430 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19431 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19432 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19433 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19434 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19435 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19436 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19437 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19438 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19439 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19440 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19441 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19442 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19443 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19444 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19445 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19446 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19447 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19448 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19449 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19450 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19451 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19452 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19453 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19454 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19455 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19456 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19457 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19458 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19459 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19460 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19461 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19462 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19463 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19464 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19465 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19466 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19467 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19468 * sysdeps/riscv/rvf/math_private.h: Likewise.
19469 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19470 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19471 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19472 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19473 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19474 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19475 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19476 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19477 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19478 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19479 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19480 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19481 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19482 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19483 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19484 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19485 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19486 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19487 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19488 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19489 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19490 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19491 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19492 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19493 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19494 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19495 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19496 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19497 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19498 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19499 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19500 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19501 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19502 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19503 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19504 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19505 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19506 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19507 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19508 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19509 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19510 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19511 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19512 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19513 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19514 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19515 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19516 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19517 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19518 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19519 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19520 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19521 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19522 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19523 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19524 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19525 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19526 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19527 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19528 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19529 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19530 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19531 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19532 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19533 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19534 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19535 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19536 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19537 * sysdeps/riscv/Implies: New file.
19538 * sysdeps/riscv/Makefile: Likewise.
19539 * sysdeps/riscv/configure: Likewise.
19540 * sysdeps/riscv/configure.ac: Likewise.
19541 * sysdeps/riscv/nptl/Makefile: Likewise.
19542 * sysdeps/riscv/preconfigure: Likewise.
19543 * sysdeps/riscv/rv64/Implies-after: Likewise.
19544 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19545 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19546 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19547 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19548 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19549 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19550 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19551 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19552 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19553 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19554 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19555 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19556 (Config): Likewise.
19557
19558 2018-01-29 Florian Weimer <fweimer@redhat.com>
19559
19560 [BZ #22701]
19561 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19562 libnsl_hidden_proto.
19563 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19564 libnsl_hidden_proto.
19565 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19566 * nis/Makefile (libnsl-routines): Add nss-default only for
19567 build-obsolete-nsl.
19568 * nis/nis_defaults.c (__nis_default_ttl): Add
19569 libnsl_hidden_nolink_def.
19570 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19571 declaration.
19572 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19573 * nis/ypclnt.c (yp_maplist): Likewise.
19574
19575 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19576
19577 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19578 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19579
19580 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19581
19582 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19583 clean -dxfq for git updates when replacing sources.
19584
19585 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19586 --disable-libcilkrts unconditionally, not just for the final GCC
19587 build for Hurd.
19588
19589 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19590 version to 4.15.
19591
19592 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19593
19594 [BZ #10871]
19595 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19596 case).
19597
19598 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19599
19600 [BZ #10871]
19601 * localedata/locales/be_BY (mon): Rename to...
19602 (alt_mon): This, then synchronize with CLDR (nominative case).
19603 (abmon): Rename to...
19604 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19605 (mon): Import from CLDR (genitive case).
19606 (abmon): Likewise.
19607 * localedata/locales/be_BY@latin (mon): Rename to...
19608 (alt_mon): This.
19609 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19610
19611 * localedata/locales/be_BY@latin (lang_name): Reworded to
19612 "biełaruskaja mova".
19613
19614 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19615
19616 [BZ #10871]
19617 * localedata/locales/el_CY (mon): Renamed to...
19618 (alt_mon): This.
19619 (mon): Import from CLDR (genitive case).
19620 * localedata/locales/el_GR: Likewise.
19621
19622 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19623
19624 [BZ #10871]
19625 * localedata/locales/ru_RU (mon): Rename to...
19626 (alt_mon): This.
19627 (abmon): Rename to...
19628 (ab_alt_mon): This.
19629 (mon): Import from CLDR (genitive case).
19630 (abmon): Copy from the old content except the 5th month which is
19631 now in the genitive case, even when abbreviated.
19632 * localedata/locales/ru_UA: Likewise.
19633 * time/tst-strptime.c (day_tests): Add an actual example of
19634 a difference between %b and %Ob in Russian.
19635
19636 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19637
19638 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19639 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19640 a `c' variable.
19641 * resolv/res-close.c: Include <stdlib.h>.
19642 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19643 <sys/wait.h>, <time.h>, <sys/uio.h>.
19644 (NOT_CANCEL_H): Add inclusion guard.
19645 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19646 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19647 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19648 return 0.
19649 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19650 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19651 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19652 instead of void *.
19653 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19654 timer_ptr2id to cast struct timer_node * to void *.
19655 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19656 --disable-libcilkrts to gcc configure.
19657 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19658 and make them the default for now.
19659 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19660 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19661 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19662 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19663 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19664 MACH_IPC_COMPAT.
19665 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19666 __task_terminate would ever return successfully.
19667 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19668 to global scope.
19669 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19670 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19671 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19672 critical section to make code simpler and avoid warning.
19673 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19674 critical section to make code simpler and avoid warning.
19675 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19676 const char * instead of char *.
19677 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19678 __hurd_file_name_split, hurd_file_name_split,
19679 __hurd_directory_name_split, hurd_directory_name_split,
19680 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19681 hurd_file_name_path_lookup): Make lookup function parameter take a
19682 const char *name instead of char *name.
19683 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19684 __hurd_directory_name_split): Likewise.
19685 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19686 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19687 * sysdeps/mach/hurd/check_native.c: New file.
19688 * sysdeps/mach/hurd/check_pf.c: New file.
19689 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19690 (__freeifaddrs): Define macro to freeifaddrs.
19691 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19692 * sysdeps/mach/libmachuser.abilist: New file.
19693 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19694 (do_test_bz20181): Rename accordingly.
19695 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19696 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19697 <sys/mount.h>.
19698 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19699 version only if __USE_EXTERN_INLINES is defined.
19700 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19701 __hurd_sockfail): Likewise.
19702 (_hurd_fd_get): Always declare functions, and provide inline versions
19703 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19704 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19705 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19706 _hurd_port_set): Always declare functions, and provide inline versions
19707 only if __USE_EXTERN_INLINES and _LIBC are defined and
19708 IS_IN(libc).
19709 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19710 _hurd_critical_section_unlock): Likewise.
19711 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19712 * __hurd_threadvar_location): Likewise.
19713 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19714 _hurd_userlink_clear): Likewise.
19715 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19716 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19717 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19718 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19719 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19720 __spin_lock_locked): Likewise.
19721 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19722 __spin_lock_locked): Likewise.
19723 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19724 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19725 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19726 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19727 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19728 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19729 _POSIX_NO_TRUNC): Define to 0.
19730 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19731 check size against PTHREAD_STACK_MIN.
19732 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19733 IS_IN(libpthread)]: Include <sigsetops.h>.
19734 * mach/Makefile (user-interfaces): Add mach/gnumach.
19735 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19736 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19737 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19738 instead of invalid -1.
19739 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19740 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19741 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19742 <net/ppp_defs.h>.
19743
19744 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19745
19746 * hurd/fcntl-internal.h: New file.
19747
19748 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19749
19750 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19751
19752 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19753
19754 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19755
19756 [BZ #22701]
19757 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19758 Build only shared objects.
19759
19760 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19761
19762 * README: Update for hppa.
19763
19764 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19765
19766 * sysdeps/sparc/fpu/libm-test-ulps: Update
19767 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19768
19769 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19770
19771 Revert:
19772
19773 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19774
19775 [BZ #22563]
19776 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19777 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19778 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19779 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19780 to feature_1.
19781
19782 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19783
19784 [BZ #22563]
19785 * bits/types/__cancel_jmp_buf_tag.h: New file.
19786 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19787 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19788 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19789 * nptl/Makefile (headers): Add
19790 bits/types/__cancel_jmp_buf_tag.h.
19791 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19792 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19793 * sysdeps/nptl/pthread.h: Include
19794 <bits/types/__cancel_jmp_buf_tag.h>.
19795 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19796 __cancel_jmp_buf.
19797 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19798
19799 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19800
19801 [BZ #10871]
19802 * localedata/locales/uk_UA (mon): Renamed to...
19803 (alt_mon): This.
19804 (alt_digits): "0" removed and then renamed to...
19805 (mon): This.
19806 (date_fmt): Definition changed not to use the alternative
19807 digits hack.
19808
19809 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19810
19811 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19812 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19813 * elf/elf.h (EF_RISCV_RVC): New define.
19814 (EF_RISCV_FLOAT_ABI): Likewise.
19815 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19816 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19817 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19818 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19819 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19820 define.
19821 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19822
19823 2018-01-25 Andreas Schwab <schwab@suse.de>
19824
19825 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19826 single quotes.
19827 * sysdeps/gnu/configure: Regenerate.
19828 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19829 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19831 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19832 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19833 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19834 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19835 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19836
19837 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19838
19839 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19840 URL, and run autoconf, make it the default for now.
19841
19842 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19843
19844 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19845 soft-float ColdFire configuration.
19846
19847 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19848 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19849 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19850
19851 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19852 MicroBlaze file.
19853
19854 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19855 ....
19856 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19857 ... here.
19858 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19859 New file.
19860
19861 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19862 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19863 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19864 file.
19865
19866 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19867
19868 [BZ #22742]
19869 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19870 Rename to __reserved and add comment.
19871 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19872 Rename to __reserved.
19873
19874 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19875
19876 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19877 i686-gnu configurations.
19878 (Context.run_builds): Include mig, gnumach and hurd in components
19879 considered.
19880 (Context.checkout): Add mig, gnumach and hurd to components.
19881 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19882 hurd.
19883 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19884 (Config.build): Install gnumach headers, build mig and install
19885 hurd headers for 'gnu' OS.
19886 (Config.install_gnumach_headers): New function.
19887 (Config.install_hurd_headers): Likewise.
19888 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19889 when building for 'gnu' OS.
19890
19891 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19892
19893 * manual/tunables.texi (Hardware Capability Tunables): Fix
19894 spelling.
19895
19896 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19897
19898 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19899 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19900 (ALTMON_11, ALTMON_12): Improve documentation.
19901 * manual/time.texi (strftime): Likewise.
19902
19903 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19904
19905 [BZ #10871]
19906 * localedata/locales/pl_PL: Alternative month names added,
19907 primary month names are genitive now.
19908 * time/tst-strptime.c (day_tests): Actually use a genitive case
19909 of a month name in Polish language.
19910
19911 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19912
19913 [BZ #10871]
19914 * manual/locale.texi: Document ALTMON_1..12 constants for
19915 nl_langinfo. Specify when to use ALTMON instead of MON.
19916 * manual/time.texi (strftime, strptime): Document GNU extension
19917 permitting O modifier with %B and %b. Specify when to use
19918 %OB instead of %B.
19919
19920 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19921
19922 [BZ #10871]
19923 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19924 names, define them as the same as abbreviated month names explicitly.
19925 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19926 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19927 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19928 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19929 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19930 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19931 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19932 _NL_WABALTMON_12): New enum constants.
19933 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19934 wab_alt_mon, and ab_alt_mon_defined members.
19935 (time_output): Output ab_alt_mon and wab_alt_mon members.
19936 (time_read): Read them, initialize them as copies of abmon and wabmon
19937 respectively if they are missing, initialize ab_alt_mon_defined.
19938 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19939 * locale/programs/locfile-kw.h: Regenerate.
19940 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19941 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19942 and ru_RU.UTF-8.
19943 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19944 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19945 (__strftime_internal): Handle %Ob and %Oh formats.
19946 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19947 (__strptime_internal): Handle %Ob and %Oh formats.
19948 * time/tst-strptime.c (day_tests): Add more tests to parse different
19949 forms of month names including the new %Ob format specifier.
19950
19951 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19952
19953 [BZ #10871]
19954 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19955 define them as the same as primary full month names explicitly.
19956 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19957 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19958 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19959 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19960 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19961 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19962 _NL_WALTMON_12): New enum constants.
19963 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19964 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19965 macros.
19966 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19967 walt_mon, and alt_mon_defined members.
19968 (time_output): Output alt_mon and walt_mon members.
19969 (time_read): Read them, initialize them as copies of mon and wmon
19970 respectively if they are missing, initialize alt_mon_defined.
19971 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19972 * locale/programs/locfile-kw.h: Regenerate.
19973 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19974 * localedata/tst-langinfo.c (map): Add tests for the new constants
19975 ALTMON_1 .. ALTMON_12.
19976 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19977 and pl_PL.UTF-8.
19978 * time/strftime_l.c (f_altmonth): New macro.
19979 (__strftime_internal): Handle %OB format.
19980 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19981 (__strptime_internal): Handle %OB format.
19982 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19983 of month names including the new %OB format specifier.
19984
19985 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19986
19987 [BZ #22685]
19988 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19989 from ABORT_TRANSACTION.
19990 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19991 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19992 ABORT_TRANSACTION_IMPL): Likewise.
19993 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19994 Linux code, but remove the code that aborts transactions.
19995
19996 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19997
19998 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19999
20000 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
20001
20002 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
20003 in date: "2004-14-09" should be "2004-09-14".
20004 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
20005 "2003-15-09" should be "2003-09-15".
20006
20007 2018-01-18 Arjun Shankar <arjun@redhat.com>
20008
20009 [BZ #22343]
20010 [BZ #22774]
20011 CVE-2018-6485
20012 CVE-2018-6551
20013 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
20014 after padding.
20015 (_int_memalign): check for integer overflow before calling
20016 _int_malloc.
20017 * malloc/tst-malloc-too-large.c: New test.
20018 * malloc/Makefile: Add tst-malloc-too-large.
20019
20020 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
20021
20022 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
20023 in date: "2017-24-07" should be "2017-07-24".
20024 * localedata/locales/mai_IN: Likewise.
20025 * localedata/locales/mai_NP: Likewise.
20026
20027 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
20028
20029 * po/ru.po: Update translations.
20030
20031 2018-01-17 Joseph Myers <joseph@codesourcery.com>
20032
20033 [BZ #22719]
20034 * sysdeps/hppa/backtrace.c: New file.
20035
20036 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
20037
20038 [BZ #22715]
20039 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
20040 align La_x86_64_retval to VEC_SIZE.
20041
20042 2018-01-16 Joseph Myers <joseph@codesourcery.com>
20043
20044 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
20045 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
20046
20047 2018-01-16 Florian Weimer <fweimer@redhat.com>
20048
20049 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
20050 Move tst-thread-exit-clobber ...
20051 [$(CXX)] (tests-unsupported): ... to here.
20052
20053 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
20054
20055 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
20056 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
20057 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20058 (_dl_aarch64_cap_flags): Update.
20059 (_DL_HWCAP_COUNT): Update.
20060
20061 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
20062
20063 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
20064 (_DL_HWCAP_LAST): Remove.
20065 (_DL_HWCAP_COUNT): Move to ...
20066 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
20067 (_DL_HWCAP_COUNT): ... here.
20068
20069 2018-01-16 Florian Weimer <fweimer@redhat.com>
20070
20071 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
20072 mode with GNU extensions.
20073
20074 2018-01-15 Alan Hayward <alan.hayward@arm.com>
20075
20076 * elf/elf.h (NT_ARM_SVE): Define.
20077
20078 2018-01-15 Florian Weimer <fweimer@redhat.com>
20079
20080 [BZ #22636]
20081 * nptl/tst-minstack-throw.cc: New file.
20082 * nptl/Makefile (tests): Add tst-minstack-throw.
20083 (LDLIBS-tst-minstack-throw): Link with libstdc++.
20084 [!CXX] (tests-unsupported): Add tst-minstack-throw.
20085
20086 2018-01-15 Joseph Myers <joseph@codesourcery.com>
20087
20088 * scripts/build-many-glibcs.py (Context.checkout): Default
20089 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
20090 version to 1.1.0.
20091
20092 2018-01-13 Carlos O'Donell <carlos@redhat.com>
20093
20094 [BZ #22707]
20095 * elf/elf.h (DF_1_STUB): Define.
20096 (DF_1_PIE): Define.
20097
20098 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20099
20100 [BZ #22697]
20101 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
20102 Do not add 0.5 to integer or out-of-range arguments.
20103
20104 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20105
20106 * po/bg.po: Update translations.
20107 * po/cs.po: Likewise.
20108 * po/de.po: Likewise.
20109 * po/ko.po: Likewise.
20110 * po/pl.po: Likewise.
20111 * po/sv.po: Likewise.
20112 * po/uk.po: Likewise.
20113 * po/vi.po: Likewise.
20114
20115 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20116
20117 * aarch64/start.S (_start): Use __wrap_main.
20118 (__wrap_main): New local symbol.
20119
20120 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
20121
20122 [BZ #22679]
20123 CVE-2018-1000001
20124 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
20125 generic_getcwd if the path returned by getcwd syscall is not absolute.
20126 * io/tst-getcwd-abspath.c: New test.
20127 * io/Makefile (tests): Add tst-getcwd-abspath.
20128
20129 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
20130
20131 * malloc/malloc.c (malloc_consolidate): Add size check.
20132
20133 2018-01-12 Florian Weimer <fweimer@redhat.com>
20134
20135 * support/write_message.c (write_message): Preserve errno.
20136 * support/check.c (print_failure): Likewise.
20137 * support/support_test_verify_impl.c (support_test_verify_impl):
20138 Likewise.
20139 * support/support_test_compare_failure.c
20140 (support_test_compare_failure): Likewise.
20141
20142 2018-01-12 Florian Weimer <fweimer@redhat.com>
20143
20144 [BZ #22701]
20145 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20146 Prevent installation of libnsl.so.
20147 (libnsl-inhibit-o): Do not build (or install) static libraries.
20148
20149 2018-01-12 Egmont Koblinger <egmont@gmail.com>
20150
20151 [BZ #22657]
20152 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20153 before the day number which may produce a double space.
20154 (date_fmt): Likewise.
20155
20156 2018-01-12 Joseph Myers <joseph@codesourcery.com>
20157
20158 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20159 instead of fegetenv.
20160
20161 2018-01-11 Joseph Myers <joseph@codesourcery.com>
20162
20163 [BZ #22702]
20164 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20165 comment to say exceptions are discarded.
20166 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20167 __fegetenv.
20168 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20169 be enabled.
20170
20171 2018-01-11 Florian Weimer <fweimer@redhat.com>
20172
20173 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20174 and error message.
20175
20176 2018-01-11 Florian Weimer <fweimer@redhat.com>
20177
20178 [BZ #22636]
20179 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20180 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20181
20182 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20183
20184 [BZ #22693]
20185 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20186 negative arguments in test for NaN or infinity argument.
20187
20188 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
20189
20190 * po/libc.pot: Regenerate.
20191
20192 2018-01-10 Florian Weimer <fweimer@redhat.com>
20193
20194 [BZ #22636]
20195 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20196 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20197
20198 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
20199
20200 * hurd/hurd/fd.h: Include <fcntl.h>
20201 (__hurd_at_flags): New function.
20202 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20203 with call to __hurd_at_flags.
20204 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20205 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20206 __faccessat
20207 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20208 (__access_noerrno): Use __faccessat_common instead of access_common.
20209 (__access): Likewise.
20210 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20211 with a call to __faccessat.
20212 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20213 (__faccessat_common): ... this. Move implementation of __access into it when
20214 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20215 reauthenticate_cwdir_at helper to implement AT mechanism.
20216 (__faccessat_noerrno): New function, just calls __faccessat_common.
20217 (__faccessat): New function, just calls __faccessat_common.
20218 (faccessat): Define weak alias.
20219
20220 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20221
20222 [BZ #22691]
20223 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20224 (CFLAGS-s_fmaxmagl.c): New variable.
20225 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20226
20227 [BZ #22690]
20228 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20229 long int for arguments of possibly overflowing addition or
20230 subtraction.
20231 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20232
20233 2018-01-09 Joseph Myers <joseph@codesourcery.com>
20234
20235 [BZ #22688]
20236 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20237 (CFLAGS-e_remainderl.c): New variable.
20238
20239 [BZ #22687]
20240 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20241 variable.
20242 (CFLAGS-s_cacoshl.c): Likewise.
20243 (CFLAGS-s_casinhl.c): Likewise.
20244 (CFLAGS-s_catanl.c): Likewise.
20245 (CFLAGS-s_catanhl.c): Likewise.
20246 (CFLAGS-s_cexpl.c): Likewise.
20247 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20248 (CFLAGS-s_csinhl.c): Likewise.
20249 (CFLAGS-s_clogl.c): Likewise.
20250 (CFLAGS-s_clog10l.c): Likewise.
20251 (CFLAGS-s_csinl.c): Likewise.
20252 (CFLAGS-s_csqrtl.c): Likewise.
20253
20254 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
20255 2017-01-09 Svante Signell <svante.signell@gmail.com>
20256
20257 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20258 (_hurd_exec_paths): New function.
20259 * hurd/hurd.h (_hurd_exec): Deprecate function.
20260 (_hurd_exec_paths): Declare function.
20261 * hurd/Versions: Export _hurd_exec_paths.
20262 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20263 (__execve): Use __getcwd to build absolute path, and use
20264 _hurd_exec_paths instead of _hurd_exec.
20265 * sysdeps/mach/hurd/spawni.c: Likewise.
20266 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20267 _hurd_exec.
20268
20269 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
20270
20271 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20272 test instead of failing in case of ENOENT returned by posix_openpt.
20273
20274 2018-01-08 Florian Weimer <fweimer@redhat.com>
20275
20276 resolv: Support binary labels in test framework.
20277 * support/resolv_test.c (struct to_be_freed): Remove.
20278 (struct compressed_name): New.
20279 (allocate_compressed_name, ascii_tolower)
20280 (compare_compressed_name): New functions.
20281 (struct resolv_response_builder): Update type of
20282 compression_offsets for use with tsearch. Rempve to_be_freed.
20283 (response_push_pointer_to_free): Remove function.
20284 (resolv_response_add_name): Rewrite using struct compressed_name
20285 and tsearch instead of hsearch_r.
20286 (response_builder_allocate): Remove initialization of
20287 compression_offsets.
20288 (response_builder_free): Update for removal of to_be_freed. Use
20289 tdestroy instead of hdestroy_r.
20290 * resolv/Makefile (tests): Add tst-resolv-binary.
20291 (tst-resolv-binary): Link with -lresolv -lpthread.
20292
20293 2018-01-08 Florian Weimer <fweimer@redhat.com>
20294
20295 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20296 time. Pass positive flag instead of negative flag to
20297 support_test_compare_failure.
20298 (support_test_compare_failure): Change negative parameter to
20299 positive.
20300 * support/support_test_compare_failure.c (report)
20301 (support_test_compare_failure): Likewise.
20302 * support/tst-test_compare.c (return_ssize_t, return_int): New.
20303 (do_test): Check int/size_t, ssize_t/size_t comparisons.
20304
20305 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
20306
20307 [BZ #22637]
20308 * nptl/descr.h (stackblock, stackblock_size): Update comments.
20309 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20310 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20311 stacksize.
20312 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20313
20314 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
20315
20316 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20317 Add s_sincosf-sse2 and s_sincosf-fma.
20318 (CFLAGS-s_sincosf-fma.c): New.
20319 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20320 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20321 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20322 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20323 __sincosf is defined.
20324
20325 2018-01-08 Florian Weimer <fweimer@redhat.com>
20326
20327 * nptl/tst-thread-exit-clobber.cc: New file.
20328 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20329 C++11 mode.
20330 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20331 (tests): Add tst-thread-exit-clobber.
20332 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20333
20334 2018-01-08 Florian Weimer <fweimer@redhat.com>
20335
20336 * support/check.h (support_static_assert): Define.
20337 (TEST_COMPARE): Use it.
20338
20339 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
20340
20341 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20342 [!__RLIM_T_MATCHES_RLIM64_T]
20343 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20344 __getrlimit64. Add libc_hidden_weak.
20345
20346 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
20347
20348 * elf/elf.h (R_RISCV_NONE): New define.
20349 (R_RISCV_32): Likewise.
20350 (R_RISCV_64): Likewise.
20351 (R_RISCV_RELATIVE): Likewise.
20352 (R_RISCV_COPY): Likewise.
20353 (R_RISCV_JUMP_SLOT): Likewise.
20354 (R_RISCV_TLS_DTPMOD32): Likewise.
20355 (R_RISCV_TLS_DTPMOD64): Likewise.
20356 (R_RISCV_TLS_DTPREL32): Likewise.
20357 (R_RISCV_TLS_DTPREL64): Likewise.
20358 (R_RISCV_TLS_TPREL32): Likewise.
20359 (R_RISCV_TLS_TPREL64): Likewise.
20360 * Makerules (make-link-multidir): Make directories before linking into
20361 them.
20362 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20363 define.
20364 (VDSO_HASH_LINUX_4_15): Likewise.
20365 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20366 in subdirectories of lib.
20367 * nptl/Makefile (/librt.so): Always depend on
20368 "$(shared-thread-library)".
20369
20370 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20371
20372 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20373 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20374 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20375 (___tls_get_addr).
20376 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20377 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20378 "-O2 -march=i686".
20379 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20380 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20381 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20382 * sysdeps/gnu/glob-lstat-compat.c: New file.
20383 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20384 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20385
20386 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20387
20388 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20389 Reserve 16 chars to reloc_addr before calling _itoa_word.
20390
20391 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20392
20393 [BZ #22678]
20394 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20395 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20396
20397 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20398 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20399
20400 * resource/tst-getrlimit.c: Add copyright header.
20401
20402 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20403 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20404
20405 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20406 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20407 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20408 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20409 instead.
20410 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20411 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20412 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20413 RLIM64_INFINITY): Fix values to match the kernel ones.
20414 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20415 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20416 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20417 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20418 getrlimit64@@GLIBC_2_27.
20419 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20420 and setrlimit64.
20421 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20422 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20423 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20424 setrlimit, getrlimit64 and setrlimit64.
20425
20426 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20427
20428 [BZ #22648]
20429 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20430 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20431
20432 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20433
20434 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20435 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20436 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20437
20438 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20439
20440 [BZ #15479]
20441 [BZ #22666]
20442 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20443 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20444
20445 [BZ #15479]
20446 [BZ #22665]
20447 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20448 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20449 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20450 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20451
20452 2018-01-04 Florian Weimer <fweimer@redhat.com>
20453
20454 [BZ #22667]
20455 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20456 Align the stack before calling exit.
20457 * stdlib/tst-makecontext-align.c: New file.
20458 * stdlib/Makefile (tests): Add tst-makecontext-align.
20459
20460 2018-01-04 Florian Weimer <fweimer@redhat.com>
20461
20462 Add support for calling dlvsym from libc.so.
20463 * include/dlfcn.h (__libc_dlvsym): Declare.
20464 * elf/Makefile (tests-static-internal): Add
20465 tst-libc_dlvsym-static.
20466 (tests-internal): Add tst-libc_dlvsym.
20467 (modules-names): Add tst-libc_dlvsym-dso.
20468 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20469 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20470 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20471 object tst-libc_dlvsym-dso.so needs to be built before running
20472 these tests.
20473 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20474 * elf/Versions: Export __libc_dlvsym.
20475 * elf/dl-libc.c (struct do_dlvsym_args): New.
20476 (do_dlvsym, __libc_dlvsym): New functions.
20477 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20478 (_dl_open_hook2): New variable.
20479 (__libc_register_dl_open_hook): Set it.
20480 * elf/tst-libc_dlvsym-dso.c: New file.
20481 * elf/tst-libc_dlvsym-static.c: Likewise.
20482 * elf/tst-libc_dlvsym.c: Likewise.
20483 * elf/tst-libc_dlvsym.h: Likewise.
20484
20485 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20486
20487 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20488 include <sys/mount.h>.
20489
20490 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20491
20492 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20493 Add __NO_MATH_ERRNO__ check.
20494
20495 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20496
20497 * sysdeps/mips/mips32/libm-test-ulps: Update.
20498 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20499
20500 2018-01-02 Florian Weimer <fweimer@redhat.com>
20501
20502 * misc/tst-pselect.c: Add copyright header.
20503
20504 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20505
20506 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20507 comment.
20508 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20509 comment.
20510 (settrlimit): Rename into setrlimit.
20511 (__sttrlimit): Rename into __setrlimit.
20512
20513 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20514 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20515 never defined in that case.
20516
20517 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20518
20519 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20520
20521 * sysdeps/arm/libm-test-ulps: Update.
20522
20523 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20524 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20525
20526 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20527
20528 * NEWS: Add cosf and sincosf to list of optimized functions.
20529
20530 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20531
20532 [BZ #22660]
20533 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20534 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20535 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20536 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20537
20538 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20539
20540 [BZ #22433]
20541 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20542
20543 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20544 making a copy of it.
20545
20546 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20547
20548 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20549 trailing whitespace removed.
20550 * scripts/config.guess: Update to version 2018-01-01.
20551 * scripts/config.sub: Update to version 2018-01-01.
20552 * scripts/move-if-change: Update from gnulib.
20553
20554 * NEWS: Update copyright dates.
20555 * catgets/gencat.c (print_version): Likewise.
20556 * csu/version.c (banner): Likewise.
20557 * debug/catchsegv.sh: Likewise.
20558 * debug/pcprofiledump.c (print_version): Likewise.
20559 * debug/xtrace.sh (do_version): Likewise.
20560 * elf/ldconfig.c (print_version): Likewise.
20561 * elf/ldd.bash.in: Likewise.
20562 * elf/pldd.c (print_version): Likewise.
20563 * elf/sotruss.sh: Likewise.
20564 * elf/sprof.c (print_version): Likewise.
20565 * iconv/iconv_prog.c (print_version): Likewise.
20566 * iconv/iconvconfig.c (print_version): Likewise.
20567 * locale/programs/locale.c (print_version): Likewise.
20568 * locale/programs/localedef.c (print_version): Likewise.
20569 * login/programs/pt_chown.c (print_version): Likewise.
20570 * malloc/memusage.sh (do_version): Likewise.
20571 * malloc/memusagestat.c (print_version): Likewise.
20572 * malloc/mtrace.pl: Likewise.
20573 * manual/libc.texinfo: Likewise.
20574 * nptl/version.c (banner): Likewise.
20575 * nscd/nscd.c (print_version): Likewise.
20576 * nss/getent.c (print_version): Likewise.
20577 * nss/makedb.c (print_version): Likewise.
20578 * posix/getconf.c (main): Likewise.
20579 * scripts/test-installation.pl: Likewise.
20580 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20581
20582 * All files with FSF copyright notices: Update copyright dates
20583 using scripts/update-copyrights.
20584 * locale/programs/charmap-kw.h: Regenerated.
20585 * locale/programs/locfile-kw.h: Likewise.
20586
20587 2017-12-31 Zack Weinberg <zackw@panix.com>
20588
20589 * libio/bits/libio-ldbl.h: Correct check for improper
20590 inclusion. Add own multiple include guard.
20591
20592 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20593 Dmitry V. Levin <ldv@altlinux.org>
20594
20595 [BZ #22625]
20596 CVE-2017-16997
20597 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20598 string token expansion. Check for NULL pointer or empty string possibly
20599 returned by expand_dynamic_string_token.
20600 (decompose_rpath): Check for empty path after dynamic string
20601 token expansion.
20602
20603 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20604
20605 [BZ #22433]
20606 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20607
20608 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20609 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20610 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20611 and PTRACE_SYSCALL.
20612 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20613 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20614 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20615 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20616 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20617 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20618
20619 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20620 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20621 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20622 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20623 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20624 bits/ptrace-shared.h.
20625 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20626 <bits/ptrace-shared.h>.
20627 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20628 __ptrace_peeksiginfo_flags, ptrace): Remove.
20629 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20630 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20631 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20632 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20633 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20634
20635 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20636
20637 [BZ #17804]
20638 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20639 end of the loop. Improve comments.
20640
20641 2017-12-29 Zack Weinberg <zackw@panix.com>
20642
20643 [BZ #22615]
20644 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20645 might be set on success.
20646
20647 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20648
20649 [BZ #22611]
20650 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20651 is unchanged on success.
20652
20653 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20654
20655 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20656 updated.
20657 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20658 expand_dynamic_string_token): Likewise.
20659 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20660 is_path argument.
20661
20662 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20663 contains ':'.
20664
20665 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20666 is set and name contains ':', and all code depending on these checks.
20667
20668 2017-12-24 Zack Weinberg <zackw@panix.com>
20669
20670 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20671 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20672 respectively.
20673 * libio/libio.h: Rename the original version of this file to
20674 libio/bits/libio.h. Error out if not included by stdio.h or the
20675 stub libio.h.
20676 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20677 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20678 if not included by bits/libio.h or the stub _G_config.h.
20679 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20680 sysdeps/unix/sysv/linux/bits. Error out if not included by
20681 bits/libio.h or the stub _G_config.h.
20682 * libio/stdio.h: Include bits/libio.h, not libio.h.
20683 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20684 well as libio.h and _G_config.h.
20685
20686 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20687 * libio/strfile.h, stdio-common/vfscanf.c
20688 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20689 Include stdio.h, not _G_config.h nor libio.h.
20690 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20691 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20692
20693 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20694
20695 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20696
20697 [BZ #22347]
20698 * stdlib/getrandom.c (getrandom): Fix comment.
20699 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20700
20701 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20702
20703 [BZ #21161]
20704 * manual/arith.texi (strtoul): Fix a typo.
20705
20706 [BZ #22596]
20707 * manual/arith.texi (finite): Fix the description of the return
20708 value.
20709
20710 2017-12-22 Eric Blake <ebb9@byu.net>
20711
20712 Avoid gcc warnings on cygwin
20713 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20714 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20715 Avoid unused variable.
20716
20717 2017-12-22 Florian Weimer <fweimer@redhat.com>
20718
20719 * io/Makefile (routines): Add copy_file_range.
20720 (tests): Add tst-copy_file_range.
20721 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20722 * io/Versions (GLIBC_2.27): Export copy_file_range.
20723 * io/copy_file_range-compat.c: New file.
20724 * io/copy_file_range.c: Likewise.
20725 * io/tst-copy_file_range-compat.c: Likewise.
20726 * io/tst-copy_file_range.c: Likewise.
20727 * manual/llio.texi (Copying File Data): New section.
20728 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20729 * support/Makefile (libsupport-routines): Add support-xfstat,
20730 xftruncate, xlseek.
20731 * support/support-xfstat.c: New file.
20732 * support/xftruncate.c: Likewise.
20733 * support/xlseek.c: Likewise.
20734 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20735 * sysdeps/unix/sysv/linux/**.abilist: Update.
20736 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20737
20738 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20739
20740 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20741 disable-multi-arch variant to aarch64-linux-gnu.
20742
20743 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20744
20745 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20746 trailing whitespace removed.
20747 * scripts/config.guess: Update to version 2017-12-17.
20748 * scripts/config.sub: Update to version 2017-11-23.
20749 * scripts/install-sh: Update to version 2017-09-23.17.
20750 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20751
20752 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20753
20754 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20755 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20756 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20757 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20758 * sysdeps/tile/crtn.S: Likewise.
20759 * sysdeps/tile/dl-start.S (_start): Likewise.
20760 * sysdeps/tile/dl-trampoline.S: Likewise.
20761 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20762 * sysdeps/tile/start.S (_start): Likewise.
20763 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20764 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20765 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20766 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20767 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20768 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20769 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20770
20771 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20772 comment.
20773 * sysdeps/tile/preconfigure: Remove tilegx folder.
20774 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20775 * sysdeps/tile/Implies: ... here.
20776 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20777 * sysdeps/tile/Makefile: ... here.
20778 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20779 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20780 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20781 * sysdeps/tile/bits/wordsize.h: ... here.
20782 * sysdeps/tile/tilegx/*: Move to ...
20783 * sysdeps/tile/*: ... here.
20784 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20785 * sysdeps/tile/tilegx32/Implies: ... here.
20786 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20787 * sysdeps/tile/tilegx64/Implies: ... here.
20788 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20789 to ...
20790 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20791 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20792 * sysdeps/unix/sysv/linux/tile/*: ... here.
20793 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20794 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20795 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20796 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20797
20798 * README: Remove tilepro-*-linux-gnu from supported architecture.
20799 * scripts/build-many-glibcs.py: Likewise.
20800 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20801 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20802 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20803 elf_machine_matches_host, elf_machine_dynamic,
20804 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20805 howto, elf_machine_rela): Likewise.
20806 * sysdeps/tile/dl-start.S (_start): Likewise.
20807 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20808 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20809 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20810 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20811 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20812 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20813 Likewise.
20814 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20815 * sysdeps/tile/preconfigure: Likewise.
20816 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20817 POINTER_CHK_GUARD): Likewise.
20818 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20819 * sysdeps/tile/start.S (_start): Likewise.
20820 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20821 Likewise.
20822 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20823 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20824 CMOVNEZ): Remove.
20825 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20826 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20827 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20828 Likewise.
20829 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20830 * sysdeps/tile/tilepro/Implies: Remove file.
20831 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20832 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20833 * sysdeps/tile/tilepro/memchr.c: Likewise.
20834 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20835 * sysdeps/tile/tilepro/memset.c: Likewise.
20836 * sysdeps/tile/tilepro/memusage.h: Likewise.
20837 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20838 * sysdeps/tile/tilepro/strchr.c: Likewise.
20839 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20840 * sysdeps/tile/tilepro/strlen.c: Likewise.
20841 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20842 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20843 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20844 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20845 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20846 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20847 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20848 Likewise.
20849 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20850 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20851 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20852 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20853 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20854 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20855 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20856 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20857 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20858 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20859 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20860 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20861 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20862 tilepro mention in comment.
20863
20864 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20865 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20866 * nptl/pthread_join_common.c: New file: common function used on
20867 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20868 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20869 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20870 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20871 (cleanup): Move definition to pthread_join_common.c.
20872 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20873 Remove superflous checks.
20874 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20875 Likewise.
20876
20877 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20878
20879 * sysdeps/aarch64/libm-test-ulps: Update.
20880
20881 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20882
20883 * sysdeps/aarch64/memset.S (MEMSET): Define.
20884
20885 2017-12-20 Florian Weimer <fweimer@redhat.com>
20886
20887 [BZ #22635]
20888 nptl: Provide full implementation of pthread_self in libc.so.
20889 * nptl/Makefile (routines): Add pthread_self.
20890 (libpthread-routines): Replace pthread_self with
20891 compat-pthread_self.
20892 * nptl/forward.c (pthread_self): Remove.
20893 * nptl/nptl-init.c (pthread_functions): Do not initialize
20894 ptr_pthread_self.
20895 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20896 * nptl/compat-pthread_self.c: New file.
20897 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20898 Remove ptr_pthread_self.
20899
20900 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20901
20902 * posix/regcomp.c: Fix spelling in comments.
20903 * posix/regex.h: Likewise.
20904 * posix/regex_internal.c: Likewise.
20905 * posix/regexec.c: Likewise.
20906
20907 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20908
20909 [BZ #22377]
20910 * math/Makefile [C++] (tests): Add test for iseqsig.
20911 * math/math.h [C++] (iseqsig): New implementation, which does
20912 not rely on __MATH_TG/__builtin_types_compatible_p.
20913 * math/test-math-iseqsig.cc: New file.
20914 * sysdeps/powerpc/powerpc64le/Makefile
20915 (CFLAGS-test-math-iseqsig.cc): New variable.
20916
20917 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20918
20919 * elf/dl-load.c (is_trusted_path): Remove.
20920 (fillin_rpath): Remove check_trusted argument and its use,
20921 all callers changed.
20922
20923 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20924
20925 [BZ #22630]
20926 * Makeconfig (link-pie-before-libc): Replace -pie with
20927 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20928 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20929 (tst-dlopen-aout-no-pie): New.
20930 (LDFLAGS-tst-prelink): Removed.
20931 (tst-prelink-no-pie): New.
20932 (LDFLAGS-tst-main1): Removed.
20933 (tst-main1-no-pie): New.
20934 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20935 (tst-gmon-no-pie): New.
20936
20937 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20938
20939 * manual/install.texi: Document that --enable-static-pie
20940 implies PIE.
20941 * INSTALL: Regenerated.
20942
20943 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20944
20945 [BZ #21309]
20946 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20947 unsigned.
20948
20949 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20950
20951 Revert:
20952
20953 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20954
20955 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20956
20957 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20958
20959 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20960 <errno.h>. Include "eexp.tbl".
20961 (half): New constant.
20962 (one): Likewise.
20963 (__ieee754_exp): Rewrite.
20964 (__slowexp): Remove prototype.
20965 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20966 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20967 * sysdeps/i386/fpu/slowexp.c: Likewise.
20968 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20969 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20970 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20971 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20972 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20973 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20974 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20975 comment.
20976 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20977 (CPPFLAGS-slowexp.c): Remove variable.
20978 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20979 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20980 (CFLAGS-slowexp-fma.c): Remove variable.
20981 (CFLAGS-slowexp-fma4.c): Likewise.
20982 (CFLAGS-slowexp-avx.c): Likewise.
20983 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20984 define as macro.
20985 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20986 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20987 * math/Makefile (type-double-routines): Remove slowexp.
20988 * manual/probes.texi (slowexp_p6): Remove.
20989 (slowexp_p32): Likewise.
20990
20991 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20992
20993 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20994 arithmetic.
20995
20996 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20997
20998 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20999
21000 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21001
21002 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21003
21004 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
21005 <errno.h>. Include "eexp.tbl".
21006 (half): New constant.
21007 (one): Likewise.
21008 (__ieee754_exp): Rewrite.
21009 (__slowexp): Remove prototype.
21010 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
21011 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
21012 * sysdeps/i386/fpu/slowexp.c: Likewise.
21013 * sysdeps/ia64/fpu/slowexp.c: Likewise.
21014 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
21015 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
21016 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21017 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21018 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
21019 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
21020 comment.
21021 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
21022 (CPPFLAGS-slowexp.c): Remove variable.
21023 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21024 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
21025 (CFLAGS-slowexp-fma.c): Remove variable.
21026 (CFLAGS-slowexp-fma4.c): Likewise.
21027 (CFLAGS-slowexp-avx.c): Likewise.
21028 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
21029 define as macro.
21030 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
21031 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
21032 * math/Makefile (type-double-routines): Remove slowexp.
21033 * manual/probes.texi (slowexp_p6): Remove.
21034 (slowexp_p32): Likewise.
21035
21036 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21037 James Clarke <jrtc27@jrtc27.com>
21038
21039 [BZ #22603]
21040 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
21041 addition.
21042
21043 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21044
21045 [BZ #22605]
21046 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
21047 code.
21048
21049 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21050
21051 [BZ #22563]
21052 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21053 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21054 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21055 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21056 to feature_1.
21057
21058 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21059
21060 [BZ #22563]
21061 * bits/types/__cancel_jmp_buf_tag.h: New file.
21062 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21063 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21064 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21065 * nptl/Makefile (headers): Add
21066 bits/types/__cancel_jmp_buf_tag.h.
21067 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21068 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21069 * sysdeps/nptl/pthread.h: Include
21070 <bits/types/__cancel_jmp_buf_tag.h>.
21071 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21072 __cancel_jmp_buf.
21073 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21074
21075 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21076
21077 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21078 --enable-static-pie variants to x86_64, x32 and i686.
21079
21080 2017-12-19 Joseph Myers <joseph@codesourcery.com>
21081
21082 [BZ #22631]
21083 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
21084 argument for attrubutes. All callers changed.
21085 (__inline_mathop1): Likewise. All callers changed.
21086 (__inline_mathop): Likewise. All callers changed.
21087 [__USE_MISC] (scalbn): Use __inline_forward instead of
21088 __inline_forward_c.
21089 [__USE_ISOC99] (scalbln): Likewise.
21090 [__USE_ISOC99] (nearbyint): Likewise.
21091 [__USE_ISOC99] (lrint): Likewise.
21092 [__USE_MISC] (scalbnf): Likewise.
21093 [__USE_ISOC99] (scalblnf): Likewise.
21094 [__USE_ISOC99] (nearbyintf): Likewise.
21095 [__USE_ISOC99] (lrintf): Likewise.
21096 [__USE_MISC] (scalbnl): Likewise.
21097 [__USE_ISOC99] (scalblnl): Likewise.
21098 [__USE_ISOC99] (nearbyintl): Likewise.
21099 [__USE_ISOC99] (lrintl): Likewise.
21100 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
21101 __inline_mathop and __m81_defun changed.
21102
21103 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
21104 CPU or FPU for ARM hard-float configurations.
21105
21106 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21107
21108 * nptl/tst-attr3.c: Include <libc-diag.h>.
21109 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
21110
21111 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
21112
21113 * string/tester.c (test_strncat): Also disable -Warray-bounds
21114 warnings for two tests.
21115
21116 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
21117
21118 [BZ #22614]
21119 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
21120 $(cc-pie-default) == yes.
21121 * config.make.in (cc-pie-default): New.
21122 * configure.ac (libc_cv_pie_default): Renamed to ...
21123 (libc_cv_cc_pie_default): This.
21124 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
21125 * configure: Regenerated.
21126
21127 2017-12-18 Florian Weimer <fweimer@redhat.com>
21128
21129 [BZ #20204]
21130 ld.so: Harden dl-libc/libdl hooks.
21131 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
21132 (rtld_active): New function.
21133 * dlfcn/dladdr.c (__dladdr): Call it.
21134 * dlfcn/dladdr1.c (__dladdr1): Likewise.
21135 * dlfcn/dlclose.c (__dlcose): Likewise.
21136 * dlfcn/dlerror.c (__dlerror): Likewise.
21137 * dlfcn/dlinfo.c (__dlinfo): Likewise.
21138 * dlfcn/dlmopen.c (__dlmopen): Likewise.
21139 * dlfcn/dlopen.c (__dlopen): Likewise.
21140 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
21141 * dlfcn/dlsym.c (__dlsym): Likewise.
21142 * dlfcn/dlvsym.c (__dlvsym): Likewise.
21143 * libio/vtables.c (_IO_vtable_check): Likewise.
21144 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21145 (__libc_dlclose): Likewise.
21146 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21147 assignment.
21148
21149 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21150
21151 [BZ #22446]
21152 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21153 buffers for readlink input and output.
21154
21155 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
21156
21157 [BZ #22624]
21158 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21159 inhibit_stack_protector.
21160
21161 [BZ #22624]
21162 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21163 inhibit_stack_protector.
21164
21165 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
21166
21167 [BZ #22627]
21168 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21169 code and invocation.
21170
21171 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
21172
21173 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21174
21175 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
21176
21177 [BZ #22505]
21178 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21179
21180 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21181
21182 * sysdeps/s390/fpu/libm-test-ulps: Update.
21183
21184 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21185
21186 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21187
21188 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21189
21190 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21191 constants to s_sincosf.h file.
21192 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21193 * sysdeps/ieee754/flt-32/s_sincosf.c: New
21194 implementation.
21195 * sysdeps/ieee754/flt-32/s_sincosf.h:
21196 New file.
21197
21198 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21199
21200 [BZ #14681]
21201 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21202 before mtrace.
21203
21204 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
21205
21206 [BZ #19574]
21207 * INSTALL: Regenerated.
21208 * Makeconfig (real-static-start-installed-name): New.
21209 (pic-default): Updated for --enable-static-pie.
21210 (pie-default): New for --enable-static-pie.
21211 (default-pie-ldflag): Likewise.
21212 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21213 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21214 Replace $(static-start-installed-name) with
21215 $(real-static-start-installed-name).
21216 (+prectorT): Updated for --enable-static-pie.
21217 (+postctorT): Likewise.
21218 (CFLAGS-.o): Add $(pie-default).
21219 (CFLAGS-.op): Likewise.
21220 * NEWS: Mention --enable-static-pie.
21221 * config.h.in (ENABLE_STATIC_PIE): New.
21222 * configure.ac (--enable-static-pie): New configure option.
21223 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21224 (have-static-pie): Likewise.
21225 Enable static PIE if linker supports --no-dynamic-linker.
21226 (ENABLE_STATIC_PIE): New AC_DEFINE.
21227 (enable-static-pie): New LIBC_CONFIG_VAR.
21228 * configure: Regenerated.
21229 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21230 gr$(start-installed-name) for --enable-static-pie.
21231 (extra-objs): Likewise.
21232 (install-lib): Likewise.
21233 (extra-objs): Add static-reloc.o and static-reloc.os
21234 ($(objpfx)$(start-installed-name)): Also depend on
21235 $(objpfx)static-reloc.o.
21236 ($(objpfx)r$(start-installed-name)): New.
21237 ($(objpfx)g$(start-installed-name)): Also depend on
21238 $(objpfx)static-reloc.os.
21239 ($(objpfx)gr$(start-installed-name)): New.
21240 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21241 in libc.a.
21242 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21243 initimage.
21244 * csu/static-reloc.c: New file.
21245 * elf/Makefile (routines): Add dl-reloc-static-pie.
21246 (elide-routines.os): Likewise.
21247 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21248 (tst-tls1-static-non-pie-no-pie): New.
21249 * elf/dl-reloc-static-pie.c: New file.
21250 * elf/dl-support.c (_dl_get_dl_main_map): New function.
21251 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21252 STATIC_PIE_BOOTSTRAP.
21253 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21254 * gmon/Makefile (tests): Add tst-gmon-static-pie.
21255 (tests-static): Likewise.
21256 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21257 (tst-gmon-static-no-pie): New.
21258 (CFLAGS-tst-gmon-static-pie.c): Likewise.
21259 (CRT-tst-gmon-static-pie): Likewise.
21260 (tst-gmon-static-pie-ENV): Likewise.
21261 (tests-special): Likewise.
21262 ($(objpfx)tst-gmon-static-pie.out): Likewise.
21263 (clean-tst-gmon-static-pie-data): Likewise.
21264 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21265 * gmon/tst-gmon-static-pie.c: New file.
21266 * manual/install.texi: Document --enable-static-pie.
21267 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21268 (_dl_get_dl_main_map): Likewise.
21269 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21270 * sysdeps/x86_64/configure.ac: Likewise.
21271 * sysdeps/i386/configure: Regenerated.
21272 * sysdeps/x86_64/configure: Likewise.
21273 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21274 (ASFLAGS-.op): Likewise.
21275
21276 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21277
21278 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21279 * posix/tst-mmap-offset.c (fname): Use /tmp.
21280 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21281
21282 2017-12-15 Steve Ellcey <sellcey@cavium.com>
21283
21284 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21285
21286 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
21287
21288 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21289 errno.
21290
21291 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21292
21293 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21294 --with-float=hard for arm-linux-gnueabihf configurations.
21295
21296 [BZ #14121]
21297 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21298 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
21299 ($(mo-installed)): Use $(objpfx)%.mo.
21300 (realclean): Remove rule.
21301
21302 * po/Makefile (linguas): Remove rule and dependencies.
21303 (linguas.mo): Likewise.
21304 (.PHONY): Do not depend on linguas and linguas.mo.
21305 (podir): Remove variable.
21306 (pofiles): Likewise.
21307 [$(pofiles)] (%.po): Remove rule.
21308
21309 * sysdeps/sparc/sparc32/Makefile
21310 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21311 start-of-line whitespace in argument of echo.
21312 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21313 with whitespace. Generate __wrap_.udiv alias.
21314 * sysdeps/sparc/sparc32/rem.S: Regenerated.
21315 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21316 * sysdeps/sparc/sparc32/udiv.S: Likewise.
21317 * sysdeps/sparc/sparc32/urem.S: Likewise.
21318
21319 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21320
21321 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21322 for aligned inputs.
21323
21324 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
21325
21326 * benchtests/bench-strcmp.c: Print output in JSON format.
21327
21328 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21329
21330 2017-12-14 Florian Weimer <fweimer@redhat.com>
21331
21332 [BZ #22607]
21333 CVE-2017-1000409
21334 * elf/dl-load.c (_dl_init_paths): Compute number of components in
21335 the expanded path string.
21336
21337 2017-12-14 Florian Weimer <fweimer@redhat.com>
21338
21339 [BZ #22606]
21340 CVE-2017-1000408
21341 * elf/dl-load.c (system_dirs): Update comment.
21342 (nsystem_dirs_len): Use array_length.
21343 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21344
21345 2017-12-14 Florian Weimer <fweimer@redhat.com>
21346
21347 Simplify compiling most of support/ outside of glibc.
21348 * support/check_addrinfo.c: Include <string.h>.
21349 * support/check_dns_packet.c: Likewise.
21350 * support/check_hostent.c: Likewise.
21351 * support/support_can_chroot.c: Include <support/xunistd.h>.
21352 * support/support_format_addrinfo.c: Include <stdlib.h>
21353 * support/support_format_dns_packet.c: Include <stdbool.h>.
21354 * support/support_format_hostent.c: Include <stdlib.h>.
21355 * support/support_format_netent.c: Likewise.
21356 * support/support_write_string.c: Include <support/xunistd.h>.
21357 * support/xdlfcn.c: Include <stddef.h>.
21358
21359 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21360
21361 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21362
21363 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21364 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21365
21366 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21367 (sysdeps_routines): Add memset-niagara7.
21368 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21369 Likewise.
21370 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21371 file.
21372 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21373 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21374 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21375 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21376 Add niagara7 option.
21377 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21378 memset.
21379
21380 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21381 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21382 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21383 Likewise.
21384 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21385 New file.
21386 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21387 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21388 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21389 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21390 and __memmove_niagara7.
21391 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21392 Add niagara7 option.
21393 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21394 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21395 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21396 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21397 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21398
21399 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21400
21401 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21402 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21403 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21404 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21405
21406 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21407 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21408 _dl_sparc_cap_flags array.
21409 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21410
21411 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21412
21413 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21414 time whenever possible.
21415
21416 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21417
21418 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21419 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21420
21421 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21422
21423 * soft-fp/fmadf4.c: Move to ....
21424 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21425 * soft-fp/fmasf4.c: Move to ....
21426 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21427 * soft-fp/fmatf4.c: Move to ....
21428 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21429 * sysdeps/ieee754/soft-fp/Makefile: New file.
21430 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21431 * sysdeps/arm/preconfigure: Regenerated.
21432 * sysdeps/arm/nofpu/Implies: New file.
21433 * sysdeps/arm/s_fma.c: Remove file.
21434 * sysdeps/arm/s_fmaf.c: Likewise.
21435 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21436 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21437 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21438 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21439 * sysdeps/microblaze/s_fma.c: Remove file.
21440 * sysdeps/microblaze/s_fmaf.c: Likewise.
21441 * sysdeps/mips/mips32/nofpu/Implies: New file.
21442 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21443 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21444 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21445 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21446 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21447 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21448 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21449 implementation.
21450 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21451 * sysdeps/nios2/s_fma.c: Remove file.
21452 * sysdeps/nios2/s_fmaf.c: Likewise.
21453 * sysdeps/sh/nofpu/Implies: New file.
21454 * sysdeps/sh/s_fma.c: Remove file.
21455 * sysdeps/sh/s_fmaf.c: Likewise.
21456 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21457 * sysdeps/tile/s_fma.c: Remove file.
21458 * sysdeps/tile/s_fmaf.c: Likewise.
21459
21460 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21461
21462 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21463 Add s_cosf-sse2 and s_cosf-fma.
21464 (CFLAGS-s_cosf-fma.c): New.
21465 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21466 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21467 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21468
21469 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21470
21471 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21472
21473 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21474
21475 * libio/Makefile (tests): Add tst-bz22415.
21476 (tst-bz22415-ENV): New rule.
21477 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21478 (tests-special): Add tst-bz22415-mem.out.
21479 ($(objpfx)tst-bz22415-mem.out): New rule.
21480 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21481 in case of a successful seek operation.
21482 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21483 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21484 buffer is required.
21485 * libio/tst-bz22415.c: New test.
21486
21487 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21488
21489 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21490
21491 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21492 __IPC_64 to 0 to avoid IPC_64 being set.
21493
21494 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21495
21496 [BZ #22593]
21497 * math/bits/mathcalls.h (nextafter): Remove const.
21498 (nexttoward): Likewise.
21499
21500 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21501
21502 * configure.ac (--with-fp): Remove configure option.
21503 (with_fp_cond): New variable.
21504 (libc_cv_with_fp): New configure test. Use this variable instead
21505 of with_fp.
21506 * configure: Regenerated.
21507 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21508 * manual/install.texi (Configuring and compiling): Remove
21509 --without-fp.
21510 * INSTALL: Regenerated.
21511 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21512 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21513 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21514 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21515 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21516 use --without-fp to configure glibc.
21517
21518 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21519
21520 * manual/locale.texi (nl_langinfo): Fix a typo.
21521
21522 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21523
21524 [BZ #22588]
21525 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21526
21527 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21528
21529 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21530 (CFLAGS-argp-parse.c): Likewise.
21531 (CFLAGS-argp-fmtstream.c): Likewise.
21532 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21533 (CPPFLAGS-sha512-crypt.c): Likewise.
21534 (CPPFLAGS-md5-crypt.c): Likewise.
21535 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21536 (CFLAGS-stack_chk_fail_local.c): Likewise.
21537 (CFLAGS-backtrace.c): Likewise.
21538 (CFLAGS-sprintf_chk.c): Likewise.
21539 (CFLAGS-snprintf_chk.c): Likewise.
21540 (CFLAGS-vsprintf_chk.c): Likewise.
21541 (CFLAGS-vsnprintf_chk.c): Likewise.
21542 (CFLAGS-asprintf_chk.c): Likewise.
21543 (CFLAGS-vasprintf_chk.c): Likewise.
21544 (CFLAGS-obprintf_chk.c): Likewise.
21545 (CFLAGS-dprintf_chk.c): Likewise.
21546 (CFLAGS-vdprintf_chk.c): Likewise.
21547 (CFLAGS-printf_chk.c): Likewise.
21548 (CFLAGS-fprintf_chk.c): Likewise.
21549 (CFLAGS-vprintf_chk.c): Likewise.
21550 (CFLAGS-vfprintf_chk.c): Likewise.
21551 (CFLAGS-gets_chk.c): Likewise.
21552 (CFLAGS-fgets_chk.c): Likewise.
21553 (CFLAGS-fgets_u_chk.c): Likewise.
21554 (CFLAGS-fread_chk.c): Likewise.
21555 (CFLAGS-fread_u_chk.c): Likewise.
21556 (CFLAGS-swprintf_chk.c): Likewise.
21557 (CFLAGS-vswprintf_chk.c): Likewise.
21558 (CFLAGS-wprintf_chk.c): Likewise.
21559 (CFLAGS-fwprintf_chk.c): Likewise.
21560 (CFLAGS-vwprintf_chk.c): Likewise.
21561 (CFLAGS-vfwprintf_chk.c): Likewise.
21562 (CFLAGS-fgetws_chk.c): Likewise.
21563 (CFLAGS-fgetws_u_chk.c): Likewise.
21564 (CFLAGS-read_chk.c): Likewise.
21565 (CFLAGS-pread_chk.c): Likewise.
21566 (CFLAGS-pread64_chk.c): Likewise.
21567 (CFLAGS-recv_chk.c): Likewise.
21568 (CFLAGS-recvfrom_chk.c): Likewise.
21569 (CFLAGS-tst-longjmp_chk.c): Likewise.
21570 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21571 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21572 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21573 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21574 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21575 (CFLAGS-tst-chk1.c): Likewise.
21576 (CFLAGS-tst-chk2.c): Likewise.
21577 (CFLAGS-tst-chk3.c): Likewise.
21578 (CFLAGS-tst-chk4.cc): Likewise.
21579 (CFLAGS-tst-chk5.cc): Likewise.
21580 (CFLAGS-tst-chk6.cc): Likewise.
21581 (CFLAGS-tst-lfschk1.c): Likewise.
21582 (CFLAGS-tst-lfschk2.c): Likewise.
21583 (CFLAGS-tst-lfschk3.c): Likewise.
21584 (CFLAGS-tst-lfschk4.cc): Likewise.
21585 (CFLAGS-tst-lfschk5.cc): Likewise.
21586 (CFLAGS-tst-lfschk6.cc): Likewise.
21587 (CFLAGS-tst-ssp-1.c): Likewise.
21588 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21589 (CFLAGS-scandir64.c): Likewise.
21590 (CFLAGS-scandir-tail.c): Likewise.
21591 (CFLAGS-scandir64-tail.c): Likewise.
21592 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21593 (CFLAGS-dl-tunables.c): Likewise.
21594 (CFLAGS-dl-runtime.c): Likewise.
21595 (CFLAGS-dl-lookup.c): Likewise.
21596 (CFLAGS-dl-iterate-phdr.c): Likewise.
21597 (CFLAGS-vismain.c): Likewise.
21598 (CFLAGS-tst-linkall-static.c): Likewise.
21599 (CFLAGS-tst-linkall-static.c): Likewise.
21600 (CPPFLAGS-dl-load.c): Likewise.
21601 (CFLAGS-ldconfig.c): Likewise.
21602 (CFLAGS-dl-cache.c): Likewise.
21603 (CFLAGS-cache.c): Likewise.
21604 (CFLAGS-rtld.c): Likewise.
21605 (CFLAGS-multiload.c): Likewise.
21606 (CFLAGS-filtmod1.c): Likewise.
21607 (CFLAGS-tst-align.c): Likewise.
21608 (CFLAGS-tst-align2.c): Likewise.
21609 (CFLAGS-tst-alignmod.c): Likewise.
21610 (CFLAGS-tst-alignmod2.c): Likewise.
21611 (CPPFLAGS-tst-execstack.c): Likewise.
21612 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21613 (CFLAGS-tst-latepthreadmod.c): Likewise.
21614 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21615 (CFLAGS-getgrnam_r.c): Likewise.
21616 (CFLAGS-getgrent_r.c): Likewise.
21617 (CFLAGS-getgrent.c): Likewise.
21618 (CFLAGS-fgetgrent.c): Likewise.
21619 (CFLAGS-fgetgrent_r.c): Likewise.
21620 (CFLAGS-putgrent.c): Likewise.
21621 (CFLAGS-initgroups.c): Likewise.
21622 (CFLAGS-getgrgid.c): Likewise.
21623 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21624 (CFLAGS-getsgent.c): Likewise.
21625 (CFLAGS-fgetsgent.c): Likewise.
21626 (CFLAGS-fgetsgent_r.c): Likewise.
21627 (CFLAGS-putsgent.c): Likewise.
21628 (CFLAGS-getsgnam.c): Likewise.
21629 (CFLAGS-getsgnam_r.c): Likewise.
21630 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21631 (CFLAGS-iconv_charmap.c): Likewise.
21632 (CFLAGS-dummy-repertoire.c): Likewise.
21633 (CFLAGS-charmap.c): Likewise.
21634 (CFLAGS-linereader.c): Likewise.
21635 (CFLAGS-simple-hash.c): Likewise.
21636 (CFLAGS-gconv_conf.c): Likewise.
21637 (CFLAGS-iconvconfig.c): Likewise.
21638 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21639 (CFLAGS-gethstbyad.c): Likewise.
21640 (CFLAGS-gethstbynm_r.c): Likewise.
21641 (CFLAGS-gethstbynm.c): Likewise.
21642 (CFLAGS-gethstbynm2_r.c): Likewise.
21643 (CFLAGS-gethstbynm2.c): Likewise.
21644 (CFLAGS-gethstent_r.c): Likewise.
21645 (CFLAGS-gethstent.c): Likewise.
21646 (CFLAGS-rcmd.c): Likewise.
21647 (CFLAGS-getnetbynm_r.c): Likewise.
21648 (CFLAGS-getnetbynm.c): Likewise.
21649 (CFLAGS-getnetbyad_r.c): Likewise.
21650 (CFLAGS-getnetbyad.c): Likewise.
21651 (CFLAGS-getnetent_r.c): Likewise.
21652 (CFLAGS-getnetent.c): Likewise.
21653 (CFLAGS-getaliasent_r.c): Likewise.
21654 (CFLAGS-getaliasent.c): Likewise.
21655 (CFLAGS-getrpcent_r.c): Likewise.
21656 (CFLAGS-getrpcent.c): Likewise.
21657 (CFLAGS-getservent_r.c): Likewise.
21658 (CFLAGS-getservent.c): Likewise.
21659 (CFLAGS-getprtent_r.c): Likewise.
21660 (CFLAGS-getprtent.c): Likewise.
21661 (CFLAGS-either_ntoh.c): Likewise.
21662 (CFLAGS-either_hton.c): Likewise.
21663 (CFLAGS-getnetgrent.c): Likewise.
21664 (CFLAGS-getnetgrent_r.c): Likewise.
21665 (CFLAGS-tst-checks-posix.c): Likewise.
21666 (CFLAGS-tst-sockaddr.c): Likewise.
21667 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21668 (CFLAGS-tst-translit.c): Likewise.
21669 (CFLAGS-tst-gettext2.c): Likewise.
21670 (CFLAGS-tst-codeset.c): Likewise.
21671 (CFLAGS-tst-gettext3.c): Likewise.
21672 (CFLAGS-tst-gettext4.c): Likewise.
21673 (CFLAGS-tst-gettext5.c): Likewise.
21674 (CFLAGS-tst-gettext6.c): Likewise.
21675 * io/Makefile (CFLAGS-open.c): Likewise.
21676 (CFLAGS-open64.c): Likewise.
21677 (CFLAGS-creat.c): Likewise.
21678 (CFLAGS-creat64.c): Likewise.
21679 (CFLAGS-fcntl.c): Likewise.
21680 (CFLAGS-poll.c): Likewise.
21681 (CFLAGS-ppoll.c): Likewise.
21682 (CFLAGS-lockf.c): Likewise.
21683 (CFLAGS-statfs.c): Likewise.
21684 (CFLAGS-fstatfs.c): Likewise.
21685 (CFLAGS-statvfs.c): Likewise.
21686 (CFLAGS-fstatvfs.c): Likewise.
21687 (CFLAGS-fts.c): Likewise.
21688 (CFLAGS-fts64.c): Likewise.
21689 (CFLAGS-ftw.c): Likewise.
21690 (CFLAGS-ftw64.c): Likewise.
21691 (CFLAGS-lockf.c): Likewise.
21692 (CFLAGS-posix_fallocate.c): Likewise.
21693 (CFLAGS-posix_fallocate64.c): Likewise.
21694 (CFLAGS-fallocate.c): Likewise.
21695 (CFLAGS-fallocate64.c): Likewise.
21696 (CFLAGS-read.c): Likewise.
21697 (CFLAGS-write.c): Likewise.
21698 (CFLAGS-test-stat.c): Likewise.
21699 (CFLAGS-test-lfs.c): Likewise.
21700 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21701 (CFLAGS-fputc.c): Likewise.
21702 (CFLAGS-fputwc.c): Likewise.
21703 (CFLAGS-freopen64.c): Likewise.
21704 (CFLAGS-freopen.c): Likewise.
21705 (CFLAGS-fseek.c): Likewise.
21706 (CFLAGS-fseeko64.c): Likewise.
21707 (CFLAGS-fseeko.c): Likewise.
21708 (CFLAGS-ftello64.c): Likewise.
21709 (CFLAGS-ftello.c): Likewise.
21710 (CFLAGS-fwide.c): Likewise.
21711 (CFLAGS-genops.c): Likewise.
21712 (CFLAGS-getc.c): Likewise.
21713 (CFLAGS-getchar.c): Likewise.
21714 (CFLAGS-getwc.c): Likewise.
21715 (CFLAGS-getwchar.c): Likewise.
21716 (CFLAGS-iofclose.c): Likewise.
21717 (CFLAGS-iofflush.c): Likewise.
21718 (CFLAGS-iofgetpos64.c): Likewise.
21719 (CFLAGS-iofgetpos.c): Likewise.
21720 (CFLAGS-iofgets.c): Likewise.
21721 (CFLAGS-iofgetws.c): Likewise.
21722 (CFLAGS-iofputs.c): Likewise.
21723 (CFLAGS-iofputws.c): Likewise.
21724 (CFLAGS-iofread.c): Likewise.
21725 (CFLAGS-iofsetpos64.c): Likewise.
21726 (CFLAGS-iofsetpos.c): Likewise.
21727 (CFLAGS-ioftell.c): Likewise.
21728 (CFLAGS-iofwrite.c): Likewise.
21729 (CFLAGS-iogetdelim.c): Likewise.
21730 (CFLAGS-iogetline.c): Likewise.
21731 (CFLAGS-iogets.c): Likewise.
21732 (CFLAGS-iogetwline.c): Likewise.
21733 (CFLAGS-ioputs.c): Likewise.
21734 (CFLAGS-ioseekoff.c): Likewise.
21735 (CFLAGS-ioseekpos.c): Likewise.
21736 (CFLAGS-iosetbuffer.c): Likewise.
21737 (CFLAGS-iosetvbuf.c): Likewise.
21738 (CFLAGS-ioungetc.c): Likewise.
21739 (CFLAGS-ioungetwc.c): Likewise.
21740 (CFLAGS-oldfileops.c): Likewise.
21741 (CFLAGS-oldiofclose.c): Likewise.
21742 (CFLAGS-oldiofgetpos64.c): Likewise.
21743 (CFLAGS-oldiofgetpos.c): Likewise.
21744 (CFLAGS-oldiofsetpos64.c): Likewise.
21745 (CFLAGS-oldiofsetpos.c): Likewise.
21746 (CFLAGS-peekc.c): Likewise.
21747 (CFLAGS-putc.c): Likewise.
21748 (CFLAGS-putchar.c): Likewise.
21749 (CFLAGS-putwc.c): Likewise.
21750 (CFLAGS-putwchar.c): Likewise.
21751 (CFLAGS-rewind.c): Likewise.
21752 (CFLAGS-wfileops.c): Likewise.
21753 (CFLAGS-wgenops.c): Likewise.
21754 (CFLAGS-oldiofopen.c): Likewise.
21755 (CFLAGS-iofopen.c): Likewise.
21756 (CFLAGS-iofopen64.c): Likewise.
21757 (CFLAGS-oldtmpfile.c): Likewise.
21758 (CFLAGS-tst_putwc.c): Likewise.
21759 * locale/Makefile (CFLAGS-md5.c): Likewise.
21760 (CFLAGS-charmap.c): Likewise.
21761 (CFLAGS-locfile.c): Likewise.
21762 (CFLAGS-charmap-dir.c): Likewise.
21763 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21764 (CFLAGS-getpt.c): Likewise.
21765 (CFLAGS-pt_chown.c): Likewise.
21766 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21767 (CFLAGS-obstack.c): Likewise.
21768 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21769 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21770 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21771 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21772 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21773 (CFLAGS-test-tgmath.c): Likewise.
21774 (CFLAGS-test-tgmath2.c): Likewise.
21775 (CFLAGS-test-tgmath-ret.c): Likewise.
21776 (CFLAGS-test-powl.c): Likewise.
21777 (CFLAGS-test-snan.c): Likewise.
21778 (CFLAGS-test-signgam-finite.c): Likewise.
21779 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21780 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21781 (CFLAGS-test-signgam-uchar.c): Likewise.
21782 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21783 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21784 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21785 (CFLAGS-test-signgam-uint.c): Likewise.
21786 (CFLAGS-test-signgam-uint-init.c): Likewise.
21787 (CFLAGS-test-signgam-uint-static.c): Likewise.
21788 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21789 (CFLAGS-test-signgam-ullong.c): Likewise.
21790 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21791 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21792 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21793 (CFLAGS-test-math-cxx11.cc): Likewise.
21794 (CFLAGS-test-math-isinff.cc): Likewise.
21795 (CFLAGS-test-math-iszero.cc): Likewise.
21796 (CFLAGS-test-math-issignaling.cc): Likewise.
21797 (CFLAGS-test-math-iscanonical.cc): Likewise.
21798 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21799 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21800 (CFLAGS-test-flt-eval-method.c): Likewise.
21801 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21802 (CFLAGS-test-finite-macros.c): Likewise.
21803 * misc/Makefile (CFLAGS-select.c): Likewise.
21804 (CFLAGS-tsearch.c): Likewise.
21805 (CFLAGS-lsearch.c): Likewise.
21806 (CFLAGS-pselect.c): Likewise.
21807 (CFLAGS-readv.c): Likewise.
21808 (CFLAGS-writev.c): Likewise.
21809 (CFLAGS-preadv.c): Likewise.
21810 (CFLAGS-preadv64.c): Likewise.
21811 (CFLAGS-pwritev.c): Likewise.
21812 (CFLAGS-pwritev64.c): Likewise.
21813 (CFLAGS-preadv2.c): Likewise.
21814 (CFLAGS-preadv64v2.c): Likewise.
21815 (CFLAGS-pwritev2.c): Likewise.
21816 (CFLAGS-pwritev64v2.c): Likewise.
21817 (CFLAGS-usleep.c): Likewise.
21818 (CFLAGS-syslog.c): Likewise.
21819 (CFLAGS-error.c): Likewise.
21820 (CFLAGS-getpass.c): Likewise.
21821 (CFLAGS-mkstemp.c): Likewise.
21822 (CFLAGS-mkstemp64.c): Likewise.
21823 (CFLAGS-getsysstats.c): Likewise.
21824 (CFLAGS-getusershell.c): Likewise.
21825 (CFLAGS-err.c): Likewise.
21826 (CFLAGS-tst-tsearch.c): Likewise.
21827 (CFLAGS-msync.c): Likewise.
21828 (CFLAGS-fdatasync.c): Likewise.
21829 (CFLAGS-fsync.c): Likewise.
21830 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21831 (CFLAGS-unwind.c): Likewise.
21832 (CFLAGS-unwind-forcedunwind.c): Likewise.
21833 (CFLAGS-pthread_cancel.c): Likewise.
21834 (CFLAGS-pthread_setcancelstate.c): Likewise.
21835 (CFLAGS-pthread_setcanceltype.c): Likewise.
21836 (CFLAGS-cancellation.c): Likewise.
21837 (CFLAGS-libc-cancellation.c): Likewise.
21838 (CFLAGS-pthread_exit.c): Likewise.
21839 (CFLAGS-forward.c): Likewise.
21840 (CFLAGS-pthread_testcancel.c): Likewise.
21841 (CFLAGS-pthread_join.c): Likewise.
21842 (CFLAGS-pthread_timedjoin.c): Likewise.
21843 (CFLAGS-pthread_once.c): Likewise.
21844 (CFLAGS-pthread_cond_wait.c): Likewise.
21845 (CFLAGS-sem_wait.c): Likewise.
21846 (CFLAGS-sem_timedwait.c): Likewise.
21847 (CFLAGS-fcntl.c): Likewise.
21848 (CFLAGS-lockf.c): Likewise.
21849 (CFLAGS-pread.c): Likewise.
21850 (CFLAGS-pread64.c): Likewise.
21851 (CFLAGS-pwrite.c): Likewise.
21852 (CFLAGS-pwrite64.c): Likewise.
21853 (CFLAGS-wait.c): Likewise.
21854 (CFLAGS-waitpid.c): Likewise.
21855 (CFLAGS-sigwait.c): Likewise.
21856 (CFLAGS-msgrcv.c): Likewise.
21857 (CFLAGS-msgsnd.c): Likewise.
21858 (CFLAGS-tcdrain.c): Likewise.
21859 (CFLAGS-open.c): Likewise.
21860 (CFLAGS-open64.c): Likewise.
21861 (CFLAGS-pause.c): Likewise.
21862 (CFLAGS-recv.c): Likewise.
21863 (CFLAGS-send.c): Likewise.
21864 (CFLAGS-accept.c): Likewise.
21865 (CFLAGS-sendto.c): Likewise.
21866 (CFLAGS-connect.c): Likewise.
21867 (CFLAGS-recvfrom.c): Likewise.
21868 (CFLAGS-recvmsg.c): Likewise.
21869 (CFLAGS-sendmsg.c): Likewise.
21870 (CFLAGS-close.c): Likewise.
21871 (CFLAGS-read.c): Likewise.
21872 (CFLAGS-write.c): Likewise.
21873 (CFLAGS-nanosleep.c): Likewise.
21874 (CFLAGS-sigsuspend.c): Likewise.
21875 (CFLAGS-msync.c): Likewise.
21876 (CFLAGS-fdatasync.c): Likewise.
21877 (CFLAGS-fsync.c): Likewise.
21878 (CFLAGS-pt-system.c): Likewise.
21879 (CFLAGS-tst-cleanup2.c): Likewise.
21880 (CFLAGS-tst-cleanupx2.c): Likewise.
21881 (CFLAGS-flockfile.c): Likewise.
21882 (CFLAGS-ftrylockfile.c): Likewise.
21883 (CFLAGS-funlockfile.c): Likewise.
21884 (CFLAGS-tst-initializers1.c): Likewise.
21885 (CFLAGS-tst-initializers1-c89.c): Likewise.
21886 (CFLAGS-tst-initializers1-c99.c): Likewise.
21887 (CFLAGS-tst-initializers1-c11.c): Likewise.
21888 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21889 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21890 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21891 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21892 (CFLAGS-nscd_getgr_r.c): Likewise.
21893 (CFLAGS-nscd_gethst_r.c): Likewise.
21894 (CFLAGS-nscd_getai.c): Likewise.
21895 (CFLAGS-nscd_initgroups.c): Likewise.
21896 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21897 (CFLAGS-pause.c): Likewise.
21898 (CFLAGS-pread.c): Likewise.
21899 (CFLAGS-pread64.c): Likewise.
21900 (CFLAGS-pwrite.c): Likewise.
21901 (CFLAGS-pwrite64.c): Likewise.
21902 (CFLAGS-sleep.c): Likewise.
21903 (CFLAGS-wait.c): Likewise.
21904 (CFLAGS-waitid.c): Likewise.
21905 (CFLAGS-waitpid.c): Likewise.
21906 (CFLAGS-getopt.c): Likewise.
21907 (CFLAGS-wordexp.c): Likewise.
21908 (CFLAGS-sysconf.c): Likewise.
21909 (CFLAGS-pathconf.c): Likewise.
21910 (CFLAGS-fpathconf.c): Likewise.
21911 (CFLAGS-spawn.c): Likewise.
21912 (CFLAGS-spawnp.c): Likewise.
21913 (CFLAGS-spawni.c): Likewise.
21914 (CFLAGS-glob.c): Likewise.
21915 (CFLAGS-glob64.c): Likewise.
21916 (CFLAGS-getconf.c): Likewise.
21917 (CFLAGS-nanosleep.c): Likewise.
21918 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21919 (CFLAGS-getpwent.c): Likewise.
21920 (CFLAGS-getpw.c): Likewise.
21921 (CFLAGS-fgetpwent_r.c): Likewise.
21922 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21923 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21924 (CFLAGS-mq_timedreceive.c): Likewise.
21925 (CFLAGS-mq_timedsend.c): Likewise.
21926 (CFLAGS-clock_nanosleep.c): Likewise.
21927 (CFLAGS-librt-cancellation.c): Likewise.
21928 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21929 (CFLAGS-getspent.c): Likewise.
21930 (CFLAGS-fgetspent.c): Likewise.
21931 (CFLAGS-fgetspent_r.c): Likewise.
21932 (CFLAGS-putspent.c): Likewise.
21933 (CFLAGS-getspnam.c): Likewise.
21934 (CFLAGS-getspnam_r.c): Likewise.
21935 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21936 (CFLAGS-sigsuspend.c): Likewise.
21937 (CFLAGS-sigtimedwait.c): Likewise.
21938 (CFLAGS-sigwait.c): Likewise.
21939 (CFLAGS-sigwaitinfo.c): Likewise.
21940 (CFLAGS-sigreturn.c): Likewise.
21941 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21942 (CFLAGS-vfwprintf.c): Likewise.
21943 (CFLAGS-tmpfile.c): Likewise.
21944 (CFLAGS-tmpfile64.c): Likewise.
21945 (CFLAGS-tempname.c): Likewise.
21946 (CFLAGS-psignal.c): Likewise.
21947 (CFLAGS-vprintf.c): Likewise.
21948 (CFLAGS-cuserid.c): Likewise.
21949 (CFLAGS-errlist.c): Likewise.
21950 (CFLAGS-siglist.c): Likewise.
21951 (CFLAGS-scanf15.c): Likewise.
21952 (CFLAGS-scanf17.c): Likewise.
21953 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21954 (CFLAGS-msort.c): Likewise.
21955 (CFLAGS-qsort.c): Likewise.
21956 (CFLAGS-system.c): Likewise.
21957 (CFLAGS-fmtmsg.c): Likewise.
21958 (CFLAGS-strfmon.c): Likewise.
21959 (CFLAGS-strfmon_l.c): Likewise.
21960 (CFLAGS-strfromd.c): Likewise.
21961 (CFLAGS-strfromf.c): Likewise.
21962 (CFLAGS-strfroml.c): Likewise.
21963 (CFLAGS-tst-bsearch.c): Likewise.
21964 (CFLAGS-tst-qsort.c): Likewise.
21965 (CFLAGS-tst-makecontext2.c): Likewise.
21966 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21967 (CFLAGS-xnlm_prot.c): Likewise.
21968 (CFLAGS-xrstat.c): Likewise.
21969 (CFLAGS-xyppasswd.c): Likewise.
21970 (CFLAGS-xklm_prot.c): Likewise.
21971 (CFLAGS-xrex.c): Likewise.
21972 (CFLAGS-xsm_inter.c): Likewise.
21973 (CFLAGS-xmount.c): Likewise.
21974 (CFLAGS-xrusers.c): Likewise.
21975 (CFLAGS-xspray.c): Likewise.
21976 (CFLAGS-xnfs_prot.c): Likewise.
21977 (CFLAGS-xrquota.c): Likewise.
21978 (CFLAGS-xkey_prot.c): Likewise.
21979 (CFLAGS-auth_unix.c): Likewise.
21980 (CFLAGS-key_call.c): Likewise.
21981 (CFLAGS-pmap_rmt.c): Likewise.
21982 (CFLAGS-clnt_perr.c): Likewise.
21983 (CFLAGS-openchild.c): Likewise.
21984 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21985 (CFLAGS-msgsnd.c): Likewise.
21986 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21987 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21988 (CFLAGS-tzset.c): Likewise.
21989 (CFLAGS-getdate.c): Likewise.
21990 (CFLAGS-test_time.c): Likewise.
21991 (CPPFLAGS-tst-tzname.c): Likewise.
21992 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21993 (CFLAGS-zic.c): Likewise.
21994 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21995 (CFLAGS-wcswidth.c): Likewise.
21996 (CFLAGS-wcstol.c): Likewise.
21997 (CFLAGS-wcstoul.c): Likewise.
21998 (CFLAGS-wcstoll.c): Likewise.
21999 (CFLAGS-wcstoull.c): Likewise.
22000 (CFLAGS-wcstod.c): Likewise.
22001 (CFLAGS-wcstold.c): Likewise.
22002 (CFLAGS-wcstof128.c): Likewise.
22003 (CFLAGS-wcstof.c): Likewise.
22004 (CFLAGS-wcstol_l.c): Likewise.
22005 (CFLAGS-wcstoul_l.c): Likewise.
22006 (CFLAGS-wcstoll_l.c): Likewise.
22007 (CFLAGS-wcstoull_l.c): Likewise.
22008 (CFLAGS-wcstod_l.c): Likewise.
22009 (CFLAGS-wcstold_l.c): Likewise.
22010 (CFLAGS-wcstof128_l.c): Likewise.
22011 (CFLAGS-wcstof_l.c): Likewise.
22012 (CPPFLAGS-tst-wchar-h.c): Likewise.
22013 (CPPFLAGS-wcstold_l.c): Likewise.
22014
22015 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
22016
22017 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
22018
22019 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
22020 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22021
22022 * manual/tunables.texi (Hardware Capability Tunables): Document
22023 glibc.tune.cached_memopt.
22024 * sysdeps/powerpc/cpu-features.c: New file.
22025 * sysdeps/powerpc/cpu-features.h: New file.
22026 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
22027 _dl_powerpc_cpu_features.
22028 * sysdeps/powerpc/dl-tunables.list: New file.
22029 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
22030 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
22031 (INIT_ARCH): Initialize use_aligned_memopt.
22032 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
22033 IS_IN(rtld))]: Restrict dl_platform_init availability and
22034 initialize CPU features used by tunables.
22035 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
22036 Add memcpy-power8-cached.
22037 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
22038 __memcpy_power8_cached.
22039 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
22040 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
22041 New file.
22042
22043 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
22044
22045 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
22046 (CFLAGS-noinl-tester.c): Likewise.
22047 (CFLAGS-tst-strlen.c): Likewise.
22048 (CFLAGS-stratcliff.c): Likewise.
22049 (CFLAGS-test-ffs.c): Likewise.
22050 (CFLAGS-tst-inlcall.c): Likewise.
22051 (CFLAGS-tst-xbzero-opt.c): Likewise.
22052 (CFLAGS-memcpy.c): Likewise.
22053 (CFLAGS-wordcopy.c): Likewise.
22054
22055 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
22056
22057 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
22058 Store r15 on stack and add cfi rule.
22059 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
22060 Likewise.
22061
22062 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
22063
22064 [BZ #22577]
22065 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
22066 call.
22067
22068 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22069
22070 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22071 Add s_sinf-sse2 and s_sinf-fma.
22072 (CFLAGS-s_sinf-fma.c): New.
22073 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
22074 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
22075 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
22076
22077 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
22078
22079 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
22080
22081 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22082
22083 [BZ #22568]
22084 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
22085 part of result to imaginary part of argument if it is zero and the
22086 real part of the argument is not finite.
22087 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
22088 of result to real part of argument if it is zero and the imaginary
22089 part of the argument is not finite.
22090
22091 2017-12-07 Mike FABIAN <mfabian@redhat.com>
22092
22093 [BZ #22524]
22094 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
22095 and to the list of locales to be built for testing.
22096 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
22097 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
22098 and build the collation rules upon that.
22099
22100 2017-12-07 Joseph Myers <joseph@codesourcery.com>
22101
22102 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
22103 * manual/math.texi (Mathematics): Document support for _Float32.
22104 * math/Makefile (test-types): Add float32.
22105 * math/Versions (GLIBC_2.27): Add _Float32 functions.
22106 * stdlib/Versions (GLIBC_2.27): Likewise.
22107 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22108 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22109 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22110 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22111 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22112 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22113 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22114 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22115 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22116 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22117 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22118 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22119 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22120 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22121 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22122 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22123 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22124 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22125 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22127 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22128 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22129 Likewise.
22130 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22131 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22132 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22133 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22134 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22136 Likewise.
22137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22138 Likewise.
22139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22140 Likewise.
22141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22142 Likewise.
22143
22144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22145 Likewise.
22146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22147 Likewise.
22148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22149 Likewise.
22150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22151 Likewise.
22152 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22153 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22154 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22155 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22156 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22157 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22158 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22159 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22160 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22161 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22162 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22163 Likewise.
22164 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22165 Likewise.
22166 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22167 Likewise.
22168 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22169 Likewise.
22170 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22171 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22172 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22173 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22174 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22175 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22176 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22177 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22178
22179 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22180
22181 * stdlib/strtof.c: Include <bits/floatn.h>
22182 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22183 and later undefine as macro. Define as weak alias if
22184 [!USE_WIDE_CHAR].
22185 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22186 and later undefine as macro. Define as weak alias if
22187 [USE_WIDE_CHAR].
22188 * stdlib/strtof_l.c: Include <bits/floatn.h>
22189 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22190 and later undefine as macro. Define as weak alias if
22191 [!USE_WIDE_CHAR].
22192 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22193 and later undefine as macro. Define as weak alias if
22194 [USE_WIDE_CHAR].
22195
22196 * stdlib/strfromf.c: Include <bits/floatn.h>.
22197 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22198 and later undefine as macro and define as weak alias.
22199
22200 * math/test-float32.h: New file.
22201
22202 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22203 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22204 (libm_alias_float_other_r): Create f32 alias.
22205 (libm_alias_float_r): Use semicolon before call to
22206 libm_alias_float_other_r.
22207
22208 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22209 second argument to libm_alias_float_other.
22210 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22211 second argument to libm_alias_float_other.
22212 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22213 argument to libm_alias_float_other.
22214
22215 [BZ #22561]
22216 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22217 real part of result for argument 0 + i * NaN.
22218 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22219 results for tests of 0 + i * NaN.
22220
22221 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22222
22223 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22224
22225 2017-12-06 David S. Miller <davem@davemloft.net>
22226
22227 * sysdeps/sparc/fpu/libm-test-ulps: Update
22228 exp_{downward,towardzero,upward} ulps.
22229
22230 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22231
22232 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22233 variables static.
22234
22235 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22236 (Y0_2D): Likewise.
22237 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22238 (Y0_2D): Likewise.
22239 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22240 (Y0_2D): Likewise.
22241 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22242 (Y0_2D): Likewise.
22243
22244 2017-12-06 Mike FABIAN <mfabian@redhat.com>
22245
22246 [BZ #22515]
22247 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22248 and to the list of locales to be built for testing.
22249 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22250 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22251 and build the collation rules upon that.
22252
22253 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22254
22255 * NEWS: Add sinf to list of optimized functions.
22256
22257 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22258
22259 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22260 (__HAVE_FLOAT32X): Likewise.
22261 * manual/math.texi (Mathematics): Document support for _Float64
22262 and _Float32x.
22263 * math/Makefile (test-types): Add float64 and float32x.
22264 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22265 functions.
22266 * stdlib/Versions (GLIBC_2.27): Likewise.
22267 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22268 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22269 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22270 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22271 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22272 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22273 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22274 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22275 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22276 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22277 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22278 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22279 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22280 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22281 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22282 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22283 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22284 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22285 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22286 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22287 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22288 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22289 Likewise.
22290 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22291 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22292 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22293 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22294 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22296 Likewise.
22297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22298 Likewise.
22299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22300 Likewise.
22301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22302 Likewise.
22303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22304 Likewise.
22305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22306 Likewise.
22307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22308 Likewise.
22309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22310 Likewise.
22311 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22312 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22313 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22314 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22315 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22316 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22317 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22318 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22319 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22320 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22321 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22322 Likewise.
22323 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22324 Likewise.
22325 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22326 Likewise.
22327 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22328 Likewise.
22329 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22330 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22331 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22332 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22333 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22334 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22335 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22336 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22337
22338 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22339
22340 * bits/floatn-common.h: Include <bits/long-double.h>.
22341 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22342 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22343 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22344 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22345 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22346 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22347 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22348 (__builtin_huge_valf64): Use __builtin_huge_vall.
22349 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22350 (__builtin_inff64): Use __builtin_infl.
22351 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22352 (__builtin_nanf64): Use __builtin_nanl.
22353 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22354 (__builtin_nansf64): Use __builtin_nansl.
22355
22356 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22357 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22358 Carlos O'Donnell <carlos@redhat.com>
22359
22360 * elf/dl-tunables.list: Add elision parameters.
22361 * manual/tunables.texi: Add entries about elision tunable.
22362 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22363 Add callback functions to dynamically enable/disable elision.
22364 Add multiple callbacks functions to set elision parameters.
22365 Deleted __libc_enable_secure check.
22366 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22367 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22368 * configure: Regenerated.
22369 * configure.ac: Option enable_lock_elision was deleted.
22370 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22371 * config.make.in: Remove references to enable_lock_elision.
22372 * manual/install.texi: Elision configure option was removed.
22373 * INSTALL: Regenerated to remove enable_lock_elision.
22374 * nptl/Makefile:
22375 Disable elision so it can verify error case for destroying a mutex.
22376 * sysdeps/powerpc/nptl/elide.h:
22377 Cleanup ENABLE_LOCK_ELISION check.
22378 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22379 * sysdeps/s390/configure: Regenerated.
22380 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22381 * nptl/tst-mutex8.c:
22382 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22383 * sysdeps/powerpc/powerpc32/sysdep.h:
22384 Deleted all ENABLE_LOCK_ELISION checks.
22385 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22386 * sysdeps/powerpc/sysdep.h: Likewise.
22387 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22388 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22389 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22390 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22391 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22392 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22393 enable-lock-elision.
22394
22395 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22396
22397 * stdlib/strtod.c: Include <bits/floatn.h>.
22398 (BUILD_DOUBLE): New macro.
22399 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22400 (strtof64): Define and later undefine as macro. Define as weak
22401 alias if [!USE_WIDE_CHAR].
22402 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22403 (wcstof64): Define and later undefine as macro. Define as weak
22404 alias if [USE_WIDE_CHAR].
22405 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22406 (strtof32x): Define and later undefine as macro. Define as weak
22407 alias if [!USE_WIDE_CHAR].
22408 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22409 (wcstof32x): Define and later undefine as macro. Define as weak
22410 alias if [USE_WIDE_CHAR].
22411 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22412 (BUILD_DOUBLE): New macro.
22413 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22414 (strtof64_l): Define and later undefine as macro. Define as weak
22415 alias if [!USE_WIDE_CHAR].
22416 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22417 (wcstof64_l): Define and later undefine as macro. Define as weak
22418 alias if [USE_WIDE_CHAR].
22419 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22420 (strtof32x_l): Define and later undefine as macro. Define as weak
22421 alias if [!USE_WIDE_CHAR].
22422 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22423 (wcstof32x_l): Define and later undefine as macro. Define as weak
22424 alias if [USE_WIDE_CHAR].
22425
22426 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22427
22428 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22429 (reduced): Use ones as double instead of integer.
22430
22431 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22432
22433 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22434
22435 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22436
22437 * stdlib/strfromd.c: Include <bits/floatn.h>.
22438 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22439 and later undefine as macro and define as weak alias.
22440 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22441 Likewise.
22442
22443 * math/test-float32x.h: New file.
22444 * math/test-float64.h: Likewise.
22445
22446 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22447 (libm_alias_double_other_r_f64): New macro.
22448 (libm_alias_double_other_r_f32x): Likewise.
22449 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22450 libm_alias_double_other_r_f32x.
22451 (libm_alias_double_r): Use semicolon before call to
22452 libm_alias_double_other_r.
22453 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22454 <bits/floatn.h>.
22455 (libm_alias_double_other_r_f64): New macro.
22456 (libm_alias_double_other_r_f32x): Likewise.
22457 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22458 libm_alias_double_other_r_f32x.
22459
22460 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22461
22462 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22463 int.
22464 (SINF_FUNC): Likewise. Replace floor with simple casts.
22465
22466 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22467
22468 [BZ #22517]
22469 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22470 and to the list of locales to be built for testing.
22471 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22472 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22473 and build the collation rules upon that.
22474
22475 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22476
22477 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22478 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22479 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22480 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22481 instead of __insn__xxx.
22482 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22483 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22484 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22485 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22486 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22487 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22488
22489 2017-12-05 Florian Weimer <fweimer@redhat.com>
22490
22491 Linux: Implement interfaces for memory protection keys
22492 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22493 xsignal, xsysconf.
22494 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22495 * support/xunistd.h (xsysconf): Declare.
22496 * support/xraise.c: New file.
22497 * support/xsigaction.c: Likewise.
22498 * support/xsignal.c: Likewise.
22499 * support/xsysconf.c: Likewise.
22500 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22501 pkey_set, pkey_get, pkey_mprotect.
22502 [misc] (tests): Add tst-pkey.
22503 (tst-pkey): Link with -lpthread.
22504 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22505 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22506 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22507 (PKEY_DISABLE_WRITE): Define.
22508 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22509 Declare.
22510 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22511 (SEGV_PKUERR): Add.
22512 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22513 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22514 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22515 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22516 Add.
22517 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22518 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22519 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22520 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22521 * sysdeps/unix/sysv/linux/**.abilist: Update.
22522
22523 2017-12-05 Florian Weimer <fweimer@redhat.com>
22524
22525 * support/tst-test_compare.c (subprocess): Use long long instead
22526 of long argument for consistent type width across 32-bit and
22527 64-bit architectures.
22528 (do_test): Adjust expected output.
22529
22530 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22531
22532 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22533 (cosf): Define using libm_alias_float.
22534 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22535 (fabsf): Define using libm_alias_float.
22536 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22537 (fmaf): Define using libm_alias_float.
22538 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22539 (rintf): Define using libm_alias_float.
22540 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22541 (sinf): Define using libm_alias_float.
22542 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22543 <libm-alias-float.h>.
22544 (modff): Define using libm_alias_float.
22545 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22546 <libm-alias-float.h>.
22547 (logbf): Define using libm_alias_float.
22548 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22549 <libm-alias-float.h>.
22550 (ceilf): Define using libm_alias_float.
22551 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22552 <libm-alias-float.h>.
22553 (copysignf): Define using libm_alias_float.
22554 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22555 <libm-alias-float.h>.
22556 (floorf): Define using libm_alias_float.
22557 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22558 <libm-alias-float.h>.
22559 (llrintf): Define using libm_alias_float.
22560 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22561 <libm-alias-float.h>.
22562 (llroundf): Define using libm_alias_float.
22563 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22564 <libm-alias-float.h>.
22565 (lrintf): Define using libm_alias_float.
22566 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22567 <libm-alias-float.h>.
22568 (lroundf): Define using libm_alias_float.
22569 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22570 <libm-alias-float.h>.
22571 (nearbyintf): Define using libm_alias_float.
22572 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22573 <libm-alias-float.h>.
22574 (rintf): Define using libm_alias_float.
22575 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22576 <libm-alias-float.h>.
22577 (roundf): Define using libm_alias_float.
22578 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22579 <libm-alias-float.h>.
22580 (truncf): Define using libm_alias_float.
22581 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22582 Include <libm-alias-float.h>.
22583 (ceilf): Define using libm_alias_float.
22584 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22585 Include <libm-alias-float.h>.
22586 (copysignf): Define using libm_alias_float.
22587 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22588 Include <libm-alias-float.h>.
22589 (floorf): Define using libm_alias_float.
22590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22591 Include <libm-alias-float.h>.
22592 (llrintf): Define using libm_alias_float.
22593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22594 Include <libm-alias-float.h>.
22595 (llroundf): Define using libm_alias_float.
22596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22597 Include <libm-alias-float.h>.
22598 (logbf): Define using libm_alias_float.
22599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22600 Include <libm-alias-float.h>.
22601 (lrintf): Define using libm_alias_float.
22602 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22603 Include <libm-alias-float.h>.
22604 (lroundf): Define using libm_alias_float.
22605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22606 Include <libm-alias-float.h>.
22607 (modff): Define using libm_alias_float.
22608 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22609 Include <libm-alias-float.h>.
22610 (roundf): Define using libm_alias_float.
22611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22612 Include <libm-alias-float.h>.
22613 (truncf): Define using libm_alias_float.
22614 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22615 <libm-alias-float.h>.
22616 (llrintf): Define using libm_alias_float.
22617 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22618 <libm-alias-float.h>.
22619 (llroundf): Define using libm_alias_float.
22620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22621 <libm-alias-float.h>.
22622 (ceilf): Define using libm_alias_float.
22623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22624 <libm-alias-float.h>.
22625 (floorf): Define using libm_alias_float.
22626 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22627 <libm-alias-float.h>.
22628 (llroundf): Define using libm_alias_float.
22629 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22630 <libm-alias-float.h>.
22631 (lroundf): Define using libm_alias_float.
22632 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22633 <libm-alias-float.h>.
22634 (roundf): Define using libm_alias_float.
22635 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22636 <libm-alias-float.h>.
22637 (truncf): Define using libm_alias_float.
22638 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22639 <libm-alias-float.h>.
22640 (copysignf): Define using libm_alias_float.
22641 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22642 <libm-alias-float.h>.
22643 (llrintf): Define using libm_alias_float.
22644 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22645 <libm-alias-float.h>.
22646 (llroundf): Define using libm_alias_float.
22647 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22648 <libm-alias-float.h>.
22649 (lrintf): Define using libm_alias_float.
22650 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22651 <libm-alias-float.h>.
22652 (lroundf): Define using libm_alias_float.
22653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22654 <libm-alias-float.h>.
22655 (ceilf): Define using libm_alias_float.
22656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22657 <libm-alias-float.h>.
22658 (copysignf): Define using libm_alias_float.
22659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22660 <libm-alias-float.h>.
22661 (cosf): Define using libm_alias_float.
22662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22663 <libm-alias-float.h>.
22664 (floorf): Define using libm_alias_float.
22665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22666 <libm-alias-float.h>.
22667 (llrintf): Define using libm_alias_float.
22668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22669 <libm-alias-float.h>.
22670 (llroundf): Define using libm_alias_float.
22671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22672 <libm-alias-float.h>.
22673 (logbf): Define using libm_alias_float.
22674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22675 <libm-alias-float.h>.
22676 (modff): Define using libm_alias_float.
22677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22678 <libm-alias-float.h>.
22679 (roundf): Define using libm_alias_float.
22680 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22681 <libm-alias-float.h>.
22682 (sinf): Define using libm_alias_float.
22683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22684 <libm-alias-float.h>.
22685 (truncf): Define using libm_alias_float.
22686 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22687 <libm-alias-float.h>.
22688 (ceilf): Define using libm_alias_float.
22689 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22690 <libm-alias-float.h>.
22691 (copysignf): Define using libm_alias_float.
22692 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22693 <libm-alias-float.h>.
22694 (floorf): Define using libm_alias_float.
22695 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22696 <libm-alias-float.h>.
22697 (llrintf): Define using libm_alias_float.
22698 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22699 <libm-alias-float.h>.
22700 (llroundf): Define using libm_alias_float.
22701 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22702 <libm-alias-float.h>.
22703 (nearbyintf): Define using libm_alias_float.
22704 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22705 <libm-alias-float.h>.
22706 (rintf): Define using libm_alias_float.
22707 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22708 <libm-alias-float.h>.
22709 (roundf): Define using libm_alias_float.
22710 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22711 <libm-alias-float.h>.
22712 (truncf): Define using libm_alias_float.
22713 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22714 <libm-alias-float.h>.
22715 (ceilf): Define using libm_alias_float.
22716 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22717 <libm-alias-float.h>.
22718 (floorf): Define using libm_alias_float.
22719 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22720 <libm-alias-float.h>.
22721 (llroundf): Define using libm_alias_float.
22722 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22723 <libm-alias-float.h>.
22724 (roundf): Define using libm_alias_float.
22725 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22726 <libm-alias-float.h>.
22727 (truncf): Define using libm_alias_float.
22728 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22729 <libm-alias-float.h>.
22730 (copysignf): Define using libm_alias_float.
22731 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22732 <libm-alias-float.h>.
22733 (llrintf): Define using libm_alias_float.
22734 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22735 <libm-alias-float.h>.
22736 (llroundf): Define using libm_alias_float.
22737 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22738 <libm-alias-float.h>.
22739 (cosf): Define using libm_alias_float.
22740 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22741 <libm-alias-float.h>.
22742 (llrintf): Define using libm_alias_float.
22743 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22744 <libm-alias-float.h>.
22745 (llroundf): Define using libm_alias_float.
22746 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22747 <libm-alias-float.h>.
22748 (sinf): Define using libm_alias_float.
22749
22750 2017-12-04 Florian Weimer <fweimer@redhat.com>
22751
22752 * support/check.h (TEST_COMPARE): Define.
22753 (support_test_compare_failure): Declare.
22754 * support/Makefile (libsupport-routines): Add
22755 support_test_compare_failure.
22756 (tests): Add tst-test_compare.
22757 * support /support_test_compare_failure.c: New file.
22758 * support/tst-test_compare.c: Likewise.
22759
22760 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22761
22762 [BZ #22527]
22763 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22764 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22765 available, this rewrite of the collation rules does reproduce
22766 the test file in the same order.
22767
22768 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22769
22770 [BZ #10580]
22771 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22772 digraphs in the month and day names. Using single code points for
22773 digraphs is deprecated. While there are dedicated Unicode
22774 codepoints, for the digraphs, these are included for backwards
22775 compatibility and modern texts use a sequence of Basic Latin
22776 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22777 This makes the month and day names agree exactly with CLDR now,
22778 CLDR does not use the single code points for the digraphs either.
22779
22780 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22781
22782 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22783
22784 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22785
22786 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22787 of floor.
22788
22789 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22790
22791 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22792 Define only for libc.so.
22793
22794 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22795
22796 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22797 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22798 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22799 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22800 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22801
22802 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22803
22804 [BZ #5997]
22805 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22806
22807 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22808
22809 [BZ libc/19170]
22810 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22811 PREINIT_FUNCTION_WEAK is nonzero.
22812 (gmon_initializer): New function. Put procedure label for it in
22813 .init_array section.
22814 (_init): Don't call PREINIT_FUNCTION.
22815 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22816 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22817 value when map argument is null.
22818
22819 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22820 depi instruction from PIC pc-relative sequence.
22821 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22822 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22823 (elf_machine_load_address): Likewise.
22824 (elf_machine_runtime_setup): Likewise.
22825
22826 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22827
22828 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22829 <libm-alias-double.h>.
22830 (logb): Define using libm_alias_double.
22831 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22832 <libm-alias-double.h>.
22833 (copysign): Define using libm_alias_double.
22834 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22835 <libm-alias-double.h>.
22836 (llrint): Define using libm_alias_double.
22837 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22838 <libm-alias-double.h>.
22839 (llround): Define using libm_alias_double.
22840 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22841 <libm-alias-double.h>.
22842 (lrint): Define using libm_alias_double.
22843 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22844 <libm-alias-double.h>.
22845 (lround): Define using libm_alias_double.
22846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22847 Include <libm-alias-double.h>.
22848 (copysign): Define using libm_alias_double.
22849 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22850 Include <libm-alias-double.h>.
22851 (llrint): Define using libm_alias_double.
22852 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22853 Include <libm-alias-double.h>.
22854 (llround): Define using libm_alias_double.
22855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22856 <libm-alias-double.h>.
22857 (logb): Define using libm_alias_double.
22858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22859 Include <libm-alias-double.h>.
22860 (lrint): Define using libm_alias_double.
22861 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22862 Include <libm-alias-double.h>.
22863 (lround): Define using libm_alias_double.
22864 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22865 <libm-alias-double.h>.
22866 (llrint): Define using libm_alias_double.
22867 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22868 <libm-alias-double.h>.
22869 (llround): Define using libm_alias_double.
22870 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22871 <libm-alias-double.h>.
22872 (llround): Define using libm_alias_double.
22873 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22874 <libm-alias-double.h>.
22875 (lround): Define using libm_alias_double.
22876 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22877 <libm-alias-double.h>.
22878 (copysign): Define using libm_alias_double.
22879 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22880 <libm-alias-double.h>.
22881 (llrint): Define using libm_alias_double.
22882 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22883 <libm-alias-double.h>.
22884 (llround): Define using libm_alias_double.
22885 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22886 <libm-alias-double.h>.
22887 (lrint): Define using libm_alias_double.
22888 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22889 <libm-alias-double.h>.
22890 (lround): Define using libm_alias_double.
22891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22892 <libm-alias-double.h>.
22893 (copysign): Define using libm_alias_double.
22894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22895 <libm-alias-double.h>.
22896 (llrint): Define using libm_alias_double.
22897 (lrint): Likewise.
22898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22899 <libm-alias-double.h>.
22900 (llround): Define using libm_alias_double.
22901 (lround): Likewise.
22902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22903 <libm-alias-double.h>.
22904 (logb): Define using libm_alias_double.
22905 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22906 <libm-alias-double.h>.
22907 (copysign): Define using libm_alias_double.
22908 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22909 <libm-alias-double.h>.
22910 (llrint): Define using libm_alias_double.
22911 (lrint): Likewise.
22912 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22913 <libm-alias-double.h>.
22914 (llround): Define using libm_alias_double.
22915 (lround): Likewise.
22916 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22917 <libm-alias-double.h>.
22918 (llround): Define using libm_alias_double.
22919 (lround): Likewise.
22920 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22921 <libm-alias-double.h>.
22922 (copysign): Define using libm_alias_double.
22923 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22924 <libm-alias-double.h>.
22925 (llrint): Define using libm_alias_double.
22926 (lrint): Likewise.
22927 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22928 <libm-alias-double.h>.
22929 (llround): Define using libm_alias_double.
22930 (lround): Likewise.
22931 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22932 <libm-alias-double.h>.
22933 (llrint): Define using libm_alias_double.
22934 (lrint): Likewise.
22935 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22936 <libm-alias-double.h>.
22937 (llround): Define using libm_alias_double.
22938 (lround): Likewise.
22939
22940 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22941
22942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22943 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22944 compat symbol based on llround.
22945
22946 * sysdeps/powerpc/power7/fpu/s_logb.c
22947 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22948 symbol based on __logb, not on logb.
22949 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22950 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22952 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22953
22954 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22955 (rint): Define using libm_alias_double.
22956 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22957 <libm-alias-double.h>.
22958 (modf): Define using libm_alias_double.
22959 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22960 <libm-alias-double.h>.
22961 (ceil): Define using libm_alias_double.
22962 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22963 <libm-alias-double.h>.
22964 (floor): Define using libm_alias_double.
22965 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22966 <libm-alias-double.h>.
22967 (nearbyint): Define using libm_alias_double.
22968 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22969 <libm-alias-double.h>.
22970 (rint): Define using libm_alias_double.
22971 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22972 <libm-alias-double.h>.
22973 (round): Define using libm_alias_double.
22974 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22975 <libm-alias-double.h>.
22976 (trunc): Define using libm_alias_double.
22977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22978 <libm-alias-double.h>.
22979 (ceil): Define using libm_alias_double.
22980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22981 Include <libm-alias-double.h>.
22982 (floor): Define using libm_alias_double.
22983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22984 <libm-alias-double.h>.
22985 (modf): Define using libm_alias_double.
22986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22987 Include <libm-alias-double.h>.
22988 (round): Define using libm_alias_double.
22989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22990 Include <libm-alias-double.h>.
22991 (trunc): Define using libm_alias_double.
22992 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22993 <libm-alias-double.h>.
22994 (ceil): Define using libm_alias_double.
22995 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22996 <libm-alias-double.h>.
22997 (floor): Define using libm_alias_double.
22998 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22999 <libm-alias-double.h>.
23000 (round): Define using libm_alias_double.
23001 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
23002 <libm-alias-double.h>.
23003 (trunc): Define using libm_alias_double.
23004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
23005 <libm-alias-double.h>.
23006 (ceil): Define using libm_alias_double.
23007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
23008 <libm-alias-double.h>.
23009 (floor): Define using libm_alias_double.
23010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
23011 <libm-alias-double.h>.
23012 (modf): Define using libm_alias_double.
23013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
23014 <libm-alias-double.h>.
23015 (round): Define using libm_alias_double.
23016 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
23017 <libm-alias-double.h>.
23018 (trunc): Define using libm_alias_double.
23019 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
23020 <libm-alias-double.h>.
23021 (ceil): Define using libm_alias_double.
23022 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
23023 <libm-alias-double.h>.
23024 (floor): Define using libm_alias_double.
23025 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
23026 <libm-alias-double.h>.
23027 (nearbyint): Define using libm_alias_double.
23028 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
23029 <libm-alias-double.h>.
23030 (rint): Define using libm_alias_double.
23031 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
23032 <libm-alias-double.h>.
23033 (round): Define using libm_alias_double.
23034 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
23035 <libm-alias-double.h>.
23036 (trunc): Define using libm_alias_double.
23037 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
23038 <libm-alias-double.h>.
23039 (ceil): Define using libm_alias_double.
23040 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
23041 <libm-alias-double.h>.
23042 (floor): Define using libm_alias_double.
23043 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
23044 <libm-alias-double.h>.
23045 (round): Define using libm_alias_double.
23046 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
23047 <libm-alias-double.h>.
23048 (trunc): Define using libm_alias_double.
23049
23050 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
23051 (fabs): Define using libm_alias_double.
23052 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
23053 (fma): Define using libm_alias_double.
23054 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
23055 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
23058
23059 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23060
23061 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
23062
23063 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
23064 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
23065 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23066
23067 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
23068 due redirect macro.
23069
23070 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
23071
23072 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
23073
23074 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23075
23076 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
23077 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
23078 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
23079 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
23080
23081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23082 (libm-sysdep_routines): Add s_nearbyintf-generic and
23083 s_nearbyint-generic.
23084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
23085 New file.
23086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
23087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
23088 Likewise.
23089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
23090 Likewise.
23091 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
23092 file.
23093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23094 Likewise.
23095
23096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23097 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
23098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
23099 file.
23100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
23101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
23102 Likewise.
23103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
23104 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
23105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23106
23107 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23108 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
23109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
23110 file.
23111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
23112 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
23113 Likewise.
23114 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
23115 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
23116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
23117
23118 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23119 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
23120 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
23121 file.
23122 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
23123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
23124 Likewise.
23125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
23126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
23127 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23128
23129 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23130 (sysdep_calls): New rule.
23131 (sysdep_routines): Use sysdep_calls as base.
23132 (libm-sysdep_routines): Add generic rule for symbols shared with
23133 libc. Add s_copysign-generic and s_copysign-generic objects.
23134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
23135 New file.
23136 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
23137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
23138 Likewise.
23139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
23140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
23141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
23142
23143 2017-12-01 Mike FABIAN <mfabian@redhat.com>
23144
23145 [BZ #22519]
23146 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23147 the list of locales to be built for testing.
23148 * localedata/is_IS.UTF-8.in: New file.
23149 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23150 on iso14651_t1.
23151
23152 2017-12-01 Joseph Myers <joseph@codesourcery.com>
23153
23154 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23155 <libm-alias-float.h>.
23156 (fabsf): Define using libm_alias_float.
23157
23158 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23159
23160 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23161
23162 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23163
23164 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23165 <libm-alias-float.h>.
23166 (fabsf): Define using libm_alias_float.
23167 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23168 <libm-alias-float.h>.
23169 (lrintf): Define using libm_alias_float.
23170 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23171 <libm-alias-float.h>.
23172 (rintf): Define using libm_alias_float.
23173
23174 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23175 <libm-alias-double.h>.
23176 (fabs): Define using libm_alias_double.
23177 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23178 <libm-alias-double.h>.
23179 (lrint): Define using libm_alias_double.
23180 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23181 <libm-alias-double.h>.
23182 (rint): Define using libm_alias_double.
23183
23184 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23185 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23186 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23187 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23188 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23189 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23190 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23191 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23192 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23193 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23194 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23195 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23196 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23197 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23198 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23199 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23200 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23201 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23202 s_atan_template.c.
23203 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23204 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23205 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23206 s_ceil_template.c.
23207 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23208 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23209 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23210 s_cos_template.c.
23211 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23212 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23213 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23214 s_expm1_template.c.
23215 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23216 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23217 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23218 s_fabs_template.c.
23219 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23220 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23221 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23222 s_floor_template.c.
23223 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23224 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23225 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23226 s_frexp_template.c.
23227 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23228 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23229 s_lrint_template.c.
23230 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23231 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23232 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23233 s_modf_template.c.
23234 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23235 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23236 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23237 s_nearbyint_template.c.
23238 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23239 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23240 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23241 s_remquo_template.c.
23242 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23243 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23244 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23245 s_rint_template.c.
23246 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23247 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23248 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23249 s_sin_template.c.
23250 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23251 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23252 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23253 s_sincos_template.c.
23254 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23255 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23256 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23257 s_tan_template.c.
23258 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23259 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23260 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23261 s_tanh_template.c.
23262 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23263 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23264 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23265 s_trunc_template.c.
23266 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23267 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23268 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23269 s_atan.c instead of including s_atan.c.
23270 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23271 s_atanf.c instead of including s_atanf.c.
23272 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23273 s_atanl.c instead of including s_atanl.c.
23274 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23275 instead of s_atan.c.
23276 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23277 instead of s_atanf.c.
23278 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23279 instead of s_atanl.c.
23280
23281 * scripts/update-copyrights: Do not handle intl/plural.c
23282 specially.
23283
23284 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
23285
23286 [BZ #22432]
23287 * configure.ac (BISON): Require to be present.
23288 * configure: Regenerated.
23289 * intl/Makefile (generated): Add plural.c.
23290 [$(BISON) != no]: Make code unconditional.
23291 (plural.c): Change rule to $(objpfx)plural.c.
23292 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23293 * intl/plural.c: Remove.
23294 * manual/install.texi (Tools for Compilation): Document bison as
23295 required.
23296 * INSTALL: Regenerated.
23297
23298 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23299
23300 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23301 <libm-alias-double.h>.
23302 (llrint): Define using libm_alias_double.
23303 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23304 <libm-alias-float.h>.
23305 (llrintf): Define using libm_alias_float.
23306 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23307 <libm-alias-ldouble.h>.
23308 (llrintl): Define using libm_alias_ldouble.
23309
23310 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23311 declare_mgen_alias instead of weak_alias.
23312 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23313 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23314 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23315
23316 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23317
23318 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23319 Add add_n-generic.
23320 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23321 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23322 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23323
23324 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23325 Add submul_1-generic.
23326 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23327 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23328 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23329
23330 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23331 Add addmul_1-generic.
23332 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23333 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23334 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23335
23336 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23337 Add sub_n-generic.
23338 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23339 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23340 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23341
23342 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23343 Add mul_1-generic.
23344 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23345 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23346 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23347
23348 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23349
23350 According to CLDR, collation rules for Serbian and Bosnian
23351 should be the same as for Croatian.
23352
23353 [BZ #22534]
23354 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23355 and to the list of locales to be built for testing.
23356 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23357 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23358 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23359 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23360
23361 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23362
23363 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23364 to make test case pass.
23365 * localedata/hr_HR.UTF-8.in: Add more test strings.
23366
23367 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23368
23369 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23370
23371 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23372
23373 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23374 the list of locales to built for testing.
23375 * localedata/hr_HR.UTF-8.in: New file.
23376
23377 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23378
23379 [BZ #10580]
23380 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23381 iso14651_t1.
23382 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23383 CLDR (except use ligatures for the digraphs, CLDR does not use
23384 the ligatures), add first_workday, some fixes in the date and time
23385 formats.
23386 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23387 for Đ and đ.
23388 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23389 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23390 Add int_p_cs_precedes and int_n_cs_precedes.
23391 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23392 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23393 LC_MONETARY now).
23394 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23395 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23396 name_miss.
23397 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23398 and lang_lib. Change postal_fmt.
23399
23400 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23401
23402 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23403 <setjmp.h>.
23404 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23405 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23406 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23407 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23408 * sysdeps/generic/setjmpP.h: New file.
23409 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23410 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23411 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23412 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23413 Add jmp_buf-ssp.sym.
23414 (tests): Add tst-saved_mask-1.
23415
23416 2017-11-30 Arjun Shankar <arjun@redhat.com>
23417
23418 [BZ #22375]
23419 CVE-2017-17426
23420 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23421 instead of request2size.
23422
23423 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23424
23425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23426 (__lllrint): Remove alias.
23427 (lllrint): Likewise.
23428 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23429 (__lllrintf): Likewise.
23430 (lllrintf): Likewise.
23431
23432 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23433 <libm-alias-float.h>.
23434 (copysignf): Define using libm_alias_float.
23435 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23436 <libm-alias-float.h>.
23437 (fabsf): Define using libm_alias_float.
23438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23439 Include <libm-alias-float.h>.
23440 (copysignf): Define using libm_alias_float.
23441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23442 <libm-alias-float.h>.
23443 (fabsf): Define using libm_alias_float.
23444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23445 <libm-alias-float.h>.
23446 (fdimf): Define using libm_alias_float.
23447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23448 <libm-alias-float.h>.
23449 (fmaf): Define using libm_alias_float.
23450 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23451 <libm-alias-float.h>.
23452 (llrintf): Define using libm_alias_float.
23453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23454 Include <libm-alias-float.h>.
23455 (nearbyintf): Define using libm_alias_float.
23456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23457 <libm-alias-float.h>.
23458 (rintf): Define using libm_alias_float.
23459 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23460 <libm-alias-float.h>.
23461 (llrintf): Define using libm_alias_float.
23462 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23463 <libm-alias-float.h>.
23464 (lrintf): Define using libm_alias_float.
23465 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23466 <libm-alias-float.h>.
23467 (nearbyintf): Define using libm_alias_float.
23468 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23469 <libm-alias-float.h>.
23470 (rintf): Define using libm_alias_float.
23471 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23472 <libm-alias-float.h>.
23473 (ceilf): Define using libm_alias_float.
23474 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23475 <libm-alias-float.h>.
23476 (floorf): Define using libm_alias_float.
23477 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23478 <libm-alias-float.h>.
23479 (fmaf): Define using libm_alias_float.
23480 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23481 <libm-alias-float.h>.
23482 (lrintf): Define using libm_alias_float.
23483 (llrintf): Likewise.
23484 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23485 <libm-alias-float.h>.
23486 (nearbyintf): Define using libm_alias_float.
23487 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23488 <libm-alias-float.h>.
23489 (rintf): Define using libm_alias_float.
23490 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23491 <libm-alias-float.h>.
23492 (truncf): Define using libm_alias_float.
23493 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23494 <libm-alias-float.h>.
23495 (copysignf): Define using libm_alias_float.
23496 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23497 <libm-alias-float.h>.
23498 (fabsf): Define using libm_alias_float.
23499 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23500 <libm-alias-float.h>.
23501 (lrintf): Define using libm_alias_float.
23502 (llrintf): Likewise.
23503 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23504 <libm-alias-float.h>.
23505 (nearbyintf): Define using libm_alias_float.
23506 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23507 <libm-alias-float.h>.
23508 (rintf): Define using libm_alias_float.
23509
23510 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23511
23512 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23513 <libm-alias-double.h>.
23514 (copysign): Define using libm_alias_double.
23515 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23516 <libm-alias-double.h>.
23517 (fabs): Define using libm_alias_double.
23518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23519 Include <libm-alias-double.h>.
23520 (copysign): Define using libm_alias_double.
23521 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23522 <libm-alias-double.h>.
23523 (fabs): Define using libm_alias_double.
23524 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23525 <libm-alias-double.h>.
23526 (fdim): Define using libm_alias_double.
23527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23528 <libm-alias-double.h>.
23529 (fma): Define using libm_alias_double.
23530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23531 <libm-alias-double.h>.
23532 (llrint): Define using libm_alias_double.
23533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23534 Include <libm-alias-double.h>.
23535 (nearbyint): Define using libm_alias_double.
23536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23537 <libm-alias-double.h>.
23538 (rint): Define using libm_alias_double.
23539 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23540 <libm-alias-double.h>.
23541 (fabs): Define using libm_alias_double.
23542 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23543 <libm-alias-double.h>.
23544 (llrint): Define using libm_alias_double.
23545 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23546 <libm-alias-double.h>.
23547 (nearbyint): Define using libm_alias_double.
23548 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23549 <libm-alias-double.h>.
23550 (rint): Define using libm_alias_double.
23551 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23552 <libm-alias-double.h>.
23553 (ceil): Define using libm_alias_double.
23554 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23555 <libm-alias-double.h>.
23556 (floor): Define using libm_alias_double.
23557 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23558 <libm-alias-double.h>.
23559 (fma): Define using libm_alias_double.
23560 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23561 <libm-alias-double.h>.
23562 (lrint): Define using libm_alias_double.
23563 (llrint): Likewise.
23564 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23565 <libm-alias-double.h>.
23566 (nearbyint): Define using libm_alias_double.
23567 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23568 <libm-alias-double.h>.
23569 (rint): Define using libm_alias_double.
23570 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23571 <libm-alias-double.h>.
23572 (trunc): Define using libm_alias_double.
23573 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23574 <libm-alias-double.h>.
23575 (copysign): Define using libm_alias_double.
23576 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23577 <libm-alias-double.h>.
23578 (fabs): Define using libm_alias_double.
23579 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23580 <libm-alias-double.h>.
23581 (lrint): Define using libm_alias_double.
23582 (llrint): Likewise.
23583 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23584 <libm-alias-double.h>.
23585 (nearbyint): Define using libm_alias_double.
23586 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23587 <libm-alias-double.h>.
23588 (rint): Define using libm_alias_double.
23589
23590 [BZ #22229]
23591 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23592 <math_ldbl_opt.h>.
23593 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23594
23595 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23596 SPARC --disable-multi-arch glibc variants.
23597
23598 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23599 <libm-alias-float.h>.
23600 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23601 if [SHARED].
23602 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23603 <libm-alias-float.h>.
23604 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23605 if [SHARED].
23606 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23607 <libm-alias-float.h>.
23608 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23609 if [SHARED].
23610 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23611 <libm-alias-float.h>.
23612 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23613 if [SHARED].
23614 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23615 <libm-alias-float.h>.
23616 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23617 if [SHARED].
23618 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23619 <libm-alias-float.h>.
23620 (ceilf): Define using libm_alias_float.
23621 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23622 <libm-alias-float.h>.
23623 (floorf): Define using libm_alias_float.
23624 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23625 <libm-alias-float.h>.
23626 (fmaf): Define using libm_alias_float.
23627 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23628 <libm-alias-float.h>.
23629 (nearbyintf): Define using libm_alias_float.
23630 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23631 <libm-alias-float.h>.
23632 (rintf): Define using libm_alias_float.
23633 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23634 <libm-alias-float.h>.
23635 (truncf): Define using libm_alias_float.
23636 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23637 (copysignf): Define using libm_alias_float.
23638 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23639 (cosf): Define using libm_alias_float.
23640 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23641 (fabsf): Define using libm_alias_float.
23642 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23643 (fmaxf): Define using libm_alias_float.
23644 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23645 (fminf): Define using libm_alias_float.
23646 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23647 (llrintf): Define using libm_alias_float.
23648 [!__ILP32__] (lrintf): Likewise.
23649 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23650 (sincosf): Define using libm_alias_float.
23651 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23652 (sinf): Define using libm_alias_float.
23653 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23654 (lrintf): Define using libm_alias_float.
23655
23656 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23657 <libm-alias-double.h>.
23658 (atan): Define using libm_alias_double.
23659 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23660 <libm-alias-double.h>.
23661 (ceil): Define using libm_alias_double.
23662 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23663 <libm-alias-double.h>.
23664 (floor): Define using libm_alias_double.
23665 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23666 <libm-alias-double.h>.
23667 (fma): Define using libm_alias_double.
23668 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23669 <libm-alias-double.h>.
23670 (nearbyint): Define using libm_alias_double.
23671 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23672 <libm-alias-double.h>.
23673 (rint): Define using libm_alias_double.
23674 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23675 <libm-alias-double.h>.
23676 (sin): Define using libm_alias_double.
23677 (cos): Likewise.
23678 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23679 <libm-alias-double.h>.
23680 (tan): Define using libm_alias_double.
23681 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23682 <libm-alias-double.h>.
23683 (trunc): Define using libm_alias_double.
23684 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23685 (copysign): Define using libm_alias_double.
23686 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23687 (fabs): Define using libm_alias_double.
23688 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23689 (fmax): Define using libm_alias_double.
23690 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23691 (fmin): Define using libm_alias_double.
23692 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23693 (llrint): Define using libm_alias_double.
23694 [!__ILP32__] (lrint): Likewise.
23695 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23696 (lrint): Define using libm_alias_double.
23697
23698 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23699
23700 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23701 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23702 objects.
23703 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23704 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23705 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23706 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23707 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23708 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23709
23710 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23711 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23712 objects.
23713 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23714 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23715 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23716 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23717 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23718 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23719
23720 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23721 (libm-sysdep_routines): Add s_nearbyint-generic and
23722 s_nearbyintf-generic objects.
23723 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23724 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23725 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23726 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23727 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23728 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23729
23730 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23731 Add s_finitef-generic and s_finite-generic objects.
23732 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23733 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23734 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23735 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23736 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23737 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23738
23739 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23740 Add s_isinff-generic and s_isinf-generic objects.
23741 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23742 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23743 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23744 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23745 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23746 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23747
23748 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23749 Add s_isnanf-generic and s_isnan-generic objects.
23750 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23751 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23752 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23753 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23754 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23755 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23756
23757 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23758 macro.
23759 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23760 rule.
23761 (sysdep_routines): Use sysdep_calls as base.
23762 (libm-sysdep_routines): Add generic rule for symbols shared with
23763 libc. Add s_signbit-generic and s_signbitf-generic objects.
23764 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23765 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23766 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23767 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23768 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23769 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23770
23771 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23772
23773 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23774 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23775 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23776 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23777 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23778 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23779 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23780 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23781 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23782 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23783 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23784 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23785 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23786 libm_alias_float_r.
23787 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23788 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23789 (logf): Likewise.
23790 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23791 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23792 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23793 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23794 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23795 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23796 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23797 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23798 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23799 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23800 libm_alias_float.
23801 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23802 (cosf): Likewise.
23803 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23804 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23805 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23806 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23807 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23808 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23809 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23810 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23811 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23812 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23813 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23814 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23815 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23816 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23817 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23818 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23819 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23820 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23821 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23822 libm_alias_float.
23823 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23824 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23825 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23826 * sysdeps/ia64/fpu/w_lgammaf_main.c
23827 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23828 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23829
23830 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23831 Alexandre Oliva <aoliva@redhat.com>
23832
23833 [BZ #17750]
23834 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23835 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23836 accents sorting.
23837 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23838 sorting.
23839 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23840 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23841 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23842 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23843 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23844 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23845 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23846 instead of “ifdef DIACRIT_BACKWARD”.
23847
23848 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23849
23850 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23851 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23852 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23853 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23854 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23855 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23856 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23857 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23858 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23859 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23860 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23861 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23862 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23863 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23864 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23865 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23866 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23867 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23869 ($(have-as-vis3) == yes): Remove conditional.
23870 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23871 Likewise.
23872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23873 file.
23874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23875 file.
23876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23877 file.
23878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23879 file.
23880 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23881 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23882 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23883 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23884 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23885 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23886 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23887 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23888
23889 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23890
23891 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23892 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23893 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23894 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23895 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23896 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23897 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23898 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23899 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23900 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23901 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23902 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23903 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23904 libm_alias_double_r.
23905 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23906 (log): Likewise.
23907 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23908 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23909 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23910 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23911 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23912 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23913 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23914 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23915 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23916 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23917 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23918 libm_alias_double.
23919 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23920 (cos): Likewise.
23921 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23922 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23923 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23924 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23925 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23926 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23927 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23928 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23929 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23930 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23931 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23932 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23933 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23934 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23935 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23936 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23937 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23938 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23939 libm_alias_double.
23940 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23941 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23942 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23943 * sysdeps/ia64/fpu/w_lgamma_main.c
23944 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23945 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23946
23947 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23948
23949 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23950 address of $global$ into %dp register earlier. Use pc-relative
23951 instruction sequence for PIC case.
23952
23953 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23954
23955 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23956 (asinhf): Define using libm_alias_float.
23957 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23958 (atanf): Define using libm_alias_float.
23959 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23960 (cbrtf): Define using libm_alias_float.
23961 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23962 (ceilf): Define using libm_alias_float.
23963 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23964 (copysignf): Define using libm_alias_float.
23965 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23966 (expm1f): Define using libm_alias_float.
23967 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23968 (fabsf): Define using libm_alias_float.
23969 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23970 (floorf): Define using libm_alias_float.
23971 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23972 (fmaxf): Define using libm_alias_float.
23973 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23974 (fminf): Define using libm_alias_float.
23975 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23976 (frexpf): Define using libm_alias_float.
23977 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23978 (llrintf): Define using libm_alias_float.
23979 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23980 (logbf): Define using libm_alias_float.
23981 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23982 (lrintf): Define using libm_alias_float.
23983 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23984 (nearbyintf): Define using libm_alias_float.
23985 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23986 (remquof): Define using libm_alias_float.
23987 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23988 (rintf): Define using libm_alias_float.
23989 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23990 (truncf): Define using libm_alias_float.
23991 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23992 <libm-alias-float.h>.
23993 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23994 if [SHARED].
23995 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23996 <libm-alias-float.h>.
23997 (expf): Define using libm_alias_float, or libm_alias_float_other
23998 if [SHARED].
23999 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
24000 <libm-alias-float.h>.
24001 (log2f): Define using libm_alias_float, or libm_alias_float_other
24002 if [SHARED].
24003 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
24004 <libm-alias-float.h>.
24005 (logf): Define using libm_alias_float, or libm_alias_float_other
24006 if [SHARED].
24007 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
24008 <libm-alias-float.h>.
24009 (powf): Define using libm_alias_float, or libm_alias_float_other
24010 if [SHARED].
24011 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
24012 <libm-alias-float.h>.
24013 (cosf): Define using libm_alias_float.
24014 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
24015 <libm-alias-float.h>.
24016 (sincosf): Define using libm_alias_float.
24017 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
24018 <libm-alias-float.h>.
24019 (sinf): Define using libm_alias_float.
24020 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
24021 (fmaxf): Define using libm_alias_float.
24022 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
24023 (fminf): Define using libm_alias_float.
24024 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
24025 <libm-alias-float.h>.
24026 (fmaf): Define using libm_alias_float.
24027
24028 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
24029 (asinh): Define using libm_alias_double.
24030 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
24031 (atan): Define using libm_alias_double.
24032 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
24033 (cbrt): Define using libm_alias_double.
24034 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
24035 (ceil): Define using libm_alias_double.
24036 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
24037 (copysign): Define using libm_alias_double.
24038 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
24039 (expm1): Define using libm_alias_double.
24040 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
24041 (fabs): Define using libm_alias_double.
24042 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
24043 (fdim): Define using libm_alias_double.
24044 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
24045 (floor): Define using libm_alias_double.
24046 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
24047 (fmax): Define using libm_alias_double.
24048 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
24049 (fmin): Define using libm_alias_double.
24050 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
24051 (frexp): Define using libm_alias_double.
24052 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
24053 (llrint): Define using libm_alias_double.
24054 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
24055 (logb): Define using libm_alias_double.
24056 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
24057 (lrint): Define using libm_alias_double.
24058 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
24059 (nearbyint): Define using libm_alias_double.
24060 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
24061 (remquo): Define using libm_alias_double.
24062 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
24063 (rint): Define using libm_alias_double.
24064 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
24065 (trunc): Define using libm_alias_double.
24066 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
24067 (fmax): Define using libm_alias_double.
24068 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
24069 (fmin): Define using libm_alias_double.
24070 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
24071 (fma): Define using libm_alias_double.
24072
24073 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
24074
24075 [BZ #22370]
24076 * elf/dl-hwcaps.c (ROUND): Removed.
24077 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
24078 and ELF_NOTE_NEXT_OFFSET.
24079 * elf/dl-load.c (ROUND): Removed.
24080 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24081 * elf/readelflib.c (ROUND): Removed.
24082 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
24083 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
24084 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
24085 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
24086
24087 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24088
24089 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24090 [!__fmaf] (fmaf): Define using libm_alias_float.
24091
24092 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
24093 [!__fma] (fma): Define using libm_alias_double.
24094 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
24095
24096 2017-11-28 Mike FABIAN <mfabian@redhat.com>
24097
24098 [BZ #22336]
24099 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
24100 and implement the collation rules for cs from CLDR on top of that.
24101 * Makefile: Add cs_CZ.UTF-8 to test-input.
24102 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
24103
24104 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
24105
24106 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
24107
24108 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24109 Icarus Sparry <icarus.w.sparry@intel.com>
24110
24111 * benchtests/Makefile:Add BENCHSET to allow subsets of
24112 benchmarks to be run.
24113 * benchtests/README: Add documentation for: Running subsets of
24114 benchmarks.
24115
24116 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
24117
24118 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
24119 range of tests names.
24120
24121 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
24122 result from property and remove "max", min" and "mean" from
24123 required properties based on benchtests/bench-skeleton.c.
24124
24125 2017-11-28 Florian Weimer <fweimer@redhat.com>
24126
24127 [BZ #20826]
24128 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
24129 due to Internet requirement.
24130 * posix/Makefile (tests): Remove tst-getaddrinfo4,
24131 tst-getaddrinfo5.
24132 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
24133
24134 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24135
24136 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24137 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
24138 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24139 (sysdep_routines): Add memset-ultra1.
24140 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
24141 file.
24142 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
24143 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24144 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24145 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24146 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24147 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24148 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24149 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24150
24151 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24152 file.
24153 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24154 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24155 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24156 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24157 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24158 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24159 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24160 macro.
24161 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24162 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24163 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24164 (sysdep_routines): Add memcpy-ultra1.
24165 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24166 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24167
24168 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24169
24170 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24171 (cfloat_versions): Take function argument without trailing 'f'.
24172 Call libm_alias_float_other.
24173 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24174 * sysdeps/alpha/fpu/cargf.c: Likewise.
24175 * sysdeps/alpha/fpu/cimagf.c: Likewise.
24176 * sysdeps/alpha/fpu/conjf.c: Likewise.
24177 * sysdeps/alpha/fpu/crealf.c: Likewise.
24178 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24179 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24180 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24181 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24182 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24183 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24184 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24185 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24186 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24187 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24188 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24189 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24190 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24191 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24192 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24193 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24194 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24195 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24196 (clog10f): Use libm_alias_float_other.
24197 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24198 (ceilf): Define using libm_alias_float.
24199 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24200 (copysignf): Define using libm_alias_float.
24201 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24202 (fabsf): Define using libm_alias_float.
24203 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24204 (floorf): Define using libm_alias_float.
24205 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24206 (fmaxf): Define using libm_alias_float.
24207 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24208 (fminf): Define using libm_alias_float.
24209 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24210 (lrintf): Define using libm_alias_float.
24211 (llrintf): Likewise.
24212 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24213 (lroundf): Define using libm_alias_float.
24214 (llroundf): Likewise.
24215 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24216 (rintf): Define using libm_alias_float.
24217 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24218 (truncf): Define using libm_alias_float.
24219
24220 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24221 (ceilf): Define using libm_alias_float.
24222 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24223 (floorf): Define using libm_alias_float.
24224 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24225 (fmaf): Define using libm_alias_float.
24226 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24227 (fmaxf): Define using libm_alias_float.
24228 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24229 (fminf): Define using libm_alias_float.
24230 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24231 (llrintf): Define using libm_alias_float.
24232 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24233 (llroundf): Define using libm_alias_float.
24234 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24235 (lrintf): Define using libm_alias_float.
24236 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24237 (lroundf): Define using libm_alias_float.
24238 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24239 <libm-alias-float.h>.
24240 (nearbyintf): Define using libm_alias_float.
24241 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24242 (rintf): Define using libm_alias_float.
24243 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24244 (roundf): Define using libm_alias_float.
24245 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24246 (truncf): Define using libm_alias_float.
24247
24248 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24249 (ceil): Define using libm_alias_double.
24250 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24251 (copysign): Define using libm_alias_double.
24252 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24253 (fabs): Define using libm_alias_double.
24254 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24255 (floor): Define using libm_alias_double.
24256 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24257 (fmax): Define using libm_alias_double.
24258 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24259 (fmin): Define using libm_alias_double.
24260 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24261 (lrint): Define using libm_alias_double.
24262 (llrint): Likewise.
24263 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24264 (lround): Define using libm_alias_double.
24265 (llround): Likewise.
24266 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24267 (rint): Define using libm_alias_double.
24268 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24269 (trunc): Define using libm_alias_double.
24270
24271 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24272 (libm_alias_double_r): Add semicolon after weak_alias call.
24273
24274 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24275
24276 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24277 (ceil): Define using libm_alias_double.
24278 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24279 (floor): Define using libm_alias_double.
24280 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24281 (fma): Define using libm_alias_double.
24282 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24283 (fmax): Define using libm_alias_double.
24284 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24285 (fmin): Define using libm_alias_double.
24286 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24287 (llrint): Define using libm_alias_double.
24288 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24289 (llround): Define using libm_alias_double.
24290 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24291 (lrint): Define using libm_alias_double.
24292 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24293 (lround): Define using libm_alias_double.
24294 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24295 (nearbyint): Define using libm_alias_double.
24296 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24297 (rint): Define using libm_alias_double.
24298 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24299 (round): Define using libm_alias_double.
24300 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24301 (trunc): Define using libm_alias_double.
24302
24303 2017-11-27 Florian Weimer <fweimer@redhat.com>
24304
24305 * sysdeps/unix/sysv/linux/mlock2.c: New file.
24306 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24307 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24308 (tests): Add tst-mlock2.
24309 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24310 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24311 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24312 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24313 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24314 for mlock. Document mlock2.
24315
24316 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24317
24318 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24319 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24320 Likewise.
24321 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24322 Likewise.
24323 * sysdeps/x86/Makeconfig: New file.
24324 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24325 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24326 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24327 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24328 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24329 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24330 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24331 Likewise.
24332 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24333 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24334 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24335 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24336 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24337 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24338 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24339 * manual/math.texi (Mathematics): Document support for _Float64x.
24340 * math/Versions (GLIBC_2.27): Add _Float64x functions.
24341 * stdlib/Versions (GLIBC_2.27): Likewise.
24342 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24343 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24344 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24345 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24346 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24347 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24348 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24349 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24350 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24351 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24352 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24353 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24355 Likewise.
24356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24357 Likewise.
24358 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24359 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24360 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24361 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24362 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24363 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24364 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24365 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24366 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24367 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24368 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24369 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24370 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24371 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24372
24373 2017-11-27 Andreas Schwab <schwab@suse.de>
24374
24375 * elf/Makefile (dl-routines): Add dl-sort-maps.
24376 * elf/dl-sort-maps.c: New file.
24377 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24378 (_dl_sort_maps): Declare.
24379 * elf/dl-fini.c (_dl_sort_fini): Remove.
24380 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24381 * elf/dl-close.c (_dl_close_worker): Likewise.
24382 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24383 open-coding it.
24384 * elf/dl-open.c (dl_open_worker): Likewise.
24385
24386 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24387
24388 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24389 using libm_alias_float128.
24390 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24391 Likewise.
24392 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24393 Likewise.
24394 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24395 (setpayloadsigf128): Likewise.
24396 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24397 Likewise.
24398 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24399 Likewise.
24400
24401 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24402 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24403 -mfloat128 to CFLAGS.
24404 ($(foreach
24405 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24406 Likewise.
24407 (CFLAGS-libm-test-support-float64x.c): New variable.
24408 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24409 $(f128-loader-link) to gnulib-tests.
24410
24411 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24412 (libm_alias_float128_other_r): If
24413 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24414 alias.
24415 (libm_alias_float128_r): Add semicolon after weak_alias call.
24416 * sysdeps/generic/libm-alias-ldouble.h
24417 (libm_alias_ldouble_other_r_f128): New macro.
24418 (libm_alias_ldouble_other_r_f64x): Likewise.
24419 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24420 and libm_alias_ldouble_other_r_f64x.
24421 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24422 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24423 (libm_alias_ldouble_other_r_f128): New macro.
24424 (libm_alias_ldouble_other_r_f64x): Likewise.
24425 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24426 and libm_alias_ldouble_other_r_f64x.
24427
24428 * stdlib/strfroml.c: Always include <stdlib.h>.
24429 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24430 undefine as macro and define as weak alias.
24431 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24432 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24433 <stdlib.h>.
24434 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24435 Define and later undefine as macro and define as weak alias.
24436
24437 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24438 Define and later undefine as macro. Define as weak alias if
24439 [!USE_WIDE_CHAR].
24440 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24441 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24442 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24443 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24444 Define and later undefine as macro. Define as weak alias if
24445 [!USE_WIDE_CHAR].
24446 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24447 Define and later undefine as macro. Define as weak alias if
24448 [USE_WIDE_CHAR].
24449 * sysdeps/ieee754/float128/strtof128_l.c
24450 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24451 Define and later undefine as macro. Define as weak alias if
24452 [!USE_WIDE_CHAR].
24453 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24454 Define and later undefine as macro. Define as weak alias if
24455 [USE_WIDE_CHAR].
24456 * sysdeps/ieee754/ldbl-128/strtold_l.c
24457 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24458 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24459 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24460 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24461 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24462 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24463 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24464 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24465 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24466 * sysdeps/ieee754/ldbl-96/strtold_l.c
24467 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24468 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24469 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24470 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24471
24472 * math/test-float64x.h: New file.
24473 * math/Makefile (type-float64x-yes): New variable.
24474 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24475
24476 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24477 function-like macro.
24478 (min_of_type_): Likewise.
24479 (min_of_type_l): Likewise.
24480 (min_of_type_f128): Likewise.
24481 (min_of_type): Pass () as last argument of __MATH_TG.
24482
24483 * stdlib/tst-strtod-round-skeleton.c
24484 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24485 headers.
24486
24487 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24488 for combinations of long double with _Float64 and _Float64x.
24489
24490 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24491 (__DECL_SIMD_cosf32): Likewise.
24492 (__DECL_SIMD_cosf64): Likewise.
24493 (__DECL_SIMD_cosf32x): Likewise.
24494 (__DECL_SIMD_cosf64x): Likewise.
24495 (__DECL_SIMD_cosf128x): Likewise.
24496 (__DECL_SIMD_sinf16): Likewise.
24497 (__DECL_SIMD_sinf32): Likewise.
24498 (__DECL_SIMD_sinf64): Likewise.
24499 (__DECL_SIMD_sinf32x): Likewise.
24500 (__DECL_SIMD_sinf64x): Likewise.
24501 (__DECL_SIMD_sinf128x): Likewise.
24502 (__DECL_SIMD_sincosf16): Likewise.
24503 (__DECL_SIMD_sincosf32): Likewise.
24504 (__DECL_SIMD_sincosf64): Likewise.
24505 (__DECL_SIMD_sincosf32x): Likewise.
24506 (__DECL_SIMD_sincosf64x): Likewise.
24507 (__DECL_SIMD_sincosf128x): Likewise.
24508 (__DECL_SIMD_logf16): Likewise.
24509 (__DECL_SIMD_logf32): Likewise.
24510 (__DECL_SIMD_logf64): Likewise.
24511 (__DECL_SIMD_logf32x): Likewise.
24512 (__DECL_SIMD_logf64x): Likewise.
24513 (__DECL_SIMD_logf128x): Likewise.
24514 (__DECL_SIMD_expf16): Likewise.
24515 (__DECL_SIMD_expf32): Likewise.
24516 (__DECL_SIMD_expf64): Likewise.
24517 (__DECL_SIMD_expf32x): Likewise.
24518 (__DECL_SIMD_expf64x): Likewise.
24519 (__DECL_SIMD_expf128x): Likewise.
24520 (__DECL_SIMD_powf16): Likewise.
24521 (__DECL_SIMD_powf32): Likewise.
24522 (__DECL_SIMD_powf64): Likewise.
24523 (__DECL_SIMD_powf32x): Likewise.
24524 (__DECL_SIMD_powf64x): Likewise.
24525 (__DECL_SIMD_powf128x): Likewise.
24526
24527 * stdlib/Versions (libc): Move entries for wcstof128 and
24528 wcstof128_l to ....
24529 * wcsmbs/Versions (libc): ... here.
24530 Include <float128-abi.h>.
24531
24532 2017-11-24 Florian Weimer <fweimer@redhat.com>
24533
24534 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24535 bits/mman-shared.h.
24536 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24537 <bits/mman-shared.h>.
24538 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24539 to ...
24540 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24541 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24542 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24543 <bits/mman-shared.h>.
24544
24545 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24546
24547 [BZ #22457]
24548 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24549 posix_memalign/free.
24550 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24551
24552 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24553
24554 [BZ #22469]
24555 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24556 and implement the collation rules for pl from CLDR on top of that.
24557 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24558 of locales to be built for testing.
24559 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24560
24561 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24562
24563 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24564 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24565 libm_alias_ldouble_other.
24566 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24567 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24568 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24569 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24570 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24571 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24572 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24573 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24574 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24575 libm_alias_ldouble_r.
24576 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24577 libm_alias_ldouble_other.
24578 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24579 (log10l): Likewise.
24580 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24581 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24582 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24583 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24584 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24585 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24586 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24587 (atan2l): Likewise.
24588 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24589 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24590 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24591 libm_alias_ldouble.
24592 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24593 (cosl): Likewise.
24594 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24595 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24596 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24597 (expl): Likewise.
24598 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24599 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24600 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24601 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24602 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24603 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24604 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24605 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24606 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24607 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24608 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24609 libm_alias_ldouble.
24610 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24611 libm_alias_ldouble_other.
24612 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24613 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24614 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24615 libm_alias_ldouble.
24616 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24617 libm_alias_ldouble_other.
24618 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24619 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24620 * sysdeps/ia64/fpu/w_lgammal_main.c
24621 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24622 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24623
24624 2017-11-23 Florian Weimer <fweimer@redhat.com>
24625
24626 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24627 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24628 alike. Remove freeres marker.
24629 * malloc/arena.c (arena_thread_freeres): Call
24630 tcache_thread_shutdown.
24631
24632 2017-11-23 Florian Weimer <fweimer@redhat.com>
24633
24634 [BZ #22459]
24635 Export nscd hash function as __nss_hash.
24636 * include/nss.h (__nss_hash): Declare.
24637 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24638 symbol.
24639 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24640 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24641 of __nscd_hash.
24642 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24643 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24644 * nss/Makefiles (routines): Add nss_hash.
24645 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24646 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24647 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24648 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24649
24650 2017-11-23 Florian Weimer <fweimer@redhat.com>
24651
24652 [BZ #22478]
24653 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24654 Return error code, not -1.
24655 * signal/tst-sigwait-eintr.c: New file.
24656 * signal/Makefile (tests): Add tst-sigwait-eintr.
24657
24658 2017-11-23 Florian Weimer <fweimer@redhat.com>
24659
24660 Linux: Add memfd_create system call wrapper
24661 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24662 tst-memfd_create.
24663 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24664 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24665 [__USE_GNU] (memfd_create): Declare.
24666 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24667 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24668 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24669 * sysdeps/unix/sysv/linux/**.abilist: Update.
24670 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24671
24672 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24673
24674 * localedata/gen-locale.sh: Fix typo in variable name.
24675
24676 * resolv/res_debug.c (p_secstodate): Condition definition on
24677 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24678 directly as __p_secstodate, and as a compat symbol. Do not use
24679 libresolv_hidden_def.
24680 * resolv/resolv.h (p_secstodate): Remove macro and function
24681 declaration.
24682 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24683 using p_secstodate.
24684 * include/resolv.h (__p_secstodate): Do not use
24685 libresolv_hidden_proto.
24686 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24687 (tests-internal): ... here.
24688 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24689 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24690 and declare and use __p_secstodate and use compat_symbol_reference
24691 in that case.
24692 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24693 implementation returning 77.
24694
24695 [BZ #22463]
24696 * resolv/res_debug.c: Include <libc-diag.h>.
24697 (p_secstodate): Assert time_t at least as wide as u_long. On
24698 overflow, use integer seconds since the epoch as output, or use
24699 "<overflow>" as output and set errno to EOVERFLOW if integer
24700 seconds since the epoch would be 14 or more characters.
24701 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24702 for sprintf call.
24703 * resolv/tst-p_secstodate.c: New file.
24704 * resolv/Makefile (tests): Add tst-p_secstodate.
24705 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24706
24707 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24708 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24709 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24710
24711 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24712
24713 * posix/regcomp.c (init_word_char): Add comments.
24714
24715 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24716
24717 [BZ #22447]
24718 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24719 strlen to compute length of ut_user and set trailing NUL byte of
24720 result explicitly.
24721
24722 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24723
24724 [BZ #15537]
24725 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24726 using “copy "iso14651_t1"” and then implementing the
24727 collation rules for lv from CLDR on top of that.
24728 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24729 of locales to be built for testing.
24730 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24731 sorting.
24732
24733 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24734
24735 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24736 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24737 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24738 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24739 [__USE_MISC] (MADV_HWPOISON): New macro.
24740 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24741
24742 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24743
24744 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24745 -Wmissing-braces on GCC 4.9.
24746
24747 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24748
24749 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24750 * sysdeps/s390/s390-32/start.S (_start): Likewise
24751 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24752 (thread_start): Likewise.
24753 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24754 (thread_start): Likewise.
24755 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24756 (__makecontext_ret): Likewise.
24757 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24758 (__makecontext_ret): Likewise.
24759
24760 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24761
24762 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24763 __wcschrnul): Remove attribute_hidden.
24764
24765 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24766
24767 regex: don't assume uint64_t or uint32_t
24768 This avoids -Werror=overflow errors for 32-bit systems in
24769 the 64-bit case. Problem reported by Joseph Myers in:
24770 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24771 Also, when this code is used in Gnulib it ports to platforms
24772 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24773 them, and on some 32-bit compilers there is no uint64_t.
24774 Problem reported by Gianluigi Tiesi in:
24775 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24776 * posix/regcomp.c (init_word_char): Don't assume that the types
24777 uint64_t and uint32_t exist. Adapted from Gnulib patch
24778 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24779 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24780
24781 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24782
24783 * sysdeps/aarch64/memset-reg.h: New file.
24784 * sysdeps/aarch64/memset.S: Use it.
24785 (__memset): Rename to MEMSET macro.
24786 [ZVA_MACRO]: Use zva_macro.
24787 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24788 Add memset_generic and memset_falkor.
24789 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24790 (__libc_ifunc_impl_list): Add memset ifuncs.
24791 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24792 local variable zva_size.
24793 * sysdeps/aarch64/multiarch/memset.c: New file.
24794 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24795 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24796 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24797 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24798 (DCZID_DZP_MASK): New macro.
24799 (DCZID_BS_MASK): Likewise.
24800 (init_cpu_features): Read and set zva_size.
24801 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24802 (struct cpu_features): New member zva_size.
24803
24804 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24805 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24806 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24807
24808 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24809 backwards. Fix timing computation.
24810 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24811 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24812 on memset by N at a time. Fix timing computation.
24813
24814 2017-11-20 Florian Weimer <fweimer@redhat.com>
24815
24816 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24817 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24818
24819 2017-11-19 Florian Weimer <fweimer@redhat.com>
24820
24821 manual: Document mprotect
24822 * manual/memory.texi (Memory Protection): New section.
24823 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24824 documentation of PROT_* flags and reference the Memory Protection
24825 section instead.
24826
24827 2017-11-19 Florian Weimer <fweimer@redhat.com>
24828
24829 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24830 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24831 (Scatter-Gather): ... to here. Remove misleading comment.
24832
24833 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24834
24835 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24836 style.
24837
24838 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24839 when /proc/<pid>/setgroups does not exist.
24840
24841 2017-11-18 Florian Weimer <fweimer@redhat.com>
24842
24843 * sysdeps/unix/sysv/linux/tst-ttyname.c
24844 (become_root_in_mount_ns): Remove.
24845 (do_in_chroot_1): Call support_enter_mount_namespace.
24846 (do_in_chroot_2): Likewise.
24847 (do_test): Call support_become_root early.
24848
24849 2017-11-18 Florian Weimer <fweimer@redhat.com>
24850
24851 * support/namespace.h (support_enter_mount_namespace): Declare.
24852 * support/support_enter_mount_namespace.c: New file.
24853 * support/Makefile (libsupport-routines): Add
24854 support_enter_mount_namespace.
24855
24856 2017-11-18 Florian Weimer <fweimer@redhat.com>
24857
24858 * support/temp_file.c (support_create_temp_directory): Use
24859 test_dir and do not rely on the presence of the XXXXXX suffix.
24860 * support/temp_file.h (support_create_temp_directory): Update
24861 comment.
24862 * support/tst-xreadlink.c (do_test): Adjust.
24863 * support/support_chroot.c (support_chroot_create): Likewise.
24864
24865 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24866
24867 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24868 macro.
24869 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24870 htm-no-suspend.
24871
24872 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24873
24874 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24875 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24876 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24877 (ceill): Define using libm_alias_ldouble.
24878 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24879 <libm-alias-ldouble.h>.
24880 (copysignl): Define using libm_alias_ldouble.
24881 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24882 (fabsl): Define using libm_alias_ldouble.
24883 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24884 (floorl): Define using libm_alias_ldouble.
24885 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24886 (fmaxl): Define using libm_alias_ldouble.
24887 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24888 (fminl): Define using libm_alias_ldouble.
24889 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24890 (llrintl): Define using libm_alias_ldouble.
24891 (lrintl): Likewise.
24892 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24893 <libm-alias-ldouble.h>.
24894 (nearbyintl): Define using libm_alias_ldouble.
24895 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24896 (truncl): Define using libm_alias_ldouble.
24897 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24898 <libm-alias-ldouble.h>.
24899 (lrintl): Define using libm_alias_ldouble.
24900
24901 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24902 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24903 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24904 (asinhl): Define using libm_alias_ldouble.
24905 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24906 (atanl): Define using libm_alias_ldouble.
24907 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24908 (cbrtl): Define using libm_alias_ldouble.
24909 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24910 (ceill): Define using libm_alias_ldouble.
24911 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24912 (copysignl): Define using libm_alias_ldouble.
24913 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24914 (fabsl): Define using libm_alias_ldouble.
24915 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24916 (floorl): Define using libm_alias_ldouble.
24917 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24918 (fmaxl): Define using libm_alias_ldouble.
24919 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24920 (fminl): Define using libm_alias_ldouble.
24921 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24922 (frexpl): Define using libm_alias_ldouble.
24923 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24924 (llrintl): Define using libm_alias_ldouble.
24925 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24926 (logbl): Define using libm_alias_ldouble.
24927 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24928 (lrintl): Define using libm_alias_ldouble.
24929 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24930 (nearbyintl): Define using libm_alias_ldouble.
24931 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24932 (nextafterl): Define using libm_alias_ldouble.
24933 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24934 (remquol): Define using libm_alias_ldouble.
24935 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24936 (rintl): Define using libm_alias_ldouble.
24937 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24938 (truncl): Define using libm_alias_ldouble.
24939 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24940 (fmaxl): Define using libm_alias_ldouble.
24941 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24942 (fminl): Define using libm_alias_ldouble.
24943
24944 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24945 to C syntax instead of availability and properties of types.
24946 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24947 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24948 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24949 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24950 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24951 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24952
24953 2017-11-17 Florian Weimer <fweimer@redhat.com>
24954
24955 support_become_root: Enable file creation in namespaces.
24956 * support/support_become_root.c (setup_mapping): New function.
24957 (support_become_root): Call it.
24958
24959 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24960
24961 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24962 macro.
24963
24964 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24965
24966 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24967 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24968
24969 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24970
24971 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24972
24973 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24974 version to 4.14.
24975
24976 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24977
24978 * INSTALL: Fix botched up regeneration.
24979
24980 * NEWS: Update sourceare link to https.
24981 * configure.ac: Likewise.
24982 * crypt/md5test-giant.c: Likewise.
24983 * dlfcn/bug-atexit1.c: Likewise.
24984 * dlfcn/bug-atexit2.c: Likewise.
24985 * localedata/README: Likewise.
24986 * malloc/tst-mallocfork.c: Likewise.
24987 * manual/install.texi: Likewise.
24988 * nptl/tst-pthread-getattr.c: Likewise.
24989 * stdio-common/tst-fgets.c: Likewise.
24990 * stdio-common/tst-fwrite.c: Likewise.
24991 * sunrpc/Makefile: Likewise.
24992 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24993 * wcsmbs/tst-mbrtowc2.c: Likewise.
24994 * configure: Regenerate.
24995 * INSTALL: Regenerate.
24996
24997 2017-11-15 Martin Sebor <msebor@redhat.com>
24998
24999 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
25000 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
25001 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
25002
25003 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
25004
25005 [BZ #22145]
25006 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
25007 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
25008
25009 [BZ #22145]
25010 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
25011 Defer is_pty check until end of the function.
25012 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25013
25014 [BZ #22145]
25015 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
25016 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
25017 (ttyname): Likewise.
25018 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25019 (__ttyname_r): Likewise.
25020
25021 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
25022 int to bool.
25023
25024 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
25025
25026 * manual/terminal.texi (Is It a Terminal):
25027 Mention ENODEV for ttyname and ttyname_r.
25028
25029 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25030
25031 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
25032 constant and macro.
25033
25034 * sysdeps/unix/sysv/linux/bits/mman-linux.h
25035 [__USE_MISC] (MADV_WIPEONFORK): New macro.
25036 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25037 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
25038 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
25039 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
25040
25041 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25042
25043 * signal/sigrelse.c (sigrelse): Optimize implementation.
25044
25045 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
25046 (__sigpause): Rely on __sigsuspend to implement single thread
25047 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
25048
25049 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25050
25051 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25052 kernel version to 4.14.
25053
25054 2017-11-15 Steve Ellcey <sellcey@cavium.com>
25055
25056 [BZ #22442]
25057 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
25058 Check if ifname is too long.
25059
25060 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
25061
25062 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
25063
25064 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25065
25066 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
25067 was accidentally lost.
25068
25069 2017-11-15 Mike FABIAN <mfabian@redhat.com>
25070
25071 * localedata/locales/az_IR: Add standard copyright header.
25072
25073 2017-11-15 Florian Weimer <fweimer@redhat.com>
25074
25075 [BZ #22439]
25076 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
25077 not just the top one. Output a new "subheaps" statistic.
25078
25079 2017-11-15 Florian Weimer <fweimer@redhat.com>
25080
25081 [BZ #22408]
25082 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
25083 under the per-arena lock.
25084 * malloc/Makefile (tests): Add tst-malloc_info.
25085 (tst-malloc_info): Link with libpthread.
25086 * malloc/tst-malloc_info.c: New file.
25087
25088 2017-11-15 Joseph Myers <joseph@codesourcery.com>
25089
25090 [BZ #21660]
25091 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
25092 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
25093 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
25094 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
25095 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
25096 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
25097 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
25098 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
25099 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
25100 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
25101 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
25102 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
25103 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
25104 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
25105 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
25106 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
25107 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
25108 (__floating_type): Likewise.
25109 (__real_integer_type): Likewise.
25110 (__complex_integer_type): Likewise.
25111 (__expr_is_real): Likewise.
25112 (__tgmath_real_type_sub): Likewise.
25113 (__tgmath_real_type): Likewise.
25114 (__tgmath_complex_type_sub): Likewise.
25115 (__tgmath_complex_type): Likewise.
25116 (__TGMATH_F128): Likewise.
25117 (__TGMATH_CF128): Likewise.
25118 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
25119 new macros.
25120 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25121 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
25122 Likewise.
25123 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
25124 Likewise.
25125 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
25126 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25127 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25128 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
25129 Likewise.
25130 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25131 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
25132 Likewise.
25133 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
25134 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
25135 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
25136 Likewise.
25137 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
25138 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
25139 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
25140 (cimag): Likewise.
25141 (creal): Likewise.
25142
25143 2017-11-14 Joseph Myers <joseph@codesourcery.com>
25144
25145 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25146 for stpncpy calls for GCC 8.
25147 (test_strncat): Disable -Wstringop-truncation warning for strncat
25148 calls for GCC 8. Disable -Wstringop-overflow= warning for one
25149 strncat call for GCC 7.
25150 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25151 calls for GCC 8.
25152 (test_memcmp): Use memcpy instead of strncpy for calls not copying
25153 trailing NUL.
25154
25155 * string/bug-strncat1.c: Include <libc-diag.h>.
25156 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25157
25158 2017-11-13 Claude Paroz <claude@2xlibre.net>
25159
25160 [BZ #22387]
25161 * localedata/locales/aa_DJ: Improved readibility by replacing
25162 <Uxxxx> sequences in the ASCII printable range by their ASCII
25163 character equivalents.
25164 * localedata/locales/aa_ER: Likewise.
25165 * localedata/locales/aa_ER@saaho: Likewise.
25166 * localedata/locales/aa_ET: Likewise.
25167 * localedata/locales/af_ZA: Likewise.
25168 * localedata/locales/agr_PE: Likewise.
25169 * localedata/locales/ak_GH: Likewise.
25170 * localedata/locales/am_ET: Likewise.
25171 * localedata/locales/anp_IN: Likewise.
25172 * localedata/locales/ar_AE: Likewise.
25173 * localedata/locales/ar_BH: Likewise.
25174 * localedata/locales/ar_DZ: Likewise.
25175 * localedata/locales/ar_EG: Likewise.
25176 * localedata/locales/ar_IN: Likewise.
25177 * localedata/locales/ar_IQ: Likewise.
25178 * localedata/locales/ar_JO: Likewise.
25179 * localedata/locales/ar_KW: Likewise.
25180 * localedata/locales/ar_LB: Likewise.
25181 * localedata/locales/ar_LY: Likewise.
25182 * localedata/locales/ar_MA: Likewise.
25183 * localedata/locales/ar_OM: Likewise.
25184 * localedata/locales/ar_QA: Likewise.
25185 * localedata/locales/ar_SA: Likewise.
25186 * localedata/locales/ar_SD: Likewise.
25187 * localedata/locales/ar_SS: Likewise.
25188 * localedata/locales/ar_SY: Likewise.
25189 * localedata/locales/ar_TN: Likewise.
25190 * localedata/locales/ar_YE: Likewise.
25191 * localedata/locales/as_IN: Likewise.
25192 * localedata/locales/ast_ES: Likewise.
25193 * localedata/locales/ayc_PE: Likewise.
25194 * localedata/locales/az_AZ: Likewise.
25195 * localedata/locales/az_IR: Likewise.
25196 * localedata/locales/be_BY: Likewise.
25197 * localedata/locales/be_BY@latin: Likewise.
25198 * localedata/locales/bem_ZM: Likewise.
25199 * localedata/locales/ber_DZ: Likewise.
25200 * localedata/locales/ber_MA: Likewise.
25201 * localedata/locales/bg_BG: Likewise.
25202 * localedata/locales/bhb_IN: Likewise.
25203 * localedata/locales/bho_IN: Likewise.
25204 * localedata/locales/bi_VU: Likewise.
25205 * localedata/locales/bn_BD: Likewise.
25206 * localedata/locales/bn_IN: Likewise.
25207 * localedata/locales/bo_CN: Likewise.
25208 * localedata/locales/bo_IN: Likewise.
25209 * localedata/locales/br_FR: Likewise.
25210 * localedata/locales/brx_IN: Likewise.
25211 * localedata/locales/bs_BA: Likewise.
25212 * localedata/locales/byn_ER: Likewise.
25213 * localedata/locales/ca_AD: Likewise.
25214 * localedata/locales/ca_ES: Likewise.
25215 * localedata/locales/ca_FR: Likewise.
25216 * localedata/locales/ca_IT: Likewise.
25217 * localedata/locales/ce_RU: Likewise.
25218 * localedata/locales/chr_US: Likewise.
25219 * localedata/locales/cmn_TW: Likewise.
25220 * localedata/locales/crh_UA: Likewise.
25221 * localedata/locales/cs_CZ: Likewise.
25222 * localedata/locales/csb_PL: Likewise.
25223 * localedata/locales/cv_RU: Likewise.
25224 * localedata/locales/cy_GB: Likewise.
25225 * localedata/locales/da_DK: Likewise.
25226 * localedata/locales/de_AT: Likewise.
25227 * localedata/locales/de_BE: Likewise.
25228 * localedata/locales/de_CH: Likewise.
25229 * localedata/locales/de_DE: Likewise.
25230 * localedata/locales/de_IT: Likewise.
25231 * localedata/locales/de_LI: Likewise.
25232 * localedata/locales/de_LU: Likewise.
25233 * localedata/locales/doi_IN: Likewise.
25234 * localedata/locales/dv_MV: Likewise.
25235 * localedata/locales/dz_BT: Likewise.
25236 * localedata/locales/el_CY: Likewise.
25237 * localedata/locales/el_GR: Likewise.
25238 * localedata/locales/en_AG: Likewise.
25239 * localedata/locales/en_AU: Likewise.
25240 * localedata/locales/en_BW: Likewise.
25241 * localedata/locales/en_CA: Likewise.
25242 * localedata/locales/en_DK: Likewise.
25243 * localedata/locales/en_GB: Likewise.
25244 * localedata/locales/en_HK: Likewise.
25245 * localedata/locales/en_IE: Likewise.
25246 * localedata/locales/en_IL: Likewise.
25247 * localedata/locales/en_IN: Likewise.
25248 * localedata/locales/en_NG: Likewise.
25249 * localedata/locales/en_NZ: Likewise.
25250 * localedata/locales/en_PH: Likewise.
25251 * localedata/locales/en_SG: Likewise.
25252 * localedata/locales/en_US: Likewise.
25253 * localedata/locales/en_ZA: Likewise.
25254 * localedata/locales/en_ZM: Likewise.
25255 * localedata/locales/en_ZW: Likewise.
25256 * localedata/locales/eo: Likewise.
25257 * localedata/locales/es_AR: Likewise.
25258 * localedata/locales/es_BO: Likewise.
25259 * localedata/locales/es_CL: Likewise.
25260 * localedata/locales/es_CO: Likewise.
25261 * localedata/locales/es_CR: Likewise.
25262 * localedata/locales/es_CU: Likewise.
25263 * localedata/locales/es_DO: Likewise.
25264 * localedata/locales/es_EC: Likewise.
25265 * localedata/locales/es_ES: Likewise.
25266 * localedata/locales/es_GT: Likewise.
25267 * localedata/locales/es_HN: Likewise.
25268 * localedata/locales/es_MX: Likewise.
25269 * localedata/locales/es_NI: Likewise.
25270 * localedata/locales/es_PA: Likewise.
25271 * localedata/locales/es_PE: Likewise.
25272 * localedata/locales/es_PR: Likewise.
25273 * localedata/locales/es_PY: Likewise.
25274 * localedata/locales/es_SV: Likewise.
25275 * localedata/locales/es_US: Likewise.
25276 * localedata/locales/es_UY: Likewise.
25277 * localedata/locales/es_VE: Likewise.
25278 * localedata/locales/et_EE: Likewise.
25279 * localedata/locales/eu_ES: Likewise.
25280 * localedata/locales/eu_ES@euro: Likewise.
25281 * localedata/locales/fa_IR: Likewise.
25282 * localedata/locales/ff_SN: Likewise.
25283 * localedata/locales/fi_FI: Likewise.
25284 * localedata/locales/fil_PH: Likewise.
25285 * localedata/locales/fo_FO: Likewise.
25286 * localedata/locales/fr_BE: Likewise.
25287 * localedata/locales/fr_CA: Likewise.
25288 * localedata/locales/fr_CH: Likewise.
25289 * localedata/locales/fr_FR: Likewise.
25290 * localedata/locales/fr_LU: Likewise.
25291 * localedata/locales/fur_IT: Likewise.
25292 * localedata/locales/fy_DE: Likewise.
25293 * localedata/locales/fy_NL: Likewise.
25294 * localedata/locales/ga_IE: Likewise.
25295 * localedata/locales/gd_GB: Likewise.
25296 * localedata/locales/gez_ER: Likewise.
25297 * localedata/locales/gez_ET: Likewise.
25298 * localedata/locales/gl_ES: Likewise.
25299 * localedata/locales/gu_IN: Likewise.
25300 * localedata/locales/gv_GB: Likewise.
25301 * localedata/locales/ha_NG: Likewise.
25302 * localedata/locales/hak_TW: Likewise.
25303 * localedata/locales/he_IL: Likewise.
25304 * localedata/locales/hi_IN: Likewise.
25305 * localedata/locales/hif_FJ: Likewise.
25306 * localedata/locales/hne_IN: Likewise.
25307 * localedata/locales/hr_HR: Likewise.
25308 * localedata/locales/hsb_DE: Likewise.
25309 * localedata/locales/ht_HT: Likewise.
25310 * localedata/locales/hu_HU: Likewise.
25311 * localedata/locales/hy_AM: Likewise.
25312 * localedata/locales/i18n: Likewise.
25313 * localedata/locales/ia_FR: Likewise.
25314 * localedata/locales/id_ID: Likewise.
25315 * localedata/locales/ig_NG: Likewise.
25316 * localedata/locales/ik_CA: Likewise.
25317 * localedata/locales/is_IS: Likewise.
25318 * localedata/locales/it_CH: Likewise.
25319 * localedata/locales/it_IT: Likewise.
25320 * localedata/locales/iu_CA: Likewise.
25321 * localedata/locales/ja_JP: Likewise.
25322 * localedata/locales/ka_GE: Likewise.
25323 * localedata/locales/kk_KZ: Likewise.
25324 * localedata/locales/kl_GL: Likewise.
25325 * localedata/locales/kn_IN: Likewise.
25326 * localedata/locales/ko_KR: Likewise.
25327 * localedata/locales/kok_IN: Likewise.
25328 * localedata/locales/ks_IN: Likewise.
25329 * localedata/locales/ks_IN@devanagari: Likewise.
25330 * localedata/locales/ku_TR: Likewise.
25331 * localedata/locales/kw_GB: Likewise.
25332 * localedata/locales/ky_KG: Likewise.
25333 * localedata/locales/lb_LU: Likewise.
25334 * localedata/locales/lg_UG: Likewise.
25335 * localedata/locales/li_BE: Likewise.
25336 * localedata/locales/li_NL: Likewise.
25337 * localedata/locales/lij_IT: Likewise.
25338 * localedata/locales/ln_CD: Likewise.
25339 * localedata/locales/lo_LA: Likewise.
25340 * localedata/locales/lt_LT: Likewise.
25341 * localedata/locales/lv_LV: Likewise.
25342 * localedata/locales/lzh_TW: Likewise.
25343 * localedata/locales/mag_IN: Likewise.
25344 * localedata/locales/mai_IN: Likewise.
25345 * localedata/locales/mg_MG: Likewise.
25346 * localedata/locales/mhr_RU: Likewise.
25347 * localedata/locales/mi_NZ: Likewise.
25348 * localedata/locales/mk_MK: Likewise.
25349 * localedata/locales/ml_IN: Likewise.
25350 * localedata/locales/mn_MN: Likewise.
25351 * localedata/locales/mni_IN: Likewise.
25352 * localedata/locales/mr_IN: Likewise.
25353 * localedata/locales/ms_MY: Likewise.
25354 * localedata/locales/mt_MT: Likewise.
25355 * localedata/locales/my_MM: Likewise.
25356 * localedata/locales/nan_TW: Likewise.
25357 * localedata/locales/nan_TW@latin: Likewise.
25358 * localedata/locales/nb_NO: Likewise.
25359 * localedata/locales/nds_DE: Likewise.
25360 * localedata/locales/nds_NL: Likewise.
25361 * localedata/locales/ne_NP: Likewise.
25362 * localedata/locales/nhn_MX: Likewise.
25363 * localedata/locales/niu_NU: Likewise.
25364 * localedata/locales/niu_NZ: Likewise.
25365 * localedata/locales/nl_AW: Likewise.
25366 * localedata/locales/nl_BE: Likewise.
25367 * localedata/locales/nl_NL: Likewise.
25368 * localedata/locales/nn_NO: Likewise.
25369 * localedata/locales/nr_ZA: Likewise.
25370 * localedata/locales/nso_ZA: Likewise.
25371 * localedata/locales/oc_FR: Likewise.
25372 * localedata/locales/om_ET: Likewise.
25373 * localedata/locales/om_KE: Likewise.
25374 * localedata/locales/or_IN: Likewise.
25375 * localedata/locales/os_RU: Likewise.
25376 * localedata/locales/pa_IN: Likewise.
25377 * localedata/locales/pa_PK: Likewise.
25378 * localedata/locales/pap_AW: Likewise.
25379 * localedata/locales/pap_CW: Likewise.
25380 * localedata/locales/pl_PL: Likewise.
25381 * localedata/locales/ps_AF: Likewise.
25382 * localedata/locales/pt_BR: Likewise.
25383 * localedata/locales/pt_PT: Likewise.
25384 * localedata/locales/quz_PE: Likewise.
25385 * localedata/locales/raj_IN: Likewise.
25386 * localedata/locales/ro_RO: Likewise.
25387 * localedata/locales/ru_RU: Likewise.
25388 * localedata/locales/ru_UA: Likewise.
25389 * localedata/locales/rw_RW: Likewise.
25390 * localedata/locales/sa_IN: Likewise.
25391 * localedata/locales/sat_IN: Likewise.
25392 * localedata/locales/sc_IT: Likewise.
25393 * localedata/locales/sd_IN: Likewise.
25394 * localedata/locales/sd_IN@devanagari: Likewise.
25395 * localedata/locales/se_NO: Likewise.
25396 * localedata/locales/sgs_LT: Likewise.
25397 * localedata/locales/shs_CA: Likewise.
25398 * localedata/locales/si_LK: Likewise.
25399 * localedata/locales/sid_ET: Likewise.
25400 * localedata/locales/sk_SK: Likewise.
25401 * localedata/locales/sl_SI: Likewise.
25402 * localedata/locales/sm_WS: Likewise.
25403 * localedata/locales/so_DJ: Likewise.
25404 * localedata/locales/so_ET: Likewise.
25405 * localedata/locales/so_KE: Likewise.
25406 * localedata/locales/so_SO: Likewise.
25407 * localedata/locales/sq_AL: Likewise.
25408 * localedata/locales/sq_MK: Likewise.
25409 * localedata/locales/sr_ME: Likewise.
25410 * localedata/locales/sr_RS: Likewise.
25411 * localedata/locales/sr_RS@latin: Likewise.
25412 * localedata/locales/ss_ZA: Likewise.
25413 * localedata/locales/st_ZA: Likewise.
25414 * localedata/locales/sv_FI: Likewise.
25415 * localedata/locales/sv_SE: Likewise.
25416 * localedata/locales/sw_KE: Likewise.
25417 * localedata/locales/sw_TZ: Likewise.
25418 * localedata/locales/szl_PL: Likewise.
25419 * localedata/locales/ta_IN: Likewise.
25420 * localedata/locales/ta_LK: Likewise.
25421 * localedata/locales/tcy_IN: Likewise.
25422 * localedata/locales/te_IN: Likewise.
25423 * localedata/locales/tg_TJ: Likewise.
25424 * localedata/locales/th_TH: Likewise.
25425 * localedata/locales/the_NP: Likewise.
25426 * localedata/locales/ti_ER: Likewise.
25427 * localedata/locales/ti_ET: Likewise.
25428 * localedata/locales/tig_ER: Likewise.
25429 * localedata/locales/tk_TM: Likewise.
25430 * localedata/locales/tl_PH: Likewise.
25431 * localedata/locales/tn_ZA: Likewise.
25432 * localedata/locales/to_TO: Likewise.
25433 * localedata/locales/tpi_PG: Likewise.
25434 * localedata/locales/tr_CY: Likewise.
25435 * localedata/locales/tr_TR: Likewise.
25436 * localedata/locales/ts_ZA: Likewise.
25437 * localedata/locales/tt_RU: Likewise.
25438 * localedata/locales/tt_RU@iqtelif: Likewise.
25439 * localedata/locales/ug_CN: Likewise.
25440 * localedata/locales/uk_UA: Likewise.
25441 * localedata/locales/unm_US: Likewise.
25442 * localedata/locales/ur_IN: Likewise.
25443 * localedata/locales/ur_PK: Likewise.
25444 * localedata/locales/uz_UZ: Likewise.
25445 * localedata/locales/uz_UZ@cyrillic: Likewise.
25446 * localedata/locales/ve_ZA: Likewise.
25447 * localedata/locales/vi_VN: Likewise.
25448 * localedata/locales/wa_BE: Likewise.
25449 * localedata/locales/wae_CH: Likewise.
25450 * localedata/locales/wal_ET: Likewise.
25451 * localedata/locales/wo_SN: Likewise.
25452 * localedata/locales/xh_ZA: Likewise.
25453 * localedata/locales/yi_US: Likewise.
25454 * localedata/locales/yo_NG: Likewise.
25455 * localedata/locales/yue_HK: Likewise.
25456 * localedata/locales/yuw_PG: Likewise.
25457 * localedata/locales/zh_CN: Likewise.
25458 * localedata/locales/zh_HK: Likewise.
25459 * localedata/locales/zh_SG: Likewise.
25460 * localedata/locales/zh_TW: Likewise.
25461 * localedata/locales/zu_ZA: Likewise.
25462
25463 2017-11-13 Florian Weimer <fweimer@redhat.com>
25464
25465 * support/next_to_fault.h, support/next_to_fault.c: New files.
25466 * support/Makefile (libsupport-routines): Add next_to_fault.
25467 * resolv/tst-inet_pton.c (struct next_to_fault)
25468 (next_to_fault_allocate, next_to_fault_free): Remove.
25469 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25470
25471 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25472
25473 * elf/dl-support.c: Include <dl-procruntime.c>.
25474 * include/link.h: Include <link_map.h>.
25475 * sysdeps/generic/dl-procruntime.c: New file.
25476 * sysdeps/generic/link_map.h: Likewise.
25477 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25478 the writable ld.so namespace.
25479
25480 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25481
25482 timezone: pacify GCC -Wstringop-truncation
25483 Problem reported by Martin Sebor in:
25484 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25485 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25486
25487 2017-11-12 Florian Weimer <fweimer@redhat.com>
25488
25489 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25490 tst-xreadlink.
25491 (tests): Add tst-xreadlink.
25492 * support/support.h (xstrndup): Declare.
25493 * support/xunistd.h (xunlink, xreadlink): Declare.
25494 * support/temp_file.h (support_create_temp_directory): Declare.
25495 * support/temp_file.c (support_create_temp_directory): New function.
25496 * support/support_chroot.c (support_chroot_create): Use it.
25497 * support/xreadlink.c: New file.
25498 * support/xstrndup.c: Likewise.
25499 * support/xunlink.c: Likewise.
25500 * support/tst-xreadlink.c: Likewise.
25501
25502 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25503
25504 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25505
25506 2017-11-11 Florian Weimer <fweimer@redhat.com>
25507
25508 [BZ #22409]
25509 [BZ #22412]
25510 * resolv/res_comp.c (printable_string, binary_hnok)
25511 (binary_leading_dash): New functions.
25512 (res_hnok): Reimplement using these functions and ns_name_pton.
25513 (res_ownok): Likewise.
25514 (res_mailok): Reimplement using printable_string, ns_name_pton and
25515 binary_hnok.
25516 (res_dnok): Reimplement using printable_string and ns_name_pton.
25517 * resolv/tst-res_hnok.c (tests): Add additional tests.
25518 (LETTERDIGITS, PRINTABLE): Define.
25519 (do_test): Adjust one_char results.
25520
25521 2017-11-11 Florian Weimer <fweimer@redhat.com>
25522
25523 [BZ #22413]
25524 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25525 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25526
25527 2017-11-11 Florian Weimer <fweimer@redhat.com>
25528
25529 * resolv/tst-ns_name_pton.c: New file.
25530 * resolv/Makefile (tests): Add tst-ns_name_pton.
25531 (tst-ns_name_pton): Link against libresolv.
25532
25533 2017-11-11 Florian Weimer <fweimer@redhat.com>
25534
25535 * resolv/tst-res_hnok.c: New file.
25536 * resolv/Makefile (tests): Add tst-res_hnok.
25537 (tst-res_hnok): Link against libresolv.
25538
25539 2017-11-11 Florian Weimer <fweimer@redhat.com>
25540
25541 * resolv/tst-resolv-network.c: Use test framework instead explicit
25542 main function.
25543
25544 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25545
25546 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25547 <jmp_buf-macros.h>.
25548 [!_ISOMAC] (STR_HELPER): New.
25549 [!_ISOMAC] (STR): Likewise.
25550 [!_ISOMAC] (TEST_SIZE): Likewise.
25551 [!_ISOMAC] (TEST_ALIGN): Likewise.
25552 [!_ISOMAC] (TEST_OFFSET): Likewise.
25553 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25554 field offsets of jmp_buf as well as sigjmp_buf.
25555 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25556 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25557 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25558 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25559 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25560 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25561 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25562 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25563 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25564 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25565 Likewise.
25566 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25567 Likewise.
25568 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25570 Likewise.
25571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25572 Likewise.
25573 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25574 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25575 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25576 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25577 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25578 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25579 Likewise.
25580 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25581 Likewise.
25582 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25583 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25584 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25585
25586 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25587
25588 * include/float.h
25589 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25590 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25591 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25592 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25593 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25594 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25595 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25596 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25597 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25598 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25599 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25600 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25601 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25602 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25603 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25604 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25605 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25606 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25607 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25608 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25609 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25610 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25611 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25612 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25613 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25614 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25615 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25616 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25617 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25618 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25619 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25620 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25621 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25622 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25623 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25624 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25625 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25626 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25627 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25628 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25629 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25630 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25631 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25632 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25633 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25634 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25635 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25636 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25637 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25638 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25639 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25640 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25641 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25642 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25643 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25644 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25645 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25646 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25647 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25648 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25649 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25650 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25651 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25652 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25653 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25654 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25655 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25656 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25657 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25658 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25659 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25660 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25661 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25662 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25663 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25664 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25665 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25666 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25667 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25668 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25669 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25670 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25671 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25672 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25673 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25674 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25675 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25676 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25677
25678 * stdlib/tst-strtod.h (F16): New macro.
25679 (F32): Likewise.
25680 (F64): Likewise.
25681 (F32X): Likewise.
25682 (F64X): Likewise.
25683 (F128X): Likewise.
25684 (IF_FLOAT16): Likewise.
25685 (IF_FLOAT32): Likewise.
25686 (IF_FLOAT64): Likewise.
25687 (IF_FLOAT32X): Likewise.
25688 (IF_FLOAT64X): Likewise.
25689 (IF_FLOAT128X): Likewise.
25690 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25691 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25692 (STRTOD_TEST_FOREACH): Likewise.
25693 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25694 (CHOOSE_f64): Likewise.
25695 (CHOOSE_f32x): Likewise.
25696 (CHOOSE_f64x): Likewise.
25697
25698 2017-11-07 Andreas Schwab <schwab@suse.de>
25699
25700 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25701
25702 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25703
25704 [BZ #22403]
25705 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25706 to be escaped.
25707 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25708 to be escaped.
25709
25710 2017-11-07 Claude Paroz <claude@2xlibre.net>
25711
25712 [BZ #22403]
25713 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25714 to be escaped.
25715 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25716 to be escaped.
25717 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25718 to be escaped.
25719
25720 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25721
25722 [BZ #22298]
25723 * nptl/allocatestack.c (allocate_stack): Check if
25724 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25725 __PTHREAD_MUTEX_HAVE_PREV is defined.
25726 * nptl/descr.h (pthread): Likewise.
25727 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25728 Likewise.
25729 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25730 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25731 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25732 * sysdeps/nptl/bits/thread-shared-types.h
25733 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25734 defines.
25735 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25736 of __WORDSIZE for internal layout.
25737 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25738 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25739 instead of __WORDSIZE whether to use an union for __spins and __list
25740 fields.
25741 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25742 case.
25743 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25744 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25745 defines.
25746 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25747 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25748 Likewise.
25749 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25750 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25751 Likewise.
25752 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25753 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25754 Likewise.
25755 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25756 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25757 Likewise.
25758 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25759 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25760 Likewise.
25761 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25762 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25763 Likewise.
25764 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25765 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25766 Likewise.
25767 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25768 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25769 Likewise.
25770 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25771 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25772 Likewise.
25773 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25774 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25775 Likewise.
25776 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25777 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25778 Likewise.
25779 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25780 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25781 Likewise.
25782 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25783 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25784 Likewise.
25785 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25786 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25787 Likewise.
25788
25789 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25790 New macros.
25791 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25792 checks for expected input type size.
25793 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25794 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25795 Likewise.
25796 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25797 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25798 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25799 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25800 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25801 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25802 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25803 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25804 superflous runtime assert check.
25805 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25806 Likewise.
25807 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25808 Likewise.
25809 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25810 Likewise.
25811 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25812 Likewise.
25813 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25814 Likewise.
25815 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25816 Likewise.
25817 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25818 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25819 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25820 Likewise.
25821 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25822 Likewise.
25823 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25824 Likewise.
25825 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25826 Likewise.
25827 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25828 Likewise.
25829 * nptl/pthread_attr_setinheritsched.c
25830 (__pthread_attr_setinheritsched): Likewise.
25831 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25832 Likewise.
25833 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25834 Likewise.
25835 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25836 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25837 __old_pthread_attr_setstack): Likewise.
25838 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25839 Likewise.
25840 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25841 Likewise.
25842 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25843 Likewise.
25844 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25845 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25846 Likewise.
25847 * nptl/tst-typesizes.c: Remove file.
25848
25849 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25850 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25851 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25852 checks for internal pthread_mutex_t offsets.
25853 * sysdeps/aarch64/nptl/pthread-offsets.h
25854 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25855 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25856 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25857 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25858 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25859 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25860 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25861 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25862 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25863 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25864 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25865 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25866 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25867 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25868 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25869 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25870 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25871 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25872
25873 2017-11-07 Florian Weimer <fweimer@redhat.com>
25874
25875 * bits/mman-linux.h: Move ...
25876 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25877 comment.
25878 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25879 outdated comment.
25880
25881 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25882
25883 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25884 Redefine STRNLEN as __strnlen_power8.
25885
25886 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25887
25888 * signal/sighold.c (sighold): Optimize implementation.
25889
25890 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25891 __NR_rt_sigqueueinfo.
25892
25893 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25894 __sigtimedwait.
25895 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25896 assume __NR_rt_sigtimedwait.
25897 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25898 and add LIBC_CANCEL_HANDLED for cancellation marking.
25899 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25900
25901 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25902 (sysdeps_routines): Add memchr_noneon.
25903 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25904 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25905 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25906 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25907 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25908 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25909 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25910
25911 * sysdeps/arm/arm-ifunc.h: New file.
25912 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25913 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25914 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25915 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25916 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25917 (__memcpy_neon): Avoid create hidden alias.
25918 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25919 (__memcpy_vfp): Likewise.
25920 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25921 (sysdep_routines): Add memcpy_arm.
25922 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25923
25924 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 [BZ #22362]
25927 * Makerules (make-link-multidir): New.
25928 * config.make.in (multidir): New.
25929 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25930 * configure: Regenerated.
25931 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25932 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25933 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25934 New target.
25935
25936 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25937
25938 [BZ #22402]
25939 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25940 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25941
25942 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25943
25944 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25945 to be escaped.
25946
25947 2017-11-04 Florian Weimer <fweimer@redhat.com>
25948
25949 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25950
25951 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25952
25953 * math/math.h [__HAVE_DISTINCT_FLOAT16
25954 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25955 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25956 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25957 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25958 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25959 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25960 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25961 (__MATH_TG_F32): New macro.
25962 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25963 (__MATH_TG_F64X): Likewise.
25964 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25965 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25966
25967 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25968
25969 * po/de.po: Update translations.
25970 * po/ru.po: Likewise.
25971
25972 2017-11-03 Florian Weimer <fweimer@redhat.com>
25973
25974 * manual/filesys.texi (Hard Links): Document linkat.
25975
25976 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25977
25978 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25979 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25980 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25981 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25982 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25983 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25984 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25985 the same as _Float128.
25986 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25987 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25988 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25989
25990 * stdlib/stdlib.h
25991 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25992 Declare.
25993 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25994 Likewise.
25995 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25996 Likewise.
25997 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25998 (strtof32x): Likewise.
25999 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26000 (strtof64x): Likewise.
26001 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26002 (strtof128x): Likewise.
26003 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26004 (strfromf16): Likewise.
26005 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26006 (strfromf32): Likewise.
26007 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26008 (strfromf64): Likewise.
26009 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26010 (strfromf32x): Likewise.
26011 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26012 (strfromf64x): Likewise.
26013 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26014 (strfromf128x): Likewise.
26015 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
26016 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
26017 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
26018 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
26019 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
26020 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
26021
26022 2017-11-03 Richard Henderson <rth@twiddle.net>
26023
26024 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
26025
26026 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26027
26028 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
26029
26030 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26031
26032 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
26033 DT_TLSDESC_GOT initialization.
26034 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
26035 (_dl_tlsdesc_resolve_hold): Likewise.
26036 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
26037 (_dl_tlsdesc_resolve_hold): Likewise.
26038 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
26039 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26040
26041 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26042
26043 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
26044
26045 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26046
26047 [BZ #18572]
26048 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
26049 non-lazily for R_ARM_TLS_DESC.
26050
26051 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26052
26053 [BZ #17078]
26054 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
26055 R_ARM_TLS_DESC case.
26056 (elf_machine_lazy_rel): Remove the prelink check.
26057
26058 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26059
26060 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
26061 DT_TLSDESC_GOT initialization.
26062 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
26063 (_dl_tlsdesc_resolve_rela): Likewise.
26064 (_dl_tlsdesc_resolve_hold): Likewise.
26065 (_dl_tlsdesc_undefweak): Remove ldar.
26066 (_dl_tlsdesc_dynamic): Likewise.
26067 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
26068 (_dl_tlsdesc_resolve_rela): Likewise.
26069 (_dl_tlsdesc_resolve_hold): Likewise.
26070 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
26071 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
26072 (_dl_tlsdesc_resolve_rela): Likewise.
26073 (_dl_tlsdesc_resolve_hold): Likewise.
26074
26075 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26076
26077 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
26078 binding and initialization non-lazily for R_AARCH64_TLSDESC.
26079
26080 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26081
26082 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
26083 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
26084
26085 2017-11-02 Joseph Myers <joseph@codesourcery.com>
26086
26087 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
26088 Declare.
26089 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
26090 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
26091 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
26092 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
26093 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
26094 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
26095 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
26096 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
26097 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
26098 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
26099 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
26100
26101 2017-11-02 Mike FABIAN <mfabian@redhat.com>
26102
26103 [BZ #22382]
26104 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26105 * localedata/locales/tpi_PG: Add standard header.
26106
26107 2017-11-02 Florian Weimer <fweimer@redhat.com>
26108
26109 test-errno-linux: quotactl can fail with EPERM in containers.
26110 * sysdeps/unix/sysv/linux/test-errno-linux.c
26111 (LIST, LIST_FORWARD): New macros.
26112 (check_error_in_list): New function.
26113 (test_wrp_rv): Accept list of permitted error codes.
26114 (test_wrp_rv2): Remove.
26115 (test_wrp): Call test_wrp_rv with list of error codes.
26116 (test_wrp2): Accept list of error codes.
26117 (do_test): Adjust. Allow EPERM for quotactl.
26118
26119 2017-11-02 Florian Weimer <fweimer@redhat.com>
26120
26121 * stdio-common/bug16.c (do_test): Use array_length.
26122 * stdio-common/errlist.c (_sys_nerr): Likewise.
26123 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
26124 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
26125 * stdio-common/psiginfo.c (psiginfo): Use array_length.
26126 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
26127 (do_test): Use array_length.
26128 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
26129 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
26130 * stdio-common/tst-printf-round.c (do_test): Likewise.
26131 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
26132 (CHECK): Use array_length.
26133 * stdio-common/tstdiomisc.c (t3, F): Likewise.
26134 * stdio-common/tstscanf.c (main): Likewise.
26135 * stdio-common/vfprintf.c (process_string_arg): Likewise.
26136
26137 2017-11-02 Florian Weimer <fweimer@redhat.com>
26138
26139 Add array_length and array_end macros.
26140 * include/array_length.h: New file.
26141
26142 2017-11-02 Florian Weimer <fweimer@redhat.com>
26143
26144 [BZ #22332]
26145 * posix/tst-glob-tilde.c (do_noescape): New variable.
26146 (one_test): Process it.
26147 (do_test): Set do_noescape. Add unescaping test case.
26148
26149 2017-11-01 Joseph Myers <joseph@codesourcery.com>
26150
26151 * math/complex.h
26152 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26153 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26154 with appropriate macros defined and undefined.
26155 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26156 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26157 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26158 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26159 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26160 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26161 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26162 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26163 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26164 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26165
26166 * math/complex.h
26167 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26168 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26169 that for long double. Do not condition define and undefine of
26170 _Mdouble_complex_ on [__CFLOAT128].
26171
26172 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
26173
26174 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26175 of <sysdeps/generic/sysdep.h>.
26176 (ALIGNARG): Removed.
26177 (ASM_SIZE_DIRECTIVE): Likewise.
26178 (ENTRY): Likewise.
26179 (END): Likewise.
26180 (ENTRY_CHK): Likewise.
26181 (END_CHK): Likewise.
26182 (syscall_error): Likewise.
26183 (mcount): Likewise.
26184 (PSEUDO_END): Likewise.
26185 (L): Likewise.
26186 (atom_text_section): Likewise.
26187 * sysdeps/x86/sysdep.h: New file.
26188 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26189 of <sysdeps/generic/sysdep.h>.
26190 (ALIGNARG): Removed.
26191 (ASM_SIZE_DIRECTIVE): Likewise.
26192 (ENTRY): Likewise.
26193 (END): Likewise.
26194 (ENTRY_CHK): Likewise.
26195 (END_CHK): Likewise.
26196 (syscall_error): Likewise.
26197 (mcount): Likewise.
26198 (PSEUDO_END): Likewise.
26199 (L): Likewise.
26200 (atom_text_section): Likewise.
26201
26202 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
26203
26204 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26205 category of LC_CTYPE set to "i18n:2012".
26206 * localedata/locales/i18n_ctype: Regenerate.
26207
26208 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
26209
26210 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26211 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26212 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26213 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26214
26215 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26216 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26217 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26218 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26219
26220 2017-10-31 Joseph Myers <joseph@codesourcery.com>
26221
26222 * math/complex.h
26223 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26224 New macro.
26225 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26226 Likewise.
26227 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26228 Likewise.
26229 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26230 (CMPLXF32X): Likewise.
26231 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26232 (CMPLXF64X): Likewise.
26233 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26234 (CMPLXF128X): Likewise.
26235
26236 * math/math.h
26237 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26238 (__MATH_EVAL_FMT2): Define to add 0.0f.
26239
26240 2017-10-31 Alan Modra <amodra@gmail.com>
26241
26242 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26243 include sysdep.h.
26244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26258 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26259 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26260 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26261 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26262 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26263 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26264 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26265 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26266 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26267 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26268 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26269 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26270 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26271 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26272 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26273 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26274 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26275 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26276 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26277 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26278 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26279 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26280 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26281 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26282 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26283 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26284 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26285 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26286 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26287 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26288 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26289 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26290 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26291 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26292 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26293 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26294 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26295 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26296 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26297 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26298 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26299 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26300 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26301 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26302 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26303 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26304 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26305 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26306 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26307 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26308 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26309 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26310 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26311 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26312 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26313
26314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26315 include sysdep.h and math_ldbl_opt.h.
26316
26317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26318 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
26319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26327 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26343
26344 2017-10-31 Alan Modra <amodra@gmail.com>
26345
26346 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26347 string/strncase_l.c, not string/strncase.c.
26348 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26349 (libc_hidden_def): Redefine.
26350
26351 2017-10-31 Alan Modra <amodra@gmail.com>
26352
26353 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26354 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26355 (__strcasecmp): Don't define.
26356
26357 2017-10-31 Alan Modra <amodra@gmail.com>
26358
26359 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26360 IS_IN (libc).
26361 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26362 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26363 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26364
26365 2017-10-31 Alan Modra <amodra@gmail.com>
26366
26367 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26368 USE_AS_STPNCPY.
26369
26370 2017-10-31 Alan Modra <amodra@gmail.com>
26371
26372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26373 Redefine only when SHARED.
26374
26375 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26376
26377 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26378 Include <bits/math-finite.h> with appropriate macros defined and
26379 undefined.
26380 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26381 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26382 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26383 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26384 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26385
26386 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26387 [!_Mlong_double_] (_Mlong_double_): Likewise.
26388 [!_Mfloat16_] (_Mfloat16_): Likewise.
26389 [!_Mfloat32_] (_Mfloat32_): Likewise.
26390 [!_Mfloat64_] (_Mfloat64_): Likewise.
26391 [!_Mfloat128_] (_Mfloat128_): Likewise.
26392 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26393 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26394 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26395 (_Mdouble_): Define without indirection through those macros.
26396 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26397 [!_Mfloat128_] (_Mfloat128_): Likewise.
26398 [_Mlong_double_] (_Mlong_double_): Likewise.
26399 (_Mdouble_): Define without indirection through those macros.
26400 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26401 not add -D_Mlong_double_=double.
26402 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26403 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26404
26405 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26406
26407 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26408
26409 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26410
26411 * sysdeps/x86/libc-start.c: Reformat.
26412
26413 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26414
26415 [BZ #22353]
26416 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26417 (1): Renamed to ...
26418 (L(Src0)): This.
26419 (L(Src1)): New.
26420 (L(Src2)): Likewise.
26421 (L(1)): Renamed to ...
26422 (L(Src3)): This.
26423
26424 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26425
26426 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26427 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26428 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26429 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26430 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26431 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26432 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26433 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26434 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26435 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26436 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26437 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26438 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26439 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26440 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26441 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26442 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26443 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26444 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26445 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26446 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26447 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26448 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26449 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26450 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26451 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26452 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26453 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26454 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26455 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26456 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26457 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26458 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26459 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26460 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26461 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26462 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26463 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26464 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26465 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26466 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26467 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26468 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26469 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26470 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26471 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26472 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26473 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26474 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26475 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26476 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26477 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26478 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26479 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26480 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26481 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26482 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26483 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26484 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26485 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26486 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26487 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26488 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26489 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26490 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26491 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26492
26493 2017-10-30 Florian Weimer <fweimer@redhat.com>
26494
26495 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26496 always defined.
26497 * io/tst-mkdirat.c (do_test): Likewise.
26498 * io/tst-mkfifoat.c (do_test): Likewise.
26499 * io/tst-mknodat.c (do_test): Likewise.
26500 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26501 * locale/programs/locale.c (select_dirs): Likewise.
26502 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26503 * posix/bug-glob2.c (my_readdir): Likewise.
26504 * posix/tst-dir.c (main): Likewise.
26505 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26506 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26507
26508 2017-10-30 Florian Weimer <fweimer@redhat.com>
26509
26510 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26511 just __USE_GNU.
26512
26513 2017-10-30 Florian Weimer <fweimer@redhat.com>
26514
26515 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26516 Convert to support/test-driver.c.
26517 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26518 New macro parameters.
26519 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26520 * posix/tst-gnuglob.c: New file.
26521 * posix/tst-gnuglob64.c: Likewise.
26522 * posix/Makefile (tests): Add tst-gnuglob64.
26523
26524 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26525
26526 [BZ #19485]
26527 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26528 and use a better translation for March in “mon”.
26529 * localedata/locales/csb_PL: Use more ASCII to improve the
26530 readability of the source.
26531
26532 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26533
26534 [BZ #13953]
26535 * localedata/locales/km_KH: Use ASCII as much
26536 as possible for better readability of the source and
26537 remove useless comments.
26538 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26539 was commented out and apparently wrong anyway because it was
26540 using Lao characters. If Buddhist era should be used
26541 for km_KH, a native speaker should write the correct formaat
26542 for Khmer.
26543 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26544 (According to CLDR, the first weekday for Cambodia is Sunday).
26545 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26546 (These were using Lao characters which must be wrong. If we get
26547 the correct data from a native speaker, we could add it back, until
26548 then it is better not to have name_mr and name_mrs at all than
26549 having it wrong).
26550
26551 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26552
26553 * locale/loadlocale.c: Correct size of
26554 _nl_value_type_LC_<category> arrays.
26555
26556 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26557
26558 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26559 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26560 with appropriate macros defined and undefined.
26561 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26562 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26563 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26564 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26565 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26566
26567 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26568
26569 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26570 "-O2 -march=i586".
26571
26572 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26573
26574 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26575 with lowercase letters to make it agree with CLDR.
26576
26577 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26578
26579 [BZ #15260]
26580 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26581 first letters of yesstr and nostr in yesexpr and noexpr,
26582 not for the full words.
26583 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26584 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26585 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26586 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26587 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26588 first letters of yesstr and nostr in yesexpr and noexpr,
26589 until now only English was matched in yesexpr and noexpr.
26590 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26591 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26592 fil but not for tl. As tl and fil are very similar, using fil
26593 is probably better than using English.
26594
26595 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26596
26597 [BZ #21706]
26598 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26599 in yesstr and nostr.
26600
26601 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26602
26603 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26604 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26605 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26606 Likewise.
26607 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26608 Likewise.
26609 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26610 Likewise.
26611 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26612 Likewise.
26613 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26614 (SNANF128X): Likewise.
26615
26616 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26617 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26618 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26619 (HUGE_VAL_F32): Likewise.
26620 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26621 (HUGE_VAL_F64): Likewise.
26622 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26623 (HUGE_VAL_F32X): Likewise.
26624 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26625 (HUGE_VAL_F64X): Likewise.
26626 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26627 (HUGE_VAL_F128X): Likewise.
26628
26629 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26630
26631 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26632 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26633 for the br_FR locale.
26634
26635 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26636
26637 [BZ #21706]
26638 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26639
26640 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26641
26642 * locale/programs/record-status.h: Define globals, and function
26643 prototypes. Move function bodies...
26644 * locale/programs/record-status.c: ... to here. New file.
26645 * iconv/Makefile (iconv_prog-modules): Add record-status.
26646 * locale/Makefile (lib-modules): Likewise.
26647 * iconv/iconv_prog.c: Remove verbose.
26648 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26649 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26650 record a warning about ASCII compatibility.
26651 * locale/programs/ld-monetary.c (monetary_finish): If
26652 warn_int_curr_symbol is true then record a warning about the symbol
26653 not being in our ISO 4217 list.
26654 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26655 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26656 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26657 (OPT_NO_WARN): Define.
26658 (OPT_WARN): Define.
26659 (options): Add entry for --no-warnings, and --warnings.
26660 (set_warnings): New function to enable/disable warnings.
26661 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26662 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26663 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26664 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26665 Pass flags to generate_locale.
26666 (generate_locale): Accept new flag argument and pass it to localedef
26667 invocation.
26668 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26669 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26670
26671 * localedata/Makefile (test-input-data): Use full file name.
26672 * localedata/da_DK.in: Rename to...
26673 * localedata/da_DK.ISO-8859-1.in: ...this.
26674 * localedata/de_DE.in: Rename to...
26675 * localedata/de_DE.ISO-8859-1.in: ...this.
26676 * localedata/en_US.in: Rename to...
26677 * localedata/en_US.ISO-8859-1.in: ...this.
26678 * localedata/fr_FR.in: Rename to...
26679 * localedata/fr_FR.UTF-8.in: ... this.
26680 * localedata/hr_HR.in: Rename to...
26681 * localedata/hr_HR.ISO-8859-2.in: ...this.
26682 * localedata/hu_HU.in: Rename to...
26683 * localedata/hu_HU.UTF-8.in: ...this.
26684 * localedata/si_LK.in: Rename to...
26685 * localedata/si_LK.UTF-8.in: ...this.
26686 * localedata/sv_SE.in: Rename to...
26687 * localedata/sv_SE.ISO-8859-1.in: ...this.
26688 * localedata/tr_TR.in: Rename to...
26689 * localedata/tr_TR.UTF-8.in: ...this.
26690 * localedata/uk_UA.in: Rename to...
26691 * localedata/uk_UA.UTF-8.in: ...this.
26692 * localedata/sort-test.sh: Test file is locale name with the
26693 suffix.
26694
26695 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26696 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26697 file.
26698 * localedata/locales/i18n_ctype: Regenerate.
26699 * localedata/locales/tr_TR: Likewise.
26700 * localedata/locales/translit_circle: Likewise.
26701 * localedata/locales/translit_cjk_compat: Likewise.
26702 * localedata/locales/translit_combining: Likewise.
26703 * localedata/locales/translit_compat: Likewise.
26704 * localedata/locales/translit_font: Likewise.
26705 * localedata/locales/translit_fraction: Likewise.
26706
26707 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26708
26709 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26710 lxvd2x/stxvd2x with lvx/stvx.
26711 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26712
26713 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26714
26715 * include/alloc_buffer.h: Replace "if if " with "if " in
26716 comments.
26717 * sysdeps/mips/memcpy.S: Likkewise.
26718 * sysdeps/mips/memset.S: Likewise.
26719 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26720 Likewise.
26721 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26722 Likewise.
26723 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26724 Likewise.
26725
26726 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26727
26728 [BZ #15261]
26729 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26730 yesexpr and noexpr.
26731 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26732 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26733 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26734 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26735 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26736 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26737 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26738
26739 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26740
26741 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26742 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26743 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26744 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26745 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26746 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26747 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26748 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26749 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26750 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26751 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26752 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26753
26754 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26755
26756 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26757 as possible for better readability of the source.
26758 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26759 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26760 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26761 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26762 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26763 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26764 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26765 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26766 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26767 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26768 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26769 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26770 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26771 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26772 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26773 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26774 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26775 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26776 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26777 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26778 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26779 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26780 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26781 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26782 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26783 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26784 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26785 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26786 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26787 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26788 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26789 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26790 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26791 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26792 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26793 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26794 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26795 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26796 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26797 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26798 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26799 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26800 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26801 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26802 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26803 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26804 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26805 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26806 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26807 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26808 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26809 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26810 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26811 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26812 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26813 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26814 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26815 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26816 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26817 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26818 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26819 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26820 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26821 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26822 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26823 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26824 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26825 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26826 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26827 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26828 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26829 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26830 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26831 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26832 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26833 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26834 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26835 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26836 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26837 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26838 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26839 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26840 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26841 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26842 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26843 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26844 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26845 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26846 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26847 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26848 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26849 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26850 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26851 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26852 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26853 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26854 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26855 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26856 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26857 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26858 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26859 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26860 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26861 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26862 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26863 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26864 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26865 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26866 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26867 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26868 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26869 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26870 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26871 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26872 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26873 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26874 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26875 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26876 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26877 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26878 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26879 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26880 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26881 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26882 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26883 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26884 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26885 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26886 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26887 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26888 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26889 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26890 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26891 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26892 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26893 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26894 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26895 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26896 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26897 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26898 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26899 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26900 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26901 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26902 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26903 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26904 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26905 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26906 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26907 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26908 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26909 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26910 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26911 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26912 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26913 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26914 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26915 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26916 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26917 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26918 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26919 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26920 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26921 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26922 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26923 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26924 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26925 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26926 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26927 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26928 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26929 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26930 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26931 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26932
26933 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26934
26935 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26936 (Use first letters of yesstr and nostr correctly instead of using
26937 full words).
26938
26939 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26940
26941 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26942 (Use first letters of yesstr and nostr correctly).
26943
26944 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26945
26946 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26947 also check for the first characters of yesstr and nostr.
26948 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26949 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26950
26951 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26952
26953 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26954 also check for Chinese characters.
26955
26956 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26957
26958 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26959 match also for the contents of yesstr and nostr. As the first letter
26960 of yesstr and nostr is equal, checking only for the first letter
26961 is not enough.
26962
26963 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26964
26965 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26966 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26967
26968 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26969
26970 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26971 of main contributor.
26972
26973 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26974
26975 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26976 instead of using English.
26977
26978 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26979
26980 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26981 by including the first letters of nostr and yesexpr in the regexp.
26982 Also make it more readable by using ASCII where possible.
26983
26984 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26985
26986 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26987 the first letter of nostr in the regexp. It agrees with CLDR now.
26988 Also make it more readable by using ASCII where possible.
26989
26990 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26991
26992 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26993 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26994 these strings contain a U+17D6 (which somewhat looks like a colon)
26995 instead of a real colon to separate the full words for “yes”
26996 and “no” from the single letter responses.
26997
26998 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26999
27000 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
27001 it agree with CLDR (include the first letter of yesstr).
27002 Also make it more readable by using ASCII where possible.
27003
27004 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27005
27006 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
27007 and improve yesexpr and noexpr. The yesstr and nostr apparently
27008 came from CLDR. And CLDR has a bug there: these strings contain
27009 a U+0903 (which looks like a colon) instead of a real colon
27010 to separate the full words for “yes” and “no” from the single
27011 letter responses.
27012
27013 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27014
27015 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
27016 letters of the full yesstr and nostr in yesexpr and noexpr.
27017
27018 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27019
27020 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
27021 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
27022 * localedata/locales/an_ES: Make source more readable by using ASCII
27023 where possible.
27024
27025 2017-10-24 Mike FABIAN <mfabian@redhat.com>
27026
27027 [BZ #20952]
27028 * localedata/locales/yuw_PG: New file.
27029 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
27030 * locale/iso-639.def: Add Yau (Uruwa).
27031
27032 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
27033
27034 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
27035
27036 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
27037
27038 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
27039 (__libc_realloc): Likewise.
27040 (_mid_memalign): Likewise.
27041 (__libc_calloc): Likewise.
27042
27043 2017-10-23 Mike FABIAN <mfabian@redhat.com>
27044
27045 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
27046 by adding the generic +1 and -0 as in all other locales.
27047 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
27048 day names and make it more readable by using ASCII where possible.
27049
27050 2017-10-24 Joseph Myers <joseph@codesourcery.com>
27051
27052 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
27053 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
27054
27055 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27056
27057 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
27058 WNOHANG in waitpid call.
27059
27060 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
27061
27062 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
27063 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
27064
27065 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
27066 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
27067 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
27068 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
27069 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
27070 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
27071 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
27072 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
27073 variables.
27074
27075 2017-10-23 Michael Collison <michael.collison@arm.com>
27076
27077 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
27078 with __builtin_sqrt.
27079 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
27080 with __builtin_sqrtf.
27081 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
27082 with __builtin_ceil.
27083 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
27084 with __builtin_ceilf.
27085 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
27086 with __builtin_floor.
27087 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
27088 with __builtin_floorf.
27089 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
27090 with __builtin_fma.
27091 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
27092 with __builtin_fmaf.
27093 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
27094 with __builtin_fmax.
27095 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
27096 with __builtin_fmaxf.
27097 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
27098 with __builtin_fmin.
27099 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
27100 with __builtin_fminf.
27101 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
27102 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
27103 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
27104 with builtin_rint and conversion to int.
27105 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
27106 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
27107 with builtin_llround.
27108 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
27109 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
27110 with builtin_rint and conversion to long int.
27111 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
27112 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
27113 with builtin_lround.
27114 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
27115 with builtin_lroundf.
27116 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
27117 statements with __builtin_nearbyint.
27118 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
27119 statements with __builtin_nearbyintf.
27120 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
27121 with __builtin_rint.
27122 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
27123 with __builtin_rintf.
27124 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
27125 with __builtin_round.
27126 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
27127 with __builtin_roundf.
27128 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
27129 with __builtin_trunc.
27130 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
27131 with __builtin_truncf.
27132 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
27133 and s_l[l]round[f].c too.
27134
27135 2017-10-23 Alan Modra <amodra@gmail.com>
27136
27137 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
27138 Adjust stack after restoring regs. Add missing LR cfi_restore.
27139
27140 2017-10-23 Alan Modra <amodra@gmail.com>
27141
27142 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
27143 Move LR save and frame setup/teardown and LR restore to
27144 immediately around memset call. Provide cfi.
27145
27146 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27147
27148 * sysdeps/i386/fpu/e_powf.S: Removed.
27149 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27150 * sysdeps/i386/fpu/w_powf.c: Likewise.
27151 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27152 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27153 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27154 Add e_powf-sse2.
27155 (CFLAGS-e_powf-sse2.c): New.
27156 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27157 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27158
27159 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27160
27161 * sysdeps/i386/fpu/e_log2f.S: Removed.
27162 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27163 * sysdeps/i386/fpu/w_log2f.c: Likewise.
27164 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27165 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27166 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27167 Add e_log2f-sse2.
27168 (CFLAGS-e_log2f-sse2.c): New.
27169 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27170 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27171
27172 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27173
27174 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27175 Add e_powf-fma.
27176 (CFLAGS-e_powf-fma.c): New.
27177 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27178 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27179
27180 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27181
27182 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27183 Add e_log2f-fma.
27184 (CFLAGS-e_log2f-fma.c): New.
27185 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27186 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27187
27188 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27191 Add e_logf-fma.
27192 (CFLAGS-e_logf-fma.c): New.
27193 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27194 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27195
27196 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27197
27198 * sysdeps/i386/fpu/e_logf.S: Removed.
27199 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27200 * sysdeps/i386/fpu/w_logf.c: Likewise.
27201 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27202 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27203 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27204 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27205 Add e_logf-sse2.
27206 (CFLAGS-e_logf-sse2.c): New.
27207 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27208 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27209
27210 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27211
27212 * sysdeps/i386/fpu/e_exp2f.S: Removed.
27213 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27214 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27215 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27216 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27217 Add e_exp2f-sse2.
27218 (CFLAGS-e_exp2f-sse2.c): New.
27219 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27220 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27221
27222 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27223
27224 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27225 Add e_exp2f-fma.
27226 (CFLAGS-e_exp2f-fma.c): New.
27227 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27228 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27229
27230 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27231
27232 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27233 * sysdeps/i386/fpu/e_expf.S: Likewise.
27234 * sysdeps/i386/fpu/math_errf.c: Likewise.
27235 * sysdeps/i386/fpu/w_expf.c: Likewise.
27236 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27237 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27238 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27239 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27241 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27242 Remove e_expf-ia32.
27243 (CFLAGS-e_expf-sse2.c): New.
27244 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27245 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27246
27247 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27248
27249 * sysdeps/x86_64/fpu/e_expf.S: Removed.
27250 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27251 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27252 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27253 e_expf.c.
27254 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27255 New.
27256 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27257 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27258 Renamed to ...
27259 (__redirect_expf): This.
27260 (SYMBOL_NAME): Changed to expf.
27261 (__ieee754_expf): Renamed to ...
27262 (__expf): This.
27263 (__GI___expf): This.
27264 (__ieee754_expf): Add strong_alias.
27265 (__expf_finite): Likewise.
27266 (__expf): New.
27267 Include <sysdeps/ieee754/flt-32/e_expf.c>.
27268
27269 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
27270
27271 [BZ #22332]
27272 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27273 unescaping.
27274
27275 2017-10-21 Florian Weimer <fweimer@redhat.com>
27276
27277 * posix/Makefile (tests): Add tst-glob-tilde.
27278 (tests-special): Add tst-glob-tilde-mem.out
27279 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27280 (tst-glob-tilde-mem.out): Add mtrace check.
27281 * posix/tst-glob-tilde.c: New file.
27282
27283 2017-10-20 Joseph Myers <joseph@codesourcery.com>
27284
27285 * bits/floatn-common.h: New file.
27286 * math/Makefile (headers): Add bits/floatn-common.h.
27287 * bits/floatn.h: Include <bits/floatn-common.h>.
27288 * sysdeps/ia64/bits/floatn.h: Likewise.
27289 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27290 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27291 * sysdeps/powerpc/bits/floatn.h: Likewise.
27292 * sysdeps/x86/bits/floatn.h: Likewise.
27293
27294 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27295
27296 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27297 indicates whether compiler emits an warning for alias for
27298 functions with incompatible types.
27299
27300 [BZ #22273]
27301 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27302 the auxiliary process is terminated by a signal before calling _exit
27303 or execve.
27304
27305 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27306
27307 [BZ #21265]
27308 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27309 New.
27310 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27311 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27312 and bit_arch_XSAVEC_Usable if needed.
27313 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27314 and bit_arch_Use_dl_runtime_resolve_opt.
27315 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27316 Removed.
27317 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27318 (bit_arch_Prefer_No_AVX512): Updated.
27319 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27320 (bit_arch_XSAVEC_Usable): New.
27321 (STATE_SAVE_OFFSET): Likewise.
27322 (STATE_SAVE_MASK): Likewise.
27323 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27324 (cpu_features): Add xsave_state_size and xsave_state_full_size.
27325 (index_arch_Use_dl_runtime_resolve_opt): Removed.
27326 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27327 (index_arch_XSAVEC_Usable): New.
27328 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27329 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
27330 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27331 is enabled.
27332 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27333 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27334 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27335 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27336 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27337 _dl_runtime_resolve_xsavec.
27338 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27339 Removed.
27340 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27341 instead of VEC_SIZE.
27342 (REGISTER_SAVE_BND0): Removed.
27343 (REGISTER_SAVE_BND1): Likewise.
27344 (REGISTER_SAVE_BND3): Likewise.
27345 (REGISTER_SAVE_RAX): Always defined to 0.
27346 (VMOV): Removed.
27347 (_dl_runtime_resolve_avx): Likewise.
27348 (_dl_runtime_resolve_avx_slow): Likewise.
27349 (_dl_runtime_resolve_avx_opt): Likewise.
27350 (_dl_runtime_resolve_avx512): Likewise.
27351 (_dl_runtime_resolve_avx512_opt): Likewise.
27352 (_dl_runtime_resolve_sse): Likewise.
27353 (_dl_runtime_resolve_sse_vex): Likewise.
27354 (USE_FXSAVE): New.
27355 (_dl_runtime_resolve_fxsave): Likewise.
27356 (USE_XSAVE): Likewise.
27357 (_dl_runtime_resolve_xsave): Likewise.
27358 (USE_XSAVEC): Likewise.
27359 (_dl_runtime_resolve_xsavec): Likewise.
27360 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27361 Removed.
27362 (_dl_runtime_resolve_avx512_opt): Likewise.
27363 (_dl_runtime_resolve_avx): Likewise.
27364 (_dl_runtime_resolve_avx_opt): Likewise.
27365 (_dl_runtime_resolve_sse): Likewise.
27366 (_dl_runtime_resolve_sse_vex): Likewise.
27367 (_dl_runtime_resolve_fxsave): New.
27368 (_dl_runtime_resolve_xsave): Likewise.
27369 (_dl_runtime_resolve_xsavec): Likewise.
27370
27371 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27372
27373 [BZ #22320]
27374 CVE-2017-15670
27375 * posix/glob.c (__glob): Fix one-byte overflow.
27376
27377 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27378
27379 * malloc/malloc.c (sysdep-cancel.h): Add include.
27380
27381 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27382
27383 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27384
27385 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27386
27387 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27388 (tests): Remove $(objpfx)ga_test depdendency.
27389 * resolv/ga_test.c: Remove file.
27390
27391 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27392
27393 [BZ #18812]
27394 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27395 * localedata/locales/kab_DZ: New file.
27396
27397 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27398
27399 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27400 _dl_relocate_static_pie instead of _dl_start to compute load
27401 address in static PIE.
27402
27403 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27404
27405 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27406
27407 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27408
27409 [BZ #13605]
27410 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27411 * localedata/locales/shn_MM: New file.
27412
27413 2017-10-20 Florian Weimer <fweimer@redhat.com>
27414
27415 [BZ #22321]
27416 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27417 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27418 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27419 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27420 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27421 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27422
27423 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27424
27425 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27426
27427 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27428
27429 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27430
27431 [BZ #22322]
27432 * sysdeps/mips/bits/long-double.h: Move to ....
27433 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27434
27435 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27436
27437 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27438
27439 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27440 H.J. Lu <hongjiu.lu@intel.com>
27441
27442 [BZ #22299]
27443 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27444 GLRO(dl_platform) to NULL.
27445 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27446 (modules-names): Add tst-platformmod-1 and
27447 x86_64/tst-platformmod-2.
27448 (CFLAGS-tst-platform-1.c): New.
27449 (CFLAGS-tst-platformmod-1.c): Likewise.
27450 (CFLAGS-tst-platformmod-2.c): Likewise.
27451 (LDFLAGS-tst-platformmod-2.so): Likewise.
27452 ($(objpfx)tst-platform-1): Likewise.
27453 ($(objpfx)tst-platform-1.out): Likewise.
27454 (tst-platform-1-ENV): Likewise.
27455 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27456 * sysdeps/x86_64/tst-platform-1.c: New file.
27457 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27458 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27459
27460 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27461
27462 [BZ #13994]
27463 * locale/iso-639.def: Add Karbi.
27464 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27465 * localedata/locales/mjw_IN: New file.
27466
27467 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27468
27469 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27470 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27471 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27472 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27473 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27474 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27475 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27476 <bits/floatn.h>.
27477 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27478 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27479 * manual/math.texi (Mathematics): Document additional architecture
27480 support for _Float128.
27481 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27482 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27483 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27484 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27485 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27486 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27487 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27488 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27489 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27490 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27491 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27492 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27493 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27494 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27495 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27496
27497 2017-10-18 Renlin Li <renlin.li@arm.com>
27498
27499 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27500 _DYNAMIC symbol to calculate load address.
27501
27502 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27503
27504 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27505 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27506 summary bits.
27507 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27508 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27509
27510 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27511
27512 [BZ #16777]
27513 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27514 and improve readability by using more ASCII.
27515 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27516 and improve readability by using more ASCII.
27517
27518 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27519
27520 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27521 not all targets support atomics on bool.
27522
27523 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27524
27525 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27526 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27527 __f128.
27528 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27529 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27530 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27531 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27532 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27533 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27534
27535 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27536
27537 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27538 defines.
27539
27540 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27541
27542 [BZ #22159]
27543 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27544 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27545 (do_check_remalloced_chunk): Fix build bug.
27546 (do_check_malloc_state): Add assert that checks arena->top.
27547 (malloc_consolidate): Remove initialization.
27548 (int_mallinfo): Remove call to malloc_consolidate.
27549 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27550
27551 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27552
27553 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27554 (have_fastchunks): Remove.
27555 (clear_fastchunks): Remove.
27556 (set_fastchunks): Remove.
27557 (malloc_state): Add have_fastchunks.
27558 (malloc_init_state): Use have_fastchunks.
27559 (do_check_malloc_state): Remove incorrect invariant checks.
27560 (_int_malloc): Use have_fastchunks.
27561 (_int_free): Likewise.
27562 (malloc_consolidate): Likewise.
27563
27564 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27565
27566 * malloc/malloc.c (tcache_put): Inline.
27567 (tcache_get): Inline.
27568
27569 2017-10-17 Jordi Mallach <jordi@gnu.org>
27570
27571 Aurelien Jarno <aurelien@aurel32.net>
27572 [BZ #2522]
27573 * localedata/locales/ca_ES@valencia: New file.
27574 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27575
27576 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27577
27578 [BZ #22296]
27579 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27580 < 6.x
27581
27582 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27583
27584 * scripts/build-many-glibcs.py (Context.add_all_configs):
27585 Add arm-linux-gnueabihf multiarch extra_glibcs.
27586
27587 * sysdeps/generic/ifunc-init.h: New file.
27588 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27589
27590 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27591
27592 [BZ #22019]
27593 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27594 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27595 * stdlib/tst-strfmon_l.c: adapt test case.
27596
27597 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27598
27599 * sysdeps/generic/float128-abi.h: New file.
27600 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27601 non-__prefixed symbols to ....
27602 * math/Versions: ... here. Include <float128-abi.h>.
27603 * stdlib/Versions ... and here. Include <float128-abi.h>
27604
27605 2017-10-16 Florian Weimer <fweimer@redhat.com>
27606
27607 * version.h (VERSION): Switch to ".9000" as the development
27608 version suffix.
27609
27610 2017-10-16 Florian Weimer <fweimer@redhat.com>
27611
27612 [BZ #22050]
27613 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27614 compat_symbol_reference to access non-default version.
27615
27616 2017-10-16 Florian Weimer <fweimer@redhat.com>
27617
27618 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27619
27620 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27621
27622 * include/shlib-compat.h (compat_symbol_reference): Update
27623 comment.
27624
27625 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27626
27627 * math/Makefile (test-types): Add
27628 $(type-float128-$(float128-alias-fcts)).
27629 * math/test-float128.h (TYPE_STR): Define conditional on
27630 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27631 (ULP_IDX): Likewise.
27632 (ULP_I_IDX): Likewise.
27633
27634 * stdlib/strtold.c: Include <bits/floatn.h>
27635 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27636 and later undefine as macro. Define as weak alias if
27637 [!USE_WIDE_CHAR].
27638 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27639 and later undefine as macro. Define as weak alias if
27640 [USE_WIDE_CHAR].
27641 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27642 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27643 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27644 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27645 Define and later undefine as macro. Define as weak alias if
27646 [USE_WIDE_CHAR].
27647 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27648 <bits/floatn.h>.
27649 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27650 Define and later undefine as macro. Define as weak alias if
27651 [!USE_WIDE_CHAR].
27652 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27653 Define and later undefine as macro. Define as weak alias if
27654 [USE_WIDE_CHAR].
27655
27656 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27657
27658 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27659 record_verbose messages.
27660
27661 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27662
27663 [BZ #22052]
27664 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27665 to silence -O3 -Wall warning with GCC 7.
27666
27667 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27668
27669 * Makeconfig (+link-static-before-libc): Use the first of
27670 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27671 * gmon/Makefile (tests): Add tst-gmon-static.
27672 (tests-static): Likewise.
27673 (CFLAGS-tst-gmon-static.c): New.
27674 (CRT-tst-gmon-static): Likewise.
27675 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27676 (tst-gmon-static-ENV): Likewise.
27677 (tests-special): Likewise.
27678 ($(objpfx)tst-gmon-static.out): Likewise.
27679 (clean-tst-gmon-static-data): Likewise.
27680 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27681 * gmon/tst-gmon-static-gprof.sh: New file.
27682 * gmon/tst-gmon-static.c: Likewise.
27683
27684 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27685
27686 [BZ #22295]
27687 * locale/programs/linereader.c (get_string): Don't warn on
27688 non-symbolic character.
27689
27690 [BZ #22294]
27691 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27692 int_curr_symbol.
27693
27694 [BZ #22292]
27695 * locale/programs/record-status.h: New file
27696 * locale/programs/locale.c: Add comment.
27697 * locale/programs/charmap-dir.c: Don't include error.h.
27698 (charmap_opendir): Use record_error.
27699 * locale/programs/charmap.c: Don't include error.h.
27700 (charmap_read): Use record_error, and record_warning.
27701 (parse_charmap): Likewise.
27702 * locale/programs/ld-address.c: Don't include error.h.
27703 (address_finish): Use record_error, and record_warning.
27704 * locale/programs/ld-collate.c: Don't include error.h.
27705 (collate_finish): Use record_error, and record_error_at_line.
27706 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27707 (ctype_class_new): Likewise.
27708 (ctype_map_new): Likewise.
27709 (set_one_default): Likewise.
27710 (set_class_defaults): Likewise.
27711 (translit_flatten): Likewise.
27712 (allocate_arrays): Use record_error, and record_verbose.
27713 * locale/programs/ld-identification.c: Don't include error.h.
27714 (indentation_finish): Use record_error and record_warning.
27715 * locale/programs/ld-measurement.c: Don't include error.h.
27716 (measurement_finish): Use record_error.
27717 * locale/programs/ld-messages.c
27718 (message_finish): Likewise.
27719 * locale/programs/ld-monetary.c
27720 (monetary_finish): Likewise.
27721 * locale/programs/ld-name.c (name_finish): Use record_error
27722 and record_warning.
27723 * locale/programs/ld-numeric.c
27724 (numeric_finish): Use record_error.
27725 * locale/programs/ld-paper.c: Don't include error.h.
27726 (paper_finish): Use record_error.
27727 * locale/programs/ld-telephone.c: Don't include error.h.
27728 (telephone_finish): Use record_error.
27729 * locale/programs/ld-time.c (time_finish): Likewise.
27730 * locale/programs/linereader.h (lr_error): Make inline func.
27731 * locale/programs/localedef.c: Define recorded_warning_count,
27732 and recorded_error_count.
27733 (main): Use record_error. Use recorded_error_count and
27734 recorded_warning_count to issue correct error returns.
27735 (add_to_readlist): Use record_error.
27736 (find_locale): Likewise.
27737 (load_locale): Likewise.
27738 * locale/programs/localedef.h: Remove be_quiet
27739 and WITH_CUR_LOCALE.
27740 * locale/programs/locarchive.c (compare_from_file): Use
27741 record_error.
27742 * locale/programs/locfile.c (write_locale_data): Use
27743 record_error.
27744 * locale/programs/repertoire.c: Dont include error.h.
27745 (repertoire_complain): Use record_error.
27746 * localedata/tst-fmon.sh: Expect failures from localedef.
27747 * localedata/tst-locale.sh: Likewise.
27748 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27749
27750 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27751 (REPORTS): Likewise.
27752 (check): Likewise.
27753 (i18n): Rename to...
27754 (i18n_ctype): ...this.
27755 (i18n-report): Rename to...
27756 (i18n_ctype-report): ...this.
27757 * localedata/locales/i18n_ctype: Regenerate.
27758 * localedata/locales/i18n: copy i18n_ctype.
27759
27760 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27761
27762 * stdlib/strfroml.c: Include <bits/floatn.h>.
27763 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27764 Define before include of <stdlib.h> and undefine afterwards, then
27765 define as weak alias.
27766
27767 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27768 Undefine and restore default definition. Use
27769 libm_alias_ldouble_other.
27770
27771 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27772
27773 [BZ #22153]
27774 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27775 in coredumps.
27776
27777 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27778
27779 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27780 Assign sym_map to be map for local symbols, as TLS relocations
27781 use sym_map to determine whether the symbol is defined and to
27782 extract the TLS information.
27783 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27784 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27785
27786 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27787
27788 [BZ #22189]
27789 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27790 (math_force_eval): Add powerpc version.
27791
27792 [BZ #22142]
27793 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27794 -DBL_MAX.
27795 (do_test): Likewise.
27796 * stdio-common/tst-printf.sh: Likewise.
27797 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27798 ifdef clause in order to set the carry bit right. Replace r0 by
27799 0 without changing the behavior.
27800
27801 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27802
27803 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27804 <libm-alias-ldouble.h>.
27805 (fabsl): Define using libm_alias_ldouble.
27806 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27807 <libm-alias-ldouble.h>.
27808 (fabsl): Define using libm_alias_ldouble.
27809
27810 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27811 Remove conditional code.
27812
27813 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27814 Rename to __clog10_internal_l.
27815 (__clog10_internal_l): Define aliases using
27816 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27817 with __clog10.
27818
27819 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27820
27821 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27822 * benchtests/sincosf-inputs: New file.
27823 * benchtests/cosf-inputs: New file.
27824 * benchtests/sinf-inputs: New file.
27825
27826 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27827
27828 * posix/tst-spawn.c (do_test): Wait for both children.
27829
27830 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27831
27832 [BZ #22284]
27833 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27834 tests-pie): Add tst-gmon-pie.
27835 (CFLAGS-tst-gmon-pie.c): New.
27836 (CRT-tst-gmon-pie): Likewise.
27837 (tst-gmon-pie-ENV): Likewise.
27838 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27839 ($(objpfx)tst-gmon-pie.out): Likewise.
27840 (clean-tst-gmon-pie-data): Likewise.
27841 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27842 * gmon/gmon.c [PIC]: Include <link.h>.
27843 [PIC] (callback): New function.
27844 (write_hist): Add an argument for load address. Subtract load
27845 address from PCs.
27846 (write_call_graph): Likewise.
27847 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27848 it to write_hist and write_call_graph.
27849 * gmon/tst-gmon-pie.c: New file.
27850
27851 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27852
27853 * math/Makefile (test-types-basic): New variable.
27854 (test-types): Likewise.
27855 (libm-test-support): Use $(test-types) instead of $(types).
27856 (libm-tests-base-normal): Likewise.
27857 (libm-tests-base-finite): Likewise.
27858 (libm-tests-base-inline): Likewise.
27859 (generated): Likewise.
27860 ($(objpfx)libm-test-support-$(t).c): Likewise.
27861 (libm-tests-for-type iterator): Likewise.
27862 (libm-test-support iterator): Likewise.
27863 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27864 (ulp_idx): Use ULP_IDX.
27865 * math/test-ldouble.h: Include <float.h>.
27866 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27867 (ULP_IDX): New macro.
27868 (ULP_I_IDX): Likewise.
27869 * math/test-double.h (ULP_IDX): Likewise.
27870 (ULP_I_IDX): Likewise.
27871 * math/test-float.h (ULP_IDX): Likewise.
27872 (ULP_I_IDX): Likewise.
27873 * math/test-float128.h (ULP_IDX): Likewise.
27874 (ULP_I_IDX): Likewise.
27875
27876 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27877
27878 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27879 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27880 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27881 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27882 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27883 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27884 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27885 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27886 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27887 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27888 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27889 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27890 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27891 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27892 (SINGLE_THREAD_BY_GLOBAL): Define.
27893 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27894 Likewise.
27895 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27896 Likewise.
27897 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27898 Likewise.
27899 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27900 Likewise.
27901 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27902 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27903 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27904 Likewise.
27905
27906 2017-10-11 Andreas Schwab <schwab@suse.de>
27907
27908 * nis/Makefile (aux): Remove.
27909 * nscd/Makefile (aux): Add nscd_hash.
27910 (nscd-modules): Likewise.
27911 ($(objpfx)nscd): Don't depend on libnsl.
27912 * nscd/nscd_hash.c: New file.
27913 * nscd/nscd_hash.h: Likewise.
27914 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27915 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27916 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27917 instead of <nis/rpcsvc/nis.h>.
27918 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27919
27920 2017-10-11 Florian Weimer <fweimer@redhat.com>
27921
27922 [BZ #22078]
27923 Avoid large NSS buffers with many addresses, aliases.
27924 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27925 using dynarrays and struct alloc_buffer.
27926 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27927 (tst-nss-files-hosts-multi): Link with -ldl.
27928 * nss/tst-nss-files-hosts-multi.c: New file.
27929
27930 2017-10-11 Florian Weimer <fweimer@redhat.com>
27931
27932 [BZ #18023]
27933 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27934 scratch_buffer. Eliminate gotos.
27935
27936 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27937
27938 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27939 libm_alias_ldouble_other.
27940 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27941 undefine and redefine.
27942 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27943 (exp10l): Do not define here.
27944 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27945 (weak_alias): Undefine and redefine.
27946 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27947 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27948 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27949 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27950
27951 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27952 [!__fma] (fma): Define using libm_alias_double.
27953 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27954 [!__fmaf] (fmaf): Define using libm_alias_float.
27955 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27956 (fmal): Define using libm_alias_ldouble.
27957
27958 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27959
27960 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27961 New macro.
27962 (libm_alias_double_other): Likewise.
27963 (libm_alias_double_r): Use libm_alias_double_other_r.
27964 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27965 New macro.
27966 (libm_alias_float_other): Likewise.
27967 (libm_alias_float_r): Use libm_alias_float_other_r.
27968 * sysdeps/generic/libm-alias-float128.h
27969 (libm_alias_float128_other_r): New macro.
27970 (libm_alias_float128_other): Likewise.
27971 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27972 * sysdeps/generic/libm-alias-ldouble.h
27973 (libm_alias_ldouble_other_r): New macro.
27974 (libm_alias_ldouble_other): Likewise.
27975 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27976 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27977 (libm_alias_double_other_r): New macro.
27978 (libm_alias_double_other): Likewise.
27979 (libm_alias_double_r): Use libm_alias_double_other_r.
27980 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27981 (libm_alias_ldouble_other_r): New macro.
27982 (libm_alias_ldouble_other): Likewise.
27983 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27984 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27985 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27986 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27987 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27988 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27989 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27990 * math/w_exp2f.c: Use libm_alias_float_other.
27991 * math/w_expf.c: Likewise.
27992 * math/w_log2f.c: Likewise.
27993 * math/w_logf.c: Likewise.
27994 * math/w_powf.c: Likewise.
27995 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27996 [!__exp2f]: Use libm_alias_float_other.
27997 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27998 [!__expf]: Use libm_alias_float_other.
27999 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
28000 [!__log2f]: Use libm_alias_float_other.
28001 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
28002 [!__logf]: Use libm_alias_float_other.
28003 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
28004 [!__powf]: Use libm_alias_float_other.
28005
28006 2017-10-10 Florian Weimer <fweimer@redhat.com>
28007
28008 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
28009 function.
28010 (_nss_files_gethostbyname3_r): Call it.
28011
28012 2017-10-09 Joseph Myers <joseph@codesourcery.com>
28013
28014 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
28015 error. Remove default definition of declare_mgen_alias.
28016 [!declare_mgen_alias_r]: Likewise.
28017 * sysdeps/generic/math-type-macros-double.h
28018 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
28019 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
28020 (declare_mgen_alias_r): Likewise.
28021 * sysdeps/generic/math-type-macros-float128.h
28022 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28023 * sysdeps/generic/math-type-macros-ldouble.h
28024 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
28025 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
28026 macro.
28027 (declare_mgen_alias_r_s): Likewise.
28028 (declare_mgen_alias_r): Likewise.
28029 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
28030 (lgamma_r): Define using libm_alias_double_r.
28031 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
28032 (lgammaf_r): Define using libm_alias_float_r.
28033 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
28034 (lgammal_r): Define using libm_alias_ldouble_r.
28035 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
28036 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28037
28038 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28039
28040 * lib/glob.c (__glob_pattern_type): Remove now-spurious
28041 extern declaration.
28042
28043 2017-10-09 Joseph Myers <joseph@codesourcery.com>
28044
28045 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
28046
28047 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
28048
28049 [BZ #21326]
28050 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
28051 [__cplusplus >= 201103] (__USE_ISOC99): Define.
28052 * math/Makefile (test-math-cxx11): New test.
28053 * math/test-math-cxx11.cc: New file.
28054
28055 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
28056
28057 * login/openpty.c (openpty): Close slave pty file descriptor on error.
28058
28059 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
28060 call to allocate the slave pty file descriptor.
28061
28062 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28063
28064 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
28065 [!__fma] (fma): Define using libm_alias_double.
28066 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
28067 [!__fma] (fma): Define using libm_alias_double.
28068
28069 * sysdeps/ieee754/float128/float128_private.h: Include
28070 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
28071 (libm_alias_ldouble_r): Undefine and redefine.
28072 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
28073 <libm-alias-ldouble.h>.
28074 (asinhl): Define using libm_alias_ldouble.
28075 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
28076 <libm-alias-ldouble.h>.
28077 (atanl): Define using libm_alias_ldouble.
28078 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
28079 <libm-alias-ldouble.h>.
28080 (cbrtl): Define using libm_alias_ldouble.
28081 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
28082 <libm-alias-ldouble.h>.
28083 (ceill): Define using libm_alias_ldouble.
28084 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
28085 <libm-alias-ldouble.h>.
28086 (copysignl): Define using libm_alias_ldouble.
28087 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
28088 <libm-alias-ldouble.h>.
28089 (cosl): Define using libm_alias_ldouble.
28090 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
28091 <libm-alias-ldouble.h>.
28092 (erfl): Define using libm_alias_ldouble.
28093 (erfcl): Likewise.
28094 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
28095 <libm-alias-ldouble.h>.
28096 (expm1l): Define using libm_alias_ldouble.
28097 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
28098 <libm-alias-ldouble.h>.
28099 (fabsl): Define using libm_alias_ldouble.
28100 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
28101 <libm-alias-ldouble.h>.
28102 (floorl): Define using libm_alias_ldouble.
28103 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
28104 <libm-alias-ldouble.h>.
28105 (fmal): Define using libm_alias_ldouble.
28106 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
28107 <libm-alias-ldouble.h>.
28108 (frexpl): Define using libm_alias_ldouble.
28109 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
28110 libm_alias_ldouble.
28111 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
28112 <libm-alias-ldouble.h>.
28113 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
28114 libm_alias_ldouble.
28115 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
28116 <libm-alias-ldouble.h>.
28117 (getpayloadl): Define using libm_alias_ldouble.
28118 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
28119 <libm-alias-ldouble.h>.
28120 (llrintl): Define using libm_alias_ldouble.
28121 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
28122 <libm-alias-ldouble.h>.
28123 (llroundl): Define using libm_alias_ldouble.
28124 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
28125 <libm-alias-ldouble.h>.
28126 (logbl): Define using libm_alias_ldouble.
28127 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
28128 <libm-alias-ldouble.h>.
28129 (lrintl): Define using libm_alias_ldouble.
28130 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
28131 <libm-alias-ldouble.h>.
28132 (lroundl): Define using libm_alias_ldouble.
28133 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
28134 <libm-alias-ldouble.h>.
28135 (modfl): Define using libm_alias_ldouble.
28136 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
28137 <libm-alias-ldouble.h>.
28138 (nearbyintl): Define using libm_alias_ldouble.
28139 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
28140 <libm-alias-ldouble.h>.
28141 (nextafterl): Define using libm_alias_ldouble.
28142 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
28143 <libm-alias-ldouble.h>.
28144 (nextupl): Define using libm_alias_ldouble.
28145 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28146 <libm-alias-ldouble.h>.
28147 (remquol): Define using libm_alias_ldouble.
28148 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28149 <libm-alias-ldouble.h>.
28150 (rintl): Define using libm_alias_ldouble.
28151 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28152 <libm-alias-ldouble.h>.
28153 (roundevenl): Define using libm_alias_ldouble.
28154 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28155 <libm-alias-ldouble.h>.
28156 (roundl): Define using libm_alias_ldouble.
28157 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28158 using libm_alias_ldouble.
28159 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28160 <libm-alias-ldouble.h>.
28161 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28162 Define using libm_alias_ldouble.
28163 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28164 <libm-alias-ldouble.h>.
28165 (sincosl): Define using libm_alias_ldouble.
28166 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28167 <libm-alias-ldouble.h>.
28168 (sinl): Define using libm_alias_ldouble.
28169 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28170 <libm-alias-ldouble.h>.
28171 (tanhl): Define using libm_alias_ldouble.
28172 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28173 <libm-alias-ldouble.h>.
28174 (tanl): Define using libm_alias_ldouble.
28175 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28176 <libm-alias-ldouble.h>.
28177 (totalorderl): Define using libm_alias_ldouble.
28178 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28179 <libm-alias-ldouble.h>.
28180 (totalordermagl): Define using libm_alias_ldouble.
28181 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28182 <libm-alias-ldouble.h>.
28183 (truncl): Define using libm_alias_ldouble.
28184 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28185 libm_alias_ldouble.
28186 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28187 libm_alias_ldouble.
28188 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28189 <libm-alias-ldouble.h>.
28190 (weak_alias): Do not undefine and redefine.
28191 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28192 (copysignl): Define with long_double_symbol only if [IS_IN
28193 (libc)].
28194 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28195 <libm-alias-ldouble.h>.
28196 (weak_alias): Do not undefine and redefine.
28197 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28198 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28199 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28200 <libm-alias-ldouble.h>.
28201 (weak_alias): Do not undefine and redefine.
28202 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28203 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28204 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28205 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28206 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28207 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28208 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28209 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28210 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28211 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28212 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28213 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28214 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28215 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28216 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28217 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28218 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28219 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28220 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28221 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28222 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28223 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28224 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28225 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28226 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28227 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28228
28229 2017-10-06 Carlos O'Donell <carlos@redhat.com>
28230
28231 [BZ #22111]
28232 * malloc/malloc.c (tcache_shutting_down): Use bool type.
28233 (tcache_thread_freeres): Set tcache_shutting_down before
28234 freeing the tcache.
28235 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28236 * malloc/tst-malloc-tcache-leak.c: New file.
28237
28238 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28239
28240 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28241 back to powerpc32 file.
28242 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28243 (memrchr): Add __memrchr_power8 to ifunc list.
28244 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28245 extra bytes for unaligned inputs.
28246
28247 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28248
28249 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28250 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28251 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28252 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28253 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28254
28255 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28256
28257 * sysdeps/arm/libm-test-ulps: Update.
28258
28259 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28260 <libm-alias-ldouble.h>.
28261 (asinhl): Define using libm_alias_ldouble.
28262 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28263 <libm-alias-ldouble.h>.
28264 (cbrtl): Define using libm_alias_ldouble.
28265 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28266 <libm-alias-ldouble.h>.
28267 (copysignl): Define using libm_alias_ldouble.
28268 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28269 <libm-alias-ldouble.h>.
28270 (cosl): Define using libm_alias_ldouble.
28271 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28272 <libm-alias-ldouble.h>.
28273 (erfl): Define using libm_alias_ldouble.
28274 (erfcl): Likewise.
28275 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28276 <libm-alias-ldouble.h>.
28277 (fmal): Define using libm_alias_ldouble.
28278 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28279 <libm-alias-ldouble.h>.
28280 (frexpl): Define using libm_alias_ldouble.
28281 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28282 libm_alias_ldouble.
28283 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28284 <libm-alias-ldouble.h>.
28285 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28286 libm_alias_ldouble.
28287 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28288 <libm-alias-ldouble.h>.
28289 (getpayloadl): Define using libm_alias_ldouble.
28290 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28291 <libm-alias-ldouble.h>.
28292 (llrintl): Define using libm_alias_ldouble.
28293 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28294 <libm-alias-ldouble.h>.
28295 (llroundl): Define using libm_alias_ldouble.
28296 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28297 <libm-alias-ldouble.h>.
28298 (lrintl): Define using libm_alias_ldouble.
28299 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28300 <libm-alias-ldouble.h>.
28301 (lroundl): Define using libm_alias_ldouble.
28302 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28303 <libm-alias-ldouble.h>.
28304 (modfl): Define using libm_alias_ldouble.
28305 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28306 <libm-alias-ldouble.h>.
28307 (nextupl): Define using libm_alias_ldouble.
28308 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28309 <libm-alias-ldouble.h>.
28310 (remquol): Define using libm_alias_ldouble.
28311 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28312 <libm-alias-ldouble.h>.
28313 (roundevenl): Define using libm_alias_ldouble.
28314 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28315 <libm-alias-ldouble.h>.
28316 (roundl): Define using libm_alias_ldouble.
28317 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28318 using libm_alias_ldouble.
28319 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28320 <libm-alias-ldouble.h>.
28321 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28322 <libm-alias-ldouble.h>.
28323 (setpayloadsigl): Define using libm_alias_ldouble.
28324 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28325 <libm-alias-ldouble.h>.
28326 (sincosl): Define using libm_alias_ldouble.
28327 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28328 <libm-alias-ldouble.h>.
28329 (sinl): Define using libm_alias_ldouble.
28330 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28331 <libm-alias-ldouble.h>.
28332 (tanhl): Define using libm_alias_ldouble.
28333 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28334 <libm-alias-ldouble.h>.
28335 (tanl): Define using libm_alias_ldouble.
28336 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28337 <libm-alias-ldouble.h>.
28338 (totalorderl): Define using libm_alias_ldouble.
28339 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28340 <libm-alias-ldouble.h>.
28341 (totalordermagl): Define using libm_alias_ldouble.
28342 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28343 libm_alias_ldouble.
28344 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28345 libm_alias_ldouble.
28346
28347 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
28348
28349 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28350 memmove_falkor.
28351 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28352 (__libc_ifunc_impl_list): Likewise.
28353 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28354 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28355
28356 * benchtests/bench-memmove-walk.c: New file.
28357 * benchtests/Makefile (string-benchset): Add it.
28358
28359 * benchtests/bench-memset-walk.c: New file.
28360 * benchtests/Makefile (string-benchset): Add it.
28361
28362 * benchtests/bench-memcpy-walk.c: New file.
28363 * benchtests/Makefile (string-benchset): Add it.
28364
28365 2017-10-05 Florian Weimer <fweimer@redhat.com>
28366
28367 nscd: Eliminate compilation time dependency in the build output.
28368 * nscd/nscd_stat.c (STATDATA_VERSION)
28369 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28370 (STATDATA_VERSION_FULL): New macro definitions.
28371 (compilation): Remove.
28372 (struct statdata): Adjust version member.
28373 (send_stats): Set version from STATDATA_VERSION_FULL.
28374 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28375
28376 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28377
28378 * configure.ac (--enable-add-ons): Remove option.
28379 (machine): Do not mention add-ons in comment.
28380 (LIBC_PRECONFIGURE): Likewise.
28381 (add_ons): Remove variable and sanity checks and logic to locate
28382 add-ons.
28383 (add_ons_automatic): Remove variable.
28384 (configured_add_ons): Likewise.
28385 (add_ons_sfx): Likewise.
28386 (add_ons_pfx): Likewise.
28387 (add_on_subdirs): Likewise.
28388 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28389 consideration of add-ons in Implies handling.
28390 (sysdeps_add_ons): Likewise.
28391 * configure: Regenerated.
28392 * libidn/configure.ac: Remove.
28393 * libidn/configure: Likewise.
28394 * sysdeps/unix/inet/configure.ac: New file.
28395 * sysdeps/unix/inet/configure: New generated file.
28396 * sysdeps/unix/inet/Subdirs: Add libidn.
28397 * Makeconfig (sysdeps-srcdirs): Remove variable.
28398 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28399 ($(common-objpfx)config.status): Do not depend on add-on files.
28400 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28401 comment.
28402 (all-subdirs): Do not include $(add-on-subdirs).
28403 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28404 * config.make.in (add-ons): Remove variable.
28405 (add-on-subdirs): Likewise.
28406 (sysdeps-add-ons): Likewise.
28407 * manual/Makefile (add-chapters): Remove.
28408 ($(objpfx)texis): Do not depend on $(add-chapters).
28409 (nonexamples): Do not handle $(add-chapters).
28410 (examples): Do not handle $(add-ons).
28411 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28412 libc-texinfo.sh.
28413 * manual/install.texi (Installation): Do not mention add-ons.
28414 (--enable-add-ons): Do not document configure option.
28415 * INSTALL: Regenerated.
28416 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28417 * manual/maint.texi (Hierarchy Conventions): Do not mention
28418 add-ons.
28419 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28420 --enable-add-ons.
28421 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28422 add-ons.
28423 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28424 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28425
28426 2017-10-05 Andreas Schwab <schwab@suse.de>
28427
28428 [BZ #15142]
28429 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28430 (_IO_flush_all_lockp): Always lock list_all_lock.
28431 (_IO_flush_all_linebuffered): Likewise.
28432 (_IO_unbuffer_all): Likewise.
28433
28434 2017-10-05 Florian Weimer <fweimer@redhat.com>
28435
28436 [BZ #15436]
28437 Do not flush stdio streams on abort.
28438 * stdlib/abort.c (fflush): Remove macro definition.
28439 (abort): Remove stages related to stdio flushing.
28440
28441 2017-10-05 Florian Weimer <fweimer@redhat.com>
28442
28443 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28444
28445 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28446
28447 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28448
28449 2017-10-05 Florian Weimer <fweimer@redhat.com>
28450
28451 * support/support_format_hostent.c (support_format_hostent): Add
28452 more error information for NETDB_INTERNAL.
28453
28454 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28455
28456 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28457 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28458 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28459 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28460 AC_DEFINE if multi-arch is enabled.
28461 * sysdeps/i386/configure: Regenerated.
28462
28463 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28464
28465 * Makeconfig (+link-static-before-libc): Use
28466 $(DEFAULT-LDFLAGS-$(@F)).
28467 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28468 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28469 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28470
28471 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28472
28473 * elf/Makefile (tests): Add tst-main1.
28474 (modules-names): Add tst-main1mod.
28475 ($(objpfx)tst-main1): New.
28476 (CRT-tst-main1): Likewise.
28477 (LDFLAGS-tst-main1): Likewise.
28478 (LDLIBS-tst-main1): Likewise.
28479 (tst-main1mod.so-no-z-defs): Likewise.
28480 * elf/tst-main1.c: New file.
28481 * elf/tst-main1mod.c: Likewise.
28482
28483 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28484
28485 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28486
28487 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28488
28489 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28490 (fma): Define using libm_alias_double.
28491 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28492 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28493 <math_ldbl_opt.h>.
28494 (fmal): Do not define as compat symbol here.
28495 * sysdeps/alpha/fpu/s_fma.c: New file.
28496
28497 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28498
28499 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28500
28501 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28502
28503 [BZ #22229]
28504 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28505 <math_ldbl_opt.h>
28506 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28507 and libc.
28508 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28509 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28510 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28511 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28512 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28513 Include <math_ldbl_opt.h>
28514 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28515 and libc.
28516 (compat_symbol): Undefine and redefine.
28517 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28518 <math_ldbl_opt.h>
28519 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28520 (compat_symbol): Undefine and redefine.
28521 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28522 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28523 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28524 GLIBC_2_1 for libm.
28525 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28526 GLIBC_2.0 copysignl symbol.
28527 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28528 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28529
28530 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28531
28532 2017-10-04 Florian Weimer <fweimer@redhat.com>
28533
28534 * scripts/check-local-headers.sh: Ignore nspr4 header file
28535 directory in addition to nspr.
28536
28537 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28538
28539 [BZ #17956]
28540 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28541 * configure: Regenerate.
28542 * crypt/Makefile (nss-cpp-flags): New variable.
28543 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28544 (CPPFLAGS-md5-crypt.c): Use it.
28545 * scripts/check-local-headers.sh: Ignore nspr header file
28546 directory.
28547
28548 2017-10-04 Andreas Schwab <schwab@suse.de>
28549
28550 * nis/Makefile (services): Remove compat.
28551 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28552 ($(objpfx)libnss_compat.so): Remove rule.
28553 * nis/Versions (libnss_compat): Remove.
28554 * nss/Makefile (services): Add compat.
28555 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28556 * nss/Versions (libnss_compat): Define.
28557 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28558 Don't include <rpc/types.h>. Replace bool_t by bool.
28559 * nss/nss_compat/compat-initgroups.c: Likewise.
28560 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28561 instead of <rpcsrv/ypclnt.h>.
28562 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28563 yp_get_default_domain.
28564 * nss/nss_compat/compat-pwd.c: Likewise.
28565 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28566 yp_get_default_domain.
28567 * nss/nss_compat/nisdomain.c: New file.
28568 * nss/nss_compat/nisdomain.h: Likewise.
28569
28570 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28571
28572 [BZ #22244]
28573 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28574 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28575
28576 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28577
28578 [BZ #22243]
28579 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28580 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28581
28582 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28583
28584 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28585 "movl main@GOTOFF(%ebx), %eax".
28586
28587 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28588
28589 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28590 allow undefined _DYNAMIC in PIE libc.a.
28591 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28592 Likewse.
28593
28594 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28595
28596 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28597 check _DYNAMIC.
28598
28599 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28600
28601 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28602 check _DYNAMIC.
28603
28604 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28605
28606 * math/test-math-iscanonical.cc (error): Replace bool with int.
28607
28608 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28609
28610 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28611 (modf): Define using libm_alias_double, only if [!__modf].
28612 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28613 <libm-alias-double.h>.
28614 (modf): Define using libm_alias_double, only if [!__modf].
28615 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28616 compat symbol here.
28617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28618 (weak_alias): Do not undefine and redefine.
28619 (strong_alias): Likewise.
28620 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28621 (weak_alias): Likewise.
28622 (strong_alias): Likewise.
28623
28624 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28625 (logb): Define using libm_alias_double, only if [!__logb].
28626 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28627 <libm-alias-double.h>.
28628 (logb): Define using libm_alias_double, only if [!__logb].
28629 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28631 (weak_alias): Do not undefine and redefine.
28632 (strong_alias): Likewise.
28633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28634 (weak_alias): Likewise.
28635 (strong_alias): Likewise.
28636
28637 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28640 Check SHARED instead PIC.
28641
28642 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28643
28644 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28645 [!__fmaf] (fmaf): Define using libm_alias_float.
28646
28647 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28648 (frexp): Define using libm_alias_double.
28649 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28650 <libm-alias-double.h>.
28651 (frexp): Define using libm_alias_double.
28652 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28653 compat symbol here.
28654
28655 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28656
28657 [BZ #22235]
28658 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28659 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28660 (CFLAGS-test-math-iscanonical.cc): New variable.
28661 * math/test-math-iscanonical.cc: New file.
28662 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28663 Provide a C++ implementation based on function overloading,
28664 rather than using __MATH_TG, which uses C-only builtins.
28665 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28666 Likewise.
28667 * sysdeps/powerpc/powerpc64le/Makefile
28668 (CFLAGS-test-math-iscanonical.cc): New variable.
28669
28670 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28671
28672 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28673 (ceil): Define using libm_alias_double.
28674 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28675 (floor): Define using libm_alias_double.
28676 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28677 <libm-alias-double.h>.
28678 (llround): Define using libm_alias_double.
28679 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28680 <libm-alias-double.h>.
28681 (lround): Define using libm_alias_double.
28682 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28683 <libm-alias-double.h>.
28684 (nearbyint): Define using libm_alias_double.
28685 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28686 <libm-alias-double.h>.
28687 (remquo): Define using libm_alias_double.
28688 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28689 (rint): Define using libm_alias_double.
28690 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28691 (round): Define using libm_alias_double.
28692 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28693 (trunc): Define using libm_alias_double.
28694 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28695 <libm-alias-double.h>.
28696 (ceil): Define using libm_alias_double.
28697 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28698 <libm-alias-double.h>.
28699 (floor): Define using libm_alias_double.
28700 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28701 <libm-alias-double.h>.
28702 (llround): Define using libm_alias_double.
28703 [_LP64] (lround): Likewise.
28704 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28705 <libm-alias-double.h>.
28706 [!_LP64] (lround): Define using libm_alias_double.
28707 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28708 <libm-alias-double.h>.
28709 (nearbyint): Define using libm_alias_double.
28710 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28711 <libm-alias-double.h>.
28712 (remquo): Define using libm_alias_double.
28713 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28714 <libm-alias-double.h>.
28715 (rint): Define using libm_alias_double.
28716 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28717 <libm-alias-double.h>.
28718 (round): Define using libm_alias_double.
28719 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28720 <libm-alias-double.h>.
28721 (trunc): Define using libm_alias_double.
28722 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28723 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28724 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28725 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28726 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28727 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28728 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28729 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28730 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28731
28732 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28733
28734 * math/w_remainder.c: New file.
28735 * math/w_remainderf.c: New file.
28736 * math/w_remainderl.c: New file.
28737
28738 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28739
28740 * elf/rtld.c (BOOTSTRAP_MAP): New.
28741 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28742 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28743 Likewise.
28744 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28745 Likewise.
28746 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28747 Likewise.
28748
28749 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28750
28751 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28752 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28753 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28754 rtld_hidden_data_ver): Define to empty.
28755 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28756 __assert_perror_fail): Likewise.
28757 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28758 (__rewinddir): Likewise.
28759 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28760 (__profile_frequency): Likewise.
28761 * include/setjmp.h (__sigsetjmp): Likewise.
28762 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28763 __libc_sigaction): Likewise.
28764 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28765 not set hidden attribute.
28766 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28767 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28768 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28769 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28770 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28771 __fxstatat64): Likewise.
28772 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28773 (__uname): Likewise.
28774 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28775 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28776 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28777 (NO_RTLD_HIDDEN): Set.
28778 * sysdeps/mach/hurd/configure: Refresh.
28779 * config.h.in: Refresh.
28780
28781 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28782
28783 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28784 (atan): Define using libm_alias_double.
28785 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28786 (tan): Define using libm_alias_double.
28787 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28788 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28789
28790 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28791 define as weak alias of __atan. Do not define any aliases if
28792 [__atan].
28793 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28794 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28795 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28796 as weak alias of __tan. Do not define any aliases if [__tan].
28797 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28798 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28799 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28800 __atan.
28801 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28802 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28803 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28804 and define as weak alias of __atan.
28805 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28806 __atan.
28807 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28808 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28809 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28810 define as weak alias of __tan.
28811
28812 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28813
28814 * math/w_lgamma.c: New file.
28815 * math/w_lgammaf.c: New file.
28816 * math/w_lgammal.c: New file.
28817
28818 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28819
28820 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28821 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28822 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28823 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28824 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28825 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28826 * sysdeps/i386/fpu/w_log2f.c: New file.
28827 * sysdeps/i386/fpu/w_logf.c: New file.
28828 * sysdeps/i386/fpu/w_powf.c: New file.
28829 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28830 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28831 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28832
28833 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28834 H.J. Lu <hongjiu.lu@intel.com>
28835
28836 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28837 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28838 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28839 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28840 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28841 the new expf code.
28842 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28843 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28844 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28845 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28846 * sysdeps/i386/fpu/w_exp2f.c: New file.
28847 * sysdeps/i386/fpu/w_expf.c: New file.
28848 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28849 * sysdeps/x86_64/fpu/w_expf.c: New file.
28850
28851 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28852
28853 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28854 (log2f): Likewise.
28855 (powf): Likewise.
28856 * math/w_log2f.c: New file.
28857 * math/w_logf.c: New file.
28858 * math/w_powf.c: New file.
28859 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28860 * math/w_logf_compat.c (__logf_compat): Likewise.
28861 * math/w_powf_compat.c (__powf_compat): Likewise.
28862 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28863 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28864 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28865 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28866 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28867 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28868 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28869 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28870 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28871 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28872 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28873 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28874 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28875 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28876 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28878 Likewise.
28879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28880 Likewise.
28881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28882 Likewise.
28883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28884 Likewise.
28885 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28886 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28887 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28888 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28889 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28890 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28891 Likewise.
28892 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28893 Likewise.
28894 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28895 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28896 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28897
28898 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28899
28900 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28901 (sysdep_routines): Add memrchr_power8.
28902 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28903 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28904 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28905 New file.
28906 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28907 (memrchr): Add __memrchr_power8 to ifunc list.
28908 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28909
28910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28911
28912 [BZ #18822]
28913 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28914 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28915 libc_hidden_def.
28916 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28917 (__posix_fallocate64_l64): Likewise.
28918
28919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28920
28921 [BZ #18822]
28922 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28923 (__sched_setaffinity_new): Add libc_hidden_proto and
28924 libc_hidden_def.
28925
28926 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28927
28928 [BZ #18822]
28929 * include/glob.h (__glob64): Add libc_hidden_proto.
28930 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28931 libc_hidden_def.
28932
28933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28934
28935 [BZ #18822]
28936 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28937 attribute_hidden.
28938
28939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 [BZ #18822]
28942 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28943
28944 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28945
28946 [BZ #18822]
28947 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28948 libc_hidden_def.
28949
28950 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28951
28952 [BZ #18822]
28953 * csu/version.c (__libc_print_version): Add attribute_hidden.
28954
28955 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28956
28957 [BZ #18822]
28958 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28959
28960 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28961
28962 [BZ #18822]
28963 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28964
28965 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28966
28967 [BZ #18822]
28968 * nscd/nscd_helper.c (__nis_hash): New prototype.
28969
28970 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28971
28972 [BZ #18822]
28973 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28974 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28975 libc_hidden_def.
28976 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28977 * termios/tcgetattr.c (__tcgetattr): Likewise.
28978
28979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28980
28981 [BZ #18822]
28982 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28983 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28984 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28985 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28986 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28987
28988 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28989
28990 [BZ #18822]
28991 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28992
28993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28994
28995 [BZ #18822]
28996 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28997 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28998
28999 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29000
29001 [BZ #18822]
29002 * intl/hash-string.h (__hash_string): Add attribute_hidden.
29003
29004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29005
29006 [BZ #18822]
29007 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
29008 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
29009
29010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29011
29012 [BZ #18822]
29013 * include/ifreq.h: New file.
29014 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
29015 (__ifreq): Likewise.
29016 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
29017 (__ifreq): Likewise.
29018
29019 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29020
29021 [BZ #18822]
29022 * include/idna.h: New file.
29023 * inet/getnameinfo.c: Include <idna.h> instead of
29024 <libidn/idna.h>.
29025 (__idna_to_unicode_lzlz): Removed.
29026 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
29027 <libidn/idna.h>.
29028 (__idna_to_ascii_lz): Removed.
29029 (__idna_to_unicode_lzlz): Likewise.
29030
29031 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29032
29033 [BZ #18822]
29034 * include/plural-exp.h: New file.
29035 * intl/plural-exp.c: Include <plural-exp.h> instead of
29036 "plural-exp.h".
29037
29038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29039
29040 [BZ #18822]
29041 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
29042 "getsourcefilter.h".
29043 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
29044 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
29045 "getsourcefilter.h".
29046 (__get_sol): Removed.
29047
29048 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29049
29050 [BZ #18822]
29051 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
29052 to ...
29053 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
29054
29055 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29056
29057 [BZ #18822]
29058 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
29059 attribute_hidden.
29060
29061 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29062
29063 [BZ #18822]
29064 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
29065
29066 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29067
29068 [BZ #18822]
29069 * include/search.h (__tdestroy): Add libc_hidden_proto.
29070 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
29071
29072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29073
29074 [BZ #18822]
29075 * include/assert.h (__assert_fail_base): Add attribute_hidden.
29076
29077 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29078
29079 [BZ #18822]
29080 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
29081 attribute_hidden.
29082
29083 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29084
29085 [BZ #18822]
29086 * include/signal.h (__kill): Add libc_hidden_proto.
29087 (__sigblock): Likewise.
29088 (__sigprocmask): Likewise.
29089 (__sigaltstack): Likewise.
29090 * signal/kill.c (__kill): Add libc_hidden_def.
29091 * signal/sigblock.c (__sigblock): Likewise.
29092 * signal/sigprocmask.c (__sigprocmask): Likewise.
29093 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
29094 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
29095 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
29096 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
29097 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
29098 Likewise.
29099 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
29100 Likewise.
29101 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
29102 (__sigprocmask): Likewise.
29103 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
29104 Likewise.
29105 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
29106 (__sigprocmask): Likewise.
29107 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
29108 Likewise.
29109
29110 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29111
29112 [BZ #18822]
29113 * include/string.h (__strsep): Add libc_hidden_proto.
29114 * string/strsep.c (__strsep): Add libc_hidden_def.
29115
29116 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29117
29118 [BZ #18822]
29119 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
29120 attribute_hidden.
29121 (__spawni): Likewise.
29122
29123 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29124
29125 [BZ #18822]
29126 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
29127 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
29128 libc_hidden_def.
29129
29130 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29131
29132 [BZ #18822]
29133 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
29134
29135 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29136
29137 [BZ #18822]
29138 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
29139 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
29140 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
29141 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
29142 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
29143 Likewise.
29144 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29145 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29146
29147 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29148
29149 [BZ #18822]
29150 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29151 (__dcigettext): Likewise.
29152
29153 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29154
29155 [BZ #18822]
29156 * include/sys/sysinfo.h (__get_nprocs_conf): Add
29157 libc_hidden_proto.
29158 (__get_nprocs): Likewise.
29159 (__get_phys_pages): Likewise.
29160 (__get_avphys_pages): Likewise.
29161 (__get_child_max): Add attribute_hidden.
29162 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29163 (__get_nprocs): Likewise.
29164 (__get_phys_pages): Likewise.
29165 (__get_avphys_pages): Likewise.
29166 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29167 libc_hidden_def.
29168 (__get_nprocs): Likewise.
29169 (__get_phys_pages): Likewise.
29170 (__get_avphys_pages): Likewise.
29171 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29172 libc_hidden_def.
29173 (__get_nprocs_conf): Likewise.
29174 (__get_phys_pages): Likewise.
29175 (__get_avphys_pages): Likewise.
29176
29177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29178
29179 [BZ #18822]
29180 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29181 attribute_hidden.
29182 (__netlink_close): Likewise.
29183 (__netlink_free_handle): Likewise.
29184 (__netlink_request): Likewise.
29185
29186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29187
29188 [BZ #18822]
29189 * include/rpc/rpc.h (__rpc_thread_variables): Add
29190 attribute_hidden.
29191 (__rpc_thread_svc_cleanup): Likewise.
29192 (__rpc_thread_clnt_cleanup): Likewise.
29193 (__rpc_thread_key_cleanup): Likewise.
29194
29195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29196
29197 [BZ #18822]
29198 * include/sys/uio.h (__readv): Add libc_hidden_proto.
29199 (__writev): Likewise.
29200 * misc/readv.c (__readv): Add libc_hidden_def.
29201 * misc/writev.c (__writev): Likewise.
29202 * sysdeps/posix/readv.c (__readv): Likewise.
29203 * sysdeps/posix/writev.c (__writev): Likewise.
29204 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29205 (__readv): Likewise.
29206 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29207 (__writev): Likewise.
29208
29209 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29210
29211 [BZ #18822]
29212 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29213 (__regcomp): Add libc_hidden_proto.
29214 (__regexec): Likewise.
29215 (__regfree): Likewise.
29216 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29217 (__regfree): Likewise.
29218 * posix/regexec.c (__regexec): Likewise.
29219
29220 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29221
29222 [BZ #18822]
29223 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29224 (__getutent): Likewise.
29225 (__getutid): Likewise.
29226 (__getutline): Likewise.
29227 (__pututline): Likewise.
29228 (__getutent_r): Likewise.
29229 (__getutid_r): Likewise.
29230 (__getutline_r): Likewise.
29231 (__utmpname): Add attribute_hidden.
29232 (__setutent): Likewise.
29233 (__endutent): Likewise.
29234 * login/getutent.c (__getutent): Add libc_hidden_def.
29235 * login/getutent_r.c (__getutent_r): Likewise.
29236 (__pututline): Likewise.
29237 * login/getutid.c (__getutid): Likewise.
29238 * login/getutid_r.c (__getutid_r): Likewise.
29239 * login/getutline.c (__getutline): Likewise.
29240 * login/getutline_r.c (__getutline_r): Likewise.
29241 * login/updwtmp.c (__updwtmp): Likewise.
29242
29243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29244
29245 [BZ #18822]
29246 * include/dirent.h (__opendir): Always add attribute_hidden.
29247 (__fdopendir): Likewise.
29248 (__closedir): Likewise.
29249 (__readdir): Likewise.
29250 (__readdir64): Add libc_hidden_proto.
29251 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29252 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29253 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29254 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29255 New alias.
29256
29257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29258
29259 [BZ #18822]
29260 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29261 * include/netdb.h (__gethostbyaddr_r): Likewise.
29262 (__gethostbyname_r): Likewise.
29263 (__gethostbyname2_r): Likewise.
29264 (__getnetbyaddr_r): Likewise.
29265 (__getnetbyname_r): Likewise.
29266 (__getservbyname_r): Likewise.
29267 (__getservbyport_r): Likewise.
29268 (__getprotobyname_r): Likewise.
29269 (__getprotobynumber_r): Likewise.
29270 (__getnetgrent_r): Likewise.
29271 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29272 (__getrpcbynumber_r): Likewise.
29273 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29274
29275 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29276
29277 [BZ #18822]
29278 * include/stdio.h (__fcloseall): Add attribute_hidden.
29279 (__getline): Likewise.
29280 (__path_search): Likewise.
29281 (__gen_tempname): Likewise.
29282 (__libc_message): Likewise.
29283 (__flockfile): Likewise.
29284 (__funlockfile): Likewise.
29285 (__fxprintf): Likewise.
29286 (__fxprintf_nocancel): Likewise.
29287
29288 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29289
29290 [BZ #18822]
29291 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29292 (__sgetsgent_r): Likewise.
29293
29294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29295
29296 [BZ #18822]
29297 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29298 (__statfs64): Likewise.
29299 (__fstatfs64): Likewise.
29300 * include/sys/statvfs.h (__statvfs64): Likewise.
29301 (__fstatvfs64): Likewise.
29302 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29303 (__statfs_filesize_max): Likewise.
29304 (__statfs_symlinks): Likewise.
29305 (__statfs_chown_restricted): Likewise.
29306
29307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29308
29309 [BZ #18822]
29310 * include/time.h (__tzstring): Add attribute_hidden.
29311 (__tzfile_read): Likewise.
29312 (__tzfile_compute): Likewise.
29313 (__tzfile_default): Likewise.
29314 (__tzset_parse_tz): Likewise.
29315 (__offtime): Likewise.
29316 (__asctime_r): Likewise.
29317 (__tzset): Likewise.
29318 (__tz_convert): Likewise.
29319 (__getdate_r): Likewise.
29320 (__getclktck): Likewise.
29321
29322 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29323
29324 [BZ #18822]
29325 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29326 (__nscd_unmap): Likewise.
29327 (__nscd_cache_search): Likewise.
29328 (__nscd_get_nl_timestamp): Likewise.
29329 (__nscd_getpwnam_r): Likewise.
29330 (__nscd_getpwuid_r): Likewise.
29331 (__nscd_getgrnam_r): Likewise.
29332 (__nscd_getgrgid_r): Likewise.
29333 (__nscd_gethostbyname_r): Likewise.
29334 (__nscd_gethostbyname2_r): Likewise.
29335 (__nscd_gethostbyaddr_r): Likewise.
29336 (__nscd_getai): Likewise.
29337 (__nscd_getgrouplist): Likewise.
29338 (__nscd_getservbyname_r): Likewise.
29339 (__nscd_getservbyport_r): Likewise.
29340 (__nscd_innetgr): Likewise.
29341 (__nscd_setnetgrent): Likewise.
29342
29343 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29344
29345 [BZ #18822]
29346 * include/gmp.h: Declare internal functions only if _ISOMAC is
29347 undefined.
29348 (__mpn_extract_double): Add attribute_hidden.
29349 (__mpn_extract_long_double): Likewise.
29350 (__mpn_extract_float128): Likewise.
29351 (__mpn_construct_float): Likewise.
29352 (__mpn_construct_double): Likewise.
29353 (__mpn_construct_long_double): Likewise.
29354 (__mpn_construct_float128): Likewise.
29355 (mpn_add_1): Likewise.
29356 (mpn_addmul_1): Likewise.
29357 (mpn_add_n): Likewise.
29358 (mpn_cmp): Likewise.
29359 (mpn_divrem): Likewise.
29360 (mpn_lshift): Likewise.
29361 (mpn_mul): Likewise.
29362 (mpn_mul_1): Likewise.
29363 (mpn_rshift): Likewise.
29364 (mpn_sub_1): Likewise.
29365 (mpn_submul_1): Likewise.
29366 (mpn_sub_n): Likewise.
29367
29368 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29369
29370 [BZ #18822]
29371 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29372 (__wcscat): Likewise.
29373 (__btowc): Likewise.
29374 (__wcrtomb): Likewise.
29375 (__mbsrtowcs): Likewise.
29376 (__wcsrtombs): Likewise.
29377 (__mbsnrtowcs): Likewise.
29378 (__wcsnrtombs): Likewise.
29379 (__wcsncpy): Likewise.
29380 (__wcpncpy): Likewise.
29381 (__wmemcpy): Likewise.
29382 (__wmempcpy): Likewise.
29383 (__wmemmove): Likewise.
29384 (__wcschrnul): Likewise.
29385 (__vfwscanf): Likewise.
29386 (__vswprintf): Likewise.
29387 (__fwprintf): Likewise.
29388 (__vfwprintf): Likewise.
29389
29390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29391
29392 [BZ #18822]
29393 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29394 (__getgrgid_r): Likewise.
29395 (__getgrnam_r): Likewise.
29396 * include/pwd.h (__getpwuid_r): Likewise.
29397 (__getpwnam_r): Likewise.
29398 (__fgetpwent_r): Likewise.
29399 * include/shadow.h (__getspnam_r): Likewise.
29400 (__sgetspent_r): Likewise.
29401 (__fgetspent_r): Likewise.
29402
29403 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29404
29405 [BZ #18822]
29406 * include/unistd.h (__access): Add attribute_hidden.
29407 (__lseek64): Likewise.
29408 (__libc_pread64): Likewise.
29409 (__pipe2): Likewise.
29410 (__sleep): Likewise.
29411 (__chdir): Likewise.
29412 (__fchdir): Likewise.
29413 (__getcwd): Likewise.
29414 (__rmdir): Likewise.
29415 (__execvpe): Likewise.
29416 (__execve): Likewise.
29417 (__setsid): Likewise.
29418 (__getuid): Likewise.
29419 (__geteuid): Likewise.
29420 (__getgid): Likewise.
29421 (__getegid): Likewise.
29422 (__getgroups): Likewise.
29423 (__group_member): Likewise.
29424 (__ttyname_r): Likewise.
29425 (__isatty): Likewise.
29426 (__readlink): Likewise.
29427 (__unlink): Likewise.
29428 (__gethostname): Likewise.
29429 (__profil): Likewise.
29430 (__getdtablesize): Likewise.
29431 (__brk): Likewise.
29432 (__ftruncate): Likewise.
29433 (__ftruncate64): Likewise.
29434
29435 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29436
29437 [BZ #18822]
29438 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29439 * argp/argp-fs-xinl.c: Likewise.
29440 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29441 * argp/argp-parse.c: Include <argp.h>.
29442 * argp/argp-xinl.c: Likewise.
29443 * include/argp-fmtstream.h: New file.
29444 * include/argp.h (__argp_error): Add attribute_hidden.
29445 (__argp_failure): Likewise.
29446 (__argp_input): Likewise.
29447 (__argp_state_help): Likewise.
29448
29449 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29450
29451 [BZ #18822]
29452 * include/wchar.h (____wcstof_l_internal): New prototype.
29453 (____wcstod_l_internal): Likewise.
29454 (____wcstold_l_internal): Likewise.
29455 (____wcstol_l_internal): Likewise.
29456 (____wcstoul_l_internal): Likewise.
29457 (____wcstoll_l_internal): Likewise.
29458 (____wcstoull_l_internal): Likewise.
29459 (____wcstof128_l_internal): Likewise.
29460 * sysdeps/ieee754/float128/wcstof128.c
29461 (____wcstof128_l_internal): Removed.
29462 * sysdeps/ieee754/float128/wcstof128_l.c
29463 (____wcstof128_l_internal): Likewise.
29464 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29465 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29466 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29467 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29468 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29469 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29470 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29471 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29472 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29473 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29474
29475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29476
29477 [BZ #18822]
29478 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29479 instead of <sys/statvfs.h>.
29480 (__internal_statvfs): Removed.
29481 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29482 instead of <sys/statvfs.h>.
29483 (__internal_statvfs64): Removed.
29484 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29485 "internal_statvfs.h" instead of <sys/statvfs.h>.
29486 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29487 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29488 instead of <sys/statvfs.h>.
29489 (__internal_statvfs): Removed.
29490 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29491 instead of <sys/statvfs.h>.
29492 (__internal_statvfs64): Removed.
29493
29494 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29495
29496 [BZ #18822]
29497 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29498 (__gconv_close): Likewise.
29499 (__gconv): Likewise.
29500 (__gconv_find_transform): Likewise.
29501 (__gconv_lookup_cache): Likewise.
29502 (__gconv_compare_alias_cache): Likewise.
29503 (__gconv_load_cache): Likewise.
29504 (__gconv_get_path): Likewise.
29505 (__gconv_close_transform): Likewise.
29506 (__gconv_release_cache): Likewise.
29507 (__gconv_find_shlib): Likewise.
29508 (__gconv_release_shlib): Likewise.
29509 (__gconv_get_builtin_trans): Likewise.
29510 (__gconv_compare_alias): Likewise.
29511 * include/dlfcn.h (_dlerror_run): Likewise.
29512 * include/stdio.h (__fortify_fail_abort): Likewise.
29513 * include/time.h (__tz_compute): Likewise.
29514 (__strptime_internal): Likewise.
29515 * intl/gettextP.h (_nl_find_domain): Likewise.
29516 (_nl_load_domain): Likewise.
29517 (_nl_find_msg): Likewise.
29518 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29519 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29520 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29521 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29522 (__gai_find_request): Likewise.
29523 (__gai_remove_request): Likewise.
29524 (__gai_notify): Likewise.
29525 (__gai_notify_only): Likewise.
29526 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29527 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29528 (_dl_non_dynamic_init): Likewise.
29529 (_dl_aux_init): Likewise.
29530 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29531 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29532 Likewise.
29533 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29534 (__wcsmbs_clone_conv): Likewise.
29535 (__wcsmbs_named_conv): Likewise.
29536
29537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29538
29539 [BZ #18822]
29540 * include/stdlib.h (__random): Add attribute_hidden.
29541 (__random_r): Likewise.
29542 (__srandom_r): Likewise.
29543 (__initstate_r): Likewise.
29544 (__setstate_r): Likewise.
29545 (__erand48_r): Likewise.
29546 (__nrand48_r): Likewise.
29547 (__jrand48_r): Likewise.
29548 (__srand48_r): Likewise.
29549 (__seed48_r): Likewise.
29550 (__lcong48_r): Likewise.
29551 (__drand48_iterate): Likewise.
29552 (__setenv): Likewise.
29553 (__unsetenv): Likewise.
29554 (__clearenv): Likewise.
29555 (__ptsname_r): Likewise.
29556 (__posix_openpt): Likewise.
29557 (__add_to_environ): Likewise.
29558 (__realpath): Add libc_hidden_proto.
29559 (__ecvt_r): Likewise.
29560 (__fcvt_r): Likewise.
29561 (__qecvt_r): Likewise.
29562 (__qfcvt_r): Likewise.
29563 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29564 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29565
29566 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29567
29568 [BZ #18822]
29569 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29570 * include/time.h (__mktime_internal): Likewise.
29571 * libio/iolibio.h (__fopen_internal): Likewise.
29572
29573 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29574
29575 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29576 pointer in frame.
29577 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29578 Correct offset used to restore PIC register.
29579
29580 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29581
29582 [BZ libc/22165]
29583 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29584 code to load address of __getcontext_ret when generating PIC code.
29585
29586 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29587
29588 * elf/Makefile (tests-static-internal): Add
29589 tst-tls1-static-non-pie.
29590 (LDFLAGS-tst-tls1-static-non-pie): New.
29591 * elf/tst-tls1-static-non-pie.c: New file.
29592
29593 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29594
29595 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29596 (asinh): Define using libm_alias_double.
29597 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29598 (cbrt): Define using libm_alias_double.
29599 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29600 <libm-alias-double.h>.
29601 (copysign): Define using libm_alias_double.
29602 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29603 (erf): Define using libm_alias_double.
29604 (erfc): Likewise.
29605 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29606 (expm1): Define using libm_alias_double.
29607 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29608 (fabs): Define using libm_alias_double.
29609 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29610 libm_alias_double.
29611 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29612 <libm-alias-double.h>.
29613 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29614 libm_alias_double.
29615 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29616 <libm-alias-double.h>.
29617 (getpayload): Define using libm_alias_double.
29618 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29619 <libm-alias-double.h>.
29620 (llrint): Define using libm_alias_double.
29621 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29622 (lrint): Define using libm_alias_double.
29623 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29624 <libm-alias-double.h>.
29625 (nextup): Define using libm_alias_double.
29626 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29627 <libm-alias-double.h>.
29628 (roundeven): Define using libm_alias_double.
29629 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29630 libm_alias_double.
29631 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29632 <libm-alias-double.h>.
29633 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29634 using libm_alias_double.
29635 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29636 (cos): Define using libm_alias_double.
29637 (sin): Likewise.
29638 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29639 <libm-alias-double.h>.
29640 (sincos): Define using libm_alias_double.
29641 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29642 (tanh): Define using libm_alias_double.
29643 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29644 <libm-alias-double.h>.
29645 (totalorder): Define using libm_alias_double.
29646 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29647 <libm-alias-double.h>.
29648 (totalordermag): Define using libm_alias_double.
29649 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29650 libm_alias_double.
29651 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29652 libm_alias_double.
29653 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29654 <libm-alias-double.h>.
29655 (getpayload): Define using libm_alias_double.
29656 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29657 <libm-alias-double.h>.
29658 (roundeven): Define using libm_alias_double.
29659 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29660 <libm-alias-double.h>.
29661 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29662 <libm-alias-double.h>.
29663 (totalorder): Define using libm_alias_double.
29664 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29665 <libm-alias-double.h>.
29666 (totalordermag): Define using libm_alias_double.
29667 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29668 libc compat symbol here.
29669 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29670 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29671 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29672 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29673 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29674 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29675 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29676 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29677 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29678 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29679
29680 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29681
29682 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29683 _dl_relocate_static_pie instead of _dl_start to compute load
29684 address in static PIE. Return 0 if _DYNAMIC is undefined for
29685 static executable.
29686
29687 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29688
29689 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29690 _DYNAMIC is undefined for static executable.
29691
29692 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29693
29694 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29695
29696 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29697
29698 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29699
29700 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29701
29702 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29703 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29704 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29705 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29706 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29707 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29708 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29709 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29710 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29711 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29712 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29713 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29714 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29715 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29716 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29717 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29718 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29719
29720 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29721
29722 * math/bits/cmathcalls.h (cimag): Remove inline.
29723 (creal): Remove inline.
29724 (conj): Remove inline.
29725
29726 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29727
29728 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29729 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29730 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29731 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29732 (issignalingf_inline): Likewise.
29733 (POWF_LOG2_TABLE_BITS): Likewise.
29734 (POWF_LOG2_POLY_ORDER): Likewise.
29735 (POWF_SCALE_BITS): Likewise.
29736 (POWF_SCALE): Likewise.
29737 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29738 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29739 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29740
29741 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29742
29743 * math/Makefile (type-float-routines): Add e_log2f_data.
29744 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29745 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29746 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29747 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29748 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29749 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29750 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29751
29752 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29753
29754 * math/Makefile (type-float-routines): Add e_logf_data.
29755 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29756 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29757 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29758 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29759 * sysdeps/i386/fpu/e_logf_data.c: New file.
29760 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29761 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29762
29763 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29764
29765 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29766 undefined _DYNAMIC in PIE libc.a.
29767 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29768 Likewse.
29769
29770 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29771
29772 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29773 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29774 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29775 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29776 (__signbit): Remove.
29777 (__signbitl): Remove.
29778 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29779 (__signbit): Remove.
29780 (__signbitl): Remove.
29781 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29782 (__signbit): Remove.
29783 (__signbitl): Remove.
29784 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29785 (__signbit): Remove.
29786 (__signbitl): Remove.
29787 * sysdeps/tile/bits/mathinline.h: Delete file.
29788 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29789 (__signbit): Remove.
29790 (__signbitl): Remove.
29791
29792 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29793
29794 * math/math.h: Improve handling of C99 isgreater macros.
29795 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29796 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29797 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29798 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29799 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29800
29801 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29802
29803 * sysdeps/aarch64/libm-test-ulps: Update.
29804
29805 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29806
29807 [BZ #22225]
29808 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29809 math_opt_barrier on argument when doing arithmetic on it.
29810 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29811 Likewise. Use math_force_eval not math_opt_barrier after
29812 arithmetic.
29813 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29814 math_opt_barrier on argument when doing arithmetic on it.
29815 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29816 Likewise.
29817
29818 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29819
29820 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29821 libc_hidden_def.
29822 (__freeifaddrs): Likewise.
29823
29824 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29825
29826 * include/dirent.h (__dirfd): New declaration.
29827 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29828 alias.
29829 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29830 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29831 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29832 * include/unistd.h (__revoke): New declaration.
29833 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29834 alias.
29835 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29836 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29837 revoke.
29838 * include/dirent.h (__seekdir): New declaration.
29839 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29840 redefine as weak alias.
29841 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29842 of seekdir.
29843 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29844 and use libc_hidden_def on them.
29845 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29846 them.
29847 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29848 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29849 instead of getifaddrs and freeifaddrs.
29850
29851 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29852
29853 [BZ #18822]
29854 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29855 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29856 (__dso_handle): Remove declaration.
29857 * dlfcn/tstatexit.c (__dso_handle): Removed.
29858 (main): Don't check __dso_handle.
29859 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29860 (main): Don't check __dso_handle.
29861 * include/dso_handle.h: New file.
29862 * malloc/mtrace.c: Include <dso_handle.h>.
29863 (mtrace): Pass __dso_handle directly.
29864 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29865 (__dso_handle): Remove declaration.
29866 (__pthread_atfork): Pass __dso_handle directly.
29867 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29868 (__dso_handle): Removed.
29869 * posix/wordexp-test.c: Include <dso_handle.h>.
29870 (__dso_handle): Remove declaration.
29871 (__app_register_atfork): Pass __dso_handle directly.
29872 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29873 (__dso_handle): Remove declaration.
29874 (at_quick_exit): Pass __dso_handle directly.
29875 * stdlib/atexit.c: Include <dso_handle.h>.
29876 (__dso_handle): Remove declaration.
29877 (atexit): Pass __dso_handle directly.
29878 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29879 (__dso_handle): Removed.
29880
29881 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29882
29883 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29884 using VDSO.
29885
29886 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29887
29888 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29889 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29890 values to correct default value for given type.
29891
29892 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29893
29894 [BZ #22101]
29895 * elf/Makefile (tests): Add tst-debug1.
29896 ($(objpfx)tst-debug1): New.
29897 ($(objpfx)tst-debug1.out): Likewise.
29898 ($(objpfx)tst-debug1mod1.so): Likewise.
29899 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29900 with p_filesz == 0.
29901 * elf/tst-debug1.c: New file.
29902
29903 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29904
29905 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29906 Define using __ifunc.
29907
29908 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29909
29910 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29911 exp2f() values.
29912
29913 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29914
29915 [BZ #22156]
29916 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29917
29918 2017-09-26 Florian Weimer <fweimer@redhat.com>
29919
29920 * resolv/Makefile (tests-internal): Fix typo in comment.
29921
29922 2017-09-26 Florian Weimer <fweimer@redhat.com>
29923
29924 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29925
29926 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29927
29928 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29929 Use an union instead of a max_align_t array for __space,
29930 so that __space is the same size on all platforms.
29931 * malloc/scratch_buffer_grow_preserve.c
29932 (__libc_scratch_buffer_grow_preserve): Likewise.
29933
29934 [BZ #22183]
29935 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29936 version to 2.
29937 * posix/Makefile (routines): Add glob-lstat-compat and
29938 glob64-lstat-compat.
29939 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29940 * posix/glob-lstat-compat.c: New file.
29941 * posix/glob64-lstat-compat.c: Likewise.
29942 * posix/tst-glob_lstat_compat.c: Likewise.
29943 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29944 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29945 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29946 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29947 Likewise.
29948 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29949 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29950 * posix/glob.c (glob_lstat): New function.
29951 (glob): Rename to __glob and add versioned symbol to 2.27.
29952 (glob_in_dir): Use glob_lstat.
29953 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29954 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29955 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29956 2.27.
29957 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29958 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29959 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29960 gl_lstat on glob call.
29961 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29962 and glob64 symbols.
29963 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29964 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29965 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29966 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29967 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29968 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29969 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29970 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29971 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29972 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29973 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29974 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29976 Likewise.
29977 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29979 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29980 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29981 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29982 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29983 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29984 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29985 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29986 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29987 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29988 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29989
29990 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29991
29992 * configure.ac (AS): Require binutils 2.25 or later.
29993 * configure: Regenerated.
29994
29995 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29996
29997 [BZ #22207]
29998 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29999 VM size.
30000
30001 2017-09-25 DJ Delorie <dj@redhat.com>
30002
30003 [BZ #22161]
30004 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
30005 resetting timeout.
30006
30007 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
30008
30009 * sysdeps/ieee754/dbl-64/sincos32.h
30010 [SINCCOS32_H]: Remove define.
30011 [SINCOS32_H]: Define.
30012
30013 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30014
30015 * math/Versions (expf): New libm symbol at GLIBC_2.27.
30016 (exp2f): Likewise.
30017 * math/w_exp2f.c: New file.
30018 * math/w_expf.c: New file.
30019 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
30020 * math/w_expf_compat.c (__expf_compat): Likewise.
30021 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
30022 * sysdeps/ia64/fpu/e_expf.S: Likewise.
30023 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30024 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30025 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30026 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30027 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30028 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30029 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30030 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30031 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30032 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30033 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30034 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30036 Likewise.
30037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30038 Likewise.
30039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30040 Likewise.
30041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30042 Likewise.
30043 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30044 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30045 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30046 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30047 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30048 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30049 Likewise.
30050 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30051 Likewise.
30052 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30053 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30054 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30055
30056 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30057
30058 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
30059 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
30060 (roundtoint, converttoint): Likewise.
30061 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
30062 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
30063 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
30064 * sysdeps/ieee754/flt-32/math_config.h: New file.
30065 * sysdeps/ieee754/flt-32/math_errf.c: New file.
30066 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
30067 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
30068 * sysdeps/i386/fpu/math_errf.c: New file.
30069 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
30070 * sysdeps/ia64/fpu/math_errf.c: New file.
30071 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
30072 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
30073
30074 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30075
30076 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
30077 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
30078 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
30079 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
30080 to make sure that these symbols are defined.
30081 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
30082 of <limits.h>
30083 (__need_NULL): Do not define.
30084 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
30085 alignment.
30086 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
30087 CMGROUP_MAX, cmsgcred): Do not define.
30088 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
30089 NULL.
30090 * bits/socket.h: Likewise.
30091 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
30092 __gettimeofday instead of gettimeofday.
30093 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
30094 instead of settimeofday.
30095
30096 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30097
30098 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
30099 (asinhf): Define using libm_alias_float.
30100 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
30101 (atanf): Define using libm_alias_float.
30102 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
30103 (cbrtf): Define using libm_alias_float.
30104 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
30105 (ceilf): Define using libm_alias_float.
30106 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
30107 <libm-alias-float.h>.
30108 (copysignf): Define using libm_alias_float.
30109 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
30110 (cosf): Define using libm_alias_float.
30111 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
30112 (erff): Define using libm_alias_float.
30113 (erfcf): Likewise.
30114 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
30115 (expm1f): Define using libm_alias_float.
30116 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
30117 (fabsf): Define using libm_alias_float.
30118 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
30119 (floorf): Define using libm_alias_float.
30120 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
30121 (frexpf): Define using libm_alias_float.
30122 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
30123 libm_alias_float.
30124 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
30125 <libm-alias-float.h>.
30126 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
30127 libm_alias_float.
30128 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
30129 <libm-alias-float.h>.
30130 (getpayloadf): Define using libm_alias_float.
30131 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
30132 <libm-alias-float.h>.
30133 (llrintf): Define using libm_alias_float.
30134 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
30135 <libm-alias-float.h>.
30136 (llroundf): Define using libm_alias_float.
30137 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
30138 (logbf): Define using libm_alias_float.
30139 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
30140 (lrintf): Define using libm_alias_float.
30141 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
30142 (lroundf): Define using libm_alias_float.
30143 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30144 (modff): Define using libm_alias_float.
30145 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30146 <libm-alias-float.h>.
30147 (nearbyintf): Define using libm_alias_float.
30148 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30149 <libm-alias-float.h>.
30150 (nextafterf): Define using libm_alias_float.
30151 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30152 <libm-alias-float.h>.
30153 (nextupf): Define using libm_alias_float.
30154 * sysdeps/ieee754/flt-32/s_remquof.c: Include
30155 <libm-alias-float.h>.
30156 (remquof): Define using libm_alias_float.
30157 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30158 (rintf): Define using libm_alias_float.
30159 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30160 <libm-alias-float.h>.
30161 (roundevenf): Define using libm_alias_float.
30162 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30163 (roundf): Define using libm_alias_float.
30164 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30165 using libm_alias_float.
30166 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30167 <libm-alias-float.h>.
30168 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30169 Define using libm_alias_float.
30170 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30171 <libm-alias-float.h>.
30172 (sincosf): Define using libm_alias_float.
30173 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30174 (sinf): Define using libm_alias_float.
30175 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30176 (tanf): Define using libm_alias_float.
30177 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30178 (tanhf): Define using libm_alias_float.
30179 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30180 <libm-alias-float.h>.
30181 (totalorderf): Define using libm_alias_float.
30182 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30183 <libm-alias-float.h>.
30184 (totalordermagf): Define using libm_alias_float.
30185 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30186 (truncf): Define using libm_alias_float.
30187 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30188 libm_alias_float.
30189 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30190 libm_alias_float.
30191
30192 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30193
30194 [BZ #22146]
30195 math/math.h: Let fpclassify use the builtin in C++ mode, even
30196 when optimazing for size.
30197
30198 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30199
30200 * csu/Makefile (generated): Do not add version-info.h.
30201 (before-compile): Likewise.
30202 (all-Banner-files): Remove variable.
30203 ($(objpfx)version-info.h): Remove rule.
30204 * csu/version.c (banner): Do not include "version-info.h".
30205 * libidn/Banner: Remove.
30206 * manual/contrib.texi (Simon Josefsson): New entry.
30207
30208 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30209
30210 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30211 Remove conditionals on LDBL_MANT_DIG.
30212 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30213 (__ieee754_lgammal_r): Likewise.
30214
30215 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30216
30217 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30218 _Float128 and L().
30219 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30220 _Float128 and L(). Replace _Float128 with long double and L(x)
30221 with xL, throughout the file.
30222 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30223 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30224 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30225 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30226
30227 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30228
30229 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30230 sysdeps/ieee754/ldbl-128ibm.
30231 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30232 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30233 of including it. Keep _Float128 and L() intact. These will be
30234 reviewed by a separate patch.
30235 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30236 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30237 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30238 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30239
30240 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30241
30242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30243 (__finitef128): Define to __redirect___finitef128.
30244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30245 (__isinff128): Define to __redirect___isinff128.
30246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30247 (__isnanf128): Define to __redirect___isnanf128.
30248
30249 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30250
30251 * sysdeps/powerpc/powerpc64le/Makefile
30252 (CFLAGS-tst-strtod-nan-locale.c): New variable.
30253 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30254
30255 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
30256 Carlos O'Donell <carlos@redhat.com>
30257
30258 [BZ #22180]
30259 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30260 * stdlib/test-dlclose-exit-race.c: New file.
30261 * stdlib/test-dlclose-exit-race-helper.c: New file.
30262 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30263
30264 2017-09-21 Joseph Myers <joseph@codesourcery.com>
30265
30266 * crypt/Banner: Remove file.
30267 * nptl/Banner: Likewise.
30268 * resolv/Banner: Likewise.
30269 * soft-fp/Banner: Likewise.
30270 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30271 ($(objpfx)version.d): Remove dependency on banner.h.
30272 ($(objpfx)version.os): Likewise.
30273 * nptl/version.c (banner): Do not include banner.h.
30274 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30275 Jelinek and BIND code.
30276
30277 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30278 Carlos O'Donell <carlos@redhat.com>
30279
30280 * support/xdlfcn.h: New file.
30281 * support/xdlfcn.c: New file.
30282 * support/Makefile (libsupport-routines): Add xdlfcn.
30283 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30284
30285 2017-09-20 Joseph Myers <joseph@codesourcery.com>
30286
30287 [BZ #20142]
30288 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30289 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30290 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30291 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30292 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30293 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30294 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30295 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30296
30297 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30298 Ricky Zhou <rickyz@google.com>
30299 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
30300
30301 [BZ #14333]
30302 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30303 Remove atomics.
30304 (__new_exitfn): Fail registration when we finished at_exit processing.
30305 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30306 * stdlib/on_exit.c (__on_exit): Likewise.
30307 * stdlib/exit.c (__exit_funcs_done): New variable.
30308 (__run_exit_handlers): Use __exit_funcs_lock.
30309 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30310 declarations.
30311 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30312 (test-cxa_atexit-race, test-on_exit-race): New tests.
30313 * stdlib/test-atexit-race-common.c: New file.
30314 * stdlib/test-atexit-race.c: New file.
30315 * stdlib/test-at_quick_exit-race.c: New file.
30316 * stdlib/test-cxa_atexit-race.c: New file.
30317 * stdlib/test-on_exit-race.c: New file.
30318
30319 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
30320
30321 * benchtests/Makefile: Add exp2f and log2f benchmarks.
30322 * benchtests/exp2f-inputs: Copy of expf-inputs.
30323 * benchtests/log2f-inputs: Copy of logf-inputs.
30324
30325 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30326
30327 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30328 Explicitly take address of first element of array arguments in
30329 call to INLINE_SYSCALL.
30330
30331 2017-09-19 Andreas Schwab <schwab@suse.de>
30332
30333 [BZ #22134]
30334 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30335 execveat first.
30336 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30337 unimplemented.
30338 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30339 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30340 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30341 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30342 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30343 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30344 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30345 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30346 * posix/Makefile (tests): Add tst-fexecve.
30347 * posix/tst-fexecve.c: New file.
30348
30349 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30350
30351 * benchtests/Makefile: Add logf benchmark.
30352 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30353
30354 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30355
30356 * benchtests/Makefile: Add expf benchmark.
30357 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30358
30359 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30360
30361 * csu/Makefile: Add -funwind-tables to libc-start.c.
30362 * debug/Makefile: Add -funwind-tables to backtrace.c.
30363 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30364 * sysdeps/arm/Makefile: Likewise.
30365 * sysdeps/i386/Makefile: Likewise.
30366 * sysdeps/m68k/Makefile: Likewise.
30367 * sysdeps/mips/Makefile: Likewise.
30368 * sysdeps/nios2/Makefile: Likewise.
30369 * sysdeps/sh/Makefile: Likewise.
30370 * sysdeps/sparc/Makefile: Likewise.
30371
30372 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30373
30374 * benchtests/Makefile (bench-math): Add trunc and truncf.
30375 (CFLAGS-bench-trunc.c): New variable.
30376 (CFLAGS-bench-truncf.c): Likewise.
30377 * benchtests/trunc-inputs: New file.
30378 * benchtests/truncf-inputs: Likewise.
30379
30380 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30381
30382 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30383
30384 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30385
30386 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30387 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30388 redefine.
30389 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30390 (exp10l): Define as weak alias.
30391 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30392 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30393 and redefine.
30394 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30395 (remainderl): Define as weak alias.
30396
30397 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30398 (fmal): Define using libm_alias_ldouble.
30399 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30400 (acoshl): Define using libm_alias_ldouble.
30401 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30402 (acosl): Define using libm_alias_ldouble.
30403 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30404 (asinl): Define using libm_alias_ldouble.
30405 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30406 (atan2l): Define using libm_alias_ldouble.
30407 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30408 (atanhl): Define using libm_alias_ldouble.
30409 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30410 (coshl): Define using libm_alias_ldouble.
30411 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30412 (exp10l): Define using libm_alias_ldouble.
30413 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30414 (exp2l): Define using libm_alias_ldouble.
30415 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30416 (expl): Define using libm_alias_ldouble.
30417 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30418 (fmodl): Define using libm_alias_ldouble.
30419 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30420 (hypotl): Define using libm_alias_ldouble.
30421 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30422 (j0l): Define using libm_alias_ldouble.
30423 (y0l): Likewise.
30424 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30425 (j1l): Define using libm_alias_ldouble.
30426 (y1l): Likewise.
30427 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30428 (jnl): Define using libm_alias_ldouble.
30429 (ynl): Likewise.
30430 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30431 (log10l): Define using libm_alias_ldouble.
30432 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30433 (log2l): Define using libm_alias_ldouble.
30434 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30435 (logl): Define using libm_alias_ldouble.
30436 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30437 (powl): Define using libm_alias_ldouble.
30438 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30439 (remainderl): Define using libm_alias_ldouble.
30440 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30441 (sinhl): Define using libm_alias_ldouble.
30442 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30443 (sqrtl): Define using libm_alias_ldouble.
30444 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30445 (tgammal): Define using libm_alias_ldouble.
30446 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30447 (exp10l): Do not use long_double_symbol here.
30448 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30449 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30450 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30451 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30452 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30453 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30454 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30455 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30456 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30457 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30458 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30459 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30460 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30461 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30462 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30463 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30464 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30465 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30466 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30467 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30468 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30469 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30470
30471 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30472
30473 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30474 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30475
30476 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30477
30478 * io/read.c (read): Add libc_hidden_weak.
30479 * sysdeps/mach/hurd/read.c (read): Likewise.
30480 * io/write.c (write): Likewise.
30481 * sysdeps/mach/hurd/write.c (write): Likewise.
30482 * io/pread64.c (__pread64): Likewise.
30483 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30484 * posix/pread64.c (__pread64): Add libc_hidden_def.
30485
30486 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30487
30488 * benchtests/scripts/compare_strings.py: New option -g.
30489 (draw_graph): Print a message that a graph is being generated.
30490 (process_results): Generate graph only if -g is passed.
30491 (main): Process option -g.
30492
30493 * benchtests/scripts/compare_strings.py (process_results):
30494 Better spacing for output.
30495
30496 * benchtests/scripts/compare_strings.py: Use argparse.
30497 * benchtests/README: Document existence of compare_strings.py.
30498
30499 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30500
30501 * math/s_fma.c: Include <libm-alias-double.h>.
30502 (fma): Define using libm_alias_double.
30503 * math/s_nextafter.c: Include <libm-alias-double.h>.
30504 (nextafter): Define using libm_alias_double.
30505 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30506 (acos): Define using libm_alias_double.
30507 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30508 (aocsh): Define using libm_alias_double.
30509 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30510 (asin): Define using libm_alias_double.
30511 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30512 (atan2): Define using libm_alias_double.
30513 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30514 (atanh): Define using libm_alias_double.
30515 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30516 (cosh): Define using libm_alias_double.
30517 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30518 (exp10): Define using libm_alias_double.
30519 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30520 (exp2): Define using libm_alias_double.
30521 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30522 (exp): Define using libm_alias_double.
30523 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30524 (fmod): Define using libm_alias_double.
30525 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30526 (hypot): Define using libm_alias_double.
30527 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30528 (j0): Define using libm_alias_double.
30529 (y0): Likewise.
30530 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30531 (j1): Define using libm_alias_double.
30532 (y1): Likewise.
30533 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30534 (jn): Define using libm_alias_double.
30535 (yn): Likewise.
30536 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30537 (log10): Define using libm_alias_double.
30538 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30539 (log2): Define using libm_alias_double.
30540 * math/w_log_compat.c: Include <libm-alias-double.h>.
30541 (log): Define using libm_alias_double.
30542 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30543 (pow): Define using libm_alias_double.
30544 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30545 (remainder): Define using libm_alias_double.
30546 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30547 (sinh): Define using libm_alias_double.
30548 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30549 (sqrt): Define using libm_alias_double.
30550 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30551 (tgamma): Define using libm_alias_double.
30552 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30553 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30554 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30555 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30556 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30557 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30558 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30559 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30560 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30561 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30562 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30563 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30564 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30565 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30566 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30567 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30568 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30569 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30570 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30571 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30572 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30573 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30574 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30575 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30576 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30577
30578 * math/e_acoshl.c: Remove.
30579 * math/e_acosl.c: Likewise.
30580 * math/e_asinl.c: Likewise.
30581 * math/e_atan2l.c: Likewise.
30582 * math/e_atanhl.c: Likewise.
30583 * math/e_coshl.c: Likewise.
30584 * math/e_expl.c: Likewise.
30585 * math/e_fmodl.c: Likewise.
30586 * math/e_gammal_r.c: Likewise.
30587 * math/e_hypotl.c: Likewise.
30588 * math/e_j0l.c: Likewise.
30589 * math/e_j1l.c: Likewise.
30590 * math/e_jnl.c: Likewise.
30591 * math/e_lgammal_r.c: Likewise.
30592 * math/e_log10l.c: Likewise.
30593 * math/e_log2l.c: Likewise.
30594 * math/e_logl.c: Likewise.
30595 * math/e_powl.c: Likewise.
30596 * math/e_rem_pio2l.c: Likewise.
30597 * math/e_sinhl.c: Likewise.
30598 * math/e_sqrtf128.c: Likewise.
30599 * math/e_sqrtl.c: Likewise.
30600 * math/k_cosl.c: Likewise.
30601 * math/k_sinl.c: Likewise.
30602 * math/k_tanl.c: Likewise.
30603 * math/s_asinhl.c: Likewise.
30604 * math/s_atanl.c: Likewise.
30605 * math/s_cbrtl.c: Likewise.
30606 * math/s_erfl.c: Likewise.
30607 * math/s_expm1l.c: Likewise.
30608 * math/s_log1pl.c: Likewise.
30609 * math/s_tanhl.c: Likewise.
30610
30611 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30612
30613 [BZ #21745]
30614 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30615 [$(subdir) = math] (sysdep_calls): New variable. Has the
30616 previous contents of sysdep_routines, but re-sorted..
30617 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30618 sysdep_calls.
30619 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30620 defined in sysdep_calls and replace by the respective m_* names.
30621 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30622 (compat_symbol): Undefine to avoid duplicated compat symbols in
30623 libc.
30624
30625 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30626
30627 * math/s_fmaf.c: Include <libm-alias-float.h>.
30628 (fmaf): Define using libm_alias_float.
30629 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30630 (acosf): Define using libm_alias_float.
30631 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30632 (acoshf): Define using libm_alias_float.
30633 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30634 (asinf): Define using libm_alias_float.
30635 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30636 (atan2f): Define using libm_alias_float.
30637 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30638 (atanhf): Define using libm_alias_float.
30639 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30640 (coshf): Define using libm_alias_float.
30641 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30642 (exp10f): Define using libm_alias_float.
30643 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30644 (fmodf): Define using libm_alias_float.
30645 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30646 (hypotf): Define using libm_alias_float.
30647 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30648 (j0f): Define using libm_alias_float.
30649 (y0f): Likewise.
30650 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30651 (j1f): Define using libm_alias_float.
30652 (y1f): Likewise.
30653 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30654 (jnf): Define using libm_alias_float.
30655 (ynf): Likewise.
30656 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30657 (log10f): Define using libm_alias_float.
30658 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30659 (log2f): Define using libm_alias_float.
30660 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30661 (logf): Define using libm_alias_float.
30662 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30663 (powf): Define using libm_alias_float.
30664 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30665 (remainderf): Define using libm_alias_float.
30666 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30667 (sinhf): Define using libm_alias_float.
30668 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30669 (sqrtf): Define using libm_alias_float.
30670 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30671 (tgammaf): Define using libm_alias_float.
30672
30673 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30674
30675 * include/math.h (roundeven): Change hidden_proto call to
30676 __roundeven.
30677 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30678 alias.
30679 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30680 (y0): Rename to __y0 and define as weak alias.
30681 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30682 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30683 alias.
30684 (y0f): Rename to __y0f and define as weak alias.
30685 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30686 alias.
30687 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30688 (y1): Rename to __y1 and define as weak alias.
30689 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30690 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30691 alias.
30692 (y1f): Rename to __y1f and define as weak alias.
30693 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30694 alias.
30695 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30696 (yn): Rename to __yn and define as weak alias.
30697 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30698 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30699 alias.
30700 (ynf): Rename to __ynf and define as weak alias.
30701 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30702 (fromfp): Define as weak alias.
30703 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30704 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30705 (fromfpx): Define as weak alias.
30706 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30707 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30708 __getpayload and define as weak alias.
30709 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30710 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30711 __roundeven and define as weak alias.
30712 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30713 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30714 __setpayload.
30715 (setpayload): Define as weak alias.
30716 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30717 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30718 __setpayloadsig.
30719 (setpayloadsig): Define as weak alias.
30720 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30721 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30722 __totalorder and define as weak alias.
30723 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30724 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30725 to __totalordermag and define as weak alias.
30726 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30727 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30728 (ufromfp): Define as weak alias.
30729 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30730 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30731 __ufromfpx.
30732 (ufromfpx): Define as weak alias.
30733 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30734 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30735 Rename to __getpayload and define as weak alias.
30736 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30737 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30738 Rename to __roundeven and define as weak alias.
30739 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30740 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30741 Rename to __totalorder and define as weak alias.
30742 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30743 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30744 (totalordermag): Rename to __totalordermag and define as weak
30745 alias.
30746 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30747 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30748 macro.
30749 (__roundevenl): Likewise.
30750 (__totalorderl): Likewise.
30751 (__totalordermagl): Likewise
30752 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30753 __fromfpf128.
30754 (fromfpf128): Define as weak alias.
30755 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30756 __fromfpxf128.
30757 (fromfpxf128): Define as weak alias.
30758 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30759 __setpayloadf128.
30760 (setpayloadf128): Define as weak alias.
30761 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30762 __setpayloadsigf128.
30763 (setpayloadsigf128): Define as weak alias.
30764 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30765 __ufromfpf128.
30766 (ufromfpf128): Define as weak alias.
30767 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30768 __ufromfpxf128.
30769 (ufromfpxf128): Define as weak alias.
30770 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30771 (fromfpf): Define as weak alias.
30772 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30773 __fromfpxf.
30774 (fromfpxf): Define as weak alias.
30775 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30776 __getpayloadf and define as weak alias.
30777 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30778 __roundevenf and define as weak alias.
30779 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30780 __setpayloadf.
30781 (setpayloadf): Define as weak alias.
30782 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30783 __setpayloadsigf.
30784 (setpayloadsigf): Define as weak alias.
30785 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30786 __totalorderf and define as weak alias.
30787 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30788 Rename to __totalordermagf and define as weak alias.
30789 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30790 __ufromfpf.
30791 (ufromfpf): Define as weak alias.
30792 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30793 __ufromfpxf.
30794 (ufromfpxf): Define as weak alias.
30795 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30796 __fromfpl.
30797 (fromfpl): Define as weak alias.
30798 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30799 __fromfpxl.
30800 (fromfpxl): Define as weak alias.
30801 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30802 to __getpayloadl and define as weak alias.
30803 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30804 __roundevenl and define as weak alias.
30805 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30806 __setpayloadl.
30807 (setpayloadl): Define as weak alias.
30808 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30809 __setpayloadsigl.
30810 (setpayloadsigl): Define as weak alias.
30811 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30812 to __totalorderl and define as weak alias.
30813 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30814 Rename to __totalordermagl and define as weak alias.
30815 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30816 __ufromfpl.
30817 (ufromfpl): Define as weak alias.
30818 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30819 __ufromfpxl.
30820 (ufromfpxl): Define as weak alias.
30821 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30822 __fromfpl.
30823 (fromfpl): Define as weak alias.
30824 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30825 __fromfpxl.
30826 (fromfpxl): Define as weak alias.
30827 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30828 Rename to __getpayloadl and define as weak alias.
30829 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30830 to __roundevenl and define as weak alias. Call __roundeven
30831 instead of roundeven.
30832 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30833 __setpayloadl.
30834 (setpayloadl): Define as weak alias.
30835 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30836 __setpayloadsigl.
30837 (setpayloadsigl): Define as weak alias.
30838 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30839 Rename to __totalorderl and define as weak alias.
30840 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30841 Rename to __totalordermagl and define as weak alias.
30842 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30843 __ufromfpl.
30844 (ufromfpl): Define as weak alias.
30845 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30846 __ufromfpxl.
30847 (ufromfpxl): Define as weak alias.
30848 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30849 __fromfpl.
30850 (fromfpl): Define as weak alias.
30851 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30852 __fromfpxl.
30853 (fromfpxl): Define as weak alias.
30854 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30855 __getpayloadl and define as weak alias.
30856 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30857 __roundevenl and define as weak alias.
30858 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30859 __setpayloadl.
30860 (setpayloadl): Define as weak alias.
30861 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30862 __setpayloadsigl.
30863 (setpayloadsigl): Define as weak alias.
30864 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30865 __totalorderl and define as weak alias.
30866 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30867 Rename to __totalordermagl and define as weak alias.
30868 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30869 __ufromfpl.
30870 (ufromfpl): Define as weak alias.
30871 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30872 __ufromfpxl.
30873 (ufromfpxl): Define as weak alias.
30874
30875 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30876
30877 * benchtests/bench-string.h (realloc_bufs): New function.
30878 (test_init): Call it.
30879 * benchtests/bench-memset-large.c (do_test): Likewise.
30880 * benchtests/bench-memset.c (do_test): Likewise.
30881
30882 * benchtests/bench-memset-large.c: Print output in JSON
30883 format.
30884 * benchtests/bench-memset.c: Likewise.
30885
30886 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30887
30888 [BZ #21084]
30889 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30890 * iconvdata/Makefile: Add IBM858.
30891 * iconvdata/gconv-modules: Likewise.
30892 * iconvdata/tst-tables.sh: Likewise.
30893 * iconvdata/ibm858.c: New file.
30894 * localedata/charmaps/IBM858: Likewise.
30895
30896 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30897
30898 [BZ #22023]
30899 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30900 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30901
30902 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30903
30904 [BZ #22112]
30905 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30906 and add tel_int_fmt.
30907
30908 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30909
30910 * sysdeps/generic/libm-alias-float128.h: New file.
30911 * sysdeps/generic/math-type-macros-float128.h: Include
30912 <libm-alias-float128.h>.
30913 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30914
30915 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30916
30917 * sysdeps/generic/libm-alias-ldouble.h: New file.
30918 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30919 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30920 * sysdeps/generic/math-type-macros-ldouble.h: Include
30921 <libm-alias-ldouble.h>.
30922 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30923 libm_alias_ldouble.
30924
30925 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30926
30927 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30928 * math/w_exp_compat.c: ... here.
30929 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30930 * math/w_expf_compat.c: ... here.
30931 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30932 * math/w_expl_compat.c: ... here.
30933 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30934 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30935 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30936 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30937
30938 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30939
30940 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30941 redefine.
30942 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30943 macro.
30944 (ldexpl): Only define as compat symbol for libc, not libm.
30945 (scalbnl): Define as compat symbol for libc here.
30946 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30947 define for [IS_IN (libc)].
30948 (__ldexpl_2): Remove alias.
30949 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30950 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30951 name in long_double_symbol call.
30952 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30953 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30954 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30955 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30956 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30957 Remove macro.
30958 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30959 Define as compat symbol.
30960
30961 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30962
30963 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30964 * sysdeps/unix/sysv/linux/alpha/Makefile
30965 [$(subdir) = csu] (sysdep_routines): Remove rule.
30966
30967 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30968
30969 * sysdeps/generic/libm-alias-double.h: New file.
30970 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30971 * sysdeps/generic/math-type-macros-double.h: Include
30972 <libm-alias-double.h>.
30973 [declare_mgen_alias] (declare_mgen_alias): Define to use
30974 libm_alias_double.
30975 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30976 (M_LIBM_NEED_COMPAT): Remove macro.
30977 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30978 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30979 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30980 code.
30981 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30982 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30983 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30984 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30985 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30986 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30987 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30988 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30989 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30990 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30991 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30992 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30993 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30994 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30995 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30996 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30997 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30998 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30999 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31000 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31001 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31002 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31003 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31004 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31005 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31006 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31007 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
31008 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
31009 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
31010 macro.
31011 (declare_mgen_alias): New macro.
31012 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
31013 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
31014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
31015 (M_LIBM_NEED_COMPAT): Remove macro.
31016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
31017 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
31018 <first-versions.h>.
31019 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
31020 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
31021
31022 2017-09-12 Joseph Myers <joseph@codesourcery.com>
31023
31024 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
31025 (declare_mgen_alias_2): Remove.
31026 * sysdeps/generic/math-type-macros-double.h
31027 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
31028 Likewise.
31029 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
31030 alias.
31031 (ldexp): Define with declare_mgen_alias.
31032 (scalbn): Likewise.
31033
31034 2017-09-12 Steve Ellcey <sellcey@cavium.com>
31035
31036 * grp/initgroups.c: Include config.h.
31037 (DEFAULT_CONFIG): New macro.
31038 (internal_getgrouplist): Use DEFAULT_CONFIG.
31039 * nscd/initgrcache.c (addinitgroupsX): Likewise.
31040 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
31041 (DEFAULT_DEFCONFIG): New macro.
31042 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
31043 * nss/grp-lookup.c: Include config.h
31044 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
31045 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
31046 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
31047 * manual/nss.texi: Update default values section.
31048
31049 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
31050
31051 [BZ #21967]
31052 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
31053 New.
31054 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
31055 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31056 Handle MathVec_Prefer_No_AVX512.
31057 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
31058 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
31059 is set.
31060
31061 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
31062
31063 * posix/sched_primax.c (__sched_get_priority_max): Add
31064 libc_hidden_def.
31065 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
31066 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31067 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31068 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
31069 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
31070 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
31071 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
31072 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
31073 Add aliases.
31074
31075 2017-09-11 Joseph Myers <joseph@codesourcery.com>
31076
31077 * sysdeps/generic/libm-alias-float.h: New file.
31078 * sysdeps/generic/math-type-macros-float.h: Include
31079 <libm-alias-float.h>.
31080 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
31081
31082 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
31083
31084 [BZ #22093]
31085 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
31086 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
31087 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
31088 (HWCAP_IMPORTANT): Likewise.
31089 (HWCAP_X86_64): New enum.
31090 (HWCAP_X86_AVX512_1): Updated.
31091 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
31092 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
31093 (modules-names): Add x86_64/tst-x86_64mod-1.
31094 (LDFLAGS-tst-x86_64mod-1.so): New.
31095 ($(objpfx)tst-x86_64-1): Likewise.
31096 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
31097 (tst-x86_64-1-clean): Likewise.
31098 * sysdeps/x86_64/tst-x86_64-1.c: New file.
31099 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
31100
31101 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31102
31103 * po/sv.po: Update translations.
31104 * po/fr.po: Likewise.
31105
31106 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
31107
31108 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
31109 seconds.
31110 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
31111 seconds.
31112 * elf/rtld-Rules: Fix $(error) use.
31113
31114 2017-09-09 Mike FABIAN <mfabian@redhat.com>
31115
31116 [BZ #14925]
31117 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
31118 * locale/iso-639.def: Change “Bengali” to “Bangla”.
31119 * localedata/locales/bn_BD: “Bengali” was still used in some
31120 comments. Change it to “Bangla”.
31121
31122 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
31123
31124 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
31125
31126 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31127
31128 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
31129 thunderx2t99p1 to list of cpu names.
31130 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31131 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
31132
31133 2017-09-08 Steve Ellcey <sellcey@cavium.com>
31134
31135 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
31136 Use strcmp instead of tunable_is_name.
31137
31138 2017-09-08 Joseph Myers <joseph@codesourcery.com>
31139
31140 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31141 (F_GET_RW_HINT): New macro.
31142 [__USE_GNU] (F_SET_RW_HINT): Likewise.
31143 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31144 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31145 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31146 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31147 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31148 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31149 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31150 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31151
31152 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31153 (F_ADD_SEALS): New macro.
31154 [__USE_GNU] (F_GET_SEALS): Likewise.
31155 [__USE_GNU] (F_SEAL_SEAL): Likewise.
31156 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31157 [__USE_GNU] (F_SEAL_GROW): Likewise.
31158 [__USE_GNU] (F_SEAL_WRITE): Likewise.
31159
31160 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31161
31162 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31163 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31164 * posix/glob_internal.h (__glob_pattern_type):
31165 * posix/glob.c (glob):
31166 * posix/glob_pattern_p.c (__glob_pattern_p):
31167 Use them.
31168
31169 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31170 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31171 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31172 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31173 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31175 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31176 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31177 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31178 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31179 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31180 * sysdeps/wordsize-64/glob.c: Likewise.
31181 * sysdeps/wordsize-64/glob64.c: Likewise.
31182 * sysdeps/wordsize-64/globfree.c: Likewise.
31183 * sysdeps/wordsize-64/globfree64.c: Likewise.
31184 * sysdeps/unix/sysv/linux/glob.c: New file.
31185 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31186 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31187 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31188 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31189 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31190 adds !GLOB_NO_OLD_VERSION as an extra condition.
31191 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31192 using relative path instead of absolute one.
31193 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31194 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31195 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31196 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31197 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31198 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31199
31200 [BZ #1062]
31201 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31202 (glob): Use the same scratch buffer for both getlogin_r and
31203 getpwnam_r. Don’t require preallocation of the login name. This
31204 simplifies storage allocation, and corrects the handling of
31205 long login names.
31206
31207 [BZ #1062]
31208 * posix/glob.c (glob): Port recent patches to platforms
31209 lacking getpwnam_r.
31210 (glob): Fix longstanding misuse of errno after getpwnam_r, which
31211 returns an error number rather than setting errno.
31212
31213 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31214 instead of GCC extension.
31215 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31216 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31217 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31218
31219 [BZ #866]
31220 [BZ #1062]
31221 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31222 * posix/bug-glob1.c: Remove file.
31223 * posix/tst-glob_symlinks.c: New file.
31224 * posix/glob.c (__lstat64): New macro.
31225 (is_dir): New function.
31226 (glob, glob_in_dir): Match symlinks even if they are dangling.
31227 (link_stat, link_exists_p): Remove. All uses removed.
31228
31229 [BZ #1062]
31230 [BZ #19971]
31231 * posix/glob.c (struct readdir_result): Remove skip_entry member.
31232 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31233 All uses removed.
31234
31235 [BZ #1062]
31236 CVE-2017-15671
31237 * posix/Makefile (routines): Add globfree, globfree64, and
31238 glob_pattern_p.
31239 * posix/flexmember.h: New file.
31240 * posix/glob_internal.h: Likewise.
31241 * posix/glob_pattern_p.c: Likewise.
31242 * posix/globfree.c: Likewise.
31243 * posix/globfree64.c: Likewise.
31244 * sysdeps/gnu/globfree64.c: Likewise.
31245 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31246 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31247 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31248 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31249 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31250 * sysdeps/wordsize-64/globfree.c: Likewise.
31251 * sysdeps/wordsize-64/globfree64.c: Likewise.
31252 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31253 [NDEBUG): Remove comments.
31254 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31255 (dirent_type): New type. Use uint_fast8_t not
31256 uint8_t, as C99 does not require uint8_t.
31257 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31258 (struct readdir_result): Use dirent_type. Do not define skip_entry
31259 unless it is needed; this saves a byte on platforms lacking d_ino.
31260 (readdir_result_type, readdir_result_skip_entry):
31261 New functions, replacing ...
31262 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31263 these functions, which were removed. This makes the callers
31264 easier to read. All callers changed.
31265 (D_INO_TO_RESULT): Now empty if there is no d_ino.
31266 (size_add_wrapv, glob_use_alloca): New static functions.
31267 (glob, glob_in_dir): Check for size_t overflow in several places,
31268 and fix some size_t checks that were not quite right.
31269 Remove old code using SHELL since Bash no longer
31270 uses this.
31271 (glob, prefix_array): Separate MS code better.
31272 (glob_in_dir): Remove old Amiga and VMS code.
31273 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31274 separate files.
31275 (glob_in_dir): Do not rely on undefined behavior in accessing
31276 struct members beyond their bounds. Use a flexible array member
31277 instead
31278 (link_stat): Rename from link_exists2_p and return -1/0 instead of
31279 0/1. Caller changed.
31280 (glob): Fix memory leaks.
31281 * posix/glob64 (globfree64): Move to separate file.
31282 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31283 (globfree64): Remove hidden alias.
31284 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31285 oldglob.
31286 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31287 separate file.
31288 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31289 define.
31290 Move compat code to separate file.
31291 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31292 separate file.
31293
31294 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
31295
31296 * resolv/tst-resolv-qtypes.c (domain): Changed to
31297 "const char domain[] =".
31298
31299 2017-09-07 Joseph Myers <joseph@codesourcery.com>
31300
31301 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31302 version to 3.1.6.
31303
31304 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31305 (TCP_MD5SIG_EXT): Likewise.
31306 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31307 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31308 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
31309
31310 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31311
31312 2017-09-07 Mike FABIAN <mfabian@redhat.com>
31313
31314 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31315
31316 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
31317
31318 [BZ #22100]
31319 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31320
31321 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
31322
31323 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31324 before assuming that the file is empty. Avoid testing buffer content
31325 when nread == 0.
31326
31327 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31328
31329 [BZ #18858]
31330 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31331 Remove define.
31332 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31333 Likewise.
31334 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31335 Likewise.
31336 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31337 Likewise.
31338 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31339 Likewise.
31340 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31341 Likewise.
31342 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31343 Likewise.
31344
31345 2017-09-06 Florian Weimer <fweimer@redhat.com>
31346
31347 * malloc/dynarray_emplace_enlarge.c
31348 (__libc_dynarray_emplace_enlarge): Add missing else.
31349
31350 2017-09-06 Florian Weimer <fweimer@redhat.com>
31351
31352 [BZ #22096]
31353 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31354 case of failure to obtain the global conf object.
31355
31356 2017-09-06 Florian Weimer <fweimer@redhat.com>
31357
31358 [BZ #22095]
31359 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31360 dynarray allocation failure.
31361
31362 2017-09-06 Florian Weimer <fweimer@redhat.com>
31363
31364 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31365 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31366 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31367 New functions.
31368 (response): Call them. Add 'p', '6' flag processing.
31369 (test_reverse): New function.
31370 (test_get2_any): Call it.
31371 (test_no_inet6): Add 'p' test.
31372 (test_inet6): Likewise.
31373
31374 2017-09-06 Florian Weimer <fweimer@redhat.com>
31375
31376 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31377 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31378 the QNAME.
31379 (test_gai): Adjust query names. Add additional tests.
31380 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31381 test_get2. Adjust query names. Add additional tests.
31382 (test_no_inet6): New function, extracted from threadfunc.
31383 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31384 Add additional tests.
31385
31386 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31387
31388 [BZ #22070]
31389 * localedata/unicode-gen/utf8_gen.py: Set the width for
31390 characters with Prepended_Concatenation_Mark property to 1
31391 * localedata/charmaps/UTF-8: Updated using the improved script.
31392
31393 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31394
31395 [BZ #21750]
31396 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31397 use the range notation for all ranges of neighbouring characters
31398 with the same width.
31399
31400 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31401
31402 * sysdeps/generic/math-type-macros-double.h: Include
31403 <math-svid-compat.h>.
31404 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31405 * sysdeps/generic/math-type-macros-float.h: Include
31406 <math-svid-compat.h>.
31407 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31408 * sysdeps/generic/math-type-macros-ldouble.h: Include
31409 <math-svid-compat.h>.
31410 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31411 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31412 condition.
31413 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31414 * math/w_acosf_compat.c: Likewise.
31415 * math/w_acosh_compat.c: Likewise.
31416 * math/w_acoshf_compat.c: Likewise.
31417 * math/w_acoshl_compat.c: Likewise.
31418 * math/w_acosl_compat.c: Likewise.
31419 * math/w_asin_compat.c: Likewise.
31420 * math/w_asinf_compat.c: Likewise.
31421 * math/w_asinl_compat.c: Likewise.
31422 * math/w_atan2_compat.c: Likewise.
31423 * math/w_atan2f_compat.c: Likewise.
31424 * math/w_atan2l_compat.c: Likewise.
31425 * math/w_atanh_compat.c: Likewise.
31426 * math/w_atanhf_compat.c: Likewise.
31427 * math/w_atanhl_compat.c: Likewise.
31428 * math/w_cosh_compat.c: Likewise.
31429 * math/w_coshf_compat.c: Likewise.
31430 * math/w_coshl_compat.c: Likewise.
31431 * math/w_exp10_compat.c: Likewise.
31432 * math/w_exp10f_compat.c: Likewise.
31433 * math/w_exp10l_compat.c: Likewise.
31434 * math/w_exp2_compat.c: Likewise.
31435 * math/w_exp2f_compat.c: Likewise.
31436 * math/w_exp2l_compat.c: Likewise.
31437 * math/w_fmod_compat.c: Likewise.
31438 * math/w_fmodf_compat.c: Likewise.
31439 * math/w_fmodl_compat.c: Likewise.
31440 * math/w_hypot_compat.c: Likewise.
31441 * math/w_hypotf_compat.c: Likewise.
31442 * math/w_hypotl_compat.c: Likewise.
31443 * math/w_j0_compat.c: Likewise.
31444 * math/w_j0f_compat.c: Likewise.
31445 * math/w_j0l_compat.c: Likewise.
31446 * math/w_j1_compat.c: Likewise.
31447 * math/w_j1f_compat.c: Likewise.
31448 * math/w_j1l_compat.c: Likewise.
31449 * math/w_jn_compat.c: Likewise.
31450 * math/w_jnf_compat.c: Likewise.
31451 * math/w_jnl_compat.c: Likewise.
31452 * math/w_lgamma_r_compat.c: Likewise.
31453 * math/w_lgammaf_r_compat.c: Likewise.
31454 * math/w_lgammal_r_compat.c: Likewise.
31455 * math/w_log10_compat.c: Likewise.
31456 * math/w_log10f_compat.c: Likewise.
31457 * math/w_log10l_compat.c: Likewise.
31458 * math/w_log2_compat.c: Likewise.
31459 * math/w_log2f_compat.c: Likewise.
31460 * math/w_log2l_compat.c: Likewise.
31461 * math/w_log_compat.c: Likewise.
31462 * math/w_logf_compat.c: Likewise.
31463 * math/w_logl_compat.c: Likewise.
31464 * math/w_pow_compat.c: Likewise.
31465 * math/w_powf_compat.c: Likewise.
31466 * math/w_powl_compat.c: Likewise.
31467 * math/w_remainder_compat.c: Likewise.
31468 * math/w_remainderf_compat.c: Likewise.
31469 * math/w_remainderl_compat.c: Likewise.
31470 * math/w_sinh_compat.c: Likewise.
31471 * math/w_sinhf_compat.c: Likewise.
31472 * math/w_sinhl_compat.c: Likewise.
31473 * math/w_sqrt_compat.c: Likewise.
31474 * math/w_sqrtf_compat.c: Likewise.
31475 * math/w_sqrtl_compat.c: Likewise.
31476 * math/w_tgamma_compat.c: Likewise.
31477 * math/w_tgammaf_compat.c: Likewise.
31478 * math/w_tgammal_compat.c: Likewise.
31479 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31480 [LIBM_SVID_COMPAT].
31481 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31482 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31483 [LIBM_SVID_COMPAT].
31484 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31485 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31486 [LIBM_SVID_COMPAT].
31487 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31488 * sysdeps/i386/fpu/w_sqrt.c: New file.
31489 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31490 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31491 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31492 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31493 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31494 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31495 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31496 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31497 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31498 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31499 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31500 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31501 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31502 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31503 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31504 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31505 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31506 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31507 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31508 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31509 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31510 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31511 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31512 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31513 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31514 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31515 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31516 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31517 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31518 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31519 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31520 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31521 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31522 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31523 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31524 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31525 * sysdeps/ia64/fpu/w_log.c: Likewise.
31526 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31527 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31528 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31529 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31530 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31531 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31532 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31533 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31534 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31535 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31536 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31537 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31538 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31539 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31540 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31541 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31542 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31543 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31544 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31545 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31546 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31547 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31548 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31549 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31550 [LIBM_SVID_COMPAT].
31551 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31552 * sysdeps/ieee754/k_standard.c: Likewise.
31553 * sysdeps/ieee754/k_standardf.c: Likewise.
31554 * sysdeps/ieee754/k_standardl.c: Likewise.
31555 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31556 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31557 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31558 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31559 long_double_symbol call on [LIBM_SVID_COMPAT].
31560 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31561 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31562 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31563 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31564 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31565 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31566 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31567 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31568 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31569 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31570 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31571 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31572 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31573 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31574 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31575 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31576 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31577 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31578 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31579 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31580 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31581 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31582
31583 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31584
31585 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31586 * malloc/tst-mallocstate.c: Convert from test-skeleton
31587 to test-driver. Ifdef code using TEST_COMPAT macro.
31588 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31589 * math/test-matherr.c: Likewise.
31590
31591 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31592
31593 [BZ #22086]
31594 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31595 comparing word with byte-swapped constant.
31596
31597 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31598
31599 [BZ #20498]
31600 * locale/iso-639.def: add Miskito.
31601 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31602 * localedata/locales/miq_NI: New file.
31603
31604 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31605
31606 [BZ #18822]
31607 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31608 (__mkdir): Likewise.
31609 * io/chmod.c (__chmod): Add libc_hidden_def.
31610 * io/mkdir.c (__mkdir): Likewise.
31611 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31612 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31613 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31614 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31615
31616 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31617
31618 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31619 version to 4.13.
31620
31621 [BZ #22082]
31622 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31623 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31624
31625 2017-09-04 Florian Weimer <fweimer@redhat.com>
31626
31627 * math/math.h: Issue warning if log is defined.
31628
31629 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31630
31631 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31632 kernel version to 4.13.
31633
31634 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31635
31636 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31637 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31638 parameter.
31639 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31640 just <bits/types.h>.
31641 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31642 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31643 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31644 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31645 * misc/preadv2.c: Include <errno.h>.
31646 * misc/preadv64v2.c: Include <errno.h>.
31647 * misc/pwritev2.c: Include <errno.h>.
31648 * misc/pwritev64v2.c: Include <errno.h>.
31649 * sysdeps/posix/preadv2.c: Include <errno.h>.
31650 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31651 Fix <unistd.h> inclusion.
31652 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31653 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31654 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31655 __strtoul_internal): New functions.
31656 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31657 * sysdeps/posix/system.c: Include <sigsetops.h>.
31658 * sysdeps/mach/hurd/i386/Makefile
31659 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31660 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31661 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31662 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31663 __feraiseexcept_renamed to feraiseexcept instead of
31664 __GI_feraiseexcept.
31665 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31666 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31667 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31668 RWF_NOWAIT): Define to 0 if undefined already.
31669 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31670 boils down to 0.
31671 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31672 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31673
31674 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31675
31676 * manual/math.texi (pow10): Do not document.
31677 (pow10f): Likewise.
31678 (pow10l): Likewise.
31679 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31680 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31681 * math/libm-test-exp10.inc (pow10_test): Remove.
31682 (do_test): Do not call pow10.
31683 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31684 [NO_LONG_DOUBLE] (pow10l): Likewise.
31685 * math/w_exp10f_compat.c (pow10f): Likewise.
31686 * math/w_exp10l_compat.c (pow10l): Likewise.
31687 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31688 (pow10): Make into compat symbol.
31689 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31690 (pow10f): Make into compat symbol.
31691 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31692 (pow10l): Make into compat symbol.
31693 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31694 pow10.
31695 (CFLAGS-nldbl-pow10.c): Remove variable..
31696 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31697 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31698 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31699 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31700 Undefine and redefine.
31701 (pow10l): Make into compat symbol.
31702 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31703 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31704 * sysdeps/arm/libm-test-ulps: Likewise.
31705 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31706 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31707 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31708 * sysdeps/microblaze/libm-test-ulps: Likewise.
31709 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31710 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31711 * sysdeps/nios2/libm-test-ulps: Likewise.
31712 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31713 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31714 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31715 * sysdeps/sh/libm-test-ulps: Likewise.
31716 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31717 * sysdeps/tile/libm-test-ulps: Likewise.
31718 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31719
31720 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31721
31722 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31723
31724 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31725
31726 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31727 "../ChangeLog.old/ChangeLog.8".
31728 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31729 "../ChangeLog.old/ChangeLog.14".
31730
31731 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31732
31733 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31734 Threads Library.
31735
31736 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31737
31738 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31739
31740 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31741
31742 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31743 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31744
31745 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31746
31747 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31748 32 atexit handlers.
31749
31750 2017-09-01 Zack Weinberg <zackw@panix.com>
31751
31752 * math/math.h (HUGE_VAL): Improve commentary.
31753
31754 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31755 Andreas Schwab <schwab@suse.de>
31756
31757 [BZ #21530]
31758 * include/stdio.h (__gen_tempfd): New function.
31759 * stdio-common/Makefile (routines): Add gentempfd.
31760 * stdio-common/gentempfd.c: New file.
31761 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31762 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31763 unnamed file first.
31764
31765 2017-09-01 Florian Weimer <fweimer@redhat.com>
31766
31767 [BZ #21915]
31768 [BZ #21922]
31769 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31770 result to determine success or failure, not the errno value.
31771 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31772 (tst-nss-files-hosts-erange): Link with -ldl.
31773 * nss/tst-nss-files-hosts-erange.c: New file.
31774 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31775 (do_test): Add NO_DATA tests.
31776 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31777 (do_test): Call it.
31778
31779 2017-09-01 Florian Weimer <fweimer@redhat.com>
31780
31781 [BZ #21922]
31782 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31783 coming from gethostbyname2_r.
31784
31785 2017-09-01 Florian Weimer <fweimer@redhat.com>
31786
31787 * support/namespace.h (struct support_chroot_configuration): Add
31788 hosts, host_conf.
31789 (struct support_chroot): Add path_hosts, path_host_conf.
31790 * support/support_chroot.c (write_file): New function.
31791 (support_chroot_create): Call it to process /etc/resolv.conf,
31792 /etc/hosts, /etc/host.conf.
31793 (support_chroot_free): Update.
31794
31795 2017-09-01 Florian Weimer <fweimer@redhat.com>
31796
31797 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31798 status indicates it is set.
31799
31800 2017-09-01 Florian Weimer <fweimer@redhat.com>
31801
31802 [BZ #20532]
31803 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31804 function lookup failures more reliable.
31805
31806 2017-09-01 Florian Weimer <fweimer@redhat.com>
31807
31808 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31809 (getcanonname): Likewise.
31810 (gaih_inet): Likewise.
31811
31812 2017-09-01 Florian Weimer <fweimer@redhat.com>
31813
31814 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31815 (getcanonname): Likewise.
31816 (gaih_inet): Likewise.
31817
31818 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31819 Richard Henderson <rth@twiddle.net>
31820
31821 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31822 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31823 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31824 (IREG_SIZE, OREG_SIZE): New macros.
31825 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31826 (IREG_SIZE, OREG_SIZE): New macros.
31827 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31828 (IREG_SIZE): New macro.
31829 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31830 (IREG_SIZE): New macro.
31831 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31832 New includes.
31833 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31834 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31835 (__CONCATX): Handle exceptions correctly on large values that may
31836 set FE_INVALID.
31837 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31838 Initialize if not already set.
31839 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31840
31841 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31842
31843 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31844 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31845 Likewise.
31846 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31847 Likewise.
31848 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31849 Likewise.
31850 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31851 Likewise.
31852 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31853 Likewise.
31854 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31855 Likewise.
31856 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31857 Likewise.
31858 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31859 (NO_CANCELLATION): Likewise.
31860 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31861 Likewise.
31862 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31863 Likewise.
31864 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31865 Likewise.
31866 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31867 (NO_CANCELLATION): Likewise.
31868 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31869 (NO_CANCELLATION): Likewise.
31870 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31871 Likewise
31872 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31873 Likewise.
31874 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31875 Likewise.
31876 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31877 Likewise.
31878 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31879 hidden prototype.
31880 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31881 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31882
31883 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31884
31885 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31886 in resolver call.
31887
31888 2017-08-31 Florian Weimer <fweimer@redhat.com>
31889
31890 * include/libc-symbols.h (internal_function): Remove.
31891
31892 2017-08-31 Florian Weimer <fweimer@redhat.com>
31893
31894 * stdlib/fmtmsg.c (internal_addseverity): Remove
31895 internal_function.
31896
31897 2017-08-31 Florian Weimer <fweimer@redhat.com>
31898
31899 * stdio-common/printf_fp.c (group_number): Remove
31900 internal_function.
31901 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31902
31903 2017-08-31 Florian Weimer <fweimer@redhat.com>
31904
31905 * posix/fnmatch.c (internal_function): Remove definition.
31906 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31907 * posix/regcomp.c (peek_token, init_word_char)
31908 (duplicate_node_closure, fetch_token, peek_token)
31909 (peek_token_bracket, build_range_exp, build_collating_symbol):
31910 Likewise.
31911 * posix/regex_internal.c (re_string_construct_common)
31912 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31913 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31914 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31915 (re_string_translate_buffer, re_string_reconstruct)
31916 (re_string_peek_byte_case, re_string_fetch_byte_case)
31917 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31918 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31919 (re_node_set_add_intersect, re_node_set_init_union)
31920 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31921 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31922 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31923 (re_acquire_state_context): Likewise.
31924 * posix/regex_internal.h (internal_function): Remove definition.
31925 (re_string_realloc_buffers, build_wcs_buffer)
31926 (build_wcs_upper_buffer, build_upper_buffer)
31927 (re_string_translate_buffer, re_string_context_at)
31928 (re_string_char_size_at, re_string_wchar_at)
31929 (re_string_elem_size_at): Likewise.
31930 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31931 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31932 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31933 (re_search_internal, re_search_2_stub, re_search_stub)
31934 (re_copy_regs, prune_impossible_nodes, check_matching)
31935 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31936 (free_fail_stack_return, sift_states_iter_mb)
31937 (sift_states_backward, build_sifted_states)
31938 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31939 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31940 (check_subexp_limits, sift_states_bkref, merge_state_array)
31941 (find_recover_state, transit_state, merge_state_with_log)
31942 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31943 (transit_state_mb, transit_state_bkref, get_subexp)
31944 (get_subexp_sub, find_subexp_node, check_arrival)
31945 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31946 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31947 (check_node_accept_bytes, find_collation_sequence_value)
31948 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31949 (acquire_init_state_context, check_halt_node_context)
31950 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31951 (sub_epsilon_src_nodes): Likewise.
31952 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31953 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31954 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31955 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31956 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31957 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31958 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31959 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31960 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31961 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31962 (PREADV): Likewise.
31963 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31964 (PREADV): Likewise.
31965 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31966 (PWRITEV): Likewise.
31967 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31968 (PWRITEV): Likewise.
31969 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31970 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31971
31972 2017-08-31 Florian Weimer <fweimer@redhat.com>
31973
31974 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31975 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31976 Remove internal_function.
31977 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31978 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31979 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31980 (__deallocate_stack, __libc_pthread_init)
31981 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31982 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31983 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31984 Likewise.
31985 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31986 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31987 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31988 Likewise.
31989 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31990 (__pthread_mutex_unlock_usercnt): Likewise.
31991
31992 2017-08-31 Florian Weimer <fweimer@redhat.com>
31993
31994 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31995 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31996 (fts_safe_changedir): Remove internal_function.
31997 * io/ftw.c (internal_function): Remove definition.
31998 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31999
32000 2017-08-31 Florian Weimer <fweimer@redhat.com>
32001
32002 * inet/deadline.c (__deadline_current_time)
32003 (__deadline_from_timeval, __deadline_to_ms): Remove
32004 internal_function.
32005 * inet/getnameinfo.c (nrl_domainname): Likewise.
32006 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
32007 * inet/inet6_option.c (add_pad): Likewise.
32008 * inet/net-internal.h (__deadline_current_time)
32009 (__deadline_from_timeval, __deadline_to_ms): Likewise.
32010 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
32011 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
32012 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
32013
32014 2017-08-31 Joseph Myers <joseph@codesourcery.com>
32015
32016 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
32017 include <bits/nan.h>.
32018 * math/Makefile (headers): Remove bits/nan.h.
32019 * bits/nan.h: Remove.
32020 * sysdeps/ieee754/bits/nan.h: Likewise.
32021 * sysdeps/mips/bits/nan.h: Likewise.
32022
32023 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
32024 not include <bits/inf.h>.
32025 * math/Makefile (headers): Remove bits/inf.h.
32026 * bits/inf.h: Remove.
32027 * sysdeps/ieee754/bits/inf.h: Likewise.
32028
32029 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
32030 bits/huge_vall.h or bits/huge_val_flt128.h.
32031 (HUGE_VAL): Define directly here.
32032 [__USE_ISOC99] (HUGE_VALF): Likewise.
32033 [__USE_ISOC99] (HUGE_VALL): Likewise.
32034 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32035 (HUGE_VAL_F128): Likewise.
32036 * math/Makefile (headers): Remove bits/huge_val.h,
32037 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
32038 * bits/huge_val.h: Remove.
32039 * bits/huge_val_flt128.h: Likewise.
32040 * bits/huge_valf.h: Likewise.
32041 * bits/huge_vall.h: Likewise.
32042 * sysdeps/ia64/bits/huge_vall.h: Likewise.
32043 * sysdeps/ieee754/bits/huge_val.h: Likewise.
32044 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
32045 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
32046 * sysdeps/sh/bits/huge_val.h: Likewise.
32047 * sysdeps/sparc/bits/huge_vall.h: Likewise.
32048 * sysdeps/x86/bits/huge_vall.h: Likewise.
32049
32050 2017-08-31 Florian Weimer <fweimer@redhat.com>
32051
32052 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
32053 internal_function.
32054 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
32055 Likewise.
32056 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
32057 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
32058 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
32059 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
32060 * elf/dl-fini.c (_dl_sort_fini): Likewise.
32061 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
32062 * elf/dl-libc.c (dlerror_run): Likewise.
32063 * elf/dl-load.c (add_name_to_object, decompose_rpath)
32064 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
32065 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
32066 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
32067 Likewise.
32068 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
32069 (_dl_higher_prime_number, _dl_strtoul): Likewise.
32070 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
32071 * elf/dl-profile.c (_dl_start_profile): Likewise.
32072 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
32073 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
32074 Likewise.
32075 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
32076 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
32077 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
32078 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
32079 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
32080 (_dl_allocate_tls_storage): Likewise.
32081 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
32082 (_dl_check_all_versions): Likewise.
32083 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
32084 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
32085 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
32086 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32087 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
32088 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
32089 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
32090 internal_function from __dl_start.
32091 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
32092 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
32093 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
32094 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
32095 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
32096 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
32097 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
32098 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
32099 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
32100 (_dl_next_ld_env_entry, _dl_important_hwcaps)
32101 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
32102 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
32103 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
32104 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
32105 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
32106 Likewise.
32107 (struct rtld_global_ro): Remove internal_function from the
32108 _dl_lookup_symbol_x member.
32109 (_dl_symbol_value): Remove. No longer defined anywhere.
32110 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
32111 internal_function.
32112 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32113 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
32114 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
32115 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
32116 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
32117 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
32118 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
32119 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
32120 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
32121 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
32122 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
32123 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
32124
32125 2017-08-31 Florian Weimer <fweimer@redhat.com>
32126
32127 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
32128 Remove internal_function.
32129 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32130 Likewise.
32131 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
32132 Likewise.
32133
32134 2017-08-31 Florian Weimer <fweimer@redhat.com>
32135
32136 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
32137 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
32138 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
32139
32140 2017-08-31 Florian Weimer <fweimer@redhat.com>
32141
32142 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
32143 (__gai_enqueue_request): Remove internal_function.
32144 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32145 (__gai_remove_request, __gai_notify, __gai_notify_only)
32146 (__gai_sigqueue): Likewise.
32147 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32148 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32149 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32150 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32151 Likewise.
32152
32153 2017-08-31 Florian Weimer <fweimer@redhat.com>
32154
32155 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32156 * include/dirent.h (__opendirat, __getdents, __getdents64)
32157 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32158 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32159 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32160 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32161 Likewise.
32162 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32163
32164 2017-08-31 Florian Weimer <fweimer@redhat.com>
32165
32166 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32167 internal_function.
32168 (GETCWD_RETURN_TYPE): Likewise.
32169
32170 2017-08-31 Florian Weimer <fweimer@redhat.com>
32171
32172 * include/time.h (__tz_compute, __strptime_internal): Remove
32173 internal_function.
32174 * time/strptime_l.c (__strptime_internal): Likewise.
32175 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32176
32177 2017-08-31 Florian Weimer <fweimer@redhat.com>
32178
32179 * iconv/gconv.c (__gconv): Remove internal_function.
32180 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32181 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32182 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32183 (__gconv_release_cache): Likewise.
32184 * iconv/gconv_close.c (__gconv_close): Likewise.
32185 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32186 (read_conf_file, __gconv_get_path): Likewise.
32187 * iconv/gconv_db.c (derivation_lookup, add_derivation)
32188 (__gconv_release_step, gen_steps, increment_counter)
32189 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32190 (__gconv_close_transform, free_modules_db): Likewise.
32191 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32192 Likewise.
32193 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32194 (__gconv_find_transform, __gconv_lookup_cache)
32195 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32196 (__gconv_close_transform, __gconv_release_cache)
32197 (__gconv_loaded_object, __gconv_release_shlib)
32198 (__gconv_compare_alias): Likewise.
32199 * iconv/gconv_open.c (__gconv_open): Likewise.
32200 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32201 * iconv/iconvconfig.c (add_module): Likewise.
32202 * intl/dcigettext.c (plural_lookup, guess_category_value)
32203 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32204 * intl/eval-plural.h (plural_eval): Likewise.
32205 * intl/finddomain.c (_nl_find_domain): Likewise.
32206 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32207 (_nl_load_domain, _nl_find_msg): Likewise.
32208 (internal_function): Remove definition.
32209 * intl/loadinfo.h (internal_function): Likewise.
32210 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32211 internal_function.
32212 * intl/localealias.c (internal_function): Remove definition.
32213 (read_alias_file): Remove internal_function.
32214 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32215 * intl/plural-exp.h (internal_function): Remove definition.
32216 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32217 internal_function.
32218 * intl/plural.c: Regenerate.
32219 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32220 * locale/coll-lookup.c (__collidx_table_lookup)
32221 (__collseq_table_lookup): Likewise.
32222 * locale/coll-lookup.h (__collidx_table_lookup)
32223 (__collseq_table_lookup): Likewise.
32224 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32225 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32226 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32227 (_nl_unload_locale): Likewise.
32228 * locale/localeinfo.h (struct __locale_data): Remove
32229 internal_function from cleanup member.
32230 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32231 (_nl_remove_locale, _nl_load_locale_from_archive)
32232 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32233 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32234 (_nl_cleanup_time): Remove internal_function.
32235 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32236 (_nl_parse_alt_digit): Likewise.
32237 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32238 (_nl_select_era_entry): Likewise.
32239 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32240 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32241 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32242 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32243 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32244
32245 2017-08-31 Florian Weimer <fweimer@redhat.com>
32246
32247 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32248 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32249 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32250 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32251 Likewise.
32252 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32253 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32254 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32255 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32256 Likewise.
32257 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32258
32259 2017-08-31 Florian Weimer <fweimer@redhat.com>
32260
32261 * misc/getttyent.c (skip, value): Remove internal_function.
32262 * misc/syslog.c (openlog_internal): Likewise.
32263 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32264
32265 2017-08-31 Florian Weimer <fweimer@redhat.com>
32266
32267 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32268 (__nss_rewrite_field): Remove internal_function.
32269 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32270 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32271 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32272 * nss/nsswitch.c (nss_parse_file, nss_getline)
32273 (nss_parse_service_list, nss_new_service): Likewise.
32274 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32275 * nss/valid_field.c (__nss_valid_field): Likewise.
32276 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32277
32278 2017-08-31 Florian Weimer <fweimer@redhat.com>
32279
32280 * malloc/arena.c (__malloc_fork_lock_parent)
32281 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32282 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32283 internal_function from defintions.
32284 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32285 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32286 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32287 internal_function from declarations.
32288 * malloc/malloc.c (internal_function): Do not define.
32289 (mem2mem_check): Remove internal_function from declaration.
32290 (munmap_chunk, mremap_chunk): Remove internal_function.
32291 * malloc/mtrace.c (tr_where): Likewise.
32292
32293 2017-08-31 Florian Weimer <fweimer@redhat.com>
32294
32295 * include/rpc/pmap_clnt.h (__get_socket): Remove
32296 internal_function.
32297 * sunrpc/auth_des.c (synchronize): Likewise.
32298 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32299 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32300 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32301 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32302 (key_call): Likewise.
32303 * sunrpc/pm_getport.c (__get_socket): Likewise.
32304 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32305 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32306 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32307 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32308 (invalidate): Likewise.
32309 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32310 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32311 (set_input_fragment, get_input_bytes): Likewise.
32312
32313 2017-08-31 Florian Weimer <fweimer@redhat.com>
32314
32315 * malloc/malloc.c (_int_free): Remove locked variable and related
32316 asserts.
32317
32318 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
32319
32320 [BZ #22051]
32321 * Makerules (build-module-helper-objlist): Filter out
32322 $(elf-objpfx)sofini.os.
32323 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32324 needed.
32325
32326 2017-08-31 Florian Weimer <fweimer@redhat.com>
32327
32328 * libio/fcloseall.c: Assume weak_alias is defined.
32329 * libio/feof.c: Likewise.
32330 * libio/fileno.c: Likewise.
32331 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32332 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32333 definitions.
32334 (_IO_file_open): Call __open directly.
32335 (_IO_new_file_sync): Assume ESPIPE is defined.
32336 (_IO_file_seekoff_maybe_mmap): Call __read directly.
32337 (_IO_new_file_write): Call __write directly.
32338 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32339 * libio/ftello64.c (__ftello64): Assume EIO is defined.
32340 * libio/genops.c: Assume _LIBC is defined.
32341 (save_for_backup): Remove internal_function.
32342 * libio/getc.c: Assume weak_alias is defined.
32343 * libio/getwc.c: Likewise.
32344 * libio/iofclose.c: Assume _LIBC is defined.
32345 * libio/iofdopen.c: Likewise.
32346 (_IO_fcntl): Remove macro definition.
32347 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32348 Call __fcntl directly.
32349 * libio/iofflush.c: Assume weak_alias is defined.
32350 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32351 defined.
32352 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32353 * libio/iofgets.c: Likewise.
32354 * libio/iofopen.c: Assume _LIBC is defined.
32355 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32356 * libio/iofputs.c: Assume weak_alias is defined.
32357 * libio/iofread.c: Likewise.
32358 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32359 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32360 * libio/ioftell.c: Assume weak_alias is defined.
32361 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32362 * libio/iofwide.c: Assume _LIBC is defined.
32363 (_IO_fwide): Drop SHARED conditional because it is implied by
32364 SHLIB_COMPAT.
32365 * libio/iofwrite.c: Assume weak_alias is defined.
32366 * libio/iogetdelim.c: Likewise.
32367 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32368 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32369 (_IO_getwline): Call __wmemcpy directly.
32370 * libio/iopopen.c: Assume _LIBC is defined.
32371 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32372 (_IO_close): Remove macro definitions.
32373 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32374 _exit directly.
32375 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32376 directly.
32377 * libio/ioputs.c: Assume weak_alias is defined.
32378 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32379 * libio/iosetbuffer.c: Assume weak_alias is defined.
32380 * libio/iosetvbuf.c: Likewise.
32381 * libio/ioungetc.c: Likewise.
32382 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32383 libc_hidden_def, libc_hidden_weak, NULL are defined.
32384 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32385 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32386 defined.
32387 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32388 definitions.
32389 (_IO_old_file_init_internal): Drop SHARED conditional because it
32390 is implied by SHLIB_COMPAT.
32391 (_IO_old_file_fopen): Call __open directly.
32392 (_IO_old_file_sync): Assume ESPIPE is defined.
32393 (_IO_old_file_write): Call __write directly.
32394 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32395 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32396 Call __fcntl directly.
32397 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32398 (_IO_old_fgetpos): Assume EIO is defined.
32399 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32400 (_IO_old_fgetpos64): Assume EIO is defined.
32401 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32402 (_IO_old_fsetpos): Assume EIO is defined.
32403 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32404 (_IO_old_fsetpos64): Assume EIO is defined.
32405 * libio/oldiopopen.c: Assume _LIBC is defined.
32406 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32407 (_IO_close): Remove macro definitions.
32408 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32409 directly.
32410 (_IO_old_proc_close): Call __close, __waitpid directly.
32411 * libio/put.c: Assume weak_alias is defined.
32412 * libio/stdfiles.c: Assume _LIBC is defined.
32413 * libio/stdio.c: Likewise.
32414 * libio/wfileops.c: Likewise.
32415 (_IO_wfile_sync): Assume ESPIPE is defined.
32416 * libio/wgenops.c: Assume _LIBC is defined.
32417 (save_for_wbackup): Remove internal_function.
32418
32419 2017-08-31 Florian Weimer <fweimer@redhat.com>
32420
32421 * malloc/malloc.c (top_check): Change return type to void. Remove
32422 internal_function.
32423 * malloc/hooks.c (top_check): Likewise.
32424 (malloc_check, realloc_check, memalign_check): Adjust.
32425
32426 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32427
32428 [BZ #21457]
32429 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32430 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32431 sigcontext and namespace requirements.
32432 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32433 * sysdeps/m68k/sys/ucontext.h: Likewise.
32434 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32435 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32436 <bits/sigcontext.h>.
32437 (__ctx): Define earlier.
32438 (mcontext_t): Define structure contents rather than using struct
32439 sigcontext.
32440 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32441 __glibc_reserved1 instead of __reserved.
32442 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32443 <bits/sigcontext.h>.
32444 (__ctx): Define earlier.
32445 (mcontext_t): Define structure contents rather than using struct
32446 sigcontext.
32447 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32448 mcontext_t instead of struct sigcontext.
32449 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32450 <bits/sigcontext.h>.
32451 (__ctx): Define earlier.
32452 (mcontext_t): Define structure contents rather than using struct
32453 sigcontext.
32454 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32455 <bits/sigcontext.h>.
32456 (__ctx): Define earlier.
32457 (mcontext_t): Define structure contents rather than using struct
32458 sigcontext.
32459 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32460 mcontext_t instead of struct sigcontext.
32461 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32462 mcontext_t instead of struct sigcontext.
32463 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32464 <bits/sigcontext.h>.
32465 (__ctx): New macro.
32466 (struct __ia64_fpreg_mcontext): New type.
32467 (mcontext_t): Define structure contents rather than using struct
32468 sigcontext.
32469 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32470 (uc_sigmask): Define using __ctx.
32471 (uc_stack): Likewise.
32472 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32473 <bits/sigcontext.h>.
32474 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32475 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32476 <bits/sigcontext.h>.
32477 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32478 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32479 <bits/sigcontext.h>.
32480 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32481 <bits/sigcontext.h>.
32482 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32483 <bits/sigcontext.h>.
32484 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32485 <bits/sigcontext.h>.
32486 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32487 <bits/sigcontext.h>.
32488 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32489 <bits/sigcontext.h>.
32490 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32491 <bits/sigcontext.h>.
32492 (__ctx): Define earlier.
32493 (mcontext_t): Define structure contents rather than using struct
32494 sigcontext.
32495 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32496 <bits/sigcontext.h>. Include <bits/types.h>.
32497 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32498 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32499 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32500 (test-xfail-UNIX98/signal.h/conform): Likewise.
32501 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32502 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32503 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32504 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32505 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32506 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32507 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32508 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32509 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32510
32511 2017-08-30 Florian Weimer <fweimer@redhat.com>
32512
32513 * malloc/dynarray_emplace_enlarge.c
32514 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32515 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32516 * malloc/tst-dynarray.c (test_long_overflow): New function.
32517 (do_test): Call it.
32518
32519 2017-08-30 Florian Weimer <fweimer@redhat.com>
32520
32521 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32522 (set_arena_corrupt): Remove definitions.
32523 (mtrim): Do not check for corrupt arena.
32524 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32525 Likewise.
32526
32527 2017-08-30 Florian Weimer <fweimer@redhat.com>
32528
32529 [BZ #21754]
32530 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32531 check_action.
32532 (ptmalloc_init): Do not set or use check_action.
32533 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32534 call to malloc_printerr. Remove return statement.
32535 (free_check): Likewise. Remove arena unlock.
32536 (top_check): Update comment. Adjust call to malloc_printerr.
32537 Remove heap repair code.
32538 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32539 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32540 (sysmalloc): Adjust call to malloc_printerr.
32541 (munmap_chunk, __libc_realloc): Likewise. Remove return
32542 statement.
32543 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32544 Remove errout label and corresponding gotos.
32545 (_int_free): Likewise. Remove arena unlock.
32546 (do_set_mallopt_check): Do not set check_action.
32547 (malloc_printerr): Adjust parameter list. Do not mark arena as
32548 corrupt.
32549 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32550 comment.
32551 * manual/probes.texi (Memory Allocation Probes): Remove
32552 memory_mallopt_check_action.
32553
32554 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32555
32556 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32557 Use pointer to uint64_t instead of long int for sp.
32558
32559 2017-08-30 Florian Weimer <fweimer@redhat.com>
32560
32561 [BZ #21754]
32562 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32563 without printing a backtrace. Do not leak any information in the
32564 error message.
32565 * manual/memory.texi (Heap Consistency Checking): Update.
32566 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32567
32568 2017-08-30 Florian Weimer <fweimer@redhat.com>
32569
32570 Do not scale NPTL tests with available number of CPUs.
32571 * nptl/tst-cond16.c (count): Set to constant value of 8.
32572 * nptl/tst-cond18.c (count): Likewise.
32573
32574 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32575
32576 [BZ #22035]
32577 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32578 Define to take a second argument that is a macro that
32579 concatentates a suffix, not the suffix itself.
32580 (__CONCAT_d): New macro.
32581 (__CONCAT_f): Likewise.
32582 (__CONCAT_l): Likewise.
32583
32584 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32585
32586 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32587 by child.
32588
32589 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32590 Aurelien Jarno <aurelien@aurel32.net>
32591 Maciej W. Rozycki <macro@imgtec.com>
32592
32593 [BZ #21956]
32594 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32595 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32596 `mips16-syscall6' and `mips16-syscall7'.
32597 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32598 (CFLAGS-mips16-syscall7.c): Remove.
32599 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32600 Remove `__mips16_syscall5', `__mips16_syscall6' and
32601 `__mips16_syscall7'.
32602 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32603 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32604 `__mips_syscall_return'.
32605 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32606 (__mips16_syscall1): Likewise.
32607 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32608 (__mips16_syscall2): Likewise.
32609 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32610 (__mips16_syscall3): Likewise.
32611 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32612 (__mips16_syscall4): Likewise.
32613 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32614 Remove.
32615 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32616 Remove.
32617 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32618 Remove.
32619 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32620 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32621 `__mips16_syscall5'. Remove prototype.
32622 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32623 `__mips16_syscall6'. Remove prototype.
32624 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32625 `__mips16_syscall7'. Remove prototype.
32626 (__nomips16, __mips16_syscall_return): Move to...
32627 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32628 (__nomips16, __mips_syscall_return): ... here.
32629 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32630 `__mips16_syscall_return' to `__mips_syscall_return'.
32631 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32632 `internal_syscall##nr'.
32633 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32634 `internal_syscall##nr'.
32635 (FORCE_FRAME_POINTER): Remove.
32636 (__mips_syscall5): New prototype.
32637 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32638 (__mips_syscall6): New prototype.
32639 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32640 (__mips_syscall7): New prototype.
32641 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32642 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32643 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32644 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32645 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32646 (sysdep_routines): Add libc-do-syscall.
32647 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32648 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32649
32650 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32651
32652 [BZ #21672]
32653 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32654 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32655 (advise_stack_range): New function.
32656 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32657 stack non required to advise_stack_range at allocatestack.c
32658
32659 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32660
32661 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32662
32663 2017-08-29 Florian Weimer <fweimer@redhat.com>
32664
32665 [BZ #22026]
32666 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32667 __end_fct. Mangle __end_fct after setting it to NULL.
32668 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32669 (modules-names, modules-names-tests): Add
32670 tst-gconv-init-failure-mod.
32671 (gconv-modules): New target.
32672 (tst-gconv-init-failure-mod.so): Link against libsupport.
32673 (tst-gconv-init-failure): Depend on gconv-modules,
32674 tst-gconv-init-failure-mod.so.
32675 * iconv/tst-gconv-init-failure-mod.c: New file.
32676 * iconv/tst-gconv-init-failure.c: Likewise.
32677 * iconv/test-gconv-modules: Likewise.
32678
32679 2017-08-29 Florian Weimer <fweimer@redhat.com>
32680
32681 [BZ #22025]
32682 * iconv/gconv_db.c (free_derivation): Remove redundant
32683 parentheses.
32684 (gen_steps): Unconditionally mangle __btowc_fct after
32685 initialization.
32686 (increment_counter): Likewise. Do not call init_fct for internal
32687 modules.
32688
32689 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32690
32691 [BZ #22028]
32692 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32693 (_MSUF_): Remove macro.
32694 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32695 Likewise.
32696 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32697 (__REDIRFROM_X): New macro.
32698 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32699 Likewise.
32700 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32701 (__REDIRTO_X): Likewise.
32702 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32703 arguments.
32704 (__MATH_REDIRCALL_2): Likewise.
32705 (__MATH_REDIRCALL_INTERNAL): Likewise.
32706 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32707 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32708 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32709 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32710 * math/test-finite-macros.c: New file.
32711 * math/Makefile (tests): Add test-finite-macros.
32712 (CFLAGS-test-finite-macros.c): New variable.
32713
32714 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32715 Jeff Law <law@redhat.com>
32716
32717 [BZ #22025]
32718 Mangle NULL pointers in iconv/gconv.
32719 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32720 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32721 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32722 is non-NULL before demangling the end_fct. Check for NULL
32723 end_fct after demangling.
32724 (__gconv_release_step): Demangle the end_fct before checking
32725 it for NULL. Remove assert on __shlibc_handle != NULL.
32726 (gen_steps): Don't check btowc_fct for NULL before mangling.
32727 Demangle init_fct before checking for NULL.
32728 (increment_counter): Likewise.
32729 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32730 end_fct for NULL before mangling.
32731 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32732 for NULL.
32733
32734 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32735
32736 [BZ #21971]
32737 * locale/iso-639.def: add Morisyen.
32738
32739 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32740
32741 [BZ #21930]
32742 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32743 (iszero): New C++ implementation that does not use
32744 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32745 signaling nans are enabled, since __builtin_types_compatible_p
32746 is a C-only feature.
32747 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32748 defined, include ieee754_float128.h for access to the union and
32749 member ieee854_float128.ieee.
32750 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32751 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32752 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32753 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32754 options of test-math-zero on powerpc64le.
32755
32756 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32757
32758 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32759 Change double to float.
32760
32761 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32762
32763 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32764 unconditional.
32765 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32766 conditional code; define contents only for [LIBM_SVID_COMPAT].
32767
32768 2017-08-28 Florian Weimer <fweimer@redhat.com>
32769
32770 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32771 (abi-lp64_be-options): Remove.
32772 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32773 (abi-hard-options): Likewise.
32774 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32775 (abi-o32_hard-options, abi-o32_soft_2008-options)
32776 (abi-o32_hard_2008-options, abi-n32_soft-options)
32777 (abi-n32_hard-options, abi-n32_soft_2008-options)
32778 (abi-n32_hard_2008-options, abi-n64_soft-options)
32779 (abi-n64_hard-options, abi-n64_soft_2008-options)
32780 (abi-n64_hard_2008-options): Likewise.
32781 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32782 (abi-64-v1-options, abi-64-v2-options): Likewise.
32783 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32784 (abi-64-options): Likewise.
32785 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32786 (abi-64-options): Likewise.
32787 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32788 (abi-64-options): Likewise.
32789 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32790 (abi-64-options, abi-x32-options): Likewise.
32791
32792 2017-08-28 Florian Weimer <fweimer@redhat.com>
32793
32794 Store supported list of SYS_* system calls in the source tree.
32795 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32796 (bits/syscall.h): Generate from list file.
32797 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32798 [$(subdir) = misc] (tests): Add tst-syscall-list.
32799 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32800 [$(subdir) = misc] (tst-syscall-list-macros.list)
32801 [$(subdir) = misc] (tst-syscall-list-nr.list)
32802 (tst-syscall-list-sys.list): Helper targets for new
32803 tst-syscall-list test.
32804 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32805 tst-syscall-list.sh.
32806 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32807 target. Do not include bits/syscall.d.
32808 [$(subdir) = misc] (generated): Do not update.
32809 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32810 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32811 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32812 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32813
32814 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32815
32816 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32817 (tst-cxa_atexit, tst-on_exit): Likewise.
32818 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32819 tst-cxa_atexit, and tst-on_exit.
32820 * stdlib/tst-atexit-common.c: New file.
32821 * stdlib/tst-atexit.c: New file.
32822 * stdlib/tst-at_quick_exit.c: New file.
32823 * stdlib/tst-cxa_atexit.c: New file.
32824 * stdlib/tst-on_exit.c: New file.
32825
32826 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32827
32828 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32829 * mach/stack_chk_fail_local.c: New file.
32830 * hurd/stack_chk_fail_local.c: New file.
32831 * mach/Machrules ($(interface-library)-routines): Add
32832 stack_chk_fail_local.
32833 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32834 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32835 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32836 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32837 * hurd/Makefile (CFLAGS-hurdstartup.o,
32838 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32839
32840 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32841
32842 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32843 (index_cpu_*, index_arch_*): Removed.
32844
32845 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32846
32847 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32848 Use uint64_t instead of unsigned long.
32849
32850 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32851
32852 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32853 [__HAVE_DISTINCT_FLOAT128].
32854
32855 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32856 of <bits/math-finite.h>.
32857 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32858 inclusion of <bits/math-finite.h>.
32859 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32860 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32861 __NO_LONG_DOUBLE_MATH].
32862 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32863 (__MATH_REDIRCALL_2): Likewise.
32864 (__MATH_REDIRCALL_INTERNAL): Likewise.
32865 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32866 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32867 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32868
32869 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32870 Remove file.
32871 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32872 Likewise.
32873 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32874 Likewise.
32875 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32876 Likewise.
32877 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32878 Likewise.
32879 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32880 Likewise.
32881 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32882 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32883 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32884 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32886 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32887 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32888 w_sqrtf_compat-ppc32.
32889
32890 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32891
32892 * math/math.h [defined __cplusplus] (issignaling): In the long
32893 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32894 is not defined. Call __issignaling, otherwise.
32895
32896 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32897
32898 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32899 syscall definitions and replace __builtin_expect with __glibc_likely.
32900 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32901 syscall.
32902 (SYSCALL_CANCELLABLE): Removedefinition
32903 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32904 definition.
32905 (PSEUDO_END): Likewise.
32906 [IS_IN (libpthread)] (CENABLE): Likewise.
32907 [IS_IN (libpthread)] (CDISABLE): Likewise.
32908 [IS_IN (libc)] (CENABLE): Likewise.
32909 [IS_IN (libc)] (CENABLE): Likewise.
32910 [IS_IN (librt)] (CDISABLE): Likewise.
32911 [IS_IN (librt)] (CDISABLE): Likewise.
32912 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32913 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32914 definition.
32915 (PSEUDO_END): Likewise.
32916 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32917 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32918 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32919 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32920 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32921 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32922 (CENABLE): Likewise.
32923 (CDISABLE): Likewise.
32924 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32925 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32926 defintion.
32927 (PSEUDO_END): Likewise.
32928 [IS_IN (libpthread)] (CENABLE): Likewise.
32929 [IS_IN (libpthread)] (CDISABLE): Likewise.
32930 [IS_IN (libc)] (CENABLE): Likewise.
32931 [IS_IN (libc)] (CENABLE): Likewise.
32932 [IS_IN (librt)] (CDISABLE): Likewise.
32933 [IS_IN (librt)] (CDISABLE): Likewise.
32934 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32935 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32936 definition.
32937 (PSEUDO_END): Likewise.
32938 [IS_IN (libpthread)] (CENABLE): Likewise.
32939 [IS_IN (libpthread)] (CDISABLE): Likewise.
32940 [IS_IN (libc)] (CENABLE): Likewise.
32941 [IS_IN (libc)] (CENABLE): Likewise.
32942 [IS_IN (librt)] (CDISABLE): Likewise.
32943 [IS_IN (librt)] (CDISABLE): Likewise.
32944 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32945 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32946 definition.
32947 (PSEUDO_END): Likewise.
32948 [IS_IN (libpthread)] (CENABLE): Likewise.
32949 [IS_IN (libpthread)] (CDISABLE): Likewise.
32950 [IS_IN (libc)] (CENABLE): Likewise.
32951 [IS_IN (libc)] (CENABLE): Likewise.
32952 [IS_IN (librt)] (CDISABLE): Likewise.
32953 [IS_IN (librt)] (CDISABLE): Likewise.
32954 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32955 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32956 definition.
32957 (PSEUDO_END): Likewise.
32958 [IS_IN (libpthread)] (CENABLE): Likewise.
32959 [IS_IN (libpthread)] (CDISABLE): Likewise.
32960 [IS_IN (libc)] (CENABLE): Likewise.
32961 [IS_IN (libc)] (CENABLE): Likewise.
32962 [IS_IN (librt)] (CDISABLE): Likewise.
32963 [IS_IN (librt)] (CDISABLE): Likewise.
32964 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32965 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32966 definition.
32967 (PSEUDO_END): Likewise.
32968 [IS_IN (libpthread)] (CENABLE): Likewise.
32969 [IS_IN (libpthread)] (CDISABLE): Likewise.
32970 [IS_IN (libc)] (CENABLE): Likewise.
32971 [IS_IN (libc)] (CENABLE): Likewise.
32972 [IS_IN (librt)] (CDISABLE): Likewise.
32973 [IS_IN (librt)] (CDISABLE): Likewise.
32974 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32975 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32976 definition.
32977 (PSEUDO_END): Likewise.
32978 [IS_IN (libpthread)] (CENABLE): Likewise.
32979 [IS_IN (libpthread)] (CDISABLE): Likewise.
32980 [IS_IN (libc)] (CENABLE): Likewise.
32981 [IS_IN (libc)] (CENABLE): Likewise.
32982 [IS_IN (librt)] (CDISABLE): Likewise.
32983 [IS_IN (librt)] (CDISABLE): Likewise.
32984 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32985 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32986 Remove definition.
32987 (PSEUDO_END): Likewise.
32988 [IS_IN (libpthread)] (CENABLE): Likewise.
32989 [IS_IN (libpthread)] (CDISABLE): Likewise.
32990 [IS_IN (libc)] (CENABLE): Likewise.
32991 [IS_IN (libc)] (CENABLE): Likewise.
32992 [IS_IN (librt)] (CDISABLE): Likewise.
32993 [IS_IN (librt)] (CDISABLE): Likewise.
32994 (SINGLE_THREAD_P): Likewise.
32995 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32996 definition.
32997 (PSEUDO_END): Likewise.
32998 [IS_IN (libpthread)] (CENABLE): Likewise.
32999 [IS_IN (libpthread)] (CDISABLE): Likewise.
33000 [IS_IN (libc)] (CENABLE): Likewise.
33001 [IS_IN (libc)] (CENABLE): Likewise.
33002 [IS_IN (librt)] (CDISABLE): Likewise.
33003 [IS_IN (librt)] (CDISABLE): Likewise.
33004 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33005 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
33006 definition.
33007 (PSEUDO_END): Likewise.
33008 [IS_IN (libpthread)] (CENABLE): Likewise.
33009 [IS_IN (libpthread)] (CDISABLE): Likewise.
33010 [IS_IN (libc)] (CENABLE): Likewise.
33011 [IS_IN (libc)] (CENABLE): Likewise.
33012 [IS_IN (librt)] (CDISABLE): Likewise.
33013 [IS_IN (librt)] (CDISABLE): Likewise.
33014 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33015 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
33016 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
33017 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
33018 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
33019 definition.
33020 (PSEUDO_END): Likewise.
33021 [IS_IN (libpthread)] (CENABLE): Likewise.
33022 [IS_IN (libpthread)] (CDISABLE): Likewise.
33023 [IS_IN (libc)] (CENABLE): Likewise.
33024 [IS_IN (libc)] (CENABLE): Likewise.
33025 [IS_IN (librt)] (CDISABLE): Likewise.
33026 [IS_IN (librt)] (CDISABLE): Likewise.
33027 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33028 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
33029 definition.
33030 (PSEUDO_END): Likewise.
33031 [IS_IN (libpthread)] (CENABLE): Likewise.
33032 [IS_IN (libpthread)] (CDISABLE): Likewise.
33033 [IS_IN (libc)] (CENABLE): Likewise.
33034 [IS_IN (libc)] (CENABLE): Likewise.
33035 [IS_IN (librt)] (CDISABLE): Likewise.
33036 [IS_IN (librt)] (CDISABLE): Likewise.
33037 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33038 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
33039 definition.
33040 (PSEUDO_END): Likewise.
33041 [IS_IN (libpthread)] (CENABLE): Likewise.
33042 [IS_IN (libpthread)] (CDISABLE): Likewise.
33043 [IS_IN (libc)] (CENABLE): Likewise.
33044 [IS_IN (libc)] (CENABLE): Likewise.
33045 [IS_IN (librt)] (CDISABLE): Likewise.
33046 [IS_IN (librt)] (CDISABLE): Likewise.
33047 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33048 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
33049 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
33050 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
33051 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
33052 definition.
33053 (PSEUDO_END): Likewise.
33054 [IS_IN (libpthread)] (CENABLE): Likewise.
33055 [IS_IN (libpthread)] (CDISABLE): Likewise.
33056 [IS_IN (libc)] (CENABLE): Likewise.
33057 [IS_IN (libc)] (CENABLE): Likewise.
33058 [IS_IN (librt)] (CDISABLE): Likewise.
33059 [IS_IN (librt)] (CDISABLE): Likewise.
33060 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33061 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
33062 definition.
33063 (PSEUDO_END): Likewise.
33064 [IS_IN (libpthread)] (CENABLE): Likewise.
33065 [IS_IN (libpthread)] (CDISABLE): Likewise.
33066 [IS_IN (libc)] (CENABLE): Likewise.
33067 [IS_IN (libc)] (CENABLE): Likewise.
33068 [IS_IN (librt)] (CDISABLE): Likewise.
33069 [IS_IN (librt)] (CDISABLE): Likewise.
33070 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
33071
33072 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
33073
33074 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
33075
33076 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33077
33078 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
33079
33080 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33081
33082 [BZ #21982]
33083 * string/stratcliff.c (do_test): Declare size, nchars, inner,
33084 middle and outer with size_t instead of int. Repleace %d and
33085 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
33086 "MAX (outer, nchars - 64)" to support unsigned outer and
33087 nchars. Also exit loop when outer == 0.
33088
33089 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33090
33091 * include/fcntl.h (__fcntl_nocancel): Remove definition.
33092 * include/signal.h (__sigsuspend_nocancel): Likewise.
33093 * include/time.h (__nanosleep_nocancel): Likewise.
33094 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
33095 * login/utmp_file.c: Include non cancellable syscall header.
33096 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
33097 prototype.
33098
33099 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
33100
33101 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
33102 .byte sequences with AVX512F instructions.
33103 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
33104 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
33105 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
33106 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
33107 Likewise.
33108 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
33109 Likewise.
33110
33111 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
33112 Steve Ellcey <sellcey@cavium.com>
33113
33114 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
33115 Use PTR_REG macro in cmp instruction.
33116
33117 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33118
33119 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
33120 Change the return type of the ifunc resolver to match the return
33121 type of the target function.
33122
33123 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33124
33125 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
33126 (preadv64): Likewise.
33127 (pwrite64(: Likewise.
33128 (pwritev64): Likewise.
33129
33130 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
33131 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
33132 (LOAD_ARGS_0): Likewise.
33133 (LOAD_ARGS_1): Likewise.
33134 (LOAD_ARGS_2): Likewise.
33135 (LOAD_ARGS_3): Likewise.
33136 (LOAD_ARGS_4): Likewise.
33137 (LOAD_ARGS_5): Likewise.
33138 (LOAD_ARGS_6): Likewise.
33139 (LOAD_REGS_0): Likewise.
33140 (LOAD_REGS_1): Likewise.
33141 (LOAD_REGS_2): Likewise.
33142 (LOAD_REGS_3): Likewise.
33143 (LOAD_REGS_4): Likewise.
33144 (LOAD_REGS_5): Likewise.
33145 (LOAD_REGS_6): Likewise.
33146 (ASM_ARGS_0): Likewise.
33147 (ASM_ARGS_1): Likewise.
33148 (ASM_ARGS_2): Likewise.
33149 (ASM_ARGS_3): Likewise.
33150 (ASM_ARGS_4): Likewise.
33151 (ASM_ARGS_5): Likewise.
33152 (ASM_ARGS_6): Likewise.
33153 (LOAD_ARGS_TYPES_1): Likewise.
33154 (LOAD_ARGS_TYPES_2): Likewise.
33155 (LOAD_ARGS_TYPES_3): Likewise.
33156 (LOAD_ARGS_TYPES_4): Likewise.
33157 (LOAD_ARGS_TYPES_5): Likewise.
33158 (LOAD_ARGS_TYPES_6): Likewise.
33159 (LOAD_REGS_TYPES_1): Likewise.
33160 (LOAD_REGS_TYPES_2): Likewise.
33161 (LOAD_REGS_TYPES_3): Likewise.
33162 (LOAD_REGS_TYPES_4): Likewise.
33163 (LOAD_REGS_TYPES_5): Likewise.
33164 (LOAD_REGS_TYPES_6): Likewise.
33165 (TYPEFY): New define.
33166 (ARGIFY): Likewise.
33167 (internal_syscall0): Likewise.
33168 (internal_syscall1): Likewise.
33169 (internal_syscall2): Likewise.
33170 (internal_syscall3): Likewise.
33171 (internal_syscall4): Likewise.
33172 (internal_syscall5): Likewise.
33173 (internal_syscall6): Likewise.
33174 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33175 (INTERNAL_SYSCALL_NCS): Remove define.
33176 (internal_syscall1): Add define.
33177
33178 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33179
33180 * math/w_remainder_compat.c: Remove duplicate inclusion of
33181 math-svid-compat.h.
33182 * math/w_remainderf_compat.c: Likewise.
33183 * math/w_remainderl_compat.c: Likewise.
33184
33185 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33186
33187 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33188
33189 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33190
33191 [BZ #21684]
33192 * math/tgmath.h (__floating_type): Simplify definitions.
33193 (__real_integer_type): New macro.
33194 (__complex_integer_type): Likewise.
33195 (__expr_is_real): Likewise.
33196 (__tgmath_real_type_sub): Update comment to describe handling of
33197 complex types.
33198 (__tgmath_complex_type_sub): New macro.
33199 (__tgmath_complex_type): Likewise.
33200 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33201 (__TGMATH_CF128): Use __expr_is_real.
33202 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33203 __expr_is_real.
33204 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33205 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33206 * math/gen-tgmath-tests.py (Type.create_type): Create complex
33207 integer types.
33208
33209 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33210
33211 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33212 macro.
33213 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33214 alias.
33215 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33216 Likewise.
33217
33218 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33219 nanosleep_not_cancel with __nanosleep_nocancel.
33220 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33221 (__nanosleep_nocancel): New macro.
33222 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33223 function.
33224 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33225 macro.
33226 (__nanosleep_nocancel): New prototype.
33227
33228 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33229 pause_not_cancel with __pause_nocancel.
33230 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33231 (__pause_nocancel): New macro.
33232 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33233 macro.
33234 (__pause_nocancel): New prototype.
33235 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33236
33237 2017-08-22 Martin Sebor <msebor@redhat.com>
33238
33239 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33240 to return a pointer to the same type as the target function.
33241
33242 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33243
33244 [BZ #18822]
33245 [BZ #21986]
33246 * include/printf.h (__printf_fphex): Add attribute_hidden.
33247 (__guess_grouping): New prototype.
33248 * stdio-common/printf_fp.c (__guess_grouping): Removed.
33249 * stdio-common/reg-printf.c (__register_printf_specifier): Add
33250 libc_hidden_proto and libc_hidden_def.
33251 * stdlib/strfmon_l.c (__guess_grouping): Removed.
33252 (__vstrfmon_l): Remove the third argument passed to
33253 __guess_grouping.
33254
33255 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33256
33257 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33258 definition for issignaling that does not rely on __MATH_TG,
33259 since __MATH_TG uses __builtin_types_compatible_p, which is only
33260 available in C mode.
33261 (CFLAGS-test-math-issignaling.cc): New variable.
33262 * math/Makefile [CXX] (tests): Add test-math-issignaling.
33263 * math/test-math-issignaling.cc: New test for C++ implementation
33264 of type-generic issignaling.
33265 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33266 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33267 options of test-math-issignaling on powerpc64le.
33268
33269 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33270
33271 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33272 building libc.a.
33273 (hidden_proto): Likewise.
33274 (hidden_tls_proto): Likewise.
33275 (__hidden_proto): Likewise.
33276
33277 2017-08-22 Florian Weimer <fweimer@redhat.com>
33278
33279 math: Statically link tests of internal functionality.
33280 * math/Makefile (tests): Remove atest-exp, atest-sincos,
33281 atest-exp2.
33282 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33283 (gmp-objs): Remove assignment.
33284 (atest-exp, atest-sincos, atest-exp2): Remove targets.
33285
33286 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33287
33288 [BZ #21987]
33289 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33290 and copy to ...
33291 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33292 ... here.
33293 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33294 ... and here.
33295
33296 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33297 variable definitions above inclusion of ../Rules.
33298
33299 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33300
33301 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33302 case calling __builtin_unreachable.
33303
33304 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33305
33306 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33307 __waitpid_nocancel.
33308 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33309 (__waitpid_nocancel): New macro.
33310 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33311 macro.
33312 (__waitpid_nocancel): Replace macro with a function.
33313 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33314 function.
33315
33316 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33317 __fcntl_nocancel.
33318 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33319 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33320
33321 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33322 __writev_nocancel_nostatus.
33323 (write_call_graph): Likewise.
33324 (write_bb_counts): Likewise.
33325 * resolv/herror.c (herror): Likewise.
33326 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33327 macro.
33328 (__writev_nocancel_nostatus): New macro.
33329 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33330 Remove macro.
33331 (__writev_nocancel_nostatus): New function.
33332
33333 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33334
33335 Revert:
33336 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33337
33338 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33339 building libc.a.
33340 (hidden_proto): Likewise.
33341 (hidden_tls_proto): Likewise.
33342 (__hidden_proto): Likewise.
33343
33344 [BZ #21973]
33345 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33346 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33347 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33348 Likewise.
33349 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33350 Likewise.
33351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33352 Likewise.
33353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33354 Likewise.
33355 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33356 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33357 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33358 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33359 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33360 GLIBC_2.0 sqrtl symbol.
33361
33362 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33363 [__USE_MISC] (_LIB_VERSION): Likewise.
33364 [__USE_MISC] (struct exception): Likewise.
33365 [__USE_MISC] (matherr): Likewise.
33366 [__USE_MISC] (DOMAIN): Likewise.
33367 [__USE_MISC] (SING): Likewise.
33368 [__USE_MISC] (OVERFLOW): Likewise.
33369 [__USE_MISC] (UNDERFLOW): Likewise.
33370 [__USE_MISC] (TLOSS): Likewise.
33371 [__USE_MISC] (PLOSS): Likewise.
33372 [__USE_MISC] (HUGE): Likewise.
33373 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33374 * math/math-svid-compat.h: New file.
33375 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33376 and matherrl.
33377 * include/math.h [!_ISOMAC] (__matherr): Remove.
33378 * manual/arith.texi (FP Exceptions): Do not document matherr.
33379 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33380 (tests-internal): New variable.
33381 (install-lib): Do not add libieee.a.
33382 (non-lib.a): Likewise.
33383 (extra-objs): Do not add libieee.a and ieee-math.o.
33384 (CPPFLAGS-s_lib_version.c): Remove variable.
33385 ($(objpfx)libieee.a): Remove rule.
33386 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33387 * math/ieee-math.c: Remove.
33388 * math/libm-test-support.c (matherr): Remove.
33389 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33390 and license notices. Include <math-svid-compat.h> and
33391 <shlib-compat.h>.
33392 (matherr): Undefine as macro. Use compat_symbol_reference.
33393 (_LIB_VERSION): Likewise.
33394 * math/test-matherr-2.c: New file.
33395 * math/test-matherr-3.c: Likewise.
33396 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33397 declaration.
33398 (__kernel_standard_f): Likewise.
33399 (__kernel_standard_l): Likewise.
33400 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33401 <math_private.h>. Include <math-svid-compat.h>.
33402 (_LIB_VERSION): Undefine as macro.
33403 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33404 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33405 [LIBM_SVID_COMPAT], use compat_symbol.
33406 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33407 <math_private.h>. Include <math-svid-compat.h>.
33408 (matherr): Undefine as macro.
33409 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33410 compat_symbol.
33411 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33412 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33413 compat_symbol_reference.
33414 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33415 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33416 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33417 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33418 (MATHERR_D): Remove declaration.
33419 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33420 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33421 [LIBM_BUILD] (pmatherrf): Likewise.
33422 [LIBM_BUILD] (pmatherr): Likewise.
33423 [LIBM_BUILD] (pmatherrl): Likewise.
33424 (DOMAIN): Likewise.
33425 (SING): Likewise.
33426 (OVERFLOW): Likewise.
33427 (UNDERFLOW): Likewise.
33428 (TLOSS): Likewise.
33429 (PLOSS): Likewise.
33430 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33431 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33432 compat_symbol.
33433 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33434 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33435 compat_symbol.
33436 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33437 * math/w_acos_compat.c: Likewise.
33438 * math/w_acosf_compat.c: Likewise.
33439 * math/w_acosh_compat.c: Likewise.
33440 * math/w_acoshf_compat.c: Likewise.
33441 * math/w_acoshl_compat.c: Likewise.
33442 * math/w_acosl_compat.c: Likewise.
33443 * math/w_asin_compat.c: Likewise.
33444 * math/w_asinf_compat.c: Likewise.
33445 * math/w_asinl_compat.c: Likewise.
33446 * math/w_atan2_compat.c: Likewise.
33447 * math/w_atan2f_compat.c: Likewise.
33448 * math/w_atan2l_compat.c: Likewise.
33449 * math/w_atanh_compat.c: Likewise.
33450 * math/w_atanhf_compat.c: Likewise.
33451 * math/w_atanhl_compat.c: Likewise.
33452 * math/w_cosh_compat.c: Likewise.
33453 * math/w_coshf_compat.c: Likewise.
33454 * math/w_coshl_compat.c: Likewise.
33455 * math/w_exp10_compat.c: Likewise.
33456 * math/w_exp10f_compat.c: Likewise.
33457 * math/w_exp10l_compat.c: Likewise.
33458 * math/w_exp2_compat.c: Likewise.
33459 * math/w_exp2f_compat.c: Likewise.
33460 * math/w_exp2l_compat.c: Likewise.
33461 * math/w_fmod_compat.c: Likewise.
33462 * math/w_fmodf_compat.c: Likewise.
33463 * math/w_fmodl_compat.c: Likewise.
33464 * math/w_hypot_compat.c: Likewise.
33465 * math/w_hypotf_compat.c: Likewise.
33466 * math/w_hypotl_compat.c: Likewise.
33467 * math/w_j0_compat.c: Likewise.
33468 * math/w_j0f_compat.c: Likewise.
33469 * math/w_j0l_compat.c: Likewise.
33470 * math/w_j1_compat.c: Likewise.
33471 * math/w_j1f_compat.c: Likewise.
33472 * math/w_j1l_compat.c: Likewise.
33473 * math/w_jn_compat.c: Likewise.
33474 * math/w_jnf_compat.c: Likewise.
33475 * math/w_jnl_compat.c: Likewise.
33476 * math/w_lgamma_main.c: Likewise.
33477 * math/w_lgamma_r_compat.c: Likewise.
33478 * math/w_lgammaf_main.c: Likewise.
33479 * math/w_lgammaf_r_compat.c: Likewise.
33480 * math/w_lgammal_main.c: Likewise.
33481 * math/w_lgammal_r_compat.c: Likewise.
33482 * math/w_log10_compat.c: Likewise.
33483 * math/w_log10f_compat.c: Likewise.
33484 * math/w_log10l_compat.c: Likewise.
33485 * math/w_log2_compat.c: Likewise.
33486 * math/w_log2f_compat.c: Likewise.
33487 * math/w_log2l_compat.c: Likewise.
33488 * math/w_log_compat.c: Likewise.
33489 * math/w_logf_compat.c: Likewise.
33490 * math/w_logl_compat.c: Likewise.
33491 * math/w_pow_compat.c: Likewise.
33492 * math/w_powf_compat.c: Likewise.
33493 * math/w_powl_compat.c: Likewise.
33494 * math/w_remainder_compat.c: Likewise.
33495 * math/w_remainderf_compat.c: Likewise.
33496 * math/w_remainderl_compat.c: Likewise.
33497 * math/w_scalb_compat.c: Likewise.
33498 * math/w_scalbf_compat.c: Likewise.
33499 * math/w_scalbl_compat.c: Likewise.
33500 * math/w_sinh_compat.c: Likewise.
33501 * math/w_sinhf_compat.c: Likewise.
33502 * math/w_sinhl_compat.c: Likewise.
33503 * math/w_sqrt_compat.c: Likewise.
33504 * math/w_sqrtf_compat.c: Likewise.
33505 * math/w_sqrtl_compat.c: Likewise.
33506 * math/w_tgamma_compat.c: Likewise.
33507 * math/w_tgammaf_compat.c: Likewise.
33508 * math/w_tgammal_compat.c: Likewise.
33509 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33510 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33511 * sysdeps/ieee754/k_standard.c: Likewise.
33512 * sysdeps/ieee754/k_standardf.c: Likewise.
33513 * sysdeps/ieee754/k_standardl.c: Likewise.
33514 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33515 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33516 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33517 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33518 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33519 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33520 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33521 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33522 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33524 Likewise.
33525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33526 Likewise.
33527 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33528 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33529 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33530 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33531
33532 2017-08-21 Florian Weimer <fweimer@redhat.com>
33533
33534 [BZ #21864]
33535 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33536 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33537 Move before inclusion of ../Rules.
33538
33539 2017-08-21 Florian Weimer <fweimer@redhat.com>
33540
33541 [BZ #21972]
33542 * assert/assert.h (assert): Use static_cast (bool) for C++.
33543 Use the ternary operator in the warning branch for GNU C.
33544 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33545 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33546 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33547 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33548 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33549
33550 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33551
33552 [BZ #18822]
33553 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33554 (__syscall_clock_gettime): Add attribute_hidden.
33555 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33556 (__start_context): Likewise.
33557
33558 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33559
33560 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33561 building libc.a.
33562 (hidden_proto): Likewise.
33563 (hidden_tls_proto): Likewise.
33564 (__hidden_proto): Likewise.
33565
33566 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33567
33568 * include/libc-symbols.h (attribute_hidden): Enable hidden
33569 visibility in libc.a compiled with PIE.
33570
33571 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33572
33573 [BZ #18822]
33574 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33575 Add attribute_hidden.
33576
33577 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33578
33579 [BZ #21864]
33580 * Makerules (all-nonlib): Add $(others-extras).
33581 * catgets/Makefile (others-extras): New.
33582 * elf/Makefile (others-extras): Likewise.
33583 * nss/Makefile (others-extras): Likewise.
33584
33585 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33586
33587 [BZ #18822]
33588 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33589 * elf/dl-open.c: Include <libc-internal.h>.
33590 (__libc_multiple_libcs): Removed.
33591 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33592 <hp-timing.h>.
33593 * include/libc-internal.h (__libc_multiple_libcs): New.
33594 * misc/sbrk.c: Include <libc-internal.h>.
33595 (__libc_multiple_libcs): Removed.
33596
33597 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33598
33599 [BZ #18822]
33600 * grp/initgroups.c (__nss_group_database): Removed.
33601 (__nss_initgroups_database): Likewise.
33602 * nscd/gai.c (__nss_hosts_database): Likewise.
33603 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33604 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33605 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33606 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33607 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33608 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33609 attribute_hidden.
33610 * nss/nsswitch.c (__nss_database_custom): Define only if
33611 USE_NSCD is defined.
33612 (__nss_configure_lookup): Use __nss_database_custom only if
33613 USE_NSCD is defined.
33614 * nss/nsswitch.h (__nss_database_custom): Declare only if
33615 USE_NSCD is defined. Add attribute_hidden.
33616 (__nss_setent): Add attribute_hidden.
33617 (__nss_endent): Likewise.
33618 (__nss_getent_r): Likewise.
33619 (__nss_getent): Likewise.
33620 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33621
33622 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33623
33624 [BZ #18822]
33625 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33626 libc_hidden_proto and libc_hidden_def.
33627
33628 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33629
33630 [BZ #18822]
33631 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33632 Add libc_hidden_proto.
33633 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33634 Add libc_hidden_def.
33635
33636 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33637
33638 [BZ #21974]
33639 * gmon/Makefile (routines): Remove bb_init_func and
33640 bb_exit_func.
33641 (elide-routines.os): Removed.
33642 * gmon/bb_exit_func.c: Likewise.
33643 * gmon/bb_init_func.c: Likewise.
33644 * include/sys/gmon.h (__bb): Likewise.
33645 (__bb_init_func): Likewise.
33646 (__bb_exit_func): Likewise.
33647 * sysdeps/alpha/bb_init_func.S: Likewise.
33648
33649 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33650
33651 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33652 * include/setjmp.h (____longjmp_chk): Here. Add
33653 attribute_hidden.
33654
33655 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33656
33657 [BZ #18822]
33658 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33659 attribute_hidden.
33660 (__strspn_sse2): Likewise.
33661
33662 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33663
33664 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33665 (close_not_cancel_no_status): Likewise.
33666 (__close_nocancel): New macro.
33667 (__close_nocancel_nostatus): Likewise.
33668 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33669 macro.
33670 (close_not_cancel): Likewise.
33671 (close_not_cancel_no_status): Likewise.
33672 (__close_nocancel): New prototype.
33673 (__close_nocancel_nostatus): New function.
33674 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33675 * catgets/open_catalog.c (__open_catalog): Replace
33676 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33677 * gmon/gmon.c (write_gmon): Likewise.
33678 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33679 * intl/loadmsgcat.c (close): Likewise.
33680 * io/ftw.c (open_dir_stream): Likewise.
33681 (ftw_startup): Likewise.
33682 * libio/fileops.c (_IO_file_open): Likewise.
33683 (_IO_file_close_mmap): Likewise.
33684 (_IO_file_close): Likewise.
33685 * libio/iopopen.c (_IO_dup2): Likewise.
33686 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33687 * locale/loadlocale.c (_nl_load_locale): Likewise.
33688 * login/utmp_file.c (pututline_file): Likewise.
33689 (endutent_file): Likewise.
33690 * misc/daemon.c (daemon): Likewise.
33691 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33692 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33693 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33694 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33695 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33696 * nscd/nscd_helper.c (open_socket): Likewise.
33697 (__nscd_open_socket): Likewise.
33698 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33699 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33700 (__nscd_innetgr): Likewise.
33701 * nss/nss_db/db-open.c (internal_setent): Likewise.
33702 * resolv/res-close.c (__res_iclose): Likewise.
33703 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33704 * sysdeps/posix/closedir.c (__closedir): Likewise.
33705 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33706 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33707 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33708 (opendir_tail): Likewise.
33709 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33710 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33711 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33712 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33713 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33714 (gethostid): Likewise.
33715 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33716 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33717 Likewise.
33718 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33719 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33720 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33721 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33722 Likewise.
33723 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33724 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33725 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33726 Likewise.
33727 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33728 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33729 Likewise.
33730 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33731 Likewise.
33732 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33733 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33734 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33735 __close_nocancel.
33736
33737 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33738 (openat_not_cancel_3): Likewise.
33739 (openat64_not_cancel_3): Likewise).
33740 (openat_not_cancel_3): Likewise).
33741 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33742 macro.
33743 (openat_not_cancel_3): Likewise.
33744 (openat64_not_cancel): Likewise.
33745 (openat64_not_cancel_3): Likewise.
33746 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33747 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33748 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33749 __open{64}_nocancel.
33750 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33751 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33752 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33753
33754 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33755
33756 [BZ #18822]
33757 * include/argz.h (__argz_create_sep): New function prototype.
33758 (__argz_append): Likewise.
33759 (__argz_add): Likewise.
33760 (__argz_add_sep): Likewise.
33761 (__argz_delete): Likewise.
33762 (__argz_insert): Likewise.
33763 (__argz_replace): Likewise.
33764 * string/argz.h (__argz_create_sep): Removed.
33765 (__argz_append): Likewise.
33766 (__argz_add): Likewise.
33767 (__argz_add_sep): Likewise.
33768 (__argz_delete): Likewise.
33769 (__argz_insert): Likewise.
33770 (__argz_replace): Likewise.
33771
33772 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33773
33774 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33775 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33776 (GNU_PROPERTY_STACK_SIZE): Likewie.
33777 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33778 (GNU_PROPERTY_LOPROC): Likewise.
33779 (GNU_PROPERTY_HIPROC): Likewise.
33780 (GNU_PROPERTY_LOUSER): Likewise.
33781 (GNU_PROPERTY_HIUSER): Likewise.
33782 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33783 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33784 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33785 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33786 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33787 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33788 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33789 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33790 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33791 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33792 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33793 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33794 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33795 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33796 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33797 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33798 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33799 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33800 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33801 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33802 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33803 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33804 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33805
33806 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33807
33808 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33809 in C++ mode.
33810
33811 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33812
33813 [BZ #21930]
33814 * math/math.h (isinf): Check if in C or C++ mode before using
33815 __builtin_types_compatible_p, since this is a C mode feature.
33816
33817 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33818
33819 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33820 (__write_nocancel): New macro.
33821 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33822 Rewrite as a function prototype.
33823 (write_not_cancel): Remove macro.
33824 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33825 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33826 (write_gmon): Likewise.
33827 * libio/fileops.c (_IO_new_file_write): Likewise.
33828 * login/utmp_file.c (pututline_file): Likewise.
33829 (updwtmp_file): Likewise.
33830 * stdio-common/psiginfo.c (psiginfo): Likewise.
33831 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33832 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33833 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33834 Likewise.
33835 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33836 Likewise.
33837
33838 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33839 (__read_nocancel): New macro.
33840 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33841 __read_nocancel.
33842 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33843 macro.
33844 (__read_nocancel): New prototype.
33845 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33846 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33847 with __read_nocancel.
33848 * intl/loadmsgcat.c (read): Likewise.
33849 * libio/fileops.c (_IO_file_read): Likewise.
33850 * locale/loadlocale.c (_nl_load_locale): Likewise.
33851 * login/utmp_file.c (getutent_r_file): Likewise.
33852 (internal_getut_r): Likewise.
33853 (getutline_r_file): Likewise.
33854 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33855 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33856 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33857 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33858 Likewise.
33859 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33860 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33861 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33862 Likewise.
33863 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33864 Likewise.
33865 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33866 Likewise.
33867 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33868 Likewise.
33869 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33870
33871 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33872
33873 [BZ #21966]
33874 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33875 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33876 usable.
33877
33878 2017-08-17 DJ Delorie <dj@redhat.com>
33879
33880 * bug17079.c: Update to new test harness.
33881 * test-digits-dots.c: Likewise.
33882 * test-netdb.c: Likewise.
33883 * tst-field.c: Likewise.
33884 * tst-nss-getpwent.c: Likewise.
33885 * tst-nss-static.c: Likewise.
33886 * tst-nss-test1.c: Likewise.
33887 * tst-nss-test2.c: Likewise.
33888 * tst-nss-test3.c: Likewise.
33889 * tst-nss-test4.c: Likewise.
33890 * tst-nss-test5.c: Likewise.
33891
33892 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33893
33894 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33895 (open_not_cancel_2): Likewise.
33896 (open_nocancel): New macro.
33897 (open64_nocancel): Likewise.
33898 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33899 (open_not_cancel_2): Likewise.
33900 (__open_nocancel): New prototype.
33901 (__open64_nocancel): Likewise.
33902 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33903 __open_nocancel.
33904 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33905 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33906 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33907 with __open_nocancel.
33908 * csu/check_fds.c (check_one_fd): Likewise.
33909 * gmon/gmon.c (write_gmon): Likewise.
33910 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33911 * intl/loadmsgcat.c (open): Likewise.
33912 * libio/fileops.c (_IO_file_open): Likewise.
33913 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33914 * locale/loadlocale.c (_nl_load_locale): Likewise.
33915 * login/utmp_file.c (setutent_file): Likewise.
33916 * misc/daemon.c (daemon): Likewise.
33917 * nss/nss_db/db-open.c (internal_setent): Likewise.
33918 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33919 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33920 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33921 (__opendir): Likewise.
33922 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33923 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33924 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33925 (gethostid): Likewise.
33926 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33927 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33928 Likewise.
33929 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33930 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33931 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33932 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33933 Likewise.
33934 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33935 Likewise.
33936 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33937 Likewise.
33938 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33939 Likewise.
33940 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33941 Likewise.
33942 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33943 Likewise.
33944 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33945 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33946
33947 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33948
33949 * benchtests/bench-skeleton.c (main): Add support for
33950 latency benchmarking.
33951 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33952
33953 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33954
33955 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33956 the startup object.
33957
33958 2017-08-17 Florian Weimer <fweimer@redhat.com>
33959
33960 * include/sys/socket.h (__opensock): Remove internal_function.
33961 * socket/opensock.c (__opensock): Likewise.
33962 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33963
33964 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33965
33966 [BZ #21944]
33967 * signal/bits/types/__sigval_t.h: New file.
33968 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33969 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33970 and define sigval_t using __sigval_t.
33971 * include/bits/types/__sigval_t.h: New file.
33972 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33973 instead of <bits/types/__sigval_t.h>.
33974 (struct sigevent): Use __sigval_t instead of sigval_t.
33975 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33976 instead of <bits/types/__sigval_t.h>.
33977 (siginfo_t): Use __sigval_t instead of sigval_t.
33978 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33979 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33980 (struct sigevent): Use __sigval_t instead of sigval_t.
33981 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33982 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33983 (siginfo_t): Use __sigval_t instead of sigval_t.
33984 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33985
33986 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33987
33988 * NEWS: Remove "[Add new features here]" for 2.27.
33989
33990 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33991
33992 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33993 libc.so.
33994
33995 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33996
33997 * NEWS: Mention x86-64 FMA optimization.
33998
33999 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
34000
34001 [BZ #21912]
34002 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34003 Add e_expf-fma.
34004 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
34005 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
34006 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
34007
34008 2017-08-16 Andreas Schwab <schwab@suse.de>
34009
34010 [BZ #16750]
34011 CVE-2009-5064
34012 * elf/ldd.bash.in: Never run file directly.
34013
34014 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
34015
34016 [BZ #21955]
34017 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
34018 (L(SP_INF_0)): Likewise.
34019
34020 2017-08-15 Florian Weimer <fweimer@redhat.com>
34021
34022 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
34023 run-built-tests.
34024
34025 2017-08-15 Florian Weimer <fweimer@redhat.com>
34026
34027 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
34028 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
34029 BROKEN_THREAD_SIGNALS code.
34030 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
34031 request_list): Remove caller_pid member used for
34032 BROKEN_THREAD_SIGNALS.
34033 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
34034 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34035 Remove BROKEN_THREAD_SIGNALS support.
34036 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
34037 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
34038
34039 2017-08-15 Florian Weimer <fweimer@redhat.com>
34040
34041 * gmon/Makefile (tests): Add tst-gmon.
34042 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
34043 Set.
34044 (tests-special): Add tst-gmon-prof.out.
34045 (tst-gmon.out): Depend on clean-tst-gmon-data.
34046 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
34047 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
34048 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
34049 startup object.
34050 * aclocal.m4 (GPROF): Set and substitute.
34051 * config.amke.in (GPROF): Set.
34052 * configure: Regenerate.
34053
34054 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
34055
34056 * elf/elf.h A (NT_PPC_TAR): New macro.
34057 (NT_PPC_PPR): Likewise.
34058 (NT_PPC_DSCR): Likewise.
34059 (NT_PPC_EBB): Likewise.
34060 (NT_PPC_PMU): Likewise.
34061 (NT_PPC_TM_CGPR): Likewise.
34062 (NT_PPC_TM_CFPR): Likewise.
34063 (NT_PPC_TM_CVMX): Likewise.
34064 (NT_PPC_TM_CVSX): Likewise.
34065 (NT_PPC_TM_SPR): Likewise.
34066 (NT_PPC_TM_CTAR): Likewise.
34067 (NT_PPC_TM_CPPR): Likewise.
34068 (NT_PPC_TM_CDSCR): Likewise.
34069
34070 2017-08-15 Florian Weimer <fweimer@redhat.com>
34071
34072 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
34073 regparm (2) instead of internal_function.
34074 (_MCOUNT_DECL): Adjust.
34075
34076 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
34077
34078 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
34079 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
34080
34081 2017-08-14 Joseph Myers <joseph@codesourcery.com>
34082
34083 * conform/data/sys/wait.h-data (si_value): Do not expect for
34084 XPG42.
34085
34086 2017-08-14 Florian Weimer <fweimer@redhat.com>
34087
34088 [BZ #21962]
34089 NSS: Create stubs for accidentally exported lookup functions.
34090 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
34091 Remove declaration.
34092 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
34093 (ether_hostton): Call __nss_ethers_lookup2 instead.
34094 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
34095 (ether_ntohost): Call __nss_ethers_lookup2 instead.
34096 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
34097 (setup): Call __nss_netgroup_lookup2 instead.
34098 * nss/Makefile (routines): Add compat-lookup.
34099 * nss/Versions (GLIBC_2.27): Add symbol version.
34100 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
34101 (DB_COMPAT_FCT): Remove.
34102 * nss/compat-lookup.c: New file.
34103 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
34104 from databases.def.
34105 * nss/service-lookup.c (NO_COMPAT): Remove definition.
34106 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
34107 (netname2user): Call __nss_publickey_lookup2 instead.
34108 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
34109 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
34110 instead.
34111
34112 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34113 Sergei Trofimovich <slyfox@inbox.ru>
34114
34115 [BZ #21908]
34116 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
34117 Rename to MMAP2_PAGE_UNIT.
34118 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
34119 __OFF_T_MATCHES_OFF64_T is not defined.
34120 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
34121 uint64_t.
34122 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
34123 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
34124
34125 2017-08-14 Florian Weimer <fweimer@redhat.com>
34126
34127 i386: Do not set internal_function.
34128 * config.h.in (USE_REGPARMS, internal_function): Remove.
34129 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
34130 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
34131
34132 2017-08-14 Florian Weimer <fweimer@redhat.com>
34133
34134 * elf/dl-init.c (_dl_init): Remove internal_function.
34135 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
34136 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
34137
34138 2017-08-14 Florian Weimer <fweimer@redhat.com>
34139
34140 * elf/rtld.c (_dl_start): Remove internal_function.
34141 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
34142 _dl_start.
34143
34144 2017-08-14 Florian Weimer <fweimer@redhat.com>
34145
34146 * elf/dl-fini.c (_dl_fini): Remove internal_function
34147 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34148
34149 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
34150
34151 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34152 (bit_cpu_SHSTK): Likewise.
34153 (index_cpu_IBT): Likewise.
34154 (index_cpu_SHSTK): Likewise.
34155 (reg_IBT): Likewise.
34156 (reg_SHSTK): Likewise.
34157 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34158 Handle index_cpu_IBT and index_cpu_SHSTK.
34159
34160 2017-08-14 Mike FABIAN <mfabian@redhat.com>
34161
34162 [BZ #19982]
34163 * po/fr.po: Fix spelling mistake.
34164
34165 2017-08-13 Florian Weimer <fweimer@redhat.com>
34166
34167 * elf/dl-addr.c (_dl_addr): Remove internal_function.
34168 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34169 (_dl_catch_error, _dl_receive_error): Likewise.
34170 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34171 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34172 (_dl_deallocate_tls): Likewise.
34173 * include/dlfcn.h (_dl_addr): Likewise.
34174 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34175 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34176 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34177 Likewise.
34178
34179 2017-08-13 Florian Weimer <fweimer@redhat.com>
34180
34181 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34182 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34183 internal_function.
34184 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34185
34186 2017-08-13 Florian Weimer <fweimer@redhat.com>
34187
34188 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34189 internal_function.
34190 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34191 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34192 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34193 internal_function from _dl_make_stack_executable_hook member.
34194 (_dl_make_stack_executable): Remove internal_function.
34195 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34196 Likewise.
34197 * sysdeps/unix/sysv/linux/dl-execstack.c
34198 (_dl_make_stack_executable): Likewise.
34199
34200 2017-08-13 Florian Weimer <fweimer@redhat.com>
34201
34202 * sysdeps/unix/sysv/linux/netlinkaccess.h
34203 (__netlink_assert_response): Remove internal_function.
34204 * sysdeps/unix/sysv/linux/netlink_assert_response.c
34205 (__netlink_assert_response): Likewise.
34206
34207 2017-08-13 Florian Weimer <fweimer@redhat.com>
34208
34209 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34210 internal_function.
34211 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34212
34213 2017-08-13 Florian Weimer <fweimer@redhat.com>
34214
34215 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34216 internal_function.
34217 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34218 * inet/netgroup.h (__internal_setnetgrent)
34219 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34220 * inet/getnetgrent_r.c (__internal_setnetgrent)
34221 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34222 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34223 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34224 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34225 * nss/nsswitch.h (db_lookup_function): Likewise.
34226
34227 2017-08-13 Florian Weimer <fweimer@redhat.com>
34228
34229 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34230 Remove internal_function.
34231 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34232 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34233 message argument on the stack.
34234 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34235 Likeweise.
34236
34237 2017-08-12 Mike FABIAN <mfabian@redhat.com>
34238
34239 Adapt test case data to the changes in the thousands
34240 separators.
34241
34242 [BZ #20756]
34243 * localedata/tst-langinfo.sh: Adapt test case data.
34244 * stdlib/tst-strfmon_l.c: Likewise.
34245 * stdlib/tst-strtod4.c: Likewise.
34246 * stdlib/tst-strtod5i.c: Likewise.
34247
34248 2017-08-11 Florian Weimer <fweimer@redhat.com>
34249
34250 [BZ #21242]
34251 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34252 Suppress pedantic warning resulting from statement expression.
34253 (__ASSERT_FUNCTION): Add missing __extension__.
34254
34255 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34256
34257 * benchtests/bench-memmove-large.c: Print output in JSON
34258 format.
34259 * benchtests/bench-memmove.c: Likewise.
34260
34261 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34262 * benchtests/bench-memchr.c (do_one_test): Likewise.
34263 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34264 * benchtests/bench-memcpy.c (do_one_test): Likewise.
34265 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34266 * benchtests/bench-memmove.c (do_one_test): Likewise.
34267 * benchtests/bench-memset-large.c (do_one_test): Likewise.
34268 * benchtests/bench-memset.c (do_one_test): Likewise.
34269 * benchtests/bench-string.h (test_init): Remove memsets.
34270
34271 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34272
34273 * manual/lang.texi
34274 (Computing the Width of an Integer Data Type): Rename section to
34275 "Width of an Integer Type". Remove inaccurate statement regarding
34276 lack of C language facilities for determining width of integer
34277 types, and reorder content to improve flow and context of
34278 discussion.
34279
34280 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34281
34282 * lang.texi (va_copy): Change standard from ISO to C99.
34283 (__va_copy): Add standard and header annotation.
34284 Update description for clarity of origins and current use.
34285
34286 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34287
34288 [BZ #21941]
34289 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34290 xssqrtqp requires operands to be in Vector Registers
34291 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34292 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34293 (__ieee754_sqrtf128): Likewise.
34294
34295 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
34296
34297 * sysdeps/aarch64/memcmp.S (memcmp):
34298 Rewrite of optimized memcmp.
34299
34300 2017-08-10 Florian Weimer <fweimer@redhat.com>
34301
34302 Introduce ld.so exceptions.
34303 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34304 (_dl_exception_create, _dl_exception_create_format)
34305 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34306 (_dl_catch_exception): Declare.
34307 (_dl_catch_error): Update comment.
34308 * elf/dl-error-skeleton.c (struct catch): Replace objname,
34309 errstring, malloced members with exception member.
34310 (_dl_out_of_memory): Remove.
34311 (fatal_error): New function, extracted from _dl_signal_error.
34312 (_dl_signal_exception, _dl_signal_cexception): New functions.
34313 (_dl_signal_error): Call _dl_exception_create to allocate an
34314 exception object.
34315 (_dl_catch_exception): New function, based on _dl_catch_error.
34316 (_dl_catch_error): Implement using _dl_catch_exception.
34317 * elf/dl-exception.c: New file.
34318 * elf/Makefile (dl-routines): Add dl-exception.
34319 (elide-routines.os): Likewise.
34320 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34321 _dl_exception_create_format, _dl_exception_free.
34322 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34323 _dl_signal_exception.
34324 * elf/dl-lookup.c (make_string): Remove.
34325 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34326 _dl_signal_cexception, _dl_exception_free.
34327 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34328 _dl_signal_exception.
34329 * elf/dl-sym.c (do_sym): Likewise.
34330 * elf/dl-version.c (make_string): Remove.
34331 (match_symbol): Use _dl_exception_create_format,
34332 _dl_signal_cexception, _dl_exception_free.
34333 (_dl_check_map_versions): Likewise.
34334 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34335 _dl_catch_exception.
34336 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34337 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34338 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34339 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34340 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34341 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34342 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34343 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34344 Likewise.
34345 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34347 (ld.so): Likewise.
34348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34349 (ld.so): Likewise.
34350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34351 Likewise.
34352 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34353 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34354 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34355 Likewise.
34356 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34357 Likewise.
34358 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34359
34360 2017-08-10 Florian Weimer <fweimer@redhat.com>
34361
34362 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34363 attribute_hidden, internal_function.
34364 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34365 internal_function.
34366
34367 2017-08-10 Florian Weimer <fweimer@redhat.com>
34368
34369 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34370 function which calls __builtin_unreachable.
34371
34372 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34373
34374 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34375 Indian monetary formatting
34376 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34377 test cases.
34378
34379 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34380
34381 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34382 Fix typo in comment.
34383
34384 [BZ #21928]
34385 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34386 PTRACE_SEIZE_DEVEL): Remove.
34387 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34388 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34389 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34390 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34391 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34392
34393 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34394
34395 * posix/bits/types.h (__qaddr_t): Remove.
34396
34397 [BZ #21457]
34398 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34399 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34400 __glibc_reserved1.
34401 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34402 (ucontext_t): Use __ctx with uc_flags.
34403 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34404 (__ctxt): Likewise.
34405 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34406 __glibc_reserved1.
34407 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34408 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34409 __glibc_reserved1.
34410 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34411 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34412 __glibc_reserved1.
34413 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34414 macro.
34415 (ucontext_t): Use __ctx with uc_flags.
34416 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34417 (ucontext_t): Use __ctx with uc_flags.
34418 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34419 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34420 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34421 (ucontext_t): Use __ctx with uc_flags.
34422 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34423 undefine further down.
34424 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34425 __glibc_reserved1.
34426 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34427 undefine further down.
34428 (ucontext_t): Use __ctx with uc_flags.
34429 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34430 undefine further down.
34431 (ucontext_t): Use __ctx with uc_flags.
34432 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34433 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34434 Rename uc_pad to __glibc_reserved1.
34435 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34436 undefine further down.
34437 (ucontext_t): Use __ctx with uc_flags.
34438 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34439 further down.
34440 (ucontext_t): Use __ctx with uc_flags.
34441 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34442 __ctx with uc_flags.
34443 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34444 (ucontext_t): Use __ctx with uc_flags.
34445 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34446 __ctx with uc_flags.
34447
34448 2017-08-09 Florian Weimer <fweimer@redhat.com>
34449
34450 [BZ #21932]
34451 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34452 before early return.
34453
34454 2017-08-09 Andreas Schwab <schwab@suse.de>
34455
34456 [BZ #21041]
34457 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34458 renamed alias.
34459
34460 [BZ #21041]
34461 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34462 tst-compat-forwarder.
34463 (modules-names): Add tst-compat-forwarder-mod.
34464 ($(objpfx)tst-compat-forwarder): Depend on
34465 $(objpfx)tst-compat-forwarder-mod.so.
34466 * nptl/tst-compat-forwarder.c: New file.
34467 * nptl/tst-compat-forwarder-mod.c: New file.
34468
34469 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34470
34471 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34472 comments.
34473
34474 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34475 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34476 memcpy_falkor.
34477 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34478 Bump.
34479 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34480 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34481 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34482 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34483 Add falkor.
34484 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34485 New macro.
34486
34487 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34488
34489 [BZ #759]
34490 * manual/setjmp.texi (getcontex): Document uc_stack value
34491 compatibility differences.
34492
34493 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34494
34495 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34496 (old_malloc_hook): Likewise.
34497 (old_memalign_hook): Likewise.
34498 (old_realloc_hook): Likewise.
34499 (struct hdr): Likewise.
34500 (flood): Likewise.
34501 (freehook): Likewise.
34502 (mallochook): Likewise.
34503 (memalignhook): Likewise.
34504 (reallochook): Likewise.
34505 (mprobe): Likewise.
34506 * malloc/mtrace.c (mallwatch): Likewise.
34507 (tr_old_free_hook): Likewise.
34508 (tr_old_malloc_hook): Likewise.
34509 (tr_old_realloc_hook): Likewise.
34510 (tr_old_memalign_hook): Likewise.
34511 (tr_where): Likewise.
34512 (lock_and_info): Likewise.
34513 (tr_freehook): Likewise.
34514 (tr_mallochook): Likewise.
34515 (tr_reallochook): Likewise.
34516 (tr_memalignhook): Likewise.
34517 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34518 * misc/mmap.c (__mmap): Likewise.
34519 * misc/mmap64.c (__mmap64): Likewise.
34520 * misc/mprotect.c (__mprotect): Likewise.
34521 * misc/msync.c (msync): Likewise.
34522 * misc/munmap.c (__munmap): Likewise.
34523 * posix/posix_madvise.c (posix_madvise): Likewise.
34524 * socket/send.c (__send): Likewise.
34525 * socket/sendto.c (__sendto): Likewise.
34526 * socket/setsockopt.c (__setsockopt): Likewise.
34527 * string/memcmp.c (__ptr_t): Remove macro.
34528 (MEMCMP): Use void * instead of ptr_t.
34529 * string/memrchr.c (__ptr_t): Remove macro.
34530 (__memrchr): Use void * instead of ptr_t.
34531 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34532 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34533 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34534 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34535 * sysdeps/mach/msync.c (msync): Likewise.
34536 * sysdeps/mach/munmap.c (__munmap): Likewise.
34537 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34538 Likewise.
34539 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34540 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34541 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34542 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34543 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34544 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34545 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34546 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34547 Likewise.
34548 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34549 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34550 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34551 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34552 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34553 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34554 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34555 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34556 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34557 Likewise.
34558 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34559 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34560 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34561 (MEMCMP): Use void * instead of ptr_t.
34562 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34563 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34564
34565 2017-08-08 Florian Weimer <fweimer@redhat.com>
34566
34567 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34568 return statement.
34569
34570 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34571
34572 [BZ #21913]
34573 * csu/libc-tls.c: Include <startup.h> first.
34574 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34575 * elf/dl-tunables.c: Include <startup.h> first.
34576 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34577 * sysdeps/generic/startup.h: New file.
34578 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34579 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34580 (I386_USE_SYSENTER): New. Defined to 0.
34581
34582 2017-08-08 Andreas Schwab <schwab@suse.de>
34583
34584 [BZ #21041]
34585 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34586 * nptl/pt-system.c (system): Likewise.
34587
34588 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34589
34590 [BZ #21780]
34591 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34592 EOPNOTSUPP.
34593 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34594 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34595 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34596 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34597 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34598 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34599 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34600
34601 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34602
34603 [BZ #21899]
34604 * bits/sigaction.h (struct sigaction): Define sa_handler and
34605 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34606 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34607 [__USE_XOPEN_EXTENDED].
34608 (SA_RESTART): Likewise.
34609 (SA_NODEFER): Likewise.
34610 (SA_RESETHAND): Likewise.
34611 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34612 (struct sigaction): Define sa_handler and sa_sigaction using union
34613 also for [__USE_XOPEN_EXTENDED].
34614 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34615 [__USE_XOPEN_EXTENDED].
34616 (SA_RESTART): Likewise.
34617 (SA_NODEFER): Likewise.
34618 (SA_RESETHAND): Likewise.
34619 * sysdeps/unix/sysv/linux/bits/sigaction.h
34620 (struct sigaction): Define sa_handler and sa_sigaction using union
34621 also for [__USE_XOPEN_EXTENDED].
34622 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34623 [__USE_XOPEN_EXTENDED].
34624 (SA_RESTART): Likewise.
34625 (SA_NODEFER): Likewise.
34626 (SA_RESETHAND): Likewise.
34627 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34628 (struct sigaction): Define sa_handler and sa_sigaction using union
34629 also for [__USE_XOPEN_EXTENDED].
34630 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34631 [__USE_XOPEN_EXTENDED].
34632 (SA_RESTART): Likewise.
34633 (SA_NODEFER): Likewise.
34634 (SA_RESETHAND): Likewise.
34635 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34636 (struct sigaction): Define sa_handler and sa_sigaction using union
34637 also for [__USE_XOPEN_EXTENDED].
34638 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34639 [__USE_XOPEN_EXTENDED].
34640 (SA_RESTART): Likewise.
34641 (SA_NODEFER): Likewise.
34642 (SA_RESETHAND): Likewise.
34643 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34644 (struct sigaction): Define sa_handler and sa_sigaction using union
34645 also for [__USE_XOPEN_EXTENDED].
34646 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34647 [__USE_XOPEN_EXTENDED].
34648 (SA_RESTART): Likewise.
34649 (SA_NODEFER): Likewise.
34650 (SA_RESETHAND): Likewise.
34651 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34652 (struct sigaction): Define sa_handler and sa_sigaction using union
34653 also for [__USE_XOPEN_EXTENDED].
34654 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34655 [__USE_XOPEN_EXTENDED].
34656 (SA_RESTART): Likewise.
34657 (SA_NODEFER): Likewise.
34658 (SA_RESETHAND): Likewise.
34659 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34660 (struct sigaction): Define sa_handler and sa_sigaction using union
34661 also for [__USE_XOPEN_EXTENDED].
34662 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34663 [__USE_XOPEN_EXTENDED].
34664 (SA_RESTART): Likewise.
34665 (SA_NODEFER): Likewise. Define directly rather than as alias.
34666 (SA_RESETHAND): Likewise.
34667 (SA_INTERRUPT): Define only for [__USE_MISC].
34668 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34669 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34670 [__USE_MISC].
34671 (SA_STACK): Define only for [__USE_MISC].
34672 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34673 (struct sigaction): Define sa_handler and sa_sigaction using union
34674 also for [__USE_XOPEN_EXTENDED].
34675 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34676 [__USE_XOPEN_EXTENDED].
34677 (SA_RESTART): Likewise.
34678 (SA_NODEFER): Likewise.
34679 (SA_RESETHAND): Likewise.
34680 (SA_NOPTRACE): Define only for [__USE_MISC].
34681
34682 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34683 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34684 (struct catalog_info): Likewise.
34685 * inet/htontest.c (lo): Likewise.
34686 (foo): Likewise.
34687 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34688 * inet/inet_net.c (inet_network): Likewise.
34689 * inet/inet_netof.c (inet_netof): Likewise.
34690 * inet/rcmd.c (__ivaliduser): Likewise.
34691 (iruserok): Likewise.
34692 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34693 * locale/programs/locale-spec.c (locale_special): Likewise.
34694 * nis/nis_findserv.c (struct findserv_req): Likewise.
34695 (__nis_findfastest_with_timeout): Likewise.
34696 * nss/test-netdb.c (test_network): Likewise.
34697 * resolv/inet_neta.c (inet_neta): Likewise.
34698 * resolv/ns_date.c (ns_datetosecs): Likewise.
34699 (SECS_PER_DAY): Likewise.
34700 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34701 Likewise.
34702 * resolv/res_comp.c (__putlong): Likewise.
34703 (__putshort): Likewise.
34704 (_getlong): Likewise.
34705 (_getshort): Likewise.
34706 * resolv/res_debug.c (p_time): Likewise.
34707 (precsize_ntoa): Likewise.
34708 (precsize_aton): Likewise.
34709 (latlon2ul): Likewise.
34710 (loc_aton): Likewise.
34711 (loc_ntoa): Likewise.
34712 * resolv/res_hconf.c (struct netaddr): Likewise.
34713 (_res_hconf_reorder_addrs): Likewise.
34714 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34715 (clnttcp_control): Likewise.
34716 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34717 (clntudp_control): Likewise.
34718 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34719 (clntunix_control): Likewise.
34720 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34721 * sunrpc/rpc/auth.h (union des_block): Likewise.
34722 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34723 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34724 (xdrrec_create): Likewise.
34725 (xdrrec_endofrecord): Likewise.
34726 (flush_out): Likewise.
34727 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34728 (xdrstdio_putlong): Likewise.
34729 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34730 Likewise.
34731
34732 * misc/sys/cdefs.h (__long_double_t): Remove.
34733 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34734 instead of __long_double_t,
34735 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34736
34737 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34738
34739 * benchtests/scripts/compare_strings.py: Avoid display error when
34740 running on a text terminal.
34741
34742 * benchtests/scripts/compare_strings.py (main): Add an
34743 optional -base option.
34744 (process_results): New argument base_func.
34745
34746 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34747 hardcoding memcpy.
34748 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34749 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34750
34751 2017-08-07 Andreas Schwab <schwab@suse.de>
34752
34753 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34754 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34755 * intl/Makefile ($(objpfx)tst-gettext.out)
34756 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34757 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34758 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34759 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34760 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34761 * posix/Makefile ($(objpfx)globtest.out)
34762 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34763 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34764 ($(objpfx)tst-printf.out): Likewise.
34765 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34766 ($(objpfx)tst-setcontext3.out): Likewise.
34767
34768 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34769
34770 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34771 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34772 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34773 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34774 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34775 and mptan-fma.
34776 (CFLAGS-doasin-fma.c): New.
34777 (CFLAGS-dosincos-fma.c): Likewise.
34778 (CFLAGS-e_asin-fma.c): Likewise.
34779 (CFLAGS-e_atan2-fma.c): Likewise.
34780 (CFLAGS-e_exp-fma.c): Likewise.
34781 (CFLAGS-e_log-fma.c): Likewise.
34782 (CFLAGS-e_pow-fma.c): Likewise.
34783 (CFLAGS-halfulp-fma.c): Likewise.
34784 (CFLAGS-mpa-fma.c): Likewise.
34785 (CFLAGS-mpatan-fma.c): Likewise.
34786 (CFLAGS-mpatan2-fma.c): Likewise.
34787 (CFLAGS-mpexp-fma.c): Likewise.
34788 (CFLAGS-mplog-fma.c): Likewise.
34789 (CFLAGS-mpsqrt-fma.c): Likewise.
34790 (CFLAGS-mptan-fma.c): Likewise.
34791 (CFLAGS-s_atan-fma.c): Likewise.
34792 (CFLAGS-sincos32-fma.c): Likewise.
34793 (CFLAGS-slowexp-fma.c): Likewise.
34794 (CFLAGS-slowpow-fma.c): Likewise.
34795 (CFLAGS-s_sin-fma.c): Likewise.
34796 (CFLAGS-s_tan-fma.c): Likewise.
34797 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34798 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34799 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34800 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34801 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34802 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34803 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34804 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34805 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34806 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34807 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34808 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34809 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34810 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34811 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34812 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34813 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34814 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34815 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34816 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34817 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34818 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34819 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34820 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34821 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34822 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34823 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34824 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34825 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34826 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34827 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34828
34829 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34830
34831 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34832 (min_of_type_f): New macro.
34833 (min_of_type_): Likewise.
34834 (min_of_type_l): Likewise.
34835 (min_of_type_f128): Likewise.
34836 (min_of_type): Define using __MATH_TG and taking an expression
34837 argument.
34838 (math_check_force_underflow): Pass expression instead of type to
34839 min_of_type.
34840 (math_check_force_underflow_nonneg): Likewise.
34841
34842 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34843
34844 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34845 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34846 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34847
34848 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34849
34850 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34851 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34852 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34853 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34854 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34855 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34856 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34857 memmove_chk-nonshared and memset_chk-nonshared
34858 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34859 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34860 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34861 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34862 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34863 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34864 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34865 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34866 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34867 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34868 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34869 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34870 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34871 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34872 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34873 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34874 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34875 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34876 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34877 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34878 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34879 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34880 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34881 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34882 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34883 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34884 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34885 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34886 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34887 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34888 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34889 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34890 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34891 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34892 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34893 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34894 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34895 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34896 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34897 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34898 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34899 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34900 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34901 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34902 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34903 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34904 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34905 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34906 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34907 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34908 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34909 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34910 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34911 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34912 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34913 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34914 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34915 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34916 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34917 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34918 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34919 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34920 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34921 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34922 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34923 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34924 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34925 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34926 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34927 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34928 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34929 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34930 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34931 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34932 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34933 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34934 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34935 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34936 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34937 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34938 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34939 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34940 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34941 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34942 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34943 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34944 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34945 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34946 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34947 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34948 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34949 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34950 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34951 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34952 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34953 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34954 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34955 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34956 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34957 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34958 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34959 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34960 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34961 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34962 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34963 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34964 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34965 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34966
34967 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34968
34969 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34970 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34971 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34972 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34973 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34974 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34975 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34976 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34977 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34978 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34979 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34980 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34981 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34982 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34983 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34984 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34985 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34986 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34987 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34988 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34989 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34990 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34991 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34992 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34993 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34994 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34995 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34996 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34997 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34998 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34999 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
35000 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
35001 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
35002 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
35003 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
35004 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
35005 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
35006 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
35007 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
35008 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
35009 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
35010 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
35011 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
35012 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
35013 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
35014 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
35015 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
35016 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
35017 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
35018 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
35019 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
35020 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
35021 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
35022 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
35023 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
35024 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
35025 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
35026 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
35027 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
35028 ...
35029 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
35030 Don't include <sysdep.h> nor <init-arch.h>.
35031 (_ZGVbN2v_cos): Removed.
35032 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
35033 ...
35034 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
35035 Don't include <sysdep.h> nor <init-arch.h>.
35036 (_ZGVdN4v_cos): Removed.
35037 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
35038 ...
35039 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
35040 Don't include <sysdep.h> nor <init-arch.h>.
35041 (_ZGVeN8v_cos): Removed.
35042 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
35043 ...
35044 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
35045 Don't include <sysdep.h> nor <init-arch.h>.
35046 (_ZGVbN2v_exp): Removed.
35047 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
35048 ...
35049 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
35050 Don't include <sysdep.h> nor <init-arch.h>.
35051 (_ZGVdN4v_exp): Removed.
35052 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
35053 ...
35054 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
35055 Don't include <sysdep.h> nor <init-arch.h>.
35056 (_ZGVeN8v_exp): Removed.
35057 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
35058 ...
35059 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
35060 Don't include <sysdep.h> nor <init-arch.h>.
35061 (_ZGVbN2v_log): Removed.
35062 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
35063 ...
35064 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
35065 Don't include <sysdep.h> nor <init-arch.h>.
35066 (_ZGVdN4v_log): Removed.
35067 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
35068 ...
35069 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
35070 Don't include <sysdep.h> nor <init-arch.h>.
35071 (_ZGVeN8v_log): Removed.
35072 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
35073 ...
35074 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
35075 Don't include <sysdep.h> nor <init-arch.h>.
35076 (_ZGVbN2vv_pow): Removed.
35077 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
35078 ...
35079 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
35080 Don't include <sysdep.h> nor <init-arch.h>.
35081 (_ZGVdN4vv_pow): Removed.
35082 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
35083 ...
35084 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
35085 Don't include <sysdep.h> nor <init-arch.h>.
35086 (_ZGVeN8vv_pow): Removed.
35087 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
35088 ...
35089 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
35090 Don't include <sysdep.h> nor <init-arch.h>.
35091 (_ZGVbN2v_sin): Removed.
35092 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
35093 ...
35094 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
35095 Don't include <sysdep.h> nor <init-arch.h>.
35096 (_ZGVbN4v_sin): Removed.
35097 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
35098 ...
35099 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
35100 Don't include <sysdep.h> nor <init-arch.h>.
35101 (_ZGVbN8v_sin): Removed.
35102 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
35103 ...
35104 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
35105 Don't include <sysdep.h> nor <init-arch.h>.
35106 (_ZGVbN2vvv_sincos): Removed.
35107 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
35108 ...
35109 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
35110 Don't include <sysdep.h> nor <init-arch.h>.
35111 (_ZGVdN4vvv_sincos): Removed.
35112 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
35113 ...
35114 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
35115 Don't include <sysdep.h> nor <init-arch.h>.
35116 (_ZGVeN8vvv_sincos): Removed.
35117 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
35118 ...
35119 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
35120 Don't include <sysdep.h> nor <init-arch.h>.
35121 (_ZGVeN16v_cosf): Removed.
35122 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
35123 ...
35124 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
35125 Don't include <sysdep.h> nor <init-arch.h>.
35126 (_ZGVbN4v_cosf): Removed.
35127 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
35128 ...
35129 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
35130 Don't include <sysdep.h> nor <init-arch.h>.
35131 (_ZGVdN8v_cosf): Removed.
35132 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
35133 ...
35134 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
35135 Don't include <sysdep.h> nor <init-arch.h>.
35136 (_ZGVeN16v_expf): Removed.
35137 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
35138 ...
35139 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
35140 Don't include <sysdep.h> nor <init-arch.h>.
35141 (_ZGVbN4v_expf): Removed.
35142 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
35143 ...
35144 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35145 Don't include <sysdep.h> nor <init-arch.h>.
35146 (_ZGVdN8v_expf): Removed.
35147 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
35148 ...
35149 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35150 Don't include <sysdep.h> nor <init-arch.h>.
35151 (_ZGVeN16v_logf): Removed.
35152 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
35153 ...
35154 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35155 Don't include <sysdep.h> nor <init-arch.h>.
35156 (_ZGVbN4v_logf): Removed.
35157 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
35158 ...
35159 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35160 Don't include <sysdep.h> nor <init-arch.h>.
35161 (_ZGVdN8v_logf): Removed.
35162 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
35163 ...
35164 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35165 Don't include <sysdep.h> nor <init-arch.h>.
35166 (_ZGVeN16vv_powf): Removed.
35167 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
35168 ...
35169 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35170 Don't include <sysdep.h> nor <init-arch.h>.
35171 (_ZGVbN4vv_powf): Removed.
35172 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
35173 ...
35174 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35175 Don't include <sysdep.h> nor <init-arch.h>.
35176 (_ZGVdN8vv_powf): Removed.
35177 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
35178 ...
35179 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35180 Don't include <sysdep.h> nor <init-arch.h>.
35181 (_ZGVeN16vvv_sincosf): Removed.
35182 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
35183 ...
35184 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35185 Don't include <sysdep.h> nor <init-arch.h>.
35186 (_ZGVbN4vvv_sincosf): Removed.
35187 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
35188 ...
35189 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35190 Don't include <sysdep.h> nor <init-arch.h>.
35191 (_ZGVdN8vvv_sincosf): Removed.
35192 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
35193 ...
35194 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35195 Don't include <sysdep.h> nor <init-arch.h>.
35196 (_ZGVeN16v_sinf): Removed.
35197 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
35198 ...
35199 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35200 Don't include <sysdep.h> nor <init-arch.h>.
35201 (_ZGVbN4v_sinf): Removed.
35202 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
35203 ...
35204 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35205 Don't include <sysdep.h> nor <init-arch.h>.
35206 (_ZGVdN8v_sinf): Removed.
35207
35208 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35209
35210 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35211 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35212 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35213 s_rint-sse4_1 and s_rintf-sse4_1.
35214 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35215 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35216 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35217 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35218 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35219 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35220 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35221 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35222 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35223 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35224 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
35225 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35226 (__ceil): Removed.
35227 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35228 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
35229 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35230 (__ceilf): Removed.
35231 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35232 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
35233 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35234 (__floor): Removed.
35235 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35236 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
35237 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35238 (__floorf): Removed.
35239 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35240 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
35241 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35242 (__nearbyint): Removed.
35243 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35244 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
35245 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35246 (__nearbyintf): Removed.
35247 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35248 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
35249 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35250 (__rint): Removed.
35251 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35252 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
35253 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35254 (__rintf): Removed.
35255
35256 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35257
35258 * sysdeps/i386/start.S (_start): Check Check PIC instead of
35259 SHARED. Avoid dynamic relocation against main in static PIE.
35260
35261 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35262
35263 [BZ #21815]
35264 * elf/Makefile (CFLAGS-tst-prelink.c): New.
35265 (LDFLAGS-tst-prelink): Likewise.
35266
35267 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35268
35269 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35270 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35271 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35272 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35273 (INTERNAL_SYSCALL_NCS): Likewise.
35274 (LOADARGS_1): Likewise.
35275 (LOADARGS_5): Likewise.
35276 (RESTOREARGS_1): Likewise.
35277 (RESTOREARGS_5): Likewise.
35278
35279 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35280
35281 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35282 (MEMPCPY_SYMBOL): Likewise.
35283 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35284 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35285 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35286 in libc.a.
35287 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35288 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35289 Likewise.
35290 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35291 (__hidden_ver1): Don't use in libc.a.
35292 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35293 (__mempcpy): Don't create a weak alias in libc.a.
35294 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35295 libc.a.
35296 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35297 (__hidden_ver1): Don't use in libc.a.
35298
35299 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35300
35301 * config.make.in (have-insert): New.
35302 * configure.ac (libc_cv_insert): New. Set to yes if linker
35303 supports INSERT in linker script.
35304 (AC_SUBST(libc_cv_insert): New.
35305 * configure: Regenerated.
35306 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35307 if $(have-insert) == yes.
35308
35309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35310
35311 * elf/Makefile (tests): Add vismain only if
35312 $(have-protected-data) == yes.
35313 (tests-pie): Likewise.
35314
35315 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35316
35317 [BZ #21871]
35318 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35319 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35320
35321 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35322
35323 [BZ #21790]
35324 * sysdeps/i386/i586/memset.S
35325 (__memset_zero_constant_len_parameter): Removed.
35326 * sysdeps/i386/i686/memset.S
35327 (__memset_zero_constant_len_parameter): Likewise.
35328 * sysdeps/i386/i686/multiarch/memset_chk.S
35329 (__memset_zero_constant_len_parameter): Likewise.
35330 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35331 Likewise.
35332
35333 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35334
35335 * stdlib/getentropy.c (getentropy): Change return type to int.
35336
35337 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35338
35339 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35340
35341 2017-08-03 Joseph Myers <joseph@codesourcery.com>
35342
35343 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35344 u_intN_t.
35345 * math/s_nexttowardf.c (__nexttowardf): Likewise.
35346 * sysdeps/generic/math_private.h (ieee_double_shape_type):
35347 Likewise.
35348 (ieee_float_shape_type): Likewise.
35349 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35350 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35351 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35352 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35353 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35354 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35355 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35356 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35357 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35358 Likewise.
35359 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35360 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35361 (__ieee754_yn): Likewise.
35362 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35363 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35364 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35365 Likewise.
35366 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35367 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35368 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35369 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35370 (__erfc): Likewise.
35371 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35372 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35373 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35374 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35375 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35376 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35377 Likewise.
35378 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35379 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35380 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35381 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35382 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35383 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35384 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35385 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35386 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35387 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35388 (__issignaling): Likewise.
35389 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35390 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35391 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35392 Likewise.
35393 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35394 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35395 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35396 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35397 Likewise.
35398 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35399 Likewise.
35400 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35401 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35402 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35403 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35404 (__erfcf): Likewise.
35405 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35406 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35407 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35408 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35409 Likewise.
35410 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35411 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35412 Likewise.
35413 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35414 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35415 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35416 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35417 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35418 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35419 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35420 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35421 Likewise.
35422 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35423 Likewise.
35424 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35425 Likewise.
35426 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35427 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35428 Likewise.
35429 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35430 Likewise.
35431 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35432 (__ieee754_ynl): Likewise.
35433 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35434 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35435 Likewise.
35436 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35437 Likewise.
35438 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35439 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35440 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35441 Likewise.
35442 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35443 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35444 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35445 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35446 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35447 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35448 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35449 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35450 Likewise.
35451 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35452 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35453 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35454 Likewise.
35455 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35456 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35457 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35458 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35459 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35460 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35461 Likewise.
35462 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35463 Likewise.
35464 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35465 Likewise.
35466 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35467 Likewise.
35468 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35469 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35470 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35471 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35472 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35473 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35474 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35475 Likewise.
35476 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35477 Likewise.
35478 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35479 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35480 Likewise.
35481 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35482 (__ieee754_remainderl): Likewise.
35483 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35484 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35485 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35486 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35487 Likewise.
35488 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35489 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35490 Likewise.
35491 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35492 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35493 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35494 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35495 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35496 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35497 Likewise.
35498 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35499 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35500 (__ieee754_y0l): Likewise.
35501 (pzero): Likewise.
35502 (qzero): Likewise.
35503 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35504 (__ieee754_y1l): Likewise.
35505 (pone): Likewise.
35506 (qone): Likewise.
35507 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35508 (__ieee754_ynl): Likewise.
35509 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35510 (__ieee754_lgammal_r): Likewise.
35511 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35512 Likewise.
35513 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35514 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35515 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35516 (__erfcl): Likewise.
35517 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35518 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35519 Likewise.
35520 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35521 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35522 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35523 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35524 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35525 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35526 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35527 Likewise.
35528 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35529 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35530 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35531 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35532 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35533 Likewise.
35534 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35535 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35536 Likewise.
35537 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35538 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35539 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35540 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35541 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35542
35543 2017-08-03 Florian Weimer <fweimer@redhat.com>
35544
35545 [BZ #21885]
35546 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35547 on memory allocation failure.
35548
35549 2017-08-03 Alan Modra <amodra@gmail.com>
35550
35551 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35552 tst-tlsopt-powerpc.c with function name change and no test harness.
35553 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35554 Call tls_get_addr_opt_test.
35555 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35556 (modules-names): Add mod-tlsopt-powerpc.
35557 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35558 (tst-tlsopt-powerpc): Depend on .so.
35559 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35560 define. Expand use in TLS_GD and TLS_LD.
35561
35562 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35563
35564 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35565 function.
35566 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35567
35568 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35569
35570 [BZ #21686]
35571 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35572 comparing size with that of double.
35573 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35574 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35575 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35576 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35577 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35578 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35579 unsigned __int128 types.
35580
35581 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35582
35583 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35584 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35585 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35586 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35587 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35588
35589 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35590
35591 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35592
35593 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35594
35595 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35596 of SHARED.
35597 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35598 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35599 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35600 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35601 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35602 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35603 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35604
35605 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35606
35607 [BZ #21685]
35608 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35609 bit-field expressions passed to sizeof or typeof.
35610 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35611 (__TGMATH_F128): Likewise.
35612 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35613 (__TGMATH_CF128): Likewise.
35614 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35615 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35616 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35617 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35618 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35619 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35620 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35621 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35622 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35623 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35624 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35625 (__TGMATH_UNARY_IMAG): Likewise.
35626 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35627 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35628 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35629 type.
35630 (define_vars_for_type): Handle bit_field type specially.
35631 (Tests.__init__): Declare structure with bit-field element.
35632
35633 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35634
35635 [BZ #21791]
35636 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35637 (MEMCPY_CHK): Define only if SHARED is defined.
35638 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35639 Likewise.
35640 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35641 Likewise.
35642
35643 See ChangeLog.18 for earlier changes.